@swagger-api/apidom-parser-adapter-api-design-systems-yaml 0.96.0 → 0.97.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.97.0](https://github.com/swagger-api/apidom/compare/v0.96.0...v0.97.0) (2024-03-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-api-design-systems-yaml
|
|
9
|
+
|
|
6
10
|
# [0.96.0](https://github.com/swagger-api/apidom/compare/v0.95.0...v0.96.0) (2024-02-28)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-api-design-systems-yaml
|
|
@@ -19119,6 +19119,20 @@ class Visitor {
|
|
|
19119
19119
|
NullElement() {
|
|
19120
19120
|
return null;
|
|
19121
19121
|
}
|
|
19122
|
+
RefElement(element, ...rest) {
|
|
19123
|
+
var _ancestors;
|
|
19124
|
+
const ancestors = rest[3];
|
|
19125
|
+
if (((_ancestors = ancestors[ancestors.length - 1]) === null || _ancestors === void 0 ? void 0 : _ancestors.type) === 'EphemeralObject') {
|
|
19126
|
+
return Symbol.for('delete-node');
|
|
19127
|
+
}
|
|
19128
|
+
return String(element.toValue());
|
|
19129
|
+
}
|
|
19130
|
+
LinkElement(element) {
|
|
19131
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isStringElement)(element.href)) {
|
|
19132
|
+
return element.href.toValue();
|
|
19133
|
+
}
|
|
19134
|
+
return '';
|
|
19135
|
+
}
|
|
19122
19136
|
}
|
|
19123
19137
|
const serializer = element => {
|
|
19124
19138
|
if (!(0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isElement)(element)) return element;
|
|
@@ -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.apidomParserAdapterApiDesignSystemsYaml=t():e.apidomParserAdapterApiDesignSystemsYaml=t()}(self,(()=>(()=>{var e={3103:(e,t,r)=>{var n=r(4715)(r(8942),"DataView");e.exports=n},5098:(e,t,r)=>{var n=r(3305),s=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 n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1386:(e,t,r)=>{var n=r(2393),s=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 n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9770:(e,t,r)=>{var n=r(4715)(r(8942),"Map");e.exports=n},8250:(e,t,r)=>{var n=r(9753),s=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 n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9413:(e,t,r)=>{var n=r(4715)(r(8942),"Promise");e.exports=n},4512:(e,t,r)=>{var n=r(4715)(r(8942),"Set");e.exports=n},3212:(e,t,r)=>{var n=r(8250),s=r(1877),i=r(8006);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},1340:(e,t,r)=>{var n=r(1386),s=r(4103),i=r(1779),o=r(4162),a=r(7462),c=r(6638);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},5650:(e,t,r)=>{var n=r(8942).Symbol;e.exports=n},1623:(e,t,r)=>{var n=r(8942).Uint8Array;e.exports=n},9270:(e,t,r)=>{var n=r(4715)(r(8942),"WeakMap");e.exports=n},9847:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},358:(e,t,r)=>{var n=r(6137),s=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&&s(e),p=!r&&!l&&o(e),f=!r&&!l&&!p&&c(e),h=r||l||p||f,d=h?n(e.length,String):[],_=d.length;for(var m in e)!t&&!u.call(e,m)||h&&("length"==m||p&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,_))||d.push(m);return d}},1129:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},6465:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},7034:(e,t,r)=>{var n=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},8244:(e,t,r)=>{var n=r(1129),s=r(3142);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},7379:(e,t,r)=>{var n=r(5650),s=r(8870),i=r(9005),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},6027:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},4687:(e,t,r)=>{var n=r(353),s=r(547);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,a))}},353:(e,t,r)=>{var n=r(1340),s=r(3934),i=r(8861),o=r(1182),a=r(8486),c=r(3142),u=r(5853),l=r(8666),p="[object Arguments]",f="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,_,m,y){var g=c(e),v=c(t),b=g?f:a(e),w=v?f:a(t),E=(b=b==p?h:b)==h,x=(w=w==p?h:w)==h,S=b==w;if(S&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(S&&!E)return y||(y=new n),g||l(e)?s(e,t,r,_,m,y):i(e,t,b,r,_,m,y);if(!(1&r)){var A=E&&d.call(e,"__wrapped__"),j=x&&d.call(t,"__wrapped__");if(A||j){var O=A?e.value():e,P=j?t.value():t;return y||(y=new n),m(O,P,r,_,y)}}return!!S&&(y||(y=new n),o(e,t,r,_,m,y))}},9624:(e,t,r)=>{var n=r(3655),s=r(4759),i=r(1580),o=r(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?f:a).test(o(e))}},674:(e,t,r)=>{var n=r(7379),s=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)&&s(e.length)&&!!o[n(e)]}},195:(e,t,r)=>{var n=r(4882),s=r(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6137:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,r)=>{var n=r(8942)["__core-js_shared__"];e.exports=n},3934:(e,t,r)=>{var n=r(3212),s=r(6465),i=r(5568);e.exports=function(e,t,r,o,a,c){var u=1&r,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var f=c.get(e),h=c.get(t);if(f&&h)return f==t&&h==e;var d=-1,_=!0,m=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++d<l;){var y=e[d],g=t[d];if(o)var v=u?o(g,y,d,t,e,c):o(y,g,d,e,t,c);if(void 0!==v){if(v)continue;_=!1;break}if(m){if(!s(t,(function(e,t){if(!i(m,t)&&(y===e||a(y,e,r,o,c)))return m.push(t)}))){_=!1;break}}else if(y!==g&&!a(y,g,r,o,c)){_=!1;break}}return c.delete(e),c.delete(t),_}},8861:(e,t,r)=>{var n=r(5650),s=r(1623),i=r(6285),o=r(3934),a=r(5894),c=r(7447),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,p,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=a;case"[object Set]":var d=1&n;if(h||(h=c),e.size!=t.size&&!d)return!1;var _=f.get(e);if(_)return _==t;n|=2,f.set(e,t);var m=o(h(e),h(t),n,u,p,f);return f.delete(e),m;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},1182:(e,t,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!c)return!1;for(var p=l;p--;){var f=u[p];if(!(c?f in t:s.call(t,f)))return!1}var h=a.get(e),d=a.get(t);if(h&&d)return h==t&&d==e;var _=!0;a.set(e,t),a.set(t,e);for(var m=c;++p<l;){var y=e[f=u[p]],g=t[f];if(i)var v=c?i(g,y,f,t,e,a):i(y,g,f,e,t,a);if(!(void 0===v?y===g||o(y,g,r,i,a):v)){_=!1;break}m||(m="constructor"==f)}if(_&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(_=!1)}return a.delete(e),a.delete(t),_}},4967:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},393:(e,t,r)=>{var n=r(8244),s=r(7979),i=r(1211);e.exports=function(e){return n(e,i,s)}},4700:(e,t,r)=>{var n=r(9067);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},4715:(e,t,r)=>{var n=r(9624),s=r(155);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},8870:(e,t,r)=>{var n=r(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[a]=r:delete e[a]),s}},7979:(e,t,r)=>{var n=r(9847),s=r(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},8486:(e,t,r)=>{var n=r(3103),s=r(9770),i=r(9413),o=r(4512),a=r(9270),c=r(7379),u=r(4066),l="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",d="[object DataView]",_=u(n),m=u(s),y=u(i),g=u(o),v=u(a),b=c;(n&&b(new n(new ArrayBuffer(1)))!=d||s&&b(new s)!=l||i&&b(i.resolve())!=p||o&&b(new o)!=f||a&&b(new a)!=h)&&(b=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case _:return d;case m:return l;case y:return p;case g:return f;case v:return h}return t}),e.exports=b},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,r)=>{var n=r(4497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},5276:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},5071:(e,t,r)=>{var n=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,r)=>{var n,s=r(1950),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,r)=>{var n=r(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},7144:(e,t,r)=>{var n=r(7034);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7452:(e,t,r)=>{var n=r(7034);e.exports=function(e){return n(this.__data__,e)>-1}},3964:(e,t,r)=>{var n=r(7034);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},9753:(e,t,r)=>{var n=r(5098),s=r(1386),i=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},5681:(e,t,r)=>{var n=r(4700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).get(e)}},4732:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).has(e)}},9068:(e,t,r)=>{var n=r(4700);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},4497:(e,t,r)=>{var n=r(4715)(Object,"create");e.exports=n},8121:(e,t,r)=>{var n=r(3766)(Object.keys,Object);e.exports=n},2306:(e,t,r)=>{e=r.nmd(e);var n=r(4967),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},8942:(e,t,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},7447:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},4103:(e,t,r)=>{var n=r(1386);e.exports=function(){this.__data__=new n,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,r)=>{var n=r(1386),s=r(9770),i=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||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}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3283:(e,t,r)=>{var n=r(6027),s=r(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,r)=>{var n=r(3655),s=r(5387);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},2563:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},5853:(e,t,r)=>{e=r.nmd(e);var n=r(8942),s=r(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},6343:(e,t,r)=>{var n=r(4687);e.exports=function(e,t){return n(e,t)}},3655:(e,t,r)=>{var n=r(7379),s=r(1580);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,r)=>{var n=r(7379),s=r(3142),i=r(547);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},8666:(e,t,r)=>{var n=r(674),s=r(9460),i=r(2306),o=i&&i.isTypedArray,a=o?s(o):n;e.exports=a},1211:(e,t,r)=>{var n=r(358),s=r(195),i=r(6529);e.exports=function(e){return i(e)?n(e):s(e)}},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,r)=>{const n=r(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5735:(e,t,r)=>{const n=r(9310),s=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(n,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,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 n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(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},3311:(e,t,r)=>{const n=r(1517),s=r(4123);class i extends s{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(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,r)=>{const n=r(8631),s=r(3004),i=r(8712),o=r(2536),a=r(2555),c=r(9796),u=r(7309),l=r(5642),p=r(9620),f=r(593),h=r(4123),d=r(3311),_=r(2322);function m(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(m));if("object"==typeof e){return new l(e)}return e}n.prototype.ObjectElement=l,n.prototype.RefElement=f,n.prototype.MemberElement=u,n.prototype.refract=m,h.prototype.refract=m,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:f,refract:m,ArraySlice:h,ObjectSlice:d,KeyValuePair:_}},9620:(e,t,r)=>{const n=r(8631);e.exports=class extends n{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)}}},593:(e,t,r)=>{const n=r(8631);e.exports=class extends n{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)}}},8326:(e,t,r)=>{const n=r(5735),s=r(7547);t.g$=n,t.KeyValuePair=r(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,r(394),r(3148)},9796:(e,t,r)=>{const n=r(1517),s=r(8631),i=r(4123);class o extends s{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((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}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||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2555:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,r)=>{const n=r(6343),s=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 s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(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 n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},7309:(e,t,r)=>{const n=r(2322),s=r(8631);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},3004:(e,t,r)=>{const n=r(8631);e.exports=class extends n{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")}}},2536:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},5642:(e,t,r)=>{const n=r(1517),s=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(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.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(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},8712:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,r)=>{const n=r(394);e.exports=class extends n{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 n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)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 n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}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([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),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 n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);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 n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},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]))}))}}},8583:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(r=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])},6850:(e,t,r)=>{"use strict";t.MH=void 0;const n=r(8583);function s(e,t,r){const s=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(s)||void 0!==r&&r!==e.length)throw new SyntaxError(n.errorMessages.get(t));return s}function i(e,t){const r=s(e,n.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=s(t,n.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,e)}return String.fromCharCode(r)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(e,t=!1){return e.replace(a,(function(e,r,a,c,u,l,p,f,h){if(void 0!==r)return"\\";if(void 0!==a)return function(e){const t=s(e,n.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(a);if(void 0!==c)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(n.errorMessages.get(n.ErrorType.MalformedUnicode));var t;const r=s(e.slice(1,-1),n.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(e){throw e instanceof RangeError?new SyntaxError(n.errorMessages.get(n.ErrorType.CodePointLimit)):e}}(c);if(void 0!==u)return i(u,l);if(void 0!==p)return i(p);if("0"===f)return"\0";if(void 0!==f)return function(e,t=!1){if(t)throw new SyntaxError(n.errorMessages.get(n.ErrorType.OctalDeprecation));const r=parseInt(e,8);return String.fromCharCode(r)}(f,!t);if(void 0!==h)return d=h,o.get(d)||d;var d;throw new SyntaxError(n.errorMessages.get(n.ErrorType.EndOfString))}))}t.MH=c},3833:(e,t,r)=>{var n=void 0!==n?n:{},s=function(){var t,s="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(n=Object.assign({},n,o),t=new Promise((t=>{var o,a={};for(o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);var c,u,l,p,f=[],h="./this.program",d=function(e,t){throw t};l="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!p;var _,m,y,g,v,b="";c?(b=p?r(4142).dirname(b)+"/":"//",_=function(e,t){return g||(g=r(3078)),v||(v=r(4142)),e=v.normalize(e),g.readFileSync(e,t?null:"utf8")},y=function(e){var t=_(e,!0);return t.buffer||(t=new Uint8Array(t)),T(t.buffer),t},process.argv.length>1&&(h=process.argv[1].replace(/\\/g,"/")),f=process.argv.slice(2),e.exports=n,d=function(e){process.exit(e)},n.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(_=function(e){return read(e)}),y=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(T("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?f=scriptArgs:void 0!==arguments&&(f=arguments),"function"==typeof quit&&(d=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||p)&&(p?b=self.location.href:void 0!==s&&s.currentScript&&(b=s.currentScript.src),b=0!==b.indexOf("blob:")?b.substr(0,b.lastIndexOf("/")+1):"",_=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(y=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),m=function(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)}),n.print||console.log.bind(console);var w=n.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(n[o]=a[o]);a=null,n.arguments&&(f=n.arguments),n.thisProgram&&(h=n.thisProgram),n.quit&&(d=n.quit);var E,x=16,S=[];function A(e,t){if(!E){E=new WeakMap;for(var r=0;r<H.length;r++){var n=H.get(r);n&&E.set(n,r)}}if(E.has(e))return E.get(e);var s=function(){if(S.length)return S.pop();try{H.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return H.length-1}();try{H.set(s,e)}catch(r){if(!(r instanceof TypeError))throw r;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==t[0]?[]:[r[t[0]]]},s=1;s<t.length;++s)n.parameters.push(r[t[s]]);return new WebAssembly.Function(n,e)}var i=[1,0,1,96],o=t.slice(0,1),a=t.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),s=0;s<a.length;++s)i.push(c[a[s]]);"v"==o?i.push(0):i=i.concat([1,c[o]]),i[1]=i.length-2;var u=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:e}}).exports.f}(e,t);H.set(s,i)}return E.set(e,s),s}var j,O=n.dynamicLibraries||[];n.wasmBinary&&(j=n.wasmBinary);var P,k=n.noExitRuntime||!0;function M(e,t,r,n){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":R[e>>0]=t;break;case"i16":q[e>>1]=t;break;case"i32":L[e>>2]=t;break;case"i64":le=[t>>>0,(ue=t,+Math.abs(ue)>=1?ue>0?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],L[e>>2]=le[0],L[e+4>>2]=le[1];break;case"float":$[e>>2]=t;break;case"double":V[e>>3]=t;break;default:ae("invalid type for setValue: "+r)}}function N(e,t,r){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return R[e>>0];case"i16":return q[e>>1];case"i32":case"i64":return L[e>>2];case"float":return $[e>>2];case"double":return V[e>>3];default:ae("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ae("no native wasm support detected");var I=!1;function T(e,t){e||ae("Assertion failed: "+t)}var C,R,F,q,L,$,V,D="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function B(e,t,r){for(var n=t+r,s=t;e[s]&&!(s>=n);)++s;if(s-t>16&&e.subarray&&D)return D.decode(e.subarray(t,s));for(var i="";t<s;){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}function z(e,t){return e?B(F,e,t):""}function U(e,t,r,n){if(!(n>0))return 0;for(var s=r,i=r+n-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)),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-s}function G(e,t,r){return U(e,F,t,r)}function K(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}function W(e){var t=K(e)+1,r=ze(t);return U(e,R,r,t),r}function Y(e){C=e,n.HEAP8=R=new Int8Array(e),n.HEAP16=q=new Int16Array(e),n.HEAP32=L=new Int32Array(e),n.HEAPU8=F=new Uint8Array(e),n.HEAPU16=new Uint16Array(e),n.HEAPU32=new Uint32Array(e),n.HEAPF32=$=new Float32Array(e),n.HEAPF64=V=new Float64Array(e)}var Z=n.INITIAL_MEMORY||33554432;(P=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:Z/65536,maximum:32768}))&&(C=P.buffer),Z=C.byteLength,Y(C);var H=new WebAssembly.Table({initial:17,element:"anyfunc"}),Q=[],X=[],J=[],ee=[],te=!1,re=0,ne=null,se=null;function ie(e){re++,n.monitorRunDependencies&&n.monitorRunDependencies(re)}function oe(e){if(re--,n.monitorRunDependencies&&n.monitorRunDependencies(re),0==re&&(null!==ne&&(clearInterval(ne),ne=null),se)){var t=se;se=null,t()}}function ae(e){throw n.onAbort&&n.onAbort(e),w(e+=""),I=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}n.preloadedImages={},n.preloadedAudios={},n.preloadedWasm={};var ce,ue,le;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function fe(e){return e.startsWith("file://")}function he(e){try{if(e==ce&&j)return new Uint8Array(j);if(y)return y(e);throw"both async and sync fetching of the wasm failed"}catch(e){ae(e)}}pe(ce="tree-sitter.wasm")||(ce=function(e){return n.locateFile?n.locateFile(e,b):b+e}(ce));var de={},_e={get:function(e,t){return de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),de[t]}};function me(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?H.get(r)():H.get(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(n)}}function ye(e){var t=0;function r(){for(var r=0,n=1;;){var s=e[t++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}if(e instanceof WebAssembly.Module){var n=WebAssembly.Module.customSections(e,"dylink");T(0!=n.length,"need dylink section"),e=new Int8Array(n[0])}else T(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),T(0===e[8],"need the dylink section to be first"),t=9,r(),T(6===e[t]),T(e[++t]==="d".charCodeAt(0)),T(e[++t]==="y".charCodeAt(0)),T(e[++t]==="l".charCodeAt(0)),T(e[++t]==="i".charCodeAt(0)),T(e[++t]==="n".charCodeAt(0)),T(e[++t]==="k".charCodeAt(0)),t++;var s={};s.memorySize=r(),s.memoryAlign=r(),s.tableSize=r(),s.tableAlign=r();var i=r();s.neededDynlibs=[];for(var o=0;o<i;++o){var a=r(),c=e.subarray(t,t+a);t+=a;var u=B(c,0);s.neededDynlibs.push(u)}return s}var ge=0;function ve(){return k||ge>0}function be(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function we(e,t){for(var r in e)if(e.hasOwnProperty(r)){Le.hasOwnProperty(r)||(Le[r]=e[r]);var s=be(r);n.hasOwnProperty(s)||(n[s]=e[r])}}var Ee={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xe=5250880;function Se(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function Ae(e,t){var r={};for(var n in e){var s=e[n];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),r[n]=s}return function(e){for(var t in e)if(!Se(t)){var r=!1,n=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],r=!0),de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==de[t].value)&&("function"==typeof n?de[t].value=A(n):"number"==typeof n?de[t].value=n:w("unhandled export type for `"+t+"`: "+typeof n))}}(r),r}function je(e,t){var r,s;return t&&(r=Le["orig$"+e]),r||(r=Le[e]),r||(r=n[be(e)]),!r&&e.startsWith("invoke_")&&(s=e.split("_")[1],r=function(){var e=De();try{return function(e,t,r){return e.includes("j")?function(e,t,r){var s=n["dynCall_"+e];return r&&r.length?s.apply(null,[t].concat(r)):s.call(null,t)}(e,t,r):H.get(t).apply(null,r)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Be(e),t!==t+0&&"longjmp"!==t)throw t;Ue(1,0)}}),r}function Oe(e,t){var r=ye(e);function n(){var n=Math.pow(2,r.memoryAlign);n=Math.max(n,x);var s,i,o,a=(s=function(e){if(te)return $e(e);var t=xe,r=t+e+15&-16;return xe=r,de.__heap_base.value=r,t}(r.memorySize+n),(i=n)||(i=x),Math.ceil(s/i)*i),c=H.length;H.grow(r.tableSize);for(var u=a;u<a+r.memorySize;u++)R[u]=0;for(u=c;u<c+r.tableSize;u++)H.set(u,null);var l=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return a;case"__table_base":return c}return t in Le?Le[t]:(t in e||(e[t]=function(){return r||(r=function(e){var t=je(e,!1);return t||(t=o[e]),t}(t)),r.apply(null,arguments)}),e[t]);var r}}),p={"GOT.mem":new Proxy({},_e),"GOT.func":new Proxy({},_e),env:l,wasi_snapshot_preview1:l};function f(e){for(var n=0;n<r.tableSize;n++){var s=H.get(c+n);s&&E.set(s,c+n)}o=Ae(e.exports,a),t.allowUndefined||ke();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(te?i():X.push(i)),o}if(t.loadAsync){if(e instanceof WebAssembly.Module){var h=new WebAssembly.Instance(e,p);return Promise.resolve(f(h))}return WebAssembly.instantiate(e,p).then((function(e){return f(e.instance)}))}var d=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return f(h=new WebAssembly.Instance(d,p))}return t.loadAsync?r.neededDynlibs.reduce((function(e,r){return e.then((function(){return Pe(r,t)}))}),Promise.resolve()).then((function(){return n()})):(r.neededDynlibs.forEach((function(e){Pe(e,t)})),n())}function Pe(e,t){"__main__"!=e||Ee.loadedLibNames[e]||(Ee.loadedLibs[-1]={refcount:1/0,name:"__main__",module:n.asm,global:!0},Ee.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var r,s=Ee.loadedLibNames[e];if(s)return r=Ee.loadedLibs[s],t.global&&!r.global&&(r.global=!0,"loading"!==r.module&&we(r.module)),t.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,t.loadAsync?Promise.resolve(s):s;function i(e){if(t.fs){var r=t.fs.readFile(e,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),t.loadAsync?Promise.resolve(r):r}return t.loadAsync?(n=e,fetch(n,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+n+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):y(e);var n}function o(){if(void 0!==n.preloadedWasm&&void 0!==n.preloadedWasm[e]){var r=n.preloadedWasm[e];return t.loadAsync?Promise.resolve(r):r}return t.loadAsync?i(e).then((function(e){return Oe(e,t)})):Oe(i(e),t)}function a(e){r.global&&we(e),r.module=e}return s=Ee.nextHandle++,r={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},Ee.loadedLibNames[e]=s,Ee.loadedLibs[s]=r,t.loadAsync?o().then((function(e){return a(e),s})):(a(o()),s)}function ke(){for(var e in de)if(0==de[e].value){var t=je(e,!0);"function"==typeof t?de[e].value=A(t,t.sig):"number"==typeof t?de[e].value=t:T(!1,"bad export type for `"+e+"`: "+typeof t)}}n.___heap_base=xe;var Me,Ne=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Ie(){ae()}n._abort=Ie,Ie.sig="v",Me=c?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Te(e,t){var r;if(0===e)r=Date.now();else{if(1!==e&&4!==e)return 28,L[Ve()>>2]=28,-1;r=Me()}return L[t>>2]=r/1e3|0,L[t+4>>2]=r%1e3*1e3*1e3|0,0}function Ce(e){try{return P.grow(e-C.byteLength+65535>>>16),Y(P.buffer),1}catch(e){}}function Re(e){Ye(e)}function Fe(e){}Te.sig="iii",Re.sig="vi",Fe.sig="vi";var qe,Le={__heap_base:xe,__indirect_function_table:H,__memory_base:1024,__stack_pointer:Ne,__table_base:1,abort:Ie,clock_gettime:Te,emscripten_memcpy_big:function(e,t,r){F.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){var t,r=F.length;if((e>>>=0)>2147483648)return!1;for(var n=1;n<=4;n*=2){var s=r*(1+.2/n);if(s=Math.min(s,e+100663296),Ce(Math.min(2147483648,((t=Math.max(e,s))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Re,memory:P,setTempRet0:Fe,tree_sitter_log_callback:function(e,t){if(ut){const r=z(t);ut(r,0!==e)}},tree_sitter_parse_callback:function(e,t,r,n,s){var i=ct(t,{row:r,column:n});"string"==typeof i?(M(s,i.length,"i32"),function(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=(r-=2)<2*e.length?r/2:e.length,s=0;s<n;++s){var i=e.charCodeAt(s);q[t>>1]=i,t+=2}q[t>>1]=0}(i,e,10240)):M(s,0,"i32")}},$e=(function(){var e={env:Le,wasi_snapshot_preview1:Le,"GOT.mem":new Proxy(Le,_e),"GOT.func":new Proxy(Le,_e)};function t(e,t){var r=e.exports;r=Ae(r,1024),n.asm=r;var s,i=ye(t);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),we(r),s=n.asm.__wasm_call_ctors,X.unshift(s),oe()}function r(e){t(e.instance,e.module)}function s(t){return function(){if(!j&&(l||p)){if("function"==typeof fetch&&!fe(ce))return fetch(ce,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ce+"'";return e.arrayBuffer()})).catch((function(){return he(ce)}));if(m)return new Promise((function(e,t){m(ce,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return he(ce)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){w("failed to asynchronously prepare wasm: "+e),ae(e)}))}if(ie(),n.instantiateWasm)try{return n.instantiateWasm(e,t)}catch(e){return w("Module.instantiateWasm callback failed with error: "+e),!1}j||"function"!=typeof WebAssembly.instantiateStreaming||pe(ce)||fe(ce)||"function"!=typeof fetch?s(r):fetch(ce,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return w("wasm streaming compile failed: "+e),w("falling back to ArrayBuffer instantiation"),s(r)}))}))}(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.__wasm_call_ctors).apply(null,arguments)},n._malloc=function(){return($e=n._malloc=n.asm.malloc).apply(null,arguments)}),Ve=(n._calloc=function(){return(n._calloc=n.asm.calloc).apply(null,arguments)},n._realloc=function(){return(n._realloc=n.asm.realloc).apply(null,arguments)},n._free=function(){return(n._free=n.asm.free).apply(null,arguments)},n._ts_language_symbol_count=function(){return(n._ts_language_symbol_count=n.asm.ts_language_symbol_count).apply(null,arguments)},n._ts_language_version=function(){return(n._ts_language_version=n.asm.ts_language_version).apply(null,arguments)},n._ts_language_field_count=function(){return(n._ts_language_field_count=n.asm.ts_language_field_count).apply(null,arguments)},n._ts_language_symbol_name=function(){return(n._ts_language_symbol_name=n.asm.ts_language_symbol_name).apply(null,arguments)},n._ts_language_symbol_for_name=function(){return(n._ts_language_symbol_for_name=n.asm.ts_language_symbol_for_name).apply(null,arguments)},n._ts_language_symbol_type=function(){return(n._ts_language_symbol_type=n.asm.ts_language_symbol_type).apply(null,arguments)},n._ts_language_field_name_for_id=function(){return(n._ts_language_field_name_for_id=n.asm.ts_language_field_name_for_id).apply(null,arguments)},n._memcpy=function(){return(n._memcpy=n.asm.memcpy).apply(null,arguments)},n._ts_parser_delete=function(){return(n._ts_parser_delete=n.asm.ts_parser_delete).apply(null,arguments)},n._ts_parser_reset=function(){return(n._ts_parser_reset=n.asm.ts_parser_reset).apply(null,arguments)},n._ts_parser_set_language=function(){return(n._ts_parser_set_language=n.asm.ts_parser_set_language).apply(null,arguments)},n._ts_parser_timeout_micros=function(){return(n._ts_parser_timeout_micros=n.asm.ts_parser_timeout_micros).apply(null,arguments)},n._ts_parser_set_timeout_micros=function(){return(n._ts_parser_set_timeout_micros=n.asm.ts_parser_set_timeout_micros).apply(null,arguments)},n._memmove=function(){return(n._memmove=n.asm.memmove).apply(null,arguments)},n._memcmp=function(){return(n._memcmp=n.asm.memcmp).apply(null,arguments)},n._ts_query_new=function(){return(n._ts_query_new=n.asm.ts_query_new).apply(null,arguments)},n._ts_query_delete=function(){return(n._ts_query_delete=n.asm.ts_query_delete).apply(null,arguments)},n._iswspace=function(){return(n._iswspace=n.asm.iswspace).apply(null,arguments)},n._iswalnum=function(){return(n._iswalnum=n.asm.iswalnum).apply(null,arguments)},n._ts_query_pattern_count=function(){return(n._ts_query_pattern_count=n.asm.ts_query_pattern_count).apply(null,arguments)},n._ts_query_capture_count=function(){return(n._ts_query_capture_count=n.asm.ts_query_capture_count).apply(null,arguments)},n._ts_query_string_count=function(){return(n._ts_query_string_count=n.asm.ts_query_string_count).apply(null,arguments)},n._ts_query_capture_name_for_id=function(){return(n._ts_query_capture_name_for_id=n.asm.ts_query_capture_name_for_id).apply(null,arguments)},n._ts_query_string_value_for_id=function(){return(n._ts_query_string_value_for_id=n.asm.ts_query_string_value_for_id).apply(null,arguments)},n._ts_query_predicates_for_pattern=function(){return(n._ts_query_predicates_for_pattern=n.asm.ts_query_predicates_for_pattern).apply(null,arguments)},n._ts_tree_copy=function(){return(n._ts_tree_copy=n.asm.ts_tree_copy).apply(null,arguments)},n._ts_tree_delete=function(){return(n._ts_tree_delete=n.asm.ts_tree_delete).apply(null,arguments)},n._ts_init=function(){return(n._ts_init=n.asm.ts_init).apply(null,arguments)},n._ts_parser_new_wasm=function(){return(n._ts_parser_new_wasm=n.asm.ts_parser_new_wasm).apply(null,arguments)},n._ts_parser_enable_logger_wasm=function(){return(n._ts_parser_enable_logger_wasm=n.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},n._ts_parser_parse_wasm=function(){return(n._ts_parser_parse_wasm=n.asm.ts_parser_parse_wasm).apply(null,arguments)},n._ts_language_type_is_named_wasm=function(){return(n._ts_language_type_is_named_wasm=n.asm.ts_language_type_is_named_wasm).apply(null,arguments)},n._ts_language_type_is_visible_wasm=function(){return(n._ts_language_type_is_visible_wasm=n.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},n._ts_tree_root_node_wasm=function(){return(n._ts_tree_root_node_wasm=n.asm.ts_tree_root_node_wasm).apply(null,arguments)},n._ts_tree_edit_wasm=function(){return(n._ts_tree_edit_wasm=n.asm.ts_tree_edit_wasm).apply(null,arguments)},n._ts_tree_get_changed_ranges_wasm=function(){return(n._ts_tree_get_changed_ranges_wasm=n.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},n._ts_tree_cursor_new_wasm=function(){return(n._ts_tree_cursor_new_wasm=n.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},n._ts_tree_cursor_delete_wasm=function(){return(n._ts_tree_cursor_delete_wasm=n.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},n._ts_tree_cursor_reset_wasm=function(){return(n._ts_tree_cursor_reset_wasm=n.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_first_child_wasm=function(){return(n._ts_tree_cursor_goto_first_child_wasm=n.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_next_sibling_wasm=function(){return(n._ts_tree_cursor_goto_next_sibling_wasm=n.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_parent_wasm=function(){return(n._ts_tree_cursor_goto_parent_wasm=n.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_type_id_wasm=function(){return(n._ts_tree_cursor_current_node_type_id_wasm=n.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_named_wasm=function(){return(n._ts_tree_cursor_current_node_is_named_wasm=n.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_missing_wasm=function(){return(n._ts_tree_cursor_current_node_is_missing_wasm=n.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_id_wasm=function(){return(n._ts_tree_cursor_current_node_id_wasm=n.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},n._ts_tree_cursor_start_position_wasm=function(){return(n._ts_tree_cursor_start_position_wasm=n.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},n._ts_tree_cursor_end_position_wasm=function(){return(n._ts_tree_cursor_end_position_wasm=n.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},n._ts_tree_cursor_start_index_wasm=function(){return(n._ts_tree_cursor_start_index_wasm=n.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},n._ts_tree_cursor_end_index_wasm=function(){return(n._ts_tree_cursor_end_index_wasm=n.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},n._ts_tree_cursor_current_field_id_wasm=function(){return(n._ts_tree_cursor_current_field_id_wasm=n.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_wasm=function(){return(n._ts_tree_cursor_current_node_wasm=n.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},n._ts_node_symbol_wasm=function(){return(n._ts_node_symbol_wasm=n.asm.ts_node_symbol_wasm).apply(null,arguments)},n._ts_node_child_count_wasm=function(){return(n._ts_node_child_count_wasm=n.asm.ts_node_child_count_wasm).apply(null,arguments)},n._ts_node_named_child_count_wasm=function(){return(n._ts_node_named_child_count_wasm=n.asm.ts_node_named_child_count_wasm).apply(null,arguments)},n._ts_node_child_wasm=function(){return(n._ts_node_child_wasm=n.asm.ts_node_child_wasm).apply(null,arguments)},n._ts_node_named_child_wasm=function(){return(n._ts_node_named_child_wasm=n.asm.ts_node_named_child_wasm).apply(null,arguments)},n._ts_node_child_by_field_id_wasm=function(){return(n._ts_node_child_by_field_id_wasm=n.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},n._ts_node_next_sibling_wasm=function(){return(n._ts_node_next_sibling_wasm=n.asm.ts_node_next_sibling_wasm).apply(null,arguments)},n._ts_node_prev_sibling_wasm=function(){return(n._ts_node_prev_sibling_wasm=n.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},n._ts_node_next_named_sibling_wasm=function(){return(n._ts_node_next_named_sibling_wasm=n.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},n._ts_node_prev_named_sibling_wasm=function(){return(n._ts_node_prev_named_sibling_wasm=n.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},n._ts_node_parent_wasm=function(){return(n._ts_node_parent_wasm=n.asm.ts_node_parent_wasm).apply(null,arguments)},n._ts_node_descendant_for_index_wasm=function(){return(n._ts_node_descendant_for_index_wasm=n.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_index_wasm=function(){return(n._ts_node_named_descendant_for_index_wasm=n.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_descendant_for_position_wasm=function(){return(n._ts_node_descendant_for_position_wasm=n.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_position_wasm=function(){return(n._ts_node_named_descendant_for_position_wasm=n.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_start_point_wasm=function(){return(n._ts_node_start_point_wasm=n.asm.ts_node_start_point_wasm).apply(null,arguments)},n._ts_node_end_point_wasm=function(){return(n._ts_node_end_point_wasm=n.asm.ts_node_end_point_wasm).apply(null,arguments)},n._ts_node_start_index_wasm=function(){return(n._ts_node_start_index_wasm=n.asm.ts_node_start_index_wasm).apply(null,arguments)},n._ts_node_end_index_wasm=function(){return(n._ts_node_end_index_wasm=n.asm.ts_node_end_index_wasm).apply(null,arguments)},n._ts_node_to_string_wasm=function(){return(n._ts_node_to_string_wasm=n.asm.ts_node_to_string_wasm).apply(null,arguments)},n._ts_node_children_wasm=function(){return(n._ts_node_children_wasm=n.asm.ts_node_children_wasm).apply(null,arguments)},n._ts_node_named_children_wasm=function(){return(n._ts_node_named_children_wasm=n.asm.ts_node_named_children_wasm).apply(null,arguments)},n._ts_node_descendants_of_type_wasm=function(){return(n._ts_node_descendants_of_type_wasm=n.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},n._ts_node_is_named_wasm=function(){return(n._ts_node_is_named_wasm=n.asm.ts_node_is_named_wasm).apply(null,arguments)},n._ts_node_has_changes_wasm=function(){return(n._ts_node_has_changes_wasm=n.asm.ts_node_has_changes_wasm).apply(null,arguments)},n._ts_node_has_error_wasm=function(){return(n._ts_node_has_error_wasm=n.asm.ts_node_has_error_wasm).apply(null,arguments)},n._ts_node_is_missing_wasm=function(){return(n._ts_node_is_missing_wasm=n.asm.ts_node_is_missing_wasm).apply(null,arguments)},n._ts_query_matches_wasm=function(){return(n._ts_query_matches_wasm=n.asm.ts_query_matches_wasm).apply(null,arguments)},n._ts_query_captures_wasm=function(){return(n._ts_query_captures_wasm=n.asm.ts_query_captures_wasm).apply(null,arguments)},n._iswdigit=function(){return(n._iswdigit=n.asm.iswdigit).apply(null,arguments)},n._iswalpha=function(){return(n._iswalpha=n.asm.iswalpha).apply(null,arguments)},n._iswlower=function(){return(n._iswlower=n.asm.iswlower).apply(null,arguments)},n._towupper=function(){return(n._towupper=n.asm.towupper).apply(null,arguments)},n.___errno_location=function(){return(Ve=n.___errno_location=n.asm.__errno_location).apply(null,arguments)}),De=(n._memchr=function(){return(n._memchr=n.asm.memchr).apply(null,arguments)},n._strlen=function(){return(n._strlen=n.asm.strlen).apply(null,arguments)},n.stackSave=function(){return(De=n.stackSave=n.asm.stackSave).apply(null,arguments)}),Be=n.stackRestore=function(){return(Be=n.stackRestore=n.asm.stackRestore).apply(null,arguments)},ze=n.stackAlloc=function(){return(ze=n.stackAlloc=n.asm.stackAlloc).apply(null,arguments)},Ue=n._setThrew=function(){return(Ue=n._setThrew=n.asm.setThrew).apply(null,arguments)};function Ge(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=n.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},n.__Znwm=function(){return(n.__Znwm=n.asm._Znwm).apply(null,arguments)},n.__ZdlPv=function(){return(n.__ZdlPv=n.asm._ZdlPv).apply(null,arguments)},n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=n.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},n._orig$ts_parser_timeout_micros=function(){return(n._orig$ts_parser_timeout_micros=n.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},n._orig$ts_parser_set_timeout_micros=function(){return(n._orig$ts_parser_set_timeout_micros=n.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},n.allocate=function(e,t){var r;return r=1==t?ze(e.length):$e(e.length),e.subarray||e.slice?F.set(e,r):F.set(new Uint8Array(e),r),r},se=function e(){qe||We(),qe||(se=e)};var Ke=!1;function We(e){function t(){qe||(qe=!0,n.calledRun=!0,I||(te=!0,me(X),me(J),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Ze&&function(e){var t=n._main;if(t){var r=(e=e||[]).length+1,s=ze(4*(r+1));L[s>>2]=W(h);for(var i=1;i<r;i++)L[(s>>2)+i]=W(e[i-1]);L[(s>>2)+r]=0;try{Ye(t(r,s),!0)}catch(e){if(e instanceof Ge)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),w("exception thrown: "+o),d(1,e)}}}(e),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)e=n.postRun.shift(),ee.unshift(e);var e;me(ee)}()))}e=e||f,re>0||!Ke&&(function(){if(O.length){if(!y)return ie(),void O.reduce((function(e,t){return e.then((function(){return Pe(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),ke()}));O.forEach((function(e){Pe(e,{global:!0,nodelete:!0,allowUndefined:!0})})),ke()}else ke()}(),Ke=!0,re>0)||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)e=n.preRun.shift(),Q.unshift(e);var e;me(Q)}(),re>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),t()}),1)):t()))}function Ye(e,t){t&&ve()&&0===e||(ve()||(n.onExit&&n.onExit(e),I=!0),d(e,new Ge(e)))}if(n.run=We,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var Ze=!0;n.noInitialRun&&(Ze=!1),We();const He=n,Qe={},Xe=4,Je=5*Xe,et=2*Xe,tt=2*Xe+2*et,rt={row:0,column:0},nt=/[\w-.]*/g,st=/^_?tree_sitter_\w+/;var it,ot,at,ct,ut;class lt{static init(){at=He._ts_init(),it=N(at,"i32"),ot=N(at+Xe,"i32")}initialize(){He._ts_parser_new_wasm(),this[0]=N(at,"i32"),this[1]=N(at+Xe,"i32")}delete(){He._ts_parser_delete(this[0]),He._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==dt)throw new Error("Argument must be a Language");{t=e[0];const r=He._ts_language_version(t);if(r<ot||it<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,He._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)ct=(t,r,n)=>e.slice(t,n);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");ct=e}this.logCallback?(ut=this.logCallback,He._ts_parser_enable_logger_wasm(this[0],1)):(ut=null,He._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r&&r.includedRanges){n=r.includedRanges.length;let e=s=He._calloc(n,tt);for(let t=0;t<n;t++)jt(e,r.includedRanges[t]),e+=tt}const i=He._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,n);if(!i)throw ct=null,ut=null,new Error("Parsing failed");const o=new pt(Qe,i,this.language,ct);return ct=null,ut=null,o}reset(){He._ts_parser_reset(this[0])}setTimeoutMicros(e){He._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return He._ts_parser_timeout_micros(this[0])}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 pt{constructor(e,t,r,n){gt(e),this[0]=t,this.language=r,this.textCallback=n}copy(){const e=He._ts_tree_copy(this[0]);return new pt(Qe,e,this.language,this.textCallback)}delete(){He._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=at;St(t,e.startPosition),St(t+=et,e.oldEndPosition),St(t+=et,e.newEndPosition),M(t+=et,e.startIndex,"i32"),M(t+=Xe,e.oldEndIndex,"i32"),M(t+=Xe,e.newEndIndex,"i32"),t+=Xe}(e),He._ts_tree_edit_wasm(this[0])}get rootNode(){return He._ts_tree_root_node_wasm(this[0]),wt(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");He._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=N(at,"i32"),r=N(at+Xe,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=Ot(e),e+=tt;He._free(r)}return n}}class ft{constructor(e,t){gt(e),this.tree=t}get typeId(){return bt(this),He._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return bt(this),He._ts_node_end_point_wasm(this.tree[0]),At(at)}get endIndex(){return bt(this),He._ts_node_end_index_wasm(this.tree[0])}get text(){return mt(this.tree,this.startIndex,this.endIndex)}isNamed(){return bt(this),1===He._ts_node_is_named_wasm(this.tree[0])}hasError(){return bt(this),1===He._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return bt(this),1===He._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return bt(this),1===He._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return bt(this),He._ts_node_child_wasm(this.tree[0],e),wt(this.tree)}namedChild(e){return bt(this),He._ts_node_named_child_wasm(this.tree[0],e),wt(this.tree)}childForFieldId(e){return bt(this),He._ts_node_child_by_field_id_wasm(this.tree[0],e),wt(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return bt(this),He._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return bt(this),He._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){bt(this),He._ts_node_children_wasm(this.tree[0]);const e=N(at,"i32"),t=N(at+Xe,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=wt(this.tree,r),r+=Je;He._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){bt(this),He._ts_node_named_children_wasm(this.tree[0]);const e=N(at,"i32"),t=N(at+Xe,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=wt(this.tree,r),r+=Je;He._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=rt),r||(r=rt);const n=[],s=this.tree.language.types;for(let t=0,r=s.length;t<r;t++)e.includes(s[t])&&n.push(t);const i=He._malloc(Xe*n.length);for(let e=0,t=n.length;e<t;e++)M(i+e*Xe,n[e],"i32");bt(this),He._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,t.row,t.column,r.row,r.column);const o=N(at,"i32"),a=N(at+Xe,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=wt(this.tree,e),e+=Je}return He._free(a),He._free(i),c}get nextSibling(){return bt(this),He._ts_node_next_sibling_wasm(this.tree[0]),wt(this.tree)}get previousSibling(){return bt(this),He._ts_node_prev_sibling_wasm(this.tree[0]),wt(this.tree)}get nextNamedSibling(){return bt(this),He._ts_node_next_named_sibling_wasm(this.tree[0]),wt(this.tree)}get previousNamedSibling(){return bt(this),He._ts_node_prev_named_sibling_wasm(this.tree[0]),wt(this.tree)}get parent(){return bt(this),He._ts_node_parent_wasm(this.tree[0]),wt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let r=at+Je;return M(r,e,"i32"),M(r+Xe,t,"i32"),He._ts_node_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let r=at+Je;return M(r,e,"i32"),M(r+Xe,t,"i32"),He._ts_node_named_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}descendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let r=at+Je;return St(r,e),St(r+et,t),He._ts_node_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}namedDescendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let r=at+Je;return St(r,e),St(r+et,t),He._ts_node_named_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}walk(){return bt(this),He._ts_tree_cursor_new_wasm(this.tree[0]),new ht(Qe,this.tree)}toString(){bt(this);const e=He._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var r=F[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}(e);return He._free(e),t}}class ht{constructor(e,t){gt(e),this.tree=t,xt(this)}delete(){Et(this),He._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){bt(e),Et(this,at+Je),He._ts_tree_cursor_reset_wasm(this.tree[0]),xt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Et(this),He._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Et(this),He._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Et(this),1===He._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Et(this),1===He._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Et(this);const e=He._ts_tree_cursor_start_index_wasm(this.tree[0]),t=He._ts_tree_cursor_end_index_wasm(this.tree[0]);return mt(this.tree,e,t)}get startPosition(){return Et(this),He._ts_tree_cursor_start_position_wasm(this.tree[0]),At(at)}get endPosition(){return Et(this),He._ts_tree_cursor_end_position_wasm(this.tree[0]),At(at)}get startIndex(){return Et(this),He._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Et(this),He._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Et(this),He._ts_tree_cursor_current_node_wasm(this.tree[0]),wt(this.tree)}currentFieldId(){return Et(this),He._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Et(this);const e=He._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xt(this),1===e}gotoNextSibling(){Et(this);const e=He._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xt(this),1===e}gotoParent(){Et(this);const e=He._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xt(this),1===e}}class dt{constructor(e,t){gt(e),this[0]=t,this.types=new Array(He._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)He._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=z(He._ts_language_symbol_name(this[0],e)));this.fields=new Array(He._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=He._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?z(t):null}}get version(){return He._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}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=K(e),n=He._malloc(r+1);G(e,n,r+1);const s=He._ts_language_symbol_for_name(this[0],n,r,t);return He._free(n),s||null}get nodeTypeCount(){return He._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=He._ts_language_symbol_name(this[0],e);return t?z(t):null}nodeTypeIsNamed(e){return!!He._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!He._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=K(e),r=He._malloc(t+1);G(e,r,t+1);const n=He._ts_query_new(this[0],r,t,at,at+Xe);if(!n){const t=N(at+Xe,"i32"),n=z(r,N(at,"i32")).length,s=e.substr(n,100).split("\n")[0];let i,o=s.match(nt)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${n}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${n}: '${s}'...`),o=""}throw i.index=n,i.length=o.length,He._free(r),i}const s=He._ts_query_string_count(n),i=He._ts_query_capture_count(n),o=He._ts_query_pattern_count(n),a=new Array(i),c=new Array(s);for(let e=0;e<i;e++){const t=He._ts_query_capture_name_for_id(n,e,at),r=N(at,"i32");a[e]=z(t,r)}for(let e=0;e<s;e++){const t=He._ts_query_string_value_for_id(n,e,at),r=N(at,"i32");c[e]=z(t,r)}const u=new Array(o),l=new Array(o),p=new Array(o),f=new Array(o),h=new Array(o);for(let e=0;e<o;e++){const t=He._ts_query_predicates_for_pattern(n,e,at),r=N(at,"i32");f[e]=[],h[e]=[];const s=[];let i=t;for(let t=0;t<r;t++){const t=N(i,"i32"),r=N(i+=Xe,"i32");if(i+=Xe,1===t)s.push({type:"capture",name:a[r]});else if(2===t)s.push({type:"string",value:c[r]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let r=!0;switch(t){case"not-eq?":r=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const t=s[1].name,n=s[2].name;h[e].push((function(e){let s,i;for(const r of e)r.name===t&&(s=r.node),r.name===n&&(i=r.node);return void 0===s||void 0===i||s.text===i.text===r}))}else{const t=s[1].name,n=s[2].value;h[e].push((function(e){for(const s of e)if(s.name===t)return s.node.text===n===r;return!0}))}break;case"not-match?":r=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const n=s[1].name,i=new RegExp(s[2].value);h[e].push((function(e){for(const t of e)if(t.name===n)return i.test(t.node.text)===r;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?l:p;o[e]||(o[e]={}),o[e][s[1].value]=s[2]?s[2].value:null;break;default:f[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return He._free(r),new _t(Qe,n,a,h,f,Object.freeze(u),Object.freeze(l),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const n=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=r(3078);t=Promise.resolve(e.readFileSync(n))}else t=fetch(n).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}`)}}))))}const n="function"==typeof loadSideModule?loadSideModule:Oe;return t.then((e=>n(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>st.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 n=e[r]();return new dt(Qe,n)}))}}class _t{constructor(e,t,r,n,s,i,o,a){gt(e),this[0]=t,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){He._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,n){t||(t=rt),r||(r=rt),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");bt(e),He._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const i=N(at,"i32"),o=N(at+Xe,"i32"),a=N(at+2*Xe,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let t=0;t<i;t++){const r=N(l,"i32"),n=N(l+=Xe,"i32");l+=Xe;const s=new Array(n);if(l=yt(this,e.tree,l,s),this.textPredicates[r].every((e=>e(s)))){c[u++]={pattern:r,captures:s};const e=this.setProperties[r];e&&(c[t].setProperties=e);const n=this.assertedProperties[r];n&&(c[t].assertedProperties=n);const i=this.refutedProperties[r];i&&(c[t].refutedProperties=i)}}return c.length=u,He._free(o),c}captures(e,t,r,n){t||(t=rt),r||(r=rt),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");bt(e),He._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const i=N(at,"i32"),o=N(at+Xe,"i32"),a=N(at+2*Xe,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;t<i;t++){const t=N(l,"i32"),r=N(l+=Xe,"i32"),n=N(l+=Xe,"i32");if(l+=Xe,u.length=r,l=yt(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[n],r=this.setProperties[t];r&&(e.setProperties=r);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return He._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function mt(e,t,r){const n=r-t;let s=e.textCallback(t,null,r);for(t+=s.length;t<r;){const n=e.textCallback(t,null,r);if(!(n&&n.length>0))break;t+=n.length,s+=n}return t>r&&(s=s.slice(0,n)),s}function yt(e,t,r,n){for(let s=0,i=n.length;s<i;s++){const i=N(r,"i32"),o=wt(t,r+=Xe);r+=Je,n[s]={name:e.captureNames[i],node:o}}return r}function gt(e){if(e!==Qe)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function bt(e){let t=at;M(t,e.id,"i32"),M(t+=Xe,e.startIndex,"i32"),M(t+=Xe,e.startPosition.row,"i32"),M(t+=Xe,e.startPosition.column,"i32"),M(t+=Xe,e[0],"i32")}function wt(e,t=at){const r=N(t,"i32");if(0===r)return null;const n=N(t+=Xe,"i32"),s=N(t+=Xe,"i32"),i=N(t+=Xe,"i32"),o=N(t+=Xe,"i32"),a=new ft(Qe,e);return a.id=r,a.startIndex=n,a.startPosition={row:s,column:i},a[0]=o,a}function Et(e,t=at){M(t+0*Xe,e[0],"i32"),M(t+1*Xe,e[1],"i32"),M(t+2*Xe,e[2],"i32")}function xt(e){e[0]=N(at+0*Xe,"i32"),e[1]=N(at+1*Xe,"i32"),e[2]=N(at+2*Xe,"i32")}function St(e,t){M(e,t.row,"i32"),M(e+Xe,t.column,"i32")}function At(e){return{row:N(e,"i32"),column:N(e+Xe,"i32")}}function jt(e,t){St(e,t.startPosition),St(e+=et,t.endPosition),M(e+=et,t.startIndex,"i32"),M(e+=Xe,t.endIndex,"i32"),e+=Xe}function Ot(e){const t={};return t.startPosition=At(e),e+=et,t.endPosition=At(e),e+=et,t.startIndex=N(e,"i32"),e+=Xe,t.endIndex=N(e,"i32"),t}for(const e of Object.getOwnPropertyNames(lt.prototype))Object.defineProperty(i.prototype,e,{value:lt.prototype[e],enumerable:!1,writable:!1});i.Language=dt,n.onRuntimeInitialized=()=>{lt.init(),t()}})))}}return i}();e.exports=s},3078:()=>{},4142:()=>{},1212:(e,t,r)=>{e.exports=r(8411)},7202:(e,t,r)=>{"use strict";var n=r(239);e.exports=n},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var n=r(8099);e.exports=n.AggregateError},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8337:(e,t,r)=>{"use strict";r(5442);var n=r(7202);e.exports=n},814:(e,t,r)=>{"use strict";var n=r(2769),s=r(459),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not a function")}},1966:(e,t,r)=>{"use strict";var n=r(2937),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,r)=>{"use strict";var n=r(262),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not an object")}},1005:(e,t,r)=>{"use strict";var n=r(3273),s=r(4574),i=r(8130),o=function(e){return function(t,r,o){var a,c=n(t),u=i(c),l=s(o,u);if(e&&r!=r){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,r)=>{"use strict";var n=r(6100),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},8407:(e,t,r)=>{"use strict";var n=r(4904),s=r(2769),i=r(9932),o=r(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;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"===(n=i(t))&&s(t.callee)?"Arguments":n}},7464:(e,t,r)=>{"use strict";var n=r(701),s=r(5691),i=r(4543),o=r(9989);e.exports=function(e,t,r){for(var a=s(t),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];n(e,p)||r&&n(r,p)||c(e,p,u(t,p))}}},2871:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,r)=>{"use strict";var n=r(5024),s=r(9989),i=r(480);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,r)=>{"use strict";var n=r(3999);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},7525:(e,t,r)=>{"use strict";var n=r(1063),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},5024:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,r)=>{"use strict";var n=r(1063),s=r(262),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7868:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4432:(e,t,r)=>{"use strict";var n,s,i=r(1063),o=r(7868),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3885:(e,t,r)=>{"use strict";var n=r(6100),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},4279:(e,t,r)=>{"use strict";var n=r(3999),s=r(3885),i=r(5791),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):n(e,"stack",s(r,a)))}},5791:(e,t,r)=>{"use strict";var n=r(1203),s=r(480);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9098:(e,t,r)=>{"use strict";var n=r(1063),s=r(7013),i=r(9344),o=r(2769),a=r(4543).f,c=r(8696),u=r(8099),l=r(4572),p=r(3999),f=r(701),h=function(e){var t=function(r,n,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,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,d,_,m,y,g,v,b,w=e.target,E=e.global,x=e.stat,S=e.proto,A=E?n:x?n[w]:n[w]&&n[w].prototype,j=E?u:u[w]||p(u,w,{})[w],O=j.prototype;for(_ in t)s=!(r=c(E?_:w+(x?".":"#")+_,e.forced))&&A&&f(A,_),y=j[_],s&&(g=e.dontCallGetSet?(b=a(A,_))&&b.value:A[_]),m=s&&g?g:t[_],(r||S||typeof y!=typeof m)&&(v=e.bind&&s?l(m,n):e.wrap&&s?h(m):S&&o(m)?i(m):m,(e.sham||m&&m.sham||y&&y.sham)&&p(v,"sham",!0),p(j,_,v),S&&(f(u,d=w+"Prototype")||p(u,d,{}),p(u[d],_,m),e.real&&O&&(r||!O[_])&&p(O,_,m)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,r)=>{"use strict";var n=r(9344),s=r(814),i=r(1780),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},3410:(e,t,r)=>{"use strict";var n=r(5024),s=r(701),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3574:(e,t,r)=>{"use strict";var n=r(6100),s=r(814);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},9344:(e,t,r)=>{"use strict";var n=r(9932),s=r(6100);e.exports=function(e){if("Function"===n(e))return s(e)}},6100:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,r)=>{"use strict";var n=r(8099),s=r(1063),i=r(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},967:(e,t,r)=>{"use strict";var n=r(8407),s=r(4674),i=r(3057),o=r(6625),a=r(8655)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[n(e)]}},1613:(e,t,r)=>{"use strict";var n=r(4713),s=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(s(r))return i(n(r,e));throw new c(o(e)+" is not iterable")}},4674:(e,t,r)=>{"use strict";var n=r(814),s=r(3057);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},1063:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,r)=>{"use strict";var n=r(6100),s=r(2137),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,r)=>{"use strict";var n=r(1003);e.exports=n("document","documentElement")},9665:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203),i=r(9619);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,r)=>{"use strict";var n=r(6100),s=r(1203),i=r(9932),o=Object,a=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},3507:(e,t,r)=>{"use strict";var n=r(2769),s=r(262),i=r(3491);e.exports=function(e,t,r){var o,a;return i&&n(o=t.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},8148:(e,t,r)=>{"use strict";var n=r(262),s=r(3999);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},8417:(e,t,r)=>{"use strict";var n,s,i,o=r(1314),a=r(1063),c=r(262),u=r(3999),l=r(701),p=r(3753),f=r(4275),h=r(5241),d="Object already initialized",_=a.TypeError,m=a.WeakMap;if(o||p.state){var y=p.state||(p.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new _(d);return t.facade=e,y.set(e,t),t},s=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var g=f("state");h[g]=!0,n=function(e,t){if(l(e,g))throw new _(d);return t.facade=e,u(e,g,t),t},s=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=s(t)).type!==e)throw new _("Incompatible receiver, "+e+" required");return r}}}},2877:(e,t,r)=>{"use strict";var n=r(8655),s=r(6625),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8696:(e,t,r)=>{"use strict";var n=r(1203),s=r(2769),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r===l||r!==u&&(s(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,r)=>{"use strict";var n=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},2937:(e,t,r)=>{"use strict";var n=r(262);e.exports=function(e){return n(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,r)=>{"use strict";var n=r(1003),s=r(2769),i=r(4317),o=r(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,a(e))}},208:(e,t,r)=>{"use strict";var n=r(4572),s=r(4713),i=r(7235),o=r(459),a=r(2877),c=r(8130),u=r(4317),l=r(1613),p=r(967),f=r(1743),h=TypeError,d=function(e,t){this.stopped=e,this.result=t},_=d.prototype;e.exports=function(e,t,r){var m,y,g,v,b,w,E,x=r&&r.that,S=!(!r||!r.AS_ENTRIES),A=!(!r||!r.IS_RECORD),j=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),P=n(t,x),k=function(e){return m&&f(m,"normal",e),new d(!0,e)},M=function(e){return S?(i(e),O?P(e[0],e[1],k):P(e[0],e[1])):O?P(e,k):P(e)};if(A)m=e.iterator;else if(j)m=e;else{if(!(y=p(e)))throw new h(o(e)+" is not iterable");if(a(y)){for(g=0,v=c(e);v>g;g++)if((b=M(e[g]))&&u(_,b))return b;return new d(!1)}m=l(e,y)}for(w=A?e.next:m.next;!(E=s(w,m)).done;){try{b=M(E.value)}catch(e){f(m,"throw",e)}if("object"==typeof b&&b&&u(_,b))return b}return new d(!1)}},1743:(e,t,r)=>{"use strict";var n=r(4713),s=r(7235),i=r(4674);e.exports=function(e,t,r){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return s(o),r}},1926:(e,t,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=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=s(n,{next:i(+!u,r)}),o(e,l,!1,!0),a[l]=c,e}},164:(e,t,r)=>{"use strict";var n=r(9098),s=r(4713),i=r(4871),o=r(3410),a=r(2769),c=r(1926),u=r(3671),l=r(3491),p=r(1811),f=r(3999),h=r(3508),d=r(8655),_=r(6625),m=r(2621),y=o.PROPER,g=o.CONFIGURABLE,v=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=d("iterator"),E="keys",x="values",S="entries",A=function(){return this};e.exports=function(e,t,r,o,d,m,j){c(r,t,o);var O,P,k,M=function(e){if(e===d&&R)return R;if(!b&&e&&e in T)return T[e];switch(e){case E:case x:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},N=t+" Iterator",I=!1,T=e.prototype,C=T[w]||T["@@iterator"]||d&&T[d],R=!b&&C||M(d),F="Array"===t&&T.entries||C;if(F&&(O=u(F.call(new e)))!==Object.prototype&&O.next&&(i||u(O)===v||(l?l(O,v):a(O[w])||h(O,w,A)),p(O,N,!0,!0),i&&(_[N]=A)),y&&d===x&&C&&C.name!==x&&(!i&&g?f(T,"name",x):(I=!0,R=function(){return s(C,this)})),d)if(P={values:M(x),keys:m?R:M(E),entries:M(S)},j)for(k in P)(b||I||!(k in T))&&h(T,k,P[k]);else n({target:t,proto:!0,forced:b||I},P);return i&&!j||T[w]===R||h(T,w,R,{name:d}),_[t]=R,P}},2621:(e,t,r)=>{"use strict";var n,s,i,o=r(1203),a=r(2769),c=r(262),u=r(5780),l=r(3671),p=r(3508),f=r(8655),h=r(4871),d=f("iterator"),_=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):_=!0),!c(n)||o((function(){var e={};return n[d].call(e)!==e}))?n={}:h&&(n=u(n)),a(n[d])||p(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:_}},6625:e=>{"use strict";e.exports={}},8130:(e,t,r)=>{"use strict";var n=r(8146);e.exports=function(e){return n(e.length)}},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},4879:(e,t,r)=>{"use strict";var n=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},5780:(e,t,r)=>{"use strict";var n,s=r(7235),i=r(7389),o=r(9683),a=r(5241),c=r(3489),u=r(9619),l=r(4275),p="prototype",f="script",h=l("IE_PROTO"),d=function(){},_=function(e){return"<"+f+">"+e+"</"+f+">"},m=function(e){e.write(_("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&n?m(n):(t=u("iframe"),r="java"+f+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(_("document.F=Object")),e.close(),e.F):m(n);for(var s=o.length;s--;)delete y[p][o[s]];return y()};a[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(d[p]=s(e),r=new d,d[p]=null,r[h]=e):r=y(),void 0===t?r:i.f(r,t)}},7389:(e,t,r)=>{"use strict";var n=r(5024),s=r(1330),i=r(9989),o=r(7235),a=r(3273),c=r(8364);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=c(t),u=s.length,l=0;u>l;)i.f(e,r=s[l++],n[r]);return e}},9989:(e,t,r)=>{"use strict";var n=r(5024),s=r(9665),i=r(1330),o=r(7235),a=r(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",f="configurable",h="writable";t.f=n?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=l(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:p in r?r[p]:n[p],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=a(t),o(r),s)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}},4543:(e,t,r)=>{"use strict";var n=r(5024),s=r(4713),i=r(7161),o=r(480),a=r(3273),c=r(5341),u=r(701),l=r(9665),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=a(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},5116:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,r)=>{"use strict";var n=r(701),s=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(n(t,c))return t[c];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},4317:(e,t,r)=>{"use strict";var n=r(6100);e.exports=n({}.isPrototypeOf)},8600:(e,t,r)=>{"use strict";var n=r(6100),s=r(701),i=r(3273),o=r(1005).indexOf,a=r(5241),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!s(a,r)&&s(n,r)&&c(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~o(l,r)||c(l,r));return l}},8364:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683);e.exports=Object.keys||function(e){return n(e,s)}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},3491:(e,t,r)=>{"use strict";var n=r(3574),s=r(7235),i=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return s(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},9559:(e,t,r)=>{"use strict";var n=r(4904),s=r(8407);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9258:(e,t,r)=>{"use strict";var n=r(4713),s=r(2769),i=r(262),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&s(r=e.toString)&&!i(a=n(r,e)))return a;if(s(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&s(r=e.toString)&&!i(a=n(r,e)))return a;throw new o("Can't convert object to primitive value")}},5691:(e,t,r)=>{"use strict";var n=r(1003),s=r(6100),i=r(5116),o=r(7313),a=r(7235),c=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,r)=>{"use strict";var n=r(9989).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5426:(e,t,r)=>{"use strict";var n=r(3057),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},1811:(e,t,r)=>{"use strict";var n=r(4904),s=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)||s(l,c,{configurable:!0,value:t}),u&&!n&&i(l,"toString",a))}},4275:(e,t,r)=>{"use strict";var n=r(8141),s=r(1268),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},3753:(e,t,r)=>{"use strict";var n=r(1063),s=r(7525),i="__core-js_shared__",o=n[i]||s(i,{});e.exports=o},8141:(e,t,r)=>{"use strict";var n=r(4871),s=r(3753);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5571:(e,t,r)=>{"use strict";var n=r(6100),s=r(9903),i=r(1139),o=r(5426),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,p=i(o(t)),f=s(r),h=p.length;return f<0||f>=h?e?"":void 0:(n=c(p,f))<55296||n>56319||f+1===h||(l=c(p,f+1))<56320||l>57343?e?a(p,f):n:e?u(p,f,f+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},4603:(e,t,r)=>{"use strict";var n=r(4432),s=r(1203),i=r(1063).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4574:(e,t,r)=>{"use strict";var n=r(9903),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},3273:(e,t,r)=>{"use strict";var n=r(1395),s=r(5426);e.exports=function(e){return n(s(e))}},9903:(e,t,r)=>{"use strict";var n=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},8146:(e,t,r)=>{"use strict";var n=r(9903),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},2137:(e,t,r)=>{"use strict";var n=r(5426),s=Object;e.exports=function(e){return s(n(e))}},493:(e,t,r)=>{"use strict";var n=r(4713),s=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(!s(e)||i(e))return e;var r,c=o(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!s(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},5341:(e,t,r)=>{"use strict";var n=r(493),s=r(6281);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},4904:(e,t,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(n)},1139:(e,t,r)=>{"use strict";var n=r(8407),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,r)=>{"use strict";var n=r(6100),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},7460:(e,t,r)=>{"use strict";var n=r(4603);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,r)=>{"use strict";var n=r(1063),s=r(2769),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8655:(e,t,r)=>{"use strict";var n=r(1063),s=r(8141),i=r(701),o=r(1268),a=r(4603),c=r(7460),u=n.Symbol,l=s("wks"),p=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},6453:(e,t,r)=>{"use strict";var n=r(1003),s=r(701),i=r(3999),o=r(4317),a=r(3491),c=r(7464),u=r(5516),l=r(3507),p=r(4879),f=r(8148),h=r(4279),d=r(5024),_=r(4871);e.exports=function(e,t,r,m){var y="stackTraceLimit",g=m?2:1,v=e.split("."),b=v[v.length-1],w=n.apply(null,v);if(w){var E=w.prototype;if(!_&&s(E,"cause")&&delete E.cause,!r)return w;var x=n("Error"),S=t((function(e,t){var r=p(m?t:e,void 0),n=m?new w(e):new w;return void 0!==r&&i(n,"message",r),h(n,S,n.stack,2),this&&o(E,this)&&l(n,this,S),arguments.length>g&&f(n,arguments[g]),n}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):d&&y in w&&(u(S,w,y),u(S,w,"prepareStackTrace")),c(S,w),!_)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},6138:(e,t,r)=>{"use strict";var n=r(9098),s=r(1003),i=r(7013),o=r(1203),a=r(6453),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},3085:(e,t,r)=>{"use strict";var n=r(9098),s=r(4317),i=r(3671),o=r(3491),a=r(7464),c=r(5780),u=r(3999),l=r(480),p=r(8148),f=r(4279),h=r(208),d=r(4879),_=r(8655)("toStringTag"),m=Error,y=[].push,g=function(e,t){var r,n=s(v,this);o?r=o(new m,n?i(this):v):(r=n?this:c(v),u(r,_,"Error")),void 0!==t&&u(r,"message",d(t)),f(r,g,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return h(e,y,{that:a}),u(r,"errors",a),r};o?o(g,m):a(g,m,{name:!0});var v=g.prototype=c(m.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},5695:(e,t,r)=>{"use strict";r(3085)},9828:(e,t,r)=>{"use strict";var n=r(3273),s=r(8137),i=r(6625),o=r(8417),a=r(9989).f,c=r(164),u=r(877),l=r(4871),p=r(5024),f="Array Iterator",h=o.set,d=o.getterFor(f);e.exports=c(Array,"Array",(function(e,t){h(this,{type:f,target:n(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,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 _=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==_.name)try{a(_,"name",{value:"values"})}catch(e){}},484:(e,t,r)=>{"use strict";var n=r(9098),s=r(1063),i=r(7013),o=r(6453),a="WebAssembly",c=s[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,u),n({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)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},3832:(e,t,r)=>{"use strict";var n=r(5571).charAt,s=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:s(e),index:0})}),(function(){var e,t=l(this),r=t.string,s=t.index;return s>=r.length?a(void 0,!0):(e=n(r,s),t.index+=e.length,a(e,!1))}))},5442:(e,t,r)=>{"use strict";r(5695)},85:(e,t,r)=>{"use strict";r(9828);var n=r(1100),s=r(1063),i=r(1811),o=r(6625);for(var a in n)i(s[a],a),o[a]=o.Array},239:(e,t,r)=>{"use strict";r(5442);var n=r(6656);r(85),e.exports=n}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=n[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var n={};return(()=>{"use strict";r.r(n),r.d(n,{detect:()=>Bo,detectionRegExp:()=>Do,mediaTypes:()=>Vo,namespace:()=>Uo,parse:()=>zo});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>ns,includesClasses:()=>is,includesSymbols:()=>ss,isAnnotationElement:()=>Xn,isArrayElement:()=>Yn,isBooleanElement:()=>Kn,isCommentElement:()=>Jn,isElement:()=>Bn,isLinkElement:()=>Hn,isMemberElement:()=>Zn,isNullElement:()=>Gn,isNumberElement:()=>Un,isObjectElement:()=>Wn,isParseResultElement:()=>es,isPrimitiveElement:()=>rs,isRefElement:()=>Qn,isSourceMapElement:()=>ts,isStringElement:()=>zn});var t={};function s(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function i(e){return function t(r){return 0===arguments.length||s(r)?t:e.apply(this,arguments)}}function o(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return s(r)?t:i((function(t){return e(r,t)}));default:return s(r)&&s(n)?t:s(r)?i((function(t){return e(t,n)})):s(n)?i((function(t){return e(r,t)})):e(r,n)}}}function a(e){return function t(r,n,a){switch(arguments.length){case 0:return t;case 1:return s(r)?t:o((function(t,n){return e(r,t,n)}));case 2:return s(r)&&s(n)?t:s(r)?o((function(t,r){return e(t,n,r)})):s(n)?o((function(t,n){return e(r,t,n)})):i((function(t){return e(r,n,t)}));default:return s(r)&&s(n)&&s(a)?t:s(r)&&s(n)?o((function(t,r){return e(t,r,a)})):s(r)&&s(a)?o((function(t,r){return e(t,n,r)})):s(n)&&s(a)?o((function(t,n){return e(r,t,n)})):s(r)?i((function(t){return e(t,n,a)})):s(n)?i((function(t){return e(r,t,a)})):s(a)?i((function(t){return e(r,n,t)})):e(r,n,a)}}}r.r(t),r.d(t,{isInfoElement:()=>xo,isMainElement:()=>Eo,isPrincipleElement:()=>So,isRequirementElement:()=>Ao,isRequirementLevelElement:()=>jo,isScenarioElement:()=>Oo,isStandardElement:()=>Po,isStandardIdentifierElement:()=>ko});const c=o((function(e,t){return null==t||t!=t?e:t})),u=Number.isInteger||function(e){return e<<0===e};function l(e){return"[object String]"===Object.prototype.toString.call(e)}const p=o((function(e,t){var r=e<0?t.length+e:e;return l(t)?t.charAt(r):t[r]}));const f=o((function(e,t){if(null!=t)return u(e)?p(e,t):t[e]}));const h=a((function(e,t,r){return c(e,f(t,r))}));var d=o((function(e,t){for(var r={},n={},s=0,i=e.length;s<i;)n[e[s]]=1,s+=1;for(var o in t)n.hasOwnProperty(o)||(r[o]=t[o]);return r}));const _=d;function m(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const y=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const g=i((function(e){return!!y(e)||!!e&&("object"==typeof e&&(!l(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var v="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function b(e,t,r){return function(n,s,i){if(g(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[v])return r(n,s,i[v]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function w(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function E(e,t,r,n){return r[n](e,t)}const x=b(m,E,w);function S(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!y(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function A(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}const j=function(){return this.xf["@@transducer/init"]()},O=function(e){return this.xf["@@transducer/result"](e)};var P=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=O,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const k=function(e){return function(t){return new P(e,t)}};function M(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,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,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 N(e,t,r){return function(){for(var n=[],i=0,o=e,a=0,c=!1;a<t.length||i<arguments.length;){var u;a<t.length&&(!s(t[a])||i>=arguments.length)?u=t[a]:(u=arguments[i],i+=1),n[a]=u,s(u)?c=!0:o-=1,a+=1}return!c&&o<=0?r.apply(this,n):M(Math.max(0,o),N(e,n,r))}}const I=o((function(e,t){return 1===e?i(t):M(e,N(e,[],t))}));function T(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var C=Object.prototype.toString;const R=function(){return"[object Arguments]"===C.call(arguments)?function(e){return"[object Arguments]"===C.call(e)}:function(e){return T("callee",e)}}();var F=!{toString:null}.propertyIsEnumerable("toString"),q=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(){return arguments.propertyIsEnumerable("length")}(),$=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},V="function"!=typeof Object.keys||L?i((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=L&&R(e);for(t in e)!T(t,e)||s&&"length"===t||(n[n.length]=t);if(F)for(r=q.length-1;r>=0;)T(t=q[r],e)&&!$(n,t)&&(n[n.length]=t),r-=1;return n})):i((function(e){return Object(e)!==e?[]:Object.keys(e)}));const D=V;const B=o(S(["fantasy-land/map","map"],k,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return I(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return m((function(r,n){return r[n]=e(t[n]),r}),{},D(t));default:return A(e,t)}})));const z=o((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:x((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,B(r,t))}),[],e)}));const U=o((function(e,t){var r=I(e,t);return I(e,(function(){return m(z,B(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const G=i((function(e){return U(e.length,e)}));const K=G(i((function(e){return!e})));function W(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Y(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}const Z="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const H=i((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Q(e,t,r,n){var s=W(e);function i(e,t){return X(e,t,r.slice(),n.slice())}return!Y((function(e,t){return!Y(i,t,e)}),W(t),s)}function X(e,t,r,n){if(Z(e,t))return!0;var s,i,o=H(e);if(o!==H(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"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Z(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Z(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 n[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&Q(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&Q(e.values(),t.values(),r.concat([e]),n.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=D(e);if(c.length!==D(t).length)return!1;var u=r.concat([e]),l=n.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!T(p,t)||!X(t[p],e[p],u,l))return!1;a-=1}return!0}const J=o((function(e,t){return X(e,t,[],[])}));const ee=i((function(e){return function(){return e}}));var te=ee(void 0);const re=J(te());const ne=K(re);var se=r(8326);function ie(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function oe(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const ae=o((function(e,t){return M(e.length,(function(){return e.apply(t,arguments)}))}));function ce(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function ue(e,t,r,n){return e["@@transducer/result"](r[n](ae(e["@@transducer/step"],e),t))}const le=b(oe,ue,ce);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}();function fe(e){return new pe(e)}const he=a((function(e,t,r){return le("function"==typeof e?fe(e):e,t,r)}));function de(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return y(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const _e=a(de("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const me=i(de("tail",_e(1,1/0)));function ye(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return M(arguments[0].length,he(ie,arguments[0],me(arguments)))}var ge=function(e,t){switch(arguments.length){case 0:return ge;case 1:return function t(r){return 0===arguments.length?t:Z(e,r)};default:return Z(e,t)}};const ve=ge;function be(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)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(J(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function we(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var Ee=function(e){return(e<10?"0":"")+e};const xe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Ee(e.getUTCMonth()+1)+"-"+Ee(e.getUTCDate())+"T"+Ee(e.getUTCHours())+":"+Ee(e.getUTCMinutes())+":"+Ee(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Se(e){return"[object Object]"===Object.prototype.toString.call(e)}var Ae=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=O,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function je(e){return function(t){return new Ae(e,t)}}const Oe=o(S(["fantasy-land/filter","filter"],je,(function(e,t){return Se(t)?m((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},D(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const Pe=o((function(e,t){return Oe((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function ke(e,t){var r=function(r){var n=t.concat([e]);return be(r,n)?"<Circular>":ke(r,n)},n=function(e,t){return A((function(t){return we(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+A(r,e).join(", ")+"))";case"[object Array]":return"["+A(r,e).concat(n(e,Pe((function(e){return/^\d+$/.test(e)}),D(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):we(xe(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":we(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,D(e)).join(", ")+"}"}}const Me=i((function(e){return ke(e,[])}));const Ne=o((function(e,t){return e.map((function(e){for(var r,n=t,s=0;s<e.length;){if(null==n)return;r=e[s],n=u(r)?p(r,n):n[r],s+=1}return n}))}));const Ie=o((function(e,t){return Ne([e],t)[0]}));const Te=a((function(e,t,r){return e(Ie(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 Re=o((function(e,t){return e&&t}));const Fe=o((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:G(Re)(e,t)}));const qe=J(null);var Le=K(qe);function $e(e){return $e="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},$e(e)}const Ve=I(1,Fe(Le,(function(e){return"object"===$e(e)})));const De=o((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=Me(e),o=r(i,Me(t));return void 0!==o&&o===i?e:t}));const Be=o((function(e,t){return B(f(e),t)}));const ze=i((function(e){return I(he(De,0,Be("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 Ue=I(1,ye(H,ve("GeneratorFunction")));const Ge=I(1,ye(H,ve("AsyncFunction")));const Ke=ze([ye(H,ve("Function")),Ue,Ge]);var We=ye(H,ve("Object")),Ye=ye(Me,J(Me(Object))),Ze=Te(Fe(Ke,Ye),["constructor"]);const He=I(1,(function(e){if(!Ve(e)||!We(e))return!1;var t=Object.getPrototypeOf(e);return!!qe(t)||Ze(t)}));class Qe extends se.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Xe=Qe;class Je extends se.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const et=Je;class tt extends se.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(re(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const rt=tt;class nt extends se.wE{constructor(e,t,r){super(e,t,r),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 se.wE([e.start.row,e.start.column,e.start.char]),r=new se.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const st=nt;class it extends se.g${constructor(){super(),this.register("annotation",Xe),this.register("comment",et),this.register("parseResult",rt),this.register("sourceMap",st)}}const ot=new it,at=e=>{const t=new it;return He(e)&&t.use(e),t},ct=ot;const ut=I(1,ye(H,ve("String"))),lt=r.p+"23aac571c96605dc25219087ad291441.wasm",pt=globalThis.fetch;Ke(pt)&&(globalThis.fetch=(...e)=>ut(e[0])&&e[0].endsWith("tree-sitter.wasm")?pt.apply(globalThis,[lt,me(e)]):pt.apply(globalThis,e));var ft=r(3833),ht=r(1212);const dt=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 _t extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(dt,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const mt=_t,yt=r.p+"d396281e11774e0afa7a40d620779b6d.wasm";let gt=null,vt=null;const bt=async e=>{if(null===gt&&null===vt)vt=ft.init().then((()=>ft.Language.load(yt))).then((e=>{const t=new ft;return t.setLanguage(e),t})).finally((()=>{vt=null})),gt=await vt;else if(null===gt&&null!==vt)gt=await vt;else if(null===gt)throw new mt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return gt.parse(e)};function wt(e,t,r){if(r||(r=new Et),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n,s=function(n){var s=r.get(e);if(s)return s;for(var i in r.set(e,n),e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t?wt(e[i],!0,r):e[i]);return n};switch(H(e)){case"Object":return s(Object.create(Object.getPrototypeOf(e)));case"Array":return s([]);case"Date":return new Date(e.valueOf());case"RegExp":return n=e,new RegExp(n.source,n.flags?n.flags:(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":"")+(n.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var Et=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const r=this.hash(e);let n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){let t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(const t in this.map){const r=this.map[t];for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}}return}const t=this.hash(e),r=this.map[t];if(r)for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}},e}();const xt=i((function(e){return null!=e&&"function"==typeof e.clone?e.clone():wt(e,!0)}));const St=class extends mt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};const At=class extends St{};const jt=class extends At{};const Ot=class extends jt{specificTagName;explicitTagName;tagKind;tagPosition;nodeCanonicalContent;node;constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagPosition=t.tagPosition,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};const Pt=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:r=!1}={}){this.type=this.constructor.type,this.isMissing=r,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}};let kt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const Mt=class extends Pt{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...r}){super({...r}),this.explicitName=e,this.kind=t}};const Nt=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const It=class extends Nt{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===kt.Mapping}};const Tt=class extends Nt{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===kt.Sequence}};const Ct=class extends Nt{static uri="tag:yaml.org,2002:str"};const Rt=a((function(e,t,r){return c(e,Ie(t,r))}));const Ft=i((function(e){return I(e.length,e)}));var qt="\t\n\v\f\r \u2028\u2029\ufeff";const Lt=i("function"==typeof String.prototype.trim&&!qt.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+qt+"]["+qt+"]*"),r=new RegExp("["+qt+"]["+qt+"]*$");return e.replace(t,"").replace(r,"")});const $t=o((function(e,t){return I(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(Me(r)+' does not have a method named "'+t+'"')}))}));const Vt=$t(1,"split");const Dt=$t(1,"join");const Bt=i((function(e){return l(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function zt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return ye.apply(this,Bt(arguments))}const Ut=I(4,(function(e,t,r,n){return le(e("function"==typeof t?fe(t):t),r,n)}));const Gt=o((function(e,t){if(y(e)){if(y(t))return e.concat(t);throw new TypeError(Me(t)+" is not an array")}if(l(e)){if(l(t))return e+t;throw new TypeError(Me(t)+" is not a string")}if(null!=e&&Ce(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&Ce(e.concat))return e.concat(t);throw new TypeError(Me(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Kt=J("");const Wt=o((function(e,t){return I(he(De,0,Be("length",t)),(function(){var r=arguments,n=this;return e.apply(n,A((function(e){return e.apply(n,r)}),t))}))}));function Yt(e){return e}const Zt=i(Yt);const Ht=I(1,ye(H,ve("Number")));var Qt=Fe(Ht,isFinite);var Xt=I(1,Qt);const Jt=Ke(Number.isFinite)?I(1,ae(Number.isFinite,Number)):Xt;var er=Fe(Jt,Wt(J,[Math.floor,Zt]));var tr=I(1,er);const rr=Ke(Number.isInteger)?I(1,ae(Number.isInteger,Number)):tr;const nr=i((function(e){return I(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));const sr=K(Jt);const ir=I(1,Fe(Ht,o((function(e,t){return e>t}))(0)));var or=Ft((function(e,t){var r=Number(t);if(r!==t&&(r=0),ir(r))throw new RangeError("repeat count must be non-negative");if(sr(r))throw new RangeError("repeat count must be less than infinity");if(r=Math.floor(r),0===e.length||0===r)return"";if(e.length*r>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var n=e.length*r;r=Math.floor(Math.log(r)/Math.log(2));for(var s=e;r;)s+=e,r-=1;return s+=s.substring(0,n-s.length)})),ar=nr($t(1,"repeat"));const cr=Ke(String.prototype.repeat)?ar:or;const ur=a((function(e,t,r){return r.replace(e,t)}));var lr=ur(/[\s\uFEFF\xA0]+$/,""),pr=$t(0,"trimEnd");const fr=Ke(String.prototype.trimEnd)?pr:lr;var hr=ur(/^[\s\uFEFF\xA0]+/,""),dr=$t(0,"trimStart");const _r=Ke(String.prototype.trimStart)?dr:hr;var mr=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=O,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 mr(e,t)}}const gr=o(S(["dropWhile"],yr,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return _e(r,1/0,t)})));const vr=nr(o(be));const br=Ft((function(e,t){return ye(Vt(""),gr(vr(e)),Dt(""))(t)}));const wr=nr(Gt);var Er=r(6850);const xr=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Sr=e=>{const t=(e=>{const t=e.match(xr),r=Rt("",["groups","indentation"],t);return Kt(r)?void 0:parseInt(r,10)})(e);if(rr(t))return cr(" ",t);const r=Rt("",[1],e.split("\n")),n=Rt(0,["groups","indentation","length"],r.match(/^(?<indentation>[ ]*)/));return cr(" ",n)},Ar=e=>{const t=e.match(xr),r=Rt("",["groups","chomping"],t);return Kt(r)?void 0:r},jr=(e,t)=>re(e)?`${fr(t)}\n`:"-"===e?fr(t):t,Or=e=>e.replace(/\r\n/g,"\n"),Pr=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,r)=>t?e:` ${r.trimStart()}`)).replace(/[\n]{2}/g,"\n"),kr=Ft(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Mr=ye(Or,Lt,Pr,Vt("\n"),B(_r),Dt("\n")),Nr=ye(Or,Lt,Pr,Vt("\n"),B(_r),Dt("\n"),kr("'")),Ir=ye(Or,Lt,(e=>e.replace(/\\\n\s*/g,"")),Pr,Er.MH,Vt("\n"),B(_r),Dt("\n"),kr('"'));let Tr=function(e){return e.Plain="Plain",e.SingleQuoted="SingleQuoted",e.DoubleQuoted="DoubleQuoted",e.Literal="Literal",e.Folded="Folded",e.Explicit="Explicit",e.SinglePair="SinglePair",e.NextLine="NextLine",e.InLine="InLine",e}({}),Cr=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Rr=class{static test(e){return e.tag.kind===kt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const r=e.clone();return e.style===Tr.Plain?t=Mr(e.content):e.style===Tr.SingleQuoted?t=Nr(e.content):e.style===Tr.DoubleQuoted?t=Ir(e.content):e.style===Tr.Literal?t=(e=>{const t=Sr(e),r=Ar(e),n=Or(e),s=me(n.split("\n")),i=zt(B(br(t)),B(wr("\n"))),o=Ut(i,Gt,"",s);return jr(r,o)})(e.content):e.style===Tr.Folded&&(t=(e=>{const t=Sr(e),r=Ar(e),n=Or(e),s=me(n.split("\n")),i=zt(B(br(t)),B(wr("\n"))),o=Ut(i,Gt,"",s),a=Pr(o);return jr(r,a)})(e.content)),r.content=t,r}static resolve(e){return e}};const Fr=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new It),this.registerTag(new Tt),this.registerTag(new Ct)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===kt.Scalar?t=Ct.uri:e.tag.kind===kt.Sequence?t=Tt.uri:e.tag.kind===kt.Mapping&&(t=It.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").replace(/>$/,""):e.tag.explicitName.startsWith("!!")&&(t=`tag:yaml.org,2002:${e.tag.explicitName.replace(/^!!/,"")}`),t}registerTagDirective(e){this.tagDirectives.push({handle:e.parameters.handle,prefix:e.parameters.prefix})}registerTag(e,t=!1){return t?this.tags.unshift(e):this.tags.push(e),this}overrideTag(e){return this.tags=this.tags.filter((t=>t.tag===e.tag)),this.tags.push(e),this}resolve(e){const t=this.toSpecificTagName(e);if("?"===t)return e;let r=e;Rr.test(e)&&(r=Rr.canonicalFormat(e));const n=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===n)throw new Ot(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:xt(e.tag.position),node:e.clone()});if(!n.test(r))throw new Ot(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:xt(e.tag.position),nodeCanonicalContent:r.content,node:e.clone()});return n.resolve(r)}};const qr=class extends Nt{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,r=e.clone();return r.content=t,r}};const Lr=class extends Nt{static uri="tag:yaml.org,2002:float";test(e){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content)}resolve(e){const t=parseFloat(e.content),r=e.clone();return r.content=t,r}};const $r=class extends Nt{static uri="tag:yaml.org,2002:int";test(e){return/^-?(0|[1-9][0-9]*)$/.test(e.content)}resolve(e){const t=parseInt(e.content,10),r=e.clone();return r.content=t,r}};const Vr=class extends Nt{static uri="tag:yaml.org,2002:null";test(e){return/^null$/.test(e.content)}resolve(e){const t=e.clone();return t.content=null,t}};const Dr=class extends Fr{constructor(){super(),this.registerTag(new qr,!0),this.registerTag(new Lr,!0),this.registerTag(new $r,!0),this.registerTag(new Vr,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===kt.Sequence)t=Tt.uri;else if(e.tag.kind===kt.Mapping)t=It.uri;else if(e.tag.kind===kt.Scalar){const r=this.tags.find((t=>t.test(e)));t=(null==r?void 0:r.tag)||"?"}return t}};const Br=class extends Pt{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:r,styleGroup:n,...s}){super({...s}),this.anchor=e,this.tag=t,this.style=r,this.styleGroup=n}};const zr=class extends Br{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Ur=class extends At{},Gr=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Kr=e=>Gr("mapping",e),Wr=e=>Gr("sequence",e),Yr=e=>Gr("keyValuePair",e),Zr=e=>Gr("scalar",e),Hr=e=>Gr("alias",e);const Qr=class{addAnchor(e){if(!(e=>Gr("anchor",e))(e.anchor))throw new Ur("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new zr({content:e.content,style:Tr.Plain,styleGroup:Cr.Flow})}},Xr=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},Jr={},en=e=>null==e?void 0:e.type,tn=e=>"string"==typeof en(e),rn=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),nn=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=Jr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Xr,nodeTypeGetter:c=en,nodePredicate:u=tn,nodeCloneFn:l=rn,detectCycles:p=!0}={})=>{const f=r||{};let h,d,_=Array.isArray(e),m=[e],y=-1,g=[],v=e;const b=[],w=[];do{y+=1;const e=y===m.length;let r;const x=e&&0!==g.length;if(e){if(r=0===w.length?void 0:b.pop(),v=d,d=w.pop(),x)if(_){v=v.slice();let e=0;for(const[t,r]of g){const n=t-e;r===i?(v.splice(n,1),e+=1):v[n]=r}}else{v=l(v);for(const[e,t]of g)v[e]=t}y=h.index,m=h.keys,g=h.edits,_=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(r=_?y:m[y],v=d[r],v===i||void 0===v)continue;b.push(r)}let S;if(!Array.isArray(v)){if(!u(v))throw new St(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;S=i.call(t,v,r,d,b,w)}if(S===s)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&g.push([r,v]),!e)h={inArray:_,index:y,keys:m,edits:g,prev:h},_=Array.isArray(v),m=_?v:null!==(E=f[c(v)])&&void 0!==E?E:[],y=-1,g=[],d!==i&&void 0!==d&&w.push(d),d=v}while(void 0!==h);return 0!==g.length?g[g.length-1][1]:e};nn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=Jr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Xr,nodeTypeGetter:c=en,nodePredicate:u=tn,nodeCloneFn:l=rn,detectCycles:p=!0}={})=>{const f=r||{};let h,d,_=Array.isArray(e),m=[e],y=-1,g=[],v=e;const b=[],w=[];do{y+=1;const e=y===m.length;let r;const x=e&&0!==g.length;if(e){if(r=0===w.length?void 0:b.pop(),v=d,d=w.pop(),x)if(_){v=v.slice();let e=0;for(const[t,r]of g){const n=t-e;r===i?(v.splice(n,1),e+=1):v[n]=r}}else{v=l(v);for(const[e,t]of g)v[e]=t}y=h.index,m=h.keys,g=h.edits,_=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(r=_?y:m[y],v=d[r],v===i||void 0===v)continue;b.push(r)}let S;if(!Array.isArray(v)){if(!u(v))throw new St(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;S=await i.call(t,v,r,d,b,w)}if(S===s)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&g.push([r,v]),!e)h={inArray:_,index:y,keys:m,edits:g,prev:h},_=Array.isArray(v),m=_?v:null!==(E=f[c(v)])&&void 0!==E?E:[],y=-1,g=[],d!==i&&void 0!==d&&w.push(d),d=v}while(void 0!==h);return 0!==g.length?g[g.length-1][1]:e};class sn{static type="point";type=sn.type;row;column;char;constructor({row:e,column:t,char:r}){this.row=e,this.column=t,this.char=r}}class on{static type="position";type=on.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const an=on;const cn=class extends Pt{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class un extends Pt{static type="stream"}Object.defineProperty(un.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Gr("document",e))(e)||(e=>Gr("comment",e))(e))):[]},enumerable:!0});const ln=un;const pn=p(0);const fn=class extends Pt{static type="parseResult";get rootNode(){return pn(this.children)}};const hn="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,n=arguments.length;r<n;){var s=arguments[r];if(null!=s)for(var i in s)T(i,s)&&(t[i]=s[i]);r+=1}return t};const dn=o((function(e,t){return hn({},e,t)}));const _n=class extends Pt{static type="directive";name;parameters;constructor({name:e,parameters:t,...r}){super({...r}),this.name=e,this.parameters=dn({version:void 0,handle:void 0,prefix:void 0},t)}};const mn=class extends Pt{static type="document"};const yn=class extends Br{};class gn extends yn{static type="mapping"}Object.defineProperty(gn.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Yr):[]},enumerable:!0});const vn=gn;class bn extends Pt{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(bn.prototype,{key:{get(){return this.children.filter((e=>Zr(e)||Kr(e)||Wr(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>Zr(e)||Kr(e)||Wr(e)||Hr(e))(t)))[0]},enumerable:!0}});const wn=bn;class En extends yn{static type="sequence"}Object.defineProperty(En.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Wr(e)||Kr(e)||Zr(e)||Hr(e))):[]},enumerable:!0});const xn=En;const Sn=class extends Pt{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const An=class extends Pt{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const jn=class extends Pt{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const On=class extends Pt{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}};const Pn=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;constructor(e){this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}get tag(){let{previousSibling:e}=this;for(;void 0!==e&&"tag"!==e.type;)({previousSibling:e}=e);return e}get anchor(){let{previousSibling:e}=this;for(;void 0!==e&&"anchor"!==e.type;)({previousSibling:e}=e);return e}get firstNamedChild(){return this.children.find((e=>e.isNamed))}setFieldName(e){return"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},kn={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Mn=e=>Array.isArray(e)||tn(e);class Nn{static isScalar=this.isKind("scalar");static isMapping=this.isKind("mapping");static isSequence=this.isKind("sequence");static isKind(e){return t=>null!=t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.endsWith(e)}static toPosition(e){const t=new sn({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=new sn({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new an({start:t,end:r})}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new cn({name:t.text,position:Nn.toPosition(t)})}static hasKeyValuePairEmptyKey(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.keyNode}static hasKeyValuePairEmptyValue(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.valueNode}static kindNodeToYamlTag(e){const{tag:t}=e,r=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),n=e.type.endsWith("mapping")?kt.Mapping:e.type.endsWith("sequence")?kt.Sequence:kt.Scalar,s=t?Nn.toPosition(t):void 0;return new Mt({explicitName:r,kind:n,position:s})}schema;referenceManager;stream={enter:e=>{const t=Nn.toPosition(e);return new ln({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new fn({children:[e]})};yaml_directive={enter:e=>{var t;const r=Nn.toPosition(e),n=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new _n({position:r,name:"%YAML",parameters:{version:n}})}};tag_directive={enter:e=>{const t=Nn.toPosition(e),r=e.children[0],n=e.children[1],s=new _n({position:t,name:"%TAG",parameters:{handle:null==r?void 0:r.text,prefix:null==n?void 0:n.text}});return this.schema.registerTagDirective(s),s}};reserved_directive={enter:e=>{const t=Nn.toPosition(e),r=e.children[0],n=e.children[1],s=e.children[2];return new _n({position:t,name:null==r?void 0:r.text,parameters:{handle:null==n?void 0:n.text,prefix:null==s?void 0:s.text}})}};document={enter:e=>{const t=Nn.toPosition(e);return new mn({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>{e.children=e.children.flat()}};block_node={enter:e=>e.children};flow_node={enter:e=>{const[t]=e.children.slice(-1);if(Nn.isScalar(t)||Nn.isMapping(t)||Nn.isSequence(t))return e.children;const r=new sn({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),n=new zr({content:"",anchor:Nn.kindNodeToYamlAnchor(t),tag:Nn.kindNodeToYamlTag(t),position:new an({start:r,end:r}),styleGroup:Cr.Flow,style:Tr.Plain});return this.registerAnchor(n),[...e.children,n]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Nn.toPosition(e),r=Nn.kindNodeToYamlTag(e),n=Nn.kindNodeToYamlAnchor(e),s=new vn({children:e.children,position:t,anchor:n,tag:r,styleGroup:Cr.Block,style:Tr.NextLine,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};block_mapping_pair={enter:e=>{const t=Nn.toPosition(e),r=[...e.children];if(Nn.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);r.unshift(t)}if(Nn.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);r.push(t)}return new wn({children:r,position:t,styleGroup:Cr.Block,isMissing:e.isMissing})}};flow_mapping={enter:e=>{const t=Nn.toPosition(e),r=Nn.kindNodeToYamlTag(e),n=Nn.kindNodeToYamlAnchor(e),s=new vn({children:e.children,position:t,anchor:n,tag:r,styleGroup:Cr.Flow,style:Tr.Explicit,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};flow_pair={enter:e=>{const t=Nn.toPosition(e),r=[...e.children];if(Nn.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);r.unshift(t)}if(Nn.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);r.push(t)}return new wn({children:r,position:t,styleGroup:Cr.Flow,isMissing:e.isMissing})}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Nn.toPosition(e),r=Nn.kindNodeToYamlTag(e),n=Nn.kindNodeToYamlAnchor(e),s=new xn({children:e.children,position:t,anchor:n,tag:r,styleGroup:Cr.Block,style:Tr.NextLine});return this.registerAnchor(s),this.schema.resolve(s)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;const t=new sn({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[new zr({content:"",tag:new Mt({explicitName:"?",kind:kt.Scalar}),position:new an({start:t,end:t}),styleGroup:Cr.Flow,style:Tr.Plain})]}};flow_sequence={enter:e=>{const t=Nn.toPosition(e),r=Nn.kindNodeToYamlTag(e),n=Nn.kindNodeToYamlAnchor(e),s=new xn({children:e.children.flat(),position:t,anchor:n,tag:r,styleGroup:Cr.Flow,style:Tr.Explicit});return this.registerAnchor(s),this.schema.resolve(s)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Nn.toPosition(e),r=Nn.kindNodeToYamlTag(e),n=Nn.kindNodeToYamlAnchor(e),s=new zr({content:e.text,anchor:n,tag:r,position:t,styleGroup:Cr.Flow,style:Tr.Plain});return this.registerAnchor(s),this.schema.resolve(s)}};single_quote_scalar={enter:e=>{const t=Nn.toPosition(e),r=Nn.kindNodeToYamlTag(e),n=Nn.kindNodeToYamlAnchor(e),s=new zr({content:e.text,anchor:n,tag:r,position:t,styleGroup:Cr.Flow,style:Tr.SingleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};double_quote_scalar={enter:e=>{const t=Nn.toPosition(e),r=Nn.kindNodeToYamlTag(e),n=Nn.kindNodeToYamlAnchor(e),s=new zr({content:e.text,anchor:n,tag:r,position:t,styleGroup:Cr.Flow,style:Tr.DoubleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};block_scalar={enter:e=>{const t=Nn.toPosition(e),r=Nn.kindNodeToYamlTag(e),n=Nn.kindNodeToYamlAnchor(e),s=e.text.startsWith("|")?Tr.Literal:e.text.startsWith(">")?Tr.Folded:Tr.Plain,i=new zr({content:e.text,anchor:n,tag:r,position:t,styleGroup:Cr.Block,style:s});return this.registerAnchor(i),this.schema.resolve(i)}};comment={enter:e=>new Sn({content:e.text})};alias={enter:e=>{const t=new An({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof Pn&&!e.isNamed){const t=Nn.toPosition(e),r=e.type||e.text,{isMissing:n}=e;return new jn({value:r,position:t,isMissing:n})}}ERROR(e,t,r,n){const s=Nn.toPosition(e),i=new On({children:e.children,position:s,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===n.length?new fn({children:[i]}):i}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const t=new sn({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:r}=e,n=(null==r?void 0:r.children)||[],s=n.find(Nn.isKind("tag")),i=n.find(Nn.isKind("anchor")),o=new Mt(void 0!==s?{explicitName:s.text,kind:kt.Scalar,position:Nn.toPosition(s)}:{explicitName:"?",kind:kt.Scalar}),a=void 0!==i?new cn({name:i.text,position:Nn.toPosition(i)}):void 0,c=new zr({content:"",position:new an({start:t,end:t}),tag:o,anchor:a,styleGroup:Cr.Flow,style:Tr.Plain});return this.registerAnchor(c),c}createKeyValuePairEmptyValue(e){const t=new sn({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:r}=e,n=(null==r?void 0:r.children)||[],s=n.find(Nn.isKind("tag")),i=n.find(Nn.isKind("anchor")),o=new Mt(void 0!==s?{explicitName:s.text,kind:kt.Scalar,position:Nn.toPosition(s)}:{explicitName:"?",kind:kt.Scalar}),a=void 0!==i?new cn({name:i.text,position:Nn.toPosition(i)}):void 0,c=new zr({content:"",position:new an({start:t,end:t}),tag:o,anchor:a,styleGroup:Cr.Flow,style:Tr.Plain});return this.registerAnchor(c),c}}const In=Nn;var Tn=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=j,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){var r;return this.f(t)||(this.all=!1,e=(r=this.xf["@@transducer/step"](e,!1))&&r["@@transducer/reduced"]?r:{"@@transducer/value":r,"@@transducer/reduced":!0}),e},e}();function Cn(e){return function(t){return new Tn(e,t)}}const Rn=o(S(["all"],Cn,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0}))),Fn=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],qn=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Ln=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),$n=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof se.wE)&&t.classes.includes(e),Vn=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Dn=e=>e({hasMethod:Fn,hasBasicElementProps:qn,primitiveEq:Ln,isElementType:Vn,hasClass:$n}),Bn=Dn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof se.Hg||e(r)&&t(void 0,r))),zn=Dn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof se.Om||e(r)&&t("string",r))),Un=Dn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof se.kT||e(r)&&t("number",r))),Gn=Dn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof se.Os||e(r)&&t("null",r))),Kn=Dn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof se.bd||e(r)&&t("boolean",r))),Wn=Dn((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof se.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Yn=Dn((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof se.wE&&!(n instanceof se.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Zn=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof se.Pr||e(n)&&t("member",n)&&r(void 0,n))),Hn=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof se.Ft||e(n)&&t("link",n)&&r(void 0,n))),Qn=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof se.sI||e(n)&&t("ref",n)&&r(void 0,n))),Xn=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xe||e(n)&&t("annotation",n)&&r("array",n))),Jn=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof et||e(n)&&t("comment",n)&&r("string",n))),es=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rt||e(n)&&t("parseResult",n)&&r("array",n))),ts=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof st||e(n)&&t("sourceMap",n)&&r("array",n))),rs=e=>Vn("object",e)||Vn("array",e)||Vn("boolean",e)||Vn("number",e)||Vn("string",e)||Vn("null",e)||Vn("member",e),ns=e=>ts(e.meta.get("sourceMap")),ss=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Yn(r)&&Rn(vr(r.toValue()),e)},is=(e,t)=>0===e.length||Rn(vr(t.classes.toValue()),e);const os=class extends St{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const as=class extends os{};const cs=class extends os{},us=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof se.KeyValuePair){const{key:t,value:s}=e,i=Bn(t)?us(t,n):t,o=Bn(s)?us(s,n):s,a=new se.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof se.ot){const t=e=>us(e,n),s=[...e].map(t),i=new se.ot(s);return r.set(e,i),i}if(e instanceof se.G6){const t=e=>us(e,n),s=[...e].map(t),i=new se.G6(s);return r.set(e,i),i}if(Bn(e)){const t=fs(e);if(r.set(e,t),e.content)if(Bn(e.content))t.content=us(e.content,n);else if(e.content instanceof se.KeyValuePair)t.content=us(e.content,n);else if(Array.isArray(e.content)){const r=e=>us(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new as("Value provided to cloneDeep function couldn't be cloned",{value:e})};us.safe=e=>{try{return us(e)}catch{return e}};const ls=e=>{const{key:t,value:r}=e;return new se.KeyValuePair(t,r)},ps=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=us(e.meta)),e.attributes.length>0&&(t._attributes=us(e.attributes)),Bn(e.content)){const r=e.content;t.content=ps(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof se.KeyValuePair?t.content=ls(e.content):t.content=e.content;return t},fs=e=>{if(e instanceof se.KeyValuePair)return ls(e);if(e instanceof se.ot)return(e=>{const t=[...e];return new se.ot(t)})(e);if(e instanceof se.G6)return(e=>{const t=[...e];return new se.G6(t)})(e);if(Bn(e))return ps(e);throw new cs("Value provided to cloneShallow function couldn't be cloned",{value:e})};fs.safe=e=>{try{return fs(e)}catch{return e}};const hs=e=>Wn(e)?"ObjectElement":Yn(e)?"ArrayElement":Zn(e)?"MemberElement":zn(e)?"StringElement":Kn(e)?"BooleanElement":Un(e)?"NumberElement":Gn(e)?"NullElement":Hn(e)?"LinkElement":Qn(e)?"RefElement":void 0,ds=e=>Bn(e)?fs(e):rn(e),_s=ye(hs,ut),ms={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const ys=(e,t,{keyMap:r=ms,...n}={})=>nn(e,t,{keyMap:r,nodeTypeGetter:hs,nodePredicate:_s,nodeCloneFn:ds,...n});ys[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=ms,...n}={})=>nn[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:hs,nodePredicate:_s,nodeCloneFn:ds,...n});const gs=a((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})T(n,t)&&(s[n]=T(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)T(n,r)&&!T(n,s)&&(s[n]=r[n]);return s}));const vs=a((function e(t,r,n){return gs((function(r,n,s){return Se(n)&&Se(s)?e(t,n,s):t(r,n,s)}),r,n)}));const bs=o((function(e,t){return vs((function(e,t,r){return r}),e,t)}));const ws=_e(0,-1);const Es=o((function(e,t){return e.apply(this,t)}));const xs=K(Ke);var Ss=i((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():y(e)?[]:l(e)?"":Se(e)?{}:R(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 As=Ss;const js=i((function(e){return null!=e&&J(e,As(e))}));const Os=Fe(I(1,Ke(Array.isArray)?Array.isArray:ye(H,ve("Array"))),js);const Ps=I(3,(function(e,t,r){var n=Ie(e,r),s=Ie(ws(e),r);if(!xs(n)&&!Os(e)){var i=ae(n,s);return Es(i,t)}})),ks=()=>({predicates:{...e},namespace:ct}),Ms={toolboxCreator:ks,visitorOptions:{nodeTypeGetter:hs,exposeEdits:!0}},Ns=(e,t,r={})=>{if(0===t.length)return e;const n=bs(Ms,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=t.map((e=>e(o))),c=((e,{visitFnGetter:t=Xr,nodeTypeGetter:r=en,breakSymbol:n=Jr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,...l){let p=u,f=!1;for(let h=0;h<e.length;h+=1)if(c[h]===a){const a=t(e[h],r(p),!1);if("function"==typeof a){const t=a.call(e[h],p,...l);if(t===i)c[h]=u;else if(t===n)c[h]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;p=t,f=!0}}}}return f?p:void 0},leave(s,...o){for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],r(s),!0);if("function"==typeof a){const t=a.call(e[u],s,...o);if(t===n)c[u]=n;else if(void 0!==t&&t!==i)return t}}else c[u]===s&&(c[u]=a)}}})(a.map(h({},"visitor")),{...i});a.forEach(Ps(["pre"],[]));const u=ys(e,c,i);return a.forEach(Ps(["post"],[])),u},Is=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Bn(e)&&(e.meta.length>0&&(n.meta=us(e.meta)),e.attributes.length>0&&(n.attributes=us(e.attributes))),Ns(n,r,{toolboxCreator:ks,visitorOptions:{nodeTypeGetter:hs}})},Ts=e=>(t,r={})=>Is(t,{...r,Type:e});se.Sh.refract=Ts(se.Sh),se.wE.refract=Ts(se.wE),se.Om.refract=Ts(se.Om),se.bd.refract=Ts(se.bd),se.Os.refract=Ts(se.Os),se.kT.refract=Ts(se.kT),se.Ft.refract=Ts(se.Ft),se.sI.refract=Ts(se.sI),Xe.refract=Ts(Xe),et.refract=Ts(et),rt.refract=Ts(rt),st.refract=Ts(st);const Cs={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...ms},Rs=e=>Bn(e)?hs(e):en(e),Fs=e=>Bn(e)||tn(e)||Array.isArray(e);const qs=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new rt;t._content=e.children.flat(1);const r=t.findElements(rs);if(r.length>0){r[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=at()}comment(e){if(0===this.processedDocumentCount){const t=new et(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,r=this.processedDocumentCount>=1;if(t){const t=new Xe("Only first document within YAML stream will be used. Rest will be discarded.");t.classes.push("warning"),this.maybeAddSourceMap(e,t),this.annotations.push(t)}return r?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new se.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new se.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}sequence(e){const t=new se.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}scalar(e){const t=this.namespace.toElement(e.content);return""===e.content&&e.style===Tr.Plain&&(t.classes.push("yaml-e-node"),t.classes.push("yaml-e-scalar")),this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,r=new Xe(t);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}error(e,t,r,n){const s=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new Xe(s);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===n.length){const e=new rt;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const r=new st;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)}};class Ls{cursor;constructor(e){this.cursor=e}stream(){return new Pn(this.cursor)}yaml_directive(){return new Pn(this.cursor)}tag_directive(){return new Pn(this.cursor)}reserved_directive(){return new Pn(this.cursor)}document(){return new Pn(this.cursor)}block_node(){return new Pn(this.cursor).setFieldName(this.cursor)}flow_node(){return new Pn(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Pn(this.cursor)}block_mapping_pair(){return new Pn(this.cursor)}flow_mapping(){return new Pn(this.cursor)}flow_pair(){return new Pn(this.cursor)}block_sequence(){return new Pn(this.cursor)}block_sequence_item(){return new Pn(this.cursor)}flow_sequence(){return new Pn(this.cursor)}plain_scalar(){return new Pn(this.cursor)}single_quote_scalar(){return new Pn(this.cursor)}double_quote_scalar(){return new Pn(this.cursor)}block_scalar(){return new Pn(this.cursor)}ERROR(){return new Pn(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Pn(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Ls(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Ls(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const $s=Ls,Vs=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),n=new $s(r),[s]=Array.from(n),i=new In,o=new qs,a=new Dr,c=new Qr,u=nn(s,i,{keyMap:kn,nodePredicate:Mn,state:{schema:a,sourceMap:t,referenceManager:c}});return nn(u.rootNode,o,{keyMap:Cs,nodeTypeGetter:Rs,nodePredicate:Fs,state:{sourceMap:t}})};const Ds=o((function(e,t){return m((function(r,n){return r[n]=e(t[n],n,t),r}),{},D(t))}));const Bs=i((function(e){return null==e}));const zs=o((function(e,t){if(0===e.length||Bs(t))return!1;for(var r=t,n=0;n<e.length;){if(Bs(r)||!T(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));var Us=o((function(e,t){return zs([e],t)}));const Gs=Us;const Ks=a((function(e,t,r){return e(f(t,r))})),Ws=(e,t)=>{const r=c(e,t);return Ds((e=>{if(He(e)&&Gs("$ref",e)&&Ks(ut,"$ref",e)){const t=Ie(["$ref"],e),n=br("#/",t);return Ie(n.split("/"),r)}return He(e)?Ws(e,r):e}),e)};const Ys=function(){return!0},Zs=e=>"string"==typeof(null==e?void 0:e.type)?e.type:hs(e),Hs={EphemeralObject:["content"],EphemeralArray:["content"],...ms},Qs=(e,t,{keyMap:r=Hs,...n}={})=>ys(e,t,{keyMap:r,nodeTypeGetter:Zs,nodePredicate:Ys,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});Qs[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Hs,...r}={})=>ys[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Zs,nodePredicate:Ys,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Xs=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 Js=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 ei{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Js(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 Xs(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}}const ti=e=>Bn(e)?zn(e)||Un(e)||Kn(e)||Gn(e)?e.toValue():Qs(e,new ei):e,ri=e=>{const t=e.meta.length>0?us(e.meta):void 0,r=e.attributes.length>0?us(e.attributes):void 0;return new e.constructor(void 0,t,r)},ni=(e,t)=>t.clone&&t.isMergeableElement(e)?ai(ri(e),e,t):e,si=e=>"function"!=typeof e.customMetaMerge?e=>us(e):e.customMetaMerge,ii=e=>"function"!=typeof e.customAttributesMerge?e=>us(e):e.customAttributesMerge,oi={clone:!0,isMergeableElement:e=>Wn(e)||Yn(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>ni(e,r))),objectElementMerge:(e,t,r)=>{const n=Wn(e)?ri(e):ri(t);return Wn(e)&&e.forEach(((e,t,s)=>{const i=fs(s);i.value=ni(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=ti(s);let a;if(Wn(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);a=fs(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return ai;const r=t.customMerge(e,t);return"function"==typeof r?r:ai})(s,r)(n,t)}else a=fs(i),a.value=ni(t,r);n.remove(o),n.content.push(a)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function ai(e,t,r){var n,s,i;const o={...oi,...r};o.isMergeableElement=null!==(n=o.isMergeableElement)&&void 0!==n?n:oi.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:oi.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:oi.objectElementMerge;const a=Yn(t);if(!(a===Yn(e)))return ni(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=si(o)(e.meta,t.meta),c.attributes=ii(o)(e.attributes,t.attributes),c}ai.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new se.Sh:e.reduce(((e,r)=>ai(e,r,t)),ri(e[0]))};const ci=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ai(t.meta,e.meta),ns(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ai(t.attributes,e.attributes))}};const ui=class extends ci{enter(e){return this.element=us(e),Jr}},li=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},pi=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:pi(r,[...t,r])},fi=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>pi(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),n=e[0];if(!e.every((e=>e===n)))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(s),o=pi(s);for(let t of e){let e=pi(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(li(i,n,["constructor",...r]),o.push(n))}}return i.constructor=t,i},hi=e=>e.filter(((t,r)=>e.indexOf(t)==r)),di=(e,t)=>{const r=t.map((e=>pi(e)));let n=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][n];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}n++}},_i=(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(di(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,n)=>void 0!==di(n,e)||void 0!==t[n],get:(r,n)=>(di(n,e)||t)[n],set(t,r,n){const s=di(r,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[r]=n,!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)))))}),mi=null,yi="copy",gi="copy",vi="deep",bi=new WeakMap,wi=e=>bi.get(e),Ei=(e,t)=>{var r,n;const s=hi([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=hi([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},xi=(e,t)=>{var r,n,s,i;return{property:Ei(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:Ei(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Si=(e,t)=>{var r,n,s,i,o,a;return{class:hi([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:xi(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:xi(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Ai=new Map,ji=(...e)=>{const t=((...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const s=[...pi(e.prototype).map((e=>e.constructor)),...null!==(t=wi(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of s)n.add(e);r.add(e),n.delete(e)}return[...r]})(...e).map((e=>Ai.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Si(e,t)))},Oi=e=>{let t=Ai.get(e);return t||(t={},Ai.set(e,t)),t};function Pi(...e){var t,r,n;const s=e.map((e=>e.prototype)),i=mi;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t={[i]:function(...t){for(let r of e)r.apply(this,t)}};s.push(t)}function o(...t){for(const r of e)li(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===gi?fi(s,o):(a=s,c=o,_i([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===yi?fi(e,null,["prototype"]):_i(e,Function.prototype));let u=o;if("none"!==vi){const s="deep"===vi?ji(...e):((...e)=>{const t=e.map((e=>Oi(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Si(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}ki(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},u),ki(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},u.prototype)}var l,p;return l=u,p=e,bi.set(l,p),u}const ki=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const Mi=o((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r}));const Ni=class extends ci{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Mi(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Ie(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Te(Ke,["visitors",...e],this.specObj)?Ie(["visitors",...e],this.specObj):Ie(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof ui&&(null==n?void 0:n.constructor)===ui?us(t):(ys(t,n,r),n.element)}};class Ii extends se.Om{constructor(e,t,r){super(e,t,r),this.element="requirementLevel"}}const Ti=Ii;class Ci extends(Pi(Ni,ui)){StringElement(e){const t=new Ti(ti(e));return this.copyMetaAndAttributes(e,t),this.element=t,Jr}}const Ri=Ci;class Fi extends se.wE{constructor(e,t,r){super(e,t,r),this.element="standardIdentifier"}}const qi=Fi;class Li extends(Pi(Ni,ui)){constructor(e){super(e),this.element=new qi}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","StandardIdentifier"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Jr}}const $i=Li;class Vi extends se.Sh{constructor(e,t,r){super(e,t,r),this.element="requirement"}get subject(){return this.get("subject")}set subject(e){this.set("subject",e)}get level(){return this.get("level")}set level(e){this.set("level",e)}get values(){return this.get("values")}set values(e){this.set("values",e)}get follows(){return this.get("follows")}set follows(e){this.set("follows",e)}}const Di=Vi;const Bi=class extends Ni{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,n,s)=>{if(zn(n)&&r.includes(ti(n))&&!this.ignoredFields.includes(ti(n))){const r=this.toRefractedElement([...t,"fixedFields",ti(n)],e),i=new se.Pr(us(n),r);i.classes.push("fixed-field"),this.copyMetaAndAttributes(s,i),this.element.content.push(i)}else this.ignoredFields.includes(ti(n))||this.element.content.push(us(s))})),this.copyMetaAndAttributes(e,this.element),Jr}};class zi extends(Pi(Bi,ui)){constructor(e){super(e),this.element=new Di,this.specPath=ee(["document","objects","Requirement"])}}const Ui=zi;class Gi extends se.Sh{constructor(e,t,r){super(e,t,r),this.element="scenario"}get description(){return this.get("description")}set description(e){this.set("description",e)}get when(){return this.get("when")}set when(e){this.set("when",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}}const Ki=Gi;class Wi extends(Pi(Bi,ui)){constructor(e){super(e),this.element=new Ki,this.specPath=ee(["document","objects","Scenario"])}}const Yi=Wi;class Zi extends(Pi(Ni,ui)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("scenario-then")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Requirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Jr}}const Hi=Zi;class Qi extends se.Sh{constructor(e,t,r){super(e,t,r),this.element="standard"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get iri(){return this.get("iri")}set iri(e){this.set("iri",e)}get level(){return this.get("level")}set level(e){this.set("level",e)}}const Xi=Qi;class Ji extends(Pi(Bi,ui)){constructor(e){super(e),this.element=new Xi,this.specPath=ee(["document","objects","Standard"])}}const eo=Ji;class to extends se.Sh{constructor(e,t,r){super(e,t,r),this.element="principle"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get iri(){return this.get("iri")}set iri(e){this.set("iri",e)}get level(){return this.get("level")}set level(e){this.set("level",e)}}const ro=to;class no extends(Pi(Bi,ui)){constructor(e){super(e),this.element=new ro,this.specPath=ee(["document","objects","Principle"])}}const so=no;class io extends se.Sh{constructor(e,t,r){super(e,t,r),this.element="info"}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const oo=io;class ao extends(Pi(Bi,ui)){constructor(e){super(e),this.specPath=ee(["document","objects","Info"]),this.element=new oo}}const co=ao;class uo extends se.Sh{constructor(e,t,r){super(e,t,r),this.element="main",this.classes.push("api")}get version(){return this.get("version")}set version(e){this.set("version",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get principles(){return this.get("principles")}set principles(e){this.set("principles",e)}get standards(){return this.get("standards")}set standards(e){this.set("standards",e)}get scenarios(){return this.get("scenarios")}set scenarios(e){this.set("scenarios",e)}}const lo=uo;class po extends(Pi(Bi,ui)){constructor(e){super(e),this.element=new lo,this.specPath=ee(["document","objects","Main"])}}const fo=po;class ho extends(Pi(Ni,ui)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("main-principles")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Principle"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Jr}}const _o=ho;class mo extends(Pi(Ni,ui)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("main-standards")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Standard"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Jr}}const yo=mo;class go extends(Pi(Ni,ui)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("main-scenarios")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Scenario"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Jr}}const vo={visitors:{value:ui,document:{objects:{Main:{$visitor:fo,fixedFields:{version:{$ref:"#/visitors/value"},info:{$ref:"#/visitors/document/objects/Info"},principles:_o,standards:yo,scenarios:go}},Info:{$visitor:co,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Principle:{$visitor:so,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},iri:{$ref:"#/visitors/value"},level:{$ref:"#/visitors/document/objects/RequirementLevel"}}},Standard:{$visitor:eo,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},level:{$ref:"#/visitors/document/objects/RequirementLevel"},iri:{$ref:"#/visitors/value"}}},Scenario:{$visitor:Yi,fixedFields:{description:{$ref:"#/visitors/value"},when:{$ref:"#/visitors/document/objects/StandardIdentifier"},then:Hi}},Requirement:{$visitor:Ui,fixedFields:{subject:{$ref:"#/visitors/document/objects/StandardIdentifier"},level:{$ref:"#/visitors/document/objects/RequirementLevel"},values:{$ref:"#/visitors/value"},follows:{$ref:"#/visitors/value"}}},StandardIdentifier:{$visitor:$i},RequirementLevel:{$visitor:Ri}}}}},bo=e=>{if(Bn(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},wo={MainElement:["content"],InfoElement:["content"],PrincipleElement:["content"],StandardElement:["content"],ScenarioElement:["content"],RequirementElement:["content"],StandardIdentifierElement:["content"],RequirementLevelElement:[],...ms},Eo=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lo||e(n)&&t("main",n)&&r("object",n))),xo=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof oo||e(n)&&t("info",n)&&r("object",n))),So=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ro||e(n)&&t("principle",n)&&r("object",n))),Ao=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Di||e(n)&&t("requirement",n)&&r("object",n))),jo=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ti||e(n)&&t("requirementLevel",n)&&r("string",n))),Oo=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ki||e(n)&&t("scenario",n)&&r("object",n))),Po=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xi||e(n)&&t("standard",n)&&r("object",n))),ko=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qi||e(n)&&t("standardIdentifier",n)&&r("array",n))),Mo={namespace:e=>{const{base:t}=e;return t.register("info",oo),t.register("main",lo),t.register("principle",ro),t.register("requirement",Di),t.register("requirementLevel",Ti),t.register("scenario",Ki),t.register("standard",Xi),t.register("standardIdentifier",qi),t}},No=()=>{const e=at(Mo);return{predicates:{...t,isStringElement:zn},namespace:e}},Io=(e,{specPath:t=["visitors","document","objects","Main","$visitor"],plugins:r=[]}={})=>{const n=(0,se.e)(e),s=Ws(vo),i=new(Ie(t,s))({specObj:s});return ys(n,i),Ns(i.element,r,{toolboxCreator:No,visitorOptions:{keyMap:wo,nodeTypeGetter:bo}})},To=e=>(t,r={})=>Io(t,{...r,specPath:e});lo.refract=To(["visitors","document","objects","Main","$visitor"]),oo.refract=To(["visitors","document","objects","Info","$visitor"]),ro.refract=To(["visitors","document","objects","Principle","$visitor"]),Di.refract=To(["visitors","document","objects","Requirement","$visitor"]),Ti.refract=To(["visitors","document","objects","RequirementLevel","$visitor"]),Ki.refract=To(["visitors","document","objects","Scenario","$visitor"]),Xi.refract=To(["visitors","document","objects","Standard","$visitor"]),qi.refract=To(["visitors","document","objects","StandardIdentifier","$visitor"]);const Co=p(-1);const Ro=class extends mt{};const Fo=class extends Ro{};const qo=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Fo("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Fo("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Fo("latest method in MediaTypes class is not yet implemented.")}};class Lo extends qo{filterByFormat(e="generic"){const t="generic"===e?"apidesignsystems;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2021-05-07",t="generic"){const r="generic"===t?`apidesignsystems;version=${e}`:`apidesignsystems+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return Co(this.filterByFormat(e))}}const $o=new Lo("application/vnd.aai.apidesignsystems;version=2021-05-07","application/vnd.aai.apidesignsystems+json;version=2021-05-07","application/vnd.aai.apidesignsystems+yaml;version=2021-05-07"),Vo=new Lo(...$o.filterByFormat("generic"),...$o.filterByFormat("yaml")),Do=/(?<YAML>^(["']?)version\2\s*:\s*(["']?)(?<version_yaml>2021-05-07)\3)|(?<JSON>"version"\s*:\s*"(?<version_json>2021-05-07)")/m,Bo=async e=>Do.test(e)&&await(async e=>{try{return"ERROR"!==(await bt(e)).rootNode.type}catch{return!1}})(e),zo=async(e,t={})=>{const r=h({},"refractorOpts",t),n=_(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1}={})=>{const r=await bt(e);return Vs(r,{sourceMap:t})})(e,n),{result:i}=s;if(ne(i)){const e=lo.refract(i,r);e.classes.push("result"),s.replaceResult(e)}return s},Uo=at(Mo)})(),n})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterApiDesignSystemsYaml=t():e.apidomParserAdapterApiDesignSystemsYaml=t()}(self,(()=>(()=>{var e={3103:(e,t,r)=>{var n=r(4715)(r(8942),"DataView");e.exports=n},5098:(e,t,r)=>{var n=r(3305),s=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 n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1386:(e,t,r)=>{var n=r(2393),s=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 n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9770:(e,t,r)=>{var n=r(4715)(r(8942),"Map");e.exports=n},8250:(e,t,r)=>{var n=r(9753),s=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 n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9413:(e,t,r)=>{var n=r(4715)(r(8942),"Promise");e.exports=n},4512:(e,t,r)=>{var n=r(4715)(r(8942),"Set");e.exports=n},3212:(e,t,r)=>{var n=r(8250),s=r(1877),i=r(8006);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},1340:(e,t,r)=>{var n=r(1386),s=r(4103),i=r(1779),o=r(4162),a=r(7462),c=r(6638);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},5650:(e,t,r)=>{var n=r(8942).Symbol;e.exports=n},1623:(e,t,r)=>{var n=r(8942).Uint8Array;e.exports=n},9270:(e,t,r)=>{var n=r(4715)(r(8942),"WeakMap");e.exports=n},9847:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},358:(e,t,r)=>{var n=r(6137),s=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&&s(e),p=!r&&!l&&o(e),f=!r&&!l&&!p&&c(e),h=r||l||p||f,d=h?n(e.length,String):[],_=d.length;for(var m in e)!t&&!u.call(e,m)||h&&("length"==m||p&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,_))||d.push(m);return d}},1129:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},6465:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},7034:(e,t,r)=>{var n=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},8244:(e,t,r)=>{var n=r(1129),s=r(3142);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},7379:(e,t,r)=>{var n=r(5650),s=r(8870),i=r(9005),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},6027:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},4687:(e,t,r)=>{var n=r(353),s=r(547);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,a))}},353:(e,t,r)=>{var n=r(1340),s=r(3934),i=r(8861),o=r(1182),a=r(8486),c=r(3142),u=r(5853),l=r(8666),p="[object Arguments]",f="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,_,m,y){var g=c(e),v=c(t),b=g?f:a(e),w=v?f:a(t),E=(b=b==p?h:b)==h,x=(w=w==p?h:w)==h,S=b==w;if(S&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(S&&!E)return y||(y=new n),g||l(e)?s(e,t,r,_,m,y):i(e,t,b,r,_,m,y);if(!(1&r)){var A=E&&d.call(e,"__wrapped__"),j=x&&d.call(t,"__wrapped__");if(A||j){var O=A?e.value():e,P=j?t.value():t;return y||(y=new n),m(O,P,r,_,y)}}return!!S&&(y||(y=new n),o(e,t,r,_,m,y))}},9624:(e,t,r)=>{var n=r(3655),s=r(4759),i=r(1580),o=r(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?f:a).test(o(e))}},674:(e,t,r)=>{var n=r(7379),s=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)&&s(e.length)&&!!o[n(e)]}},195:(e,t,r)=>{var n=r(4882),s=r(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6137:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,r)=>{var n=r(8942)["__core-js_shared__"];e.exports=n},3934:(e,t,r)=>{var n=r(3212),s=r(6465),i=r(5568);e.exports=function(e,t,r,o,a,c){var u=1&r,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var f=c.get(e),h=c.get(t);if(f&&h)return f==t&&h==e;var d=-1,_=!0,m=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++d<l;){var y=e[d],g=t[d];if(o)var v=u?o(g,y,d,t,e,c):o(y,g,d,e,t,c);if(void 0!==v){if(v)continue;_=!1;break}if(m){if(!s(t,(function(e,t){if(!i(m,t)&&(y===e||a(y,e,r,o,c)))return m.push(t)}))){_=!1;break}}else if(y!==g&&!a(y,g,r,o,c)){_=!1;break}}return c.delete(e),c.delete(t),_}},8861:(e,t,r)=>{var n=r(5650),s=r(1623),i=r(6285),o=r(3934),a=r(5894),c=r(7447),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,p,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=a;case"[object Set]":var d=1&n;if(h||(h=c),e.size!=t.size&&!d)return!1;var _=f.get(e);if(_)return _==t;n|=2,f.set(e,t);var m=o(h(e),h(t),n,u,p,f);return f.delete(e),m;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},1182:(e,t,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!c)return!1;for(var p=l;p--;){var f=u[p];if(!(c?f in t:s.call(t,f)))return!1}var h=a.get(e),d=a.get(t);if(h&&d)return h==t&&d==e;var _=!0;a.set(e,t),a.set(t,e);for(var m=c;++p<l;){var y=e[f=u[p]],g=t[f];if(i)var v=c?i(g,y,f,t,e,a):i(y,g,f,e,t,a);if(!(void 0===v?y===g||o(y,g,r,i,a):v)){_=!1;break}m||(m="constructor"==f)}if(_&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(_=!1)}return a.delete(e),a.delete(t),_}},4967:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},393:(e,t,r)=>{var n=r(8244),s=r(7979),i=r(1211);e.exports=function(e){return n(e,i,s)}},4700:(e,t,r)=>{var n=r(9067);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},4715:(e,t,r)=>{var n=r(9624),s=r(155);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},8870:(e,t,r)=>{var n=r(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[a]=r:delete e[a]),s}},7979:(e,t,r)=>{var n=r(9847),s=r(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},8486:(e,t,r)=>{var n=r(3103),s=r(9770),i=r(9413),o=r(4512),a=r(9270),c=r(7379),u=r(4066),l="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",d="[object DataView]",_=u(n),m=u(s),y=u(i),g=u(o),v=u(a),b=c;(n&&b(new n(new ArrayBuffer(1)))!=d||s&&b(new s)!=l||i&&b(i.resolve())!=p||o&&b(new o)!=f||a&&b(new a)!=h)&&(b=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case _:return d;case m:return l;case y:return p;case g:return f;case v:return h}return t}),e.exports=b},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,r)=>{var n=r(4497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},5276:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},5071:(e,t,r)=>{var n=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,r)=>{var n,s=r(1950),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,r)=>{var n=r(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},7144:(e,t,r)=>{var n=r(7034);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7452:(e,t,r)=>{var n=r(7034);e.exports=function(e){return n(this.__data__,e)>-1}},3964:(e,t,r)=>{var n=r(7034);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},9753:(e,t,r)=>{var n=r(5098),s=r(1386),i=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},5681:(e,t,r)=>{var n=r(4700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).get(e)}},4732:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).has(e)}},9068:(e,t,r)=>{var n=r(4700);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},4497:(e,t,r)=>{var n=r(4715)(Object,"create");e.exports=n},8121:(e,t,r)=>{var n=r(3766)(Object.keys,Object);e.exports=n},2306:(e,t,r)=>{e=r.nmd(e);var n=r(4967),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},8942:(e,t,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},7447:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},4103:(e,t,r)=>{var n=r(1386);e.exports=function(){this.__data__=new n,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,r)=>{var n=r(1386),s=r(9770),i=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||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}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3283:(e,t,r)=>{var n=r(6027),s=r(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,r)=>{var n=r(3655),s=r(5387);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},2563:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},5853:(e,t,r)=>{e=r.nmd(e);var n=r(8942),s=r(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},6343:(e,t,r)=>{var n=r(4687);e.exports=function(e,t){return n(e,t)}},3655:(e,t,r)=>{var n=r(7379),s=r(1580);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,r)=>{var n=r(7379),s=r(3142),i=r(547);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},8666:(e,t,r)=>{var n=r(674),s=r(9460),i=r(2306),o=i&&i.isTypedArray,a=o?s(o):n;e.exports=a},1211:(e,t,r)=>{var n=r(358),s=r(195),i=r(6529);e.exports=function(e){return i(e)?n(e):s(e)}},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,r)=>{const n=r(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5735:(e,t,r)=>{const n=r(9310),s=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(n,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,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 n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(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},3311:(e,t,r)=>{const n=r(1517),s=r(4123);class i extends s{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(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,r)=>{const n=r(8631),s=r(3004),i=r(8712),o=r(2536),a=r(2555),c=r(9796),u=r(7309),l=r(5642),p=r(9620),f=r(593),h=r(4123),d=r(3311),_=r(2322);function m(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(m));if("object"==typeof e){return new l(e)}return e}n.prototype.ObjectElement=l,n.prototype.RefElement=f,n.prototype.MemberElement=u,n.prototype.refract=m,h.prototype.refract=m,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:f,refract:m,ArraySlice:h,ObjectSlice:d,KeyValuePair:_}},9620:(e,t,r)=>{const n=r(8631);e.exports=class extends n{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)}}},593:(e,t,r)=>{const n=r(8631);e.exports=class extends n{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)}}},8326:(e,t,r)=>{const n=r(5735),s=r(7547);t.g$=n,t.KeyValuePair=r(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,r(394),r(3148)},9796:(e,t,r)=>{const n=r(1517),s=r(8631),i=r(4123);class o extends s{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((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}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||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2555:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,r)=>{const n=r(6343),s=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 s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(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 n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},7309:(e,t,r)=>{const n=r(2322),s=r(8631);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},3004:(e,t,r)=>{const n=r(8631);e.exports=class extends n{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")}}},2536:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},5642:(e,t,r)=>{const n=r(1517),s=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(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.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(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},8712:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,r)=>{const n=r(394);e.exports=class extends n{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 n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)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 n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}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([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),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 n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);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 n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},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]))}))}}},8583:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(r=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])},6850:(e,t,r)=>{"use strict";t.MH=void 0;const n=r(8583);function s(e,t,r){const s=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(s)||void 0!==r&&r!==e.length)throw new SyntaxError(n.errorMessages.get(t));return s}function i(e,t){const r=s(e,n.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=s(t,n.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,e)}return String.fromCharCode(r)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(e,t=!1){return e.replace(a,(function(e,r,a,c,u,l,p,f,h){if(void 0!==r)return"\\";if(void 0!==a)return function(e){const t=s(e,n.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(a);if(void 0!==c)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(n.errorMessages.get(n.ErrorType.MalformedUnicode));var t;const r=s(e.slice(1,-1),n.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(e){throw e instanceof RangeError?new SyntaxError(n.errorMessages.get(n.ErrorType.CodePointLimit)):e}}(c);if(void 0!==u)return i(u,l);if(void 0!==p)return i(p);if("0"===f)return"\0";if(void 0!==f)return function(e,t=!1){if(t)throw new SyntaxError(n.errorMessages.get(n.ErrorType.OctalDeprecation));const r=parseInt(e,8);return String.fromCharCode(r)}(f,!t);if(void 0!==h)return d=h,o.get(d)||d;var d;throw new SyntaxError(n.errorMessages.get(n.ErrorType.EndOfString))}))}t.MH=c},3833:(e,t,r)=>{var n=void 0!==n?n:{},s=function(){var t,s="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(n=Object.assign({},n,o),t=new Promise((t=>{var o,a={};for(o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);var c,u,l,p,f=[],h="./this.program",d=function(e,t){throw t};l="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!p;var _,m,y,g,v,b="";c?(b=p?r(4142).dirname(b)+"/":"//",_=function(e,t){return g||(g=r(3078)),v||(v=r(4142)),e=v.normalize(e),g.readFileSync(e,t?null:"utf8")},y=function(e){var t=_(e,!0);return t.buffer||(t=new Uint8Array(t)),T(t.buffer),t},process.argv.length>1&&(h=process.argv[1].replace(/\\/g,"/")),f=process.argv.slice(2),e.exports=n,d=function(e){process.exit(e)},n.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(_=function(e){return read(e)}),y=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(T("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?f=scriptArgs:void 0!==arguments&&(f=arguments),"function"==typeof quit&&(d=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||p)&&(p?b=self.location.href:void 0!==s&&s.currentScript&&(b=s.currentScript.src),b=0!==b.indexOf("blob:")?b.substr(0,b.lastIndexOf("/")+1):"",_=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(y=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),m=function(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)}),n.print||console.log.bind(console);var w=n.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(n[o]=a[o]);a=null,n.arguments&&(f=n.arguments),n.thisProgram&&(h=n.thisProgram),n.quit&&(d=n.quit);var E,x=16,S=[];function A(e,t){if(!E){E=new WeakMap;for(var r=0;r<H.length;r++){var n=H.get(r);n&&E.set(n,r)}}if(E.has(e))return E.get(e);var s=function(){if(S.length)return S.pop();try{H.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return H.length-1}();try{H.set(s,e)}catch(r){if(!(r instanceof TypeError))throw r;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==t[0]?[]:[r[t[0]]]},s=1;s<t.length;++s)n.parameters.push(r[t[s]]);return new WebAssembly.Function(n,e)}var i=[1,0,1,96],o=t.slice(0,1),a=t.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),s=0;s<a.length;++s)i.push(c[a[s]]);"v"==o?i.push(0):i=i.concat([1,c[o]]),i[1]=i.length-2;var u=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:e}}).exports.f}(e,t);H.set(s,i)}return E.set(e,s),s}var j,O=n.dynamicLibraries||[];n.wasmBinary&&(j=n.wasmBinary);var P,k=n.noExitRuntime||!0;function M(e,t,r,n){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":R[e>>0]=t;break;case"i16":q[e>>1]=t;break;case"i32":L[e>>2]=t;break;case"i64":le=[t>>>0,(ue=t,+Math.abs(ue)>=1?ue>0?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],L[e>>2]=le[0],L[e+4>>2]=le[1];break;case"float":$[e>>2]=t;break;case"double":V[e>>3]=t;break;default:ae("invalid type for setValue: "+r)}}function N(e,t,r){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return R[e>>0];case"i16":return q[e>>1];case"i32":case"i64":return L[e>>2];case"float":return $[e>>2];case"double":return V[e>>3];default:ae("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ae("no native wasm support detected");var I=!1;function T(e,t){e||ae("Assertion failed: "+t)}var C,R,F,q,L,$,V,D="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function B(e,t,r){for(var n=t+r,s=t;e[s]&&!(s>=n);)++s;if(s-t>16&&e.subarray&&D)return D.decode(e.subarray(t,s));for(var i="";t<s;){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}function z(e,t){return e?B(F,e,t):""}function U(e,t,r,n){if(!(n>0))return 0;for(var s=r,i=r+n-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)),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-s}function G(e,t,r){return U(e,F,t,r)}function K(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}function W(e){var t=K(e)+1,r=ze(t);return U(e,R,r,t),r}function Y(e){C=e,n.HEAP8=R=new Int8Array(e),n.HEAP16=q=new Int16Array(e),n.HEAP32=L=new Int32Array(e),n.HEAPU8=F=new Uint8Array(e),n.HEAPU16=new Uint16Array(e),n.HEAPU32=new Uint32Array(e),n.HEAPF32=$=new Float32Array(e),n.HEAPF64=V=new Float64Array(e)}var Z=n.INITIAL_MEMORY||33554432;(P=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:Z/65536,maximum:32768}))&&(C=P.buffer),Z=C.byteLength,Y(C);var H=new WebAssembly.Table({initial:17,element:"anyfunc"}),Q=[],X=[],J=[],ee=[],te=!1,re=0,ne=null,se=null;function ie(e){re++,n.monitorRunDependencies&&n.monitorRunDependencies(re)}function oe(e){if(re--,n.monitorRunDependencies&&n.monitorRunDependencies(re),0==re&&(null!==ne&&(clearInterval(ne),ne=null),se)){var t=se;se=null,t()}}function ae(e){throw n.onAbort&&n.onAbort(e),w(e+=""),I=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}n.preloadedImages={},n.preloadedAudios={},n.preloadedWasm={};var ce,ue,le;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function fe(e){return e.startsWith("file://")}function he(e){try{if(e==ce&&j)return new Uint8Array(j);if(y)return y(e);throw"both async and sync fetching of the wasm failed"}catch(e){ae(e)}}pe(ce="tree-sitter.wasm")||(ce=function(e){return n.locateFile?n.locateFile(e,b):b+e}(ce));var de={},_e={get:function(e,t){return de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),de[t]}};function me(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?H.get(r)():H.get(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(n)}}function ye(e){var t=0;function r(){for(var r=0,n=1;;){var s=e[t++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}if(e instanceof WebAssembly.Module){var n=WebAssembly.Module.customSections(e,"dylink");T(0!=n.length,"need dylink section"),e=new Int8Array(n[0])}else T(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),T(0===e[8],"need the dylink section to be first"),t=9,r(),T(6===e[t]),T(e[++t]==="d".charCodeAt(0)),T(e[++t]==="y".charCodeAt(0)),T(e[++t]==="l".charCodeAt(0)),T(e[++t]==="i".charCodeAt(0)),T(e[++t]==="n".charCodeAt(0)),T(e[++t]==="k".charCodeAt(0)),t++;var s={};s.memorySize=r(),s.memoryAlign=r(),s.tableSize=r(),s.tableAlign=r();var i=r();s.neededDynlibs=[];for(var o=0;o<i;++o){var a=r(),c=e.subarray(t,t+a);t+=a;var u=B(c,0);s.neededDynlibs.push(u)}return s}var ge=0;function ve(){return k||ge>0}function be(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function we(e,t){for(var r in e)if(e.hasOwnProperty(r)){Le.hasOwnProperty(r)||(Le[r]=e[r]);var s=be(r);n.hasOwnProperty(s)||(n[s]=e[r])}}var Ee={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xe=5250880;function Se(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function Ae(e,t){var r={};for(var n in e){var s=e[n];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),r[n]=s}return function(e){for(var t in e)if(!Se(t)){var r=!1,n=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],r=!0),de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==de[t].value)&&("function"==typeof n?de[t].value=A(n):"number"==typeof n?de[t].value=n:w("unhandled export type for `"+t+"`: "+typeof n))}}(r),r}function je(e,t){var r,s;return t&&(r=Le["orig$"+e]),r||(r=Le[e]),r||(r=n[be(e)]),!r&&e.startsWith("invoke_")&&(s=e.split("_")[1],r=function(){var e=De();try{return function(e,t,r){return e.includes("j")?function(e,t,r){var s=n["dynCall_"+e];return r&&r.length?s.apply(null,[t].concat(r)):s.call(null,t)}(e,t,r):H.get(t).apply(null,r)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Be(e),t!==t+0&&"longjmp"!==t)throw t;Ue(1,0)}}),r}function Oe(e,t){var r=ye(e);function n(){var n=Math.pow(2,r.memoryAlign);n=Math.max(n,x);var s,i,o,a=(s=function(e){if(te)return $e(e);var t=xe,r=t+e+15&-16;return xe=r,de.__heap_base.value=r,t}(r.memorySize+n),(i=n)||(i=x),Math.ceil(s/i)*i),c=H.length;H.grow(r.tableSize);for(var u=a;u<a+r.memorySize;u++)R[u]=0;for(u=c;u<c+r.tableSize;u++)H.set(u,null);var l=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return a;case"__table_base":return c}return t in Le?Le[t]:(t in e||(e[t]=function(){return r||(r=function(e){var t=je(e,!1);return t||(t=o[e]),t}(t)),r.apply(null,arguments)}),e[t]);var r}}),p={"GOT.mem":new Proxy({},_e),"GOT.func":new Proxy({},_e),env:l,wasi_snapshot_preview1:l};function f(e){for(var n=0;n<r.tableSize;n++){var s=H.get(c+n);s&&E.set(s,c+n)}o=Ae(e.exports,a),t.allowUndefined||ke();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(te?i():X.push(i)),o}if(t.loadAsync){if(e instanceof WebAssembly.Module){var h=new WebAssembly.Instance(e,p);return Promise.resolve(f(h))}return WebAssembly.instantiate(e,p).then((function(e){return f(e.instance)}))}var d=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return f(h=new WebAssembly.Instance(d,p))}return t.loadAsync?r.neededDynlibs.reduce((function(e,r){return e.then((function(){return Pe(r,t)}))}),Promise.resolve()).then((function(){return n()})):(r.neededDynlibs.forEach((function(e){Pe(e,t)})),n())}function Pe(e,t){"__main__"!=e||Ee.loadedLibNames[e]||(Ee.loadedLibs[-1]={refcount:1/0,name:"__main__",module:n.asm,global:!0},Ee.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var r,s=Ee.loadedLibNames[e];if(s)return r=Ee.loadedLibs[s],t.global&&!r.global&&(r.global=!0,"loading"!==r.module&&we(r.module)),t.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,t.loadAsync?Promise.resolve(s):s;function i(e){if(t.fs){var r=t.fs.readFile(e,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),t.loadAsync?Promise.resolve(r):r}return t.loadAsync?(n=e,fetch(n,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+n+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):y(e);var n}function o(){if(void 0!==n.preloadedWasm&&void 0!==n.preloadedWasm[e]){var r=n.preloadedWasm[e];return t.loadAsync?Promise.resolve(r):r}return t.loadAsync?i(e).then((function(e){return Oe(e,t)})):Oe(i(e),t)}function a(e){r.global&&we(e),r.module=e}return s=Ee.nextHandle++,r={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},Ee.loadedLibNames[e]=s,Ee.loadedLibs[s]=r,t.loadAsync?o().then((function(e){return a(e),s})):(a(o()),s)}function ke(){for(var e in de)if(0==de[e].value){var t=je(e,!0);"function"==typeof t?de[e].value=A(t,t.sig):"number"==typeof t?de[e].value=t:T(!1,"bad export type for `"+e+"`: "+typeof t)}}n.___heap_base=xe;var Me,Ne=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Ie(){ae()}n._abort=Ie,Ie.sig="v",Me=c?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Te(e,t){var r;if(0===e)r=Date.now();else{if(1!==e&&4!==e)return 28,L[Ve()>>2]=28,-1;r=Me()}return L[t>>2]=r/1e3|0,L[t+4>>2]=r%1e3*1e3*1e3|0,0}function Ce(e){try{return P.grow(e-C.byteLength+65535>>>16),Y(P.buffer),1}catch(e){}}function Re(e){Ye(e)}function Fe(e){}Te.sig="iii",Re.sig="vi",Fe.sig="vi";var qe,Le={__heap_base:xe,__indirect_function_table:H,__memory_base:1024,__stack_pointer:Ne,__table_base:1,abort:Ie,clock_gettime:Te,emscripten_memcpy_big:function(e,t,r){F.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){var t,r=F.length;if((e>>>=0)>2147483648)return!1;for(var n=1;n<=4;n*=2){var s=r*(1+.2/n);if(s=Math.min(s,e+100663296),Ce(Math.min(2147483648,((t=Math.max(e,s))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Re,memory:P,setTempRet0:Fe,tree_sitter_log_callback:function(e,t){if(ut){const r=z(t);ut(r,0!==e)}},tree_sitter_parse_callback:function(e,t,r,n,s){var i=ct(t,{row:r,column:n});"string"==typeof i?(M(s,i.length,"i32"),function(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=(r-=2)<2*e.length?r/2:e.length,s=0;s<n;++s){var i=e.charCodeAt(s);q[t>>1]=i,t+=2}q[t>>1]=0}(i,e,10240)):M(s,0,"i32")}},$e=(function(){var e={env:Le,wasi_snapshot_preview1:Le,"GOT.mem":new Proxy(Le,_e),"GOT.func":new Proxy(Le,_e)};function t(e,t){var r=e.exports;r=Ae(r,1024),n.asm=r;var s,i=ye(t);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),we(r),s=n.asm.__wasm_call_ctors,X.unshift(s),oe()}function r(e){t(e.instance,e.module)}function s(t){return function(){if(!j&&(l||p)){if("function"==typeof fetch&&!fe(ce))return fetch(ce,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ce+"'";return e.arrayBuffer()})).catch((function(){return he(ce)}));if(m)return new Promise((function(e,t){m(ce,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return he(ce)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){w("failed to asynchronously prepare wasm: "+e),ae(e)}))}if(ie(),n.instantiateWasm)try{return n.instantiateWasm(e,t)}catch(e){return w("Module.instantiateWasm callback failed with error: "+e),!1}j||"function"!=typeof WebAssembly.instantiateStreaming||pe(ce)||fe(ce)||"function"!=typeof fetch?s(r):fetch(ce,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return w("wasm streaming compile failed: "+e),w("falling back to ArrayBuffer instantiation"),s(r)}))}))}(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.__wasm_call_ctors).apply(null,arguments)},n._malloc=function(){return($e=n._malloc=n.asm.malloc).apply(null,arguments)}),Ve=(n._calloc=function(){return(n._calloc=n.asm.calloc).apply(null,arguments)},n._realloc=function(){return(n._realloc=n.asm.realloc).apply(null,arguments)},n._free=function(){return(n._free=n.asm.free).apply(null,arguments)},n._ts_language_symbol_count=function(){return(n._ts_language_symbol_count=n.asm.ts_language_symbol_count).apply(null,arguments)},n._ts_language_version=function(){return(n._ts_language_version=n.asm.ts_language_version).apply(null,arguments)},n._ts_language_field_count=function(){return(n._ts_language_field_count=n.asm.ts_language_field_count).apply(null,arguments)},n._ts_language_symbol_name=function(){return(n._ts_language_symbol_name=n.asm.ts_language_symbol_name).apply(null,arguments)},n._ts_language_symbol_for_name=function(){return(n._ts_language_symbol_for_name=n.asm.ts_language_symbol_for_name).apply(null,arguments)},n._ts_language_symbol_type=function(){return(n._ts_language_symbol_type=n.asm.ts_language_symbol_type).apply(null,arguments)},n._ts_language_field_name_for_id=function(){return(n._ts_language_field_name_for_id=n.asm.ts_language_field_name_for_id).apply(null,arguments)},n._memcpy=function(){return(n._memcpy=n.asm.memcpy).apply(null,arguments)},n._ts_parser_delete=function(){return(n._ts_parser_delete=n.asm.ts_parser_delete).apply(null,arguments)},n._ts_parser_reset=function(){return(n._ts_parser_reset=n.asm.ts_parser_reset).apply(null,arguments)},n._ts_parser_set_language=function(){return(n._ts_parser_set_language=n.asm.ts_parser_set_language).apply(null,arguments)},n._ts_parser_timeout_micros=function(){return(n._ts_parser_timeout_micros=n.asm.ts_parser_timeout_micros).apply(null,arguments)},n._ts_parser_set_timeout_micros=function(){return(n._ts_parser_set_timeout_micros=n.asm.ts_parser_set_timeout_micros).apply(null,arguments)},n._memmove=function(){return(n._memmove=n.asm.memmove).apply(null,arguments)},n._memcmp=function(){return(n._memcmp=n.asm.memcmp).apply(null,arguments)},n._ts_query_new=function(){return(n._ts_query_new=n.asm.ts_query_new).apply(null,arguments)},n._ts_query_delete=function(){return(n._ts_query_delete=n.asm.ts_query_delete).apply(null,arguments)},n._iswspace=function(){return(n._iswspace=n.asm.iswspace).apply(null,arguments)},n._iswalnum=function(){return(n._iswalnum=n.asm.iswalnum).apply(null,arguments)},n._ts_query_pattern_count=function(){return(n._ts_query_pattern_count=n.asm.ts_query_pattern_count).apply(null,arguments)},n._ts_query_capture_count=function(){return(n._ts_query_capture_count=n.asm.ts_query_capture_count).apply(null,arguments)},n._ts_query_string_count=function(){return(n._ts_query_string_count=n.asm.ts_query_string_count).apply(null,arguments)},n._ts_query_capture_name_for_id=function(){return(n._ts_query_capture_name_for_id=n.asm.ts_query_capture_name_for_id).apply(null,arguments)},n._ts_query_string_value_for_id=function(){return(n._ts_query_string_value_for_id=n.asm.ts_query_string_value_for_id).apply(null,arguments)},n._ts_query_predicates_for_pattern=function(){return(n._ts_query_predicates_for_pattern=n.asm.ts_query_predicates_for_pattern).apply(null,arguments)},n._ts_tree_copy=function(){return(n._ts_tree_copy=n.asm.ts_tree_copy).apply(null,arguments)},n._ts_tree_delete=function(){return(n._ts_tree_delete=n.asm.ts_tree_delete).apply(null,arguments)},n._ts_init=function(){return(n._ts_init=n.asm.ts_init).apply(null,arguments)},n._ts_parser_new_wasm=function(){return(n._ts_parser_new_wasm=n.asm.ts_parser_new_wasm).apply(null,arguments)},n._ts_parser_enable_logger_wasm=function(){return(n._ts_parser_enable_logger_wasm=n.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},n._ts_parser_parse_wasm=function(){return(n._ts_parser_parse_wasm=n.asm.ts_parser_parse_wasm).apply(null,arguments)},n._ts_language_type_is_named_wasm=function(){return(n._ts_language_type_is_named_wasm=n.asm.ts_language_type_is_named_wasm).apply(null,arguments)},n._ts_language_type_is_visible_wasm=function(){return(n._ts_language_type_is_visible_wasm=n.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},n._ts_tree_root_node_wasm=function(){return(n._ts_tree_root_node_wasm=n.asm.ts_tree_root_node_wasm).apply(null,arguments)},n._ts_tree_edit_wasm=function(){return(n._ts_tree_edit_wasm=n.asm.ts_tree_edit_wasm).apply(null,arguments)},n._ts_tree_get_changed_ranges_wasm=function(){return(n._ts_tree_get_changed_ranges_wasm=n.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},n._ts_tree_cursor_new_wasm=function(){return(n._ts_tree_cursor_new_wasm=n.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},n._ts_tree_cursor_delete_wasm=function(){return(n._ts_tree_cursor_delete_wasm=n.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},n._ts_tree_cursor_reset_wasm=function(){return(n._ts_tree_cursor_reset_wasm=n.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_first_child_wasm=function(){return(n._ts_tree_cursor_goto_first_child_wasm=n.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_next_sibling_wasm=function(){return(n._ts_tree_cursor_goto_next_sibling_wasm=n.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_parent_wasm=function(){return(n._ts_tree_cursor_goto_parent_wasm=n.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_type_id_wasm=function(){return(n._ts_tree_cursor_current_node_type_id_wasm=n.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_named_wasm=function(){return(n._ts_tree_cursor_current_node_is_named_wasm=n.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_missing_wasm=function(){return(n._ts_tree_cursor_current_node_is_missing_wasm=n.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_id_wasm=function(){return(n._ts_tree_cursor_current_node_id_wasm=n.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},n._ts_tree_cursor_start_position_wasm=function(){return(n._ts_tree_cursor_start_position_wasm=n.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},n._ts_tree_cursor_end_position_wasm=function(){return(n._ts_tree_cursor_end_position_wasm=n.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},n._ts_tree_cursor_start_index_wasm=function(){return(n._ts_tree_cursor_start_index_wasm=n.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},n._ts_tree_cursor_end_index_wasm=function(){return(n._ts_tree_cursor_end_index_wasm=n.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},n._ts_tree_cursor_current_field_id_wasm=function(){return(n._ts_tree_cursor_current_field_id_wasm=n.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_wasm=function(){return(n._ts_tree_cursor_current_node_wasm=n.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},n._ts_node_symbol_wasm=function(){return(n._ts_node_symbol_wasm=n.asm.ts_node_symbol_wasm).apply(null,arguments)},n._ts_node_child_count_wasm=function(){return(n._ts_node_child_count_wasm=n.asm.ts_node_child_count_wasm).apply(null,arguments)},n._ts_node_named_child_count_wasm=function(){return(n._ts_node_named_child_count_wasm=n.asm.ts_node_named_child_count_wasm).apply(null,arguments)},n._ts_node_child_wasm=function(){return(n._ts_node_child_wasm=n.asm.ts_node_child_wasm).apply(null,arguments)},n._ts_node_named_child_wasm=function(){return(n._ts_node_named_child_wasm=n.asm.ts_node_named_child_wasm).apply(null,arguments)},n._ts_node_child_by_field_id_wasm=function(){return(n._ts_node_child_by_field_id_wasm=n.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},n._ts_node_next_sibling_wasm=function(){return(n._ts_node_next_sibling_wasm=n.asm.ts_node_next_sibling_wasm).apply(null,arguments)},n._ts_node_prev_sibling_wasm=function(){return(n._ts_node_prev_sibling_wasm=n.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},n._ts_node_next_named_sibling_wasm=function(){return(n._ts_node_next_named_sibling_wasm=n.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},n._ts_node_prev_named_sibling_wasm=function(){return(n._ts_node_prev_named_sibling_wasm=n.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},n._ts_node_parent_wasm=function(){return(n._ts_node_parent_wasm=n.asm.ts_node_parent_wasm).apply(null,arguments)},n._ts_node_descendant_for_index_wasm=function(){return(n._ts_node_descendant_for_index_wasm=n.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_index_wasm=function(){return(n._ts_node_named_descendant_for_index_wasm=n.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_descendant_for_position_wasm=function(){return(n._ts_node_descendant_for_position_wasm=n.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_position_wasm=function(){return(n._ts_node_named_descendant_for_position_wasm=n.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_start_point_wasm=function(){return(n._ts_node_start_point_wasm=n.asm.ts_node_start_point_wasm).apply(null,arguments)},n._ts_node_end_point_wasm=function(){return(n._ts_node_end_point_wasm=n.asm.ts_node_end_point_wasm).apply(null,arguments)},n._ts_node_start_index_wasm=function(){return(n._ts_node_start_index_wasm=n.asm.ts_node_start_index_wasm).apply(null,arguments)},n._ts_node_end_index_wasm=function(){return(n._ts_node_end_index_wasm=n.asm.ts_node_end_index_wasm).apply(null,arguments)},n._ts_node_to_string_wasm=function(){return(n._ts_node_to_string_wasm=n.asm.ts_node_to_string_wasm).apply(null,arguments)},n._ts_node_children_wasm=function(){return(n._ts_node_children_wasm=n.asm.ts_node_children_wasm).apply(null,arguments)},n._ts_node_named_children_wasm=function(){return(n._ts_node_named_children_wasm=n.asm.ts_node_named_children_wasm).apply(null,arguments)},n._ts_node_descendants_of_type_wasm=function(){return(n._ts_node_descendants_of_type_wasm=n.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},n._ts_node_is_named_wasm=function(){return(n._ts_node_is_named_wasm=n.asm.ts_node_is_named_wasm).apply(null,arguments)},n._ts_node_has_changes_wasm=function(){return(n._ts_node_has_changes_wasm=n.asm.ts_node_has_changes_wasm).apply(null,arguments)},n._ts_node_has_error_wasm=function(){return(n._ts_node_has_error_wasm=n.asm.ts_node_has_error_wasm).apply(null,arguments)},n._ts_node_is_missing_wasm=function(){return(n._ts_node_is_missing_wasm=n.asm.ts_node_is_missing_wasm).apply(null,arguments)},n._ts_query_matches_wasm=function(){return(n._ts_query_matches_wasm=n.asm.ts_query_matches_wasm).apply(null,arguments)},n._ts_query_captures_wasm=function(){return(n._ts_query_captures_wasm=n.asm.ts_query_captures_wasm).apply(null,arguments)},n._iswdigit=function(){return(n._iswdigit=n.asm.iswdigit).apply(null,arguments)},n._iswalpha=function(){return(n._iswalpha=n.asm.iswalpha).apply(null,arguments)},n._iswlower=function(){return(n._iswlower=n.asm.iswlower).apply(null,arguments)},n._towupper=function(){return(n._towupper=n.asm.towupper).apply(null,arguments)},n.___errno_location=function(){return(Ve=n.___errno_location=n.asm.__errno_location).apply(null,arguments)}),De=(n._memchr=function(){return(n._memchr=n.asm.memchr).apply(null,arguments)},n._strlen=function(){return(n._strlen=n.asm.strlen).apply(null,arguments)},n.stackSave=function(){return(De=n.stackSave=n.asm.stackSave).apply(null,arguments)}),Be=n.stackRestore=function(){return(Be=n.stackRestore=n.asm.stackRestore).apply(null,arguments)},ze=n.stackAlloc=function(){return(ze=n.stackAlloc=n.asm.stackAlloc).apply(null,arguments)},Ue=n._setThrew=function(){return(Ue=n._setThrew=n.asm.setThrew).apply(null,arguments)};function Ge(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=n.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},n.__Znwm=function(){return(n.__Znwm=n.asm._Znwm).apply(null,arguments)},n.__ZdlPv=function(){return(n.__ZdlPv=n.asm._ZdlPv).apply(null,arguments)},n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=n.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},n._orig$ts_parser_timeout_micros=function(){return(n._orig$ts_parser_timeout_micros=n.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},n._orig$ts_parser_set_timeout_micros=function(){return(n._orig$ts_parser_set_timeout_micros=n.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},n.allocate=function(e,t){var r;return r=1==t?ze(e.length):$e(e.length),e.subarray||e.slice?F.set(e,r):F.set(new Uint8Array(e),r),r},se=function e(){qe||We(),qe||(se=e)};var Ke=!1;function We(e){function t(){qe||(qe=!0,n.calledRun=!0,I||(te=!0,me(X),me(J),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Ze&&function(e){var t=n._main;if(t){var r=(e=e||[]).length+1,s=ze(4*(r+1));L[s>>2]=W(h);for(var i=1;i<r;i++)L[(s>>2)+i]=W(e[i-1]);L[(s>>2)+r]=0;try{Ye(t(r,s),!0)}catch(e){if(e instanceof Ge)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),w("exception thrown: "+o),d(1,e)}}}(e),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)e=n.postRun.shift(),ee.unshift(e);var e;me(ee)}()))}e=e||f,re>0||!Ke&&(function(){if(O.length){if(!y)return ie(),void O.reduce((function(e,t){return e.then((function(){return Pe(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),ke()}));O.forEach((function(e){Pe(e,{global:!0,nodelete:!0,allowUndefined:!0})})),ke()}else ke()}(),Ke=!0,re>0)||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)e=n.preRun.shift(),Q.unshift(e);var e;me(Q)}(),re>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),t()}),1)):t()))}function Ye(e,t){t&&ve()&&0===e||(ve()||(n.onExit&&n.onExit(e),I=!0),d(e,new Ge(e)))}if(n.run=We,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var Ze=!0;n.noInitialRun&&(Ze=!1),We();const He=n,Qe={},Xe=4,Je=5*Xe,et=2*Xe,tt=2*Xe+2*et,rt={row:0,column:0},nt=/[\w-.]*/g,st=/^_?tree_sitter_\w+/;var it,ot,at,ct,ut;class lt{static init(){at=He._ts_init(),it=N(at,"i32"),ot=N(at+Xe,"i32")}initialize(){He._ts_parser_new_wasm(),this[0]=N(at,"i32"),this[1]=N(at+Xe,"i32")}delete(){He._ts_parser_delete(this[0]),He._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==dt)throw new Error("Argument must be a Language");{t=e[0];const r=He._ts_language_version(t);if(r<ot||it<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,He._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)ct=(t,r,n)=>e.slice(t,n);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");ct=e}this.logCallback?(ut=this.logCallback,He._ts_parser_enable_logger_wasm(this[0],1)):(ut=null,He._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r&&r.includedRanges){n=r.includedRanges.length;let e=s=He._calloc(n,tt);for(let t=0;t<n;t++)jt(e,r.includedRanges[t]),e+=tt}const i=He._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,n);if(!i)throw ct=null,ut=null,new Error("Parsing failed");const o=new pt(Qe,i,this.language,ct);return ct=null,ut=null,o}reset(){He._ts_parser_reset(this[0])}setTimeoutMicros(e){He._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return He._ts_parser_timeout_micros(this[0])}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 pt{constructor(e,t,r,n){gt(e),this[0]=t,this.language=r,this.textCallback=n}copy(){const e=He._ts_tree_copy(this[0]);return new pt(Qe,e,this.language,this.textCallback)}delete(){He._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=at;St(t,e.startPosition),St(t+=et,e.oldEndPosition),St(t+=et,e.newEndPosition),M(t+=et,e.startIndex,"i32"),M(t+=Xe,e.oldEndIndex,"i32"),M(t+=Xe,e.newEndIndex,"i32"),t+=Xe}(e),He._ts_tree_edit_wasm(this[0])}get rootNode(){return He._ts_tree_root_node_wasm(this[0]),wt(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");He._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=N(at,"i32"),r=N(at+Xe,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=Ot(e),e+=tt;He._free(r)}return n}}class ft{constructor(e,t){gt(e),this.tree=t}get typeId(){return bt(this),He._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return bt(this),He._ts_node_end_point_wasm(this.tree[0]),At(at)}get endIndex(){return bt(this),He._ts_node_end_index_wasm(this.tree[0])}get text(){return mt(this.tree,this.startIndex,this.endIndex)}isNamed(){return bt(this),1===He._ts_node_is_named_wasm(this.tree[0])}hasError(){return bt(this),1===He._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return bt(this),1===He._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return bt(this),1===He._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return bt(this),He._ts_node_child_wasm(this.tree[0],e),wt(this.tree)}namedChild(e){return bt(this),He._ts_node_named_child_wasm(this.tree[0],e),wt(this.tree)}childForFieldId(e){return bt(this),He._ts_node_child_by_field_id_wasm(this.tree[0],e),wt(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return bt(this),He._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return bt(this),He._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){bt(this),He._ts_node_children_wasm(this.tree[0]);const e=N(at,"i32"),t=N(at+Xe,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=wt(this.tree,r),r+=Je;He._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){bt(this),He._ts_node_named_children_wasm(this.tree[0]);const e=N(at,"i32"),t=N(at+Xe,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=wt(this.tree,r),r+=Je;He._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=rt),r||(r=rt);const n=[],s=this.tree.language.types;for(let t=0,r=s.length;t<r;t++)e.includes(s[t])&&n.push(t);const i=He._malloc(Xe*n.length);for(let e=0,t=n.length;e<t;e++)M(i+e*Xe,n[e],"i32");bt(this),He._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,t.row,t.column,r.row,r.column);const o=N(at,"i32"),a=N(at+Xe,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=wt(this.tree,e),e+=Je}return He._free(a),He._free(i),c}get nextSibling(){return bt(this),He._ts_node_next_sibling_wasm(this.tree[0]),wt(this.tree)}get previousSibling(){return bt(this),He._ts_node_prev_sibling_wasm(this.tree[0]),wt(this.tree)}get nextNamedSibling(){return bt(this),He._ts_node_next_named_sibling_wasm(this.tree[0]),wt(this.tree)}get previousNamedSibling(){return bt(this),He._ts_node_prev_named_sibling_wasm(this.tree[0]),wt(this.tree)}get parent(){return bt(this),He._ts_node_parent_wasm(this.tree[0]),wt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let r=at+Je;return M(r,e,"i32"),M(r+Xe,t,"i32"),He._ts_node_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let r=at+Je;return M(r,e,"i32"),M(r+Xe,t,"i32"),He._ts_node_named_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}descendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let r=at+Je;return St(r,e),St(r+et,t),He._ts_node_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}namedDescendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let r=at+Je;return St(r,e),St(r+et,t),He._ts_node_named_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}walk(){return bt(this),He._ts_tree_cursor_new_wasm(this.tree[0]),new ht(Qe,this.tree)}toString(){bt(this);const e=He._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var r=F[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}(e);return He._free(e),t}}class ht{constructor(e,t){gt(e),this.tree=t,xt(this)}delete(){Et(this),He._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){bt(e),Et(this,at+Je),He._ts_tree_cursor_reset_wasm(this.tree[0]),xt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Et(this),He._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Et(this),He._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Et(this),1===He._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Et(this),1===He._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Et(this);const e=He._ts_tree_cursor_start_index_wasm(this.tree[0]),t=He._ts_tree_cursor_end_index_wasm(this.tree[0]);return mt(this.tree,e,t)}get startPosition(){return Et(this),He._ts_tree_cursor_start_position_wasm(this.tree[0]),At(at)}get endPosition(){return Et(this),He._ts_tree_cursor_end_position_wasm(this.tree[0]),At(at)}get startIndex(){return Et(this),He._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Et(this),He._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Et(this),He._ts_tree_cursor_current_node_wasm(this.tree[0]),wt(this.tree)}currentFieldId(){return Et(this),He._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Et(this);const e=He._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xt(this),1===e}gotoNextSibling(){Et(this);const e=He._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xt(this),1===e}gotoParent(){Et(this);const e=He._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xt(this),1===e}}class dt{constructor(e,t){gt(e),this[0]=t,this.types=new Array(He._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)He._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=z(He._ts_language_symbol_name(this[0],e)));this.fields=new Array(He._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=He._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?z(t):null}}get version(){return He._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}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=K(e),n=He._malloc(r+1);G(e,n,r+1);const s=He._ts_language_symbol_for_name(this[0],n,r,t);return He._free(n),s||null}get nodeTypeCount(){return He._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=He._ts_language_symbol_name(this[0],e);return t?z(t):null}nodeTypeIsNamed(e){return!!He._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!He._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=K(e),r=He._malloc(t+1);G(e,r,t+1);const n=He._ts_query_new(this[0],r,t,at,at+Xe);if(!n){const t=N(at+Xe,"i32"),n=z(r,N(at,"i32")).length,s=e.substr(n,100).split("\n")[0];let i,o=s.match(nt)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${n}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${n}: '${s}'...`),o=""}throw i.index=n,i.length=o.length,He._free(r),i}const s=He._ts_query_string_count(n),i=He._ts_query_capture_count(n),o=He._ts_query_pattern_count(n),a=new Array(i),c=new Array(s);for(let e=0;e<i;e++){const t=He._ts_query_capture_name_for_id(n,e,at),r=N(at,"i32");a[e]=z(t,r)}for(let e=0;e<s;e++){const t=He._ts_query_string_value_for_id(n,e,at),r=N(at,"i32");c[e]=z(t,r)}const u=new Array(o),l=new Array(o),p=new Array(o),f=new Array(o),h=new Array(o);for(let e=0;e<o;e++){const t=He._ts_query_predicates_for_pattern(n,e,at),r=N(at,"i32");f[e]=[],h[e]=[];const s=[];let i=t;for(let t=0;t<r;t++){const t=N(i,"i32"),r=N(i+=Xe,"i32");if(i+=Xe,1===t)s.push({type:"capture",name:a[r]});else if(2===t)s.push({type:"string",value:c[r]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let r=!0;switch(t){case"not-eq?":r=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const t=s[1].name,n=s[2].name;h[e].push((function(e){let s,i;for(const r of e)r.name===t&&(s=r.node),r.name===n&&(i=r.node);return void 0===s||void 0===i||s.text===i.text===r}))}else{const t=s[1].name,n=s[2].value;h[e].push((function(e){for(const s of e)if(s.name===t)return s.node.text===n===r;return!0}))}break;case"not-match?":r=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const n=s[1].name,i=new RegExp(s[2].value);h[e].push((function(e){for(const t of e)if(t.name===n)return i.test(t.node.text)===r;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?l:p;o[e]||(o[e]={}),o[e][s[1].value]=s[2]?s[2].value:null;break;default:f[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return He._free(r),new _t(Qe,n,a,h,f,Object.freeze(u),Object.freeze(l),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const n=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=r(3078);t=Promise.resolve(e.readFileSync(n))}else t=fetch(n).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}`)}}))))}const n="function"==typeof loadSideModule?loadSideModule:Oe;return t.then((e=>n(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>st.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 n=e[r]();return new dt(Qe,n)}))}}class _t{constructor(e,t,r,n,s,i,o,a){gt(e),this[0]=t,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){He._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,n){t||(t=rt),r||(r=rt),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");bt(e),He._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const i=N(at,"i32"),o=N(at+Xe,"i32"),a=N(at+2*Xe,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let t=0;t<i;t++){const r=N(l,"i32"),n=N(l+=Xe,"i32");l+=Xe;const s=new Array(n);if(l=yt(this,e.tree,l,s),this.textPredicates[r].every((e=>e(s)))){c[u++]={pattern:r,captures:s};const e=this.setProperties[r];e&&(c[t].setProperties=e);const n=this.assertedProperties[r];n&&(c[t].assertedProperties=n);const i=this.refutedProperties[r];i&&(c[t].refutedProperties=i)}}return c.length=u,He._free(o),c}captures(e,t,r,n){t||(t=rt),r||(r=rt),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");bt(e),He._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const i=N(at,"i32"),o=N(at+Xe,"i32"),a=N(at+2*Xe,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;t<i;t++){const t=N(l,"i32"),r=N(l+=Xe,"i32"),n=N(l+=Xe,"i32");if(l+=Xe,u.length=r,l=yt(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[n],r=this.setProperties[t];r&&(e.setProperties=r);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return He._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function mt(e,t,r){const n=r-t;let s=e.textCallback(t,null,r);for(t+=s.length;t<r;){const n=e.textCallback(t,null,r);if(!(n&&n.length>0))break;t+=n.length,s+=n}return t>r&&(s=s.slice(0,n)),s}function yt(e,t,r,n){for(let s=0,i=n.length;s<i;s++){const i=N(r,"i32"),o=wt(t,r+=Xe);r+=Je,n[s]={name:e.captureNames[i],node:o}}return r}function gt(e){if(e!==Qe)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function bt(e){let t=at;M(t,e.id,"i32"),M(t+=Xe,e.startIndex,"i32"),M(t+=Xe,e.startPosition.row,"i32"),M(t+=Xe,e.startPosition.column,"i32"),M(t+=Xe,e[0],"i32")}function wt(e,t=at){const r=N(t,"i32");if(0===r)return null;const n=N(t+=Xe,"i32"),s=N(t+=Xe,"i32"),i=N(t+=Xe,"i32"),o=N(t+=Xe,"i32"),a=new ft(Qe,e);return a.id=r,a.startIndex=n,a.startPosition={row:s,column:i},a[0]=o,a}function Et(e,t=at){M(t+0*Xe,e[0],"i32"),M(t+1*Xe,e[1],"i32"),M(t+2*Xe,e[2],"i32")}function xt(e){e[0]=N(at+0*Xe,"i32"),e[1]=N(at+1*Xe,"i32"),e[2]=N(at+2*Xe,"i32")}function St(e,t){M(e,t.row,"i32"),M(e+Xe,t.column,"i32")}function At(e){return{row:N(e,"i32"),column:N(e+Xe,"i32")}}function jt(e,t){St(e,t.startPosition),St(e+=et,t.endPosition),M(e+=et,t.startIndex,"i32"),M(e+=Xe,t.endIndex,"i32"),e+=Xe}function Ot(e){const t={};return t.startPosition=At(e),e+=et,t.endPosition=At(e),e+=et,t.startIndex=N(e,"i32"),e+=Xe,t.endIndex=N(e,"i32"),t}for(const e of Object.getOwnPropertyNames(lt.prototype))Object.defineProperty(i.prototype,e,{value:lt.prototype[e],enumerable:!1,writable:!1});i.Language=dt,n.onRuntimeInitialized=()=>{lt.init(),t()}})))}}return i}();e.exports=s},3078:()=>{},4142:()=>{},1212:(e,t,r)=>{e.exports=r(8411)},7202:(e,t,r)=>{"use strict";var n=r(239);e.exports=n},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var n=r(8099);e.exports=n.AggregateError},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8337:(e,t,r)=>{"use strict";r(5442);var n=r(7202);e.exports=n},814:(e,t,r)=>{"use strict";var n=r(2769),s=r(459),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not a function")}},1966:(e,t,r)=>{"use strict";var n=r(2937),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,r)=>{"use strict";var n=r(262),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not an object")}},1005:(e,t,r)=>{"use strict";var n=r(3273),s=r(4574),i=r(8130),o=function(e){return function(t,r,o){var a,c=n(t),u=i(c),l=s(o,u);if(e&&r!=r){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,r)=>{"use strict";var n=r(6100),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},8407:(e,t,r)=>{"use strict";var n=r(4904),s=r(2769),i=r(9932),o=r(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;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"===(n=i(t))&&s(t.callee)?"Arguments":n}},7464:(e,t,r)=>{"use strict";var n=r(701),s=r(5691),i=r(4543),o=r(9989);e.exports=function(e,t,r){for(var a=s(t),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];n(e,p)||r&&n(r,p)||c(e,p,u(t,p))}}},2871:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,r)=>{"use strict";var n=r(5024),s=r(9989),i=r(480);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,r)=>{"use strict";var n=r(3999);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},7525:(e,t,r)=>{"use strict";var n=r(1063),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},5024:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,r)=>{"use strict";var n=r(1063),s=r(262),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7868:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4432:(e,t,r)=>{"use strict";var n,s,i=r(1063),o=r(7868),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3885:(e,t,r)=>{"use strict";var n=r(6100),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},4279:(e,t,r)=>{"use strict";var n=r(3999),s=r(3885),i=r(5791),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):n(e,"stack",s(r,a)))}},5791:(e,t,r)=>{"use strict";var n=r(1203),s=r(480);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9098:(e,t,r)=>{"use strict";var n=r(1063),s=r(7013),i=r(9344),o=r(2769),a=r(4543).f,c=r(8696),u=r(8099),l=r(4572),p=r(3999),f=r(701),h=function(e){var t=function(r,n,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,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,d,_,m,y,g,v,b,w=e.target,E=e.global,x=e.stat,S=e.proto,A=E?n:x?n[w]:n[w]&&n[w].prototype,j=E?u:u[w]||p(u,w,{})[w],O=j.prototype;for(_ in t)s=!(r=c(E?_:w+(x?".":"#")+_,e.forced))&&A&&f(A,_),y=j[_],s&&(g=e.dontCallGetSet?(b=a(A,_))&&b.value:A[_]),m=s&&g?g:t[_],(r||S||typeof y!=typeof m)&&(v=e.bind&&s?l(m,n):e.wrap&&s?h(m):S&&o(m)?i(m):m,(e.sham||m&&m.sham||y&&y.sham)&&p(v,"sham",!0),p(j,_,v),S&&(f(u,d=w+"Prototype")||p(u,d,{}),p(u[d],_,m),e.real&&O&&(r||!O[_])&&p(O,_,m)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,r)=>{"use strict";var n=r(9344),s=r(814),i=r(1780),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},3410:(e,t,r)=>{"use strict";var n=r(5024),s=r(701),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3574:(e,t,r)=>{"use strict";var n=r(6100),s=r(814);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},9344:(e,t,r)=>{"use strict";var n=r(9932),s=r(6100);e.exports=function(e){if("Function"===n(e))return s(e)}},6100:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,r)=>{"use strict";var n=r(8099),s=r(1063),i=r(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},967:(e,t,r)=>{"use strict";var n=r(8407),s=r(4674),i=r(3057),o=r(6625),a=r(8655)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[n(e)]}},1613:(e,t,r)=>{"use strict";var n=r(4713),s=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(s(r))return i(n(r,e));throw new c(o(e)+" is not iterable")}},4674:(e,t,r)=>{"use strict";var n=r(814),s=r(3057);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},1063:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,r)=>{"use strict";var n=r(6100),s=r(2137),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,r)=>{"use strict";var n=r(1003);e.exports=n("document","documentElement")},9665:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203),i=r(9619);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,r)=>{"use strict";var n=r(6100),s=r(1203),i=r(9932),o=Object,a=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},3507:(e,t,r)=>{"use strict";var n=r(2769),s=r(262),i=r(3491);e.exports=function(e,t,r){var o,a;return i&&n(o=t.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},8148:(e,t,r)=>{"use strict";var n=r(262),s=r(3999);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},8417:(e,t,r)=>{"use strict";var n,s,i,o=r(1314),a=r(1063),c=r(262),u=r(3999),l=r(701),p=r(3753),f=r(4275),h=r(5241),d="Object already initialized",_=a.TypeError,m=a.WeakMap;if(o||p.state){var y=p.state||(p.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new _(d);return t.facade=e,y.set(e,t),t},s=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var g=f("state");h[g]=!0,n=function(e,t){if(l(e,g))throw new _(d);return t.facade=e,u(e,g,t),t},s=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=s(t)).type!==e)throw new _("Incompatible receiver, "+e+" required");return r}}}},2877:(e,t,r)=>{"use strict";var n=r(8655),s=r(6625),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8696:(e,t,r)=>{"use strict";var n=r(1203),s=r(2769),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r===l||r!==u&&(s(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,r)=>{"use strict";var n=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},2937:(e,t,r)=>{"use strict";var n=r(262);e.exports=function(e){return n(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,r)=>{"use strict";var n=r(1003),s=r(2769),i=r(4317),o=r(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,a(e))}},208:(e,t,r)=>{"use strict";var n=r(4572),s=r(4713),i=r(7235),o=r(459),a=r(2877),c=r(8130),u=r(4317),l=r(1613),p=r(967),f=r(1743),h=TypeError,d=function(e,t){this.stopped=e,this.result=t},_=d.prototype;e.exports=function(e,t,r){var m,y,g,v,b,w,E,x=r&&r.that,S=!(!r||!r.AS_ENTRIES),A=!(!r||!r.IS_RECORD),j=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),P=n(t,x),k=function(e){return m&&f(m,"normal",e),new d(!0,e)},M=function(e){return S?(i(e),O?P(e[0],e[1],k):P(e[0],e[1])):O?P(e,k):P(e)};if(A)m=e.iterator;else if(j)m=e;else{if(!(y=p(e)))throw new h(o(e)+" is not iterable");if(a(y)){for(g=0,v=c(e);v>g;g++)if((b=M(e[g]))&&u(_,b))return b;return new d(!1)}m=l(e,y)}for(w=A?e.next:m.next;!(E=s(w,m)).done;){try{b=M(E.value)}catch(e){f(m,"throw",e)}if("object"==typeof b&&b&&u(_,b))return b}return new d(!1)}},1743:(e,t,r)=>{"use strict";var n=r(4713),s=r(7235),i=r(4674);e.exports=function(e,t,r){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return s(o),r}},1926:(e,t,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=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=s(n,{next:i(+!u,r)}),o(e,l,!1,!0),a[l]=c,e}},164:(e,t,r)=>{"use strict";var n=r(9098),s=r(4713),i=r(4871),o=r(3410),a=r(2769),c=r(1926),u=r(3671),l=r(3491),p=r(1811),f=r(3999),h=r(3508),d=r(8655),_=r(6625),m=r(2621),y=o.PROPER,g=o.CONFIGURABLE,v=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=d("iterator"),E="keys",x="values",S="entries",A=function(){return this};e.exports=function(e,t,r,o,d,m,j){c(r,t,o);var O,P,k,M=function(e){if(e===d&&R)return R;if(!b&&e&&e in T)return T[e];switch(e){case E:case x:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},N=t+" Iterator",I=!1,T=e.prototype,C=T[w]||T["@@iterator"]||d&&T[d],R=!b&&C||M(d),F="Array"===t&&T.entries||C;if(F&&(O=u(F.call(new e)))!==Object.prototype&&O.next&&(i||u(O)===v||(l?l(O,v):a(O[w])||h(O,w,A)),p(O,N,!0,!0),i&&(_[N]=A)),y&&d===x&&C&&C.name!==x&&(!i&&g?f(T,"name",x):(I=!0,R=function(){return s(C,this)})),d)if(P={values:M(x),keys:m?R:M(E),entries:M(S)},j)for(k in P)(b||I||!(k in T))&&h(T,k,P[k]);else n({target:t,proto:!0,forced:b||I},P);return i&&!j||T[w]===R||h(T,w,R,{name:d}),_[t]=R,P}},2621:(e,t,r)=>{"use strict";var n,s,i,o=r(1203),a=r(2769),c=r(262),u=r(5780),l=r(3671),p=r(3508),f=r(8655),h=r(4871),d=f("iterator"),_=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):_=!0),!c(n)||o((function(){var e={};return n[d].call(e)!==e}))?n={}:h&&(n=u(n)),a(n[d])||p(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:_}},6625:e=>{"use strict";e.exports={}},8130:(e,t,r)=>{"use strict";var n=r(8146);e.exports=function(e){return n(e.length)}},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},4879:(e,t,r)=>{"use strict";var n=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},5780:(e,t,r)=>{"use strict";var n,s=r(7235),i=r(7389),o=r(9683),a=r(5241),c=r(3489),u=r(9619),l=r(4275),p="prototype",f="script",h=l("IE_PROTO"),d=function(){},_=function(e){return"<"+f+">"+e+"</"+f+">"},m=function(e){e.write(_("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&n?m(n):(t=u("iframe"),r="java"+f+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(_("document.F=Object")),e.close(),e.F):m(n);for(var s=o.length;s--;)delete y[p][o[s]];return y()};a[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(d[p]=s(e),r=new d,d[p]=null,r[h]=e):r=y(),void 0===t?r:i.f(r,t)}},7389:(e,t,r)=>{"use strict";var n=r(5024),s=r(1330),i=r(9989),o=r(7235),a=r(3273),c=r(8364);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=c(t),u=s.length,l=0;u>l;)i.f(e,r=s[l++],n[r]);return e}},9989:(e,t,r)=>{"use strict";var n=r(5024),s=r(9665),i=r(1330),o=r(7235),a=r(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",f="configurable",h="writable";t.f=n?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=l(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:p in r?r[p]:n[p],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=a(t),o(r),s)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}},4543:(e,t,r)=>{"use strict";var n=r(5024),s=r(4713),i=r(7161),o=r(480),a=r(3273),c=r(5341),u=r(701),l=r(9665),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=a(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},5116:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,r)=>{"use strict";var n=r(701),s=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(n(t,c))return t[c];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},4317:(e,t,r)=>{"use strict";var n=r(6100);e.exports=n({}.isPrototypeOf)},8600:(e,t,r)=>{"use strict";var n=r(6100),s=r(701),i=r(3273),o=r(1005).indexOf,a=r(5241),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!s(a,r)&&s(n,r)&&c(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~o(l,r)||c(l,r));return l}},8364:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683);e.exports=Object.keys||function(e){return n(e,s)}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},3491:(e,t,r)=>{"use strict";var n=r(3574),s=r(7235),i=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return s(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},9559:(e,t,r)=>{"use strict";var n=r(4904),s=r(8407);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9258:(e,t,r)=>{"use strict";var n=r(4713),s=r(2769),i=r(262),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&s(r=e.toString)&&!i(a=n(r,e)))return a;if(s(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&s(r=e.toString)&&!i(a=n(r,e)))return a;throw new o("Can't convert object to primitive value")}},5691:(e,t,r)=>{"use strict";var n=r(1003),s=r(6100),i=r(5116),o=r(7313),a=r(7235),c=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,r)=>{"use strict";var n=r(9989).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5426:(e,t,r)=>{"use strict";var n=r(3057),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},1811:(e,t,r)=>{"use strict";var n=r(4904),s=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)||s(l,c,{configurable:!0,value:t}),u&&!n&&i(l,"toString",a))}},4275:(e,t,r)=>{"use strict";var n=r(8141),s=r(1268),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},3753:(e,t,r)=>{"use strict";var n=r(1063),s=r(7525),i="__core-js_shared__",o=n[i]||s(i,{});e.exports=o},8141:(e,t,r)=>{"use strict";var n=r(4871),s=r(3753);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5571:(e,t,r)=>{"use strict";var n=r(6100),s=r(9903),i=r(1139),o=r(5426),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,p=i(o(t)),f=s(r),h=p.length;return f<0||f>=h?e?"":void 0:(n=c(p,f))<55296||n>56319||f+1===h||(l=c(p,f+1))<56320||l>57343?e?a(p,f):n:e?u(p,f,f+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},4603:(e,t,r)=>{"use strict";var n=r(4432),s=r(1203),i=r(1063).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4574:(e,t,r)=>{"use strict";var n=r(9903),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},3273:(e,t,r)=>{"use strict";var n=r(1395),s=r(5426);e.exports=function(e){return n(s(e))}},9903:(e,t,r)=>{"use strict";var n=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},8146:(e,t,r)=>{"use strict";var n=r(9903),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},2137:(e,t,r)=>{"use strict";var n=r(5426),s=Object;e.exports=function(e){return s(n(e))}},493:(e,t,r)=>{"use strict";var n=r(4713),s=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(!s(e)||i(e))return e;var r,c=o(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!s(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},5341:(e,t,r)=>{"use strict";var n=r(493),s=r(6281);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},4904:(e,t,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(n)},1139:(e,t,r)=>{"use strict";var n=r(8407),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,r)=>{"use strict";var n=r(6100),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},7460:(e,t,r)=>{"use strict";var n=r(4603);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,r)=>{"use strict";var n=r(1063),s=r(2769),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8655:(e,t,r)=>{"use strict";var n=r(1063),s=r(8141),i=r(701),o=r(1268),a=r(4603),c=r(7460),u=n.Symbol,l=s("wks"),p=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},6453:(e,t,r)=>{"use strict";var n=r(1003),s=r(701),i=r(3999),o=r(4317),a=r(3491),c=r(7464),u=r(5516),l=r(3507),p=r(4879),f=r(8148),h=r(4279),d=r(5024),_=r(4871);e.exports=function(e,t,r,m){var y="stackTraceLimit",g=m?2:1,v=e.split("."),b=v[v.length-1],w=n.apply(null,v);if(w){var E=w.prototype;if(!_&&s(E,"cause")&&delete E.cause,!r)return w;var x=n("Error"),S=t((function(e,t){var r=p(m?t:e,void 0),n=m?new w(e):new w;return void 0!==r&&i(n,"message",r),h(n,S,n.stack,2),this&&o(E,this)&&l(n,this,S),arguments.length>g&&f(n,arguments[g]),n}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):d&&y in w&&(u(S,w,y),u(S,w,"prepareStackTrace")),c(S,w),!_)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},6138:(e,t,r)=>{"use strict";var n=r(9098),s=r(1003),i=r(7013),o=r(1203),a=r(6453),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},3085:(e,t,r)=>{"use strict";var n=r(9098),s=r(4317),i=r(3671),o=r(3491),a=r(7464),c=r(5780),u=r(3999),l=r(480),p=r(8148),f=r(4279),h=r(208),d=r(4879),_=r(8655)("toStringTag"),m=Error,y=[].push,g=function(e,t){var r,n=s(v,this);o?r=o(new m,n?i(this):v):(r=n?this:c(v),u(r,_,"Error")),void 0!==t&&u(r,"message",d(t)),f(r,g,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return h(e,y,{that:a}),u(r,"errors",a),r};o?o(g,m):a(g,m,{name:!0});var v=g.prototype=c(m.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},5695:(e,t,r)=>{"use strict";r(3085)},9828:(e,t,r)=>{"use strict";var n=r(3273),s=r(8137),i=r(6625),o=r(8417),a=r(9989).f,c=r(164),u=r(877),l=r(4871),p=r(5024),f="Array Iterator",h=o.set,d=o.getterFor(f);e.exports=c(Array,"Array",(function(e,t){h(this,{type:f,target:n(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,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 _=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==_.name)try{a(_,"name",{value:"values"})}catch(e){}},484:(e,t,r)=>{"use strict";var n=r(9098),s=r(1063),i=r(7013),o=r(6453),a="WebAssembly",c=s[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,u),n({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)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},3832:(e,t,r)=>{"use strict";var n=r(5571).charAt,s=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:s(e),index:0})}),(function(){var e,t=l(this),r=t.string,s=t.index;return s>=r.length?a(void 0,!0):(e=n(r,s),t.index+=e.length,a(e,!1))}))},5442:(e,t,r)=>{"use strict";r(5695)},85:(e,t,r)=>{"use strict";r(9828);var n=r(1100),s=r(1063),i=r(1811),o=r(6625);for(var a in n)i(s[a],a),o[a]=o.Array},239:(e,t,r)=>{"use strict";r(5442);var n=r(6656);r(85),e.exports=n}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=n[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var n={};return(()=>{"use strict";r.r(n),r.d(n,{detect:()=>Bo,detectionRegExp:()=>Do,mediaTypes:()=>Vo,namespace:()=>Uo,parse:()=>zo});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>ns,includesClasses:()=>is,includesSymbols:()=>ss,isAnnotationElement:()=>Xn,isArrayElement:()=>Yn,isBooleanElement:()=>Kn,isCommentElement:()=>Jn,isElement:()=>Bn,isLinkElement:()=>Hn,isMemberElement:()=>Zn,isNullElement:()=>Gn,isNumberElement:()=>Un,isObjectElement:()=>Wn,isParseResultElement:()=>es,isPrimitiveElement:()=>rs,isRefElement:()=>Qn,isSourceMapElement:()=>ts,isStringElement:()=>zn});var t={};function s(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function i(e){return function t(r){return 0===arguments.length||s(r)?t:e.apply(this,arguments)}}function o(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return s(r)?t:i((function(t){return e(r,t)}));default:return s(r)&&s(n)?t:s(r)?i((function(t){return e(t,n)})):s(n)?i((function(t){return e(r,t)})):e(r,n)}}}function a(e){return function t(r,n,a){switch(arguments.length){case 0:return t;case 1:return s(r)?t:o((function(t,n){return e(r,t,n)}));case 2:return s(r)&&s(n)?t:s(r)?o((function(t,r){return e(t,n,r)})):s(n)?o((function(t,n){return e(r,t,n)})):i((function(t){return e(r,n,t)}));default:return s(r)&&s(n)&&s(a)?t:s(r)&&s(n)?o((function(t,r){return e(t,r,a)})):s(r)&&s(a)?o((function(t,r){return e(t,n,r)})):s(n)&&s(a)?o((function(t,n){return e(r,t,n)})):s(r)?i((function(t){return e(t,n,a)})):s(n)?i((function(t){return e(r,t,a)})):s(a)?i((function(t){return e(r,n,t)})):e(r,n,a)}}}r.r(t),r.d(t,{isInfoElement:()=>xo,isMainElement:()=>Eo,isPrincipleElement:()=>So,isRequirementElement:()=>Ao,isRequirementLevelElement:()=>jo,isScenarioElement:()=>Oo,isStandardElement:()=>Po,isStandardIdentifierElement:()=>ko});const c=o((function(e,t){return null==t||t!=t?e:t})),u=Number.isInteger||function(e){return e<<0===e};function l(e){return"[object String]"===Object.prototype.toString.call(e)}const p=o((function(e,t){var r=e<0?t.length+e:e;return l(t)?t.charAt(r):t[r]}));const f=o((function(e,t){if(null!=t)return u(e)?p(e,t):t[e]}));const h=a((function(e,t,r){return c(e,f(t,r))}));var d=o((function(e,t){for(var r={},n={},s=0,i=e.length;s<i;)n[e[s]]=1,s+=1;for(var o in t)n.hasOwnProperty(o)||(r[o]=t[o]);return r}));const _=d;function m(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const y=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const g=i((function(e){return!!y(e)||!!e&&("object"==typeof e&&(!l(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var v="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function b(e,t,r){return function(n,s,i){if(g(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[v])return r(n,s,i[v]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function w(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function E(e,t,r,n){return r[n](e,t)}const x=b(m,E,w);function S(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!y(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function A(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}const j=function(){return this.xf["@@transducer/init"]()},O=function(e){return this.xf["@@transducer/result"](e)};var P=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=O,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const k=function(e){return function(t){return new P(e,t)}};function M(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,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,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 N(e,t,r){return function(){for(var n=[],i=0,o=e,a=0,c=!1;a<t.length||i<arguments.length;){var u;a<t.length&&(!s(t[a])||i>=arguments.length)?u=t[a]:(u=arguments[i],i+=1),n[a]=u,s(u)?c=!0:o-=1,a+=1}return!c&&o<=0?r.apply(this,n):M(Math.max(0,o),N(e,n,r))}}const I=o((function(e,t){return 1===e?i(t):M(e,N(e,[],t))}));function T(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var C=Object.prototype.toString;const R=function(){return"[object Arguments]"===C.call(arguments)?function(e){return"[object Arguments]"===C.call(e)}:function(e){return T("callee",e)}}();var F=!{toString:null}.propertyIsEnumerable("toString"),q=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(){return arguments.propertyIsEnumerable("length")}(),$=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},V="function"!=typeof Object.keys||L?i((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=L&&R(e);for(t in e)!T(t,e)||s&&"length"===t||(n[n.length]=t);if(F)for(r=q.length-1;r>=0;)T(t=q[r],e)&&!$(n,t)&&(n[n.length]=t),r-=1;return n})):i((function(e){return Object(e)!==e?[]:Object.keys(e)}));const D=V;const B=o(S(["fantasy-land/map","map"],k,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return I(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return m((function(r,n){return r[n]=e(t[n]),r}),{},D(t));default:return A(e,t)}})));const z=o((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:x((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,B(r,t))}),[],e)}));const U=o((function(e,t){var r=I(e,t);return I(e,(function(){return m(z,B(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const G=i((function(e){return U(e.length,e)}));const K=G(i((function(e){return!e})));function W(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Y(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}const Z="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const H=i((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Q(e,t,r,n){var s=W(e);function i(e,t){return X(e,t,r.slice(),n.slice())}return!Y((function(e,t){return!Y(i,t,e)}),W(t),s)}function X(e,t,r,n){if(Z(e,t))return!0;var s,i,o=H(e);if(o!==H(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"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Z(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Z(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 n[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&Q(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&Q(e.values(),t.values(),r.concat([e]),n.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=D(e);if(c.length!==D(t).length)return!1;var u=r.concat([e]),l=n.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!T(p,t)||!X(t[p],e[p],u,l))return!1;a-=1}return!0}const J=o((function(e,t){return X(e,t,[],[])}));const ee=i((function(e){return function(){return e}}));var te=ee(void 0);const re=J(te());const ne=K(re);var se=r(8326);function ie(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function oe(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const ae=o((function(e,t){return M(e.length,(function(){return e.apply(t,arguments)}))}));function ce(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function ue(e,t,r,n){return e["@@transducer/result"](r[n](ae(e["@@transducer/step"],e),t))}const le=b(oe,ue,ce);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}();function fe(e){return new pe(e)}const he=a((function(e,t,r){return le("function"==typeof e?fe(e):e,t,r)}));function de(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return y(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const _e=a(de("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const me=i(de("tail",_e(1,1/0)));function ye(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return M(arguments[0].length,he(ie,arguments[0],me(arguments)))}var ge=function(e,t){switch(arguments.length){case 0:return ge;case 1:return function t(r){return 0===arguments.length?t:Z(e,r)};default:return Z(e,t)}};const ve=ge;function be(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)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(J(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function we(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var Ee=function(e){return(e<10?"0":"")+e};const xe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Ee(e.getUTCMonth()+1)+"-"+Ee(e.getUTCDate())+"T"+Ee(e.getUTCHours())+":"+Ee(e.getUTCMinutes())+":"+Ee(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Se(e){return"[object Object]"===Object.prototype.toString.call(e)}var Ae=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=O,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function je(e){return function(t){return new Ae(e,t)}}const Oe=o(S(["fantasy-land/filter","filter"],je,(function(e,t){return Se(t)?m((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},D(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const Pe=o((function(e,t){return Oe((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function ke(e,t){var r=function(r){var n=t.concat([e]);return be(r,n)?"<Circular>":ke(r,n)},n=function(e,t){return A((function(t){return we(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+A(r,e).join(", ")+"))";case"[object Array]":return"["+A(r,e).concat(n(e,Pe((function(e){return/^\d+$/.test(e)}),D(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):we(xe(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":we(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,D(e)).join(", ")+"}"}}const Me=i((function(e){return ke(e,[])}));const Ne=o((function(e,t){return e.map((function(e){for(var r,n=t,s=0;s<e.length;){if(null==n)return;r=e[s],n=u(r)?p(r,n):n[r],s+=1}return n}))}));const Ie=o((function(e,t){return Ne([e],t)[0]}));const Te=a((function(e,t,r){return e(Ie(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 Re=o((function(e,t){return e&&t}));const Fe=o((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:G(Re)(e,t)}));const qe=J(null);var Le=K(qe);function $e(e){return $e="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},$e(e)}const Ve=I(1,Fe(Le,(function(e){return"object"===$e(e)})));const De=o((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=Me(e),o=r(i,Me(t));return void 0!==o&&o===i?e:t}));const Be=o((function(e,t){return B(f(e),t)}));const ze=i((function(e){return I(he(De,0,Be("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 Ue=I(1,ye(H,ve("GeneratorFunction")));const Ge=I(1,ye(H,ve("AsyncFunction")));const Ke=ze([ye(H,ve("Function")),Ue,Ge]);var We=ye(H,ve("Object")),Ye=ye(Me,J(Me(Object))),Ze=Te(Fe(Ke,Ye),["constructor"]);const He=I(1,(function(e){if(!Ve(e)||!We(e))return!1;var t=Object.getPrototypeOf(e);return!!qe(t)||Ze(t)}));class Qe extends se.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Xe=Qe;class Je extends se.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const et=Je;class tt extends se.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(re(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const rt=tt;class nt extends se.wE{constructor(e,t,r){super(e,t,r),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 se.wE([e.start.row,e.start.column,e.start.char]),r=new se.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const st=nt;class it extends se.g${constructor(){super(),this.register("annotation",Xe),this.register("comment",et),this.register("parseResult",rt),this.register("sourceMap",st)}}const ot=new it,at=e=>{const t=new it;return He(e)&&t.use(e),t},ct=ot;const ut=I(1,ye(H,ve("String"))),lt=r.p+"23aac571c96605dc25219087ad291441.wasm",pt=globalThis.fetch;Ke(pt)&&(globalThis.fetch=(...e)=>ut(e[0])&&e[0].endsWith("tree-sitter.wasm")?pt.apply(globalThis,[lt,me(e)]):pt.apply(globalThis,e));var ft=r(3833),ht=r(1212);const dt=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 _t extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(dt,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const mt=_t,yt=r.p+"d396281e11774e0afa7a40d620779b6d.wasm";let gt=null,vt=null;const bt=async e=>{if(null===gt&&null===vt)vt=ft.init().then((()=>ft.Language.load(yt))).then((e=>{const t=new ft;return t.setLanguage(e),t})).finally((()=>{vt=null})),gt=await vt;else if(null===gt&&null!==vt)gt=await vt;else if(null===gt)throw new mt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return gt.parse(e)};function wt(e,t,r){if(r||(r=new Et),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n,s=function(n){var s=r.get(e);if(s)return s;for(var i in r.set(e,n),e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t?wt(e[i],!0,r):e[i]);return n};switch(H(e)){case"Object":return s(Object.create(Object.getPrototypeOf(e)));case"Array":return s([]);case"Date":return new Date(e.valueOf());case"RegExp":return n=e,new RegExp(n.source,n.flags?n.flags:(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":"")+(n.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var Et=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const r=this.hash(e);let n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){let t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(const t in this.map){const r=this.map[t];for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}}return}const t=this.hash(e),r=this.map[t];if(r)for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}},e}();const xt=i((function(e){return null!=e&&"function"==typeof e.clone?e.clone():wt(e,!0)}));const St=class extends mt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};const At=class extends St{};const jt=class extends At{};const Ot=class extends jt{specificTagName;explicitTagName;tagKind;tagPosition;nodeCanonicalContent;node;constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagPosition=t.tagPosition,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};const Pt=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:r=!1}={}){this.type=this.constructor.type,this.isMissing=r,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}};let kt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const Mt=class extends Pt{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...r}){super({...r}),this.explicitName=e,this.kind=t}};const Nt=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const It=class extends Nt{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===kt.Mapping}};const Tt=class extends Nt{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===kt.Sequence}};const Ct=class extends Nt{static uri="tag:yaml.org,2002:str"};const Rt=a((function(e,t,r){return c(e,Ie(t,r))}));const Ft=i((function(e){return I(e.length,e)}));var qt="\t\n\v\f\r \u2028\u2029\ufeff";const Lt=i("function"==typeof String.prototype.trim&&!qt.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+qt+"]["+qt+"]*"),r=new RegExp("["+qt+"]["+qt+"]*$");return e.replace(t,"").replace(r,"")});const $t=o((function(e,t){return I(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(Me(r)+' does not have a method named "'+t+'"')}))}));const Vt=$t(1,"split");const Dt=$t(1,"join");const Bt=i((function(e){return l(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function zt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return ye.apply(this,Bt(arguments))}const Ut=I(4,(function(e,t,r,n){return le(e("function"==typeof t?fe(t):t),r,n)}));const Gt=o((function(e,t){if(y(e)){if(y(t))return e.concat(t);throw new TypeError(Me(t)+" is not an array")}if(l(e)){if(l(t))return e+t;throw new TypeError(Me(t)+" is not a string")}if(null!=e&&Ce(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&Ce(e.concat))return e.concat(t);throw new TypeError(Me(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Kt=J("");const Wt=o((function(e,t){return I(he(De,0,Be("length",t)),(function(){var r=arguments,n=this;return e.apply(n,A((function(e){return e.apply(n,r)}),t))}))}));function Yt(e){return e}const Zt=i(Yt);const Ht=I(1,ye(H,ve("Number")));var Qt=Fe(Ht,isFinite);var Xt=I(1,Qt);const Jt=Ke(Number.isFinite)?I(1,ae(Number.isFinite,Number)):Xt;var er=Fe(Jt,Wt(J,[Math.floor,Zt]));var tr=I(1,er);const rr=Ke(Number.isInteger)?I(1,ae(Number.isInteger,Number)):tr;const nr=i((function(e){return I(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));const sr=K(Jt);const ir=I(1,Fe(Ht,o((function(e,t){return e>t}))(0)));var or=Ft((function(e,t){var r=Number(t);if(r!==t&&(r=0),ir(r))throw new RangeError("repeat count must be non-negative");if(sr(r))throw new RangeError("repeat count must be less than infinity");if(r=Math.floor(r),0===e.length||0===r)return"";if(e.length*r>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var n=e.length*r;r=Math.floor(Math.log(r)/Math.log(2));for(var s=e;r;)s+=e,r-=1;return s+=s.substring(0,n-s.length)})),ar=nr($t(1,"repeat"));const cr=Ke(String.prototype.repeat)?ar:or;const ur=a((function(e,t,r){return r.replace(e,t)}));var lr=ur(/[\s\uFEFF\xA0]+$/,""),pr=$t(0,"trimEnd");const fr=Ke(String.prototype.trimEnd)?pr:lr;var hr=ur(/^[\s\uFEFF\xA0]+/,""),dr=$t(0,"trimStart");const _r=Ke(String.prototype.trimStart)?dr:hr;var mr=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=j,e.prototype["@@transducer/result"]=O,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 mr(e,t)}}const gr=o(S(["dropWhile"],yr,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return _e(r,1/0,t)})));const vr=nr(o(be));const br=Ft((function(e,t){return ye(Vt(""),gr(vr(e)),Dt(""))(t)}));const wr=nr(Gt);var Er=r(6850);const xr=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Sr=e=>{const t=(e=>{const t=e.match(xr),r=Rt("",["groups","indentation"],t);return Kt(r)?void 0:parseInt(r,10)})(e);if(rr(t))return cr(" ",t);const r=Rt("",[1],e.split("\n")),n=Rt(0,["groups","indentation","length"],r.match(/^(?<indentation>[ ]*)/));return cr(" ",n)},Ar=e=>{const t=e.match(xr),r=Rt("",["groups","chomping"],t);return Kt(r)?void 0:r},jr=(e,t)=>re(e)?`${fr(t)}\n`:"-"===e?fr(t):t,Or=e=>e.replace(/\r\n/g,"\n"),Pr=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,r)=>t?e:` ${r.trimStart()}`)).replace(/[\n]{2}/g,"\n"),kr=Ft(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Mr=ye(Or,Lt,Pr,Vt("\n"),B(_r),Dt("\n")),Nr=ye(Or,Lt,Pr,Vt("\n"),B(_r),Dt("\n"),kr("'")),Ir=ye(Or,Lt,(e=>e.replace(/\\\n\s*/g,"")),Pr,Er.MH,Vt("\n"),B(_r),Dt("\n"),kr('"'));let Tr=function(e){return e.Plain="Plain",e.SingleQuoted="SingleQuoted",e.DoubleQuoted="DoubleQuoted",e.Literal="Literal",e.Folded="Folded",e.Explicit="Explicit",e.SinglePair="SinglePair",e.NextLine="NextLine",e.InLine="InLine",e}({}),Cr=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Rr=class{static test(e){return e.tag.kind===kt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const r=e.clone();return e.style===Tr.Plain?t=Mr(e.content):e.style===Tr.SingleQuoted?t=Nr(e.content):e.style===Tr.DoubleQuoted?t=Ir(e.content):e.style===Tr.Literal?t=(e=>{const t=Sr(e),r=Ar(e),n=Or(e),s=me(n.split("\n")),i=zt(B(br(t)),B(wr("\n"))),o=Ut(i,Gt,"",s);return jr(r,o)})(e.content):e.style===Tr.Folded&&(t=(e=>{const t=Sr(e),r=Ar(e),n=Or(e),s=me(n.split("\n")),i=zt(B(br(t)),B(wr("\n"))),o=Ut(i,Gt,"",s),a=Pr(o);return jr(r,a)})(e.content)),r.content=t,r}static resolve(e){return e}};const Fr=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new It),this.registerTag(new Tt),this.registerTag(new Ct)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===kt.Scalar?t=Ct.uri:e.tag.kind===kt.Sequence?t=Tt.uri:e.tag.kind===kt.Mapping&&(t=It.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").replace(/>$/,""):e.tag.explicitName.startsWith("!!")&&(t=`tag:yaml.org,2002:${e.tag.explicitName.replace(/^!!/,"")}`),t}registerTagDirective(e){this.tagDirectives.push({handle:e.parameters.handle,prefix:e.parameters.prefix})}registerTag(e,t=!1){return t?this.tags.unshift(e):this.tags.push(e),this}overrideTag(e){return this.tags=this.tags.filter((t=>t.tag===e.tag)),this.tags.push(e),this}resolve(e){const t=this.toSpecificTagName(e);if("?"===t)return e;let r=e;Rr.test(e)&&(r=Rr.canonicalFormat(e));const n=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===n)throw new Ot(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:xt(e.tag.position),node:e.clone()});if(!n.test(r))throw new Ot(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:xt(e.tag.position),nodeCanonicalContent:r.content,node:e.clone()});return n.resolve(r)}};const qr=class extends Nt{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,r=e.clone();return r.content=t,r}};const Lr=class extends Nt{static uri="tag:yaml.org,2002:float";test(e){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content)}resolve(e){const t=parseFloat(e.content),r=e.clone();return r.content=t,r}};const $r=class extends Nt{static uri="tag:yaml.org,2002:int";test(e){return/^-?(0|[1-9][0-9]*)$/.test(e.content)}resolve(e){const t=parseInt(e.content,10),r=e.clone();return r.content=t,r}};const Vr=class extends Nt{static uri="tag:yaml.org,2002:null";test(e){return/^null$/.test(e.content)}resolve(e){const t=e.clone();return t.content=null,t}};const Dr=class extends Fr{constructor(){super(),this.registerTag(new qr,!0),this.registerTag(new Lr,!0),this.registerTag(new $r,!0),this.registerTag(new Vr,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===kt.Sequence)t=Tt.uri;else if(e.tag.kind===kt.Mapping)t=It.uri;else if(e.tag.kind===kt.Scalar){const r=this.tags.find((t=>t.test(e)));t=(null==r?void 0:r.tag)||"?"}return t}};const Br=class extends Pt{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:r,styleGroup:n,...s}){super({...s}),this.anchor=e,this.tag=t,this.style=r,this.styleGroup=n}};const zr=class extends Br{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Ur=class extends At{},Gr=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Kr=e=>Gr("mapping",e),Wr=e=>Gr("sequence",e),Yr=e=>Gr("keyValuePair",e),Zr=e=>Gr("scalar",e),Hr=e=>Gr("alias",e);const Qr=class{addAnchor(e){if(!(e=>Gr("anchor",e))(e.anchor))throw new Ur("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new zr({content:e.content,style:Tr.Plain,styleGroup:Cr.Flow})}},Xr=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},Jr={},en=e=>null==e?void 0:e.type,tn=e=>"string"==typeof en(e),rn=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),nn=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=Jr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Xr,nodeTypeGetter:c=en,nodePredicate:u=tn,nodeCloneFn:l=rn,detectCycles:p=!0}={})=>{const f=r||{};let h,d,_=Array.isArray(e),m=[e],y=-1,g=[],v=e;const b=[],w=[];do{y+=1;const e=y===m.length;let r;const x=e&&0!==g.length;if(e){if(r=0===w.length?void 0:b.pop(),v=d,d=w.pop(),x)if(_){v=v.slice();let e=0;for(const[t,r]of g){const n=t-e;r===i?(v.splice(n,1),e+=1):v[n]=r}}else{v=l(v);for(const[e,t]of g)v[e]=t}y=h.index,m=h.keys,g=h.edits,_=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(r=_?y:m[y],v=d[r],v===i||void 0===v)continue;b.push(r)}let S;if(!Array.isArray(v)){if(!u(v))throw new St(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;S=i.call(t,v,r,d,b,w)}if(S===s)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&g.push([r,v]),!e)h={inArray:_,index:y,keys:m,edits:g,prev:h},_=Array.isArray(v),m=_?v:null!==(E=f[c(v)])&&void 0!==E?E:[],y=-1,g=[],d!==i&&void 0!==d&&w.push(d),d=v}while(void 0!==h);return 0!==g.length?g[g.length-1][1]:e};nn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=Jr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Xr,nodeTypeGetter:c=en,nodePredicate:u=tn,nodeCloneFn:l=rn,detectCycles:p=!0}={})=>{const f=r||{};let h,d,_=Array.isArray(e),m=[e],y=-1,g=[],v=e;const b=[],w=[];do{y+=1;const e=y===m.length;let r;const x=e&&0!==g.length;if(e){if(r=0===w.length?void 0:b.pop(),v=d,d=w.pop(),x)if(_){v=v.slice();let e=0;for(const[t,r]of g){const n=t-e;r===i?(v.splice(n,1),e+=1):v[n]=r}}else{v=l(v);for(const[e,t]of g)v[e]=t}y=h.index,m=h.keys,g=h.edits,_=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(r=_?y:m[y],v=d[r],v===i||void 0===v)continue;b.push(r)}let S;if(!Array.isArray(v)){if(!u(v))throw new St(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;S=await i.call(t,v,r,d,b,w)}if(S===s)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&g.push([r,v]),!e)h={inArray:_,index:y,keys:m,edits:g,prev:h},_=Array.isArray(v),m=_?v:null!==(E=f[c(v)])&&void 0!==E?E:[],y=-1,g=[],d!==i&&void 0!==d&&w.push(d),d=v}while(void 0!==h);return 0!==g.length?g[g.length-1][1]:e};class sn{static type="point";type=sn.type;row;column;char;constructor({row:e,column:t,char:r}){this.row=e,this.column=t,this.char=r}}class on{static type="position";type=on.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const an=on;const cn=class extends Pt{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class un extends Pt{static type="stream"}Object.defineProperty(un.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Gr("document",e))(e)||(e=>Gr("comment",e))(e))):[]},enumerable:!0});const ln=un;const pn=p(0);const fn=class extends Pt{static type="parseResult";get rootNode(){return pn(this.children)}};const hn="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,n=arguments.length;r<n;){var s=arguments[r];if(null!=s)for(var i in s)T(i,s)&&(t[i]=s[i]);r+=1}return t};const dn=o((function(e,t){return hn({},e,t)}));const _n=class extends Pt{static type="directive";name;parameters;constructor({name:e,parameters:t,...r}){super({...r}),this.name=e,this.parameters=dn({version:void 0,handle:void 0,prefix:void 0},t)}};const mn=class extends Pt{static type="document"};const yn=class extends Br{};class gn extends yn{static type="mapping"}Object.defineProperty(gn.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Yr):[]},enumerable:!0});const vn=gn;class bn extends Pt{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(bn.prototype,{key:{get(){return this.children.filter((e=>Zr(e)||Kr(e)||Wr(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>Zr(e)||Kr(e)||Wr(e)||Hr(e))(t)))[0]},enumerable:!0}});const wn=bn;class En extends yn{static type="sequence"}Object.defineProperty(En.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Wr(e)||Kr(e)||Zr(e)||Hr(e))):[]},enumerable:!0});const xn=En;const Sn=class extends Pt{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const An=class extends Pt{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const jn=class extends Pt{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const On=class extends Pt{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}};const Pn=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;constructor(e){this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}get tag(){let{previousSibling:e}=this;for(;void 0!==e&&"tag"!==e.type;)({previousSibling:e}=e);return e}get anchor(){let{previousSibling:e}=this;for(;void 0!==e&&"anchor"!==e.type;)({previousSibling:e}=e);return e}get firstNamedChild(){return this.children.find((e=>e.isNamed))}setFieldName(e){return"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},kn={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Mn=e=>Array.isArray(e)||tn(e);class Nn{static isScalar=this.isKind("scalar");static isMapping=this.isKind("mapping");static isSequence=this.isKind("sequence");static isKind(e){return t=>null!=t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.endsWith(e)}static toPosition(e){const t=new sn({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=new sn({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new an({start:t,end:r})}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new cn({name:t.text,position:Nn.toPosition(t)})}static hasKeyValuePairEmptyKey(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.keyNode}static hasKeyValuePairEmptyValue(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.valueNode}static kindNodeToYamlTag(e){const{tag:t}=e,r=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),n=e.type.endsWith("mapping")?kt.Mapping:e.type.endsWith("sequence")?kt.Sequence:kt.Scalar,s=t?Nn.toPosition(t):void 0;return new Mt({explicitName:r,kind:n,position:s})}schema;referenceManager;stream={enter:e=>{const t=Nn.toPosition(e);return new ln({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new fn({children:[e]})};yaml_directive={enter:e=>{var t;const r=Nn.toPosition(e),n=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new _n({position:r,name:"%YAML",parameters:{version:n}})}};tag_directive={enter:e=>{const t=Nn.toPosition(e),r=e.children[0],n=e.children[1],s=new _n({position:t,name:"%TAG",parameters:{handle:null==r?void 0:r.text,prefix:null==n?void 0:n.text}});return this.schema.registerTagDirective(s),s}};reserved_directive={enter:e=>{const t=Nn.toPosition(e),r=e.children[0],n=e.children[1],s=e.children[2];return new _n({position:t,name:null==r?void 0:r.text,parameters:{handle:null==n?void 0:n.text,prefix:null==s?void 0:s.text}})}};document={enter:e=>{const t=Nn.toPosition(e);return new mn({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>{e.children=e.children.flat()}};block_node={enter:e=>e.children};flow_node={enter:e=>{const[t]=e.children.slice(-1);if(Nn.isScalar(t)||Nn.isMapping(t)||Nn.isSequence(t))return e.children;const r=new sn({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),n=new zr({content:"",anchor:Nn.kindNodeToYamlAnchor(t),tag:Nn.kindNodeToYamlTag(t),position:new an({start:r,end:r}),styleGroup:Cr.Flow,style:Tr.Plain});return this.registerAnchor(n),[...e.children,n]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Nn.toPosition(e),r=Nn.kindNodeToYamlTag(e),n=Nn.kindNodeToYamlAnchor(e),s=new vn({children:e.children,position:t,anchor:n,tag:r,styleGroup:Cr.Block,style:Tr.NextLine,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};block_mapping_pair={enter:e=>{const t=Nn.toPosition(e),r=[...e.children];if(Nn.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);r.unshift(t)}if(Nn.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);r.push(t)}return new wn({children:r,position:t,styleGroup:Cr.Block,isMissing:e.isMissing})}};flow_mapping={enter:e=>{const t=Nn.toPosition(e),r=Nn.kindNodeToYamlTag(e),n=Nn.kindNodeToYamlAnchor(e),s=new vn({children:e.children,position:t,anchor:n,tag:r,styleGroup:Cr.Flow,style:Tr.Explicit,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};flow_pair={enter:e=>{const t=Nn.toPosition(e),r=[...e.children];if(Nn.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);r.unshift(t)}if(Nn.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);r.push(t)}return new wn({children:r,position:t,styleGroup:Cr.Flow,isMissing:e.isMissing})}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Nn.toPosition(e),r=Nn.kindNodeToYamlTag(e),n=Nn.kindNodeToYamlAnchor(e),s=new xn({children:e.children,position:t,anchor:n,tag:r,styleGroup:Cr.Block,style:Tr.NextLine});return this.registerAnchor(s),this.schema.resolve(s)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;const t=new sn({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[new zr({content:"",tag:new Mt({explicitName:"?",kind:kt.Scalar}),position:new an({start:t,end:t}),styleGroup:Cr.Flow,style:Tr.Plain})]}};flow_sequence={enter:e=>{const t=Nn.toPosition(e),r=Nn.kindNodeToYamlTag(e),n=Nn.kindNodeToYamlAnchor(e),s=new xn({children:e.children.flat(),position:t,anchor:n,tag:r,styleGroup:Cr.Flow,style:Tr.Explicit});return this.registerAnchor(s),this.schema.resolve(s)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Nn.toPosition(e),r=Nn.kindNodeToYamlTag(e),n=Nn.kindNodeToYamlAnchor(e),s=new zr({content:e.text,anchor:n,tag:r,position:t,styleGroup:Cr.Flow,style:Tr.Plain});return this.registerAnchor(s),this.schema.resolve(s)}};single_quote_scalar={enter:e=>{const t=Nn.toPosition(e),r=Nn.kindNodeToYamlTag(e),n=Nn.kindNodeToYamlAnchor(e),s=new zr({content:e.text,anchor:n,tag:r,position:t,styleGroup:Cr.Flow,style:Tr.SingleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};double_quote_scalar={enter:e=>{const t=Nn.toPosition(e),r=Nn.kindNodeToYamlTag(e),n=Nn.kindNodeToYamlAnchor(e),s=new zr({content:e.text,anchor:n,tag:r,position:t,styleGroup:Cr.Flow,style:Tr.DoubleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};block_scalar={enter:e=>{const t=Nn.toPosition(e),r=Nn.kindNodeToYamlTag(e),n=Nn.kindNodeToYamlAnchor(e),s=e.text.startsWith("|")?Tr.Literal:e.text.startsWith(">")?Tr.Folded:Tr.Plain,i=new zr({content:e.text,anchor:n,tag:r,position:t,styleGroup:Cr.Block,style:s});return this.registerAnchor(i),this.schema.resolve(i)}};comment={enter:e=>new Sn({content:e.text})};alias={enter:e=>{const t=new An({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof Pn&&!e.isNamed){const t=Nn.toPosition(e),r=e.type||e.text,{isMissing:n}=e;return new jn({value:r,position:t,isMissing:n})}}ERROR(e,t,r,n){const s=Nn.toPosition(e),i=new On({children:e.children,position:s,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===n.length?new fn({children:[i]}):i}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const t=new sn({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:r}=e,n=(null==r?void 0:r.children)||[],s=n.find(Nn.isKind("tag")),i=n.find(Nn.isKind("anchor")),o=new Mt(void 0!==s?{explicitName:s.text,kind:kt.Scalar,position:Nn.toPosition(s)}:{explicitName:"?",kind:kt.Scalar}),a=void 0!==i?new cn({name:i.text,position:Nn.toPosition(i)}):void 0,c=new zr({content:"",position:new an({start:t,end:t}),tag:o,anchor:a,styleGroup:Cr.Flow,style:Tr.Plain});return this.registerAnchor(c),c}createKeyValuePairEmptyValue(e){const t=new sn({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:r}=e,n=(null==r?void 0:r.children)||[],s=n.find(Nn.isKind("tag")),i=n.find(Nn.isKind("anchor")),o=new Mt(void 0!==s?{explicitName:s.text,kind:kt.Scalar,position:Nn.toPosition(s)}:{explicitName:"?",kind:kt.Scalar}),a=void 0!==i?new cn({name:i.text,position:Nn.toPosition(i)}):void 0,c=new zr({content:"",position:new an({start:t,end:t}),tag:o,anchor:a,styleGroup:Cr.Flow,style:Tr.Plain});return this.registerAnchor(c),c}}const In=Nn;var Tn=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=j,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){var r;return this.f(t)||(this.all=!1,e=(r=this.xf["@@transducer/step"](e,!1))&&r["@@transducer/reduced"]?r:{"@@transducer/value":r,"@@transducer/reduced":!0}),e},e}();function Cn(e){return function(t){return new Tn(e,t)}}const Rn=o(S(["all"],Cn,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0}))),Fn=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],qn=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Ln=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),$n=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof se.wE)&&t.classes.includes(e),Vn=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Dn=e=>e({hasMethod:Fn,hasBasicElementProps:qn,primitiveEq:Ln,isElementType:Vn,hasClass:$n}),Bn=Dn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof se.Hg||e(r)&&t(void 0,r))),zn=Dn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof se.Om||e(r)&&t("string",r))),Un=Dn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof se.kT||e(r)&&t("number",r))),Gn=Dn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof se.Os||e(r)&&t("null",r))),Kn=Dn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof se.bd||e(r)&&t("boolean",r))),Wn=Dn((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof se.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Yn=Dn((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof se.wE&&!(n instanceof se.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Zn=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof se.Pr||e(n)&&t("member",n)&&r(void 0,n))),Hn=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof se.Ft||e(n)&&t("link",n)&&r(void 0,n))),Qn=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof se.sI||e(n)&&t("ref",n)&&r(void 0,n))),Xn=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xe||e(n)&&t("annotation",n)&&r("array",n))),Jn=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof et||e(n)&&t("comment",n)&&r("string",n))),es=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rt||e(n)&&t("parseResult",n)&&r("array",n))),ts=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof st||e(n)&&t("sourceMap",n)&&r("array",n))),rs=e=>Vn("object",e)||Vn("array",e)||Vn("boolean",e)||Vn("number",e)||Vn("string",e)||Vn("null",e)||Vn("member",e),ns=e=>ts(e.meta.get("sourceMap")),ss=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Yn(r)&&Rn(vr(r.toValue()),e)},is=(e,t)=>0===e.length||Rn(vr(t.classes.toValue()),e);const os=class extends St{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const as=class extends os{};const cs=class extends os{},us=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof se.KeyValuePair){const{key:t,value:s}=e,i=Bn(t)?us(t,n):t,o=Bn(s)?us(s,n):s,a=new se.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof se.ot){const t=e=>us(e,n),s=[...e].map(t),i=new se.ot(s);return r.set(e,i),i}if(e instanceof se.G6){const t=e=>us(e,n),s=[...e].map(t),i=new se.G6(s);return r.set(e,i),i}if(Bn(e)){const t=fs(e);if(r.set(e,t),e.content)if(Bn(e.content))t.content=us(e.content,n);else if(e.content instanceof se.KeyValuePair)t.content=us(e.content,n);else if(Array.isArray(e.content)){const r=e=>us(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new as("Value provided to cloneDeep function couldn't be cloned",{value:e})};us.safe=e=>{try{return us(e)}catch{return e}};const ls=e=>{const{key:t,value:r}=e;return new se.KeyValuePair(t,r)},ps=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=us(e.meta)),e.attributes.length>0&&(t._attributes=us(e.attributes)),Bn(e.content)){const r=e.content;t.content=ps(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof se.KeyValuePair?t.content=ls(e.content):t.content=e.content;return t},fs=e=>{if(e instanceof se.KeyValuePair)return ls(e);if(e instanceof se.ot)return(e=>{const t=[...e];return new se.ot(t)})(e);if(e instanceof se.G6)return(e=>{const t=[...e];return new se.G6(t)})(e);if(Bn(e))return ps(e);throw new cs("Value provided to cloneShallow function couldn't be cloned",{value:e})};fs.safe=e=>{try{return fs(e)}catch{return e}};const hs=e=>Wn(e)?"ObjectElement":Yn(e)?"ArrayElement":Zn(e)?"MemberElement":zn(e)?"StringElement":Kn(e)?"BooleanElement":Un(e)?"NumberElement":Gn(e)?"NullElement":Hn(e)?"LinkElement":Qn(e)?"RefElement":void 0,ds=e=>Bn(e)?fs(e):rn(e),_s=ye(hs,ut),ms={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const ys=(e,t,{keyMap:r=ms,...n}={})=>nn(e,t,{keyMap:r,nodeTypeGetter:hs,nodePredicate:_s,nodeCloneFn:ds,...n});ys[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=ms,...n}={})=>nn[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:hs,nodePredicate:_s,nodeCloneFn:ds,...n});const gs=a((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})T(n,t)&&(s[n]=T(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)T(n,r)&&!T(n,s)&&(s[n]=r[n]);return s}));const vs=a((function e(t,r,n){return gs((function(r,n,s){return Se(n)&&Se(s)?e(t,n,s):t(r,n,s)}),r,n)}));const bs=o((function(e,t){return vs((function(e,t,r){return r}),e,t)}));const ws=_e(0,-1);const Es=o((function(e,t){return e.apply(this,t)}));const xs=K(Ke);var Ss=i((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():y(e)?[]:l(e)?"":Se(e)?{}:R(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 As=Ss;const js=i((function(e){return null!=e&&J(e,As(e))}));const Os=Fe(I(1,Ke(Array.isArray)?Array.isArray:ye(H,ve("Array"))),js);const Ps=I(3,(function(e,t,r){var n=Ie(e,r),s=Ie(ws(e),r);if(!xs(n)&&!Os(e)){var i=ae(n,s);return Es(i,t)}})),ks=()=>({predicates:{...e},namespace:ct}),Ms={toolboxCreator:ks,visitorOptions:{nodeTypeGetter:hs,exposeEdits:!0}},Ns=(e,t,r={})=>{if(0===t.length)return e;const n=bs(Ms,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=t.map((e=>e(o))),c=((e,{visitFnGetter:t=Xr,nodeTypeGetter:r=en,breakSymbol:n=Jr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,...l){let p=u,f=!1;for(let h=0;h<e.length;h+=1)if(c[h]===a){const a=t(e[h],r(p),!1);if("function"==typeof a){const t=a.call(e[h],p,...l);if(t===i)c[h]=u;else if(t===n)c[h]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;p=t,f=!0}}}}return f?p:void 0},leave(s,...o){for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],r(s),!0);if("function"==typeof a){const t=a.call(e[u],s,...o);if(t===n)c[u]=n;else if(void 0!==t&&t!==i)return t}}else c[u]===s&&(c[u]=a)}}})(a.map(h({},"visitor")),{...i});a.forEach(Ps(["pre"],[]));const u=ys(e,c,i);return a.forEach(Ps(["post"],[])),u},Is=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Bn(e)&&(e.meta.length>0&&(n.meta=us(e.meta)),e.attributes.length>0&&(n.attributes=us(e.attributes))),Ns(n,r,{toolboxCreator:ks,visitorOptions:{nodeTypeGetter:hs}})},Ts=e=>(t,r={})=>Is(t,{...r,Type:e});se.Sh.refract=Ts(se.Sh),se.wE.refract=Ts(se.wE),se.Om.refract=Ts(se.Om),se.bd.refract=Ts(se.bd),se.Os.refract=Ts(se.Os),se.kT.refract=Ts(se.kT),se.Ft.refract=Ts(se.Ft),se.sI.refract=Ts(se.sI),Xe.refract=Ts(Xe),et.refract=Ts(et),rt.refract=Ts(rt),st.refract=Ts(st);const Cs={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...ms},Rs=e=>Bn(e)?hs(e):en(e),Fs=e=>Bn(e)||tn(e)||Array.isArray(e);const qs=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new rt;t._content=e.children.flat(1);const r=t.findElements(rs);if(r.length>0){r[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=at()}comment(e){if(0===this.processedDocumentCount){const t=new et(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,r=this.processedDocumentCount>=1;if(t){const t=new Xe("Only first document within YAML stream will be used. Rest will be discarded.");t.classes.push("warning"),this.maybeAddSourceMap(e,t),this.annotations.push(t)}return r?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new se.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new se.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}sequence(e){const t=new se.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}scalar(e){const t=this.namespace.toElement(e.content);return""===e.content&&e.style===Tr.Plain&&(t.classes.push("yaml-e-node"),t.classes.push("yaml-e-scalar")),this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,r=new Xe(t);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}error(e,t,r,n){const s=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new Xe(s);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===n.length){const e=new rt;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const r=new st;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)}};class Ls{cursor;constructor(e){this.cursor=e}stream(){return new Pn(this.cursor)}yaml_directive(){return new Pn(this.cursor)}tag_directive(){return new Pn(this.cursor)}reserved_directive(){return new Pn(this.cursor)}document(){return new Pn(this.cursor)}block_node(){return new Pn(this.cursor).setFieldName(this.cursor)}flow_node(){return new Pn(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Pn(this.cursor)}block_mapping_pair(){return new Pn(this.cursor)}flow_mapping(){return new Pn(this.cursor)}flow_pair(){return new Pn(this.cursor)}block_sequence(){return new Pn(this.cursor)}block_sequence_item(){return new Pn(this.cursor)}flow_sequence(){return new Pn(this.cursor)}plain_scalar(){return new Pn(this.cursor)}single_quote_scalar(){return new Pn(this.cursor)}double_quote_scalar(){return new Pn(this.cursor)}block_scalar(){return new Pn(this.cursor)}ERROR(){return new Pn(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Pn(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Ls(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Ls(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const $s=Ls,Vs=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),n=new $s(r),[s]=Array.from(n),i=new In,o=new qs,a=new Dr,c=new Qr,u=nn(s,i,{keyMap:kn,nodePredicate:Mn,state:{schema:a,sourceMap:t,referenceManager:c}});return nn(u.rootNode,o,{keyMap:Cs,nodeTypeGetter:Rs,nodePredicate:Fs,state:{sourceMap:t}})};const Ds=o((function(e,t){return m((function(r,n){return r[n]=e(t[n],n,t),r}),{},D(t))}));const Bs=i((function(e){return null==e}));const zs=o((function(e,t){if(0===e.length||Bs(t))return!1;for(var r=t,n=0;n<e.length;){if(Bs(r)||!T(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));var Us=o((function(e,t){return zs([e],t)}));const Gs=Us;const Ks=a((function(e,t,r){return e(f(t,r))})),Ws=(e,t)=>{const r=c(e,t);return Ds((e=>{if(He(e)&&Gs("$ref",e)&&Ks(ut,"$ref",e)){const t=Ie(["$ref"],e),n=br("#/",t);return Ie(n.split("/"),r)}return He(e)?Ws(e,r):e}),e)};const Ys=function(){return!0},Zs=e=>"string"==typeof(null==e?void 0:e.type)?e.type:hs(e),Hs={EphemeralObject:["content"],EphemeralArray:["content"],...ms},Qs=(e,t,{keyMap:r=Hs,...n}={})=>ys(e,t,{keyMap:r,nodeTypeGetter:Zs,nodePredicate:Ys,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});Qs[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Hs,...r}={})=>ys[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Zs,nodePredicate:Ys,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Xs=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 Js=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 ei{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Js(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 Xs(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 n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return zn(e.href)?e.href.toValue():""}}const ti=e=>Bn(e)?zn(e)||Un(e)||Kn(e)||Gn(e)?e.toValue():Qs(e,new ei):e,ri=e=>{const t=e.meta.length>0?us(e.meta):void 0,r=e.attributes.length>0?us(e.attributes):void 0;return new e.constructor(void 0,t,r)},ni=(e,t)=>t.clone&&t.isMergeableElement(e)?ai(ri(e),e,t):e,si=e=>"function"!=typeof e.customMetaMerge?e=>us(e):e.customMetaMerge,ii=e=>"function"!=typeof e.customAttributesMerge?e=>us(e):e.customAttributesMerge,oi={clone:!0,isMergeableElement:e=>Wn(e)||Yn(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>ni(e,r))),objectElementMerge:(e,t,r)=>{const n=Wn(e)?ri(e):ri(t);return Wn(e)&&e.forEach(((e,t,s)=>{const i=fs(s);i.value=ni(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=ti(s);let a;if(Wn(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);a=fs(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return ai;const r=t.customMerge(e,t);return"function"==typeof r?r:ai})(s,r)(n,t)}else a=fs(i),a.value=ni(t,r);n.remove(o),n.content.push(a)})),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function ai(e,t,r){var n,s,i;const o={...oi,...r};o.isMergeableElement=null!==(n=o.isMergeableElement)&&void 0!==n?n:oi.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:oi.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:oi.objectElementMerge;const a=Yn(t);if(!(a===Yn(e)))return ni(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=si(o)(e.meta,t.meta),c.attributes=ii(o)(e.attributes,t.attributes),c}ai.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new se.Sh:e.reduce(((e,r)=>ai(e,r,t)),ri(e[0]))};const ci=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ai(t.meta,e.meta),ns(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ai(t.attributes,e.attributes))}};const ui=class extends ci{enter(e){return this.element=us(e),Jr}},li=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},pi=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:pi(r,[...t,r])},fi=(e,t,r=[])=>{var n;const s=null!==(n=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>pi(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),n=e[0];if(!e.every((e=>e===n)))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(s),o=pi(s);for(let t of e){let e=pi(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(li(i,n,["constructor",...r]),o.push(n))}}return i.constructor=t,i},hi=e=>e.filter(((t,r)=>e.indexOf(t)==r)),di=(e,t)=>{const r=t.map((e=>pi(e)));let n=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][n];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}n++}},_i=(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(di(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,n)=>void 0!==di(n,e)||void 0!==t[n],get:(r,n)=>(di(n,e)||t)[n],set(t,r,n){const s=di(r,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[r]=n,!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)))))}),mi=null,yi="copy",gi="copy",vi="deep",bi=new WeakMap,wi=e=>bi.get(e),Ei=(e,t)=>{var r,n;const s=hi([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=hi([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},xi=(e,t)=>{var r,n,s,i;return{property:Ei(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:Ei(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Si=(e,t)=>{var r,n,s,i,o,a;return{class:hi([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:xi(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:xi(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Ai=new Map,ji=(...e)=>{const t=((...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const s=[...pi(e.prototype).map((e=>e.constructor)),...null!==(t=wi(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of s)n.add(e);r.add(e),n.delete(e)}return[...r]})(...e).map((e=>Ai.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Si(e,t)))},Oi=e=>{let t=Ai.get(e);return t||(t={},Ai.set(e,t)),t};function Pi(...e){var t,r,n;const s=e.map((e=>e.prototype)),i=mi;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t={[i]:function(...t){for(let r of e)r.apply(this,t)}};s.push(t)}function o(...t){for(const r of e)li(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===gi?fi(s,o):(a=s,c=o,_i([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===yi?fi(e,null,["prototype"]):_i(e,Function.prototype));let u=o;if("none"!==vi){const s="deep"===vi?ji(...e):((...e)=>{const t=e.map((e=>Oi(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Si(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}ki(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},u),ki(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},u.prototype)}var l,p;return l=u,p=e,bi.set(l,p),u}const ki=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const Mi=o((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r}));const Ni=class extends ci{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Mi(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Ie(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Te(Ke,["visitors",...e],this.specObj)?Ie(["visitors",...e],this.specObj):Ie(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof ui&&(null==n?void 0:n.constructor)===ui?us(t):(ys(t,n,r),n.element)}};class Ii extends se.Om{constructor(e,t,r){super(e,t,r),this.element="requirementLevel"}}const Ti=Ii;class Ci extends(Pi(Ni,ui)){StringElement(e){const t=new Ti(ti(e));return this.copyMetaAndAttributes(e,t),this.element=t,Jr}}const Ri=Ci;class Fi extends se.wE{constructor(e,t,r){super(e,t,r),this.element="standardIdentifier"}}const qi=Fi;class Li extends(Pi(Ni,ui)){constructor(e){super(e),this.element=new qi}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","StandardIdentifier"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Jr}}const $i=Li;class Vi extends se.Sh{constructor(e,t,r){super(e,t,r),this.element="requirement"}get subject(){return this.get("subject")}set subject(e){this.set("subject",e)}get level(){return this.get("level")}set level(e){this.set("level",e)}get values(){return this.get("values")}set values(e){this.set("values",e)}get follows(){return this.get("follows")}set follows(e){this.set("follows",e)}}const Di=Vi;const Bi=class extends Ni{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,n,s)=>{if(zn(n)&&r.includes(ti(n))&&!this.ignoredFields.includes(ti(n))){const r=this.toRefractedElement([...t,"fixedFields",ti(n)],e),i=new se.Pr(us(n),r);i.classes.push("fixed-field"),this.copyMetaAndAttributes(s,i),this.element.content.push(i)}else this.ignoredFields.includes(ti(n))||this.element.content.push(us(s))})),this.copyMetaAndAttributes(e,this.element),Jr}};class zi extends(Pi(Bi,ui)){constructor(e){super(e),this.element=new Di,this.specPath=ee(["document","objects","Requirement"])}}const Ui=zi;class Gi extends se.Sh{constructor(e,t,r){super(e,t,r),this.element="scenario"}get description(){return this.get("description")}set description(e){this.set("description",e)}get when(){return this.get("when")}set when(e){this.set("when",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}}const Ki=Gi;class Wi extends(Pi(Bi,ui)){constructor(e){super(e),this.element=new Ki,this.specPath=ee(["document","objects","Scenario"])}}const Yi=Wi;class Zi extends(Pi(Ni,ui)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("scenario-then")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Requirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Jr}}const Hi=Zi;class Qi extends se.Sh{constructor(e,t,r){super(e,t,r),this.element="standard"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get iri(){return this.get("iri")}set iri(e){this.set("iri",e)}get level(){return this.get("level")}set level(e){this.set("level",e)}}const Xi=Qi;class Ji extends(Pi(Bi,ui)){constructor(e){super(e),this.element=new Xi,this.specPath=ee(["document","objects","Standard"])}}const eo=Ji;class to extends se.Sh{constructor(e,t,r){super(e,t,r),this.element="principle"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get iri(){return this.get("iri")}set iri(e){this.set("iri",e)}get level(){return this.get("level")}set level(e){this.set("level",e)}}const ro=to;class no extends(Pi(Bi,ui)){constructor(e){super(e),this.element=new ro,this.specPath=ee(["document","objects","Principle"])}}const so=no;class io extends se.Sh{constructor(e,t,r){super(e,t,r),this.element="info"}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const oo=io;class ao extends(Pi(Bi,ui)){constructor(e){super(e),this.specPath=ee(["document","objects","Info"]),this.element=new oo}}const co=ao;class uo extends se.Sh{constructor(e,t,r){super(e,t,r),this.element="main",this.classes.push("api")}get version(){return this.get("version")}set version(e){this.set("version",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get principles(){return this.get("principles")}set principles(e){this.set("principles",e)}get standards(){return this.get("standards")}set standards(e){this.set("standards",e)}get scenarios(){return this.get("scenarios")}set scenarios(e){this.set("scenarios",e)}}const lo=uo;class po extends(Pi(Bi,ui)){constructor(e){super(e),this.element=new lo,this.specPath=ee(["document","objects","Main"])}}const fo=po;class ho extends(Pi(Ni,ui)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("main-principles")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Principle"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Jr}}const _o=ho;class mo extends(Pi(Ni,ui)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("main-standards")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Standard"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Jr}}const yo=mo;class go extends(Pi(Ni,ui)){constructor(e){super(e),this.element=new se.wE,this.element.classes.push("main-scenarios")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Scenario"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Jr}}const vo={visitors:{value:ui,document:{objects:{Main:{$visitor:fo,fixedFields:{version:{$ref:"#/visitors/value"},info:{$ref:"#/visitors/document/objects/Info"},principles:_o,standards:yo,scenarios:go}},Info:{$visitor:co,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Principle:{$visitor:so,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},iri:{$ref:"#/visitors/value"},level:{$ref:"#/visitors/document/objects/RequirementLevel"}}},Standard:{$visitor:eo,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},level:{$ref:"#/visitors/document/objects/RequirementLevel"},iri:{$ref:"#/visitors/value"}}},Scenario:{$visitor:Yi,fixedFields:{description:{$ref:"#/visitors/value"},when:{$ref:"#/visitors/document/objects/StandardIdentifier"},then:Hi}},Requirement:{$visitor:Ui,fixedFields:{subject:{$ref:"#/visitors/document/objects/StandardIdentifier"},level:{$ref:"#/visitors/document/objects/RequirementLevel"},values:{$ref:"#/visitors/value"},follows:{$ref:"#/visitors/value"}}},StandardIdentifier:{$visitor:$i},RequirementLevel:{$visitor:Ri}}}}},bo=e=>{if(Bn(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},wo={MainElement:["content"],InfoElement:["content"],PrincipleElement:["content"],StandardElement:["content"],ScenarioElement:["content"],RequirementElement:["content"],StandardIdentifierElement:["content"],RequirementLevelElement:[],...ms},Eo=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lo||e(n)&&t("main",n)&&r("object",n))),xo=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof oo||e(n)&&t("info",n)&&r("object",n))),So=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ro||e(n)&&t("principle",n)&&r("object",n))),Ao=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Di||e(n)&&t("requirement",n)&&r("object",n))),jo=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ti||e(n)&&t("requirementLevel",n)&&r("string",n))),Oo=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ki||e(n)&&t("scenario",n)&&r("object",n))),Po=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xi||e(n)&&t("standard",n)&&r("object",n))),ko=Dn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qi||e(n)&&t("standardIdentifier",n)&&r("array",n))),Mo={namespace:e=>{const{base:t}=e;return t.register("info",oo),t.register("main",lo),t.register("principle",ro),t.register("requirement",Di),t.register("requirementLevel",Ti),t.register("scenario",Ki),t.register("standard",Xi),t.register("standardIdentifier",qi),t}},No=()=>{const e=at(Mo);return{predicates:{...t,isStringElement:zn},namespace:e}},Io=(e,{specPath:t=["visitors","document","objects","Main","$visitor"],plugins:r=[]}={})=>{const n=(0,se.e)(e),s=Ws(vo),i=new(Ie(t,s))({specObj:s});return ys(n,i),Ns(i.element,r,{toolboxCreator:No,visitorOptions:{keyMap:wo,nodeTypeGetter:bo}})},To=e=>(t,r={})=>Io(t,{...r,specPath:e});lo.refract=To(["visitors","document","objects","Main","$visitor"]),oo.refract=To(["visitors","document","objects","Info","$visitor"]),ro.refract=To(["visitors","document","objects","Principle","$visitor"]),Di.refract=To(["visitors","document","objects","Requirement","$visitor"]),Ti.refract=To(["visitors","document","objects","RequirementLevel","$visitor"]),Ki.refract=To(["visitors","document","objects","Scenario","$visitor"]),Xi.refract=To(["visitors","document","objects","Standard","$visitor"]),qi.refract=To(["visitors","document","objects","StandardIdentifier","$visitor"]);const Co=p(-1);const Ro=class extends mt{};const Fo=class extends Ro{};const qo=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Fo("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Fo("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Fo("latest method in MediaTypes class is not yet implemented.")}};class Lo extends qo{filterByFormat(e="generic"){const t="generic"===e?"apidesignsystems;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2021-05-07",t="generic"){const r="generic"===t?`apidesignsystems;version=${e}`:`apidesignsystems+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return Co(this.filterByFormat(e))}}const $o=new Lo("application/vnd.aai.apidesignsystems;version=2021-05-07","application/vnd.aai.apidesignsystems+json;version=2021-05-07","application/vnd.aai.apidesignsystems+yaml;version=2021-05-07"),Vo=new Lo(...$o.filterByFormat("generic"),...$o.filterByFormat("yaml")),Do=/(?<YAML>^(["']?)version\2\s*:\s*(["']?)(?<version_yaml>2021-05-07)\3)|(?<JSON>"version"\s*:\s*"(?<version_json>2021-05-07)")/m,Bo=async e=>Do.test(e)&&await(async e=>{try{return"ERROR"!==(await bt(e)).rootNode.type}catch{return!1}})(e),zo=async(e,t={})=>{const r=h({},"refractorOpts",t),n=_(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1}={})=>{const r=await bt(e);return Vs(r,{sourceMap:t})})(e,n),{result:i}=s;if(ne(i)){const e=lo.refract(i,r);e.classes.push("result"),s.replaceResult(e)}return s},Uo=at(Mo)})(),n})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swagger-api/apidom-parser-adapter-api-design-systems-yaml",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.97.0",
|
|
4
4
|
"description": "Parser adapter for parsing YAML documents into API Design Systems namespace.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"license": "Apache-2.0",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@babel/runtime-corejs3": "^7.20.7",
|
|
41
|
-
"@swagger-api/apidom-core": "^0.
|
|
42
|
-
"@swagger-api/apidom-ns-api-design-systems": "^0.
|
|
43
|
-
"@swagger-api/apidom-parser-adapter-yaml-1-2": "^0.
|
|
41
|
+
"@swagger-api/apidom-core": "^0.97.0",
|
|
42
|
+
"@swagger-api/apidom-ns-api-design-systems": "^0.97.0",
|
|
43
|
+
"@swagger-api/apidom-parser-adapter-yaml-1-2": "^0.97.0",
|
|
44
44
|
"@types/ramda": "~0.29.6",
|
|
45
45
|
"ramda": "~0.29.1",
|
|
46
46
|
"ramda-adjunct": "^4.0.0"
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"README.md",
|
|
56
56
|
"CHANGELOG.md"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "b616e76738c48401d651a272daef174f6c1a6510"
|
|
59
59
|
}
|