@swagger-api/apidom-parser-adapter-yaml-1-2 0.98.0 → 0.99.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.99.0](https://github.com/swagger-api/apidom/compare/v0.98.3...v0.99.0) (2024-04-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-yaml-1-2
|
|
9
|
+
|
|
6
10
|
# [0.98.0](https://github.com/swagger-api/apidom/compare/v0.97.1...v0.98.0) (2024-03-21)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-yaml-1-2
|
|
@@ -16742,6 +16742,7 @@ const cloneNode = node => Object.create(Object.getPrototypeOf(node), Object.getO
|
|
|
16742
16742
|
* If a prior visitor edits a node, no following visitors will see that node.
|
|
16743
16743
|
* `exposeEdits=true` can be used to exoise the edited node from the previous visitors.
|
|
16744
16744
|
*/
|
|
16745
|
+
|
|
16745
16746
|
const mergeAll = (visitors, {
|
|
16746
16747
|
visitFnGetter = getVisitFn,
|
|
16747
16748
|
nodeTypeGetter = getNodeType,
|
|
@@ -16800,6 +16801,67 @@ const mergeAll = (visitors, {
|
|
|
16800
16801
|
}
|
|
16801
16802
|
};
|
|
16802
16803
|
};
|
|
16804
|
+
const mergeAllAsync = (visitors, {
|
|
16805
|
+
visitFnGetter = getVisitFn,
|
|
16806
|
+
nodeTypeGetter = getNodeType,
|
|
16807
|
+
breakSymbol = BREAK,
|
|
16808
|
+
deleteNodeSymbol = null,
|
|
16809
|
+
skipVisitingNodeSymbol = false,
|
|
16810
|
+
exposeEdits = false
|
|
16811
|
+
} = {}) => {
|
|
16812
|
+
const skipSymbol = Symbol('skip');
|
|
16813
|
+
const skipping = new Array(visitors.length).fill(skipSymbol);
|
|
16814
|
+
return {
|
|
16815
|
+
async enter(node, ...rest) {
|
|
16816
|
+
let currentNode = node;
|
|
16817
|
+
let hasChanged = false;
|
|
16818
|
+
for (let i = 0; i < visitors.length; i += 1) {
|
|
16819
|
+
if (skipping[i] === skipSymbol) {
|
|
16820
|
+
const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), false);
|
|
16821
|
+
if (typeof visitFn === 'function') {
|
|
16822
|
+
// eslint-disable-next-line no-await-in-loop
|
|
16823
|
+
const result = await visitFn.call(visitors[i], currentNode, ...rest);
|
|
16824
|
+
if (result === skipVisitingNodeSymbol) {
|
|
16825
|
+
skipping[i] = node;
|
|
16826
|
+
} else if (result === breakSymbol) {
|
|
16827
|
+
skipping[i] = breakSymbol;
|
|
16828
|
+
} else if (result === deleteNodeSymbol) {
|
|
16829
|
+
return result;
|
|
16830
|
+
} else if (result !== undefined) {
|
|
16831
|
+
if (exposeEdits) {
|
|
16832
|
+
currentNode = result;
|
|
16833
|
+
hasChanged = true;
|
|
16834
|
+
} else {
|
|
16835
|
+
return result;
|
|
16836
|
+
}
|
|
16837
|
+
}
|
|
16838
|
+
}
|
|
16839
|
+
}
|
|
16840
|
+
}
|
|
16841
|
+
return hasChanged ? currentNode : undefined;
|
|
16842
|
+
},
|
|
16843
|
+
async leave(node, ...rest) {
|
|
16844
|
+
for (let i = 0; i < visitors.length; i += 1) {
|
|
16845
|
+
if (skipping[i] === skipSymbol) {
|
|
16846
|
+
const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(node), true);
|
|
16847
|
+
if (typeof visitFn === 'function') {
|
|
16848
|
+
// eslint-disable-next-line no-await-in-loop
|
|
16849
|
+
const result = await visitFn.call(visitors[i], node, ...rest);
|
|
16850
|
+
if (result === breakSymbol) {
|
|
16851
|
+
skipping[i] = breakSymbol;
|
|
16852
|
+
} else if (result !== undefined && result !== skipVisitingNodeSymbol) {
|
|
16853
|
+
return result;
|
|
16854
|
+
}
|
|
16855
|
+
}
|
|
16856
|
+
} else if (skipping[i] === node) {
|
|
16857
|
+
skipping[i] = skipSymbol;
|
|
16858
|
+
}
|
|
16859
|
+
}
|
|
16860
|
+
return undefined;
|
|
16861
|
+
}
|
|
16862
|
+
};
|
|
16863
|
+
};
|
|
16864
|
+
mergeAll[Symbol.for('nodejs.util.promisify.custom')] = mergeAllAsync;
|
|
16803
16865
|
|
|
16804
16866
|
/* eslint-disable no-continue, no-param-reassign */
|
|
16805
16867
|
/**
|
|
@@ -18966,7 +19028,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18966
19028
|
/* harmony export */ createRefractor: () => (/* binding */ createRefractor),
|
|
18967
19029
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
18968
19030
|
/* harmony export */ });
|
|
18969
|
-
/* harmony import */ var
|
|
19031
|
+
/* harmony import */ var _plugins_dispatcher_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9915);
|
|
18970
19032
|
/* harmony import */ var _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5956);
|
|
18971
19033
|
/* harmony import */ var _clone_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4831);
|
|
18972
19034
|
/* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(60);
|
|
@@ -18999,7 +19061,7 @@ const refract = (value, {
|
|
|
18999
19061
|
* Run plugins only when necessary.
|
|
19000
19062
|
* Running plugins visitors means extra single traversal === performance hit.
|
|
19001
19063
|
*/
|
|
19002
|
-
return (0,
|
|
19064
|
+
return (0,_plugins_dispatcher_index_mjs__WEBPACK_IMPORTED_MODULE_2__.dispatchPluginsSync)(element, plugins, {
|
|
19003
19065
|
toolboxCreator: _toolbox_mjs__WEBPACK_IMPORTED_MODULE_3__["default"],
|
|
19004
19066
|
visitorOptions: {
|
|
19005
19067
|
nodeTypeGetter: _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_4__.getNodeType
|
|
@@ -19014,13 +19076,14 @@ const createRefractor = Type => (value, options = {}) => refract(value, {
|
|
|
19014
19076
|
|
|
19015
19077
|
/***/ }),
|
|
19016
19078
|
|
|
19017
|
-
/***/
|
|
19079
|
+
/***/ 9915:
|
|
19018
19080
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
19019
19081
|
|
|
19020
19082
|
"use strict";
|
|
19021
19083
|
__webpack_require__.r(__webpack_exports__);
|
|
19022
19084
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19023
|
-
/* harmony export */
|
|
19085
|
+
/* harmony export */ dispatchPluginsAsync: () => (/* binding */ dispatchPluginsAsync),
|
|
19086
|
+
/* harmony export */ dispatchPluginsSync: () => (/* binding */ dispatchPluginsSync)
|
|
19024
19087
|
/* harmony export */ });
|
|
19025
19088
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1515);
|
|
19026
19089
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5379);
|
|
@@ -19039,9 +19102,7 @@ const defaultDispatchPluginsOptions = {
|
|
|
19039
19102
|
exposeEdits: true
|
|
19040
19103
|
}
|
|
19041
19104
|
};
|
|
19042
|
-
|
|
19043
|
-
// eslint-disable-next-line import/prefer-default-export
|
|
19044
|
-
const dispatchPlugins = (element, plugins, options = {}) => {
|
|
19105
|
+
const dispatchPluginsSync = (element, plugins, options = {}) => {
|
|
19045
19106
|
if (plugins.length === 0) return element;
|
|
19046
19107
|
const mergedOptions = (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(defaultDispatchPluginsOptions, options);
|
|
19047
19108
|
const {
|
|
@@ -19058,6 +19119,26 @@ const dispatchPlugins = (element, plugins, options = {}) => {
|
|
|
19058
19119
|
pluginsSpecs.forEach((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_5__["default"])(['post'], []));
|
|
19059
19120
|
return newElement;
|
|
19060
19121
|
};
|
|
19122
|
+
const dispatchPluginsAsync = async (element, plugins, options = {}) => {
|
|
19123
|
+
if (plugins.length === 0) return element;
|
|
19124
|
+
const mergedOptions = (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(defaultDispatchPluginsOptions, options);
|
|
19125
|
+
const {
|
|
19126
|
+
toolboxCreator,
|
|
19127
|
+
visitorOptions
|
|
19128
|
+
} = mergedOptions;
|
|
19129
|
+
const toolbox = toolboxCreator();
|
|
19130
|
+
const pluginsSpecs = plugins.map(plugin => plugin(toolbox));
|
|
19131
|
+
const mergeAllVisitorsAsync = _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_3__.mergeAll[Symbol.for('nodejs.util.promisify.custom')];
|
|
19132
|
+
const visitAsync = _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_1__.visit[Symbol.for('nodejs.util.promisify.custom')];
|
|
19133
|
+
const mergedPluginsVisitor = mergeAllVisitorsAsync(pluginsSpecs.map((0,ramda__WEBPACK_IMPORTED_MODULE_4__["default"])({}, 'visitor')), {
|
|
19134
|
+
...visitorOptions
|
|
19135
|
+
});
|
|
19136
|
+
await Promise.allSettled(pluginsSpecs.map((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_5__["default"])(['pre'], [])));
|
|
19137
|
+
const newElement = await visitAsync(element, mergedPluginsVisitor, visitorOptions);
|
|
19138
|
+
await Promise.allSettled(pluginsSpecs.map((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_5__["default"])(['post'], [])));
|
|
19139
|
+
return newElement;
|
|
19140
|
+
};
|
|
19141
|
+
dispatchPluginsSync[Symbol.for('nodejs.util.promisify.custom')] = dispatchPluginsAsync;
|
|
19061
19142
|
|
|
19062
19143
|
/***/ }),
|
|
19063
19144
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apidomParserAdapterYaml1_2=e():t.apidomParserAdapterYaml1_2=e()}(self,(()=>(()=>{var t={3103:(t,e,r)=>{var n=r(4715)(r(8942),"DataView");t.exports=n},5098:(t,e,r)=>{var n=r(3305),s=r(9361),i=r(1112),o=r(5276),a=r(5071);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];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,t.exports=c},1386:(t,e,r)=>{var n=r(2393),s=r(2049),i=r(7144),o=r(7452),a=r(3964);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];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,t.exports=c},9770:(t,e,r)=>{var n=r(4715)(r(8942),"Map");t.exports=n},8250:(t,e,r)=>{var n=r(9753),s=r(5681),i=r(88),o=r(4732),a=r(9068);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];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,t.exports=c},9413:(t,e,r)=>{var n=r(4715)(r(8942),"Promise");t.exports=n},4512:(t,e,r)=>{var n=r(4715)(r(8942),"Set");t.exports=n},3212:(t,e,r)=>{var n=r(8250),s=r(1877),i=r(8006);function o(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,t.exports=o},1340:(t,e,r)=>{var n=r(1386),s=r(4103),i=r(1779),o=r(4162),a=r(7462),c=r(6638);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,t.exports=u},5650:(t,e,r)=>{var n=r(8942).Symbol;t.exports=n},1623:(t,e,r)=>{var n=r(8942).Uint8Array;t.exports=n},9270:(t,e,r)=>{var n=r(4715)(r(8942),"WeakMap");t.exports=n},9847:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,s=0,i=[];++r<n;){var o=t[r];e(o,r,t)&&(i[s++]=o)}return i}},358:(t,e,r)=>{var n=r(6137),s=r(3283),i=r(3142),o=r(5853),a=r(9632),c=r(8666),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&s(t),p=!r&&!l&&o(t),f=!r&&!l&&!p&&c(t),_=r||l||p||f,h=_?n(t.length,String):[],d=h.length;for(var m in t)!e&&!u.call(t,m)||_&&("length"==m||p&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,d))||h.push(m);return h}},1129:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,s=t.length;++r<n;)t[s+r]=e[r];return t}},6465:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},7034:(t,e,r)=>{var n=r(6285);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},8244:(t,e,r)=>{var n=r(1129),s=r(3142);t.exports=function(t,e,r){var i=e(t);return s(t)?i:n(i,r(t))}},7379:(t,e,r)=>{var n=r(5650),s=r(8870),i=r(9005),o=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?s(t):i(t)}},6027:(t,e,r)=>{var n=r(7379),s=r(547);t.exports=function(t){return s(t)&&"[object Arguments]"==n(t)}},4687:(t,e,r)=>{var n=r(353),s=r(547);t.exports=function t(e,r,i,o,a){return e===r||(null==e||null==r||!s(e)&&!s(r)?e!=e&&r!=r:n(e,r,i,o,t,a))}},353:(t,e,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]",_="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,d,m,y){var g=c(t),v=c(e),b=g?f:a(t),w=v?f:a(e),E=(b=b==p?_:b)==_,x=(w=w==p?_:w)==_,S=b==w;if(S&&u(t)){if(!u(e))return!1;g=!0,E=!1}if(S&&!E)return y||(y=new n),g||l(t)?s(t,e,r,d,m,y):i(t,e,b,r,d,m,y);if(!(1&r)){var A=E&&h.call(t,"__wrapped__"),j=x&&h.call(e,"__wrapped__");if(A||j){var k=A?t.value():t,O=j?e.value():e;return y||(y=new n),m(k,O,r,d,y)}}return!!S&&(y||(y=new n),o(t,e,r,d,m,y))}},9624:(t,e,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.*?")+"$");t.exports=function(t){return!(!i(t)||s(t))&&(n(t)?f:a).test(o(t))}},674:(t,e,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,t.exports=function(t){return i(t)&&s(t.length)&&!!o[n(t)]}},195:(t,e,r)=>{var n=r(4882),s=r(8121),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return s(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},6137:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},9460:t=>{t.exports=function(t){return function(e){return t(e)}}},5568:t=>{t.exports=function(t,e){return t.has(e)}},1950:(t,e,r)=>{var n=r(8942)["__core-js_shared__"];t.exports=n},3934:(t,e,r)=>{var n=r(3212),s=r(6465),i=r(5568);t.exports=function(t,e,r,o,a,c){var u=1&r,l=t.length,p=e.length;if(l!=p&&!(u&&p>l))return!1;var f=c.get(t),_=c.get(e);if(f&&_)return f==e&&_==t;var h=-1,d=!0,m=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++h<l;){var y=t[h],g=e[h];if(o)var v=u?o(g,y,h,e,t,c):o(y,g,h,t,e,c);if(void 0!==v){if(v)continue;d=!1;break}if(m){if(!s(e,(function(t,e){if(!i(m,e)&&(y===t||a(y,t,r,o,c)))return m.push(e)}))){d=!1;break}}else if(y!==g&&!a(y,g,r,o,c)){d=!1;break}}return c.delete(t),c.delete(e),d}},8861:(t,e,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;t.exports=function(t,e,r,n,u,p,f){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new s(t),new s(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var _=a;case"[object Set]":var h=1&n;if(_||(_=c),t.size!=e.size&&!h)return!1;var d=f.get(t);if(d)return d==e;n|=2,f.set(t,e);var m=o(_(t),_(e),n,u,p,f);return f.delete(t),m;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},1182:(t,e,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,o,a){var c=1&r,u=n(t),l=u.length;if(l!=n(e).length&&!c)return!1;for(var p=l;p--;){var f=u[p];if(!(c?f in e:s.call(e,f)))return!1}var _=a.get(t),h=a.get(e);if(_&&h)return _==e&&h==t;var d=!0;a.set(t,e),a.set(e,t);for(var m=c;++p<l;){var y=t[f=u[p]],g=e[f];if(i)var v=c?i(g,y,f,e,t,a):i(y,g,f,t,e,a);if(!(void 0===v?y===g||o(y,g,r,i,a):v)){d=!1;break}m||(m="constructor"==f)}if(d&&!m){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(d=!1)}return a.delete(t),a.delete(e),d}},4967:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},393:(t,e,r)=>{var n=r(8244),s=r(7979),i=r(1211);t.exports=function(t){return n(t,i,s)}},4700:(t,e,r)=>{var n=r(9067);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},4715:(t,e,r)=>{var n=r(9624),s=r(155);t.exports=function(t,e){var r=s(t,e);return n(r)?r:void 0}},8870:(t,e,r)=>{var n=r(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var s=o.call(t);return n&&(e?t[a]=r:delete t[a]),s}},7979:(t,e,r)=>{var n=r(9847),s=r(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(t){return null==t?[]:(t=Object(t),n(o(t),(function(e){return i.call(t,e)})))}:s;t.exports=a},8486:(t,e,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]",_="[object WeakMap]",h="[object DataView]",d=u(n),m=u(s),y=u(i),g=u(o),v=u(a),b=c;(n&&b(new n(new ArrayBuffer(1)))!=h||s&&b(new s)!=l||i&&b(i.resolve())!=p||o&&b(new o)!=f||a&&b(new a)!=_)&&(b=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case d:return h;case m:return l;case y:return p;case g:return f;case v:return _}return e}),t.exports=b},155:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},3305:(t,e,r)=>{var n=r(4497);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},9361:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},1112:(t,e,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(e,t)?e[t]:void 0}},5276:(t,e,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:s.call(e,t)}},5071:(t,e,r)=>{var n=r(4497);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},9632:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},9067:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},4759:(t,e,r)=>{var n,s=r(1950),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},4882:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},2393:t=>{t.exports=function(){this.__data__=[],this.size=0}},2049:(t,e,r)=>{var n=r(7034),s=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():s.call(e,r,1),--this.size,!0)}},7144:(t,e,r)=>{var n=r(7034);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7452:(t,e,r)=>{var n=r(7034);t.exports=function(t){return n(this.__data__,t)>-1}},3964:(t,e,r)=>{var n=r(7034);t.exports=function(t,e){var r=this.__data__,s=n(r,t);return s<0?(++this.size,r.push([t,e])):r[s][1]=e,this}},9753:(t,e,r)=>{var n=r(5098),s=r(1386),i=r(9770);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},5681:(t,e,r)=>{var n=r(4700);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},88:(t,e,r)=>{var n=r(4700);t.exports=function(t){return n(this,t).get(t)}},4732:(t,e,r)=>{var n=r(4700);t.exports=function(t){return n(this,t).has(t)}},9068:(t,e,r)=>{var n=r(4700);t.exports=function(t,e){var r=n(this,t),s=r.size;return r.set(t,e),this.size+=r.size==s?0:1,this}},5894:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},4497:(t,e,r)=>{var n=r(4715)(Object,"create");t.exports=n},8121:(t,e,r)=>{var n=r(3766)(Object.keys,Object);t.exports=n},2306:(t,e,r)=>{t=r.nmd(t);var n=r(4967),s=e&&!e.nodeType&&e,i=s&&t&&!t.nodeType&&t,o=i&&i.exports===s&&n.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a},9005:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3766:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},8942:(t,e,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();t.exports=i},1877:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},8006:t=>{t.exports=function(t){return this.__data__.has(t)}},7447:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},4103:(t,e,r)=>{var n=r(1386);t.exports=function(){this.__data__=new n,this.size=0}},1779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},4162:t=>{t.exports=function(t){return this.__data__.get(t)}},7462:t=>{t.exports=function(t){return this.__data__.has(t)}},6638:(t,e,r)=>{var n=r(1386),s=r(9770),i=r(8250);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(t,e),this.size=r.size,this}},4066:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},6285:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},3283:(t,e,r)=>{var n=r(6027),s=r(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return s(t)&&o.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},3142:t=>{var e=Array.isArray;t.exports=e},6529:(t,e,r)=>{var n=r(3655),s=r(5387);t.exports=function(t){return null!=t&&s(t.length)&&!n(t)}},2563:(t,e,r)=>{var n=r(7379),s=r(547);t.exports=function(t){return!0===t||!1===t||s(t)&&"[object Boolean]"==n(t)}},5853:(t,e,r)=>{t=r.nmd(t);var n=r(8942),s=r(4772),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;t.exports=c},6343:(t,e,r)=>{var n=r(4687);t.exports=function(t,e){return n(t,e)}},3655:(t,e,r)=>{var n=r(7379),s=r(1580);t.exports=function(t){if(!s(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},5387:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},9310:t=>{t.exports=function(t){return null===t}},986:(t,e,r)=>{var n=r(7379),s=r(547);t.exports=function(t){return"number"==typeof t||s(t)&&"[object Number]"==n(t)}},1580:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},547:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},8138:(t,e,r)=>{var n=r(7379),s=r(3142),i=r(547);t.exports=function(t){return"string"==typeof t||!s(t)&&i(t)&&"[object String]"==n(t)}},8666:(t,e,r)=>{var n=r(674),s=r(9460),i=r(2306),o=i&&i.isTypedArray,a=o?s(o):n;t.exports=a},1211:(t,e,r)=>{var n=r(358),s=r(195),i=r(6529);t.exports=function(t){return i(t)?n(t):s(t)}},1517:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},9306:t=>{t.exports=function(){return[]}},4772:t=>{t.exports=function(){return!1}},4123:(t,e,r)=>{const n=r(1517);function s(t){return"string"==typeof t?e=>e.element===t:t.constructor&&t.extend?e=>e instanceof t:t}class i{constructor(t){this.elements=t||[]}toValue(){return this.elements.map((t=>t.toValue()))}map(t,e){return this.elements.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const s=t.bind(e)(n);s&&r.push(s)})),r}filter(t,e){return t=s(t),new i(this.elements.filter(t,e))}reject(t,e){return t=s(t),new i(this.elements.filter(n(t),e))}find(t,e){return t=s(t),this.elements.find(t,e)}forEach(t,e){this.elements.forEach(t,e)}reduce(t,e){return this.elements.reduce(t,e)}includes(t){return this.elements.some((e=>e.equals(t)))}shift(){return this.elements.shift()}unshift(t){this.elements.unshift(this.refract(t))}push(t){return this.elements.push(this.refract(t)),this}add(t){this.push(t)}get(t){return this.elements[t]}getValue(t){const e=this.elements[t];if(e)return e.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]()}),t.exports=i},2322:t=>{class e{constructor(t,e){this.key=t,this.value=e}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}t.exports=e},5735:(t,e,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(t){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,t&&t.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(t){return t.namespace&&t.namespace({base:this}),t.load&&t.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(t,e){return this._elements=void 0,this.elementMap[t]=e,this}unregister(t){return this._elements=void 0,delete this.elementMap[t],this}detect(t,e,r){return void 0===r||r?this.elementDetection.unshift([t,e]):this.elementDetection.push([t,e]),this}toElement(t){if(t instanceof this.Element)return t;let e;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(t)){e=new s(t);break}}return e}getElementClass(t){const e=this.elementMap[t];return void 0===e?this.Element:e}fromRefract(t){return this.serialiser.deserialise(t)}toRefract(t){return this.serialiser.serialise(t)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((t=>{const e=t[0].toUpperCase()+t.substr(1);this._elements[e]=this.elementMap[t]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,t.exports=l},3311:(t,e,r)=>{const n=r(1517),s=r(4123);class i extends s{map(t,e){return this.elements.map((r=>t.bind(e)(r.value,r.key,r)))}filter(t,e){return new i(this.elements.filter((r=>t.bind(e)(r.value,r.key,r))))}reject(t,e){return this.filter(n(t.bind(e)))}forEach(t,e){return this.elements.forEach(((r,n)=>{t.bind(e)(r.value,r.key,r,n)}))}keys(){return this.map(((t,e)=>e.toValue()))}values(){return this.map((t=>t.toValue()))}}t.exports=i},7547:(t,e,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),_=r(4123),h=r(3311),d=r(2322);function m(t){if(t instanceof n)return t;if("string"==typeof t)return new i(t);if("number"==typeof t)return new o(t);if("boolean"==typeof t)return new a(t);if(null===t)return new s;if(Array.isArray(t))return new c(t.map(m));if("object"==typeof t){return new l(t)}return t}n.prototype.ObjectElement=l,n.prototype.RefElement=f,n.prototype.MemberElement=u,n.prototype.refract=m,_.prototype.refract=m,t.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:f,refract:m,ArraySlice:_,ObjectSlice:h,KeyValuePair:d}},9620:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(t){this.attributes.set("relation",t)}get href(){return this.attributes.get("href")}set href(t){this.attributes.set("href",t)}}},593:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(t){this.attributes.set("path",t)}}},8326:(t,e,r)=>{const n=r(5735),s=r(7547);e.g$=n,e.KeyValuePair=r(2322),e.G6=s.ArraySlice,e.ot=s.ObjectSlice,e.Hg=s.Element,e.Om=s.StringElement,e.kT=s.NumberElement,e.bd=s.BooleanElement,e.Os=s.NullElement,e.wE=s.ArrayElement,e.Sh=s.ObjectElement,e.Pr=s.MemberElement,e.sI=s.RefElement,e.Ft=s.LinkElement,s.refract,r(394),r(3148)},9796:(t,e,r)=>{const n=r(1517),s=r(8631),i=r(4123);class o extends s{constructor(t,e,r){super(t||[],e,r),this.element="array"}primitive(){return"array"}get(t){return this.content[t]}getValue(t){const e=this.get(t);if(e)return e.toValue()}getIndex(t){return this.content[t]}set(t,e){return this.content[t]=this.refract(e),this}remove(t){const e=this.content.splice(t,1);return e.length?e[0]:null}map(t,e){return this.content.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const s=t.bind(e)(n);s&&r.push(s)})),r}filter(t,e){return new i(this.content.filter(t,e))}reject(t,e){return this.filter(n(t),e)}reduce(t,e){let r,n;void 0!==e?(r=0,n=this.refract(e)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let e=r;e<this.length;e+=1){const r=this.content[e];n="object"===this.primitive()?this.refract(t(n,r.value,r.key,r,this)):this.refract(t(n,r,e,this))}return n}forEach(t,e){this.content.forEach(((r,n)=>{t.bind(e)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(t){this.content.unshift(this.refract(t))}push(t){return this.content.push(this.refract(t)),this}add(t){this.push(t)}findElements(t,e){const r=e||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((e,r,i)=>{n&&void 0!==e.findElements&&e.findElements(t,{results:s,recursive:n}),t(e,r,i)&&s.push(e)})),s}find(t){return new i(this.findElements(t,{recursive:!0}))}findByElement(t){return this.find((e=>e.element===t))}findByClass(t){return this.find((e=>e.classes.includes(t)))}getById(t){return this.find((e=>e.id.toValue()===t)).first}includes(t){return this.content.some((e=>e.equals(t)))}contains(t){return this.includes(t)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(t){return new this.constructor(this.content.concat(t.content))}"fantasy-land/concat"(t){return this.concat(t)}"fantasy-land/map"(t){return new this.constructor(this.map(t))}"fantasy-land/chain"(t){return this.map((e=>t(e)),this).reduce(((t,e)=>t.concat(e)),this.empty())}"fantasy-land/filter"(t){return new this.constructor(this.content.filter(t))}"fantasy-land/reduce"(t,e){return this.content.reduce(t,e)}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]()}),t.exports=o},2555:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="boolean"}primitive(){return"boolean"}}},8631:(t,e,r)=>{const n=r(6343),s=r(2322),i=r(4123);class o{constructor(t,e,r){e&&(this.meta=e),r&&(this.attributes=r),this.content=t}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((t=>{t.parent=this,t.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const t=new this.constructor;return t.element=this.element,this.meta.length&&(t._meta=this.meta.clone()),this.attributes.length&&(t._attributes=this.attributes.clone()),this.content?this.content.clone?t.content=this.content.clone():Array.isArray(this.content)?t.content=this.content.map((t=>t.clone())):t.content=this.content:t.content=this.content,t}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((t=>t.toValue()),this):this.content}toRef(t){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const e=new this.RefElement(this.id.toValue());return t&&(e.path=t),e}findRecursive(...t){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 e=t.pop();let r=new i;const n=(t,e)=>(t.push(e),t),o=(t,r)=>{r.element===e&&t.push(r);const i=r.findRecursive(e);return i&&i.reduce(n,t),r.content instanceof s&&(r.content.key&&o(t,r.content.key),r.content.value&&o(t,r.content.value)),t};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),t.isEmpty||(r=r.filter((e=>{let r=e.parents.map((t=>t.element));for(const e in t){const n=t[e],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(t){return this.content=t,this}equals(t){return n(this.toValue(),t)}getMetaProperty(t,e){if(!this.meta.hasKey(t)){if(this.isFrozen){const t=this.refract(e);return t.freeze(),t}this.meta.set(t,e)}return this.meta.get(t)}setMetaProperty(t,e){this.meta.set(t,e)}get element(){return this._storedElement||"element"}set element(t){this._storedElement=t}get content(){return this._content}set content(t){if(t instanceof o)this._content=t;else if(t instanceof i)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof s)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._meta=new this.ObjectElement}return this._meta}set meta(t){t instanceof this.ObjectElement?this._meta=t:this.meta.set(t||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._attributes=new this.ObjectElement}return this._attributes}set attributes(t){t instanceof this.ObjectElement?this._attributes=t:this.attributes.set(t||{})}get id(){return this.getMetaProperty("id","")}set id(t){this.setMetaProperty("id",t)}get classes(){return this.getMetaProperty("classes",[])}set classes(t){this.setMetaProperty("classes",t)}get title(){return this.getMetaProperty("title","")}set title(t){this.setMetaProperty("title",t)}get description(){return this.getMetaProperty("description","")}set description(t){this.setMetaProperty("description",t)}get links(){return this.getMetaProperty("links",[])}set links(t){this.setMetaProperty("links",t)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:t}=this;const e=new i;for(;t;)e.push(t),t=t.parent;return e}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const t=new i([this.content.key]);return this.content.value&&t.push(this.content.value),t}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const t=new i;return this.children.forEach((e=>{t.push(e),e.recursiveChildren.forEach((e=>{t.push(e)}))})),t}}t.exports=o},7309:(t,e,r)=>{const n=r(2322),s=r(8631);t.exports=class extends s{constructor(t,e,r,s){super(new n,r,s),this.element="member",this.key=t,this.value=e}get key(){return this.content.key}set key(t){this.content.key=this.refract(t)}get value(){return this.content.value}set value(t){this.content.value=this.refract(t)}}},3004:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t||null,e,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="number"}primitive(){return"number"}}},5642:(t,e,r)=>{const n=r(1517),s=r(1580),i=r(9796),o=r(7309),a=r(3311);t.exports=class extends i{constructor(t,e,r){super(t||[],e,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((t,e)=>(t[e.key.toValue()]=e.value?e.value.toValue():void 0,t)),{})}get(t){const e=this.getMember(t);if(e)return e.value}getMember(t){if(void 0!==t)return this.content.find((e=>e.key.toValue()===t))}remove(t){let e=null;return this.content=this.content.filter((r=>r.key.toValue()!==t||(e=r,!1))),e}getKey(t){const e=this.getMember(t);if(e)return e.key}set(t,e){if(s(t))return Object.keys(t).forEach((e=>{this.set(e,t[e])})),this;const r=t,n=this.getMember(r);return n?n.value=e:this.content.push(new o(r,e)),this}keys(){return this.content.map((t=>t.key.toValue()))}values(){return this.content.map((t=>t.value.toValue()))}hasKey(t){return this.content.some((e=>e.key.equals(t)))}items(){return this.content.map((t=>[t.key.toValue(),t.value.toValue()]))}map(t,e){return this.content.map((r=>t.bind(e)(r.value,r.key,r)))}compactMap(t,e){const r=[];return this.forEach(((n,s,i)=>{const o=t.bind(e)(n,s,i);o&&r.push(o)})),r}filter(t,e){return new a(this.content).filter(t,e)}reject(t,e){return this.filter(n(t),e)}forEach(t,e){return this.content.forEach((r=>t.bind(e)(r.value,r.key,r)))}}},8712:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(t,e,r)=>{const n=r(394);t.exports=class extends n{serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);let e;t._attributes&&t.attributes.get("variable")&&(e=t.attributes.get("variable"));const r={element:t.element};t._meta&&t._meta.length>0&&(r.meta=this.serialiseObject(t.meta));const n="enum"===t.element||-1!==t.attributes.keys().indexOf("enumerations");if(n){const e=this.enumSerialiseAttributes(t);e&&(r.attributes=e)}else if(t._attributes&&t._attributes.length>0){let{attributes:n}=t;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===t.element&&e&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(t,r);else if(this[`${t.element}SerialiseContent`])r.content=this[`${t.element}SerialiseContent`](t,r);else if(void 0!==t.content){let n;e&&t.content.key?(n=t.content.clone(),n.key.attributes.set("variable",e),n=this.serialiseContent(n)):n=this.serialiseContent(t.content),this.shouldSerialiseContent(t,n)&&(r.content=n)}else this.shouldSerialiseContent(t,t.content)&&t instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(t,e){return"parseResult"===t.element||"httpRequest"===t.element||"httpResponse"===t.element||"category"===t.element||"link"===t.element||void 0!==e&&(!Array.isArray(e)||0!==e.length)}refSerialiseContent(t,e){return delete e.attributes,{href:t.toValue(),path:t.path.toValue()}}sourceMapSerialiseContent(t){return t.toValue()}dataStructureSerialiseContent(t){return[this.serialiseContent(t.content)]}enumSerialiseAttributes(t){const e=t.attributes.clone(),r=e.remove("enumerations")||new this.namespace.elements.Array([]),n=e.get("default");let s=e.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),e.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((t=>{t.content&&t.content.element&&t.content.attributes.remove("typeAttributes")})),t.content&&0!==r.length&&s.unshift(t.content),s=s.map((t=>t instanceof this.namespace.elements.Array?[t]:new this.namespace.elements.Array([t.content]))),s.length&&e.set("samples",s),e.length>0)return this.serialiseObject(e)}enumSerialiseContent(t){if(t._attributes){const e=t.attributes.get("enumerations");if(e&&e.length>0)return e.content.map((t=>{const e=t.clone();return e.attributes.remove("typeAttributes"),this.serialise(e)}))}if(t.content){const e=t.content.clone();return e.attributes.remove("typeAttributes"),[this.serialise(e)]}return[]}deserialise(t){if("string"==typeof t)return new this.namespace.elements.String(t);if("number"==typeof t)return new this.namespace.elements.Number(t);if("boolean"==typeof t)return new this.namespace.elements.Boolean(t);if(null===t)return new this.namespace.elements.Null;if(Array.isArray(t))return new this.namespace.elements.Array(t.map(this.deserialise,this));const e=this.namespace.getElementClass(t.element),r=new e;r.element!==t.element&&(r.element=t.element),t.meta&&this.deserialiseObject(t.meta,r.meta),t.attributes&&this.deserialiseObject(t.attributes,r.attributes);const n=this.deserialiseContent(t.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let t=r.attributes.get("samples");if(r.attributes.remove("samples"),t){const n=t;t=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new e(n);s.element=r.element,t.push(s)}))}));const s=t.shift();r.content=s?s.content:void 0,r.attributes.set("samples",t)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const t=new e(n);t.element=r.element,r.attributes.set("default",t)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const t=r.attributes.get("meta");t&&(r.attributes.set("metadata",t),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(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}return t&&t.map?t.map(this.serialise,this):t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}shouldRefract(t){return!!(t._attributes&&t.attributes.keys().length||t._meta&&t.meta.keys().length)||"enum"!==t.element&&(t.element!==t.primitive()||"member"===t.element)}convertKeyToRefract(t,e){return this.shouldRefract(e)?this.serialise(e):"enum"===e.element?this.serialiseEnum(e):"array"===e.element?e.map((e=>this.shouldRefract(e)||"default"===t?this.serialise(e):"array"===e.element||"object"===e.element||"enum"===e.element?e.children.map((t=>this.serialise(t))):e.toValue())):"object"===e.element?(e.content||[]).map(this.serialise,this):e.toValue()}serialiseEnum(t){return t.children.map((t=>this.serialise(t)))}serialiseObject(t){const e={};return t.forEach(((t,r)=>{if(t){const n=r.toValue();e[n]=this.convertKeyToRefract(n,t)}})),e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},394:t=>{t.exports=class{constructor(t){this.namespace=t||new this.Namespace}serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);const e={element:t.element};t._meta&&t._meta.length>0&&(e.meta=this.serialiseObject(t.meta)),t._attributes&&t._attributes.length>0&&(e.attributes=this.serialiseObject(t.attributes));const r=this.serialiseContent(t.content);return void 0!==r&&(e.content=r),e}deserialise(t){if(!t.element)throw new Error("Given value is not an object containing an element name");const e=new(this.namespace.getElementClass(t.element));e.element!==t.element&&(e.element=t.element),t.meta&&this.deserialiseObject(t.meta,e.meta),t.attributes&&this.deserialiseObject(t.attributes,e.attributes);const r=this.deserialiseContent(t.content);return void 0===r&&null!==e.content||(e.content=r),e}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}if(t&&t.map){if(0===t.length)return;return t.map(this.serialise,this)}return t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}serialiseObject(t){const e={};if(t.forEach(((t,r)=>{t&&(e[r.toValue()]=this.serialise(t))})),0!==Object.keys(e).length)return e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},8583:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0,function(t){t.MalformedUnicode="MALFORMED_UNICODE",t.MalformedHexadecimal="MALFORMED_HEXADECIMAL",t.CodePointLimit="CODE_POINT_LIMIT",t.OctalDeprecation="OCTAL_DEPRECATION",t.EndOfString="END_OF_STRING"}(r=e.ErrorType||(e.ErrorType={})),e.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:(t,e,r)=>{"use strict";e.MH=void 0;const n=r(8583);function s(t,e,r){const s=function(t){return t.match(/[^a-f0-9]/i)?NaN:parseInt(t,16)}(t);if(Number.isNaN(s)||void 0!==r&&r!==t.length)throw new SyntaxError(n.errorMessages.get(e));return s}function i(t,e){const r=s(t,n.ErrorType.MalformedUnicode,4);if(void 0!==e){const t=s(e,n.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,t)}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(t,e=!1){return t.replace(a,(function(t,r,a,c,u,l,p,f,_){if(void 0!==r)return"\\";if(void 0!==a)return function(t){const e=s(t,n.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}(a);if(void 0!==c)return function(t){if("{"!==(e=t).charAt(0)||"}"!==e.charAt(e.length-1))throw new SyntaxError(n.errorMessages.get(n.ErrorType.MalformedUnicode));var e;const r=s(t.slice(1,-1),n.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(t){throw t instanceof RangeError?new SyntaxError(n.errorMessages.get(n.ErrorType.CodePointLimit)):t}}(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(t,e=!1){if(e)throw new SyntaxError(n.errorMessages.get(n.ErrorType.OctalDeprecation));const r=parseInt(t,8);return String.fromCharCode(r)}(f,!e);if(void 0!==_)return h=_,o.get(h)||h;var h;throw new SyntaxError(n.errorMessages.get(n.ErrorType.EndOfString))}))}e.MH=c},3833:(t,e,r)=>{var n=void 0!==n?n:{},s=function(){var e,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 e||(n=Object.assign({},n,o),e=new Promise((e=>{var o,a={};for(o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);var c,u,l,p,f=[],_="./this.program",h=function(t,e){throw e};l="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!p;var d,m,y,g,v,b="";c?(b=p?r(4142).dirname(b)+"/":"//",d=function(t,e){return g||(g=r(3078)),v||(v=r(4142)),t=v.normalize(t),g.readFileSync(t,e?null:"utf8")},y=function(t){var e=d(t,!0);return e.buffer||(e=new Uint8Array(e)),M(e.buffer),e},process.argv.length>1&&(_=process.argv[1].replace(/\\/g,"/")),f=process.argv.slice(2),t.exports=n,h=function(t){process.exit(t)},n.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(d=function(t){return read(t)}),y=function(t){var e;return"function"==typeof readbuffer?new Uint8Array(readbuffer(t)):(M("object"==typeof(e=read(t,"binary"))),e)},"undefined"!=typeof scriptArgs?f=scriptArgs:void 0!==arguments&&(f=arguments),"function"==typeof quit&&(h=function(t){quit(t)}),"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):"",d=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},p&&(y=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),m=function(t,e,r){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?e(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&&(_=n.thisProgram),n.quit&&(h=n.quit);var E,x=16,S=[];function A(t,e){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(t))return E.get(t);var s=function(){if(S.length)return S.pop();try{H.grow(1)}catch(t){if(!(t instanceof RangeError))throw t;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return H.length-1}();try{H.set(s,t)}catch(r){if(!(r instanceof TypeError))throw r;var i=function(t,e){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==e[0]?[]:[r[e[0]]]},s=1;s<e.length;++s)n.parameters.push(r[e[s]]);return new WebAssembly.Function(n,t)}var i=[1,0,1,96],o=e.slice(0,1),a=e.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:t}}).exports.f}(t,e);H.set(s,i)}return E.set(t,s),s}var j,k=n.dynamicLibraries||[];n.wasmBinary&&(j=n.wasmBinary);var O,P=n.noExitRuntime||!0;function N(t,e,r,n){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":F[t>>0]=e;break;case"i16":q[t>>1]=e;break;case"i32":L[t>>2]=e;break;case"i64":lt=[e>>>0,(ut=e,+Math.abs(ut)>=1?ut>0?(0|Math.min(+Math.floor(ut/4294967296),4294967295))>>>0:~~+Math.ceil((ut-+(~~ut>>>0))/4294967296)>>>0:0)],L[t>>2]=lt[0],L[t+4>>2]=lt[1];break;case"float":V[t>>2]=e;break;case"double":D[t>>3]=e;break;default:at("invalid type for setValue: "+r)}}function I(t,e,r){switch("*"===(e=e||"i8").charAt(e.length-1)&&(e="i32"),e){case"i1":case"i8":return F[t>>0];case"i16":return q[t>>1];case"i32":case"i64":return L[t>>2];case"float":return V[t>>2];case"double":return D[t>>3];default:at("invalid type for getValue: "+e)}return null}"object"!=typeof WebAssembly&&at("no native wasm support detected");var T=!1;function M(t,e){t||at("Assertion failed: "+e)}var C,F,R,q,L,V,D,z="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function U(t,e,r){for(var n=e+r,s=e;t[s]&&!(s>=n);)++s;if(s-e>16&&t.subarray&&z)return z.decode(t.subarray(e,s));for(var i="";e<s;){var o=t[e++];if(128&o){var a=63&t[e++];if(192!=(224&o)){var c=63&t[e++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&t[e++])<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 G(t,e){return t?U(R,t,e):""}function B(t,e,r,n){if(!(n>0))return 0;for(var s=r,i=r+n-1,o=0;o<t.length;++o){var a=t.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++o)),a<=127){if(r>=i)break;e[r++]=a}else if(a<=2047){if(r+1>=i)break;e[r++]=192|a>>6,e[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;e[r++]=224|a>>12,e[r++]=128|a>>6&63,e[r++]=128|63&a}else{if(r+3>=i)break;e[r++]=240|a>>18,e[r++]=128|a>>12&63,e[r++]=128|a>>6&63,e[r++]=128|63&a}}return e[r]=0,r-s}function $(t,e,r){return B(t,R,e,r)}function K(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&t.charCodeAt(++r)),n<=127?++e:e+=n<=2047?2:n<=65535?3:4}return e}function W(t){var e=K(t)+1,r=Gt(e);return B(t,F,r,e),r}function Z(t){C=t,n.HEAP8=F=new Int8Array(t),n.HEAP16=q=new Int16Array(t),n.HEAP32=L=new Int32Array(t),n.HEAPU8=R=new Uint8Array(t),n.HEAPU16=new Uint16Array(t),n.HEAPU32=new Uint32Array(t),n.HEAPF32=V=new Float32Array(t),n.HEAPF64=D=new Float64Array(t)}var Y=n.INITIAL_MEMORY||33554432;(O=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:Y/65536,maximum:32768}))&&(C=O.buffer),Y=C.byteLength,Z(C);var H=new WebAssembly.Table({initial:17,element:"anyfunc"}),Q=[],X=[],J=[],tt=[],et=!1,rt=0,nt=null,st=null;function it(t){rt++,n.monitorRunDependencies&&n.monitorRunDependencies(rt)}function ot(t){if(rt--,n.monitorRunDependencies&&n.monitorRunDependencies(rt),0==rt&&(null!==nt&&(clearInterval(nt),nt=null),st)){var e=st;st=null,e()}}function at(t){throw n.onAbort&&n.onAbort(t),w(t+=""),T=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}n.preloadedImages={},n.preloadedAudios={},n.preloadedWasm={};var ct,ut,lt;function pt(t){return t.startsWith("data:application/octet-stream;base64,")}function ft(t){return t.startsWith("file://")}function _t(t){try{if(t==ct&&j)return new Uint8Array(j);if(y)return y(t);throw"both async and sync fetching of the wasm failed"}catch(t){at(t)}}pt(ct="tree-sitter.wasm")||(ct=function(t){return n.locateFile?n.locateFile(t,b):b+t}(ct));var ht={},dt={get:function(t,e){return ht[e]||(ht[e]=new WebAssembly.Global({value:"i32",mutable:!0})),ht[e]}};function mt(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var r=e.func;"number"==typeof r?void 0===e.arg?H.get(r)():H.get(r)(e.arg):r(void 0===e.arg?null:e.arg)}else e(n)}}function yt(t){var e=0;function r(){for(var r=0,n=1;;){var s=t[e++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}if(t instanceof WebAssembly.Module){var n=WebAssembly.Module.customSections(t,"dylink");M(0!=n.length,"need dylink section"),t=new Int8Array(n[0])}else M(1836278016==new Uint32Array(new Uint8Array(t.subarray(0,24)).buffer)[0],"need to see wasm magic number"),M(0===t[8],"need the dylink section to be first"),e=9,r(),M(6===t[e]),M(t[++e]==="d".charCodeAt(0)),M(t[++e]==="y".charCodeAt(0)),M(t[++e]==="l".charCodeAt(0)),M(t[++e]==="i".charCodeAt(0)),M(t[++e]==="n".charCodeAt(0)),M(t[++e]==="k".charCodeAt(0)),e++;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=t.subarray(e,e+a);e+=a;var u=U(c,0);s.neededDynlibs.push(u)}return s}var gt=0;function vt(){return P||gt>0}function bt(t){return 0==t.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(t)?t:"_"+t}function wt(t,e){for(var r in t)if(t.hasOwnProperty(r)){Lt.hasOwnProperty(r)||(Lt[r]=t[r]);var s=bt(r);n.hasOwnProperty(s)||(n[s]=t[r])}}var Et={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xt=5250880;function St(t){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(t)}function At(t,e){var r={};for(var n in t){var s=t[n];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=e),r[n]=s}return function(t){for(var e in t)if(!St(e)){var r=!1,n=t[e];e.startsWith("orig$")&&(e=e.split("$")[1],r=!0),ht[e]||(ht[e]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==ht[e].value)&&("function"==typeof n?ht[e].value=A(n):"number"==typeof n?ht[e].value=n:w("unhandled export type for `"+e+"`: "+typeof n))}}(r),r}function jt(t,e){var r,s;return e&&(r=Lt["orig$"+t]),r||(r=Lt[t]),r||(r=n[bt(t)]),!r&&t.startsWith("invoke_")&&(s=t.split("_")[1],r=function(){var t=zt();try{return function(t,e,r){return t.includes("j")?function(t,e,r){var s=n["dynCall_"+t];return r&&r.length?s.apply(null,[e].concat(r)):s.call(null,e)}(t,e,r):H.get(e).apply(null,r)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(e){if(Ut(t),e!==e+0&&"longjmp"!==e)throw e;Bt(1,0)}}),r}function kt(t,e){var r=yt(t);function n(){var n=Math.pow(2,r.memoryAlign);n=Math.max(n,x);var s,i,o,a=(s=function(t){if(et)return Vt(t);var e=xt,r=e+t+15&-16;return xt=r,ht.__heap_base.value=r,e}(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++)F[u]=0;for(u=c;u<c+r.tableSize;u++)H.set(u,null);var l=new Proxy({},{get:function(t,e){switch(e){case"__memory_base":return a;case"__table_base":return c}return e in Lt?Lt[e]:(e in t||(t[e]=function(){return r||(r=function(t){var e=jt(t,!1);return e||(e=o[t]),e}(e)),r.apply(null,arguments)}),t[e]);var r}}),p={"GOT.mem":new Proxy({},dt),"GOT.func":new Proxy({},dt),env:l,wasi_snapshot_preview1:l};function f(t){for(var n=0;n<r.tableSize;n++){var s=H.get(c+n);s&&E.set(s,c+n)}o=At(t.exports,a),e.allowUndefined||Pt();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(et?i():X.push(i)),o}if(e.loadAsync){if(t instanceof WebAssembly.Module){var _=new WebAssembly.Instance(t,p);return Promise.resolve(f(_))}return WebAssembly.instantiate(t,p).then((function(t){return f(t.instance)}))}var h=t instanceof WebAssembly.Module?t:new WebAssembly.Module(t);return f(_=new WebAssembly.Instance(h,p))}return e.loadAsync?r.neededDynlibs.reduce((function(t,r){return t.then((function(){return Ot(r,e)}))}),Promise.resolve()).then((function(){return n()})):(r.neededDynlibs.forEach((function(t){Ot(t,e)})),n())}function Ot(t,e){"__main__"!=t||Et.loadedLibNames[t]||(Et.loadedLibs[-1]={refcount:1/0,name:"__main__",module:n.asm,global:!0},Et.loadedLibNames.__main__=-1),e=e||{global:!0,nodelete:!0};var r,s=Et.loadedLibNames[t];if(s)return r=Et.loadedLibs[s],e.global&&!r.global&&(r.global=!0,"loading"!==r.module&&wt(r.module)),e.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,e.loadAsync?Promise.resolve(s):s;function i(t){if(e.fs){var r=e.fs.readFile(t,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),e.loadAsync?Promise.resolve(r):r}return e.loadAsync?(n=t,fetch(n,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load binary file at '"+n+"'";return t.arrayBuffer()})).then((function(t){return new Uint8Array(t)}))):y(t);var n}function o(){if(void 0!==n.preloadedWasm&&void 0!==n.preloadedWasm[t]){var r=n.preloadedWasm[t];return e.loadAsync?Promise.resolve(r):r}return e.loadAsync?i(t).then((function(t){return kt(t,e)})):kt(i(t),e)}function a(t){r.global&&wt(t),r.module=t}return s=Et.nextHandle++,r={refcount:e.nodelete?1/0:1,name:t,module:"loading",global:e.global},Et.loadedLibNames[t]=s,Et.loadedLibs[s]=r,e.loadAsync?o().then((function(t){return a(t),s})):(a(o()),s)}function Pt(){for(var t in ht)if(0==ht[t].value){var e=jt(t,!0);"function"==typeof e?ht[t].value=A(e,e.sig):"number"==typeof e?ht[t].value=e:M(!1,"bad export type for `"+t+"`: "+typeof e)}}n.___heap_base=xt;var Nt,It=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Tt(){at()}n._abort=Tt,Tt.sig="v",Nt=c?function(){var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Mt(t,e){var r;if(0===t)r=Date.now();else{if(1!==t&&4!==t)return 28,L[Dt()>>2]=28,-1;r=Nt()}return L[e>>2]=r/1e3|0,L[e+4>>2]=r%1e3*1e3*1e3|0,0}function Ct(t){try{return O.grow(t-C.byteLength+65535>>>16),Z(O.buffer),1}catch(t){}}function Ft(t){Zt(t)}function Rt(t){}Mt.sig="iii",Ft.sig="vi",Rt.sig="vi";var qt,Lt={__heap_base:xt,__indirect_function_table:H,__memory_base:1024,__stack_pointer:It,__table_base:1,abort:Tt,clock_gettime:Mt,emscripten_memcpy_big:function(t,e,r){R.copyWithin(t,e,e+r)},emscripten_resize_heap:function(t){var e,r=R.length;if((t>>>=0)>2147483648)return!1;for(var n=1;n<=4;n*=2){var s=r*(1+.2/n);if(s=Math.min(s,t+100663296),Ct(Math.min(2147483648,((e=Math.max(t,s))%65536>0&&(e+=65536-e%65536),e))))return!0}return!1},exit:Ft,memory:O,setTempRet0:Rt,tree_sitter_log_callback:function(t,e){if(ue){const r=G(e);ue(r,0!==t)}},tree_sitter_parse_callback:function(t,e,r,n,s){var i=ce(e,{row:r,column:n});"string"==typeof i?(N(s,i.length,"i32"),function(t,e,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=(r-=2)<2*t.length?r/2:t.length,s=0;s<n;++s){var i=t.charCodeAt(s);q[e>>1]=i,e+=2}q[e>>1]=0}(i,t,10240)):N(s,0,"i32")}},Vt=(function(){var t={env:Lt,wasi_snapshot_preview1:Lt,"GOT.mem":new Proxy(Lt,dt),"GOT.func":new Proxy(Lt,dt)};function e(t,e){var r=t.exports;r=At(r,1024),n.asm=r;var s,i=yt(e);i.neededDynlibs&&(k=i.neededDynlibs.concat(k)),wt(r),s=n.asm.__wasm_call_ctors,X.unshift(s),ot()}function r(t){e(t.instance,t.module)}function s(e){return function(){if(!j&&(l||p)){if("function"==typeof fetch&&!ft(ct))return fetch(ct,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+ct+"'";return t.arrayBuffer()})).catch((function(){return _t(ct)}));if(m)return new Promise((function(t,e){m(ct,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return _t(ct)}))}().then((function(e){return WebAssembly.instantiate(e,t)})).then(e,(function(t){w("failed to asynchronously prepare wasm: "+t),at(t)}))}if(it(),n.instantiateWasm)try{return n.instantiateWasm(t,e)}catch(t){return w("Module.instantiateWasm callback failed with error: "+t),!1}j||"function"!=typeof WebAssembly.instantiateStreaming||pt(ct)||ft(ct)||"function"!=typeof fetch?s(r):fetch(ct,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(r,(function(t){return w("wasm streaming compile failed: "+t),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(Vt=n._malloc=n.asm.malloc).apply(null,arguments)}),Dt=(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(Dt=n.___errno_location=n.asm.__errno_location).apply(null,arguments)}),zt=(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(zt=n.stackSave=n.asm.stackSave).apply(null,arguments)}),Ut=n.stackRestore=function(){return(Ut=n.stackRestore=n.asm.stackRestore).apply(null,arguments)},Gt=n.stackAlloc=function(){return(Gt=n.stackAlloc=n.asm.stackAlloc).apply(null,arguments)},Bt=n._setThrew=function(){return(Bt=n._setThrew=n.asm.setThrew).apply(null,arguments)};function $t(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}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(t,e){var r;return r=1==e?Gt(t.length):Vt(t.length),t.subarray||t.slice?R.set(t,r):R.set(new Uint8Array(t),r),r},st=function t(){qt||Wt(),qt||(st=t)};var Kt=!1;function Wt(t){function e(){qt||(qt=!0,n.calledRun=!0,T||(et=!0,mt(X),mt(J),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Yt&&function(t){var e=n._main;if(e){var r=(t=t||[]).length+1,s=Gt(4*(r+1));L[s>>2]=W(_);for(var i=1;i<r;i++)L[(s>>2)+i]=W(t[i-1]);L[(s>>2)+r]=0;try{Zt(e(r,s),!0)}catch(t){if(t instanceof $t)return;if("unwind"==t)return;var o=t;t&&"object"==typeof t&&t.stack&&(o=[t,t.stack]),w("exception thrown: "+o),h(1,t)}}}(t),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)t=n.postRun.shift(),tt.unshift(t);var t;mt(tt)}()))}t=t||f,rt>0||!Kt&&(function(){if(k.length){if(!y)return it(),void k.reduce((function(t,e){return t.then((function(){return Ot(e,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){ot(),Pt()}));k.forEach((function(t){Ot(t,{global:!0,nodelete:!0,allowUndefined:!0})})),Pt()}else Pt()}(),Kt=!0,rt>0)||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)t=n.preRun.shift(),Q.unshift(t);var t;mt(Q)}(),rt>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),e()}),1)):e()))}function Zt(t,e){e&&vt()&&0===t||(vt()||(n.onExit&&n.onExit(t),T=!0),h(t,new $t(t)))}if(n.run=Wt,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var Yt=!0;n.noInitialRun&&(Yt=!1),Wt();const Ht=n,Qt={},Xt=4,Jt=5*Xt,te=2*Xt,ee=2*Xt+2*te,re={row:0,column:0},ne=/[\w-.]*/g,se=/^_?tree_sitter_\w+/;var ie,oe,ae,ce,ue;class le{static init(){ae=Ht._ts_init(),ie=I(ae,"i32"),oe=I(ae+Xt,"i32")}initialize(){Ht._ts_parser_new_wasm(),this[0]=I(ae,"i32"),this[1]=I(ae+Xt,"i32")}delete(){Ht._ts_parser_delete(this[0]),Ht._free(this[1]),this[0]=0,this[1]=0}setLanguage(t){let e;if(t){if(t.constructor!==he)throw new Error("Argument must be a Language");{e=t[0];const r=Ht._ts_language_version(e);if(r<oe||ie<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${oe} through ${ie}.`)}}else e=0,t=null;return this.language=t,Ht._ts_parser_set_language(this[0],e),this}getLanguage(){return this.language}parse(t,e,r){if("string"==typeof t)ce=(e,r,n)=>t.slice(e,n);else{if("function"!=typeof t)throw new Error("Argument must be a string or a function");ce=t}this.logCallback?(ue=this.logCallback,Ht._ts_parser_enable_logger_wasm(this[0],1)):(ue=null,Ht._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r&&r.includedRanges){n=r.includedRanges.length;let t=s=Ht._calloc(n,ee);for(let e=0;e<n;e++)je(t,r.includedRanges[e]),t+=ee}const i=Ht._ts_parser_parse_wasm(this[0],this[1],e?e[0]:0,s,n);if(!i)throw ce=null,ue=null,new Error("Parsing failed");const o=new pe(Qt,i,this.language,ce);return ce=null,ue=null,o}reset(){Ht._ts_parser_reset(this[0])}setTimeoutMicros(t){Ht._ts_parser_set_timeout_micros(this[0],t)}getTimeoutMicros(){return Ht._ts_parser_timeout_micros(this[0])}setLogger(t){if(t){if("function"!=typeof t)throw new Error("Logger callback must be a function")}else t=null;return this.logCallback=t,this}getLogger(){return this.logCallback}}class pe{constructor(t,e,r,n){ge(t),this[0]=e,this.language=r,this.textCallback=n}copy(){const t=Ht._ts_tree_copy(this[0]);return new pe(Qt,t,this.language,this.textCallback)}delete(){Ht._ts_tree_delete(this[0]),this[0]=0}edit(t){!function(t){let e=ae;Se(e,t.startPosition),Se(e+=te,t.oldEndPosition),Se(e+=te,t.newEndPosition),N(e+=te,t.startIndex,"i32"),N(e+=Xt,t.oldEndIndex,"i32"),N(e+=Xt,t.newEndIndex,"i32"),e+=Xt}(t),Ht._ts_tree_edit_wasm(this[0])}get rootNode(){return Ht._ts_tree_root_node_wasm(this[0]),we(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(t){if(t.constructor!==pe)throw new TypeError("Argument must be a Tree");Ht._ts_tree_get_changed_ranges_wasm(this[0],t[0]);const e=I(ae,"i32"),r=I(ae+Xt,"i32"),n=new Array(e);if(e>0){let t=r;for(let r=0;r<e;r++)n[r]=ke(t),t+=ee;Ht._free(r)}return n}}class fe{constructor(t,e){ge(t),this.tree=e}get typeId(){return be(this),Ht._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return be(this),Ht._ts_node_end_point_wasm(this.tree[0]),Ae(ae)}get endIndex(){return be(this),Ht._ts_node_end_index_wasm(this.tree[0])}get text(){return me(this.tree,this.startIndex,this.endIndex)}isNamed(){return be(this),1===Ht._ts_node_is_named_wasm(this.tree[0])}hasError(){return be(this),1===Ht._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return be(this),1===Ht._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return be(this),1===Ht._ts_node_is_missing_wasm(this.tree[0])}equals(t){return this.id===t.id}child(t){return be(this),Ht._ts_node_child_wasm(this.tree[0],t),we(this.tree)}namedChild(t){return be(this),Ht._ts_node_named_child_wasm(this.tree[0],t),we(this.tree)}childForFieldId(t){return be(this),Ht._ts_node_child_by_field_id_wasm(this.tree[0],t),we(this.tree)}childForFieldName(t){const e=this.tree.language.fields.indexOf(t);if(-1!==e)return this.childForFieldId(e)}get childCount(){return be(this),Ht._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return be(this),Ht._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){be(this),Ht._ts_node_children_wasm(this.tree[0]);const t=I(ae,"i32"),e=I(ae+Xt,"i32");if(this._children=new Array(t),t>0){let r=e;for(let e=0;e<t;e++)this._children[e]=we(this.tree,r),r+=Jt;Ht._free(e)}}return this._children}get namedChildren(){if(!this._namedChildren){be(this),Ht._ts_node_named_children_wasm(this.tree[0]);const t=I(ae,"i32"),e=I(ae+Xt,"i32");if(this._namedChildren=new Array(t),t>0){let r=e;for(let e=0;e<t;e++)this._namedChildren[e]=we(this.tree,r),r+=Jt;Ht._free(e)}}return this._namedChildren}descendantsOfType(t,e,r){Array.isArray(t)||(t=[t]),e||(e=re),r||(r=re);const n=[],s=this.tree.language.types;for(let e=0,r=s.length;e<r;e++)t.includes(s[e])&&n.push(e);const i=Ht._malloc(Xt*n.length);for(let t=0,e=n.length;t<e;t++)N(i+t*Xt,n[t],"i32");be(this),Ht._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,e.row,e.column,r.row,r.column);const o=I(ae,"i32"),a=I(ae+Xt,"i32"),c=new Array(o);if(o>0){let t=a;for(let e=0;e<o;e++)c[e]=we(this.tree,t),t+=Jt}return Ht._free(a),Ht._free(i),c}get nextSibling(){return be(this),Ht._ts_node_next_sibling_wasm(this.tree[0]),we(this.tree)}get previousSibling(){return be(this),Ht._ts_node_prev_sibling_wasm(this.tree[0]),we(this.tree)}get nextNamedSibling(){return be(this),Ht._ts_node_next_named_sibling_wasm(this.tree[0]),we(this.tree)}get previousNamedSibling(){return be(this),Ht._ts_node_prev_named_sibling_wasm(this.tree[0]),we(this.tree)}get parent(){return be(this),Ht._ts_node_parent_wasm(this.tree[0]),we(this.tree)}descendantForIndex(t,e=t){if("number"!=typeof t||"number"!=typeof e)throw new Error("Arguments must be numbers");be(this);let r=ae+Jt;return N(r,t,"i32"),N(r+Xt,e,"i32"),Ht._ts_node_descendant_for_index_wasm(this.tree[0]),we(this.tree)}namedDescendantForIndex(t,e=t){if("number"!=typeof t||"number"!=typeof e)throw new Error("Arguments must be numbers");be(this);let r=ae+Jt;return N(r,t,"i32"),N(r+Xt,e,"i32"),Ht._ts_node_named_descendant_for_index_wasm(this.tree[0]),we(this.tree)}descendantForPosition(t,e=t){if(!ve(t)||!ve(e))throw new Error("Arguments must be {row, column} objects");be(this);let r=ae+Jt;return Se(r,t),Se(r+te,e),Ht._ts_node_descendant_for_position_wasm(this.tree[0]),we(this.tree)}namedDescendantForPosition(t,e=t){if(!ve(t)||!ve(e))throw new Error("Arguments must be {row, column} objects");be(this);let r=ae+Jt;return Se(r,t),Se(r+te,e),Ht._ts_node_named_descendant_for_position_wasm(this.tree[0]),we(this.tree)}walk(){return be(this),Ht._ts_tree_cursor_new_wasm(this.tree[0]),new _e(Qt,this.tree)}toString(){be(this);const t=Ht._ts_node_to_string_wasm(this.tree[0]),e=function(t){for(var e="";;){var r=R[t++>>0];if(!r)return e;e+=String.fromCharCode(r)}}(t);return Ht._free(t),e}}class _e{constructor(t,e){ge(t),this.tree=e,xe(this)}delete(){Ee(this),Ht._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(t){be(t),Ee(this,ae+Jt),Ht._ts_tree_cursor_reset_wasm(this.tree[0]),xe(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Ee(this),Ht._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Ee(this),Ht._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Ee(this),1===Ht._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Ee(this),1===Ht._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Ee(this);const t=Ht._ts_tree_cursor_start_index_wasm(this.tree[0]),e=Ht._ts_tree_cursor_end_index_wasm(this.tree[0]);return me(this.tree,t,e)}get startPosition(){return Ee(this),Ht._ts_tree_cursor_start_position_wasm(this.tree[0]),Ae(ae)}get endPosition(){return Ee(this),Ht._ts_tree_cursor_end_position_wasm(this.tree[0]),Ae(ae)}get startIndex(){return Ee(this),Ht._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Ee(this),Ht._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Ee(this),Ht._ts_tree_cursor_current_node_wasm(this.tree[0]),we(this.tree)}currentFieldId(){return Ee(this),Ht._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Ee(this);const t=Ht._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xe(this),1===t}gotoNextSibling(){Ee(this);const t=Ht._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xe(this),1===t}gotoParent(){Ee(this);const t=Ht._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xe(this),1===t}}class he{constructor(t,e){ge(t),this[0]=e,this.types=new Array(Ht._ts_language_symbol_count(this[0]));for(let t=0,e=this.types.length;t<e;t++)Ht._ts_language_symbol_type(this[0],t)<2&&(this.types[t]=G(Ht._ts_language_symbol_name(this[0],t)));this.fields=new Array(Ht._ts_language_field_count(this[0])+1);for(let t=0,e=this.fields.length;t<e;t++){const e=Ht._ts_language_field_name_for_id(this[0],t);this.fields[t]=0!==e?G(e):null}}get version(){return Ht._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(t){const e=this.fields.indexOf(t);return-1!==e?e:null}fieldNameForId(t){return this.fields[t]||null}idForNodeType(t,e){const r=K(t),n=Ht._malloc(r+1);$(t,n,r+1);const s=Ht._ts_language_symbol_for_name(this[0],n,r,e);return Ht._free(n),s||null}get nodeTypeCount(){return Ht._ts_language_symbol_count(this[0])}nodeTypeForId(t){const e=Ht._ts_language_symbol_name(this[0],t);return e?G(e):null}nodeTypeIsNamed(t){return!!Ht._ts_language_type_is_named_wasm(this[0],t)}nodeTypeIsVisible(t){return!!Ht._ts_language_type_is_visible_wasm(this[0],t)}query(t){const e=K(t),r=Ht._malloc(e+1);$(t,r,e+1);const n=Ht._ts_query_new(this[0],r,e,ae,ae+Xt);if(!n){const e=I(ae+Xt,"i32"),n=G(r,I(ae,"i32")).length,s=t.substr(n,100).split("\n")[0];let i,o=s.match(ne)[0];switch(e){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,Ht._free(r),i}const s=Ht._ts_query_string_count(n),i=Ht._ts_query_capture_count(n),o=Ht._ts_query_pattern_count(n),a=new Array(i),c=new Array(s);for(let t=0;t<i;t++){const e=Ht._ts_query_capture_name_for_id(n,t,ae),r=I(ae,"i32");a[t]=G(e,r)}for(let t=0;t<s;t++){const e=Ht._ts_query_string_value_for_id(n,t,ae),r=I(ae,"i32");c[t]=G(e,r)}const u=new Array(o),l=new Array(o),p=new Array(o),f=new Array(o),_=new Array(o);for(let t=0;t<o;t++){const e=Ht._ts_query_predicates_for_pattern(n,t,ae),r=I(ae,"i32");f[t]=[],_[t]=[];const s=[];let i=e;for(let e=0;e<r;e++){const e=I(i,"i32"),r=I(i+=Xt,"i32");if(i+=Xt,1===e)s.push({type:"capture",name:a[r]});else if(2===e)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 e=s[0].value;let r=!0;switch(e){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 e=s[1].name,n=s[2].name;_[t].push((function(t){let s,i;for(const r of t)r.name===e&&(s=r.node),r.name===n&&(i=r.node);return void 0===s||void 0===i||s.text===i.text===r}))}else{const e=s[1].name,n=s[2].value;_[t].push((function(t){for(const s of t)if(s.name===e)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);_[t].push((function(t){for(const e of t)if(e.name===n)return i.test(e.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((t=>"string"!==t.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[t]||(u[t]={}),u[t][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 \`#${e}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((t=>"string"!==t.type)))throw new Error(`Arguments to \`#${e}\` predicate must be a strings.".`);const o="is?"===e?l:p;o[t]||(o[t]={}),o[t][s[1].value]=s[2]?s[2].value:null;break;default:f[t].push({operator:e,operands:s.slice(1)})}s.length=0}}Object.freeze(u[t]),Object.freeze(l[t]),Object.freeze(p[t])}return Ht._free(r),new de(Qt,n,a,_,f,Object.freeze(u),Object.freeze(l),Object.freeze(p))}static load(t){let e;if(t instanceof Uint8Array)e=Promise.resolve(t);else{const n=t;if("undefined"!=typeof process&&process.versions&&process.versions.node){const t=r(3078);e=Promise.resolve(t.readFileSync(n))}else e=fetch(n).then((t=>t.arrayBuffer().then((e=>{if(t.ok)return new Uint8Array(e);{const r=new TextDecoder("utf-8").decode(e);throw new Error(`Language.load failed with status ${t.status}.\n\n${r}`)}}))))}const n="function"==typeof loadSideModule?loadSideModule:kt;return e.then((t=>n(t,{loadAsync:!0}))).then((t=>{const e=Object.keys(t),r=e.find((t=>se.test(t)&&!t.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(e,null,2)}`);const n=t[r]();return new he(Qt,n)}))}}class de{constructor(t,e,r,n,s,i,o,a){ge(t),this[0]=e,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ht._ts_query_delete(this[0]),this[0]=0}matches(t,e,r,n){e||(e=re),r||(r=re),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");be(t),Ht._ts_query_matches_wasm(this[0],t.tree[0],e.row,e.column,r.row,r.column,s);const i=I(ae,"i32"),o=I(ae+Xt,"i32"),a=I(ae+2*Xt,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let e=0;e<i;e++){const r=I(l,"i32"),n=I(l+=Xt,"i32");l+=Xt;const s=new Array(n);if(l=ye(this,t.tree,l,s),this.textPredicates[r].every((t=>t(s)))){c[u++]={pattern:r,captures:s};const t=this.setProperties[r];t&&(c[e].setProperties=t);const n=this.assertedProperties[r];n&&(c[e].assertedProperties=n);const i=this.refutedProperties[r];i&&(c[e].refutedProperties=i)}}return c.length=u,Ht._free(o),c}captures(t,e,r,n){e||(e=re),r||(r=re),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");be(t),Ht._ts_query_captures_wasm(this[0],t.tree[0],e.row,e.column,r.row,r.column,s);const i=I(ae,"i32"),o=I(ae+Xt,"i32"),a=I(ae+2*Xt,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let e=0;e<i;e++){const e=I(l,"i32"),r=I(l+=Xt,"i32"),n=I(l+=Xt,"i32");if(l+=Xt,u.length=r,l=ye(this,t.tree,l,u),this.textPredicates[e].every((t=>t(u)))){const t=u[n],r=this.setProperties[e];r&&(t.setProperties=r);const s=this.assertedProperties[e];s&&(t.assertedProperties=s);const i=this.refutedProperties[e];i&&(t.refutedProperties=i),c.push(t)}}return Ht._free(o),c}predicatesForPattern(t){return this.predicates[t]}didExceedMatchLimit(){return this.exceededMatchLimit}}function me(t,e,r){const n=r-e;let s=t.textCallback(e,null,r);for(e+=s.length;e<r;){const n=t.textCallback(e,null,r);if(!(n&&n.length>0))break;e+=n.length,s+=n}return e>r&&(s=s.slice(0,n)),s}function ye(t,e,r,n){for(let s=0,i=n.length;s<i;s++){const i=I(r,"i32"),o=we(e,r+=Xt);r+=Jt,n[s]={name:t.captureNames[i],node:o}}return r}function ge(t){if(t!==Qt)throw new Error("Illegal constructor")}function ve(t){return t&&"number"==typeof t.row&&"number"==typeof t.column}function be(t){let e=ae;N(e,t.id,"i32"),N(e+=Xt,t.startIndex,"i32"),N(e+=Xt,t.startPosition.row,"i32"),N(e+=Xt,t.startPosition.column,"i32"),N(e+=Xt,t[0],"i32")}function we(t,e=ae){const r=I(e,"i32");if(0===r)return null;const n=I(e+=Xt,"i32"),s=I(e+=Xt,"i32"),i=I(e+=Xt,"i32"),o=I(e+=Xt,"i32"),a=new fe(Qt,t);return a.id=r,a.startIndex=n,a.startPosition={row:s,column:i},a[0]=o,a}function Ee(t,e=ae){N(e+0*Xt,t[0],"i32"),N(e+1*Xt,t[1],"i32"),N(e+2*Xt,t[2],"i32")}function xe(t){t[0]=I(ae+0*Xt,"i32"),t[1]=I(ae+1*Xt,"i32"),t[2]=I(ae+2*Xt,"i32")}function Se(t,e){N(t,e.row,"i32"),N(t+Xt,e.column,"i32")}function Ae(t){return{row:I(t,"i32"),column:I(t+Xt,"i32")}}function je(t,e){Se(t,e.startPosition),Se(t+=te,e.endPosition),N(t+=te,e.startIndex,"i32"),N(t+=Xt,e.endIndex,"i32"),t+=Xt}function ke(t){const e={};return e.startPosition=Ae(t),t+=te,e.endPosition=Ae(t),t+=te,e.startIndex=I(t,"i32"),t+=Xt,e.endIndex=I(t,"i32"),e}for(const t of Object.getOwnPropertyNames(le.prototype))Object.defineProperty(i.prototype,t,{value:le.prototype[t],enumerable:!1,writable:!1});i.Language=he,n.onRuntimeInitialized=()=>{le.init(),e()}})))}}return i}();t.exports=s},3078:()=>{},4142:()=>{},1212:(t,e,r)=>{t.exports=r(8411)},7202:(t,e,r)=>{"use strict";var n=r(239);t.exports=n},6656:(t,e,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var n=r(8099);t.exports=n.AggregateError},8411:(t,e,r)=>{"use strict";t.exports=r(8337)},8337:(t,e,r)=>{"use strict";r(5442);var n=r(7202);t.exports=n},814:(t,e,r)=>{"use strict";var n=r(2769),s=r(459),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(s(t)+" is not a function")}},1966:(t,e,r)=>{"use strict";var n=r(2937),s=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+s(t)+" as a prototype")}},8137:t=>{"use strict";t.exports=function(){}},7235:(t,e,r)=>{"use strict";var n=r(262),s=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(s(t)+" is not an object")}},1005:(t,e,r)=>{"use strict";var n=r(3273),s=r(4574),i=r(8130),o=function(t){return function(e,r,o){var a,c=n(e),u=i(c),l=s(o,u);if(t&&r!=r){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},9932:(t,e,r)=>{"use strict";var n=r(6100),s=n({}.toString),i=n("".slice);t.exports=function(t){return i(s(t),8,-1)}},8407:(t,e,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}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),o))?r:c?i(e):"Object"===(n=i(e))&&s(e.callee)?"Arguments":n}},7464:(t,e,r)=>{"use strict";var n=r(701),s=r(5691),i=r(4543),o=r(9989);t.exports=function(t,e,r){for(var a=s(e),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];n(t,p)||r&&n(r,p)||c(t,p,u(e,p))}}},2871:(t,e,r)=>{"use strict";var n=r(1203);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},877:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},3999:(t,e,r)=>{"use strict";var n=r(5024),s=r(9989),i=r(480);t.exports=n?function(t,e,r){return s.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},480:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},3508:(t,e,r)=>{"use strict";var n=r(3999);t.exports=function(t,e,r,s){return s&&s.enumerable?t[e]=r:n(t,e,r),t}},7525:(t,e,r)=>{"use strict";var n=r(1063),s=Object.defineProperty;t.exports=function(t,e){try{s(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},5024:(t,e,r)=>{"use strict";var n=r(1203);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(t,e,r)=>{"use strict";var n=r(1063),s=r(262),i=n.document,o=s(i)&&s(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},1100:t=>{"use strict";t.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:t=>{"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4432:(t,e,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]),t.exports=s},9683:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3885:(t,e,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);t.exports=function(t,e){if(c&&"string"==typeof t&&!s.prepareStackTrace)for(;e--;)t=i(t,a,"");return t}},4279:(t,e,r)=>{"use strict";var n=r(3999),s=r(3885),i=r(5791),o=Error.captureStackTrace;t.exports=function(t,e,r,a){i&&(o?o(t,e):n(t,"stack",s(r,a)))}},5791:(t,e,r)=>{"use strict";var n=r(1203),s=r(480);t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",s(1,7)),7!==t.stack)}))},9098:(t,e,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),_=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return s(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,s,h,d,m,y,g,v,b,w=t.target,E=t.global,x=t.stat,S=t.proto,A=E?n:x?n[w]:n[w]&&n[w].prototype,j=E?u:u[w]||p(u,w,{})[w],k=j.prototype;for(d in e)s=!(r=c(E?d:w+(x?".":"#")+d,t.forced))&&A&&f(A,d),y=j[d],s&&(g=t.dontCallGetSet?(b=a(A,d))&&b.value:A[d]),m=s&&g?g:e[d],(r||S||typeof y!=typeof m)&&(v=t.bind&&s?l(m,n):t.wrap&&s?_(m):S&&o(m)?i(m):m,(t.sham||m&&m.sham||y&&y.sham)&&p(v,"sham",!0),p(j,d,v),S&&(f(u,h=w+"Prototype")||p(u,h,{}),p(u[h],d,m),t.real&&k&&(r||!k[d])&&p(k,d,m)))}},1203:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},7013:(t,e,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.apply,o=s.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},4572:(t,e,r)=>{"use strict";var n=r(9344),s=r(814),i=r(1780),o=n(n.bind);t.exports=function(t,e){return s(t),void 0===e?t:i?o(t,e):function(){return t.apply(e,arguments)}}},1780:(t,e,r)=>{"use strict";var n=r(1203);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4713:(t,e,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;t.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},3410:(t,e,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);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3574:(t,e,r)=>{"use strict";var n=r(6100),s=r(814);t.exports=function(t,e,r){try{return n(s(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},9344:(t,e,r)=>{"use strict";var n=r(9932),s=r(6100);t.exports=function(t){if("Function"===n(t))return s(t)}},6100:(t,e,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);t.exports=n?o:function(t){return function(){return i.apply(t,arguments)}}},1003:(t,e,r)=>{"use strict";var n=r(8099),s=r(1063),i=r(2769),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(s[t]):n[t]&&n[t][e]||s[t]&&s[t][e]}},967:(t,e,r)=>{"use strict";var n=r(8407),s=r(4674),i=r(3057),o=r(6625),a=r(8655)("iterator");t.exports=function(t){if(!i(t))return s(t,a)||s(t,"@@iterator")||o[n(t)]}},1613:(t,e,r)=>{"use strict";var n=r(4713),s=r(814),i=r(7235),o=r(459),a=r(967),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(s(r))return i(n(r,t));throw new c(o(t)+" is not iterable")}},4674:(t,e,r)=>{"use strict";var n=r(814),s=r(3057);t.exports=function(t,e){var r=t[e];return s(r)?void 0:n(r)}},1063:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.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:(t,e,r)=>{"use strict";var n=r(6100),s=r(2137),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(s(t),e)}},5241:t=>{"use strict";t.exports={}},3489:(t,e,r)=>{"use strict";var n=r(1003);t.exports=n("document","documentElement")},9665:(t,e,r)=>{"use strict";var n=r(5024),s=r(1203),i=r(9619);t.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(t,e,r)=>{"use strict";var n=r(6100),s=r(1203),i=r(9932),o=Object,a=n("".split);t.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):o(t)}:o},3507:(t,e,r)=>{"use strict";var n=r(2769),s=r(262),i=r(3491);t.exports=function(t,e,r){var o,a;return i&&n(o=e.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(t,a),t}},8148:(t,e,r)=>{"use strict";var n=r(262),s=r(3999);t.exports=function(t,e){n(e)&&"cause"in e&&s(t,"cause",e.cause)}},8417:(t,e,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),_=r(5241),h="Object already initialized",d=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(t,e){if(y.has(t))throw new d(h);return e.facade=t,y.set(t,e),e},s=function(t){return y.get(t)||{}},i=function(t){return y.has(t)}}else{var g=f("state");_[g]=!0,n=function(t,e){if(l(t,g))throw new d(h);return e.facade=t,u(t,g,e),e},s=function(t){return l(t,g)?t[g]:{}},i=function(t){return l(t,g)}}t.exports={set:n,get:s,has:i,enforce:function(t){return i(t)?s(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=s(e)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}},2877:(t,e,r)=>{"use strict";var n=r(8655),s=r(6625),i=n("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||o[i]===t)}},2769:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},8696:(t,e,r)=>{"use strict";var n=r(1203),s=r(2769),i=/#|\.prototype\./,o=function(t,e){var r=c[a(t)];return r===l||r!==u&&(s(e)?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},3057:t=>{"use strict";t.exports=function(t){return null==t}},262:(t,e,r)=>{"use strict";var n=r(2769);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},2937:(t,e,r)=>{"use strict";var n=r(262);t.exports=function(t){return n(t)||null===t}},4871:t=>{"use strict";t.exports=!0},6281:(t,e,r)=>{"use strict";var n=r(1003),s=r(2769),i=r(4317),o=r(7460),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return s(e)&&i(e.prototype,a(t))}},208:(t,e,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),_=TypeError,h=function(t,e){this.stopped=t,this.result=e},d=h.prototype;t.exports=function(t,e,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),k=!(!r||!r.INTERRUPTED),O=n(e,x),P=function(t){return m&&f(m,"normal",t),new h(!0,t)},N=function(t){return S?(i(t),k?O(t[0],t[1],P):O(t[0],t[1])):k?O(t,P):O(t)};if(A)m=t.iterator;else if(j)m=t;else{if(!(y=p(t)))throw new _(o(t)+" is not iterable");if(a(y)){for(g=0,v=c(t);v>g;g++)if((b=N(t[g]))&&u(d,b))return b;return new h(!1)}m=l(t,y)}for(w=A?t.next:m.next;!(E=s(w,m)).done;){try{b=N(E.value)}catch(t){f(m,"throw",t)}if("object"==typeof b&&b&&u(d,b))return b}return new h(!1)}},1743:(t,e,r)=>{"use strict";var n=r(4713),s=r(7235),i=r(4674);t.exports=function(t,e,r){var o,a;s(t);try{if(!(o=i(t,"return"))){if("throw"===e)throw r;return r}o=n(o,t)}catch(t){a=!0,o=t}if("throw"===e)throw r;if(a)throw o;return s(o),r}},1926:(t,e,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=r(5780),i=r(480),o=r(1811),a=r(6625),c=function(){return this};t.exports=function(t,e,r,u){var l=e+" Iterator";return t.prototype=s(n,{next:i(+!u,r)}),o(t,l,!1,!0),a[l]=c,t}},164:(t,e,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),_=r(3508),h=r(8655),d=r(6625),m=r(2621),y=o.PROPER,g=o.CONFIGURABLE,v=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=h("iterator"),E="keys",x="values",S="entries",A=function(){return this};t.exports=function(t,e,r,o,h,m,j){c(r,e,o);var k,O,P,N=function(t){if(t===h&&F)return F;if(!b&&t&&t in M)return M[t];switch(t){case E:case x:case S:return function(){return new r(this,t)}}return function(){return new r(this)}},I=e+" Iterator",T=!1,M=t.prototype,C=M[w]||M["@@iterator"]||h&&M[h],F=!b&&C||N(h),R="Array"===e&&M.entries||C;if(R&&(k=u(R.call(new t)))!==Object.prototype&&k.next&&(i||u(k)===v||(l?l(k,v):a(k[w])||_(k,w,A)),p(k,I,!0,!0),i&&(d[I]=A)),y&&h===x&&C&&C.name!==x&&(!i&&g?f(M,"name",x):(T=!0,F=function(){return s(C,this)})),h)if(O={values:N(x),keys:m?F:N(E),entries:N(S)},j)for(P in O)(b||T||!(P in M))&&_(M,P,O[P]);else n({target:e,proto:!0,forced:b||T},O);return i&&!j||M[w]===F||_(M,w,F,{name:h}),d[e]=F,O}},2621:(t,e,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),_=r(4871),h=f("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):d=!0),!c(n)||o((function(){var t={};return n[h].call(t)!==t}))?n={}:_&&(n=u(n)),a(n[h])||p(n,h,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},6625:t=>{"use strict";t.exports={}},8130:(t,e,r)=>{"use strict";var n=r(8146);t.exports=function(t){return n(t.length)}},5777:t=>{"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},4879:(t,e,r)=>{"use strict";var n=r(1139);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},5780:(t,e,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",_=l("IE_PROTO"),h=function(){},d=function(t){return"<"+f+">"+t+"</"+f+">"},m=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;y="undefined"!=typeof document?document.domain&&n?m(n):(e=u("iframe"),r="java"+f+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):m(n);for(var s=o.length;s--;)delete y[p][o[s]];return y()};a[_]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(h[p]=s(t),r=new h,h[p]=null,r[_]=t):r=y(),void 0===e?r:i.f(r,e)}},7389:(t,e,r)=>{"use strict";var n=r(5024),s=r(1330),i=r(9989),o=r(7235),a=r(3273),c=r(8364);e.f=n&&!s?Object.defineProperties:function(t,e){o(t);for(var r,n=a(e),s=c(e),u=s.length,l=0;u>l;)i.f(t,r=s[l++],n[r]);return t}},9989:(t,e,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",_="writable";e.f=n?i?function(t,e,r){if(o(t),e=a(e),o(r),"function"==typeof t&&"prototype"===e&&"value"in r&&_ in r&&!r[_]){var n=l(t,e);n&&n[_]&&(t[e]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:p in r?r[p]:n[p],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(o(t),e=a(e),o(r),s)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},4543:(t,e,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;e.f=n?p:function(t,e){if(t=a(t),e=c(e),l)try{return p(t,e)}catch(t){}if(u(t,e))return o(!s(i.f,t,e),t[e])}},5116:(t,e,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,s)}},7313:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},3671:(t,e,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;t.exports=a?u.getPrototypeOf:function(t){var e=i(t);if(n(e,c))return e[c];var r=e.constructor;return s(r)&&e instanceof r?r.prototype:e instanceof u?l:null}},4317:(t,e,r)=>{"use strict";var n=r(6100);t.exports=n({}.isPrototypeOf)},8600:(t,e,r)=>{"use strict";var n=r(6100),s=r(701),i=r(3273),o=r(1005).indexOf,a=r(5241),c=n([].push);t.exports=function(t,e){var r,n=i(t),u=0,l=[];for(r in n)!s(a,r)&&s(n,r)&&c(l,r);for(;e.length>u;)s(n,r=e[u++])&&(~o(l,r)||c(l,r));return l}},8364:(t,e,r)=>{"use strict";var n=r(8600),s=r(9683);t.exports=Object.keys||function(t){return n(t,s)}},7161:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);e.f=s?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},3491:(t,e,r)=>{"use strict";var n=r(3574),s=r(7235),i=r(1966);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return s(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},9559:(t,e,r)=>{"use strict";var n=r(4904),s=r(8407);t.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9258:(t,e,r)=>{"use strict";var n=r(4713),s=r(2769),i=r(262),o=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&s(r=t.toString)&&!i(a=n(r,t)))return a;if(s(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&s(r=t.toString)&&!i(a=n(r,t)))return a;throw new o("Can't convert object to primitive value")}},5691:(t,e,r)=>{"use strict";var n=r(1003),s=r(6100),i=r(5116),o=r(7313),a=r(7235),c=s([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?c(e,r(t)):e}},8099:t=>{"use strict";t.exports={}},5516:(t,e,r)=>{"use strict";var n=r(9989).f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},5426:(t,e,r)=>{"use strict";var n=r(3057),s=TypeError;t.exports=function(t){if(n(t))throw new s("Can't call method on "+t);return t}},1811:(t,e,r)=>{"use strict";var n=r(4904),s=r(9989).f,i=r(3999),o=r(701),a=r(9559),c=r(8655)("toStringTag");t.exports=function(t,e,r,u){var l=r?t:t&&t.prototype;l&&(o(l,c)||s(l,c,{configurable:!0,value:e}),u&&!n&&i(l,"toString",a))}},4275:(t,e,r)=>{"use strict";var n=r(8141),s=r(1268),i=n("keys");t.exports=function(t){return i[t]||(i[t]=s(t))}},3753:(t,e,r)=>{"use strict";var n=r(1063),s=r(7525),i="__core-js_shared__",o=n[i]||s(i,{});t.exports=o},8141:(t,e,r)=>{"use strict";var n=r(4871),s=r(3753);(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("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:(t,e,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(t){return function(e,r){var n,l,p=i(o(e)),f=s(r),_=p.length;return f<0||f>=_?t?"":void 0:(n=c(p,f))<55296||n>56319||f+1===_||(l=c(p,f+1))<56320||l>57343?t?a(p,f):n:t?u(p,f,f+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},4603:(t,e,r)=>{"use strict";var n=r(4432),s=r(1203),i=r(1063).String;t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4574:(t,e,r)=>{"use strict";var n=r(9903),s=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?s(r+e,0):i(r,e)}},3273:(t,e,r)=>{"use strict";var n=r(1395),s=r(5426);t.exports=function(t){return n(s(t))}},9903:(t,e,r)=>{"use strict";var n=r(5777);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},8146:(t,e,r)=>{"use strict";var n=r(9903),s=Math.min;t.exports=function(t){var e=n(t);return e>0?s(e,9007199254740991):0}},2137:(t,e,r)=>{"use strict";var n=r(5426),s=Object;t.exports=function(t){return s(n(t))}},493:(t,e,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");t.exports=function(t,e){if(!s(t)||i(t))return t;var r,c=o(t,l);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!s(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},5341:(t,e,r)=>{"use strict";var n=r(493),s=r(6281);t.exports=function(t){var e=n(t,"string");return s(e)?e:e+""}},4904:(t,e,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",t.exports="[object z]"===String(n)},1139:(t,e,r)=>{"use strict";var n=r(8407),s=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},459:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},1268:(t,e,r)=>{"use strict";var n=r(6100),s=0,i=Math.random(),o=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++s+i,36)}},7460:(t,e,r)=>{"use strict";var n=r(4603);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(t,e,r)=>{"use strict";var n=r(5024),s=r(1203);t.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(t,e,r)=>{"use strict";var n=r(1063),s=r(2769),i=n.WeakMap;t.exports=s(i)&&/native code/.test(String(i))},8655:(t,e,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;t.exports=function(t){return i(l,t)||(l[t]=a&&i(u,t)?u[t]:p("Symbol."+t)),l[t]}},6453:(t,e,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),_=r(4279),h=r(5024),d=r(4871);t.exports=function(t,e,r,m){var y="stackTraceLimit",g=m?2:1,v=t.split("."),b=v[v.length-1],w=n.apply(null,v);if(w){var E=w.prototype;if(!d&&s(E,"cause")&&delete E.cause,!r)return w;var x=n("Error"),S=e((function(t,e){var r=p(m?e:t,void 0),n=m?new w(t):new w;return void 0!==r&&i(n,"message",r),_(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}):h&&y in w&&(u(S,w,y),u(S,w,"prepareStackTrace")),c(S,w),!d)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(t){}return S}}},6138:(t,e,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(t){return function(e,r){return i(t,this,arguments)}}),l,!0)})},3085:(t,e,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),_=r(208),h=r(4879),d=r(8655)("toStringTag"),m=Error,y=[].push,g=function(t,e){var r,n=s(v,this);o?r=o(new m,n?i(this):v):(r=n?this:c(v),u(r,d,"Error")),void 0!==e&&u(r,"message",h(e)),f(r,g,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return _(t,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:(t,e,r)=>{"use strict";r(3085)},9828:(t,e,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",_=o.set,h=o.getterFor(f);t.exports=c(Array,"Array",(function(t,e){_(this,{type:f,target:n(t),index:0,kind:e})}),(function(){var t=h(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(t){}},484:(t,e,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(t,e){var r={};r[t]=o(t,e,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},p=function(t,e){if(c&&c[t]){var r={};r[t]=o(a+"."+t,e,u),n({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(t){return function(e){return i(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),l("URIError",(function(t){return function(e){return i(t,this,arguments)}})),p("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),p("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),p("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},3832:(t,e,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(t){u(this,{type:c,string:s(t),index:0})}),(function(){var t,e=l(this),r=e.string,s=e.index;return s>=r.length?a(void 0,!0):(t=n(r,s),e.index+=t.length,a(t,!1))}))},5442:(t,e,r)=>{"use strict";r(5695)},85:(t,e,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:(t,e,r)=>{"use strict";r(5442);var n=r(6656);r(85),t.exports=n}},e={};function r(n){var s=e[n];if(void 0!==s)return s.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&(!t||!/^http(s?):/.test(t));)t=n[s--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t})();var n={};return(()=>{"use strict";r.r(n),r.d(n,{detect:()=>Ls,lexicalAnalysis:()=>f,mediaTypes:()=>qs,namespace:()=>Ms,parse:()=>Vs,syntacticAnalysis:()=>Ts});var t={};r.r(t),r.d(t,{hasElementSourceMap:()=>Rn,includesClasses:()=>Ln,includesSymbols:()=>qn,isAnnotationElement:()=>In,isArrayElement:()=>kn,isBooleanElement:()=>An,isCommentElement:()=>Tn,isElement:()=>wn,isLinkElement:()=>Pn,isMemberElement:()=>On,isNullElement:()=>Sn,isNumberElement:()=>xn,isObjectElement:()=>jn,isParseResultElement:()=>Mn,isPrimitiveElement:()=>Fn,isRefElement:()=>Nn,isSourceMapElement:()=>Cn,isStringElement:()=>En});var e=r(3833),s=r.n(e),i=r(1212);const o=class extends i{constructor(t,e,r){if(super(t,e,r),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!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:t}=r;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}};class a extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(o,t)}constructor(t,e){if(super(t,e),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!=e&&"object"==typeof e&&Object.hasOwn(e,"cause")&&!("cause"in this)){const{cause:t}=e;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}}const c=a,u=r.p+"d396281e11774e0afa7a40d620779b6d.wasm";let l=null,p=null;const f=async t=>{if(null===l&&null===p)p=s().init().then((()=>s().Language.load(u))).then((t=>{const e=new(s());return e.setLanguage(t),e})).finally((()=>{p=null})),l=await p;else if(null===l&&null!==p)l=await p;else if(null===l)throw new c("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return l.parse(t)};function _(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function h(t){return function e(r){return 0===arguments.length||_(r)?e:t.apply(this,arguments)}}const d=h((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function m(t,e,r){if(r||(r=new y),function(t){var e=typeof t;return null==t||"object"!=e&&"function"!=e}(t))return t;var n,s=function(n){var s=r.get(t);if(s)return s;for(var i in r.set(t,n),t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=e?m(t[i],!0,r):t[i]);return n};switch(d(t)){case"Object":return s(Object.create(Object.getPrototypeOf(t)));case"Array":return s([]);case"Date":return new Date(t.valueOf());case"RegExp":return n=t,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 t.slice();default:return t}}var y=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(t,e){const r=this.hash(t);let n=this.map[r];n||(this.map[r]=n=[]),n.push([t,e]),this.length+=1},t.prototype.hash=function(t){let e=[];for(var r in t)e.push(Object.prototype.toString.call(t[r]));return e.join()},t.prototype.get=function(t){if(this.length<=180){for(const e in this.map){const r=this.map[e];for(let e=0;e<r.length;e+=1){const n=r[e];if(n[0]===t)return n[1]}}return}const e=this.hash(t),r=this.map[e];if(r)for(let e=0;e<r.length;e+=1){const n=r[e];if(n[0]===t)return n[1]}},t}();const g=h((function(t){return null!=t&&"function"==typeof t.clone?t.clone():m(t,!0)}));const v=class extends c{constructor(t,e){if(super(t,e),null!=e&&"object"==typeof e){const{cause:t,...r}=e;Object.assign(this,r)}}};const b=class extends v{};const w=class extends b{};const E=class extends w{specificTagName;explicitTagName;tagKind;tagPosition;nodeCanonicalContent;node;constructor(t,e){super(t,e),void 0!==e&&(this.specificTagName=e.specificTagName,this.explicitTagName=e.explicitTagName,this.tagKind=e.tagKind,this.tagPosition=e.tagPosition,this.nodeCanonicalContent=e.nodeCanonicalContent,this.node=e.node)}};const x=class{static type="node";type="node";isMissing;children;position;constructor({children:t=[],position:e,isMissing:r=!1}={}){this.type=this.constructor.type,this.isMissing=r,this.children=t,this.position=e}clone(){const t=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((e=>{const r=Object.getOwnPropertyDescriptor(this,e);Object.defineProperty(t,e,r)})),t}};let S=function(t){return t.Scalar="Scalar",t.Sequence="Sequence",t.Mapping="Mapping",t}({});const A=class extends x{static type="tag";explicitName;kind;constructor({explicitName:t,kind:e,...r}){super({...r}),this.explicitName=t,this.kind=e}};const j=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(t){return!0}resolve(t){return t}};const k=class extends j{static uri="tag:yaml.org,2002:map";test(t){return t.tag.kind===S.Mapping}};const O=class extends j{static uri="tag:yaml.org,2002:seq";test(t){return t.tag.kind===S.Sequence}};const P=class extends j{static uri="tag:yaml.org,2002:str"};function N(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return _(r)?e:h((function(e){return t(r,e)}));default:return _(r)&&_(n)?e:_(r)?h((function(e){return t(e,n)})):_(n)?h((function(e){return t(r,e)})):t(r,n)}}}function I(t){return function e(r,n,s){switch(arguments.length){case 0:return e;case 1:return _(r)?e:N((function(e,n){return t(r,e,n)}));case 2:return _(r)&&_(n)?e:_(r)?N((function(e,r){return t(e,n,r)})):_(n)?N((function(e,n){return t(r,e,n)})):h((function(e){return t(r,n,e)}));default:return _(r)&&_(n)&&_(s)?e:_(r)&&_(n)?N((function(e,r){return t(e,r,s)})):_(r)&&_(s)?N((function(e,r){return t(e,n,r)})):_(n)&&_(s)?N((function(e,n){return t(r,e,n)})):_(r)?h((function(e){return t(e,n,s)})):_(n)?h((function(e){return t(r,e,s)})):_(s)?h((function(e){return t(r,n,e)})):t(r,n,s)}}}const T=N((function(t,e){return null==e||e!=e?t:e})),M=Number.isInteger||function(t){return t<<0===t};function C(t){return"[object String]"===Object.prototype.toString.call(t)}const F=N((function(t,e){var r=t<0?e.length+t:t;return C(e)?e.charAt(r):e[r]}));const R=N((function(t,e){return t.map((function(t){for(var r,n=e,s=0;s<t.length;){if(null==n)return;r=t[s],n=M(r)?F(r,n):n[r],s+=1}return n}))}));const q=N((function(t,e){return R([t],e)[0]}));const L=I((function(t,e,r){return T(t,q(e,r))}));function V(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,r){return e.apply(this,arguments)};case 3:return function(t,r,n){return e.apply(this,arguments)};case 4:return function(t,r,n,s){return e.apply(this,arguments)};case 5:return function(t,r,n,s,i){return e.apply(this,arguments)};case 6:return function(t,r,n,s,i,o){return e.apply(this,arguments)};case 7:return function(t,r,n,s,i,o,a){return e.apply(this,arguments)};case 8:return function(t,r,n,s,i,o,a,c){return e.apply(this,arguments)};case 9:return function(t,r,n,s,i,o,a,c,u){return e.apply(this,arguments)};case 10:return function(t,r,n,s,i,o,a,c,u,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function D(t,e,r){return function(){for(var n=[],s=0,i=t,o=0,a=!1;o<e.length||s<arguments.length;){var c;o<e.length&&(!_(e[o])||s>=arguments.length)?c=e[o]:(c=arguments[s],s+=1),n[o]=c,_(c)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,n):V(Math.max(0,i),D(t,n,r))}}const z=N((function(t,e){return 1===t?h(e):V(t,D(t,[],e))}));const U=h((function(t){return z(t.length,t)}));function G(t,e){return function(){return e.call(this,t.apply(this,arguments))}}const B=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};const $=h((function(t){return!!B(t)||!!t&&("object"==typeof t&&(!C(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));var K="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function W(t,e,r){return function(n,s,i){if($(i))return t(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return e(n,s,i,"fantasy-land/reduce");if(null!=i[K])return r(n,s,i[K]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return e(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Z(t,e,r){for(var n=0,s=r.length;n<s;){if((e=t["@@transducer/step"](e,r[n]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n+=1}return t["@@transducer/result"](e)}const Y=N((function(t,e){return V(t.length,(function(){return t.apply(e,arguments)}))}));function H(t,e,r){for(var n=r.next();!n.done;){if((e=t["@@transducer/step"](e,n.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n=r.next()}return t["@@transducer/result"](e)}function Q(t,e,r,n){return t["@@transducer/result"](r[n](Y(t["@@transducer/step"],t),e))}const X=W(Z,Q,H);var J=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();function tt(t){return new J(t)}const et=I((function(t,e,r){return X("function"==typeof t?tt(t):t,e,r)}));function rt(t,e){return function(){var r=arguments.length;if(0===r)return e();var n=arguments[r-1];return B(n)||"function"!=typeof n[t]?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const nt=I(rt("slice",(function(t,e,r){return Array.prototype.slice.call(r,t,e)})));const st=h(rt("tail",nt(1,1/0)));function it(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return V(arguments[0].length,et(G,arguments[0],st(arguments)))}var ot="\t\n\v\f\r \u2028\u2029\ufeff";const at=h("function"==typeof String.prototype.trim&&!ot.trim()&&"".trim()?function(t){return t.trim()}:function(t){var e=new RegExp("^["+ot+"]["+ot+"]*"),r=new RegExp("["+ot+"]["+ot+"]*$");return t.replace(e,"").replace(r,"")});function ct(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}function ut(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function lt(t,e,r){for(var n=0,s=r.length;n<s;){if(t(e,r[n]))return!0;n+=1}return!1}function pt(t,e){return Object.prototype.hasOwnProperty.call(e,t)}const ft="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};var _t=Object.prototype.toString;const ht=function(){return"[object Arguments]"===_t.call(arguments)?function(t){return"[object Arguments]"===_t.call(t)}:function(t){return pt("callee",t)}}();var dt=!{toString:null}.propertyIsEnumerable("toString"),mt=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],yt=function(){return arguments.propertyIsEnumerable("length")}(),gt=function(t,e){for(var r=0;r<t.length;){if(t[r]===e)return!0;r+=1}return!1},vt="function"!=typeof Object.keys||yt?h((function(t){if(Object(t)!==t)return[];var e,r,n=[],s=yt&&ht(t);for(e in t)!pt(e,t)||s&&"length"===e||(n[n.length]=e);if(dt)for(r=mt.length-1;r>=0;)pt(e=mt[r],t)&&!gt(n,e)&&(n[n.length]=e),r-=1;return n})):h((function(t){return Object(t)!==t?[]:Object.keys(t)}));const bt=vt;function wt(t,e,r,n){var s=ut(t);function i(t,e){return Et(t,e,r.slice(),n.slice())}return!lt((function(t,e){return!lt(i,e,t)}),ut(e),s)}function Et(t,e,r,n){if(ft(t,e))return!0;var s,i,o=d(t);if(o!==d(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(s=t.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!ft(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!ft(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===t)return n[a]===e;a-=1}switch(o){case"Map":return t.size===e.size&&wt(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&wt(t.values(),e.values(),r.concat([t]),n.concat([e]));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=bt(t);if(c.length!==bt(e).length)return!1;var u=r.concat([t]),l=n.concat([e]);for(a=c.length-1;a>=0;){var p=c[a];if(!pt(p,e)||!Et(e[p],t[p],u,l))return!1;a-=1}return!0}const xt=N((function(t,e){return Et(t,e,[],[])}));function St(t,e){return function(t,e,r){var n,s;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(n=1/e;r<t.length;){if(0===(s=t[r])&&1/s===n)return r;r+=1}return-1}if(e!=e){for(;r<t.length;){if("number"==typeof(s=t[r])&&s!=s)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(null===e)return t.indexOf(e,r)}for(;r<t.length;){if(xt(t[r],e))return r;r+=1}return-1}(e,t,0)>=0}function At(t,e){for(var r=0,n=e.length,s=Array(n);r<n;)s[r]=t(e[r]),r+=1;return s}function jt(t){return'"'+t.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 kt=function(t){return(t<10?"0":"")+t};const Ot="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+kt(t.getUTCMonth()+1)+"-"+kt(t.getUTCDate())+"T"+kt(t.getUTCHours())+":"+kt(t.getUTCMinutes())+":"+kt(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Pt(t,e,r){for(var n=0,s=r.length;n<s;)e=t(e,r[n]),n+=1;return e}function Nt(t,e,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!B(n)){for(var s=0;s<t.length;){if("function"==typeof n[t[s]])return n[t[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}(n))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function It(t){return"[object Object]"===Object.prototype.toString.call(t)}const Tt=function(){return this.xf["@@transducer/init"]()},Mt=function(t){return this.xf["@@transducer/result"](t)};var Ct=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Tt,t.prototype["@@transducer/result"]=Mt,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function Ft(t){return function(e){return new Ct(t,e)}}const Rt=N(Nt(["fantasy-land/filter","filter"],Ft,(function(t,e){return It(e)?Pt((function(r,n){return t(e[n])&&(r[n]=e[n]),r}),{},bt(e)):function(t,e){for(var r=0,n=e.length,s=[];r<n;)t(e[r])&&(s[s.length]=e[r]),r+=1;return s}(t,e)})));const qt=N((function(t,e){return Rt((r=t,function(){return!r.apply(this,arguments)}),e);var r}));function Lt(t,e){var r=function(r){var n=e.concat([t]);return St(r,n)?"<Circular>":Lt(r,n)},n=function(t,e){return At((function(e){return jt(e)+": "+r(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+At(r,t).join(", ")+"))";case"[object Array]":return"["+At(r,t).concat(n(t,qt((function(t){return/^\d+$/.test(t)}),bt(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):jt(Ot(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":jt(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var s=t.toString();if("[object Object]"!==s)return s}return"{"+n(t,bt(t)).join(", ")+"}"}}const Vt=h((function(t){return Lt(t,[])}));const Dt=N((function(t,e){return z(t+1,(function(){var r=arguments[t];if(null!=r&&ct(r[e]))return r[e].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(Vt(r)+' does not have a method named "'+e+'"')}))}));const zt=Dt(1,"split");var Ut=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Tt,t.prototype["@@transducer/result"]=Mt,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}();const Gt=N(Nt(["fantasy-land/map","map"],(function(t){return function(e){return new Ut(t,e)}}),(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return z(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return Pt((function(r,n){return r[n]=t(e[n]),r}),{},bt(e));default:return At(t,e)}})));const Bt=Dt(1,"join");const $t=h((function(t){return C(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()}));function Kt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return it.apply(this,$t(arguments))}const Wt=z(4,(function(t,e,r,n){return X(t("function"==typeof e?tt(e):e),r,n)}));const Zt=N((function(t,e){if(B(t)){if(B(e))return t.concat(e);throw new TypeError(Vt(e)+" is not an array")}if(C(t)){if(C(e))return t+e;throw new TypeError(Vt(e)+" is not a string")}if(null!=t&&ct(t["fantasy-land/concat"]))return t["fantasy-land/concat"](e);if(null!=t&&ct(t.concat))return t.concat(e);throw new TypeError(Vt(t)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Yt=xt("");const Ht=N((function(t,e){if(t===e)return e;function r(t,e){if(t>e!=e>t)return e>t?e:t}var n=r(t,e);if(void 0!==n)return n;var s=r(typeof t,typeof e);if(void 0!==s)return s===typeof t?t:e;var i=Vt(t),o=r(i,Vt(e));return void 0!==o&&o===i?t:e}));const Qt=N((function(t,e){if(null!=e)return M(t)?F(t,e):e[t]}));const Xt=N((function(t,e){return Gt(Qt(t),e)}));const Jt=h((function(t){return z(et(Ht,0,Xt("length",t)),(function(){for(var e=0,r=t.length;e<r;){if(t[e].apply(this,arguments))return!0;e+=1}return!1}))}));var te=function(t,e){switch(arguments.length){case 0:return te;case 1:return function e(r){return 0===arguments.length?e:ft(t,r)};default:return ft(t,e)}};const ee=te;const re=z(1,it(d,ee("GeneratorFunction")));const ne=z(1,it(d,ee("AsyncFunction")));const se=Jt([it(d,ee("Function")),re,ne]);const ie=N((function(t,e){return t&&e}));function oe(t,e,r){for(var n=r.next();!n.done;)e=t(e,n.value),n=r.next();return e}function ae(t,e,r,n){return r[n](t,e)}const ce=W(Pt,ae,oe);const ue=N((function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(r){return t(r)(e(r))}:ce((function(t,r){return function(t,e){var r;e=e||[];var n=(t=t||[]).length,s=e.length,i=[];for(r=0;r<n;)i[i.length]=t[r],r+=1;for(r=0;r<s;)i[i.length]=e[r],r+=1;return i}(t,Gt(r,e))}),[],t)}));const le=N((function(t,e){var r=z(t,e);return z(t,(function(){return Pt(ue,Gt(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const pe=h((function(t){return le(t.length,t)}));const fe=N((function(t,e){return ct(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:pe(ie)(t,e)}));const _e=N((function(t,e){return z(et(Ht,0,Xt("length",e)),(function(){var r=arguments,n=this;return t.apply(n,At((function(t){return t.apply(n,r)}),e))}))}));function he(t){return t}const de=h(he);const me=z(1,it(d,ee("Number")));var ye=fe(me,isFinite);var ge=z(1,ye);const ve=se(Number.isFinite)?z(1,Y(Number.isFinite,Number)):ge;var be=fe(ve,_e(xt,[Math.floor,de]));var we=z(1,be);const Ee=se(Number.isInteger)?z(1,Y(Number.isInteger,Number)):we;const xe=h((function(t){return z(t.length,(function(e,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=e,t.apply(this,n)}))}));const Se=pe(h((function(t){return!t})));const Ae=Se(ve);const je=z(1,fe(me,N((function(t,e){return t>e}))(0)));var ke=U((function(t,e){var r=Number(e);if(r!==e&&(r=0),je(r))throw new RangeError("repeat count must be non-negative");if(Ae(r))throw new RangeError("repeat count must be less than infinity");if(r=Math.floor(r),0===t.length||0===r)return"";if(t.length*r>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var n=t.length*r;r=Math.floor(Math.log(r)/Math.log(2));for(var s=t;r;)s+=t,r-=1;return s+=s.substring(0,n-s.length)})),Oe=xe(Dt(1,"repeat"));const Pe=se(String.prototype.repeat)?Oe:ke;var Ne=h((function(t){return function(){return t}}))(void 0);const Ie=xt(Ne());const Te=I((function(t,e,r){return r.replace(t,e)}));var Me=Te(/[\s\uFEFF\xA0]+$/,""),Ce=Dt(0,"trimEnd");const Fe=se(String.prototype.trimEnd)?Ce:Me;var Re=Te(/^[\s\uFEFF\xA0]+/,""),qe=Dt(0,"trimStart");const Le=se(String.prototype.trimStart)?qe:Re;var Ve=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Tt,t.prototype["@@transducer/result"]=Mt,t.prototype["@@transducer/step"]=function(t,e){if(this.f){if(this.f(e))return t;this.f=null}return this.xf["@@transducer/step"](t,e)},t}();function De(t){return function(e){return new Ve(t,e)}}const ze=N(Nt(["dropWhile"],De,(function(t,e){for(var r=0,n=e.length;r<n&&t(e[r]);)r+=1;return nt(r,1/0,e)})));const Ue=xe(N(St));const Ge=U((function(t,e){return it(zt(""),ze(Ue(t)),Bt(""))(e)}));const Be=xe(Zt);var $e=r(6850);const Ke=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,We=t=>{const e=(t=>{const e=t.match(Ke),r=L("",["groups","indentation"],e);return Yt(r)?void 0:parseInt(r,10)})(t);if(Ee(e))return Pe(" ",e);const r=L("",[1],t.split("\n")),n=L(0,["groups","indentation","length"],r.match(/^(?<indentation>[ ]*)/));return Pe(" ",n)},Ze=t=>{const e=t.match(Ke),r=L("",["groups","chomping"],e);return Yt(r)?void 0:r},Ye=(t,e)=>Ie(t)?`${Fe(e)}\n`:"-"===t?Fe(e):e,He=t=>t.replace(/\r\n/g,"\n"),Qe=t=>t.replace(/(\n)?\n([^\n]+)/g,((t,e,r)=>e?t:` ${r.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Xe=U(((t,e)=>e.replace(new RegExp(`^${t}`),"").replace(new RegExp(`${t}$`),""))),Je=it(He,at,Qe,zt("\n"),Gt(Le),Bt("\n")),tr=it(He,at,Qe,zt("\n"),Gt(Le),Bt("\n"),Xe("'")),er=it(He,at,(t=>t.replace(/\\\n\s*/g,"")),Qe,$e.MH,zt("\n"),Gt(Le),Bt("\n"),Xe('"'));let rr=function(t){return t.Plain="Plain",t.SingleQuoted="SingleQuoted",t.DoubleQuoted="DoubleQuoted",t.Literal="Literal",t.Folded="Folded",t.Explicit="Explicit",t.SinglePair="SinglePair",t.NextLine="NextLine",t.InLine="InLine",t}({}),nr=function(t){return t.Flow="Flow",t.Block="Block",t}({});const sr=class{static test(t){return t.tag.kind===S.Scalar&&"string"==typeof t.content}static canonicalFormat(t){let e=t.content;const r=t.clone();return t.style===rr.Plain?e=Je(t.content):t.style===rr.SingleQuoted?e=tr(t.content):t.style===rr.DoubleQuoted?e=er(t.content):t.style===rr.Literal?e=(t=>{const e=We(t),r=Ze(t),n=He(t),s=st(n.split("\n")),i=Kt(Gt(Ge(e)),Gt(Be("\n"))),o=Wt(i,Zt,"",s);return Ye(r,o)})(t.content):t.style===rr.Folded&&(e=(t=>{const e=We(t),r=Ze(t),n=He(t),s=st(n.split("\n")),i=Kt(Gt(Ge(e)),Gt(Be("\n"))),o=Wt(i,Zt,"",s),a=Qe(o);return Ye(r,a)})(t.content)),r.content=e,r}static resolve(t){return t}};const ir=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new k),this.registerTag(new O),this.registerTag(new P)}toSpecificTagName(t){let e=t.tag.explicitName;return"!"===t.tag.explicitName?t.tag.kind===S.Scalar?e=P.uri:t.tag.kind===S.Sequence?e=O.uri:t.tag.kind===S.Mapping&&(e=k.uri):t.tag.explicitName.startsWith("!<")?e=t.tag.explicitName.replace(/^!</,"").replace(/>$/,""):t.tag.explicitName.startsWith("!!")&&(e=`tag:yaml.org,2002:${t.tag.explicitName.replace(/^!!/,"")}`),e}registerTagDirective(t){this.tagDirectives.push({handle:t.parameters.handle,prefix:t.parameters.prefix})}registerTag(t,e=!1){return e?this.tags.unshift(t):this.tags.push(t),this}overrideTag(t){return this.tags=this.tags.filter((e=>e.tag===t.tag)),this.tags.push(t),this}resolve(t){const e=this.toSpecificTagName(t);if("?"===e)return t;let r=t;sr.test(t)&&(r=sr.canonicalFormat(t));const n=this.tags.find((t=>(null==t?void 0:t.tag)===e));if(void 0===n)throw new E(`Tag "${e}" was not recognized.`,{specificTagName:e,explicitTagName:t.tag.explicitName,tagKind:t.tag.kind,tagPosition:g(t.tag.position),node:t.clone()});if(!n.test(r))throw new E(`Node couldn't be resolved against the tag "${e}"`,{specificTagName:e,explicitTagName:t.tag.explicitName,tagKind:t.tag.kind,tagPosition:g(t.tag.position),nodeCanonicalContent:r.content,node:t.clone()});return n.resolve(r)}};const or=class extends j{static uri="tag:yaml.org,2002:bool";test(t){return/^(true|false)$/.test(t.content)}resolve(t){const e="true"===t.content,r=t.clone();return r.content=e,r}};const ar=class extends j{static uri="tag:yaml.org,2002:float";test(t){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(t.content)}resolve(t){const e=parseFloat(t.content),r=t.clone();return r.content=e,r}};const cr=class extends j{static uri="tag:yaml.org,2002:int";test(t){return/^-?(0|[1-9][0-9]*)$/.test(t.content)}resolve(t){const e=parseInt(t.content,10),r=t.clone();return r.content=e,r}};const ur=class extends j{static uri="tag:yaml.org,2002:null";test(t){return/^null$/.test(t.content)}resolve(t){const e=t.clone();return e.content=null,e}};const lr=class extends ir{constructor(){super(),this.registerTag(new or,!0),this.registerTag(new ar,!0),this.registerTag(new cr,!0),this.registerTag(new ur,!0)}toSpecificTagName(t){let e=super.toSpecificTagName(t);if("?"===e)if(t.tag.vkind===S.Sequence)e=O.uri;else if(t.tag.kind===S.Mapping)e=k.uri;else if(t.tag.kind===S.Scalar){const r=this.tags.find((e=>e.test(t)));e=(null==r?void 0:r.tag)||"?"}return e}};const pr=class extends x{anchor;tag;style;styleGroup;constructor({anchor:t,tag:e,style:r,styleGroup:n,...s}){super({...s}),this.anchor=t,this.tag=e,this.style=r,this.styleGroup=n}};const fr=class extends pr{static type="scalar";content;constructor({content:t,...e}){super({...e}),this.content=t}};const _r=class extends b{},hr=(t,e)=>null!=e&&"object"==typeof e&&"type"in e&&e.type===t,dr=t=>hr("mapping",t),mr=t=>hr("sequence",t),yr=t=>hr("keyValuePair",t),gr=t=>hr("scalar",t),vr=t=>hr("alias",t);const br=class{addAnchor(t){if(!(t=>hr("anchor",t))(t.anchor))throw new _r("Expected YAML anchor to be attached the the YAML AST node.",{node:t})}resolveAlias(t){return new fr({content:t.content,style:rr.Plain,styleGroup:nr.Flow})}},wr=(t,e,r)=>{const n=t[e];if(null!=n){if(!r&&"function"==typeof n)return n;const t=r?n.leave:n.enter;if("function"==typeof t)return t}else{const n=r?t.leave:t.enter;if(null!=n){if("function"==typeof n)return n;const t=n[e];if("function"==typeof t)return t}}return null},Er={},xr=t=>null==t?void 0:t.type,Sr=t=>"string"==typeof xr(t),Ar=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),jr=(t,e,{keyMap:r=null,state:n={},breakSymbol:s=Er,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=wr,nodeTypeGetter:c=xr,nodePredicate:u=Sr,nodeCloneFn:l=Ar,detectCycles:p=!0}={})=>{const f=r||{};let _,h,d=Array.isArray(t),m=[t],y=-1,g=[],b=t;const w=[],E=[];do{y+=1;const t=y===m.length;let r;const S=t&&0!==g.length;if(t){if(r=0===E.length?void 0:w.pop(),b=h,h=E.pop(),S)if(d){b=b.slice();let t=0;for(const[e,r]of g){const n=e-t;r===i?(b.splice(n,1),t+=1):b[n]=r}}else{b=l(b);for(const[t,e]of g)b[t]=e}y=_.index,m=_.keys,g=_.edits,d=_.inArray,_=_.prev}else if(h!==i&&void 0!==h){if(r=d?y:m[y],b=h[r],b===i||void 0===b)continue;w.push(r)}let A;if(!Array.isArray(b)){if(!u(b))throw new v(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&E.includes(b)){w.pop();continue}const i=a(e,c(b),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;A=i.call(e,b,r,h,w,E)}if(A===s)break;if(A===o){if(!t){w.pop();continue}}else if(void 0!==A&&(g.push([r,A]),!t)){if(!u(A)){w.pop();continue}b=A}}var x;if(void 0===A&&S&&g.push([r,b]),!t)_={inArray:d,index:y,keys:m,edits:g,prev:_},d=Array.isArray(b),m=d?b:null!==(x=f[c(b)])&&void 0!==x?x:[],y=-1,g=[],h!==i&&void 0!==h&&E.push(h),h=b}while(void 0!==_);return 0!==g.length?g[g.length-1][1]:t};jr[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=null,state:n={},breakSymbol:s=Er,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=wr,nodeTypeGetter:c=xr,nodePredicate:u=Sr,nodeCloneFn:l=Ar,detectCycles:p=!0}={})=>{const f=r||{};let _,h,d=Array.isArray(t),m=[t],y=-1,g=[],b=t;const w=[],E=[];do{y+=1;const t=y===m.length;let r;const S=t&&0!==g.length;if(t){if(r=0===E.length?void 0:w.pop(),b=h,h=E.pop(),S)if(d){b=b.slice();let t=0;for(const[e,r]of g){const n=e-t;r===i?(b.splice(n,1),t+=1):b[n]=r}}else{b=l(b);for(const[t,e]of g)b[t]=e}y=_.index,m=_.keys,g=_.edits,d=_.inArray,_=_.prev}else if(h!==i&&void 0!==h){if(r=d?y:m[y],b=h[r],b===i||void 0===b)continue;w.push(r)}let A;if(!Array.isArray(b)){if(!u(b))throw new v(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&E.includes(b)){w.pop();continue}const i=a(e,c(b),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;A=await i.call(e,b,r,h,w,E)}if(A===s)break;if(A===o){if(!t){w.pop();continue}}else if(void 0!==A&&(g.push([r,A]),!t)){if(!u(A)){w.pop();continue}b=A}}var x;if(void 0===A&&S&&g.push([r,b]),!t)_={inArray:d,index:y,keys:m,edits:g,prev:_},d=Array.isArray(b),m=d?b:null!==(x=f[c(b)])&&void 0!==x?x:[],y=-1,g=[],h!==i&&void 0!==h&&E.push(h),h=b}while(void 0!==_);return 0!==g.length?g[g.length-1][1]:t};class kr{static type="point";type=kr.type;row;column;char;constructor({row:t,column:e,char:r}){this.row=t,this.column=e,this.char=r}}class Or{static type="position";type=Or.type;start;end;constructor({start:t,end:e}){this.start=t,this.end=e}}const Pr=Or;const Nr=class extends x{static type="anchor";name;constructor({name:t,...e}){super({...e}),this.name=t}};class Ir extends x{static type="stream"}Object.defineProperty(Ir.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((t=>(t=>hr("document",t))(t)||(t=>hr("comment",t))(t))):[]},enumerable:!0});const Tr=Ir;const Mr=F(0);const Cr=class extends x{static type="parseResult";get rootNode(){return Mr(this.children)}};const Fr="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),r=1,n=arguments.length;r<n;){var s=arguments[r];if(null!=s)for(var i in s)pt(i,s)&&(e[i]=s[i]);r+=1}return e};const Rr=N((function(t,e){return Fr({},t,e)}));const qr=class extends x{static type="directive";name;parameters;constructor({name:t,parameters:e,...r}){super({...r}),this.name=t,this.parameters=Rr({version:void 0,handle:void 0,prefix:void 0},e)}};const Lr=class extends x{static type="document"};const Vr=class extends pr{};class Dr extends Vr{static type="mapping"}Object.defineProperty(Dr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(yr):[]},enumerable:!0});const zr=Dr;class Ur extends x{static type="keyValuePair";styleGroup;constructor({styleGroup:t,...e}){super({...e}),this.styleGroup=t}}Object.defineProperties(Ur.prototype,{key:{get(){return this.children.filter((t=>gr(t)||dr(t)||mr(t)))[0]},enumerable:!0},value:{get(){const{key:t,children:e}=this;return e.filter((e=>(e=>e!==t)(e)&&(t=>gr(t)||dr(t)||mr(t)||vr(t))(e)))[0]},enumerable:!0}});const Gr=Ur;class Br extends Vr{static type="sequence"}Object.defineProperty(Br.prototype,"content",{get(){const{children:t}=this;return Array.isArray(t)?t.filter((t=>mr(t)||dr(t)||gr(t)||vr(t))):[]},enumerable:!0});const $r=Br;const Kr=class extends x{static type="comment";content;constructor({content:t,...e}){super({...e}),this.content=t}};const Wr=class extends x{static type="alias";content;constructor({content:t,...e}){super({...e}),this.content=t}};const Zr=class extends x{static type="literal";value;constructor({value:t,...e}={}){super({...e}),this.value=t}};const Yr=class extends x{static type="error";value;isUnexpected;constructor({value:t,isUnexpected:e=!1,...r}={}){super({...r}),this.value=t,this.isUnexpected=e}};const Hr=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;constructor(t){this.type=t.nodeType,this.startPosition=t.startPosition,this.endPosition=t.endPosition,this.startIndex=t.startIndex,this.endIndex=t.endIndex,this.text=t.nodeText,this.isNamed=t.nodeIsNamed,this.isMissing=t.nodeIsMissing}get keyNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((t=>"key"===t.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((t=>"value"===t.fieldName))}get tag(){let{previousSibling:t}=this;for(;void 0!==t&&"tag"!==t.type;)({previousSibling:t}=t);return t}get anchor(){let{previousSibling:t}=this;for(;void 0!==t&&"anchor"!==t.type;)({previousSibling:t}=t);return t}get firstNamedChild(){return this.children.find((t=>t.isNamed))}setFieldName(t){return"function"==typeof t.currentFieldName?this.fieldName=t.currentFieldName():this.fieldName=t.currentFieldName,this}setHasError(t){return"function"==typeof t.currentNode?this.hasError=t.currentNode().hasError():this.hasError=t.currentNode.hasError(),this}setPreviousSibling(t){this.previousSibling=t}pushChildren(...t){this.children.push(...t)}},Qr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Xr=t=>Array.isArray(t)||Sr(t);class Jr{static isScalar=this.isKind("scalar");static isMapping=this.isKind("mapping");static isSequence=this.isKind("sequence");static isKind(t){return e=>null!=e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.endsWith(t)}static toPosition(t){const e=new kr({row:t.startPosition.row,column:t.startPosition.column,char:t.startIndex}),r=new kr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex});return new Pr({start:e,end:r})}static kindNodeToYamlAnchor(t){const{anchor:e}=t;if(void 0!==e)return new Nr({name:e.text,position:Jr.toPosition(e)})}static hasKeyValuePairEmptyKey(t){return("block_mapping_pair"===t.type||"flow_pair"===t.type)&&void 0===t.keyNode}static hasKeyValuePairEmptyValue(t){return("block_mapping_pair"===t.type||"flow_pair"===t.type)&&void 0===t.valueNode}static kindNodeToYamlTag(t){const{tag:e}=t,r=e?.text||("plain_scalar"===t.type?"?":"!"),n=t.type.endsWith("mapping")?S.Mapping:t.type.endsWith("sequence")?S.Sequence:S.Scalar,s=e?Jr.toPosition(e):void 0;return new A({explicitName:r,kind:n,position:s})}schema;referenceManager;stream={enter:t=>{const e=Jr.toPosition(t);return new Tr({children:t.children,position:e,isMissing:t.isMissing})},leave:t=>new Cr({children:[t]})};yaml_directive={enter:t=>{const e=Jr.toPosition(t),r=t?.firstNamedChild?.text;return new qr({position:e,name:"%YAML",parameters:{version:r}})}};tag_directive={enter:t=>{const e=Jr.toPosition(t),r=t.children[0],n=t.children[1],s=new qr({position:e,name:"%TAG",parameters:{handle:r?.text,prefix:n?.text}});return this.schema.registerTagDirective(s),s}};reserved_directive={enter:t=>{const e=Jr.toPosition(t),r=t.children[0],n=t.children[1],s=t.children[2];return new qr({position:e,name:r?.text,parameters:{handle:n?.text,prefix:s?.text}})}};document={enter:t=>{const e=Jr.toPosition(t);return new Lr({children:t.children,position:e,isMissing:t.isMissing})},leave:t=>{t.children=t.children.flat()}};block_node={enter:t=>t.children};flow_node={enter:t=>{const[e]=t.children.slice(-1);if(Jr.isScalar(e)||Jr.isMapping(e)||Jr.isSequence(e))return t.children;const r=new kr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),n=new fr({content:"",anchor:Jr.kindNodeToYamlAnchor(e),tag:Jr.kindNodeToYamlTag(e),position:new Pr({start:r,end:r}),styleGroup:nr.Flow,style:rr.Plain});return this.registerAnchor(n),[...t.children,n]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:t=>{const e=Jr.toPosition(t),r=Jr.kindNodeToYamlTag(t),n=Jr.kindNodeToYamlAnchor(t),s=new zr({children:t.children,position:e,anchor:n,tag:r,styleGroup:nr.Block,style:rr.NextLine,isMissing:t.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};block_mapping_pair={enter:t=>{const e=Jr.toPosition(t),r=[...t.children];if(Jr.hasKeyValuePairEmptyKey(t)){const e=this.createKeyValuePairEmptyKey(t);r.unshift(e)}if(Jr.hasKeyValuePairEmptyValue(t)){const e=this.createKeyValuePairEmptyValue(t);r.push(e)}return new Gr({children:r,position:e,styleGroup:nr.Block,isMissing:t.isMissing})}};flow_mapping={enter:t=>{const e=Jr.toPosition(t),r=Jr.kindNodeToYamlTag(t),n=Jr.kindNodeToYamlAnchor(t),s=new zr({children:t.children,position:e,anchor:n,tag:r,styleGroup:nr.Flow,style:rr.Explicit,isMissing:t.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};flow_pair={enter:t=>{const e=Jr.toPosition(t),r=[...t.children];if(Jr.hasKeyValuePairEmptyKey(t)){const e=this.createKeyValuePairEmptyKey(t);r.unshift(e)}if(Jr.hasKeyValuePairEmptyValue(t)){const e=this.createKeyValuePairEmptyValue(t);r.push(e)}return new Gr({children:r,position:e,styleGroup:nr.Flow,isMissing:t.isMissing})}};keyValuePair={leave:t=>{t.children=t.children.flat()}};block_sequence={enter:t=>{const e=Jr.toPosition(t),r=Jr.kindNodeToYamlTag(t),n=Jr.kindNodeToYamlAnchor(t),s=new $r({children:t.children,position:e,anchor:n,tag:r,styleGroup:nr.Block,style:rr.NextLine});return this.registerAnchor(s),this.schema.resolve(s)}};block_sequence_item={enter:t=>{if(t.children.length>1)return t.children;const e=new kr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex});return[new fr({content:"",tag:new A({explicitName:"?",kind:S.Scalar}),position:new Pr({start:e,end:e}),styleGroup:nr.Flow,style:rr.Plain})]}};flow_sequence={enter:t=>{const e=Jr.toPosition(t),r=Jr.kindNodeToYamlTag(t),n=Jr.kindNodeToYamlAnchor(t),s=new $r({children:t.children.flat(),position:e,anchor:n,tag:r,styleGroup:nr.Flow,style:rr.Explicit});return this.registerAnchor(s),this.schema.resolve(s)}};sequence={leave:t=>{t.children=t.children.flat(1/0)}};plain_scalar={enter:t=>{const e=Jr.toPosition(t),r=Jr.kindNodeToYamlTag(t),n=Jr.kindNodeToYamlAnchor(t),s=new fr({content:t.text,anchor:n,tag:r,position:e,styleGroup:nr.Flow,style:rr.Plain});return this.registerAnchor(s),this.schema.resolve(s)}};single_quote_scalar={enter:t=>{const e=Jr.toPosition(t),r=Jr.kindNodeToYamlTag(t),n=Jr.kindNodeToYamlAnchor(t),s=new fr({content:t.text,anchor:n,tag:r,position:e,styleGroup:nr.Flow,style:rr.SingleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};double_quote_scalar={enter:t=>{const e=Jr.toPosition(t),r=Jr.kindNodeToYamlTag(t),n=Jr.kindNodeToYamlAnchor(t),s=new fr({content:t.text,anchor:n,tag:r,position:e,styleGroup:nr.Flow,style:rr.DoubleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};block_scalar={enter:t=>{const e=Jr.toPosition(t),r=Jr.kindNodeToYamlTag(t),n=Jr.kindNodeToYamlAnchor(t),s=t.text.startsWith("|")?rr.Literal:t.text.startsWith(">")?rr.Folded:rr.Plain,i=new fr({content:t.text,anchor:n,tag:r,position:e,styleGroup:nr.Block,style:s});return this.registerAnchor(i),this.schema.resolve(i)}};comment={enter:t=>new Kr({content:t.text})};alias={enter:t=>{const e=new Wr({content:t.text});return this.referenceManager.resolveAlias(e)}};constructor(t){this.schema=t}enter(t){if(t instanceof Hr&&!t.isNamed){const e=Jr.toPosition(t),r=t.type||t.text,{isMissing:n}=t;return new Zr({value:r,position:e,isMissing:n})}}ERROR(t,e,r,n){const s=Jr.toPosition(t),i=new Yr({children:t.children,position:s,isUnexpected:!t.hasError,isMissing:t.isMissing,value:t.text});return 0===n.length?new Cr({children:[i]}):i}registerAnchor(t){void 0!==t.anchor&&this.referenceManager.addAnchor(t)}createKeyValuePairEmptyKey(t){const e=new kr({row:t.startPosition.row,column:t.startPosition.column,char:t.startIndex}),{keyNode:r}=t,n=r?.children||[],s=n.find(Jr.isKind("tag")),i=n.find(Jr.isKind("anchor")),o=new A(void 0!==s?{explicitName:s.text,kind:S.Scalar,position:Jr.toPosition(s)}:{explicitName:"?",kind:S.Scalar}),a=void 0!==i?new Nr({name:i.text,position:Jr.toPosition(i)}):void 0,c=new fr({content:"",position:new Pr({start:e,end:e}),tag:o,anchor:a,styleGroup:nr.Flow,style:rr.Plain});return this.registerAnchor(c),c}createKeyValuePairEmptyValue(t){const e=new kr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),{valueNode:r}=t,n=r?.children||[],s=n.find(Jr.isKind("tag")),i=n.find(Jr.isKind("anchor")),o=new A(void 0!==s?{explicitName:s.text,kind:S.Scalar,position:Jr.toPosition(s)}:{explicitName:"?",kind:S.Scalar}),a=void 0!==i?new Nr({name:i.text,position:Jr.toPosition(i)}):void 0,c=new fr({content:"",position:new Pr({start:e,end:e}),tag:o,anchor:a,styleGroup:nr.Flow,style:rr.Plain});return this.registerAnchor(c),c}}const tn=Jr;const en=z(1,it(d,ee("String")));var rn=r(8326);var nn=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=Tt,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var r;return this.f(e)||(this.all=!1,t=(r=this.xf["@@transducer/step"](t,!1))&&r["@@transducer/reduced"]?r:{"@@transducer/value":r,"@@transducer/reduced":!0}),t},t}();function sn(t){return function(e){return new nn(t,e)}}const on=N(Nt(["all"],sn,(function(t,e){for(var r=0;r<e.length;){if(!t(e[r]))return!1;r+=1}return!0})));class an extends rn.Om{constructor(t,e,r){super(t,e,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}const cn=an;class un extends rn.Om{constructor(t,e,r){super(t,e,r),this.element="comment"}}const ln=un;class pn extends rn.wE{constructor(t,e,r){super(t,e,r),this.element="parseResult"}get api(){return this.children.filter((t=>t.classes.contains("api"))).first}get results(){return this.children.filter((t=>t.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((t=>"annotation"===t.element))}get warnings(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("warning")))}get errors(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("error")))}get isEmpty(){return this.children.reject((t=>"annotation"===t.element)).isEmpty}replaceResult(t){const{result:e}=this;if(Ie(e))return!1;const r=this.content.findIndex((t=>t===e));return-1!==r&&(this.content[r]=t,!0)}}const fn=pn;class _n extends rn.wE{constructor(t,e,r){super(t,e,r),this.element="sourceMap"}get positionStart(){return this.children.filter((t=>t.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((t=>t.classes.contains("position"))).get(1)}set position(t){if(void 0===t)return;const e=new rn.wE([t.start.row,t.start.column,t.start.char]),r=new rn.wE([t.end.row,t.end.column,t.end.char]);e.classes.push("position"),r.classes.push("position"),this.push(e).push(r)}}const hn=_n,dn=(t,e)=>"object"==typeof e&&null!==e&&t in e&&"function"==typeof e[t],mn=t=>"object"==typeof t&&null!=t&&"_storedElement"in t&&"string"==typeof t._storedElement&&"_content"in t,yn=(t,e)=>"object"==typeof e&&null!==e&&"primitive"in e&&("function"==typeof e.primitive&&e.primitive()===t),gn=(t,e)=>"object"==typeof e&&null!==e&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof rn.wE)&&e.classes.includes(t),vn=(t,e)=>"object"==typeof e&&null!==e&&"element"in e&&e.element===t,bn=t=>t({hasMethod:dn,hasBasicElementProps:mn,primitiveEq:yn,isElementType:vn,hasClass:gn}),wn=bn((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof rn.Hg||t(r)&&e(void 0,r))),En=bn((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof rn.Om||t(r)&&e("string",r))),xn=bn((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof rn.kT||t(r)&&e("number",r))),Sn=bn((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof rn.Os||t(r)&&e("null",r))),An=bn((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof rn.bd||t(r)&&e("boolean",r))),jn=bn((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof rn.Sh||t(n)&&e("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),kn=bn((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof rn.wE&&!(n instanceof rn.Sh)||t(n)&&e("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),On=bn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof rn.Pr||t(n)&&e("member",n)&&r(void 0,n))),Pn=bn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof rn.Ft||t(n)&&e("link",n)&&r(void 0,n))),Nn=bn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof rn.sI||t(n)&&e("ref",n)&&r(void 0,n))),In=bn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof cn||t(n)&&e("annotation",n)&&r("array",n))),Tn=bn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ln||t(n)&&e("comment",n)&&r("string",n))),Mn=bn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof fn||t(n)&&e("parseResult",n)&&r("array",n))),Cn=bn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof hn||t(n)&&e("sourceMap",n)&&r("array",n))),Fn=t=>vn("object",t)||vn("array",t)||vn("boolean",t)||vn("number",t)||vn("string",t)||vn("null",t)||vn("member",t),Rn=t=>Cn(t.meta.get("sourceMap")),qn=(t,e)=>{if(0===t.length)return!0;const r=e.attributes.get("symbols");return!!kn(r)&&on(Ue(r.toValue()),t)},Ln=(t,e)=>0===t.length||on(Ue(e.classes.toValue()),t);const Vn=class extends v{value;constructor(t,e){super(t,e),void 0!==e&&(this.value=e.value)}};const Dn=class extends Vn{};const zn=class extends Vn{},Un=(t,e={})=>{const{visited:r=new WeakMap}=e,n={...e,visited:r};if(r.has(t))return r.get(t);if(t instanceof rn.KeyValuePair){const{key:e,value:s}=t,i=wn(e)?Un(e,n):e,o=wn(s)?Un(s,n):s,a=new rn.KeyValuePair(i,o);return r.set(t,a),a}if(t instanceof rn.ot){const e=t=>Un(t,n),s=[...t].map(e),i=new rn.ot(s);return r.set(t,i),i}if(t instanceof rn.G6){const e=t=>Un(t,n),s=[...t].map(e),i=new rn.G6(s);return r.set(t,i),i}if(wn(t)){const e=$n(t);if(r.set(t,e),t.content)if(wn(t.content))e.content=Un(t.content,n);else if(t.content instanceof rn.KeyValuePair)e.content=Un(t.content,n);else if(Array.isArray(t.content)){const r=t=>Un(t,n);e.content=t.content.map(r)}else e.content=t.content;else e.content=t.content;return e}throw new Dn("Value provided to cloneDeep function couldn't be cloned",{value:t})};Un.safe=t=>{try{return Un(t)}catch{return t}};const Gn=t=>{const{key:e,value:r}=t;return new rn.KeyValuePair(e,r)},Bn=t=>{const e=new t.constructor;if(e.element=t.element,t.meta.length>0&&(e._meta=Un(t.meta)),t.attributes.length>0&&(e._attributes=Un(t.attributes)),wn(t.content)){const r=t.content;e.content=Bn(r)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof rn.KeyValuePair?e.content=Gn(t.content):e.content=t.content;return e},$n=t=>{if(t instanceof rn.KeyValuePair)return Gn(t);if(t instanceof rn.ot)return(t=>{const e=[...t];return new rn.ot(e)})(t);if(t instanceof rn.G6)return(t=>{const e=[...t];return new rn.G6(e)})(t);if(wn(t))return Bn(t);throw new zn("Value provided to cloneShallow function couldn't be cloned",{value:t})};$n.safe=t=>{try{return $n(t)}catch{return t}};const Kn=t=>jn(t)?"ObjectElement":kn(t)?"ArrayElement":On(t)?"MemberElement":En(t)?"StringElement":An(t)?"BooleanElement":xn(t)?"NumberElement":Sn(t)?"NullElement":Pn(t)?"LinkElement":Nn(t)?"RefElement":void 0,Wn=t=>wn(t)?$n(t):Ar(t),Zn=it(Kn,en),Yn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const Hn=(t,e,{keyMap:r=Yn,...n}={})=>jr(t,e,{keyMap:r,nodeTypeGetter:Kn,nodePredicate:Zn,nodeCloneFn:Wn,...n});Hn[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=Yn,...n}={})=>jr[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:r,nodeTypeGetter:Kn,nodePredicate:Zn,nodeCloneFn:Wn,...n});const Qn=I((function(t,e,r){var n,s={};for(n in r=r||{},e=e||{})pt(n,e)&&(s[n]=pt(n,r)?t(n,e[n],r[n]):e[n]);for(n in r)pt(n,r)&&!pt(n,s)&&(s[n]=r[n]);return s}));const Xn=I((function t(e,r,n){return Qn((function(r,n,s){return It(n)&&It(s)?t(e,n,s):e(r,n,s)}),r,n)}));const Jn=N((function(t,e){return Xn((function(t,e,r){return r}),t,e)}));const ts=I((function(t,e,r){return T(t,Qt(e,r))}));const es=nt(0,-1);const rs=N((function(t,e){return t.apply(this,e)}));const ns=Se(se);var ss=h((function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():B(t)?[]:C(t)?"":It(t)?{}:ht(t)?function(){return arguments}():function(t){var e=Object.prototype.toString.call(t);return"[object Uint8ClampedArray]"===e||"[object Int8Array]"===e||"[object Uint8Array]"===e||"[object Int16Array]"===e||"[object Uint16Array]"===e||"[object Int32Array]"===e||"[object Uint32Array]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object BigInt64Array]"===e||"[object BigUint64Array]"===e}(t)?t.constructor.from(""):void 0}));const is=ss;const os=h((function(t){return null!=t&&xt(t,is(t))}));const as=fe(z(1,se(Array.isArray)?Array.isArray:it(d,ee("Array"))),os);const cs=z(3,(function(t,e,r){var n=q(t,r),s=q(es(t),r);if(!ns(n)&&!as(t)){var i=Y(n,s);return rs(i,e)}}));const us=I((function(t,e,r){return t(q(e,r))}));const ls=xt(null);var ps=Se(ls);function fs(t){return fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fs(t)}const _s=z(1,fe(ps,(function(t){return"object"===fs(t)})));var hs=it(d,ee("Object")),ds=us(fe(se,it(Vt,xt(Vt(Object)))),["constructor"]);const ms=z(1,(function(t){if(!_s(t)||!hs(t))return!1;var e=Object.getPrototypeOf(t);return!!ls(e)||ds(e)}));class ys extends rn.g${constructor(){super(),this.register("annotation",cn),this.register("comment",ln),this.register("parseResult",fn),this.register("sourceMap",hn)}}const gs=new ys,vs=t=>{const e=new ys;return ms(t)&&e.use(t),e},bs=gs,ws=()=>({predicates:{...t},namespace:bs}),Es={toolboxCreator:ws,visitorOptions:{nodeTypeGetter:Kn,exposeEdits:!0}},xs=(t,e,r={})=>{if(0===e.length)return t;const n=Jn(Es,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=e.map((t=>t(o))),c=((t,{visitFnGetter:e=wr,nodeTypeGetter:r=xr,breakSymbol:n=Er,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(t.length).fill(a);return{enter(u,...l){let p=u,f=!1;for(let _=0;_<t.length;_+=1)if(c[_]===a){const a=e(t[_],r(p),!1);if("function"==typeof a){const e=a.call(t[_],p,...l);if(e===i)c[_]=u;else if(e===n)c[_]=n;else{if(e===s)return e;if(void 0!==e){if(!o)return e;p=e,f=!0}}}}return f?p:void 0},leave(s,...o){for(let u=0;u<t.length;u+=1)if(c[u]===a){const a=e(t[u],r(s),!0);if("function"==typeof a){const e=a.call(t[u],s,...o);if(e===n)c[u]=n;else if(void 0!==e&&e!==i)return e}}else c[u]===s&&(c[u]=a)}}})(a.map(ts({},"visitor")),{...i});a.forEach(cs(["pre"],[]));const u=Hn(t,c,i);return a.forEach(cs(["post"],[])),u},Ss=(t,{Type:e,plugins:r=[]})=>{const n=new e(t);return wn(t)&&(t.meta.length>0&&(n.meta=Un(t.meta)),t.attributes.length>0&&(n.attributes=Un(t.attributes))),xs(n,r,{toolboxCreator:ws,visitorOptions:{nodeTypeGetter:Kn}})},As=t=>(e,r={})=>Ss(e,{...r,Type:t});rn.Sh.refract=As(rn.Sh),rn.wE.refract=As(rn.wE),rn.Om.refract=As(rn.Om),rn.bd.refract=As(rn.bd),rn.Os.refract=As(rn.Os),rn.kT.refract=As(rn.kT),rn.Ft.refract=As(rn.Ft),rn.sI.refract=As(rn.sI),cn.refract=As(cn),ln.refract=As(ln),fn.refract=As(fn),hn.refract=As(hn);const js={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...Yn},ks=t=>wn(t)?Kn(t):xr(t),Os=t=>wn(t)||Sr(t)||Array.isArray(t);const Ps=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:t=>{const e=new fn;e._content=t.children.flat(1);const r=e.findElements(Fn);if(r.length>0){r[0].classes.push("result")}return this.annotations.forEach((t=>{e.push(t)})),this.annotations=[],e}};constructor(){this.annotations=[],this.namespace=vs()}comment(t){if(0===this.processedDocumentCount){const e=new ln(t.content);return this.maybeAddSourceMap(t,e),e}return null}document(t){const e=1===this.processedDocumentCount,r=this.processedDocumentCount>=1;if(e){const e=new cn("Only first document within YAML stream will be used. Rest will be discarded.");e.classes.push("warning"),this.maybeAddSourceMap(t,e),this.annotations.push(e)}return r?null:(this.processedDocumentCount+=1,t.children)}mapping(t){const e=new rn.Sh;return e._content=t.children,this.maybeAddSourceMap(t,e),e}keyValuePair(t){const e=new rn.Pr;return e.content.key=t.key,e.content.value=t.value,this.maybeAddSourceMap(t,e),t.children.filter((t=>"error"===t.type)).forEach((e=>{this.error(e,t,[],[t])})),e}sequence(t){const e=new rn.wE;return e._content=t.children,this.maybeAddSourceMap(t,e),e}scalar(t){const e=this.namespace.toElement(t.content);return""===t.content&&t.style===rr.Plain&&(e.classes.push("yaml-e-node"),e.classes.push("yaml-e-scalar")),this.maybeAddSourceMap(t,e),e}literal(t){if(t.isMissing){const e=`(Missing ${t.value})`,r=new cn(e);r.classes.push("warning"),this.maybeAddSourceMap(t,r),this.annotations.push(r)}return null}error(t,e,r,n){const s=t.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new cn(s);if(i.classes.push("error"),this.maybeAddSourceMap(t,i),0===n.length){const t=new fn;return t.push(i),t}return this.annotations.push(i),null}maybeAddSourceMap(t,e){if(!this.sourceMap)return;const r=new hn;r.position=t.position,r.astNode=t,e.meta.set("sourceMap",r)}};class Ns{cursor;constructor(t){this.cursor=t}stream(){return new Hr(this.cursor)}yaml_directive(){return new Hr(this.cursor)}tag_directive(){return new Hr(this.cursor)}reserved_directive(){return new Hr(this.cursor)}document(){return new Hr(this.cursor)}block_node(){return new Hr(this.cursor).setFieldName(this.cursor)}flow_node(){return new Hr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Hr(this.cursor)}block_mapping_pair(){return new Hr(this.cursor)}flow_mapping(){return new Hr(this.cursor)}flow_pair(){return new Hr(this.cursor)}block_sequence(){return new Hr(this.cursor)}block_sequence_item(){return new Hr(this.cursor)}flow_sequence(){return new Hr(this.cursor)}plain_scalar(){return new Hr(this.cursor)}single_quote_scalar(){return new Hr(this.cursor)}double_quote_scalar(){return new Hr(this.cursor)}block_scalar(){return new Hr(this.cursor)}ERROR(){return new Hr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let t;if(t=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Hr(this.cursor),this.cursor.gotoFirstChild()){const[e]=new Ns(this.cursor);for(t.pushChildren(e);this.cursor.gotoNextSibling();){const e=Array.from(new Ns(this.cursor));t.pushChildren(...e)}t.children.reduce(((t,e)=>(e.setPreviousSibling(t),e)),void 0),this.cursor.gotoParent()}yield t}}const Is=Ns,Ts=(t,{sourceMap:e=!1}={})=>{const r=t.walk(),n=new Is(r),[s]=Array.from(n),i=new tn,o=new Ps,a=new lr,c=new br,u=jr(s,i,{keyMap:Qr,nodePredicate:Xr,state:{schema:a,sourceMap:e,referenceManager:c}});return jr(u.rootNode,o,{keyMap:js,nodeTypeGetter:ks,nodePredicate:Os,state:{sourceMap:e}})},Ms=vs();const Cs=class extends c{};const Fs=class extends Cs{};const Rs=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Fs("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Fs("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Fs("latest method in MediaTypes class is not yet implemented.")}};const qs=new class extends Rs{latest(){return this[1]}}("text/yaml","application/yaml"),Ls=async t=>{try{return"ERROR"!==(await f(t)).rootNode.type}catch{return!1}},Vs=async(t,{sourceMap:e=!1}={})=>{const r=await f(t);return Ts(r,{sourceMap:e})}})(),n})()));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apidomParserAdapterYaml1_2=e():t.apidomParserAdapterYaml1_2=e()}(self,(()=>(()=>{var t={3103:(t,e,r)=>{var n=r(4715)(r(8942),"DataView");t.exports=n},5098:(t,e,r)=>{var n=r(3305),s=r(9361),i=r(1112),o=r(5276),a=r(5071);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];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,t.exports=c},1386:(t,e,r)=>{var n=r(2393),s=r(2049),i=r(7144),o=r(7452),a=r(3964);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];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,t.exports=c},9770:(t,e,r)=>{var n=r(4715)(r(8942),"Map");t.exports=n},8250:(t,e,r)=>{var n=r(9753),s=r(5681),i=r(88),o=r(4732),a=r(9068);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];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,t.exports=c},9413:(t,e,r)=>{var n=r(4715)(r(8942),"Promise");t.exports=n},4512:(t,e,r)=>{var n=r(4715)(r(8942),"Set");t.exports=n},3212:(t,e,r)=>{var n=r(8250),s=r(1877),i=r(8006);function o(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,t.exports=o},1340:(t,e,r)=>{var n=r(1386),s=r(4103),i=r(1779),o=r(4162),a=r(7462),c=r(6638);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,t.exports=u},5650:(t,e,r)=>{var n=r(8942).Symbol;t.exports=n},1623:(t,e,r)=>{var n=r(8942).Uint8Array;t.exports=n},9270:(t,e,r)=>{var n=r(4715)(r(8942),"WeakMap");t.exports=n},9847:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,s=0,i=[];++r<n;){var o=t[r];e(o,r,t)&&(i[s++]=o)}return i}},358:(t,e,r)=>{var n=r(6137),s=r(3283),i=r(3142),o=r(5853),a=r(9632),c=r(8666),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&s(t),p=!r&&!l&&o(t),f=!r&&!l&&!p&&c(t),_=r||l||p||f,h=_?n(t.length,String):[],d=h.length;for(var m in t)!e&&!u.call(t,m)||_&&("length"==m||p&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,d))||h.push(m);return h}},1129:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,s=t.length;++r<n;)t[s+r]=e[r];return t}},6465:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},7034:(t,e,r)=>{var n=r(6285);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},8244:(t,e,r)=>{var n=r(1129),s=r(3142);t.exports=function(t,e,r){var i=e(t);return s(t)?i:n(i,r(t))}},7379:(t,e,r)=>{var n=r(5650),s=r(8870),i=r(9005),o=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?s(t):i(t)}},6027:(t,e,r)=>{var n=r(7379),s=r(547);t.exports=function(t){return s(t)&&"[object Arguments]"==n(t)}},4687:(t,e,r)=>{var n=r(353),s=r(547);t.exports=function t(e,r,i,o,a){return e===r||(null==e||null==r||!s(e)&&!s(r)?e!=e&&r!=r:n(e,r,i,o,t,a))}},353:(t,e,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]",_="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,d,m,y){var g=c(t),v=c(e),b=g?f:a(t),w=v?f:a(e),E=(b=b==p?_:b)==_,x=(w=w==p?_:w)==_,S=b==w;if(S&&u(t)){if(!u(e))return!1;g=!0,E=!1}if(S&&!E)return y||(y=new n),g||l(t)?s(t,e,r,d,m,y):i(t,e,b,r,d,m,y);if(!(1&r)){var A=E&&h.call(t,"__wrapped__"),j=x&&h.call(e,"__wrapped__");if(A||j){var k=A?t.value():t,P=j?e.value():e;return y||(y=new n),m(k,P,r,d,y)}}return!!S&&(y||(y=new n),o(t,e,r,d,m,y))}},9624:(t,e,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.*?")+"$");t.exports=function(t){return!(!i(t)||s(t))&&(n(t)?f:a).test(o(t))}},674:(t,e,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,t.exports=function(t){return i(t)&&s(t.length)&&!!o[n(t)]}},195:(t,e,r)=>{var n=r(4882),s=r(8121),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return s(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},6137:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},9460:t=>{t.exports=function(t){return function(e){return t(e)}}},5568:t=>{t.exports=function(t,e){return t.has(e)}},1950:(t,e,r)=>{var n=r(8942)["__core-js_shared__"];t.exports=n},3934:(t,e,r)=>{var n=r(3212),s=r(6465),i=r(5568);t.exports=function(t,e,r,o,a,c){var u=1&r,l=t.length,p=e.length;if(l!=p&&!(u&&p>l))return!1;var f=c.get(t),_=c.get(e);if(f&&_)return f==e&&_==t;var h=-1,d=!0,m=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++h<l;){var y=t[h],g=e[h];if(o)var v=u?o(g,y,h,e,t,c):o(y,g,h,t,e,c);if(void 0!==v){if(v)continue;d=!1;break}if(m){if(!s(e,(function(t,e){if(!i(m,e)&&(y===t||a(y,t,r,o,c)))return m.push(e)}))){d=!1;break}}else if(y!==g&&!a(y,g,r,o,c)){d=!1;break}}return c.delete(t),c.delete(e),d}},8861:(t,e,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;t.exports=function(t,e,r,n,u,p,f){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new s(t),new s(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var _=a;case"[object Set]":var h=1&n;if(_||(_=c),t.size!=e.size&&!h)return!1;var d=f.get(t);if(d)return d==e;n|=2,f.set(t,e);var m=o(_(t),_(e),n,u,p,f);return f.delete(t),m;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},1182:(t,e,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,o,a){var c=1&r,u=n(t),l=u.length;if(l!=n(e).length&&!c)return!1;for(var p=l;p--;){var f=u[p];if(!(c?f in e:s.call(e,f)))return!1}var _=a.get(t),h=a.get(e);if(_&&h)return _==e&&h==t;var d=!0;a.set(t,e),a.set(e,t);for(var m=c;++p<l;){var y=t[f=u[p]],g=e[f];if(i)var v=c?i(g,y,f,e,t,a):i(y,g,f,t,e,a);if(!(void 0===v?y===g||o(y,g,r,i,a):v)){d=!1;break}m||(m="constructor"==f)}if(d&&!m){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(d=!1)}return a.delete(t),a.delete(e),d}},4967:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},393:(t,e,r)=>{var n=r(8244),s=r(7979),i=r(1211);t.exports=function(t){return n(t,i,s)}},4700:(t,e,r)=>{var n=r(9067);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},4715:(t,e,r)=>{var n=r(9624),s=r(155);t.exports=function(t,e){var r=s(t,e);return n(r)?r:void 0}},8870:(t,e,r)=>{var n=r(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var s=o.call(t);return n&&(e?t[a]=r:delete t[a]),s}},7979:(t,e,r)=>{var n=r(9847),s=r(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(t){return null==t?[]:(t=Object(t),n(o(t),(function(e){return i.call(t,e)})))}:s;t.exports=a},8486:(t,e,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]",_="[object WeakMap]",h="[object DataView]",d=u(n),m=u(s),y=u(i),g=u(o),v=u(a),b=c;(n&&b(new n(new ArrayBuffer(1)))!=h||s&&b(new s)!=l||i&&b(i.resolve())!=p||o&&b(new o)!=f||a&&b(new a)!=_)&&(b=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case d:return h;case m:return l;case y:return p;case g:return f;case v:return _}return e}),t.exports=b},155:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},3305:(t,e,r)=>{var n=r(4497);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},9361:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},1112:(t,e,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(e,t)?e[t]:void 0}},5276:(t,e,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:s.call(e,t)}},5071:(t,e,r)=>{var n=r(4497);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},9632:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},9067:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},4759:(t,e,r)=>{var n,s=r(1950),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},4882:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},2393:t=>{t.exports=function(){this.__data__=[],this.size=0}},2049:(t,e,r)=>{var n=r(7034),s=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():s.call(e,r,1),--this.size,!0)}},7144:(t,e,r)=>{var n=r(7034);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7452:(t,e,r)=>{var n=r(7034);t.exports=function(t){return n(this.__data__,t)>-1}},3964:(t,e,r)=>{var n=r(7034);t.exports=function(t,e){var r=this.__data__,s=n(r,t);return s<0?(++this.size,r.push([t,e])):r[s][1]=e,this}},9753:(t,e,r)=>{var n=r(5098),s=r(1386),i=r(9770);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},5681:(t,e,r)=>{var n=r(4700);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},88:(t,e,r)=>{var n=r(4700);t.exports=function(t){return n(this,t).get(t)}},4732:(t,e,r)=>{var n=r(4700);t.exports=function(t){return n(this,t).has(t)}},9068:(t,e,r)=>{var n=r(4700);t.exports=function(t,e){var r=n(this,t),s=r.size;return r.set(t,e),this.size+=r.size==s?0:1,this}},5894:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},4497:(t,e,r)=>{var n=r(4715)(Object,"create");t.exports=n},8121:(t,e,r)=>{var n=r(3766)(Object.keys,Object);t.exports=n},2306:(t,e,r)=>{t=r.nmd(t);var n=r(4967),s=e&&!e.nodeType&&e,i=s&&t&&!t.nodeType&&t,o=i&&i.exports===s&&n.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a},9005:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3766:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},8942:(t,e,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();t.exports=i},1877:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},8006:t=>{t.exports=function(t){return this.__data__.has(t)}},7447:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},4103:(t,e,r)=>{var n=r(1386);t.exports=function(){this.__data__=new n,this.size=0}},1779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},4162:t=>{t.exports=function(t){return this.__data__.get(t)}},7462:t=>{t.exports=function(t){return this.__data__.has(t)}},6638:(t,e,r)=>{var n=r(1386),s=r(9770),i=r(8250);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(t,e),this.size=r.size,this}},4066:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},6285:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},3283:(t,e,r)=>{var n=r(6027),s=r(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return s(t)&&o.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},3142:t=>{var e=Array.isArray;t.exports=e},6529:(t,e,r)=>{var n=r(3655),s=r(5387);t.exports=function(t){return null!=t&&s(t.length)&&!n(t)}},2563:(t,e,r)=>{var n=r(7379),s=r(547);t.exports=function(t){return!0===t||!1===t||s(t)&&"[object Boolean]"==n(t)}},5853:(t,e,r)=>{t=r.nmd(t);var n=r(8942),s=r(4772),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;t.exports=c},6343:(t,e,r)=>{var n=r(4687);t.exports=function(t,e){return n(t,e)}},3655:(t,e,r)=>{var n=r(7379),s=r(1580);t.exports=function(t){if(!s(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},5387:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},9310:t=>{t.exports=function(t){return null===t}},986:(t,e,r)=>{var n=r(7379),s=r(547);t.exports=function(t){return"number"==typeof t||s(t)&&"[object Number]"==n(t)}},1580:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},547:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},8138:(t,e,r)=>{var n=r(7379),s=r(3142),i=r(547);t.exports=function(t){return"string"==typeof t||!s(t)&&i(t)&&"[object String]"==n(t)}},8666:(t,e,r)=>{var n=r(674),s=r(9460),i=r(2306),o=i&&i.isTypedArray,a=o?s(o):n;t.exports=a},1211:(t,e,r)=>{var n=r(358),s=r(195),i=r(6529);t.exports=function(t){return i(t)?n(t):s(t)}},1517:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},9306:t=>{t.exports=function(){return[]}},4772:t=>{t.exports=function(){return!1}},4123:(t,e,r)=>{const n=r(1517);function s(t){return"string"==typeof t?e=>e.element===t:t.constructor&&t.extend?e=>e instanceof t:t}class i{constructor(t){this.elements=t||[]}toValue(){return this.elements.map((t=>t.toValue()))}map(t,e){return this.elements.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const s=t.bind(e)(n);s&&r.push(s)})),r}filter(t,e){return t=s(t),new i(this.elements.filter(t,e))}reject(t,e){return t=s(t),new i(this.elements.filter(n(t),e))}find(t,e){return t=s(t),this.elements.find(t,e)}forEach(t,e){this.elements.forEach(t,e)}reduce(t,e){return this.elements.reduce(t,e)}includes(t){return this.elements.some((e=>e.equals(t)))}shift(){return this.elements.shift()}unshift(t){this.elements.unshift(this.refract(t))}push(t){return this.elements.push(this.refract(t)),this}add(t){this.push(t)}get(t){return this.elements[t]}getValue(t){const e=this.elements[t];if(e)return e.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]()}),t.exports=i},2322:t=>{class e{constructor(t,e){this.key=t,this.value=e}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}t.exports=e},5735:(t,e,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(t){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,t&&t.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(t){return t.namespace&&t.namespace({base:this}),t.load&&t.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(t,e){return this._elements=void 0,this.elementMap[t]=e,this}unregister(t){return this._elements=void 0,delete this.elementMap[t],this}detect(t,e,r){return void 0===r||r?this.elementDetection.unshift([t,e]):this.elementDetection.push([t,e]),this}toElement(t){if(t instanceof this.Element)return t;let e;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(t)){e=new s(t);break}}return e}getElementClass(t){const e=this.elementMap[t];return void 0===e?this.Element:e}fromRefract(t){return this.serialiser.deserialise(t)}toRefract(t){return this.serialiser.serialise(t)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((t=>{const e=t[0].toUpperCase()+t.substr(1);this._elements[e]=this.elementMap[t]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,t.exports=l},3311:(t,e,r)=>{const n=r(1517),s=r(4123);class i extends s{map(t,e){return this.elements.map((r=>t.bind(e)(r.value,r.key,r)))}filter(t,e){return new i(this.elements.filter((r=>t.bind(e)(r.value,r.key,r))))}reject(t,e){return this.filter(n(t.bind(e)))}forEach(t,e){return this.elements.forEach(((r,n)=>{t.bind(e)(r.value,r.key,r,n)}))}keys(){return this.map(((t,e)=>e.toValue()))}values(){return this.map((t=>t.toValue()))}}t.exports=i},7547:(t,e,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),_=r(4123),h=r(3311),d=r(2322);function m(t){if(t instanceof n)return t;if("string"==typeof t)return new i(t);if("number"==typeof t)return new o(t);if("boolean"==typeof t)return new a(t);if(null===t)return new s;if(Array.isArray(t))return new c(t.map(m));if("object"==typeof t){return new l(t)}return t}n.prototype.ObjectElement=l,n.prototype.RefElement=f,n.prototype.MemberElement=u,n.prototype.refract=m,_.prototype.refract=m,t.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:f,refract:m,ArraySlice:_,ObjectSlice:h,KeyValuePair:d}},9620:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(t){this.attributes.set("relation",t)}get href(){return this.attributes.get("href")}set href(t){this.attributes.set("href",t)}}},593:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(t){this.attributes.set("path",t)}}},8326:(t,e,r)=>{const n=r(5735),s=r(7547);e.g$=n,e.KeyValuePair=r(2322),e.G6=s.ArraySlice,e.ot=s.ObjectSlice,e.Hg=s.Element,e.Om=s.StringElement,e.kT=s.NumberElement,e.bd=s.BooleanElement,e.Os=s.NullElement,e.wE=s.ArrayElement,e.Sh=s.ObjectElement,e.Pr=s.MemberElement,e.sI=s.RefElement,e.Ft=s.LinkElement,s.refract,r(394),r(3148)},9796:(t,e,r)=>{const n=r(1517),s=r(8631),i=r(4123);class o extends s{constructor(t,e,r){super(t||[],e,r),this.element="array"}primitive(){return"array"}get(t){return this.content[t]}getValue(t){const e=this.get(t);if(e)return e.toValue()}getIndex(t){return this.content[t]}set(t,e){return this.content[t]=this.refract(e),this}remove(t){const e=this.content.splice(t,1);return e.length?e[0]:null}map(t,e){return this.content.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const s=t.bind(e)(n);s&&r.push(s)})),r}filter(t,e){return new i(this.content.filter(t,e))}reject(t,e){return this.filter(n(t),e)}reduce(t,e){let r,n;void 0!==e?(r=0,n=this.refract(e)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let e=r;e<this.length;e+=1){const r=this.content[e];n="object"===this.primitive()?this.refract(t(n,r.value,r.key,r,this)):this.refract(t(n,r,e,this))}return n}forEach(t,e){this.content.forEach(((r,n)=>{t.bind(e)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(t){this.content.unshift(this.refract(t))}push(t){return this.content.push(this.refract(t)),this}add(t){this.push(t)}findElements(t,e){const r=e||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((e,r,i)=>{n&&void 0!==e.findElements&&e.findElements(t,{results:s,recursive:n}),t(e,r,i)&&s.push(e)})),s}find(t){return new i(this.findElements(t,{recursive:!0}))}findByElement(t){return this.find((e=>e.element===t))}findByClass(t){return this.find((e=>e.classes.includes(t)))}getById(t){return this.find((e=>e.id.toValue()===t)).first}includes(t){return this.content.some((e=>e.equals(t)))}contains(t){return this.includes(t)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(t){return new this.constructor(this.content.concat(t.content))}"fantasy-land/concat"(t){return this.concat(t)}"fantasy-land/map"(t){return new this.constructor(this.map(t))}"fantasy-land/chain"(t){return this.map((e=>t(e)),this).reduce(((t,e)=>t.concat(e)),this.empty())}"fantasy-land/filter"(t){return new this.constructor(this.content.filter(t))}"fantasy-land/reduce"(t,e){return this.content.reduce(t,e)}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]()}),t.exports=o},2555:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="boolean"}primitive(){return"boolean"}}},8631:(t,e,r)=>{const n=r(6343),s=r(2322),i=r(4123);class o{constructor(t,e,r){e&&(this.meta=e),r&&(this.attributes=r),this.content=t}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((t=>{t.parent=this,t.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const t=new this.constructor;return t.element=this.element,this.meta.length&&(t._meta=this.meta.clone()),this.attributes.length&&(t._attributes=this.attributes.clone()),this.content?this.content.clone?t.content=this.content.clone():Array.isArray(this.content)?t.content=this.content.map((t=>t.clone())):t.content=this.content:t.content=this.content,t}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((t=>t.toValue()),this):this.content}toRef(t){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const e=new this.RefElement(this.id.toValue());return t&&(e.path=t),e}findRecursive(...t){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 e=t.pop();let r=new i;const n=(t,e)=>(t.push(e),t),o=(t,r)=>{r.element===e&&t.push(r);const i=r.findRecursive(e);return i&&i.reduce(n,t),r.content instanceof s&&(r.content.key&&o(t,r.content.key),r.content.value&&o(t,r.content.value)),t};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),t.isEmpty||(r=r.filter((e=>{let r=e.parents.map((t=>t.element));for(const e in t){const n=t[e],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(t){return this.content=t,this}equals(t){return n(this.toValue(),t)}getMetaProperty(t,e){if(!this.meta.hasKey(t)){if(this.isFrozen){const t=this.refract(e);return t.freeze(),t}this.meta.set(t,e)}return this.meta.get(t)}setMetaProperty(t,e){this.meta.set(t,e)}get element(){return this._storedElement||"element"}set element(t){this._storedElement=t}get content(){return this._content}set content(t){if(t instanceof o)this._content=t;else if(t instanceof i)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof s)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._meta=new this.ObjectElement}return this._meta}set meta(t){t instanceof this.ObjectElement?this._meta=t:this.meta.set(t||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._attributes=new this.ObjectElement}return this._attributes}set attributes(t){t instanceof this.ObjectElement?this._attributes=t:this.attributes.set(t||{})}get id(){return this.getMetaProperty("id","")}set id(t){this.setMetaProperty("id",t)}get classes(){return this.getMetaProperty("classes",[])}set classes(t){this.setMetaProperty("classes",t)}get title(){return this.getMetaProperty("title","")}set title(t){this.setMetaProperty("title",t)}get description(){return this.getMetaProperty("description","")}set description(t){this.setMetaProperty("description",t)}get links(){return this.getMetaProperty("links",[])}set links(t){this.setMetaProperty("links",t)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:t}=this;const e=new i;for(;t;)e.push(t),t=t.parent;return e}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const t=new i([this.content.key]);return this.content.value&&t.push(this.content.value),t}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const t=new i;return this.children.forEach((e=>{t.push(e),e.recursiveChildren.forEach((e=>{t.push(e)}))})),t}}t.exports=o},7309:(t,e,r)=>{const n=r(2322),s=r(8631);t.exports=class extends s{constructor(t,e,r,s){super(new n,r,s),this.element="member",this.key=t,this.value=e}get key(){return this.content.key}set key(t){this.content.key=this.refract(t)}get value(){return this.content.value}set value(t){this.content.value=this.refract(t)}}},3004:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t||null,e,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="number"}primitive(){return"number"}}},5642:(t,e,r)=>{const n=r(1517),s=r(1580),i=r(9796),o=r(7309),a=r(3311);t.exports=class extends i{constructor(t,e,r){super(t||[],e,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((t,e)=>(t[e.key.toValue()]=e.value?e.value.toValue():void 0,t)),{})}get(t){const e=this.getMember(t);if(e)return e.value}getMember(t){if(void 0!==t)return this.content.find((e=>e.key.toValue()===t))}remove(t){let e=null;return this.content=this.content.filter((r=>r.key.toValue()!==t||(e=r,!1))),e}getKey(t){const e=this.getMember(t);if(e)return e.key}set(t,e){if(s(t))return Object.keys(t).forEach((e=>{this.set(e,t[e])})),this;const r=t,n=this.getMember(r);return n?n.value=e:this.content.push(new o(r,e)),this}keys(){return this.content.map((t=>t.key.toValue()))}values(){return this.content.map((t=>t.value.toValue()))}hasKey(t){return this.content.some((e=>e.key.equals(t)))}items(){return this.content.map((t=>[t.key.toValue(),t.value.toValue()]))}map(t,e){return this.content.map((r=>t.bind(e)(r.value,r.key,r)))}compactMap(t,e){const r=[];return this.forEach(((n,s,i)=>{const o=t.bind(e)(n,s,i);o&&r.push(o)})),r}filter(t,e){return new a(this.content).filter(t,e)}reject(t,e){return this.filter(n(t),e)}forEach(t,e){return this.content.forEach((r=>t.bind(e)(r.value,r.key,r)))}}},8712:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(t,e,r)=>{const n=r(394);t.exports=class extends n{serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);let e;t._attributes&&t.attributes.get("variable")&&(e=t.attributes.get("variable"));const r={element:t.element};t._meta&&t._meta.length>0&&(r.meta=this.serialiseObject(t.meta));const n="enum"===t.element||-1!==t.attributes.keys().indexOf("enumerations");if(n){const e=this.enumSerialiseAttributes(t);e&&(r.attributes=e)}else if(t._attributes&&t._attributes.length>0){let{attributes:n}=t;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===t.element&&e&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(t,r);else if(this[`${t.element}SerialiseContent`])r.content=this[`${t.element}SerialiseContent`](t,r);else if(void 0!==t.content){let n;e&&t.content.key?(n=t.content.clone(),n.key.attributes.set("variable",e),n=this.serialiseContent(n)):n=this.serialiseContent(t.content),this.shouldSerialiseContent(t,n)&&(r.content=n)}else this.shouldSerialiseContent(t,t.content)&&t instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(t,e){return"parseResult"===t.element||"httpRequest"===t.element||"httpResponse"===t.element||"category"===t.element||"link"===t.element||void 0!==e&&(!Array.isArray(e)||0!==e.length)}refSerialiseContent(t,e){return delete e.attributes,{href:t.toValue(),path:t.path.toValue()}}sourceMapSerialiseContent(t){return t.toValue()}dataStructureSerialiseContent(t){return[this.serialiseContent(t.content)]}enumSerialiseAttributes(t){const e=t.attributes.clone(),r=e.remove("enumerations")||new this.namespace.elements.Array([]),n=e.get("default");let s=e.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),e.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((t=>{t.content&&t.content.element&&t.content.attributes.remove("typeAttributes")})),t.content&&0!==r.length&&s.unshift(t.content),s=s.map((t=>t instanceof this.namespace.elements.Array?[t]:new this.namespace.elements.Array([t.content]))),s.length&&e.set("samples",s),e.length>0)return this.serialiseObject(e)}enumSerialiseContent(t){if(t._attributes){const e=t.attributes.get("enumerations");if(e&&e.length>0)return e.content.map((t=>{const e=t.clone();return e.attributes.remove("typeAttributes"),this.serialise(e)}))}if(t.content){const e=t.content.clone();return e.attributes.remove("typeAttributes"),[this.serialise(e)]}return[]}deserialise(t){if("string"==typeof t)return new this.namespace.elements.String(t);if("number"==typeof t)return new this.namespace.elements.Number(t);if("boolean"==typeof t)return new this.namespace.elements.Boolean(t);if(null===t)return new this.namespace.elements.Null;if(Array.isArray(t))return new this.namespace.elements.Array(t.map(this.deserialise,this));const e=this.namespace.getElementClass(t.element),r=new e;r.element!==t.element&&(r.element=t.element),t.meta&&this.deserialiseObject(t.meta,r.meta),t.attributes&&this.deserialiseObject(t.attributes,r.attributes);const n=this.deserialiseContent(t.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let t=r.attributes.get("samples");if(r.attributes.remove("samples"),t){const n=t;t=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new e(n);s.element=r.element,t.push(s)}))}));const s=t.shift();r.content=s?s.content:void 0,r.attributes.set("samples",t)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const t=new e(n);t.element=r.element,r.attributes.set("default",t)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const t=r.attributes.get("meta");t&&(r.attributes.set("metadata",t),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(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}return t&&t.map?t.map(this.serialise,this):t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}shouldRefract(t){return!!(t._attributes&&t.attributes.keys().length||t._meta&&t.meta.keys().length)||"enum"!==t.element&&(t.element!==t.primitive()||"member"===t.element)}convertKeyToRefract(t,e){return this.shouldRefract(e)?this.serialise(e):"enum"===e.element?this.serialiseEnum(e):"array"===e.element?e.map((e=>this.shouldRefract(e)||"default"===t?this.serialise(e):"array"===e.element||"object"===e.element||"enum"===e.element?e.children.map((t=>this.serialise(t))):e.toValue())):"object"===e.element?(e.content||[]).map(this.serialise,this):e.toValue()}serialiseEnum(t){return t.children.map((t=>this.serialise(t)))}serialiseObject(t){const e={};return t.forEach(((t,r)=>{if(t){const n=r.toValue();e[n]=this.convertKeyToRefract(n,t)}})),e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},394:t=>{t.exports=class{constructor(t){this.namespace=t||new this.Namespace}serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);const e={element:t.element};t._meta&&t._meta.length>0&&(e.meta=this.serialiseObject(t.meta)),t._attributes&&t._attributes.length>0&&(e.attributes=this.serialiseObject(t.attributes));const r=this.serialiseContent(t.content);return void 0!==r&&(e.content=r),e}deserialise(t){if(!t.element)throw new Error("Given value is not an object containing an element name");const e=new(this.namespace.getElementClass(t.element));e.element!==t.element&&(e.element=t.element),t.meta&&this.deserialiseObject(t.meta,e.meta),t.attributes&&this.deserialiseObject(t.attributes,e.attributes);const r=this.deserialiseContent(t.content);return void 0===r&&null!==e.content||(e.content=r),e}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}if(t&&t.map){if(0===t.length)return;return t.map(this.serialise,this)}return t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}serialiseObject(t){const e={};if(t.forEach(((t,r)=>{t&&(e[r.toValue()]=this.serialise(t))})),0!==Object.keys(e).length)return e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},8583:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0,function(t){t.MalformedUnicode="MALFORMED_UNICODE",t.MalformedHexadecimal="MALFORMED_HEXADECIMAL",t.CodePointLimit="CODE_POINT_LIMIT",t.OctalDeprecation="OCTAL_DEPRECATION",t.EndOfString="END_OF_STRING"}(r=e.ErrorType||(e.ErrorType={})),e.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:(t,e,r)=>{"use strict";e.MH=void 0;const n=r(8583);function s(t,e,r){const s=function(t){return t.match(/[^a-f0-9]/i)?NaN:parseInt(t,16)}(t);if(Number.isNaN(s)||void 0!==r&&r!==t.length)throw new SyntaxError(n.errorMessages.get(e));return s}function i(t,e){const r=s(t,n.ErrorType.MalformedUnicode,4);if(void 0!==e){const t=s(e,n.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,t)}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(t,e=!1){return t.replace(a,(function(t,r,a,c,u,l,p,f,_){if(void 0!==r)return"\\";if(void 0!==a)return function(t){const e=s(t,n.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}(a);if(void 0!==c)return function(t){if("{"!==(e=t).charAt(0)||"}"!==e.charAt(e.length-1))throw new SyntaxError(n.errorMessages.get(n.ErrorType.MalformedUnicode));var e;const r=s(t.slice(1,-1),n.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(t){throw t instanceof RangeError?new SyntaxError(n.errorMessages.get(n.ErrorType.CodePointLimit)):t}}(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(t,e=!1){if(e)throw new SyntaxError(n.errorMessages.get(n.ErrorType.OctalDeprecation));const r=parseInt(t,8);return String.fromCharCode(r)}(f,!e);if(void 0!==_)return h=_,o.get(h)||h;var h;throw new SyntaxError(n.errorMessages.get(n.ErrorType.EndOfString))}))}e.MH=c},3833:(t,e,r)=>{var n=void 0!==n?n:{},s=function(){var e,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 e||(n=Object.assign({},n,o),e=new Promise((e=>{var o,a={};for(o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);var c,u,l,p,f=[],_="./this.program",h=function(t,e){throw e};l="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!p;var d,m,y,g,v,b="";c?(b=p?r(4142).dirname(b)+"/":"//",d=function(t,e){return g||(g=r(3078)),v||(v=r(4142)),t=v.normalize(t),g.readFileSync(t,e?null:"utf8")},y=function(t){var e=d(t,!0);return e.buffer||(e=new Uint8Array(e)),M(e.buffer),e},process.argv.length>1&&(_=process.argv[1].replace(/\\/g,"/")),f=process.argv.slice(2),t.exports=n,h=function(t){process.exit(t)},n.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(d=function(t){return read(t)}),y=function(t){var e;return"function"==typeof readbuffer?new Uint8Array(readbuffer(t)):(M("object"==typeof(e=read(t,"binary"))),e)},"undefined"!=typeof scriptArgs?f=scriptArgs:void 0!==arguments&&(f=arguments),"function"==typeof quit&&(h=function(t){quit(t)}),"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):"",d=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},p&&(y=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),m=function(t,e,r){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?e(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&&(_=n.thisProgram),n.quit&&(h=n.quit);var E,x=16,S=[];function A(t,e){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(t))return E.get(t);var s=function(){if(S.length)return S.pop();try{H.grow(1)}catch(t){if(!(t instanceof RangeError))throw t;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return H.length-1}();try{H.set(s,t)}catch(r){if(!(r instanceof TypeError))throw r;var i=function(t,e){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==e[0]?[]:[r[e[0]]]},s=1;s<e.length;++s)n.parameters.push(r[e[s]]);return new WebAssembly.Function(n,t)}var i=[1,0,1,96],o=e.slice(0,1),a=e.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:t}}).exports.f}(t,e);H.set(s,i)}return E.set(t,s),s}var j,k=n.dynamicLibraries||[];n.wasmBinary&&(j=n.wasmBinary);var P,O=n.noExitRuntime||!0;function N(t,e,r,n){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":F[t>>0]=e;break;case"i16":q[t>>1]=e;break;case"i32":L[t>>2]=e;break;case"i64":lt=[e>>>0,(ut=e,+Math.abs(ut)>=1?ut>0?(0|Math.min(+Math.floor(ut/4294967296),4294967295))>>>0:~~+Math.ceil((ut-+(~~ut>>>0))/4294967296)>>>0:0)],L[t>>2]=lt[0],L[t+4>>2]=lt[1];break;case"float":V[t>>2]=e;break;case"double":D[t>>3]=e;break;default:at("invalid type for setValue: "+r)}}function T(t,e,r){switch("*"===(e=e||"i8").charAt(e.length-1)&&(e="i32"),e){case"i1":case"i8":return F[t>>0];case"i16":return q[t>>1];case"i32":case"i64":return L[t>>2];case"float":return V[t>>2];case"double":return D[t>>3];default:at("invalid type for getValue: "+e)}return null}"object"!=typeof WebAssembly&&at("no native wasm support detected");var I=!1;function M(t,e){t||at("Assertion failed: "+e)}var C,F,R,q,L,V,D,z="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function U(t,e,r){for(var n=e+r,s=e;t[s]&&!(s>=n);)++s;if(s-e>16&&t.subarray&&z)return z.decode(t.subarray(e,s));for(var i="";e<s;){var o=t[e++];if(128&o){var a=63&t[e++];if(192!=(224&o)){var c=63&t[e++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&t[e++])<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 G(t,e){return t?U(R,t,e):""}function B(t,e,r,n){if(!(n>0))return 0;for(var s=r,i=r+n-1,o=0;o<t.length;++o){var a=t.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++o)),a<=127){if(r>=i)break;e[r++]=a}else if(a<=2047){if(r+1>=i)break;e[r++]=192|a>>6,e[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;e[r++]=224|a>>12,e[r++]=128|a>>6&63,e[r++]=128|63&a}else{if(r+3>=i)break;e[r++]=240|a>>18,e[r++]=128|a>>12&63,e[r++]=128|a>>6&63,e[r++]=128|63&a}}return e[r]=0,r-s}function $(t,e,r){return B(t,R,e,r)}function K(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&t.charCodeAt(++r)),n<=127?++e:e+=n<=2047?2:n<=65535?3:4}return e}function W(t){var e=K(t)+1,r=Gt(e);return B(t,F,r,e),r}function Z(t){C=t,n.HEAP8=F=new Int8Array(t),n.HEAP16=q=new Int16Array(t),n.HEAP32=L=new Int32Array(t),n.HEAPU8=R=new Uint8Array(t),n.HEAPU16=new Uint16Array(t),n.HEAPU32=new Uint32Array(t),n.HEAPF32=V=new Float32Array(t),n.HEAPF64=D=new Float64Array(t)}var Y=n.INITIAL_MEMORY||33554432;(P=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:Y/65536,maximum:32768}))&&(C=P.buffer),Y=C.byteLength,Z(C);var H=new WebAssembly.Table({initial:17,element:"anyfunc"}),Q=[],X=[],J=[],tt=[],et=!1,rt=0,nt=null,st=null;function it(t){rt++,n.monitorRunDependencies&&n.monitorRunDependencies(rt)}function ot(t){if(rt--,n.monitorRunDependencies&&n.monitorRunDependencies(rt),0==rt&&(null!==nt&&(clearInterval(nt),nt=null),st)){var e=st;st=null,e()}}function at(t){throw n.onAbort&&n.onAbort(t),w(t+=""),I=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}n.preloadedImages={},n.preloadedAudios={},n.preloadedWasm={};var ct,ut,lt;function pt(t){return t.startsWith("data:application/octet-stream;base64,")}function ft(t){return t.startsWith("file://")}function _t(t){try{if(t==ct&&j)return new Uint8Array(j);if(y)return y(t);throw"both async and sync fetching of the wasm failed"}catch(t){at(t)}}pt(ct="tree-sitter.wasm")||(ct=function(t){return n.locateFile?n.locateFile(t,b):b+t}(ct));var ht={},dt={get:function(t,e){return ht[e]||(ht[e]=new WebAssembly.Global({value:"i32",mutable:!0})),ht[e]}};function mt(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var r=e.func;"number"==typeof r?void 0===e.arg?H.get(r)():H.get(r)(e.arg):r(void 0===e.arg?null:e.arg)}else e(n)}}function yt(t){var e=0;function r(){for(var r=0,n=1;;){var s=t[e++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}if(t instanceof WebAssembly.Module){var n=WebAssembly.Module.customSections(t,"dylink");M(0!=n.length,"need dylink section"),t=new Int8Array(n[0])}else M(1836278016==new Uint32Array(new Uint8Array(t.subarray(0,24)).buffer)[0],"need to see wasm magic number"),M(0===t[8],"need the dylink section to be first"),e=9,r(),M(6===t[e]),M(t[++e]==="d".charCodeAt(0)),M(t[++e]==="y".charCodeAt(0)),M(t[++e]==="l".charCodeAt(0)),M(t[++e]==="i".charCodeAt(0)),M(t[++e]==="n".charCodeAt(0)),M(t[++e]==="k".charCodeAt(0)),e++;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=t.subarray(e,e+a);e+=a;var u=U(c,0);s.neededDynlibs.push(u)}return s}var gt=0;function vt(){return O||gt>0}function bt(t){return 0==t.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(t)?t:"_"+t}function wt(t,e){for(var r in t)if(t.hasOwnProperty(r)){Lt.hasOwnProperty(r)||(Lt[r]=t[r]);var s=bt(r);n.hasOwnProperty(s)||(n[s]=t[r])}}var Et={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xt=5250880;function St(t){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(t)}function At(t,e){var r={};for(var n in t){var s=t[n];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=e),r[n]=s}return function(t){for(var e in t)if(!St(e)){var r=!1,n=t[e];e.startsWith("orig$")&&(e=e.split("$")[1],r=!0),ht[e]||(ht[e]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==ht[e].value)&&("function"==typeof n?ht[e].value=A(n):"number"==typeof n?ht[e].value=n:w("unhandled export type for `"+e+"`: "+typeof n))}}(r),r}function jt(t,e){var r,s;return e&&(r=Lt["orig$"+t]),r||(r=Lt[t]),r||(r=n[bt(t)]),!r&&t.startsWith("invoke_")&&(s=t.split("_")[1],r=function(){var t=zt();try{return function(t,e,r){return t.includes("j")?function(t,e,r){var s=n["dynCall_"+t];return r&&r.length?s.apply(null,[e].concat(r)):s.call(null,e)}(t,e,r):H.get(e).apply(null,r)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(e){if(Ut(t),e!==e+0&&"longjmp"!==e)throw e;Bt(1,0)}}),r}function kt(t,e){var r=yt(t);function n(){var n=Math.pow(2,r.memoryAlign);n=Math.max(n,x);var s,i,o,a=(s=function(t){if(et)return Vt(t);var e=xt,r=e+t+15&-16;return xt=r,ht.__heap_base.value=r,e}(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++)F[u]=0;for(u=c;u<c+r.tableSize;u++)H.set(u,null);var l=new Proxy({},{get:function(t,e){switch(e){case"__memory_base":return a;case"__table_base":return c}return e in Lt?Lt[e]:(e in t||(t[e]=function(){return r||(r=function(t){var e=jt(t,!1);return e||(e=o[t]),e}(e)),r.apply(null,arguments)}),t[e]);var r}}),p={"GOT.mem":new Proxy({},dt),"GOT.func":new Proxy({},dt),env:l,wasi_snapshot_preview1:l};function f(t){for(var n=0;n<r.tableSize;n++){var s=H.get(c+n);s&&E.set(s,c+n)}o=At(t.exports,a),e.allowUndefined||Ot();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(et?i():X.push(i)),o}if(e.loadAsync){if(t instanceof WebAssembly.Module){var _=new WebAssembly.Instance(t,p);return Promise.resolve(f(_))}return WebAssembly.instantiate(t,p).then((function(t){return f(t.instance)}))}var h=t instanceof WebAssembly.Module?t:new WebAssembly.Module(t);return f(_=new WebAssembly.Instance(h,p))}return e.loadAsync?r.neededDynlibs.reduce((function(t,r){return t.then((function(){return Pt(r,e)}))}),Promise.resolve()).then((function(){return n()})):(r.neededDynlibs.forEach((function(t){Pt(t,e)})),n())}function Pt(t,e){"__main__"!=t||Et.loadedLibNames[t]||(Et.loadedLibs[-1]={refcount:1/0,name:"__main__",module:n.asm,global:!0},Et.loadedLibNames.__main__=-1),e=e||{global:!0,nodelete:!0};var r,s=Et.loadedLibNames[t];if(s)return r=Et.loadedLibs[s],e.global&&!r.global&&(r.global=!0,"loading"!==r.module&&wt(r.module)),e.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,e.loadAsync?Promise.resolve(s):s;function i(t){if(e.fs){var r=e.fs.readFile(t,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),e.loadAsync?Promise.resolve(r):r}return e.loadAsync?(n=t,fetch(n,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load binary file at '"+n+"'";return t.arrayBuffer()})).then((function(t){return new Uint8Array(t)}))):y(t);var n}function o(){if(void 0!==n.preloadedWasm&&void 0!==n.preloadedWasm[t]){var r=n.preloadedWasm[t];return e.loadAsync?Promise.resolve(r):r}return e.loadAsync?i(t).then((function(t){return kt(t,e)})):kt(i(t),e)}function a(t){r.global&&wt(t),r.module=t}return s=Et.nextHandle++,r={refcount:e.nodelete?1/0:1,name:t,module:"loading",global:e.global},Et.loadedLibNames[t]=s,Et.loadedLibs[s]=r,e.loadAsync?o().then((function(t){return a(t),s})):(a(o()),s)}function Ot(){for(var t in ht)if(0==ht[t].value){var e=jt(t,!0);"function"==typeof e?ht[t].value=A(e,e.sig):"number"==typeof e?ht[t].value=e:M(!1,"bad export type for `"+t+"`: "+typeof e)}}n.___heap_base=xt;var Nt,Tt=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function It(){at()}n._abort=It,It.sig="v",Nt=c?function(){var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Mt(t,e){var r;if(0===t)r=Date.now();else{if(1!==t&&4!==t)return 28,L[Dt()>>2]=28,-1;r=Nt()}return L[e>>2]=r/1e3|0,L[e+4>>2]=r%1e3*1e3*1e3|0,0}function Ct(t){try{return P.grow(t-C.byteLength+65535>>>16),Z(P.buffer),1}catch(t){}}function Ft(t){Zt(t)}function Rt(t){}Mt.sig="iii",Ft.sig="vi",Rt.sig="vi";var qt,Lt={__heap_base:xt,__indirect_function_table:H,__memory_base:1024,__stack_pointer:Tt,__table_base:1,abort:It,clock_gettime:Mt,emscripten_memcpy_big:function(t,e,r){R.copyWithin(t,e,e+r)},emscripten_resize_heap:function(t){var e,r=R.length;if((t>>>=0)>2147483648)return!1;for(var n=1;n<=4;n*=2){var s=r*(1+.2/n);if(s=Math.min(s,t+100663296),Ct(Math.min(2147483648,((e=Math.max(t,s))%65536>0&&(e+=65536-e%65536),e))))return!0}return!1},exit:Ft,memory:P,setTempRet0:Rt,tree_sitter_log_callback:function(t,e){if(ue){const r=G(e);ue(r,0!==t)}},tree_sitter_parse_callback:function(t,e,r,n,s){var i=ce(e,{row:r,column:n});"string"==typeof i?(N(s,i.length,"i32"),function(t,e,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=(r-=2)<2*t.length?r/2:t.length,s=0;s<n;++s){var i=t.charCodeAt(s);q[e>>1]=i,e+=2}q[e>>1]=0}(i,t,10240)):N(s,0,"i32")}},Vt=(function(){var t={env:Lt,wasi_snapshot_preview1:Lt,"GOT.mem":new Proxy(Lt,dt),"GOT.func":new Proxy(Lt,dt)};function e(t,e){var r=t.exports;r=At(r,1024),n.asm=r;var s,i=yt(e);i.neededDynlibs&&(k=i.neededDynlibs.concat(k)),wt(r),s=n.asm.__wasm_call_ctors,X.unshift(s),ot()}function r(t){e(t.instance,t.module)}function s(e){return function(){if(!j&&(l||p)){if("function"==typeof fetch&&!ft(ct))return fetch(ct,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+ct+"'";return t.arrayBuffer()})).catch((function(){return _t(ct)}));if(m)return new Promise((function(t,e){m(ct,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return _t(ct)}))}().then((function(e){return WebAssembly.instantiate(e,t)})).then(e,(function(t){w("failed to asynchronously prepare wasm: "+t),at(t)}))}if(it(),n.instantiateWasm)try{return n.instantiateWasm(t,e)}catch(t){return w("Module.instantiateWasm callback failed with error: "+t),!1}j||"function"!=typeof WebAssembly.instantiateStreaming||pt(ct)||ft(ct)||"function"!=typeof fetch?s(r):fetch(ct,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(r,(function(t){return w("wasm streaming compile failed: "+t),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(Vt=n._malloc=n.asm.malloc).apply(null,arguments)}),Dt=(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(Dt=n.___errno_location=n.asm.__errno_location).apply(null,arguments)}),zt=(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(zt=n.stackSave=n.asm.stackSave).apply(null,arguments)}),Ut=n.stackRestore=function(){return(Ut=n.stackRestore=n.asm.stackRestore).apply(null,arguments)},Gt=n.stackAlloc=function(){return(Gt=n.stackAlloc=n.asm.stackAlloc).apply(null,arguments)},Bt=n._setThrew=function(){return(Bt=n._setThrew=n.asm.setThrew).apply(null,arguments)};function $t(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}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(t,e){var r;return r=1==e?Gt(t.length):Vt(t.length),t.subarray||t.slice?R.set(t,r):R.set(new Uint8Array(t),r),r},st=function t(){qt||Wt(),qt||(st=t)};var Kt=!1;function Wt(t){function e(){qt||(qt=!0,n.calledRun=!0,I||(et=!0,mt(X),mt(J),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Yt&&function(t){var e=n._main;if(e){var r=(t=t||[]).length+1,s=Gt(4*(r+1));L[s>>2]=W(_);for(var i=1;i<r;i++)L[(s>>2)+i]=W(t[i-1]);L[(s>>2)+r]=0;try{Zt(e(r,s),!0)}catch(t){if(t instanceof $t)return;if("unwind"==t)return;var o=t;t&&"object"==typeof t&&t.stack&&(o=[t,t.stack]),w("exception thrown: "+o),h(1,t)}}}(t),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)t=n.postRun.shift(),tt.unshift(t);var t;mt(tt)}()))}t=t||f,rt>0||!Kt&&(function(){if(k.length){if(!y)return it(),void k.reduce((function(t,e){return t.then((function(){return Pt(e,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){ot(),Ot()}));k.forEach((function(t){Pt(t,{global:!0,nodelete:!0,allowUndefined:!0})})),Ot()}else Ot()}(),Kt=!0,rt>0)||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)t=n.preRun.shift(),Q.unshift(t);var t;mt(Q)}(),rt>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),e()}),1)):e()))}function Zt(t,e){e&&vt()&&0===t||(vt()||(n.onExit&&n.onExit(t),I=!0),h(t,new $t(t)))}if(n.run=Wt,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var Yt=!0;n.noInitialRun&&(Yt=!1),Wt();const Ht=n,Qt={},Xt=4,Jt=5*Xt,te=2*Xt,ee=2*Xt+2*te,re={row:0,column:0},ne=/[\w-.]*/g,se=/^_?tree_sitter_\w+/;var ie,oe,ae,ce,ue;class le{static init(){ae=Ht._ts_init(),ie=T(ae,"i32"),oe=T(ae+Xt,"i32")}initialize(){Ht._ts_parser_new_wasm(),this[0]=T(ae,"i32"),this[1]=T(ae+Xt,"i32")}delete(){Ht._ts_parser_delete(this[0]),Ht._free(this[1]),this[0]=0,this[1]=0}setLanguage(t){let e;if(t){if(t.constructor!==he)throw new Error("Argument must be a Language");{e=t[0];const r=Ht._ts_language_version(e);if(r<oe||ie<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${oe} through ${ie}.`)}}else e=0,t=null;return this.language=t,Ht._ts_parser_set_language(this[0],e),this}getLanguage(){return this.language}parse(t,e,r){if("string"==typeof t)ce=(e,r,n)=>t.slice(e,n);else{if("function"!=typeof t)throw new Error("Argument must be a string or a function");ce=t}this.logCallback?(ue=this.logCallback,Ht._ts_parser_enable_logger_wasm(this[0],1)):(ue=null,Ht._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r&&r.includedRanges){n=r.includedRanges.length;let t=s=Ht._calloc(n,ee);for(let e=0;e<n;e++)je(t,r.includedRanges[e]),t+=ee}const i=Ht._ts_parser_parse_wasm(this[0],this[1],e?e[0]:0,s,n);if(!i)throw ce=null,ue=null,new Error("Parsing failed");const o=new pe(Qt,i,this.language,ce);return ce=null,ue=null,o}reset(){Ht._ts_parser_reset(this[0])}setTimeoutMicros(t){Ht._ts_parser_set_timeout_micros(this[0],t)}getTimeoutMicros(){return Ht._ts_parser_timeout_micros(this[0])}setLogger(t){if(t){if("function"!=typeof t)throw new Error("Logger callback must be a function")}else t=null;return this.logCallback=t,this}getLogger(){return this.logCallback}}class pe{constructor(t,e,r,n){ge(t),this[0]=e,this.language=r,this.textCallback=n}copy(){const t=Ht._ts_tree_copy(this[0]);return new pe(Qt,t,this.language,this.textCallback)}delete(){Ht._ts_tree_delete(this[0]),this[0]=0}edit(t){!function(t){let e=ae;Se(e,t.startPosition),Se(e+=te,t.oldEndPosition),Se(e+=te,t.newEndPosition),N(e+=te,t.startIndex,"i32"),N(e+=Xt,t.oldEndIndex,"i32"),N(e+=Xt,t.newEndIndex,"i32"),e+=Xt}(t),Ht._ts_tree_edit_wasm(this[0])}get rootNode(){return Ht._ts_tree_root_node_wasm(this[0]),we(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(t){if(t.constructor!==pe)throw new TypeError("Argument must be a Tree");Ht._ts_tree_get_changed_ranges_wasm(this[0],t[0]);const e=T(ae,"i32"),r=T(ae+Xt,"i32"),n=new Array(e);if(e>0){let t=r;for(let r=0;r<e;r++)n[r]=ke(t),t+=ee;Ht._free(r)}return n}}class fe{constructor(t,e){ge(t),this.tree=e}get typeId(){return be(this),Ht._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return be(this),Ht._ts_node_end_point_wasm(this.tree[0]),Ae(ae)}get endIndex(){return be(this),Ht._ts_node_end_index_wasm(this.tree[0])}get text(){return me(this.tree,this.startIndex,this.endIndex)}isNamed(){return be(this),1===Ht._ts_node_is_named_wasm(this.tree[0])}hasError(){return be(this),1===Ht._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return be(this),1===Ht._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return be(this),1===Ht._ts_node_is_missing_wasm(this.tree[0])}equals(t){return this.id===t.id}child(t){return be(this),Ht._ts_node_child_wasm(this.tree[0],t),we(this.tree)}namedChild(t){return be(this),Ht._ts_node_named_child_wasm(this.tree[0],t),we(this.tree)}childForFieldId(t){return be(this),Ht._ts_node_child_by_field_id_wasm(this.tree[0],t),we(this.tree)}childForFieldName(t){const e=this.tree.language.fields.indexOf(t);if(-1!==e)return this.childForFieldId(e)}get childCount(){return be(this),Ht._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return be(this),Ht._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){be(this),Ht._ts_node_children_wasm(this.tree[0]);const t=T(ae,"i32"),e=T(ae+Xt,"i32");if(this._children=new Array(t),t>0){let r=e;for(let e=0;e<t;e++)this._children[e]=we(this.tree,r),r+=Jt;Ht._free(e)}}return this._children}get namedChildren(){if(!this._namedChildren){be(this),Ht._ts_node_named_children_wasm(this.tree[0]);const t=T(ae,"i32"),e=T(ae+Xt,"i32");if(this._namedChildren=new Array(t),t>0){let r=e;for(let e=0;e<t;e++)this._namedChildren[e]=we(this.tree,r),r+=Jt;Ht._free(e)}}return this._namedChildren}descendantsOfType(t,e,r){Array.isArray(t)||(t=[t]),e||(e=re),r||(r=re);const n=[],s=this.tree.language.types;for(let e=0,r=s.length;e<r;e++)t.includes(s[e])&&n.push(e);const i=Ht._malloc(Xt*n.length);for(let t=0,e=n.length;t<e;t++)N(i+t*Xt,n[t],"i32");be(this),Ht._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,e.row,e.column,r.row,r.column);const o=T(ae,"i32"),a=T(ae+Xt,"i32"),c=new Array(o);if(o>0){let t=a;for(let e=0;e<o;e++)c[e]=we(this.tree,t),t+=Jt}return Ht._free(a),Ht._free(i),c}get nextSibling(){return be(this),Ht._ts_node_next_sibling_wasm(this.tree[0]),we(this.tree)}get previousSibling(){return be(this),Ht._ts_node_prev_sibling_wasm(this.tree[0]),we(this.tree)}get nextNamedSibling(){return be(this),Ht._ts_node_next_named_sibling_wasm(this.tree[0]),we(this.tree)}get previousNamedSibling(){return be(this),Ht._ts_node_prev_named_sibling_wasm(this.tree[0]),we(this.tree)}get parent(){return be(this),Ht._ts_node_parent_wasm(this.tree[0]),we(this.tree)}descendantForIndex(t,e=t){if("number"!=typeof t||"number"!=typeof e)throw new Error("Arguments must be numbers");be(this);let r=ae+Jt;return N(r,t,"i32"),N(r+Xt,e,"i32"),Ht._ts_node_descendant_for_index_wasm(this.tree[0]),we(this.tree)}namedDescendantForIndex(t,e=t){if("number"!=typeof t||"number"!=typeof e)throw new Error("Arguments must be numbers");be(this);let r=ae+Jt;return N(r,t,"i32"),N(r+Xt,e,"i32"),Ht._ts_node_named_descendant_for_index_wasm(this.tree[0]),we(this.tree)}descendantForPosition(t,e=t){if(!ve(t)||!ve(e))throw new Error("Arguments must be {row, column} objects");be(this);let r=ae+Jt;return Se(r,t),Se(r+te,e),Ht._ts_node_descendant_for_position_wasm(this.tree[0]),we(this.tree)}namedDescendantForPosition(t,e=t){if(!ve(t)||!ve(e))throw new Error("Arguments must be {row, column} objects");be(this);let r=ae+Jt;return Se(r,t),Se(r+te,e),Ht._ts_node_named_descendant_for_position_wasm(this.tree[0]),we(this.tree)}walk(){return be(this),Ht._ts_tree_cursor_new_wasm(this.tree[0]),new _e(Qt,this.tree)}toString(){be(this);const t=Ht._ts_node_to_string_wasm(this.tree[0]),e=function(t){for(var e="";;){var r=R[t++>>0];if(!r)return e;e+=String.fromCharCode(r)}}(t);return Ht._free(t),e}}class _e{constructor(t,e){ge(t),this.tree=e,xe(this)}delete(){Ee(this),Ht._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(t){be(t),Ee(this,ae+Jt),Ht._ts_tree_cursor_reset_wasm(this.tree[0]),xe(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Ee(this),Ht._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Ee(this),Ht._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Ee(this),1===Ht._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Ee(this),1===Ht._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Ee(this);const t=Ht._ts_tree_cursor_start_index_wasm(this.tree[0]),e=Ht._ts_tree_cursor_end_index_wasm(this.tree[0]);return me(this.tree,t,e)}get startPosition(){return Ee(this),Ht._ts_tree_cursor_start_position_wasm(this.tree[0]),Ae(ae)}get endPosition(){return Ee(this),Ht._ts_tree_cursor_end_position_wasm(this.tree[0]),Ae(ae)}get startIndex(){return Ee(this),Ht._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Ee(this),Ht._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Ee(this),Ht._ts_tree_cursor_current_node_wasm(this.tree[0]),we(this.tree)}currentFieldId(){return Ee(this),Ht._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Ee(this);const t=Ht._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xe(this),1===t}gotoNextSibling(){Ee(this);const t=Ht._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xe(this),1===t}gotoParent(){Ee(this);const t=Ht._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xe(this),1===t}}class he{constructor(t,e){ge(t),this[0]=e,this.types=new Array(Ht._ts_language_symbol_count(this[0]));for(let t=0,e=this.types.length;t<e;t++)Ht._ts_language_symbol_type(this[0],t)<2&&(this.types[t]=G(Ht._ts_language_symbol_name(this[0],t)));this.fields=new Array(Ht._ts_language_field_count(this[0])+1);for(let t=0,e=this.fields.length;t<e;t++){const e=Ht._ts_language_field_name_for_id(this[0],t);this.fields[t]=0!==e?G(e):null}}get version(){return Ht._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(t){const e=this.fields.indexOf(t);return-1!==e?e:null}fieldNameForId(t){return this.fields[t]||null}idForNodeType(t,e){const r=K(t),n=Ht._malloc(r+1);$(t,n,r+1);const s=Ht._ts_language_symbol_for_name(this[0],n,r,e);return Ht._free(n),s||null}get nodeTypeCount(){return Ht._ts_language_symbol_count(this[0])}nodeTypeForId(t){const e=Ht._ts_language_symbol_name(this[0],t);return e?G(e):null}nodeTypeIsNamed(t){return!!Ht._ts_language_type_is_named_wasm(this[0],t)}nodeTypeIsVisible(t){return!!Ht._ts_language_type_is_visible_wasm(this[0],t)}query(t){const e=K(t),r=Ht._malloc(e+1);$(t,r,e+1);const n=Ht._ts_query_new(this[0],r,e,ae,ae+Xt);if(!n){const e=T(ae+Xt,"i32"),n=G(r,T(ae,"i32")).length,s=t.substr(n,100).split("\n")[0];let i,o=s.match(ne)[0];switch(e){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,Ht._free(r),i}const s=Ht._ts_query_string_count(n),i=Ht._ts_query_capture_count(n),o=Ht._ts_query_pattern_count(n),a=new Array(i),c=new Array(s);for(let t=0;t<i;t++){const e=Ht._ts_query_capture_name_for_id(n,t,ae),r=T(ae,"i32");a[t]=G(e,r)}for(let t=0;t<s;t++){const e=Ht._ts_query_string_value_for_id(n,t,ae),r=T(ae,"i32");c[t]=G(e,r)}const u=new Array(o),l=new Array(o),p=new Array(o),f=new Array(o),_=new Array(o);for(let t=0;t<o;t++){const e=Ht._ts_query_predicates_for_pattern(n,t,ae),r=T(ae,"i32");f[t]=[],_[t]=[];const s=[];let i=e;for(let e=0;e<r;e++){const e=T(i,"i32"),r=T(i+=Xt,"i32");if(i+=Xt,1===e)s.push({type:"capture",name:a[r]});else if(2===e)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 e=s[0].value;let r=!0;switch(e){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 e=s[1].name,n=s[2].name;_[t].push((function(t){let s,i;for(const r of t)r.name===e&&(s=r.node),r.name===n&&(i=r.node);return void 0===s||void 0===i||s.text===i.text===r}))}else{const e=s[1].name,n=s[2].value;_[t].push((function(t){for(const s of t)if(s.name===e)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);_[t].push((function(t){for(const e of t)if(e.name===n)return i.test(e.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((t=>"string"!==t.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[t]||(u[t]={}),u[t][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 \`#${e}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((t=>"string"!==t.type)))throw new Error(`Arguments to \`#${e}\` predicate must be a strings.".`);const o="is?"===e?l:p;o[t]||(o[t]={}),o[t][s[1].value]=s[2]?s[2].value:null;break;default:f[t].push({operator:e,operands:s.slice(1)})}s.length=0}}Object.freeze(u[t]),Object.freeze(l[t]),Object.freeze(p[t])}return Ht._free(r),new de(Qt,n,a,_,f,Object.freeze(u),Object.freeze(l),Object.freeze(p))}static load(t){let e;if(t instanceof Uint8Array)e=Promise.resolve(t);else{const n=t;if("undefined"!=typeof process&&process.versions&&process.versions.node){const t=r(3078);e=Promise.resolve(t.readFileSync(n))}else e=fetch(n).then((t=>t.arrayBuffer().then((e=>{if(t.ok)return new Uint8Array(e);{const r=new TextDecoder("utf-8").decode(e);throw new Error(`Language.load failed with status ${t.status}.\n\n${r}`)}}))))}const n="function"==typeof loadSideModule?loadSideModule:kt;return e.then((t=>n(t,{loadAsync:!0}))).then((t=>{const e=Object.keys(t),r=e.find((t=>se.test(t)&&!t.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(e,null,2)}`);const n=t[r]();return new he(Qt,n)}))}}class de{constructor(t,e,r,n,s,i,o,a){ge(t),this[0]=e,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ht._ts_query_delete(this[0]),this[0]=0}matches(t,e,r,n){e||(e=re),r||(r=re),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");be(t),Ht._ts_query_matches_wasm(this[0],t.tree[0],e.row,e.column,r.row,r.column,s);const i=T(ae,"i32"),o=T(ae+Xt,"i32"),a=T(ae+2*Xt,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let e=0;e<i;e++){const r=T(l,"i32"),n=T(l+=Xt,"i32");l+=Xt;const s=new Array(n);if(l=ye(this,t.tree,l,s),this.textPredicates[r].every((t=>t(s)))){c[u++]={pattern:r,captures:s};const t=this.setProperties[r];t&&(c[e].setProperties=t);const n=this.assertedProperties[r];n&&(c[e].assertedProperties=n);const i=this.refutedProperties[r];i&&(c[e].refutedProperties=i)}}return c.length=u,Ht._free(o),c}captures(t,e,r,n){e||(e=re),r||(r=re),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");be(t),Ht._ts_query_captures_wasm(this[0],t.tree[0],e.row,e.column,r.row,r.column,s);const i=T(ae,"i32"),o=T(ae+Xt,"i32"),a=T(ae+2*Xt,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let e=0;e<i;e++){const e=T(l,"i32"),r=T(l+=Xt,"i32"),n=T(l+=Xt,"i32");if(l+=Xt,u.length=r,l=ye(this,t.tree,l,u),this.textPredicates[e].every((t=>t(u)))){const t=u[n],r=this.setProperties[e];r&&(t.setProperties=r);const s=this.assertedProperties[e];s&&(t.assertedProperties=s);const i=this.refutedProperties[e];i&&(t.refutedProperties=i),c.push(t)}}return Ht._free(o),c}predicatesForPattern(t){return this.predicates[t]}didExceedMatchLimit(){return this.exceededMatchLimit}}function me(t,e,r){const n=r-e;let s=t.textCallback(e,null,r);for(e+=s.length;e<r;){const n=t.textCallback(e,null,r);if(!(n&&n.length>0))break;e+=n.length,s+=n}return e>r&&(s=s.slice(0,n)),s}function ye(t,e,r,n){for(let s=0,i=n.length;s<i;s++){const i=T(r,"i32"),o=we(e,r+=Xt);r+=Jt,n[s]={name:t.captureNames[i],node:o}}return r}function ge(t){if(t!==Qt)throw new Error("Illegal constructor")}function ve(t){return t&&"number"==typeof t.row&&"number"==typeof t.column}function be(t){let e=ae;N(e,t.id,"i32"),N(e+=Xt,t.startIndex,"i32"),N(e+=Xt,t.startPosition.row,"i32"),N(e+=Xt,t.startPosition.column,"i32"),N(e+=Xt,t[0],"i32")}function we(t,e=ae){const r=T(e,"i32");if(0===r)return null;const n=T(e+=Xt,"i32"),s=T(e+=Xt,"i32"),i=T(e+=Xt,"i32"),o=T(e+=Xt,"i32"),a=new fe(Qt,t);return a.id=r,a.startIndex=n,a.startPosition={row:s,column:i},a[0]=o,a}function Ee(t,e=ae){N(e+0*Xt,t[0],"i32"),N(e+1*Xt,t[1],"i32"),N(e+2*Xt,t[2],"i32")}function xe(t){t[0]=T(ae+0*Xt,"i32"),t[1]=T(ae+1*Xt,"i32"),t[2]=T(ae+2*Xt,"i32")}function Se(t,e){N(t,e.row,"i32"),N(t+Xt,e.column,"i32")}function Ae(t){return{row:T(t,"i32"),column:T(t+Xt,"i32")}}function je(t,e){Se(t,e.startPosition),Se(t+=te,e.endPosition),N(t+=te,e.startIndex,"i32"),N(t+=Xt,e.endIndex,"i32"),t+=Xt}function ke(t){const e={};return e.startPosition=Ae(t),t+=te,e.endPosition=Ae(t),t+=te,e.startIndex=T(t,"i32"),t+=Xt,e.endIndex=T(t,"i32"),e}for(const t of Object.getOwnPropertyNames(le.prototype))Object.defineProperty(i.prototype,t,{value:le.prototype[t],enumerable:!1,writable:!1});i.Language=he,n.onRuntimeInitialized=()=>{le.init(),e()}})))}}return i}();t.exports=s},3078:()=>{},4142:()=>{},1212:(t,e,r)=>{t.exports=r(8411)},7202:(t,e,r)=>{"use strict";var n=r(239);t.exports=n},6656:(t,e,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var n=r(8099);t.exports=n.AggregateError},8411:(t,e,r)=>{"use strict";t.exports=r(8337)},8337:(t,e,r)=>{"use strict";r(5442);var n=r(7202);t.exports=n},814:(t,e,r)=>{"use strict";var n=r(2769),s=r(459),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(s(t)+" is not a function")}},1966:(t,e,r)=>{"use strict";var n=r(2937),s=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+s(t)+" as a prototype")}},8137:t=>{"use strict";t.exports=function(){}},7235:(t,e,r)=>{"use strict";var n=r(262),s=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(s(t)+" is not an object")}},1005:(t,e,r)=>{"use strict";var n=r(3273),s=r(4574),i=r(8130),o=function(t){return function(e,r,o){var a,c=n(e),u=i(c),l=s(o,u);if(t&&r!=r){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},9932:(t,e,r)=>{"use strict";var n=r(6100),s=n({}.toString),i=n("".slice);t.exports=function(t){return i(s(t),8,-1)}},8407:(t,e,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}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),o))?r:c?i(e):"Object"===(n=i(e))&&s(e.callee)?"Arguments":n}},7464:(t,e,r)=>{"use strict";var n=r(701),s=r(5691),i=r(4543),o=r(9989);t.exports=function(t,e,r){for(var a=s(e),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];n(t,p)||r&&n(r,p)||c(t,p,u(e,p))}}},2871:(t,e,r)=>{"use strict";var n=r(1203);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},877:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},3999:(t,e,r)=>{"use strict";var n=r(5024),s=r(9989),i=r(480);t.exports=n?function(t,e,r){return s.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},480:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},3508:(t,e,r)=>{"use strict";var n=r(3999);t.exports=function(t,e,r,s){return s&&s.enumerable?t[e]=r:n(t,e,r),t}},7525:(t,e,r)=>{"use strict";var n=r(1063),s=Object.defineProperty;t.exports=function(t,e){try{s(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},5024:(t,e,r)=>{"use strict";var n=r(1203);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(t,e,r)=>{"use strict";var n=r(1063),s=r(262),i=n.document,o=s(i)&&s(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},1100:t=>{"use strict";t.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:t=>{"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4432:(t,e,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]),t.exports=s},9683:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3885:(t,e,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);t.exports=function(t,e){if(c&&"string"==typeof t&&!s.prepareStackTrace)for(;e--;)t=i(t,a,"");return t}},4279:(t,e,r)=>{"use strict";var n=r(3999),s=r(3885),i=r(5791),o=Error.captureStackTrace;t.exports=function(t,e,r,a){i&&(o?o(t,e):n(t,"stack",s(r,a)))}},5791:(t,e,r)=>{"use strict";var n=r(1203),s=r(480);t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",s(1,7)),7!==t.stack)}))},9098:(t,e,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),_=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return s(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,s,h,d,m,y,g,v,b,w=t.target,E=t.global,x=t.stat,S=t.proto,A=E?n:x?n[w]:n[w]&&n[w].prototype,j=E?u:u[w]||p(u,w,{})[w],k=j.prototype;for(d in e)s=!(r=c(E?d:w+(x?".":"#")+d,t.forced))&&A&&f(A,d),y=j[d],s&&(g=t.dontCallGetSet?(b=a(A,d))&&b.value:A[d]),m=s&&g?g:e[d],(r||S||typeof y!=typeof m)&&(v=t.bind&&s?l(m,n):t.wrap&&s?_(m):S&&o(m)?i(m):m,(t.sham||m&&m.sham||y&&y.sham)&&p(v,"sham",!0),p(j,d,v),S&&(f(u,h=w+"Prototype")||p(u,h,{}),p(u[h],d,m),t.real&&k&&(r||!k[d])&&p(k,d,m)))}},1203:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},7013:(t,e,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.apply,o=s.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},4572:(t,e,r)=>{"use strict";var n=r(9344),s=r(814),i=r(1780),o=n(n.bind);t.exports=function(t,e){return s(t),void 0===e?t:i?o(t,e):function(){return t.apply(e,arguments)}}},1780:(t,e,r)=>{"use strict";var n=r(1203);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4713:(t,e,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;t.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},3410:(t,e,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);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3574:(t,e,r)=>{"use strict";var n=r(6100),s=r(814);t.exports=function(t,e,r){try{return n(s(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},9344:(t,e,r)=>{"use strict";var n=r(9932),s=r(6100);t.exports=function(t){if("Function"===n(t))return s(t)}},6100:(t,e,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);t.exports=n?o:function(t){return function(){return i.apply(t,arguments)}}},1003:(t,e,r)=>{"use strict";var n=r(8099),s=r(1063),i=r(2769),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(s[t]):n[t]&&n[t][e]||s[t]&&s[t][e]}},967:(t,e,r)=>{"use strict";var n=r(8407),s=r(4674),i=r(3057),o=r(6625),a=r(8655)("iterator");t.exports=function(t){if(!i(t))return s(t,a)||s(t,"@@iterator")||o[n(t)]}},1613:(t,e,r)=>{"use strict";var n=r(4713),s=r(814),i=r(7235),o=r(459),a=r(967),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(s(r))return i(n(r,t));throw new c(o(t)+" is not iterable")}},4674:(t,e,r)=>{"use strict";var n=r(814),s=r(3057);t.exports=function(t,e){var r=t[e];return s(r)?void 0:n(r)}},1063:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.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:(t,e,r)=>{"use strict";var n=r(6100),s=r(2137),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(s(t),e)}},5241:t=>{"use strict";t.exports={}},3489:(t,e,r)=>{"use strict";var n=r(1003);t.exports=n("document","documentElement")},9665:(t,e,r)=>{"use strict";var n=r(5024),s=r(1203),i=r(9619);t.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(t,e,r)=>{"use strict";var n=r(6100),s=r(1203),i=r(9932),o=Object,a=n("".split);t.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):o(t)}:o},3507:(t,e,r)=>{"use strict";var n=r(2769),s=r(262),i=r(3491);t.exports=function(t,e,r){var o,a;return i&&n(o=e.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(t,a),t}},8148:(t,e,r)=>{"use strict";var n=r(262),s=r(3999);t.exports=function(t,e){n(e)&&"cause"in e&&s(t,"cause",e.cause)}},8417:(t,e,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),_=r(5241),h="Object already initialized",d=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(t,e){if(y.has(t))throw new d(h);return e.facade=t,y.set(t,e),e},s=function(t){return y.get(t)||{}},i=function(t){return y.has(t)}}else{var g=f("state");_[g]=!0,n=function(t,e){if(l(t,g))throw new d(h);return e.facade=t,u(t,g,e),e},s=function(t){return l(t,g)?t[g]:{}},i=function(t){return l(t,g)}}t.exports={set:n,get:s,has:i,enforce:function(t){return i(t)?s(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=s(e)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}},2877:(t,e,r)=>{"use strict";var n=r(8655),s=r(6625),i=n("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||o[i]===t)}},2769:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},8696:(t,e,r)=>{"use strict";var n=r(1203),s=r(2769),i=/#|\.prototype\./,o=function(t,e){var r=c[a(t)];return r===l||r!==u&&(s(e)?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},3057:t=>{"use strict";t.exports=function(t){return null==t}},262:(t,e,r)=>{"use strict";var n=r(2769);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},2937:(t,e,r)=>{"use strict";var n=r(262);t.exports=function(t){return n(t)||null===t}},4871:t=>{"use strict";t.exports=!0},6281:(t,e,r)=>{"use strict";var n=r(1003),s=r(2769),i=r(4317),o=r(7460),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return s(e)&&i(e.prototype,a(t))}},208:(t,e,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),_=TypeError,h=function(t,e){this.stopped=t,this.result=e},d=h.prototype;t.exports=function(t,e,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),k=!(!r||!r.INTERRUPTED),P=n(e,x),O=function(t){return m&&f(m,"normal",t),new h(!0,t)},N=function(t){return S?(i(t),k?P(t[0],t[1],O):P(t[0],t[1])):k?P(t,O):P(t)};if(A)m=t.iterator;else if(j)m=t;else{if(!(y=p(t)))throw new _(o(t)+" is not iterable");if(a(y)){for(g=0,v=c(t);v>g;g++)if((b=N(t[g]))&&u(d,b))return b;return new h(!1)}m=l(t,y)}for(w=A?t.next:m.next;!(E=s(w,m)).done;){try{b=N(E.value)}catch(t){f(m,"throw",t)}if("object"==typeof b&&b&&u(d,b))return b}return new h(!1)}},1743:(t,e,r)=>{"use strict";var n=r(4713),s=r(7235),i=r(4674);t.exports=function(t,e,r){var o,a;s(t);try{if(!(o=i(t,"return"))){if("throw"===e)throw r;return r}o=n(o,t)}catch(t){a=!0,o=t}if("throw"===e)throw r;if(a)throw o;return s(o),r}},1926:(t,e,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=r(5780),i=r(480),o=r(1811),a=r(6625),c=function(){return this};t.exports=function(t,e,r,u){var l=e+" Iterator";return t.prototype=s(n,{next:i(+!u,r)}),o(t,l,!1,!0),a[l]=c,t}},164:(t,e,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),_=r(3508),h=r(8655),d=r(6625),m=r(2621),y=o.PROPER,g=o.CONFIGURABLE,v=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=h("iterator"),E="keys",x="values",S="entries",A=function(){return this};t.exports=function(t,e,r,o,h,m,j){c(r,e,o);var k,P,O,N=function(t){if(t===h&&F)return F;if(!b&&t&&t in M)return M[t];switch(t){case E:case x:case S:return function(){return new r(this,t)}}return function(){return new r(this)}},T=e+" Iterator",I=!1,M=t.prototype,C=M[w]||M["@@iterator"]||h&&M[h],F=!b&&C||N(h),R="Array"===e&&M.entries||C;if(R&&(k=u(R.call(new t)))!==Object.prototype&&k.next&&(i||u(k)===v||(l?l(k,v):a(k[w])||_(k,w,A)),p(k,T,!0,!0),i&&(d[T]=A)),y&&h===x&&C&&C.name!==x&&(!i&&g?f(M,"name",x):(I=!0,F=function(){return s(C,this)})),h)if(P={values:N(x),keys:m?F:N(E),entries:N(S)},j)for(O in P)(b||I||!(O in M))&&_(M,O,P[O]);else n({target:e,proto:!0,forced:b||I},P);return i&&!j||M[w]===F||_(M,w,F,{name:h}),d[e]=F,P}},2621:(t,e,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),_=r(4871),h=f("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):d=!0),!c(n)||o((function(){var t={};return n[h].call(t)!==t}))?n={}:_&&(n=u(n)),a(n[h])||p(n,h,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},6625:t=>{"use strict";t.exports={}},8130:(t,e,r)=>{"use strict";var n=r(8146);t.exports=function(t){return n(t.length)}},5777:t=>{"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},4879:(t,e,r)=>{"use strict";var n=r(1139);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},5780:(t,e,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",_=l("IE_PROTO"),h=function(){},d=function(t){return"<"+f+">"+t+"</"+f+">"},m=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;y="undefined"!=typeof document?document.domain&&n?m(n):(e=u("iframe"),r="java"+f+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):m(n);for(var s=o.length;s--;)delete y[p][o[s]];return y()};a[_]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(h[p]=s(t),r=new h,h[p]=null,r[_]=t):r=y(),void 0===e?r:i.f(r,e)}},7389:(t,e,r)=>{"use strict";var n=r(5024),s=r(1330),i=r(9989),o=r(7235),a=r(3273),c=r(8364);e.f=n&&!s?Object.defineProperties:function(t,e){o(t);for(var r,n=a(e),s=c(e),u=s.length,l=0;u>l;)i.f(t,r=s[l++],n[r]);return t}},9989:(t,e,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",_="writable";e.f=n?i?function(t,e,r){if(o(t),e=a(e),o(r),"function"==typeof t&&"prototype"===e&&"value"in r&&_ in r&&!r[_]){var n=l(t,e);n&&n[_]&&(t[e]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:p in r?r[p]:n[p],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(o(t),e=a(e),o(r),s)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},4543:(t,e,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;e.f=n?p:function(t,e){if(t=a(t),e=c(e),l)try{return p(t,e)}catch(t){}if(u(t,e))return o(!s(i.f,t,e),t[e])}},5116:(t,e,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,s)}},7313:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},3671:(t,e,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;t.exports=a?u.getPrototypeOf:function(t){var e=i(t);if(n(e,c))return e[c];var r=e.constructor;return s(r)&&e instanceof r?r.prototype:e instanceof u?l:null}},4317:(t,e,r)=>{"use strict";var n=r(6100);t.exports=n({}.isPrototypeOf)},8600:(t,e,r)=>{"use strict";var n=r(6100),s=r(701),i=r(3273),o=r(1005).indexOf,a=r(5241),c=n([].push);t.exports=function(t,e){var r,n=i(t),u=0,l=[];for(r in n)!s(a,r)&&s(n,r)&&c(l,r);for(;e.length>u;)s(n,r=e[u++])&&(~o(l,r)||c(l,r));return l}},8364:(t,e,r)=>{"use strict";var n=r(8600),s=r(9683);t.exports=Object.keys||function(t){return n(t,s)}},7161:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);e.f=s?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},3491:(t,e,r)=>{"use strict";var n=r(3574),s=r(7235),i=r(1966);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return s(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},9559:(t,e,r)=>{"use strict";var n=r(4904),s=r(8407);t.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9258:(t,e,r)=>{"use strict";var n=r(4713),s=r(2769),i=r(262),o=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&s(r=t.toString)&&!i(a=n(r,t)))return a;if(s(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&s(r=t.toString)&&!i(a=n(r,t)))return a;throw new o("Can't convert object to primitive value")}},5691:(t,e,r)=>{"use strict";var n=r(1003),s=r(6100),i=r(5116),o=r(7313),a=r(7235),c=s([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?c(e,r(t)):e}},8099:t=>{"use strict";t.exports={}},5516:(t,e,r)=>{"use strict";var n=r(9989).f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},5426:(t,e,r)=>{"use strict";var n=r(3057),s=TypeError;t.exports=function(t){if(n(t))throw new s("Can't call method on "+t);return t}},1811:(t,e,r)=>{"use strict";var n=r(4904),s=r(9989).f,i=r(3999),o=r(701),a=r(9559),c=r(8655)("toStringTag");t.exports=function(t,e,r,u){var l=r?t:t&&t.prototype;l&&(o(l,c)||s(l,c,{configurable:!0,value:e}),u&&!n&&i(l,"toString",a))}},4275:(t,e,r)=>{"use strict";var n=r(8141),s=r(1268),i=n("keys");t.exports=function(t){return i[t]||(i[t]=s(t))}},3753:(t,e,r)=>{"use strict";var n=r(1063),s=r(7525),i="__core-js_shared__",o=n[i]||s(i,{});t.exports=o},8141:(t,e,r)=>{"use strict";var n=r(4871),s=r(3753);(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("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:(t,e,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(t){return function(e,r){var n,l,p=i(o(e)),f=s(r),_=p.length;return f<0||f>=_?t?"":void 0:(n=c(p,f))<55296||n>56319||f+1===_||(l=c(p,f+1))<56320||l>57343?t?a(p,f):n:t?u(p,f,f+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},4603:(t,e,r)=>{"use strict";var n=r(4432),s=r(1203),i=r(1063).String;t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4574:(t,e,r)=>{"use strict";var n=r(9903),s=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?s(r+e,0):i(r,e)}},3273:(t,e,r)=>{"use strict";var n=r(1395),s=r(5426);t.exports=function(t){return n(s(t))}},9903:(t,e,r)=>{"use strict";var n=r(5777);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},8146:(t,e,r)=>{"use strict";var n=r(9903),s=Math.min;t.exports=function(t){var e=n(t);return e>0?s(e,9007199254740991):0}},2137:(t,e,r)=>{"use strict";var n=r(5426),s=Object;t.exports=function(t){return s(n(t))}},493:(t,e,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");t.exports=function(t,e){if(!s(t)||i(t))return t;var r,c=o(t,l);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!s(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},5341:(t,e,r)=>{"use strict";var n=r(493),s=r(6281);t.exports=function(t){var e=n(t,"string");return s(e)?e:e+""}},4904:(t,e,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",t.exports="[object z]"===String(n)},1139:(t,e,r)=>{"use strict";var n=r(8407),s=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},459:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},1268:(t,e,r)=>{"use strict";var n=r(6100),s=0,i=Math.random(),o=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++s+i,36)}},7460:(t,e,r)=>{"use strict";var n=r(4603);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(t,e,r)=>{"use strict";var n=r(5024),s=r(1203);t.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(t,e,r)=>{"use strict";var n=r(1063),s=r(2769),i=n.WeakMap;t.exports=s(i)&&/native code/.test(String(i))},8655:(t,e,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;t.exports=function(t){return i(l,t)||(l[t]=a&&i(u,t)?u[t]:p("Symbol."+t)),l[t]}},6453:(t,e,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),_=r(4279),h=r(5024),d=r(4871);t.exports=function(t,e,r,m){var y="stackTraceLimit",g=m?2:1,v=t.split("."),b=v[v.length-1],w=n.apply(null,v);if(w){var E=w.prototype;if(!d&&s(E,"cause")&&delete E.cause,!r)return w;var x=n("Error"),S=e((function(t,e){var r=p(m?e:t,void 0),n=m?new w(t):new w;return void 0!==r&&i(n,"message",r),_(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}):h&&y in w&&(u(S,w,y),u(S,w,"prepareStackTrace")),c(S,w),!d)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(t){}return S}}},6138:(t,e,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(t){return function(e,r){return i(t,this,arguments)}}),l,!0)})},3085:(t,e,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),_=r(208),h=r(4879),d=r(8655)("toStringTag"),m=Error,y=[].push,g=function(t,e){var r,n=s(v,this);o?r=o(new m,n?i(this):v):(r=n?this:c(v),u(r,d,"Error")),void 0!==e&&u(r,"message",h(e)),f(r,g,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return _(t,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:(t,e,r)=>{"use strict";r(3085)},9828:(t,e,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",_=o.set,h=o.getterFor(f);t.exports=c(Array,"Array",(function(t,e){_(this,{type:f,target:n(t),index:0,kind:e})}),(function(){var t=h(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(t){}},484:(t,e,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(t,e){var r={};r[t]=o(t,e,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},p=function(t,e){if(c&&c[t]){var r={};r[t]=o(a+"."+t,e,u),n({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(t){return function(e){return i(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),l("URIError",(function(t){return function(e){return i(t,this,arguments)}})),p("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),p("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),p("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},3832:(t,e,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(t){u(this,{type:c,string:s(t),index:0})}),(function(){var t,e=l(this),r=e.string,s=e.index;return s>=r.length?a(void 0,!0):(t=n(r,s),e.index+=t.length,a(t,!1))}))},5442:(t,e,r)=>{"use strict";r(5695)},85:(t,e,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:(t,e,r)=>{"use strict";r(5442);var n=r(6656);r(85),t.exports=n}},e={};function r(n){var s=e[n];if(void 0!==s)return s.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&(!t||!/^http(s?):/.test(t));)t=n[s--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t})();var n={};return(()=>{"use strict";r.r(n),r.d(n,{detect:()=>Vs,lexicalAnalysis:()=>f,mediaTypes:()=>Ls,namespace:()=>Cs,parse:()=>Ds,syntacticAnalysis:()=>Ms});var t={};r.r(t),r.d(t,{hasElementSourceMap:()=>qn,includesClasses:()=>Vn,includesSymbols:()=>Ln,isAnnotationElement:()=>In,isArrayElement:()=>Pn,isBooleanElement:()=>jn,isCommentElement:()=>Mn,isElement:()=>En,isLinkElement:()=>Nn,isMemberElement:()=>On,isNullElement:()=>An,isNumberElement:()=>Sn,isObjectElement:()=>kn,isParseResultElement:()=>Cn,isPrimitiveElement:()=>Rn,isRefElement:()=>Tn,isSourceMapElement:()=>Fn,isStringElement:()=>xn});var e=r(3833),s=r.n(e),i=r(1212);const o=class extends i{constructor(t,e,r){if(super(t,e,r),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!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:t}=r;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}};class a extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(o,t)}constructor(t,e){if(super(t,e),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!=e&&"object"==typeof e&&Object.hasOwn(e,"cause")&&!("cause"in this)){const{cause:t}=e;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}}const c=a,u=r.p+"d396281e11774e0afa7a40d620779b6d.wasm";let l=null,p=null;const f=async t=>{if(null===l&&null===p)p=s().init().then((()=>s().Language.load(u))).then((t=>{const e=new(s());return e.setLanguage(t),e})).finally((()=>{p=null})),l=await p;else if(null===l&&null!==p)l=await p;else if(null===l)throw new c("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return l.parse(t)};function _(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function h(t){return function e(r){return 0===arguments.length||_(r)?e:t.apply(this,arguments)}}const d=h((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function m(t,e,r){if(r||(r=new y),function(t){var e=typeof t;return null==t||"object"!=e&&"function"!=e}(t))return t;var n,s=function(n){var s=r.get(t);if(s)return s;for(var i in r.set(t,n),t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=e?m(t[i],!0,r):t[i]);return n};switch(d(t)){case"Object":return s(Object.create(Object.getPrototypeOf(t)));case"Array":return s([]);case"Date":return new Date(t.valueOf());case"RegExp":return n=t,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 t.slice();default:return t}}var y=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(t,e){const r=this.hash(t);let n=this.map[r];n||(this.map[r]=n=[]),n.push([t,e]),this.length+=1},t.prototype.hash=function(t){let e=[];for(var r in t)e.push(Object.prototype.toString.call(t[r]));return e.join()},t.prototype.get=function(t){if(this.length<=180){for(const e in this.map){const r=this.map[e];for(let e=0;e<r.length;e+=1){const n=r[e];if(n[0]===t)return n[1]}}return}const e=this.hash(t),r=this.map[e];if(r)for(let e=0;e<r.length;e+=1){const n=r[e];if(n[0]===t)return n[1]}},t}();const g=h((function(t){return null!=t&&"function"==typeof t.clone?t.clone():m(t,!0)}));const v=class extends c{constructor(t,e){if(super(t,e),null!=e&&"object"==typeof e){const{cause:t,...r}=e;Object.assign(this,r)}}};const b=class extends v{};const w=class extends b{};const E=class extends w{specificTagName;explicitTagName;tagKind;tagPosition;nodeCanonicalContent;node;constructor(t,e){super(t,e),void 0!==e&&(this.specificTagName=e.specificTagName,this.explicitTagName=e.explicitTagName,this.tagKind=e.tagKind,this.tagPosition=e.tagPosition,this.nodeCanonicalContent=e.nodeCanonicalContent,this.node=e.node)}};const x=class{static type="node";type="node";isMissing;children;position;constructor({children:t=[],position:e,isMissing:r=!1}={}){this.type=this.constructor.type,this.isMissing=r,this.children=t,this.position=e}clone(){const t=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((e=>{const r=Object.getOwnPropertyDescriptor(this,e);Object.defineProperty(t,e,r)})),t}};let S=function(t){return t.Scalar="Scalar",t.Sequence="Sequence",t.Mapping="Mapping",t}({});const A=class extends x{static type="tag";explicitName;kind;constructor({explicitName:t,kind:e,...r}){super({...r}),this.explicitName=t,this.kind=e}};const j=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(t){return!0}resolve(t){return t}};const k=class extends j{static uri="tag:yaml.org,2002:map";test(t){return t.tag.kind===S.Mapping}};const P=class extends j{static uri="tag:yaml.org,2002:seq";test(t){return t.tag.kind===S.Sequence}};const O=class extends j{static uri="tag:yaml.org,2002:str"};function N(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return _(r)?e:h((function(e){return t(r,e)}));default:return _(r)&&_(n)?e:_(r)?h((function(e){return t(e,n)})):_(n)?h((function(e){return t(r,e)})):t(r,n)}}}function T(t){return function e(r,n,s){switch(arguments.length){case 0:return e;case 1:return _(r)?e:N((function(e,n){return t(r,e,n)}));case 2:return _(r)&&_(n)?e:_(r)?N((function(e,r){return t(e,n,r)})):_(n)?N((function(e,n){return t(r,e,n)})):h((function(e){return t(r,n,e)}));default:return _(r)&&_(n)&&_(s)?e:_(r)&&_(n)?N((function(e,r){return t(e,r,s)})):_(r)&&_(s)?N((function(e,r){return t(e,n,r)})):_(n)&&_(s)?N((function(e,n){return t(r,e,n)})):_(r)?h((function(e){return t(e,n,s)})):_(n)?h((function(e){return t(r,e,s)})):_(s)?h((function(e){return t(r,n,e)})):t(r,n,s)}}}const I=N((function(t,e){return null==e||e!=e?t:e})),M=Number.isInteger||function(t){return t<<0===t};function C(t){return"[object String]"===Object.prototype.toString.call(t)}const F=N((function(t,e){var r=t<0?e.length+t:t;return C(e)?e.charAt(r):e[r]}));const R=N((function(t,e){return t.map((function(t){for(var r,n=e,s=0;s<t.length;){if(null==n)return;r=t[s],n=M(r)?F(r,n):n[r],s+=1}return n}))}));const q=N((function(t,e){return R([t],e)[0]}));const L=T((function(t,e,r){return I(t,q(e,r))}));function V(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,r){return e.apply(this,arguments)};case 3:return function(t,r,n){return e.apply(this,arguments)};case 4:return function(t,r,n,s){return e.apply(this,arguments)};case 5:return function(t,r,n,s,i){return e.apply(this,arguments)};case 6:return function(t,r,n,s,i,o){return e.apply(this,arguments)};case 7:return function(t,r,n,s,i,o,a){return e.apply(this,arguments)};case 8:return function(t,r,n,s,i,o,a,c){return e.apply(this,arguments)};case 9:return function(t,r,n,s,i,o,a,c,u){return e.apply(this,arguments)};case 10:return function(t,r,n,s,i,o,a,c,u,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function D(t,e,r){return function(){for(var n=[],s=0,i=t,o=0,a=!1;o<e.length||s<arguments.length;){var c;o<e.length&&(!_(e[o])||s>=arguments.length)?c=e[o]:(c=arguments[s],s+=1),n[o]=c,_(c)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,n):V(Math.max(0,i),D(t,n,r))}}const z=N((function(t,e){return 1===t?h(e):V(t,D(t,[],e))}));const U=h((function(t){return z(t.length,t)}));function G(t,e){return function(){return e.call(this,t.apply(this,arguments))}}const B=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};const $=h((function(t){return!!B(t)||!!t&&("object"==typeof t&&(!C(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));var K="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function W(t,e,r){return function(n,s,i){if($(i))return t(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return e(n,s,i,"fantasy-land/reduce");if(null!=i[K])return r(n,s,i[K]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return e(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Z(t,e,r){for(var n=0,s=r.length;n<s;){if((e=t["@@transducer/step"](e,r[n]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n+=1}return t["@@transducer/result"](e)}const Y=N((function(t,e){return V(t.length,(function(){return t.apply(e,arguments)}))}));function H(t,e,r){for(var n=r.next();!n.done;){if((e=t["@@transducer/step"](e,n.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n=r.next()}return t["@@transducer/result"](e)}function Q(t,e,r,n){return t["@@transducer/result"](r[n](Y(t["@@transducer/step"],t),e))}const X=W(Z,Q,H);var J=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();function tt(t){return new J(t)}const et=T((function(t,e,r){return X("function"==typeof t?tt(t):t,e,r)}));function rt(t,e){return function(){var r=arguments.length;if(0===r)return e();var n=arguments[r-1];return B(n)||"function"!=typeof n[t]?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const nt=T(rt("slice",(function(t,e,r){return Array.prototype.slice.call(r,t,e)})));const st=h(rt("tail",nt(1,1/0)));function it(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return V(arguments[0].length,et(G,arguments[0],st(arguments)))}var ot="\t\n\v\f\r \u2028\u2029\ufeff";const at=h("function"==typeof String.prototype.trim&&!ot.trim()&&"".trim()?function(t){return t.trim()}:function(t){var e=new RegExp("^["+ot+"]["+ot+"]*"),r=new RegExp("["+ot+"]["+ot+"]*$");return t.replace(e,"").replace(r,"")});function ct(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}function ut(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function lt(t,e,r){for(var n=0,s=r.length;n<s;){if(t(e,r[n]))return!0;n+=1}return!1}function pt(t,e){return Object.prototype.hasOwnProperty.call(e,t)}const ft="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};var _t=Object.prototype.toString;const ht=function(){return"[object Arguments]"===_t.call(arguments)?function(t){return"[object Arguments]"===_t.call(t)}:function(t){return pt("callee",t)}}();var dt=!{toString:null}.propertyIsEnumerable("toString"),mt=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],yt=function(){return arguments.propertyIsEnumerable("length")}(),gt=function(t,e){for(var r=0;r<t.length;){if(t[r]===e)return!0;r+=1}return!1},vt="function"!=typeof Object.keys||yt?h((function(t){if(Object(t)!==t)return[];var e,r,n=[],s=yt&&ht(t);for(e in t)!pt(e,t)||s&&"length"===e||(n[n.length]=e);if(dt)for(r=mt.length-1;r>=0;)pt(e=mt[r],t)&&!gt(n,e)&&(n[n.length]=e),r-=1;return n})):h((function(t){return Object(t)!==t?[]:Object.keys(t)}));const bt=vt;function wt(t,e,r,n){var s=ut(t);function i(t,e){return Et(t,e,r.slice(),n.slice())}return!lt((function(t,e){return!lt(i,e,t)}),ut(e),s)}function Et(t,e,r,n){if(ft(t,e))return!0;var s,i,o=d(t);if(o!==d(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(s=t.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!ft(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!ft(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===t)return n[a]===e;a-=1}switch(o){case"Map":return t.size===e.size&&wt(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&wt(t.values(),e.values(),r.concat([t]),n.concat([e]));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=bt(t);if(c.length!==bt(e).length)return!1;var u=r.concat([t]),l=n.concat([e]);for(a=c.length-1;a>=0;){var p=c[a];if(!pt(p,e)||!Et(e[p],t[p],u,l))return!1;a-=1}return!0}const xt=N((function(t,e){return Et(t,e,[],[])}));function St(t,e){return function(t,e,r){var n,s;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(n=1/e;r<t.length;){if(0===(s=t[r])&&1/s===n)return r;r+=1}return-1}if(e!=e){for(;r<t.length;){if("number"==typeof(s=t[r])&&s!=s)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(null===e)return t.indexOf(e,r)}for(;r<t.length;){if(xt(t[r],e))return r;r+=1}return-1}(e,t,0)>=0}function At(t,e){for(var r=0,n=e.length,s=Array(n);r<n;)s[r]=t(e[r]),r+=1;return s}function jt(t){return'"'+t.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 kt=function(t){return(t<10?"0":"")+t};const Pt="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+kt(t.getUTCMonth()+1)+"-"+kt(t.getUTCDate())+"T"+kt(t.getUTCHours())+":"+kt(t.getUTCMinutes())+":"+kt(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Ot(t,e,r){for(var n=0,s=r.length;n<s;)e=t(e,r[n]),n+=1;return e}function Nt(t,e,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!B(n)){for(var s=0;s<t.length;){if("function"==typeof n[t[s]])return n[t[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}(n))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function Tt(t){return"[object Object]"===Object.prototype.toString.call(t)}const It=function(){return this.xf["@@transducer/init"]()},Mt=function(t){return this.xf["@@transducer/result"](t)};var Ct=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=It,t.prototype["@@transducer/result"]=Mt,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function Ft(t){return function(e){return new Ct(t,e)}}const Rt=N(Nt(["fantasy-land/filter","filter"],Ft,(function(t,e){return Tt(e)?Ot((function(r,n){return t(e[n])&&(r[n]=e[n]),r}),{},bt(e)):function(t,e){for(var r=0,n=e.length,s=[];r<n;)t(e[r])&&(s[s.length]=e[r]),r+=1;return s}(t,e)})));const qt=N((function(t,e){return Rt((r=t,function(){return!r.apply(this,arguments)}),e);var r}));function Lt(t,e){var r=function(r){var n=e.concat([t]);return St(r,n)?"<Circular>":Lt(r,n)},n=function(t,e){return At((function(e){return jt(e)+": "+r(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+At(r,t).join(", ")+"))";case"[object Array]":return"["+At(r,t).concat(n(t,qt((function(t){return/^\d+$/.test(t)}),bt(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):jt(Pt(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":jt(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var s=t.toString();if("[object Object]"!==s)return s}return"{"+n(t,bt(t)).join(", ")+"}"}}const Vt=h((function(t){return Lt(t,[])}));const Dt=N((function(t,e){return z(t+1,(function(){var r=arguments[t];if(null!=r&&ct(r[e]))return r[e].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(Vt(r)+' does not have a method named "'+e+'"')}))}));const zt=Dt(1,"split");var Ut=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=It,t.prototype["@@transducer/result"]=Mt,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}();const Gt=N(Nt(["fantasy-land/map","map"],(function(t){return function(e){return new Ut(t,e)}}),(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return z(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return Ot((function(r,n){return r[n]=t(e[n]),r}),{},bt(e));default:return At(t,e)}})));const Bt=Dt(1,"join");const $t=h((function(t){return C(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()}));function Kt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return it.apply(this,$t(arguments))}const Wt=z(4,(function(t,e,r,n){return X(t("function"==typeof e?tt(e):e),r,n)}));const Zt=N((function(t,e){if(B(t)){if(B(e))return t.concat(e);throw new TypeError(Vt(e)+" is not an array")}if(C(t)){if(C(e))return t+e;throw new TypeError(Vt(e)+" is not a string")}if(null!=t&&ct(t["fantasy-land/concat"]))return t["fantasy-land/concat"](e);if(null!=t&&ct(t.concat))return t.concat(e);throw new TypeError(Vt(t)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Yt=xt("");const Ht=N((function(t,e){if(t===e)return e;function r(t,e){if(t>e!=e>t)return e>t?e:t}var n=r(t,e);if(void 0!==n)return n;var s=r(typeof t,typeof e);if(void 0!==s)return s===typeof t?t:e;var i=Vt(t),o=r(i,Vt(e));return void 0!==o&&o===i?t:e}));const Qt=N((function(t,e){if(null!=e)return M(t)?F(t,e):e[t]}));const Xt=N((function(t,e){return Gt(Qt(t),e)}));const Jt=h((function(t){return z(et(Ht,0,Xt("length",t)),(function(){for(var e=0,r=t.length;e<r;){if(t[e].apply(this,arguments))return!0;e+=1}return!1}))}));var te=function(t,e){switch(arguments.length){case 0:return te;case 1:return function e(r){return 0===arguments.length?e:ft(t,r)};default:return ft(t,e)}};const ee=te;const re=z(1,it(d,ee("GeneratorFunction")));const ne=z(1,it(d,ee("AsyncFunction")));const se=Jt([it(d,ee("Function")),re,ne]);const ie=N((function(t,e){return t&&e}));function oe(t,e,r){for(var n=r.next();!n.done;)e=t(e,n.value),n=r.next();return e}function ae(t,e,r,n){return r[n](t,e)}const ce=W(Ot,ae,oe);const ue=N((function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(r){return t(r)(e(r))}:ce((function(t,r){return function(t,e){var r;e=e||[];var n=(t=t||[]).length,s=e.length,i=[];for(r=0;r<n;)i[i.length]=t[r],r+=1;for(r=0;r<s;)i[i.length]=e[r],r+=1;return i}(t,Gt(r,e))}),[],t)}));const le=N((function(t,e){var r=z(t,e);return z(t,(function(){return Ot(ue,Gt(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const pe=h((function(t){return le(t.length,t)}));const fe=N((function(t,e){return ct(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:pe(ie)(t,e)}));const _e=N((function(t,e){return z(et(Ht,0,Xt("length",e)),(function(){var r=arguments,n=this;return t.apply(n,At((function(t){return t.apply(n,r)}),e))}))}));function he(t){return t}const de=h(he);const me=z(1,it(d,ee("Number")));var ye=fe(me,isFinite);var ge=z(1,ye);const ve=se(Number.isFinite)?z(1,Y(Number.isFinite,Number)):ge;var be=fe(ve,_e(xt,[Math.floor,de]));var we=z(1,be);const Ee=se(Number.isInteger)?z(1,Y(Number.isInteger,Number)):we;const xe=h((function(t){return z(t.length,(function(e,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=e,t.apply(this,n)}))}));const Se=pe(h((function(t){return!t})));const Ae=Se(ve);const je=z(1,fe(me,N((function(t,e){return t>e}))(0)));var ke=U((function(t,e){var r=Number(e);if(r!==e&&(r=0),je(r))throw new RangeError("repeat count must be non-negative");if(Ae(r))throw new RangeError("repeat count must be less than infinity");if(r=Math.floor(r),0===t.length||0===r)return"";if(t.length*r>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var n=t.length*r;r=Math.floor(Math.log(r)/Math.log(2));for(var s=t;r;)s+=t,r-=1;return s+=s.substring(0,n-s.length)})),Pe=xe(Dt(1,"repeat"));const Oe=se(String.prototype.repeat)?Pe:ke;var Ne=h((function(t){return function(){return t}}))(void 0);const Te=xt(Ne());const Ie=T((function(t,e,r){return r.replace(t,e)}));var Me=Ie(/[\s\uFEFF\xA0]+$/,""),Ce=Dt(0,"trimEnd");const Fe=se(String.prototype.trimEnd)?Ce:Me;var Re=Ie(/^[\s\uFEFF\xA0]+/,""),qe=Dt(0,"trimStart");const Le=se(String.prototype.trimStart)?qe:Re;var Ve=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=It,t.prototype["@@transducer/result"]=Mt,t.prototype["@@transducer/step"]=function(t,e){if(this.f){if(this.f(e))return t;this.f=null}return this.xf["@@transducer/step"](t,e)},t}();function De(t){return function(e){return new Ve(t,e)}}const ze=N(Nt(["dropWhile"],De,(function(t,e){for(var r=0,n=e.length;r<n&&t(e[r]);)r+=1;return nt(r,1/0,e)})));const Ue=xe(N(St));const Ge=U((function(t,e){return it(zt(""),ze(Ue(t)),Bt(""))(e)}));const Be=xe(Zt);var $e=r(6850);const Ke=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,We=t=>{const e=(t=>{const e=t.match(Ke),r=L("",["groups","indentation"],e);return Yt(r)?void 0:parseInt(r,10)})(t);if(Ee(e))return Oe(" ",e);const r=L("",[1],t.split("\n")),n=L(0,["groups","indentation","length"],r.match(/^(?<indentation>[ ]*)/));return Oe(" ",n)},Ze=t=>{const e=t.match(Ke),r=L("",["groups","chomping"],e);return Yt(r)?void 0:r},Ye=(t,e)=>Te(t)?`${Fe(e)}\n`:"-"===t?Fe(e):e,He=t=>t.replace(/\r\n/g,"\n"),Qe=t=>t.replace(/(\n)?\n([^\n]+)/g,((t,e,r)=>e?t:` ${r.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Xe=U(((t,e)=>e.replace(new RegExp(`^${t}`),"").replace(new RegExp(`${t}$`),""))),Je=it(He,at,Qe,zt("\n"),Gt(Le),Bt("\n")),tr=it(He,at,Qe,zt("\n"),Gt(Le),Bt("\n"),Xe("'")),er=it(He,at,(t=>t.replace(/\\\n\s*/g,"")),Qe,$e.MH,zt("\n"),Gt(Le),Bt("\n"),Xe('"'));let rr=function(t){return t.Plain="Plain",t.SingleQuoted="SingleQuoted",t.DoubleQuoted="DoubleQuoted",t.Literal="Literal",t.Folded="Folded",t.Explicit="Explicit",t.SinglePair="SinglePair",t.NextLine="NextLine",t.InLine="InLine",t}({}),nr=function(t){return t.Flow="Flow",t.Block="Block",t}({});const sr=class{static test(t){return t.tag.kind===S.Scalar&&"string"==typeof t.content}static canonicalFormat(t){let e=t.content;const r=t.clone();return t.style===rr.Plain?e=Je(t.content):t.style===rr.SingleQuoted?e=tr(t.content):t.style===rr.DoubleQuoted?e=er(t.content):t.style===rr.Literal?e=(t=>{const e=We(t),r=Ze(t),n=He(t),s=st(n.split("\n")),i=Kt(Gt(Ge(e)),Gt(Be("\n"))),o=Wt(i,Zt,"",s);return Ye(r,o)})(t.content):t.style===rr.Folded&&(e=(t=>{const e=We(t),r=Ze(t),n=He(t),s=st(n.split("\n")),i=Kt(Gt(Ge(e)),Gt(Be("\n"))),o=Wt(i,Zt,"",s),a=Qe(o);return Ye(r,a)})(t.content)),r.content=e,r}static resolve(t){return t}};const ir=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new k),this.registerTag(new P),this.registerTag(new O)}toSpecificTagName(t){let e=t.tag.explicitName;return"!"===t.tag.explicitName?t.tag.kind===S.Scalar?e=O.uri:t.tag.kind===S.Sequence?e=P.uri:t.tag.kind===S.Mapping&&(e=k.uri):t.tag.explicitName.startsWith("!<")?e=t.tag.explicitName.replace(/^!</,"").replace(/>$/,""):t.tag.explicitName.startsWith("!!")&&(e=`tag:yaml.org,2002:${t.tag.explicitName.replace(/^!!/,"")}`),e}registerTagDirective(t){this.tagDirectives.push({handle:t.parameters.handle,prefix:t.parameters.prefix})}registerTag(t,e=!1){return e?this.tags.unshift(t):this.tags.push(t),this}overrideTag(t){return this.tags=this.tags.filter((e=>e.tag===t.tag)),this.tags.push(t),this}resolve(t){const e=this.toSpecificTagName(t);if("?"===e)return t;let r=t;sr.test(t)&&(r=sr.canonicalFormat(t));const n=this.tags.find((t=>(null==t?void 0:t.tag)===e));if(void 0===n)throw new E(`Tag "${e}" was not recognized.`,{specificTagName:e,explicitTagName:t.tag.explicitName,tagKind:t.tag.kind,tagPosition:g(t.tag.position),node:t.clone()});if(!n.test(r))throw new E(`Node couldn't be resolved against the tag "${e}"`,{specificTagName:e,explicitTagName:t.tag.explicitName,tagKind:t.tag.kind,tagPosition:g(t.tag.position),nodeCanonicalContent:r.content,node:t.clone()});return n.resolve(r)}};const or=class extends j{static uri="tag:yaml.org,2002:bool";test(t){return/^(true|false)$/.test(t.content)}resolve(t){const e="true"===t.content,r=t.clone();return r.content=e,r}};const ar=class extends j{static uri="tag:yaml.org,2002:float";test(t){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(t.content)}resolve(t){const e=parseFloat(t.content),r=t.clone();return r.content=e,r}};const cr=class extends j{static uri="tag:yaml.org,2002:int";test(t){return/^-?(0|[1-9][0-9]*)$/.test(t.content)}resolve(t){const e=parseInt(t.content,10),r=t.clone();return r.content=e,r}};const ur=class extends j{static uri="tag:yaml.org,2002:null";test(t){return/^null$/.test(t.content)}resolve(t){const e=t.clone();return e.content=null,e}};const lr=class extends ir{constructor(){super(),this.registerTag(new or,!0),this.registerTag(new ar,!0),this.registerTag(new cr,!0),this.registerTag(new ur,!0)}toSpecificTagName(t){let e=super.toSpecificTagName(t);if("?"===e)if(t.tag.vkind===S.Sequence)e=P.uri;else if(t.tag.kind===S.Mapping)e=k.uri;else if(t.tag.kind===S.Scalar){const r=this.tags.find((e=>e.test(t)));e=(null==r?void 0:r.tag)||"?"}return e}};const pr=class extends x{anchor;tag;style;styleGroup;constructor({anchor:t,tag:e,style:r,styleGroup:n,...s}){super({...s}),this.anchor=t,this.tag=e,this.style=r,this.styleGroup=n}};const fr=class extends pr{static type="scalar";content;constructor({content:t,...e}){super({...e}),this.content=t}};const _r=class extends b{},hr=(t,e)=>null!=e&&"object"==typeof e&&"type"in e&&e.type===t,dr=t=>hr("mapping",t),mr=t=>hr("sequence",t),yr=t=>hr("keyValuePair",t),gr=t=>hr("scalar",t),vr=t=>hr("alias",t);const br=class{addAnchor(t){if(!(t=>hr("anchor",t))(t.anchor))throw new _r("Expected YAML anchor to be attached the the YAML AST node.",{node:t})}resolveAlias(t){return new fr({content:t.content,style:rr.Plain,styleGroup:nr.Flow})}},wr=(t,e,r)=>{const n=t[e];if(null!=n){if(!r&&"function"==typeof n)return n;const t=r?n.leave:n.enter;if("function"==typeof t)return t}else{const n=r?t.leave:t.enter;if(null!=n){if("function"==typeof n)return n;const t=n[e];if("function"==typeof t)return t}}return null},Er={},xr=t=>null==t?void 0:t.type,Sr=t=>"string"==typeof xr(t),Ar=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),jr=(t,{visitFnGetter:e=wr,nodeTypeGetter:r=xr,breakSymbol:n=Er,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(t.length).fill(a);return{enter(u,...l){let p=u,f=!1;for(let _=0;_<t.length;_+=1)if(c[_]===a){const a=e(t[_],r(p),!1);if("function"==typeof a){const e=a.call(t[_],p,...l);if(e===i)c[_]=u;else if(e===n)c[_]=n;else{if(e===s)return e;if(void 0!==e){if(!o)return e;p=e,f=!0}}}}return f?p:void 0},leave(s,...o){for(let u=0;u<t.length;u+=1)if(c[u]===a){const a=e(t[u],r(s),!0);if("function"==typeof a){const e=a.call(t[u],s,...o);if(e===n)c[u]=n;else if(void 0!==e&&e!==i)return e}}else c[u]===s&&(c[u]=a)}}};jr[Symbol.for("nodejs.util.promisify.custom")]=(t,{visitFnGetter:e=wr,nodeTypeGetter:r=xr,breakSymbol:n=Er,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(t.length).fill(a);return{async enter(u,...l){let p=u,f=!1;for(let _=0;_<t.length;_+=1)if(c[_]===a){const a=e(t[_],r(p),!1);if("function"==typeof a){const e=await a.call(t[_],p,...l);if(e===i)c[_]=u;else if(e===n)c[_]=n;else{if(e===s)return e;if(void 0!==e){if(!o)return e;p=e,f=!0}}}}return f?p:void 0},async leave(s,...o){for(let u=0;u<t.length;u+=1)if(c[u]===a){const a=e(t[u],r(s),!0);if("function"==typeof a){const e=await a.call(t[u],s,...o);if(e===n)c[u]=n;else if(void 0!==e&&e!==i)return e}}else c[u]===s&&(c[u]=a)}}};const kr=(t,e,{keyMap:r=null,state:n={},breakSymbol:s=Er,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=wr,nodeTypeGetter:c=xr,nodePredicate:u=Sr,nodeCloneFn:l=Ar,detectCycles:p=!0}={})=>{const f=r||{};let _,h,d=Array.isArray(t),m=[t],y=-1,g=[],b=t;const w=[],E=[];do{y+=1;const t=y===m.length;let r;const S=t&&0!==g.length;if(t){if(r=0===E.length?void 0:w.pop(),b=h,h=E.pop(),S)if(d){b=b.slice();let t=0;for(const[e,r]of g){const n=e-t;r===i?(b.splice(n,1),t+=1):b[n]=r}}else{b=l(b);for(const[t,e]of g)b[t]=e}y=_.index,m=_.keys,g=_.edits,d=_.inArray,_=_.prev}else if(h!==i&&void 0!==h){if(r=d?y:m[y],b=h[r],b===i||void 0===b)continue;w.push(r)}let A;if(!Array.isArray(b)){if(!u(b))throw new v(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&E.includes(b)){w.pop();continue}const i=a(e,c(b),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;A=i.call(e,b,r,h,w,E)}if(A===s)break;if(A===o){if(!t){w.pop();continue}}else if(void 0!==A&&(g.push([r,A]),!t)){if(!u(A)){w.pop();continue}b=A}}var x;if(void 0===A&&S&&g.push([r,b]),!t)_={inArray:d,index:y,keys:m,edits:g,prev:_},d=Array.isArray(b),m=d?b:null!==(x=f[c(b)])&&void 0!==x?x:[],y=-1,g=[],h!==i&&void 0!==h&&E.push(h),h=b}while(void 0!==_);return 0!==g.length?g[g.length-1][1]:t};kr[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=null,state:n={},breakSymbol:s=Er,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=wr,nodeTypeGetter:c=xr,nodePredicate:u=Sr,nodeCloneFn:l=Ar,detectCycles:p=!0}={})=>{const f=r||{};let _,h,d=Array.isArray(t),m=[t],y=-1,g=[],b=t;const w=[],E=[];do{y+=1;const t=y===m.length;let r;const S=t&&0!==g.length;if(t){if(r=0===E.length?void 0:w.pop(),b=h,h=E.pop(),S)if(d){b=b.slice();let t=0;for(const[e,r]of g){const n=e-t;r===i?(b.splice(n,1),t+=1):b[n]=r}}else{b=l(b);for(const[t,e]of g)b[t]=e}y=_.index,m=_.keys,g=_.edits,d=_.inArray,_=_.prev}else if(h!==i&&void 0!==h){if(r=d?y:m[y],b=h[r],b===i||void 0===b)continue;w.push(r)}let A;if(!Array.isArray(b)){if(!u(b))throw new v(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&E.includes(b)){w.pop();continue}const i=a(e,c(b),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;A=await i.call(e,b,r,h,w,E)}if(A===s)break;if(A===o){if(!t){w.pop();continue}}else if(void 0!==A&&(g.push([r,A]),!t)){if(!u(A)){w.pop();continue}b=A}}var x;if(void 0===A&&S&&g.push([r,b]),!t)_={inArray:d,index:y,keys:m,edits:g,prev:_},d=Array.isArray(b),m=d?b:null!==(x=f[c(b)])&&void 0!==x?x:[],y=-1,g=[],h!==i&&void 0!==h&&E.push(h),h=b}while(void 0!==_);return 0!==g.length?g[g.length-1][1]:t};class Pr{static type="point";type=Pr.type;row;column;char;constructor({row:t,column:e,char:r}){this.row=t,this.column=e,this.char=r}}class Or{static type="position";type=Or.type;start;end;constructor({start:t,end:e}){this.start=t,this.end=e}}const Nr=Or;const Tr=class extends x{static type="anchor";name;constructor({name:t,...e}){super({...e}),this.name=t}};class Ir extends x{static type="stream"}Object.defineProperty(Ir.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((t=>(t=>hr("document",t))(t)||(t=>hr("comment",t))(t))):[]},enumerable:!0});const Mr=Ir;const Cr=F(0);const Fr=class extends x{static type="parseResult";get rootNode(){return Cr(this.children)}};const Rr="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),r=1,n=arguments.length;r<n;){var s=arguments[r];if(null!=s)for(var i in s)pt(i,s)&&(e[i]=s[i]);r+=1}return e};const qr=N((function(t,e){return Rr({},t,e)}));const Lr=class extends x{static type="directive";name;parameters;constructor({name:t,parameters:e,...r}){super({...r}),this.name=t,this.parameters=qr({version:void 0,handle:void 0,prefix:void 0},e)}};const Vr=class extends x{static type="document"};const Dr=class extends pr{};class zr extends Dr{static type="mapping"}Object.defineProperty(zr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(yr):[]},enumerable:!0});const Ur=zr;class Gr extends x{static type="keyValuePair";styleGroup;constructor({styleGroup:t,...e}){super({...e}),this.styleGroup=t}}Object.defineProperties(Gr.prototype,{key:{get(){return this.children.filter((t=>gr(t)||dr(t)||mr(t)))[0]},enumerable:!0},value:{get(){const{key:t,children:e}=this;return e.filter((e=>(e=>e!==t)(e)&&(t=>gr(t)||dr(t)||mr(t)||vr(t))(e)))[0]},enumerable:!0}});const Br=Gr;class $r extends Dr{static type="sequence"}Object.defineProperty($r.prototype,"content",{get(){const{children:t}=this;return Array.isArray(t)?t.filter((t=>mr(t)||dr(t)||gr(t)||vr(t))):[]},enumerable:!0});const Kr=$r;const Wr=class extends x{static type="comment";content;constructor({content:t,...e}){super({...e}),this.content=t}};const Zr=class extends x{static type="alias";content;constructor({content:t,...e}){super({...e}),this.content=t}};const Yr=class extends x{static type="literal";value;constructor({value:t,...e}={}){super({...e}),this.value=t}};const Hr=class extends x{static type="error";value;isUnexpected;constructor({value:t,isUnexpected:e=!1,...r}={}){super({...r}),this.value=t,this.isUnexpected=e}};const Qr=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;constructor(t){this.type=t.nodeType,this.startPosition=t.startPosition,this.endPosition=t.endPosition,this.startIndex=t.startIndex,this.endIndex=t.endIndex,this.text=t.nodeText,this.isNamed=t.nodeIsNamed,this.isMissing=t.nodeIsMissing}get keyNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((t=>"key"===t.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((t=>"value"===t.fieldName))}get tag(){let{previousSibling:t}=this;for(;void 0!==t&&"tag"!==t.type;)({previousSibling:t}=t);return t}get anchor(){let{previousSibling:t}=this;for(;void 0!==t&&"anchor"!==t.type;)({previousSibling:t}=t);return t}get firstNamedChild(){return this.children.find((t=>t.isNamed))}setFieldName(t){return"function"==typeof t.currentFieldName?this.fieldName=t.currentFieldName():this.fieldName=t.currentFieldName,this}setHasError(t){return"function"==typeof t.currentNode?this.hasError=t.currentNode().hasError():this.hasError=t.currentNode.hasError(),this}setPreviousSibling(t){this.previousSibling=t}pushChildren(...t){this.children.push(...t)}},Xr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Jr=t=>Array.isArray(t)||Sr(t);class tn{static isScalar=this.isKind("scalar");static isMapping=this.isKind("mapping");static isSequence=this.isKind("sequence");static isKind(t){return e=>null!=e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.endsWith(t)}static toPosition(t){const e=new Pr({row:t.startPosition.row,column:t.startPosition.column,char:t.startIndex}),r=new Pr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex});return new Nr({start:e,end:r})}static kindNodeToYamlAnchor(t){const{anchor:e}=t;if(void 0!==e)return new Tr({name:e.text,position:tn.toPosition(e)})}static hasKeyValuePairEmptyKey(t){return("block_mapping_pair"===t.type||"flow_pair"===t.type)&&void 0===t.keyNode}static hasKeyValuePairEmptyValue(t){return("block_mapping_pair"===t.type||"flow_pair"===t.type)&&void 0===t.valueNode}static kindNodeToYamlTag(t){const{tag:e}=t,r=e?.text||("plain_scalar"===t.type?"?":"!"),n=t.type.endsWith("mapping")?S.Mapping:t.type.endsWith("sequence")?S.Sequence:S.Scalar,s=e?tn.toPosition(e):void 0;return new A({explicitName:r,kind:n,position:s})}schema;referenceManager;stream={enter:t=>{const e=tn.toPosition(t);return new Mr({children:t.children,position:e,isMissing:t.isMissing})},leave:t=>new Fr({children:[t]})};yaml_directive={enter:t=>{const e=tn.toPosition(t),r=t?.firstNamedChild?.text;return new Lr({position:e,name:"%YAML",parameters:{version:r}})}};tag_directive={enter:t=>{const e=tn.toPosition(t),r=t.children[0],n=t.children[1],s=new Lr({position:e,name:"%TAG",parameters:{handle:r?.text,prefix:n?.text}});return this.schema.registerTagDirective(s),s}};reserved_directive={enter:t=>{const e=tn.toPosition(t),r=t.children[0],n=t.children[1],s=t.children[2];return new Lr({position:e,name:r?.text,parameters:{handle:n?.text,prefix:s?.text}})}};document={enter:t=>{const e=tn.toPosition(t);return new Vr({children:t.children,position:e,isMissing:t.isMissing})},leave:t=>{t.children=t.children.flat()}};block_node={enter:t=>t.children};flow_node={enter:t=>{const[e]=t.children.slice(-1);if(tn.isScalar(e)||tn.isMapping(e)||tn.isSequence(e))return t.children;const r=new Pr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),n=new fr({content:"",anchor:tn.kindNodeToYamlAnchor(e),tag:tn.kindNodeToYamlTag(e),position:new Nr({start:r,end:r}),styleGroup:nr.Flow,style:rr.Plain});return this.registerAnchor(n),[...t.children,n]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:t=>{const e=tn.toPosition(t),r=tn.kindNodeToYamlTag(t),n=tn.kindNodeToYamlAnchor(t),s=new Ur({children:t.children,position:e,anchor:n,tag:r,styleGroup:nr.Block,style:rr.NextLine,isMissing:t.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};block_mapping_pair={enter:t=>{const e=tn.toPosition(t),r=[...t.children];if(tn.hasKeyValuePairEmptyKey(t)){const e=this.createKeyValuePairEmptyKey(t);r.unshift(e)}if(tn.hasKeyValuePairEmptyValue(t)){const e=this.createKeyValuePairEmptyValue(t);r.push(e)}return new Br({children:r,position:e,styleGroup:nr.Block,isMissing:t.isMissing})}};flow_mapping={enter:t=>{const e=tn.toPosition(t),r=tn.kindNodeToYamlTag(t),n=tn.kindNodeToYamlAnchor(t),s=new Ur({children:t.children,position:e,anchor:n,tag:r,styleGroup:nr.Flow,style:rr.Explicit,isMissing:t.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};flow_pair={enter:t=>{const e=tn.toPosition(t),r=[...t.children];if(tn.hasKeyValuePairEmptyKey(t)){const e=this.createKeyValuePairEmptyKey(t);r.unshift(e)}if(tn.hasKeyValuePairEmptyValue(t)){const e=this.createKeyValuePairEmptyValue(t);r.push(e)}return new Br({children:r,position:e,styleGroup:nr.Flow,isMissing:t.isMissing})}};keyValuePair={leave:t=>{t.children=t.children.flat()}};block_sequence={enter:t=>{const e=tn.toPosition(t),r=tn.kindNodeToYamlTag(t),n=tn.kindNodeToYamlAnchor(t),s=new Kr({children:t.children,position:e,anchor:n,tag:r,styleGroup:nr.Block,style:rr.NextLine});return this.registerAnchor(s),this.schema.resolve(s)}};block_sequence_item={enter:t=>{if(t.children.length>1)return t.children;const e=new Pr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex});return[new fr({content:"",tag:new A({explicitName:"?",kind:S.Scalar}),position:new Nr({start:e,end:e}),styleGroup:nr.Flow,style:rr.Plain})]}};flow_sequence={enter:t=>{const e=tn.toPosition(t),r=tn.kindNodeToYamlTag(t),n=tn.kindNodeToYamlAnchor(t),s=new Kr({children:t.children.flat(),position:e,anchor:n,tag:r,styleGroup:nr.Flow,style:rr.Explicit});return this.registerAnchor(s),this.schema.resolve(s)}};sequence={leave:t=>{t.children=t.children.flat(1/0)}};plain_scalar={enter:t=>{const e=tn.toPosition(t),r=tn.kindNodeToYamlTag(t),n=tn.kindNodeToYamlAnchor(t),s=new fr({content:t.text,anchor:n,tag:r,position:e,styleGroup:nr.Flow,style:rr.Plain});return this.registerAnchor(s),this.schema.resolve(s)}};single_quote_scalar={enter:t=>{const e=tn.toPosition(t),r=tn.kindNodeToYamlTag(t),n=tn.kindNodeToYamlAnchor(t),s=new fr({content:t.text,anchor:n,tag:r,position:e,styleGroup:nr.Flow,style:rr.SingleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};double_quote_scalar={enter:t=>{const e=tn.toPosition(t),r=tn.kindNodeToYamlTag(t),n=tn.kindNodeToYamlAnchor(t),s=new fr({content:t.text,anchor:n,tag:r,position:e,styleGroup:nr.Flow,style:rr.DoubleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};block_scalar={enter:t=>{const e=tn.toPosition(t),r=tn.kindNodeToYamlTag(t),n=tn.kindNodeToYamlAnchor(t),s=t.text.startsWith("|")?rr.Literal:t.text.startsWith(">")?rr.Folded:rr.Plain,i=new fr({content:t.text,anchor:n,tag:r,position:e,styleGroup:nr.Block,style:s});return this.registerAnchor(i),this.schema.resolve(i)}};comment={enter:t=>new Wr({content:t.text})};alias={enter:t=>{const e=new Zr({content:t.text});return this.referenceManager.resolveAlias(e)}};constructor(t){this.schema=t}enter(t){if(t instanceof Qr&&!t.isNamed){const e=tn.toPosition(t),r=t.type||t.text,{isMissing:n}=t;return new Yr({value:r,position:e,isMissing:n})}}ERROR(t,e,r,n){const s=tn.toPosition(t),i=new Hr({children:t.children,position:s,isUnexpected:!t.hasError,isMissing:t.isMissing,value:t.text});return 0===n.length?new Fr({children:[i]}):i}registerAnchor(t){void 0!==t.anchor&&this.referenceManager.addAnchor(t)}createKeyValuePairEmptyKey(t){const e=new Pr({row:t.startPosition.row,column:t.startPosition.column,char:t.startIndex}),{keyNode:r}=t,n=r?.children||[],s=n.find(tn.isKind("tag")),i=n.find(tn.isKind("anchor")),o=new A(void 0!==s?{explicitName:s.text,kind:S.Scalar,position:tn.toPosition(s)}:{explicitName:"?",kind:S.Scalar}),a=void 0!==i?new Tr({name:i.text,position:tn.toPosition(i)}):void 0,c=new fr({content:"",position:new Nr({start:e,end:e}),tag:o,anchor:a,styleGroup:nr.Flow,style:rr.Plain});return this.registerAnchor(c),c}createKeyValuePairEmptyValue(t){const e=new Pr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),{valueNode:r}=t,n=r?.children||[],s=n.find(tn.isKind("tag")),i=n.find(tn.isKind("anchor")),o=new A(void 0!==s?{explicitName:s.text,kind:S.Scalar,position:tn.toPosition(s)}:{explicitName:"?",kind:S.Scalar}),a=void 0!==i?new Tr({name:i.text,position:tn.toPosition(i)}):void 0,c=new fr({content:"",position:new Nr({start:e,end:e}),tag:o,anchor:a,styleGroup:nr.Flow,style:rr.Plain});return this.registerAnchor(c),c}}const en=tn;const rn=z(1,it(d,ee("String")));var nn=r(8326);var sn=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=It,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var r;return this.f(e)||(this.all=!1,t=(r=this.xf["@@transducer/step"](t,!1))&&r["@@transducer/reduced"]?r:{"@@transducer/value":r,"@@transducer/reduced":!0}),t},t}();function on(t){return function(e){return new sn(t,e)}}const an=N(Nt(["all"],on,(function(t,e){for(var r=0;r<e.length;){if(!t(e[r]))return!1;r+=1}return!0})));class cn extends nn.Om{constructor(t,e,r){super(t,e,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}const un=cn;class ln extends nn.Om{constructor(t,e,r){super(t,e,r),this.element="comment"}}const pn=ln;class fn extends nn.wE{constructor(t,e,r){super(t,e,r),this.element="parseResult"}get api(){return this.children.filter((t=>t.classes.contains("api"))).first}get results(){return this.children.filter((t=>t.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((t=>"annotation"===t.element))}get warnings(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("warning")))}get errors(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("error")))}get isEmpty(){return this.children.reject((t=>"annotation"===t.element)).isEmpty}replaceResult(t){const{result:e}=this;if(Te(e))return!1;const r=this.content.findIndex((t=>t===e));return-1!==r&&(this.content[r]=t,!0)}}const _n=fn;class hn extends nn.wE{constructor(t,e,r){super(t,e,r),this.element="sourceMap"}get positionStart(){return this.children.filter((t=>t.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((t=>t.classes.contains("position"))).get(1)}set position(t){if(void 0===t)return;const e=new nn.wE([t.start.row,t.start.column,t.start.char]),r=new nn.wE([t.end.row,t.end.column,t.end.char]);e.classes.push("position"),r.classes.push("position"),this.push(e).push(r)}}const dn=hn,mn=(t,e)=>"object"==typeof e&&null!==e&&t in e&&"function"==typeof e[t],yn=t=>"object"==typeof t&&null!=t&&"_storedElement"in t&&"string"==typeof t._storedElement&&"_content"in t,gn=(t,e)=>"object"==typeof e&&null!==e&&"primitive"in e&&("function"==typeof e.primitive&&e.primitive()===t),vn=(t,e)=>"object"==typeof e&&null!==e&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof nn.wE)&&e.classes.includes(t),bn=(t,e)=>"object"==typeof e&&null!==e&&"element"in e&&e.element===t,wn=t=>t({hasMethod:mn,hasBasicElementProps:yn,primitiveEq:gn,isElementType:bn,hasClass:vn}),En=wn((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof nn.Hg||t(r)&&e(void 0,r))),xn=wn((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof nn.Om||t(r)&&e("string",r))),Sn=wn((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof nn.kT||t(r)&&e("number",r))),An=wn((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof nn.Os||t(r)&&e("null",r))),jn=wn((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof nn.bd||t(r)&&e("boolean",r))),kn=wn((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof nn.Sh||t(n)&&e("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Pn=wn((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof nn.wE&&!(n instanceof nn.Sh)||t(n)&&e("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),On=wn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof nn.Pr||t(n)&&e("member",n)&&r(void 0,n))),Nn=wn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof nn.Ft||t(n)&&e("link",n)&&r(void 0,n))),Tn=wn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof nn.sI||t(n)&&e("ref",n)&&r(void 0,n))),In=wn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof un||t(n)&&e("annotation",n)&&r("array",n))),Mn=wn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pn||t(n)&&e("comment",n)&&r("string",n))),Cn=wn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof _n||t(n)&&e("parseResult",n)&&r("array",n))),Fn=wn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof dn||t(n)&&e("sourceMap",n)&&r("array",n))),Rn=t=>bn("object",t)||bn("array",t)||bn("boolean",t)||bn("number",t)||bn("string",t)||bn("null",t)||bn("member",t),qn=t=>Fn(t.meta.get("sourceMap")),Ln=(t,e)=>{if(0===t.length)return!0;const r=e.attributes.get("symbols");return!!Pn(r)&&an(Ue(r.toValue()),t)},Vn=(t,e)=>0===t.length||an(Ue(e.classes.toValue()),t);const Dn=class extends v{value;constructor(t,e){super(t,e),void 0!==e&&(this.value=e.value)}};const zn=class extends Dn{};const Un=class extends Dn{},Gn=(t,e={})=>{const{visited:r=new WeakMap}=e,n={...e,visited:r};if(r.has(t))return r.get(t);if(t instanceof nn.KeyValuePair){const{key:e,value:s}=t,i=En(e)?Gn(e,n):e,o=En(s)?Gn(s,n):s,a=new nn.KeyValuePair(i,o);return r.set(t,a),a}if(t instanceof nn.ot){const e=t=>Gn(t,n),s=[...t].map(e),i=new nn.ot(s);return r.set(t,i),i}if(t instanceof nn.G6){const e=t=>Gn(t,n),s=[...t].map(e),i=new nn.G6(s);return r.set(t,i),i}if(En(t)){const e=Kn(t);if(r.set(t,e),t.content)if(En(t.content))e.content=Gn(t.content,n);else if(t.content instanceof nn.KeyValuePair)e.content=Gn(t.content,n);else if(Array.isArray(t.content)){const r=t=>Gn(t,n);e.content=t.content.map(r)}else e.content=t.content;else e.content=t.content;return e}throw new zn("Value provided to cloneDeep function couldn't be cloned",{value:t})};Gn.safe=t=>{try{return Gn(t)}catch{return t}};const Bn=t=>{const{key:e,value:r}=t;return new nn.KeyValuePair(e,r)},$n=t=>{const e=new t.constructor;if(e.element=t.element,t.meta.length>0&&(e._meta=Gn(t.meta)),t.attributes.length>0&&(e._attributes=Gn(t.attributes)),En(t.content)){const r=t.content;e.content=$n(r)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof nn.KeyValuePair?e.content=Bn(t.content):e.content=t.content;return e},Kn=t=>{if(t instanceof nn.KeyValuePair)return Bn(t);if(t instanceof nn.ot)return(t=>{const e=[...t];return new nn.ot(e)})(t);if(t instanceof nn.G6)return(t=>{const e=[...t];return new nn.G6(e)})(t);if(En(t))return $n(t);throw new Un("Value provided to cloneShallow function couldn't be cloned",{value:t})};Kn.safe=t=>{try{return Kn(t)}catch{return t}};const Wn=t=>kn(t)?"ObjectElement":Pn(t)?"ArrayElement":On(t)?"MemberElement":xn(t)?"StringElement":jn(t)?"BooleanElement":Sn(t)?"NumberElement":An(t)?"NullElement":Nn(t)?"LinkElement":Tn(t)?"RefElement":void 0,Zn=t=>En(t)?Kn(t):Ar(t),Yn=it(Wn,rn),Hn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const Qn=(t,e,{keyMap:r=Hn,...n}={})=>kr(t,e,{keyMap:r,nodeTypeGetter:Wn,nodePredicate:Yn,nodeCloneFn:Zn,...n});Qn[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=Hn,...n}={})=>kr[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:r,nodeTypeGetter:Wn,nodePredicate:Yn,nodeCloneFn:Zn,...n});const Xn=T((function(t,e,r){var n,s={};for(n in r=r||{},e=e||{})pt(n,e)&&(s[n]=pt(n,r)?t(n,e[n],r[n]):e[n]);for(n in r)pt(n,r)&&!pt(n,s)&&(s[n]=r[n]);return s}));const Jn=T((function t(e,r,n){return Xn((function(r,n,s){return Tt(n)&&Tt(s)?t(e,n,s):e(r,n,s)}),r,n)}));const ts=N((function(t,e){return Jn((function(t,e,r){return r}),t,e)}));const es=T((function(t,e,r){return I(t,Qt(e,r))}));const rs=nt(0,-1);const ns=N((function(t,e){return t.apply(this,e)}));const ss=Se(se);var is=h((function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():B(t)?[]:C(t)?"":Tt(t)?{}:ht(t)?function(){return arguments}():function(t){var e=Object.prototype.toString.call(t);return"[object Uint8ClampedArray]"===e||"[object Int8Array]"===e||"[object Uint8Array]"===e||"[object Int16Array]"===e||"[object Uint16Array]"===e||"[object Int32Array]"===e||"[object Uint32Array]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object BigInt64Array]"===e||"[object BigUint64Array]"===e}(t)?t.constructor.from(""):void 0}));const os=is;const as=h((function(t){return null!=t&&xt(t,os(t))}));const cs=fe(z(1,se(Array.isArray)?Array.isArray:it(d,ee("Array"))),as);const us=z(3,(function(t,e,r){var n=q(t,r),s=q(rs(t),r);if(!ss(n)&&!cs(t)){var i=Y(n,s);return ns(i,e)}}));const ls=T((function(t,e,r){return t(q(e,r))}));const ps=xt(null);var fs=Se(ps);function _s(t){return _s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_s(t)}const hs=z(1,fe(fs,(function(t){return"object"===_s(t)})));var ds=it(d,ee("Object")),ms=ls(fe(se,it(Vt,xt(Vt(Object)))),["constructor"]);const ys=z(1,(function(t){if(!hs(t)||!ds(t))return!1;var e=Object.getPrototypeOf(t);return!!ps(e)||ms(e)}));class gs extends nn.g${constructor(){super(),this.register("annotation",un),this.register("comment",pn),this.register("parseResult",_n),this.register("sourceMap",dn)}}const vs=new gs,bs=t=>{const e=new gs;return ys(t)&&e.use(t),e},ws=vs,Es=()=>({predicates:{...t},namespace:ws}),xs={toolboxCreator:Es,visitorOptions:{nodeTypeGetter:Wn,exposeEdits:!0}},Ss=(t,e,r={})=>{if(0===e.length)return t;const n=ts(xs,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=e.map((t=>t(o))),c=jr(a.map(es({},"visitor")),{...i});a.forEach(us(["pre"],[]));const u=Qn(t,c,i);return a.forEach(us(["post"],[])),u};Ss[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,r={})=>{if(0===e.length)return t;const n=ts(xs,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=e.map((t=>t(o))),c=jr[Symbol.for("nodejs.util.promisify.custom")],u=Qn[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(es({},"visitor")),{...i});await Promise.allSettled(a.map(us(["pre"],[])));const p=await u(t,l,i);return await Promise.allSettled(a.map(us(["post"],[]))),p};const As=(t,{Type:e,plugins:r=[]})=>{const n=new e(t);return En(t)&&(t.meta.length>0&&(n.meta=Gn(t.meta)),t.attributes.length>0&&(n.attributes=Gn(t.attributes))),Ss(n,r,{toolboxCreator:Es,visitorOptions:{nodeTypeGetter:Wn}})},js=t=>(e,r={})=>As(e,{...r,Type:t});nn.Sh.refract=js(nn.Sh),nn.wE.refract=js(nn.wE),nn.Om.refract=js(nn.Om),nn.bd.refract=js(nn.bd),nn.Os.refract=js(nn.Os),nn.kT.refract=js(nn.kT),nn.Ft.refract=js(nn.Ft),nn.sI.refract=js(nn.sI),un.refract=js(un),pn.refract=js(pn),_n.refract=js(_n),dn.refract=js(dn);const ks={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...Hn},Ps=t=>En(t)?Wn(t):xr(t),Os=t=>En(t)||Sr(t)||Array.isArray(t);const Ns=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:t=>{const e=new _n;e._content=t.children.flat(1);const r=e.findElements(Rn);if(r.length>0){r[0].classes.push("result")}return this.annotations.forEach((t=>{e.push(t)})),this.annotations=[],e}};constructor(){this.annotations=[],this.namespace=bs()}comment(t){if(0===this.processedDocumentCount){const e=new pn(t.content);return this.maybeAddSourceMap(t,e),e}return null}document(t){const e=1===this.processedDocumentCount,r=this.processedDocumentCount>=1;if(e){const e=new un("Only first document within YAML stream will be used. Rest will be discarded.");e.classes.push("warning"),this.maybeAddSourceMap(t,e),this.annotations.push(e)}return r?null:(this.processedDocumentCount+=1,t.children)}mapping(t){const e=new nn.Sh;return e._content=t.children,this.maybeAddSourceMap(t,e),e}keyValuePair(t){const e=new nn.Pr;return e.content.key=t.key,e.content.value=t.value,this.maybeAddSourceMap(t,e),t.children.filter((t=>"error"===t.type)).forEach((e=>{this.error(e,t,[],[t])})),e}sequence(t){const e=new nn.wE;return e._content=t.children,this.maybeAddSourceMap(t,e),e}scalar(t){const e=this.namespace.toElement(t.content);return""===t.content&&t.style===rr.Plain&&(e.classes.push("yaml-e-node"),e.classes.push("yaml-e-scalar")),this.maybeAddSourceMap(t,e),e}literal(t){if(t.isMissing){const e=`(Missing ${t.value})`,r=new un(e);r.classes.push("warning"),this.maybeAddSourceMap(t,r),this.annotations.push(r)}return null}error(t,e,r,n){const s=t.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new un(s);if(i.classes.push("error"),this.maybeAddSourceMap(t,i),0===n.length){const t=new _n;return t.push(i),t}return this.annotations.push(i),null}maybeAddSourceMap(t,e){if(!this.sourceMap)return;const r=new dn;r.position=t.position,r.astNode=t,e.meta.set("sourceMap",r)}};class Ts{cursor;constructor(t){this.cursor=t}stream(){return new Qr(this.cursor)}yaml_directive(){return new Qr(this.cursor)}tag_directive(){return new Qr(this.cursor)}reserved_directive(){return new Qr(this.cursor)}document(){return new Qr(this.cursor)}block_node(){return new Qr(this.cursor).setFieldName(this.cursor)}flow_node(){return new Qr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Qr(this.cursor)}block_mapping_pair(){return new Qr(this.cursor)}flow_mapping(){return new Qr(this.cursor)}flow_pair(){return new Qr(this.cursor)}block_sequence(){return new Qr(this.cursor)}block_sequence_item(){return new Qr(this.cursor)}flow_sequence(){return new Qr(this.cursor)}plain_scalar(){return new Qr(this.cursor)}single_quote_scalar(){return new Qr(this.cursor)}double_quote_scalar(){return new Qr(this.cursor)}block_scalar(){return new Qr(this.cursor)}ERROR(){return new Qr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let t;if(t=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Qr(this.cursor),this.cursor.gotoFirstChild()){const[e]=new Ts(this.cursor);for(t.pushChildren(e);this.cursor.gotoNextSibling();){const e=Array.from(new Ts(this.cursor));t.pushChildren(...e)}t.children.reduce(((t,e)=>(e.setPreviousSibling(t),e)),void 0),this.cursor.gotoParent()}yield t}}const Is=Ts,Ms=(t,{sourceMap:e=!1}={})=>{const r=t.walk(),n=new Is(r),[s]=Array.from(n),i=new en,o=new Ns,a=new lr,c=new br,u=kr(s,i,{keyMap:Xr,nodePredicate:Jr,state:{schema:a,sourceMap:e,referenceManager:c}});return kr(u.rootNode,o,{keyMap:ks,nodeTypeGetter:Ps,nodePredicate:Os,state:{sourceMap:e}})},Cs=bs();const Fs=class extends c{};const Rs=class extends Fs{};const qs=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Rs("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Rs("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Rs("latest method in MediaTypes class is not yet implemented.")}};const Ls=new class extends qs{latest(){return this[1]}}("text/yaml","application/yaml"),Vs=async t=>{try{return"ERROR"!==(await f(t)).rootNode.type}catch{return!1}},Ds=async(t,{sourceMap:e=!1}={})=>{const r=await f(t);return Ms(r,{sourceMap:e})}})(),n})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swagger-api/apidom-parser-adapter-yaml-1-2",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.99.0",
|
|
4
4
|
"description": "Parser adapter for parsing YAML documents into base namespace.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"license": "Apache-2.0",
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@babel/runtime-corejs3": "^7.20.7",
|
|
55
|
-
"@swagger-api/apidom-ast": "^0.
|
|
56
|
-
"@swagger-api/apidom-core": "^0.
|
|
57
|
-
"@swagger-api/apidom-error": "^0.
|
|
55
|
+
"@swagger-api/apidom-ast": "^0.99.0",
|
|
56
|
+
"@swagger-api/apidom-core": "^0.99.0",
|
|
57
|
+
"@swagger-api/apidom-error": "^0.99.0",
|
|
58
58
|
"@types/ramda": "~0.29.6",
|
|
59
59
|
"ramda": "~0.29.1",
|
|
60
60
|
"ramda-adjunct": "^4.1.1",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"README.md",
|
|
77
77
|
"CHANGELOG.md"
|
|
78
78
|
],
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "e3c5ac3e738d561a0eb6d9d0f729e0d6bf20b00f"
|
|
80
80
|
}
|