@swagger-api/apidom-parser-adapter-openapi-yaml-2 0.83.0 → 0.85.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiYaml2=t():e.apidomParserAdapterOpenApiYaml2=t()}(self,(()=>(()=>{var e={42:(e,t,n)=>{"use strict";var r=n(5846);e.exports=r},6791:(e,t,n)=>{"use strict";n(4339),n(4242),n(4016),n(8939),n(5454);var r=n(7545);e.exports=r.AggregateError},6762:(e,t,n)=>{"use strict";e.exports=n(3028)},3028:(e,t,n)=>{"use strict";n(2752);var r=n(42);e.exports=r},6235:(e,t,n)=>{"use strict";var r=n(6447),s=n(9288),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not a function")}},7757:(e,t,n)=>{"use strict";var r=n(6447),s=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},7423:e=>{"use strict";e.exports=function(){}},1138:(e,t,n)=>{"use strict";var r=n(5744),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not an object")}},8180:(e,t,n)=>{"use strict";var r=n(101),s=n(7739),i=n(4104),o=function(e){return function(t,n,o){var a,c=r(t),u=i(c),l=s(o,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9272:(e,t,n)=>{"use strict";var r=n(4120),s=r({}.toString),i=r("".slice);e.exports=function(e){return i(s(e),8,-1)}},4696:(e,t,n)=>{"use strict";var r=n(3471),s=n(6447),i=n(9272),o=n(8182)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?n:c?i(t):"Object"===(r=i(t))&&s(t.callee)?"Arguments":r}},7987:(e,t,n)=>{"use strict";var r=n(4500),s=n(3011),i=n(5141),o=n(2760);e.exports=function(e,t,n){for(var a=s(t),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];r(e,p)||n&&r(n,p)||c(e,p,u(t,p))}}},4635:(e,t,n)=>{"use strict";var r=n(6192);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},7271:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},8711:(e,t,n)=>{"use strict";var r=n(69),s=n(2760),i=n(774);e.exports=r?function(e,t,n){return s.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},774:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9362:(e,t,n)=>{"use strict";var r=n(8711);e.exports=function(e,t,n,s){return s&&s.enumerable?e[t]=n:r(e,t,n),e}},5098:(e,t,n)=>{"use strict";var r=n(8576),s=Object.defineProperty;e.exports=function(e,t){try{s(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},69:(e,t,n)=>{"use strict";var r=n(6192);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8382:e=>{"use strict";var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},7449:(e,t,n)=>{"use strict";var r=n(8576),s=n(5744),i=r.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},7365:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8989:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4218:(e,t,n)=>{"use strict";var r,s,i=n(8576),o=n(8989),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(s=+r[1]),e.exports=s},2952:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4503:(e,t,n)=>{"use strict";var r=n(4120),s=Error,i=r("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},8266:(e,t,n)=>{"use strict";var r=n(8711),s=n(4503),i=n(274),o=Error.captureStackTrace;e.exports=function(e,t,n,a){i&&(o?o(e,t):r(e,"stack",s(n,a)))}},274:(e,t,n)=>{"use strict";var r=n(6192),s=n(774);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},3085:(e,t,n)=>{"use strict";var r=n(8576),s=n(6298),i=n(4914),o=n(6447),a=n(5141).f,c=n(9245),u=n(7545),l=n(8043),p=n(8711),h=n(4500),m=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,s,f,d,_,g,y,v,b,w=e.target,E=e.global,x=e.stat,S=e.proto,P=E?r:x?r[w]:(r[w]||{}).prototype,O=E?u:u[w]||p(u,w,{})[w],j=O.prototype;for(d in t)s=!(n=c(E?d:w+(x?".":"#")+d,e.forced))&&P&&h(P,d),g=O[d],s&&(y=e.dontCallGetSet?(b=a(P,d))&&b.value:P[d]),_=s&&y?y:t[d],s&&typeof g==typeof _||(v=e.bind&&s?l(_,r):e.wrap&&s?m(_):S&&o(_)?i(_):_,(e.sham||_&&_.sham||g&&g.sham)&&p(v,"sham",!0),p(O,d,v),S&&(h(u,f=w+"Prototype")||p(u,f,{}),p(u[f],d,_),e.real&&j&&(n||!j[d])&&p(j,d,_)))}},6192:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},6298:(e,t,n)=>{"use strict";var r=n(2784),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},8043:(e,t,n)=>{"use strict";var r=n(4914),s=n(6235),i=n(2784),o=r(r.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},2784:(e,t,n)=>{"use strict";var r=n(6192);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8922:(e,t,n)=>{"use strict";var r=n(2784),s=Function.prototype.call;e.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},2282:(e,t,n)=>{"use strict";var r=n(69),s=n(4500),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},6419:(e,t,n)=>{"use strict";var r=n(4120),s=n(6235);e.exports=function(e,t,n){try{return r(s(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},4914:(e,t,n)=>{"use strict";var r=n(9272),s=n(4120);e.exports=function(e){if("Function"===r(e))return s(e)}},4120:(e,t,n)=>{"use strict";var r=n(2784),s=Function.prototype,i=s.call,o=r&&s.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},150:(e,t,n)=>{"use strict";var r=n(7545),s=n(8576),i=n(6447),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(s[e]):r[e]&&r[e][t]||s[e]&&s[e][t]}},8703:(e,t,n)=>{"use strict";var r=n(4696),s=n(5037),i=n(5646),o=n(7771),a=n(8182)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[r(e)]}},1669:(e,t,n)=>{"use strict";var r=n(8922),s=n(6235),i=n(1138),o=n(9288),a=n(8703),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(s(n))return i(r(n,e));throw new c(o(e)+" is not iterable")}},5037:(e,t,n)=>{"use strict";var r=n(6235),s=n(5646);e.exports=function(e,t){var n=e[t];return s(n)?void 0:r(n)}},8576:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},4500:(e,t,n)=>{"use strict";var r=n(4120),s=n(1795),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},4535:e=>{"use strict";e.exports={}},7403:(e,t,n)=>{"use strict";var r=n(150);e.exports=r("document","documentElement")},188:(e,t,n)=>{"use strict";var r=n(69),s=n(6192),i=n(7449);e.exports=!r&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2202:(e,t,n)=>{"use strict";var r=n(4120),s=n(6192),i=n(9272),o=Object,a=r("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},2643:(e,t,n)=>{"use strict";var r=n(6447),s=n(5744),i=n(4469);e.exports=function(e,t,n){var o,a;return i&&r(o=t.constructor)&&o!==n&&s(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},273:(e,t,n)=>{"use strict";var r=n(5744),s=n(8711);e.exports=function(e,t){r(t)&&"cause"in t&&s(e,"cause",t.cause)}},3326:(e,t,n)=>{"use strict";var r,s,i,o=n(5278),a=n(8576),c=n(5744),u=n(8711),l=n(4500),p=n(6434),h=n(9766),m=n(4535),f="Object already initialized",d=a.TypeError,_=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new _);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new d(f);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=h("state");m[y]=!0,r=function(e,t){if(l(e,y))throw new d(f);return t.facade=e,u(e,y,t),t},s=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:r,get:s,has:i,enforce:function(e){return i(e)?s(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=s(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return n}}}},6109:(e,t,n)=>{"use strict";var r=n(8182),s=n(7771),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},6447:(e,t,n)=>{"use strict";var r=n(8382),s=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},9245:(e,t,n)=>{"use strict";var r=n(6192),s=n(6447),i=/#|\.prototype\./,o=function(e,t){var n=c[a(e)];return n===l||n!==u&&(s(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},5646:e=>{"use strict";e.exports=function(e){return null==e}},5744:(e,t,n)=>{"use strict";var r=n(6447),s=n(8382),i=s.all;e.exports=s.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},5546:e=>{"use strict";e.exports=!0},3236:(e,t,n)=>{"use strict";var r=n(150),s=n(6447),i=n(8902),o=n(615),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return s(t)&&i(t.prototype,a(e))}},3442:(e,t,n)=>{"use strict";var r=n(8043),s=n(8922),i=n(1138),o=n(9288),a=n(6109),c=n(4104),u=n(8902),l=n(1669),p=n(8703),h=n(6639),m=TypeError,f=function(e,t){this.stopped=e,this.result=t},d=f.prototype;e.exports=function(e,t,n){var _,g,y,v,b,w,E,x=n&&n.that,S=!(!n||!n.AS_ENTRIES),P=!(!n||!n.IS_RECORD),O=!(!n||!n.IS_ITERATOR),j=!(!n||!n.INTERRUPTED),A=r(t,x),I=function(e){return _&&h(_,"normal",e),new f(!0,e)},k=function(e){return S?(i(e),j?A(e[0],e[1],I):A(e[0],e[1])):j?A(e,I):A(e)};if(P)_=e.iterator;else if(O)_=e;else{if(!(g=p(e)))throw new m(o(e)+" is not iterable");if(a(g)){for(y=0,v=c(e);v>y;y++)if((b=k(e[y]))&&u(d,b))return b;return new f(!1)}_=l(e,g)}for(w=P?e.next:_.next;!(E=s(w,_)).done;){try{b=k(E.value)}catch(e){h(_,"throw",e)}if("object"==typeof b&&b&&u(d,b))return b}return new f(!1)}},6639:(e,t,n)=>{"use strict";var r=n(8922),s=n(1138),i=n(5037);e.exports=function(e,t,n){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw n;if(a)throw o;return s(o),n}},5695:(e,t,n)=>{"use strict";var r=n(4413).IteratorPrototype,s=n(2853),i=n(774),o=n(1284),a=n(7771),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=s(r,{next:i(+!u,n)}),o(e,l,!1,!0),a[l]=c,e}},5297:(e,t,n)=>{"use strict";var r=n(3085),s=n(8922),i=n(5546),o=n(2282),a=n(6447),c=n(5695),u=n(9341),l=n(4469),p=n(1284),h=n(8711),m=n(9362),f=n(8182),d=n(7771),_=n(4413),g=o.PROPER,y=o.CONFIGURABLE,v=_.IteratorPrototype,b=_.BUGGY_SAFARI_ITERATORS,w=f("iterator"),E="keys",x="values",S="entries",P=function(){return this};e.exports=function(e,t,n,o,f,_,O){c(n,t,o);var j,A,I,k=function(e){if(e===f&&R)return R;if(!b&&e&&e in T)return T[e];switch(e){case E:case x:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},N=t+" Iterator",M=!1,T=e.prototype,$=T[w]||T["@@iterator"]||f&&T[f],R=!b&&$||k(f),F="Array"===t&&T.entries||$;if(F&&(j=u(F.call(new e)))!==Object.prototype&&j.next&&(i||u(j)===v||(l?l(j,v):a(j[w])||m(j,w,P)),p(j,N,!0,!0),i&&(d[N]=P)),g&&f===x&&$&&$.name!==x&&(!i&&y?h(T,"name",x):(M=!0,R=function(){return s($,this)})),f)if(A={values:k(x),keys:_?R:k(E),entries:k(S)},O)for(I in A)(b||M||!(I in T))&&m(T,I,A[I]);else r({target:t,proto:!0,forced:b||M},A);return i&&!O||T[w]===R||m(T,w,R,{name:f}),d[t]=R,A}},4413:(e,t,n)=>{"use strict";var r,s,i,o=n(6192),a=n(6447),c=n(5744),u=n(2853),l=n(9341),p=n(9362),h=n(8182),m=n(5546),f=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(r=s):d=!0),!c(r)||o((function(){var e={};return r[f].call(e)!==e}))?r={}:m&&(r=u(r)),a(r[f])||p(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},7771:e=>{"use strict";e.exports={}},4104:(e,t,n)=>{"use strict";var r=n(8445);e.exports=function(e){return r(e.length)}},7679:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},6016:(e,t,n)=>{"use strict";var r=n(4845);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},2853:(e,t,n)=>{"use strict";var r,s=n(1138),i=n(1187),o=n(2952),a=n(4535),c=n(7403),u=n(7449),l=n(9766),p="prototype",h="script",m=l("IE_PROTO"),f=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},_=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g="undefined"!=typeof document?document.domain&&r?_(r):(t=u("iframe"),n="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):_(r);for(var s=o.length;s--;)delete g[p][o[s]];return g()};a[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[p]=s(e),n=new f,f[p]=null,n[m]=e):n=g(),void 0===t?n:i.f(n,t)}},1187:(e,t,n)=>{"use strict";var r=n(69),s=n(9600),i=n(2760),o=n(1138),a=n(101),c=n(7653);t.f=r&&!s?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=c(t),u=s.length,l=0;u>l;)i.f(e,n=s[l++],r[n]);return e}},2760:(e,t,n)=>{"use strict";var r=n(69),s=n(188),i=n(9600),o=n(1138),a=n(77),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",m="writable";t.f=r?i?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&m in n&&!n[m]){var r=l(e,t);r&&r[m]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:p in n?n[p]:r[p],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=a(t),o(n),s)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},5141:(e,t,n)=>{"use strict";var r=n(69),s=n(8922),i=n(6007),o=n(774),a=n(101),c=n(77),u=n(4500),l=n(188),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=a(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},2092:(e,t,n)=>{"use strict";var r=n(7934),s=n(2952).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,s)}},4750:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},9341:(e,t,n)=>{"use strict";var r=n(4500),s=n(6447),i=n(1795),o=n(9766),a=n(4635),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var n=t.constructor;return s(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},8902:(e,t,n)=>{"use strict";var r=n(4120);e.exports=r({}.isPrototypeOf)},7934:(e,t,n)=>{"use strict";var r=n(4120),s=n(4500),i=n(101),o=n(8180).indexOf,a=n(4535),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!s(a,n)&&s(r,n)&&c(l,n);for(;t.length>u;)s(r,n=t[u++])&&(~o(l,n)||c(l,n));return l}},7653:(e,t,n)=>{"use strict";var r=n(7934),s=n(2952);e.exports=Object.keys||function(e){return r(e,s)}},6007:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},4469:(e,t,n)=>{"use strict";var r=n(6419),s=n(1138),i=n(7757);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return s(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},158:(e,t,n)=>{"use strict";var r=n(3471),s=n(4696);e.exports=r?{}.toString:function(){return"[object "+s(this)+"]"}},380:(e,t,n)=>{"use strict";var r=n(8922),s=n(6447),i=n(5744),o=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&s(n=e.toString)&&!i(a=r(n,e)))return a;if(s(n=e.valueOf)&&!i(a=r(n,e)))return a;if("string"!==t&&s(n=e.toString)&&!i(a=r(n,e)))return a;throw new o("Can't convert object to primitive value")}},3011:(e,t,n)=>{"use strict";var r=n(150),s=n(4120),i=n(2092),o=n(4750),a=n(1138),c=s([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?c(t,n(e)):t}},7545:e=>{"use strict";e.exports={}},7656:(e,t,n)=>{"use strict";var r=n(2760).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},3209:(e,t,n)=>{"use strict";var r=n(5646),s=TypeError;e.exports=function(e){if(r(e))throw new s("Can't call method on "+e);return e}},1284:(e,t,n)=>{"use strict";var r=n(3471),s=n(2760).f,i=n(8711),o=n(4500),a=n(158),c=n(8182)("toStringTag");e.exports=function(e,t,n,u){if(e){var l=n?e:e.prototype;o(l,c)||s(l,c,{configurable:!0,value:t}),u&&!r&&i(l,"toString",a)}}},9766:(e,t,n)=>{"use strict";var r=n(8717),s=n(2759),i=r("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},6434:(e,t,n)=>{"use strict";var r=n(8576),s=n(5098),i="__core-js_shared__",o=r[i]||s(i,{});e.exports=o},8717:(e,t,n)=>{"use strict";var r=n(5546),s=n(6434);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},863:(e,t,n)=>{"use strict";var r=n(4120),s=n(1941),i=n(4845),o=n(3209),a=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,p=i(o(t)),h=s(n),m=p.length;return h<0||h>=m?e?"":void 0:(r=c(p,h))<55296||r>56319||h+1===m||(l=c(p,h+1))<56320||l>57343?e?a(p,h):r:e?u(p,h,h+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},6770:(e,t,n)=>{"use strict";var r=n(4218),s=n(6192),i=n(8576).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},7739:(e,t,n)=>{"use strict";var r=n(1941),s=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?s(n+t,0):i(n,t)}},101:(e,t,n)=>{"use strict";var r=n(2202),s=n(3209);e.exports=function(e){return r(s(e))}},1941:(e,t,n)=>{"use strict";var r=n(7679);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8445:(e,t,n)=>{"use strict";var r=n(1941),s=Math.min;e.exports=function(e){return e>0?s(r(e),9007199254740991):0}},1795:(e,t,n)=>{"use strict";var r=n(3209),s=Object;e.exports=function(e){return s(r(e))}},7888:(e,t,n)=>{"use strict";var r=n(8922),s=n(5744),i=n(3236),o=n(5037),a=n(380),c=n(8182),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var n,c=o(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!s(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},77:(e,t,n)=>{"use strict";var r=n(7888),s=n(3236);e.exports=function(e){var t=r(e,"string");return s(t)?t:t+""}},3471:(e,t,n)=>{"use strict";var r={};r[n(8182)("toStringTag")]="z",e.exports="[object z]"===String(r)},4845:(e,t,n)=>{"use strict";var r=n(4696),s=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},9288:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},2759:(e,t,n)=>{"use strict";var r=n(4120),s=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},615:(e,t,n)=>{"use strict";var r=n(6770);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9600:(e,t,n)=>{"use strict";var r=n(69),s=n(6192);e.exports=r&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5278:(e,t,n)=>{"use strict";var r=n(8576),s=n(6447),i=r.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8182:(e,t,n)=>{"use strict";var r=n(8576),s=n(8717),i=n(4500),o=n(2759),a=n(6770),c=n(615),u=r.Symbol,l=s("wks"),p=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},426:(e,t,n)=>{"use strict";var r=n(150),s=n(4500),i=n(8711),o=n(8902),a=n(4469),c=n(7987),u=n(7656),l=n(2643),p=n(6016),h=n(273),m=n(8266),f=n(69),d=n(5546);e.exports=function(e,t,n,_){var g="stackTraceLimit",y=_?2:1,v=e.split("."),b=v[v.length-1],w=r.apply(null,v);if(w){var E=w.prototype;if(!d&&s(E,"cause")&&delete E.cause,!n)return w;var x=r("Error"),S=t((function(e,t){var n=p(_?t:e,void 0),r=_?new w(e):new w;return void 0!==n&&i(r,"message",n),m(r,S,r.stack,2),this&&o(E,this)&&l(r,this,S),arguments.length>y&&h(r,arguments[y]),r}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):f&&g in w&&(u(S,w,g),u(S,w,"prepareStackTrace")),c(S,w),!d)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},4016:(e,t,n)=>{"use strict";var r=n(3085),s=n(150),i=n(6298),o=n(6192),a=n(426),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,n){return i(e,this,arguments)}}),l,!0)})},3820:(e,t,n)=>{"use strict";var r=n(3085),s=n(8902),i=n(9341),o=n(4469),a=n(7987),c=n(2853),u=n(8711),l=n(774),p=n(273),h=n(8266),m=n(3442),f=n(6016),d=n(8182)("toStringTag"),_=Error,g=[].push,y=function(e,t){var n,r=s(v,this);o?n=o(new _,r?i(this):v):(n=r?this:c(v),u(n,d,"Error")),void 0!==t&&u(n,"message",f(t)),h(n,y,n.stack,1),arguments.length>2&&p(n,arguments[2]);var a=[];return m(e,g,{that:a}),u(n,"errors",a),n};o?o(y,_):a(y,_,{name:!0});var v=y.prototype=c(_.prototype,{constructor:l(1,y),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},4242:(e,t,n)=>{"use strict";n(3820)},8939:(e,t,n)=>{"use strict";var r=n(101),s=n(7423),i=n(7771),o=n(3326),a=n(2760).f,c=n(5297),u=n(7271),l=n(5546),p=n(69),h="Array Iterator",m=o.set,f=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){m(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.kind,r=e.index++;if(!t||r>=t.length)return e.target=void 0,u(void 0,!0);switch(n){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[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(e){}},4339:(e,t,n)=>{"use strict";var r=n(3085),s=n(8576),i=n(6298),o=n(426),a="WebAssembly",c=s[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var n={};n[e]=o(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},p=function(e,t){if(c&&c[e]){var n={};n[e]=o(a+"."+e,t,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},5454:(e,t,n)=>{"use strict";var r=n(863).charAt,s=n(4845),i=n(3326),o=n(5297),a=n(7271),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:s(e),index:0})}),(function(){var e,t=l(this),n=t.string,s=t.index;return s>=n.length?a(void 0,!0):(e=r(n,s),t.index+=e.length,a(e,!1))}))},2752:(e,t,n)=>{"use strict";n(4242)},162:(e,t,n)=>{"use strict";n(8939);var r=n(7365),s=n(8576),i=n(4696),o=n(8711),a=n(7771),c=n(8182)("toStringTag");for(var u in r){var l=s[u],p=l&&l.prototype;p&&i(p)!==c&&o(p,c,u),a[u]=a.Array}},5846:(e,t,n)=>{"use strict";n(2752);var r=n(6791);n(162),e.exports=r},9515:(e,t,n)=>{var r=n(8761)(n(7772),"DataView");e.exports=r},9612:(e,t,n)=>{var r=n(2118),s=n(6909),i=n(8138),o=n(4174),a=n(7942);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},235:(e,t,n)=>{var r=n(3945),s=n(1846),i=n(8028),o=n(2344),a=n(4769);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},326:(e,t,n)=>{var r=n(8761)(n(7772),"Map");e.exports=r},6738:(e,t,n)=>{var r=n(2411),s=n(6417),i=n(6928),o=n(9493),a=n(4150);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1985:(e,t,n)=>{var r=n(8761)(n(7772),"Promise");e.exports=r},2143:(e,t,n)=>{var r=n(8761)(n(7772),"Set");e.exports=r},5386:(e,t,n)=>{var r=n(6738),s=n(2842),i=n(2482);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},6571:(e,t,n)=>{var r=n(235),s=n(5243),i=n(2858),o=n(4417),a=n(8605),c=n(1418);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},857:(e,t,n)=>{var r=n(7772).Symbol;e.exports=r},9162:(e,t,n)=>{var r=n(7772).Uint8Array;e.exports=r},3215:(e,t,n)=>{var r=n(8761)(n(7772),"WeakMap");e.exports=r},7552:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}},1634:(e,t,n)=>{var r=n(6473),s=n(9631),i=n(6152),o=n(3226),a=n(9045),c=n(7598),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&s(e),p=!n&&!l&&o(e),h=!n&&!l&&!p&&c(e),m=n||l||p||h,f=m?r(e.length,String):[],d=f.length;for(var _ in e)!t&&!u.call(e,_)||m&&("length"==_||p&&("offset"==_||"parent"==_)||h&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||a(_,d))||f.push(_);return f}},5067:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}},7064:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},2218:(e,t,n)=>{var r=n(1225);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},1897:(e,t,n)=>{var r=n(5067),s=n(6152);e.exports=function(e,t,n){var i=t(e);return s(e)?i:r(i,n(e))}},3366:(e,t,n)=>{var r=n(857),s=n(2107),i=n(7157),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},5183:(e,t,n)=>{var r=n(3366),s=n(5125);e.exports=function(e){return s(e)&&"[object Arguments]"==r(e)}},8746:(e,t,n)=>{var r=n(1952),s=n(5125);e.exports=function e(t,n,i,o,a){return t===n||(null==t||null==n||!s(t)&&!s(n)?t!=t&&n!=n:r(t,n,i,o,e,a))}},1952:(e,t,n)=>{var r=n(6571),s=n(4871),i=n(1491),o=n(7416),a=n(940),c=n(6152),u=n(3226),l=n(7598),p="[object Arguments]",h="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,_,g){var y=c(e),v=c(t),b=y?h:a(e),w=v?h:a(t),E=(b=b==p?m:b)==m,x=(w=w==p?m:w)==m,S=b==w;if(S&&u(e)){if(!u(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new r),y||l(e)?s(e,t,n,d,_,g):i(e,t,b,n,d,_,g);if(!(1&n)){var P=E&&f.call(e,"__wrapped__"),O=x&&f.call(t,"__wrapped__");if(P||O){var j=P?e.value():e,A=O?t.value():t;return g||(g=new r),_(j,A,n,d,g)}}return!!S&&(g||(g=new r),o(e,t,n,d,_,g))}},6840:(e,t,n)=>{var r=n(1049),s=n(7394),i=n(9259),o=n(7035),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,h=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(r(e)?h:a).test(o(e))}},5522:(e,t,n)=>{var r=n(3366),s=n(1158),i=n(5125),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[r(e)]}},6411:(e,t,n)=>{var r=n(6001),s=n(4248),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return s(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},6473:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7826:e=>{e.exports=function(e){return function(t){return e(t)}}},9950:e=>{e.exports=function(e,t){return e.has(t)}},4019:(e,t,n)=>{var r=n(7772)["__core-js_shared__"];e.exports=r},4871:(e,t,n)=>{var r=n(5386),s=n(7064),i=n(9950);e.exports=function(e,t,n,o,a,c){var u=1&n,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var f=-1,d=!0,_=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++f<l;){var g=e[f],y=t[f];if(o)var v=u?o(y,g,f,t,e,c):o(g,y,f,e,t,c);if(void 0!==v){if(v)continue;d=!1;break}if(_){if(!s(t,(function(e,t){if(!i(_,t)&&(g===e||a(g,e,n,o,c)))return _.push(t)}))){d=!1;break}}else if(g!==y&&!a(g,y,n,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},1491:(e,t,n)=>{var r=n(857),s=n(9162),i=n(1225),o=n(4871),a=n(5179),c=n(4207),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,p,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=a;case"[object Set]":var f=1&r;if(m||(m=c),e.size!=t.size&&!f)return!1;var d=h.get(e);if(d)return d==t;r|=2,h.set(e,t);var _=o(m(e),m(t),r,u,p,h);return h.delete(e),_;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},7416:(e,t,n)=>{var r=n(3483),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,a){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var p=l;p--;){var h=u[p];if(!(c?h in t:s.call(t,h)))return!1}var m=a.get(e),f=a.get(t);if(m&&f)return m==t&&f==e;var d=!0;a.set(e,t),a.set(t,e);for(var _=c;++p<l;){var g=e[h=u[p]],y=t[h];if(i)var v=c?i(y,g,h,t,e,a):i(g,y,h,e,t,a);if(!(void 0===v?g===y||o(g,y,n,i,a):v)){d=!1;break}_||(_="constructor"==h)}if(d&&!_){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(d=!1)}return a.delete(e),a.delete(t),d}},1242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},3483:(e,t,n)=>{var r=n(1897),s=n(633),i=n(249);e.exports=function(e){return r(e,i,s)}},7937:(e,t,n)=>{var r=n(8304);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},8761:(e,t,n)=>{var r=n(6840),s=n(8109);e.exports=function(e,t){var n=s(e,t);return r(n)?n:void 0}},2107:(e,t,n)=>{var r=n(857),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var s=o.call(e);return r&&(t?e[a]=n:delete e[a]),s}},633:(e,t,n)=>{var r=n(7552),s=n(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},940:(e,t,n)=>{var r=n(9515),s=n(326),i=n(1985),o=n(2143),a=n(3215),c=n(3366),u=n(7035),l="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",f="[object DataView]",d=u(r),_=u(s),g=u(i),y=u(o),v=u(a),b=c;(r&&b(new r(new ArrayBuffer(1)))!=f||s&&b(new s)!=l||i&&b(i.resolve())!=p||o&&b(new o)!=h||a&&b(new a)!=m)&&(b=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case d:return f;case _:return l;case g:return p;case y:return h;case v:return m}return t}),e.exports=b},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2118:(e,t,n)=>{var r=n(9191);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,n)=>{var r=n(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(t,e)?t[e]:void 0}},4174:(e,t,n)=>{var r=n(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:s.call(t,e)}},7942:(e,t,n)=>{var r=n(9191);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},9045:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,n)=>{var r,s=n(4019),i=(r=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},6001:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,n)=>{var r=n(2218),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():s.call(t,n,1),--this.size,!0)}},8028:(e,t,n)=>{var r=n(2218);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},2344:(e,t,n)=>{var r=n(2218);e.exports=function(e){return r(this.__data__,e)>-1}},4769:(e,t,n)=>{var r=n(2218);e.exports=function(e,t){var n=this.__data__,s=r(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}},2411:(e,t,n)=>{var r=n(9612),s=n(235),i=n(326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||s),string:new r}}},6417:(e,t,n)=>{var r=n(7937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).get(e)}},9493:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).has(e)}},4150:(e,t,n)=>{var r=n(7937);e.exports=function(e,t){var n=r(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}},5179:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},9191:(e,t,n)=>{var r=n(8761)(Object,"create");e.exports=r},4248:(e,t,n)=>{var r=n(241)(Object.keys,Object);e.exports=r},4146:(e,t,n)=>{e=n.nmd(e);var r=n(1242),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&r.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},241:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},7772:(e,t,n)=>{var r=n(1242),s="object"==typeof self&&self&&self.Object===Object&&self,i=r||s||Function("return this")();e.exports=i},2842:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2482:e=>{e.exports=function(e){return this.__data__.has(e)}},4207:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},5243:(e,t,n)=>{var r=n(235);e.exports=function(){this.__data__=new r,this.size=0}},2858:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:e=>{e.exports=function(e){return this.__data__.get(e)}},8605:e=>{e.exports=function(e){return this.__data__.has(e)}},1418:(e,t,n)=>{var r=n(235),s=n(326),i=n(6738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},7035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},9631:(e,t,n)=>{var r=n(5183),s=n(5125),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},6152:e=>{var t=Array.isArray;e.exports=t},7878:(e,t,n)=>{var r=n(1049),s=n(1158);e.exports=function(e){return null!=e&&s(e.length)&&!r(e)}},4335:(e,t,n)=>{var r=n(3366),s=n(5125);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==r(e)}},3226:(e,t,n)=>{e=n.nmd(e);var r=n(7772),s=n(6330),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},8149:(e,t,n)=>{var r=n(8746);e.exports=function(e,t){return r(e,t)}},1049:(e,t,n)=>{var r=n(3366),s=n(9259);e.exports=function(e){if(!s(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1158:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5877:e=>{e.exports=function(e){return null===e}},537:(e,t,n)=>{var r=n(3366),s=n(5125);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==r(e)}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},5505:(e,t,n)=>{var r=n(3366),s=n(6152),i=n(5125);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==r(e)}},7598:(e,t,n)=>{var r=n(5522),s=n(7826),i=n(4146),o=i&&i.isTypedArray,a=o?s(o):r;e.exports=a},249:(e,t,n)=>{var r=n(1634),s=n(6411),i=n(7878);e.exports=function(e){return i(e)?r(e):s(e)}},1570:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},981:e=>{e.exports=function(){return[]}},6330:e=>{e.exports=function(){return!1}},1178:(e,t,n)=>{const r=n(1570);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},3026:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5140:(e,t,n)=>{const r=n(5877),s=n(5505),i=n(537),o=n(4335),a=n(9259),c=n(2947),u=n(3756);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(r,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,n){return void 0===n||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],s=this.elementDetection[n][1];if(r(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},3853:(e,t,n)=>{const r=n(1570),s=n(1178);class i extends s{map(e,t){return this.elements.map((n=>e.bind(t)(n.value,n.key,n)))}filter(e,t){return new i(this.elements.filter((n=>e.bind(t)(n.value,n.key,n))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((n,r)=>{e.bind(t)(n.value,n.key,n,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3756:(e,t,n)=>{const r=n(6420),s=n(4152),i=n(9542),o=n(3710),a=n(3312),c=n(1641),u=n(8858),l=n(3860),p=n(5202),h=n(2320),m=n(1178),f=n(3853),d=n(3026);function _(e){if(e instanceof r)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(_));if("object"==typeof e){return new l(e)}return e}r.prototype.ObjectElement=l,r.prototype.RefElement=h,r.prototype.MemberElement=u,r.prototype.refract=_,m.prototype.refract=_,e.exports={Element:r,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:h,refract:_,ArraySlice:m,ObjectSlice:f,KeyValuePair:d}},5202:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},2320:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},7952:(e,t,n)=>{const r=n(5140),s=n(3756);t.lS=r,t.KeyValuePair=n(3026),t.O4=s.ArraySlice,t.rm=s.ObjectSlice,t.W_=s.Element,t.RP=s.StringElement,t.VL=s.NumberElement,t.hh=s.BooleanElement,t.zr=s.NullElement,t.ON=s.ArrayElement,t.Sb=s.ObjectElement,t.c6=s.MemberElement,t.tK=s.RefElement,t.EA=s.LinkElement,t.Qc=s.refract,n(2947),n(8910)},1641:(e,t,n)=>{const r=n(1570),s=n(6420),i=n(1178);class o extends s{constructor(e,t,n){super(e||[],t,n),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let n,r;void 0!==t?(n=0,r=this.refract(t)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=n;t<this.length;t+=1){const n=this.content[t];r="object"===this.primitive()?this.refract(e(r,n.value,n.key,n,this)):this.refract(e(r,n,t,this))}return r}forEach(e,t){this.content.forEach(((n,r)=>{e.bind(t)(n,this.refract(r))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const n=t||{},r=!!n.recursive,s=void 0===n.results?[]:n.results;return this.forEach(((t,n,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:r}),e(t,n,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},3312:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}}},6420:(e,t,n)=>{const r=n(8149),s=n(3026),i=n(1178);class o{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let n=new i;const r=(e,t)=>(e.push(t),e),o=(e,n)=>{n.element===t&&e.push(n);const i=n.findRecursive(t);return i&&i.reduce(r,e),n.content instanceof s&&(n.content.key&&o(e,n.content.key),n.content.value&&o(e,n.content.value)),e};return this.content&&(this.content.element&&o(n,this.content),Array.isArray(this.content)&&this.content.reduce(o,n)),e.isEmpty||(n=n.filter((t=>{let n=t.parents.map((e=>e.element));for(const t in e){const r=e[t],s=n.indexOf(r);if(-1===s)return!1;n=n.splice(0,s)}return!0}))),n}set(e){return this.content=e,this}equals(e){return r(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8858:(e,t,n)=>{const r=n(3026),s=n(6420);e.exports=class extends s{constructor(e,t,n,s){super(new r,n,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},4152:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e||null,t,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="number"}primitive(){return"number"}}},3860:(e,t,n)=>{const r=n(1570),s=n(9259),i=n(1641),o=n(8858),a=n(3853);e.exports=class extends i{constructor(e,t,n){super(e||[],t,n),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((n=>n.key.toValue()!==e||(t=n,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const n=e,r=this.getMember(n);return r?r.value=t:this.content.push(new o(n,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((n=>e.bind(t)(n.value,n.key,n)))}compactMap(e,t){const n=[];return this.forEach(((r,s,i)=>{const o=e.bind(t)(r,s,i);o&&n.push(o)})),n}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((n=>e.bind(t)(n.value,n.key,n)))}}},9542:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(e,t,n)=>{const r=n(2947);e.exports=class extends r{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(n.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(n.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),n=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==n.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let e=n.attributes.get("samples");if(n.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const s=new t(r);s.element=n.element,e.push(s)}))}));const s=e.shift();n.content=s?s.content:void 0,n.attributes.set("samples",e)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=n.element,n.attributes.set("default",e)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const e=n.attributes.get("meta");e&&(n.attributes.set("metadata",e),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,n)=>{if(e){const r=n.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},2947:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const n=this.serialiseContent(e.content);return void 0!==n&&(t.content=n),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const n=this.deserialiseContent(e.content);return void 0===n&&null!==t.content||(t.content=n),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,n)=>{e&&(t[n.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},6591:e=>{!function(){"use strict";var t,n,r,s,i,o="properties",a="deepProperties",c="propertyDescriptors",u="staticProperties",l="staticDeepProperties",p="staticPropertyDescriptors",h="configuration",m="deepConfiguration",f="deepProps",d="deepStatics",_="deepConf",g="initializers",y="methods",v="composers",b="compose";function w(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function E(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var x=E.bind(0,(function(e,t){if(t)for(var n=w(t),r=0;r<n.length;r+=1)Object.defineProperty(e,n[r],Object.getOwnPropertyDescriptor(t,n[r]));return e}));function S(e){return"function"==typeof e}function P(e){return e&&"object"==typeof e||S(e)}function O(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var j=E.bind(0,(function e(n,r){if(r===t)return n;if(Array.isArray(r))return(Array.isArray(n)?n:[]).concat(r);if(!O(r))return r;for(var s,i,o=w(r),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(r,s)).hasOwnProperty("value")?i.value!==t&&(n[s]=e(O(n[s])||Array.isArray(r[s])?n[s]:{},r[s])):Object.defineProperty(n,s,i);return n}));function A(){return(n=Array.prototype.concat.apply([],arguments).filter((function(e,t,n){return S(e)&&n.indexOf(e)===t}))).length?n:t}function I(e,t){function r(n,r){P(t[n])&&(P(e[n])||(e[n]={}),(r||x)(e[n],t[n]))}function s(r){(n=A(e[r],t[r]))&&(e[r]=n)}return t&&P(t=t[b]||t)&&(r(y),r(o),r(a,j),r(c),r(u),r(l,j),r(p),r(h),r(m,j),s(g),s(v)),e}function k(){return function(e){return n=function e(n){var r,s,i=e[b]||{},u={__proto__:i[y]},l=i[g],p=Array.prototype.slice.apply(arguments),h=i[a];if(h&&j(u,h),(h=i[o])&&x(u,h),(h=i[c])&&Object.defineProperties(u,h),!l||!l.length)return u;for(n===t&&(n={}),i=0;i<l.length;)S(r=l[i++])&&(u=(s=r.call(u,n,{instance:u,stamp:e,args:p}))===t?u:s);return u},(r=e[l])&&j(n,r),(r=e[u])&&x(n,r),(r=e[p])&&Object.defineProperties(n,r),r=S(n[b])?n[b]:k,x(n[b]=function(){return r.apply(this,arguments)},e),n}(Array.prototype.concat.apply([this],arguments).reduce(I,{}))}function N(e){return S(e)&&S(e[b])}var M={};function T(e,i){return function(){return(s={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((n=this)&&n[b]||r).call(n,s)}}M[y]=T(y,x),M[o]=M.props=T(o,x),M[g]=M.init=T(g,A),M[v]=T(v,A),M[a]=M[f]=T(a,j),M[u]=M.statics=T(u,x),M[l]=M[d]=T(l,j),M[h]=M.conf=T(h,x),M[m]=M[_]=T(m,j),M[c]=T(c,x),M[p]=T(p,x),r=M[b]=x((function(){for(var e,w,E=0,S=[],O=arguments,I=this;E<O.length;)P(e=O[E++])&&S.push(N(e)?e:((s={})[y]=(w=e)[y]||t,r=w.props,s[o]=P((n=w[o])||r)?x({},r,n):t,s[g]=A(w.init,w[g]),s[v]=A(w[v]),r=w[f],s[a]=P((n=w[a])||r)?j({},r,n):t,s[c]=w[c],r=w.statics,s[u]=P((n=w[u])||r)?x({},r,n):t,r=w[d],s[l]=P((n=w[l])||r)?j({},r,n):t,n=w[p],s[p]=P((r=w.name&&{name:{value:w.name}})||n)?x({},n,r):t,r=w.conf,s[h]=P((n=w[h])||r)?x({},r,n):t,r=w[_],s[m]=P((n=w[m])||r)?j({},r,n):t,s));if(e=k.apply(I||i,S),I&&S.unshift(I),Array.isArray(O=e[b][v]))for(E=0;E<O.length;)e=N(I=O[E++]({stamp:e,composables:S}))?I:e;return e}),M),M.create=function(){return this.apply(t,arguments)},(s={})[u]=M,i=k(s),r[b]=r.bind(),r.version="4.3.2","object"!=typeof t?e.exports=r:self.stampit=r}()},2396:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(n=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[n.MalformedUnicode,"malformed Unicode character escape sequence"],[n.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[n.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[n.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[n.EndOfString,"malformed escape sequence at end of string"]])},2770:(e,t,n)=>{"use strict";t.S6=void 0;const r=n(2396);function s(e,t,n){const s=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(s)||void 0!==n&&n!==e.length)throw new SyntaxError(r.errorMessages.get(t));return s}function i(e,t){const n=s(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=s(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(n,e)}return String.fromCharCode(n)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(e,t=!1){return e.replace(a,(function(e,n,a,c,u,l,p,h,m){if(void 0!==n)return"\\";if(void 0!==a)return function(e){const t=s(e,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(a);if(void 0!==c)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var t;const n=s(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(n)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(c);if(void 0!==u)return i(u,l);if(void 0!==p)return i(p);if("0"===h)return"\0";if(void 0!==h)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const n=parseInt(e,8);return String.fromCharCode(n)}(h,!t);if(void 0!==m)return f=m,o.get(f)||f;var f;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.S6=c},9794:(e,t,n)=>{var r=void 0!==r?r:{},s=function(){var t,s="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(r=Object.assign({},r,o),t=new Promise((t=>{var o,a={};for(o in r)r.hasOwnProperty(o)&&(a[o]=r[o]);var c,u,l,p,h=[],m="./this.program",f=function(e,t){throw t};l="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!p;var d,_,g,y,v,b="";c?(b=p?n(6287).dirname(b)+"/":"//",d=function(e,t){return y||(y=n(5530)),v||(v=n(6287)),e=v.normalize(e),y.readFileSync(e,t?null:"utf8")},g=function(e){var t=d(e,!0);return t.buffer||(t=new Uint8Array(t)),T(t.buffer),t},process.argv.length>1&&(m=process.argv[1].replace(/\\/g,"/")),h=process.argv.slice(2),e.exports=r,f=function(e){process.exit(e)},r.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(d=function(e){return read(e)}),g=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(T("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?h=scriptArgs:void 0!==arguments&&(h=arguments),"function"==typeof quit&&(f=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||p)&&(p?b=self.location.href:void 0!==s&&s.currentScript&&(b=s.currentScript.src),b=0!==b.indexOf("blob:")?b.substr(0,b.lastIndexOf("/")+1):"",d=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(g=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),_=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)}),r.print||console.log.bind(console);var w=r.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(r[o]=a[o]);a=null,r.arguments&&(h=r.arguments),r.thisProgram&&(m=r.thisProgram),r.quit&&(f=r.quit);var E,x=16,S=[];function P(e,t){if(!E){E=new WeakMap;for(var n=0;n<Z.length;n++){var r=Z.get(n);r&&E.set(r,n)}}if(E.has(e))return E.get(e);var s=function(){if(S.length)return S.pop();try{Z.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Z.length-1}();try{Z.set(s,e)}catch(n){if(!(n instanceof TypeError))throw n;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var n={i:"i32",j:"i64",f:"f32",d:"f64"},r={parameters:[],results:"v"==t[0]?[]:[n[t[0]]]},s=1;s<t.length;++s)r.parameters.push(n[t[s]]);return new WebAssembly.Function(r,e)}var i=[1,0,1,96],o=t.slice(0,1),a=t.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),s=0;s<a.length;++s)i.push(c[a[s]]);"v"==o?i.push(0):i=i.concat([1,c[o]]),i[1]=i.length-2;var u=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:e}}).exports.f}(e,t);Z.set(s,i)}return E.set(e,s),s}var O,j=r.dynamicLibraries||[];r.wasmBinary&&(O=r.wasmBinary);var A,I=r.noExitRuntime||!0;function k(e,t,n,r){switch("*"===(n=n||"i8").charAt(n.length-1)&&(n="i32"),n){case"i1":case"i8":R[e>>0]=t;break;case"i16":C[e>>1]=t;break;case"i32":q[e>>2]=t;break;case"i64":le=[t>>>0,(ue=t,+Math.abs(ue)>=1?ue>0?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],q[e>>2]=le[0],q[e+4>>2]=le[1];break;case"float":D[e>>2]=t;break;case"double":L[e>>3]=t;break;default:ae("invalid type for setValue: "+n)}}function N(e,t,n){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return R[e>>0];case"i16":return C[e>>1];case"i32":case"i64":return q[e>>2];case"float":return D[e>>2];case"double":return L[e>>3];default:ae("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ae("no native wasm support detected");var M=!1;function T(e,t){e||ae("Assertion failed: "+t)}var $,R,F,C,q,D,L,B="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function V(e,t,n){for(var r=t+n,s=t;e[s]&&!(s>=r);)++s;if(s-t>16&&e.subarray&&B)return B.decode(e.subarray(t,s));for(var i="";t<s;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function U(e,t){return e?V(F,e,t):""}function z(e,t,n,r){if(!(r>0))return 0;for(var s=n,i=n+r-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),a<=127){if(n>=i)break;t[n++]=a}else if(a<=2047){if(n+1>=i)break;t[n++]=192|a>>6,t[n++]=128|63&a}else if(a<=65535){if(n+2>=i)break;t[n++]=224|a>>12,t[n++]=128|a>>6&63,t[n++]=128|63&a}else{if(n+3>=i)break;t[n++]=240|a>>18,t[n++]=128|a>>12&63,t[n++]=128|a>>6&63,t[n++]=128|63&a}}return t[n]=0,n-s}function H(e,t,n){return z(e,F,t,n)}function G(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r>=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++n)),r<=127?++t:t+=r<=2047?2:r<=65535?3:4}return t}function W(e){var t=G(e)+1,n=Ue(t);return z(e,R,n,t),n}function J(e){$=e,r.HEAP8=R=new Int8Array(e),r.HEAP16=C=new Int16Array(e),r.HEAP32=q=new Int32Array(e),r.HEAPU8=F=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=new Uint32Array(e),r.HEAPF32=D=new Float32Array(e),r.HEAPF64=L=new Float64Array(e)}var K=r.INITIAL_MEMORY||33554432;(A=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:K/65536,maximum:32768}))&&($=A.buffer),K=$.byteLength,J($);var Z=new WebAssembly.Table({initial:17,element:"anyfunc"}),X=[],Y=[],Q=[],ee=[],te=!1,ne=0,re=null,se=null;function ie(e){ne++,r.monitorRunDependencies&&r.monitorRunDependencies(ne)}function oe(e){if(ne--,r.monitorRunDependencies&&r.monitorRunDependencies(ne),0==ne&&(null!==re&&(clearInterval(re),re=null),se)){var t=se;se=null,t()}}function ae(e){throw r.onAbort&&r.onAbort(e),w(e+=""),M=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}r.preloadedImages={},r.preloadedAudios={},r.preloadedWasm={};var ce,ue,le;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function he(e){return e.startsWith("file://")}function me(e){try{if(e==ce&&O)return new Uint8Array(O);if(g)return g(e);throw"both async and sync fetching of the wasm failed"}catch(e){ae(e)}}pe(ce="tree-sitter.wasm")||(ce=function(e){return r.locateFile?r.locateFile(e,b):b+e}(ce));var fe={},de={get:function(e,t){return fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),fe[t]}};function _e(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var n=t.func;"number"==typeof n?void 0===t.arg?Z.get(n)():Z.get(n)(t.arg):n(void 0===t.arg?null:t.arg)}else t(r)}}function ge(e){var t=0;function n(){for(var n=0,r=1;;){var s=e[t++];if(n+=(127&s)*r,r*=128,!(128&s))break}return n}if(e instanceof WebAssembly.Module){var r=WebAssembly.Module.customSections(e,"dylink");T(0!=r.length,"need dylink section"),e=new Int8Array(r[0])}else T(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),T(0===e[8],"need the dylink section to be first"),t=9,n(),T(6===e[t]),T(e[++t]==="d".charCodeAt(0)),T(e[++t]==="y".charCodeAt(0)),T(e[++t]==="l".charCodeAt(0)),T(e[++t]==="i".charCodeAt(0)),T(e[++t]==="n".charCodeAt(0)),T(e[++t]==="k".charCodeAt(0)),t++;var s={};s.memorySize=n(),s.memoryAlign=n(),s.tableSize=n(),s.tableAlign=n();var i=n();s.neededDynlibs=[];for(var o=0;o<i;++o){var a=n(),c=e.subarray(t,t+a);t+=a;var u=V(c,0);s.neededDynlibs.push(u)}return s}var ye=0;function ve(){return I||ye>0}function be(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function we(e,t){for(var n in e)if(e.hasOwnProperty(n)){qe.hasOwnProperty(n)||(qe[n]=e[n]);var s=be(n);r.hasOwnProperty(s)||(r[s]=e[n])}}var Ee={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xe=5250880;function Se(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function Pe(e,t){var n={};for(var r in e){var s=e[r];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),n[r]=s}return function(e){for(var t in e)if(!Se(t)){var n=!1,r=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],n=!0),fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(n||0==fe[t].value)&&("function"==typeof r?fe[t].value=P(r):"number"==typeof r?fe[t].value=r:w("unhandled export type for `"+t+"`: "+typeof r))}}(n),n}function Oe(e,t){var n,s;return t&&(n=qe["orig$"+e]),n||(n=qe[e]),n||(n=r[be(e)]),!n&&e.startsWith("invoke_")&&(s=e.split("_")[1],n=function(){var e=Be();try{return function(e,t,n){return e.includes("j")?function(e,t,n){var s=r["dynCall_"+e];return n&&n.length?s.apply(null,[t].concat(n)):s.call(null,t)}(e,t,n):Z.get(t).apply(null,n)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Ve(e),t!==t+0&&"longjmp"!==t)throw t;ze(1,0)}}),n}function je(e,t){var n=ge(e);function r(){var r=Math.pow(2,n.memoryAlign);r=Math.max(r,x);var s,i,o,a=(s=function(e){if(te)return De(e);var t=xe,n=t+e+15&-16;return xe=n,fe.__heap_base.value=n,t}(n.memorySize+r),(i=r)||(i=x),Math.ceil(s/i)*i),c=Z.length;Z.grow(n.tableSize);for(var u=a;u<a+n.memorySize;u++)R[u]=0;for(u=c;u<c+n.tableSize;u++)Z.set(u,null);var l=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return a;case"__table_base":return c}return t in qe?qe[t]:(t in e||(e[t]=function(){return n||(n=function(e){var t=Oe(e,!1);return t||(t=o[e]),t}(t)),n.apply(null,arguments)}),e[t]);var n}}),p={"GOT.mem":new Proxy({},de),"GOT.func":new Proxy({},de),env:l,wasi_snapshot_preview1:l};function h(e){for(var r=0;r<n.tableSize;r++){var s=Z.get(c+r);s&&E.set(s,c+r)}o=Pe(e.exports,a),t.allowUndefined||Ie();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(te?i():Y.push(i)),o}if(t.loadAsync){if(e instanceof WebAssembly.Module){var m=new WebAssembly.Instance(e,p);return Promise.resolve(h(m))}return WebAssembly.instantiate(e,p).then((function(e){return h(e.instance)}))}var f=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return h(m=new WebAssembly.Instance(f,p))}return t.loadAsync?n.neededDynlibs.reduce((function(e,n){return e.then((function(){return Ae(n,t)}))}),Promise.resolve()).then((function(){return r()})):(n.neededDynlibs.forEach((function(e){Ae(e,t)})),r())}function Ae(e,t){"__main__"!=e||Ee.loadedLibNames[e]||(Ee.loadedLibs[-1]={refcount:1/0,name:"__main__",module:r.asm,global:!0},Ee.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var n,s=Ee.loadedLibNames[e];if(s)return n=Ee.loadedLibs[s],t.global&&!n.global&&(n.global=!0,"loading"!==n.module&&we(n.module)),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,t.loadAsync?Promise.resolve(s):s;function i(e){if(t.fs){var n=t.fs.readFile(e,{encoding:"binary"});return n instanceof Uint8Array||(n=new Uint8Array(n)),t.loadAsync?Promise.resolve(n):n}return t.loadAsync?(r=e,fetch(r,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+r+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):g(e);var r}function o(){if(void 0!==r.preloadedWasm&&void 0!==r.preloadedWasm[e]){var n=r.preloadedWasm[e];return t.loadAsync?Promise.resolve(n):n}return t.loadAsync?i(e).then((function(e){return je(e,t)})):je(i(e),t)}function a(e){n.global&&we(e),n.module=e}return s=Ee.nextHandle++,n={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},Ee.loadedLibNames[e]=s,Ee.loadedLibs[s]=n,t.loadAsync?o().then((function(e){return a(e),s})):(a(o()),s)}function Ie(){for(var e in fe)if(0==fe[e].value){var t=Oe(e,!0);"function"==typeof t?fe[e].value=P(t,t.sig):"number"==typeof t?fe[e].value=t:T(!1,"bad export type for `"+e+"`: "+typeof t)}}r.___heap_base=xe;var ke,Ne=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Me(){ae()}r._abort=Me,Me.sig="v",ke=c?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Te(e,t){var n;if(0===e)n=Date.now();else{if(1!==e&&4!==e)return 28,q[Le()>>2]=28,-1;n=ke()}return q[t>>2]=n/1e3|0,q[t+4>>2]=n%1e3*1e3*1e3|0,0}function $e(e){try{return A.grow(e-$.byteLength+65535>>>16),J(A.buffer),1}catch(e){}}function Re(e){Je(e)}function Fe(e){}Te.sig="iii",Re.sig="vi",Fe.sig="vi";var Ce,qe={__heap_base:xe,__indirect_function_table:Z,__memory_base:1024,__stack_pointer:Ne,__table_base:1,abort:Me,clock_gettime:Te,emscripten_memcpy_big:function(e,t,n){F.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=F.length;if((e>>>=0)>2147483648)return!1;for(var r=1;r<=4;r*=2){var s=n*(1+.2/r);if(s=Math.min(s,e+100663296),$e(Math.min(2147483648,((t=Math.max(e,s))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Re,memory:A,setTempRet0:Fe,tree_sitter_log_callback:function(e,t){if(ut){const n=U(t);ut(n,0!==e)}},tree_sitter_parse_callback:function(e,t,n,r,s){var i=ct(t,{row:n,column:r});"string"==typeof i?(k(s,i.length,"i32"),function(e,t,n){if(void 0===n&&(n=2147483647),n<2)return 0;for(var r=(n-=2)<2*e.length?n/2:e.length,s=0;s<r;++s){var i=e.charCodeAt(s);C[t>>1]=i,t+=2}C[t>>1]=0}(i,e,10240)):k(s,0,"i32")}},De=(function(){var e={env:qe,wasi_snapshot_preview1:qe,"GOT.mem":new Proxy(qe,de),"GOT.func":new Proxy(qe,de)};function t(e,t){var n=e.exports;n=Pe(n,1024),r.asm=n;var s,i=ge(t);i.neededDynlibs&&(j=i.neededDynlibs.concat(j)),we(n),s=r.asm.__wasm_call_ctors,Y.unshift(s),oe()}function n(e){t(e.instance,e.module)}function s(t){return function(){if(!O&&(l||p)){if("function"==typeof fetch&&!he(ce))return fetch(ce,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ce+"'";return e.arrayBuffer()})).catch((function(){return me(ce)}));if(_)return new Promise((function(e,t){_(ce,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return me(ce)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){w("failed to asynchronously prepare wasm: "+e),ae(e)}))}if(ie(),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(e){return w("Module.instantiateWasm callback failed with error: "+e),!1}O||"function"!=typeof WebAssembly.instantiateStreaming||pe(ce)||he(ce)||"function"!=typeof fetch?s(n):fetch(ce,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return w("wasm streaming compile failed: "+e),w("falling back to ArrayBuffer instantiation"),s(n)}))}))}(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r._malloc=function(){return(De=r._malloc=r.asm.malloc).apply(null,arguments)}),Le=(r._calloc=function(){return(r._calloc=r.asm.calloc).apply(null,arguments)},r._realloc=function(){return(r._realloc=r.asm.realloc).apply(null,arguments)},r._free=function(){return(r._free=r.asm.free).apply(null,arguments)},r._ts_language_symbol_count=function(){return(r._ts_language_symbol_count=r.asm.ts_language_symbol_count).apply(null,arguments)},r._ts_language_version=function(){return(r._ts_language_version=r.asm.ts_language_version).apply(null,arguments)},r._ts_language_field_count=function(){return(r._ts_language_field_count=r.asm.ts_language_field_count).apply(null,arguments)},r._ts_language_symbol_name=function(){return(r._ts_language_symbol_name=r.asm.ts_language_symbol_name).apply(null,arguments)},r._ts_language_symbol_for_name=function(){return(r._ts_language_symbol_for_name=r.asm.ts_language_symbol_for_name).apply(null,arguments)},r._ts_language_symbol_type=function(){return(r._ts_language_symbol_type=r.asm.ts_language_symbol_type).apply(null,arguments)},r._ts_language_field_name_for_id=function(){return(r._ts_language_field_name_for_id=r.asm.ts_language_field_name_for_id).apply(null,arguments)},r._memcpy=function(){return(r._memcpy=r.asm.memcpy).apply(null,arguments)},r._ts_parser_delete=function(){return(r._ts_parser_delete=r.asm.ts_parser_delete).apply(null,arguments)},r._ts_parser_reset=function(){return(r._ts_parser_reset=r.asm.ts_parser_reset).apply(null,arguments)},r._ts_parser_set_language=function(){return(r._ts_parser_set_language=r.asm.ts_parser_set_language).apply(null,arguments)},r._ts_parser_timeout_micros=function(){return(r._ts_parser_timeout_micros=r.asm.ts_parser_timeout_micros).apply(null,arguments)},r._ts_parser_set_timeout_micros=function(){return(r._ts_parser_set_timeout_micros=r.asm.ts_parser_set_timeout_micros).apply(null,arguments)},r._memmove=function(){return(r._memmove=r.asm.memmove).apply(null,arguments)},r._memcmp=function(){return(r._memcmp=r.asm.memcmp).apply(null,arguments)},r._ts_query_new=function(){return(r._ts_query_new=r.asm.ts_query_new).apply(null,arguments)},r._ts_query_delete=function(){return(r._ts_query_delete=r.asm.ts_query_delete).apply(null,arguments)},r._iswspace=function(){return(r._iswspace=r.asm.iswspace).apply(null,arguments)},r._iswalnum=function(){return(r._iswalnum=r.asm.iswalnum).apply(null,arguments)},r._ts_query_pattern_count=function(){return(r._ts_query_pattern_count=r.asm.ts_query_pattern_count).apply(null,arguments)},r._ts_query_capture_count=function(){return(r._ts_query_capture_count=r.asm.ts_query_capture_count).apply(null,arguments)},r._ts_query_string_count=function(){return(r._ts_query_string_count=r.asm.ts_query_string_count).apply(null,arguments)},r._ts_query_capture_name_for_id=function(){return(r._ts_query_capture_name_for_id=r.asm.ts_query_capture_name_for_id).apply(null,arguments)},r._ts_query_string_value_for_id=function(){return(r._ts_query_string_value_for_id=r.asm.ts_query_string_value_for_id).apply(null,arguments)},r._ts_query_predicates_for_pattern=function(){return(r._ts_query_predicates_for_pattern=r.asm.ts_query_predicates_for_pattern).apply(null,arguments)},r._ts_tree_copy=function(){return(r._ts_tree_copy=r.asm.ts_tree_copy).apply(null,arguments)},r._ts_tree_delete=function(){return(r._ts_tree_delete=r.asm.ts_tree_delete).apply(null,arguments)},r._ts_init=function(){return(r._ts_init=r.asm.ts_init).apply(null,arguments)},r._ts_parser_new_wasm=function(){return(r._ts_parser_new_wasm=r.asm.ts_parser_new_wasm).apply(null,arguments)},r._ts_parser_enable_logger_wasm=function(){return(r._ts_parser_enable_logger_wasm=r.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},r._ts_parser_parse_wasm=function(){return(r._ts_parser_parse_wasm=r.asm.ts_parser_parse_wasm).apply(null,arguments)},r._ts_language_type_is_named_wasm=function(){return(r._ts_language_type_is_named_wasm=r.asm.ts_language_type_is_named_wasm).apply(null,arguments)},r._ts_language_type_is_visible_wasm=function(){return(r._ts_language_type_is_visible_wasm=r.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},r._ts_tree_root_node_wasm=function(){return(r._ts_tree_root_node_wasm=r.asm.ts_tree_root_node_wasm).apply(null,arguments)},r._ts_tree_edit_wasm=function(){return(r._ts_tree_edit_wasm=r.asm.ts_tree_edit_wasm).apply(null,arguments)},r._ts_tree_get_changed_ranges_wasm=function(){return(r._ts_tree_get_changed_ranges_wasm=r.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},r._ts_tree_cursor_new_wasm=function(){return(r._ts_tree_cursor_new_wasm=r.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},r._ts_tree_cursor_delete_wasm=function(){return(r._ts_tree_cursor_delete_wasm=r.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},r._ts_tree_cursor_reset_wasm=function(){return(r._ts_tree_cursor_reset_wasm=r.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_first_child_wasm=function(){return(r._ts_tree_cursor_goto_first_child_wasm=r.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_next_sibling_wasm=function(){return(r._ts_tree_cursor_goto_next_sibling_wasm=r.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_parent_wasm=function(){return(r._ts_tree_cursor_goto_parent_wasm=r.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_type_id_wasm=function(){return(r._ts_tree_cursor_current_node_type_id_wasm=r.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_named_wasm=function(){return(r._ts_tree_cursor_current_node_is_named_wasm=r.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_missing_wasm=function(){return(r._ts_tree_cursor_current_node_is_missing_wasm=r.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_id_wasm=function(){return(r._ts_tree_cursor_current_node_id_wasm=r.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},r._ts_tree_cursor_start_position_wasm=function(){return(r._ts_tree_cursor_start_position_wasm=r.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},r._ts_tree_cursor_end_position_wasm=function(){return(r._ts_tree_cursor_end_position_wasm=r.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},r._ts_tree_cursor_start_index_wasm=function(){return(r._ts_tree_cursor_start_index_wasm=r.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},r._ts_tree_cursor_end_index_wasm=function(){return(r._ts_tree_cursor_end_index_wasm=r.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},r._ts_tree_cursor_current_field_id_wasm=function(){return(r._ts_tree_cursor_current_field_id_wasm=r.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_wasm=function(){return(r._ts_tree_cursor_current_node_wasm=r.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},r._ts_node_symbol_wasm=function(){return(r._ts_node_symbol_wasm=r.asm.ts_node_symbol_wasm).apply(null,arguments)},r._ts_node_child_count_wasm=function(){return(r._ts_node_child_count_wasm=r.asm.ts_node_child_count_wasm).apply(null,arguments)},r._ts_node_named_child_count_wasm=function(){return(r._ts_node_named_child_count_wasm=r.asm.ts_node_named_child_count_wasm).apply(null,arguments)},r._ts_node_child_wasm=function(){return(r._ts_node_child_wasm=r.asm.ts_node_child_wasm).apply(null,arguments)},r._ts_node_named_child_wasm=function(){return(r._ts_node_named_child_wasm=r.asm.ts_node_named_child_wasm).apply(null,arguments)},r._ts_node_child_by_field_id_wasm=function(){return(r._ts_node_child_by_field_id_wasm=r.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},r._ts_node_next_sibling_wasm=function(){return(r._ts_node_next_sibling_wasm=r.asm.ts_node_next_sibling_wasm).apply(null,arguments)},r._ts_node_prev_sibling_wasm=function(){return(r._ts_node_prev_sibling_wasm=r.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},r._ts_node_next_named_sibling_wasm=function(){return(r._ts_node_next_named_sibling_wasm=r.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},r._ts_node_prev_named_sibling_wasm=function(){return(r._ts_node_prev_named_sibling_wasm=r.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},r._ts_node_parent_wasm=function(){return(r._ts_node_parent_wasm=r.asm.ts_node_parent_wasm).apply(null,arguments)},r._ts_node_descendant_for_index_wasm=function(){return(r._ts_node_descendant_for_index_wasm=r.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_index_wasm=function(){return(r._ts_node_named_descendant_for_index_wasm=r.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_descendant_for_position_wasm=function(){return(r._ts_node_descendant_for_position_wasm=r.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_position_wasm=function(){return(r._ts_node_named_descendant_for_position_wasm=r.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_start_point_wasm=function(){return(r._ts_node_start_point_wasm=r.asm.ts_node_start_point_wasm).apply(null,arguments)},r._ts_node_end_point_wasm=function(){return(r._ts_node_end_point_wasm=r.asm.ts_node_end_point_wasm).apply(null,arguments)},r._ts_node_start_index_wasm=function(){return(r._ts_node_start_index_wasm=r.asm.ts_node_start_index_wasm).apply(null,arguments)},r._ts_node_end_index_wasm=function(){return(r._ts_node_end_index_wasm=r.asm.ts_node_end_index_wasm).apply(null,arguments)},r._ts_node_to_string_wasm=function(){return(r._ts_node_to_string_wasm=r.asm.ts_node_to_string_wasm).apply(null,arguments)},r._ts_node_children_wasm=function(){return(r._ts_node_children_wasm=r.asm.ts_node_children_wasm).apply(null,arguments)},r._ts_node_named_children_wasm=function(){return(r._ts_node_named_children_wasm=r.asm.ts_node_named_children_wasm).apply(null,arguments)},r._ts_node_descendants_of_type_wasm=function(){return(r._ts_node_descendants_of_type_wasm=r.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},r._ts_node_is_named_wasm=function(){return(r._ts_node_is_named_wasm=r.asm.ts_node_is_named_wasm).apply(null,arguments)},r._ts_node_has_changes_wasm=function(){return(r._ts_node_has_changes_wasm=r.asm.ts_node_has_changes_wasm).apply(null,arguments)},r._ts_node_has_error_wasm=function(){return(r._ts_node_has_error_wasm=r.asm.ts_node_has_error_wasm).apply(null,arguments)},r._ts_node_is_missing_wasm=function(){return(r._ts_node_is_missing_wasm=r.asm.ts_node_is_missing_wasm).apply(null,arguments)},r._ts_query_matches_wasm=function(){return(r._ts_query_matches_wasm=r.asm.ts_query_matches_wasm).apply(null,arguments)},r._ts_query_captures_wasm=function(){return(r._ts_query_captures_wasm=r.asm.ts_query_captures_wasm).apply(null,arguments)},r._iswdigit=function(){return(r._iswdigit=r.asm.iswdigit).apply(null,arguments)},r._iswalpha=function(){return(r._iswalpha=r.asm.iswalpha).apply(null,arguments)},r._iswlower=function(){return(r._iswlower=r.asm.iswlower).apply(null,arguments)},r._towupper=function(){return(r._towupper=r.asm.towupper).apply(null,arguments)},r.___errno_location=function(){return(Le=r.___errno_location=r.asm.__errno_location).apply(null,arguments)}),Be=(r._memchr=function(){return(r._memchr=r.asm.memchr).apply(null,arguments)},r._strlen=function(){return(r._strlen=r.asm.strlen).apply(null,arguments)},r.stackSave=function(){return(Be=r.stackSave=r.asm.stackSave).apply(null,arguments)}),Ve=r.stackRestore=function(){return(Ve=r.stackRestore=r.asm.stackRestore).apply(null,arguments)},Ue=r.stackAlloc=function(){return(Ue=r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},ze=r._setThrew=function(){return(ze=r._setThrew=r.asm.setThrew).apply(null,arguments)};function He(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=r.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},r.__Znwm=function(){return(r.__Znwm=r.asm._Znwm).apply(null,arguments)},r.__ZdlPv=function(){return(r.__ZdlPv=r.asm._ZdlPv).apply(null,arguments)},r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=r.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},r._orig$ts_parser_timeout_micros=function(){return(r._orig$ts_parser_timeout_micros=r.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},r._orig$ts_parser_set_timeout_micros=function(){return(r._orig$ts_parser_set_timeout_micros=r.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},r.allocate=function(e,t){var n;return n=1==t?Ue(e.length):De(e.length),e.subarray||e.slice?F.set(e,n):F.set(new Uint8Array(e),n),n},se=function e(){Ce||We(),Ce||(se=e)};var Ge=!1;function We(e){function t(){Ce||(Ce=!0,r.calledRun=!0,M||(te=!0,_e(Y),_e(Q),r.onRuntimeInitialized&&r.onRuntimeInitialized(),Ke&&function(e){var t=r._main;if(t){var n=(e=e||[]).length+1,s=Ue(4*(n+1));q[s>>2]=W(m);for(var i=1;i<n;i++)q[(s>>2)+i]=W(e[i-1]);q[(s>>2)+n]=0;try{Je(t(n,s),!0)}catch(e){if(e instanceof He)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),w("exception thrown: "+o),f(1,e)}}}(e),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)e=r.postRun.shift(),ee.unshift(e);var e;_e(ee)}()))}e=e||h,ne>0||!Ge&&(function(){if(j.length){if(!g)return ie(),void j.reduce((function(e,t){return e.then((function(){return Ae(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),Ie()}));j.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),Ie()}else Ie()}(),Ge=!0,ne>0)||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)e=r.preRun.shift(),X.unshift(e);var e;_e(X)}(),ne>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),t()}),1)):t()))}function Je(e,t){t&&ve()&&0===e||(ve()||(r.onExit&&r.onExit(e),M=!0),f(e,new He(e)))}if(r.run=We,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();var Ke=!0;r.noInitialRun&&(Ke=!1),We();const Ze=r,Xe={},Ye=4,Qe=5*Ye,et=2*Ye,tt=2*Ye+2*et,nt={row:0,column:0},rt=/[\w-.]*/g,st=/^_?tree_sitter_\w+/;var it,ot,at,ct,ut;class lt{static init(){at=Ze._ts_init(),it=N(at,"i32"),ot=N(at+Ye,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=N(at,"i32"),this[1]=N(at+Ye,"i32")}delete(){Ze._ts_parser_delete(this[0]),Ze._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==ft)throw new Error("Argument must be a Language");{t=e[0];const n=Ze._ts_language_version(t);if(n<ot||it<n)throw new Error(`Incompatible language version ${n}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,Ze._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,n){if("string"==typeof e)ct=(t,n,r)=>e.slice(t,r);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");ct=e}this.logCallback?(ut=this.logCallback,Ze._ts_parser_enable_logger_wasm(this[0],1)):(ut=null,Ze._ts_parser_enable_logger_wasm(this[0],0));let r=0,s=0;if(n&&n.includedRanges){r=n.includedRanges.length;let e=s=Ze._calloc(r,tt);for(let t=0;t<r;t++)Ot(e,n.includedRanges[t]),e+=tt}const i=Ze._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,r);if(!i)throw ct=null,ut=null,new Error("Parsing failed");const o=new pt(Xe,i,this.language,ct);return ct=null,ut=null,o}reset(){Ze._ts_parser_reset(this[0])}setTimeoutMicros(e){Ze._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ze._ts_parser_timeout_micros(this[0])}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class pt{constructor(e,t,n,r){yt(e),this[0]=t,this.language=n,this.textCallback=r}copy(){const e=Ze._ts_tree_copy(this[0]);return new pt(Xe,e,this.language,this.textCallback)}delete(){Ze._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=at;St(t,e.startPosition),St(t+=et,e.oldEndPosition),St(t+=et,e.newEndPosition),k(t+=et,e.startIndex,"i32"),k(t+=Ye,e.oldEndIndex,"i32"),k(t+=Ye,e.newEndIndex,"i32"),t+=Ye}(e),Ze._ts_tree_edit_wasm(this[0])}get rootNode(){return Ze._ts_tree_root_node_wasm(this[0]),wt(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");Ze._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=N(at,"i32"),n=N(at+Ye,"i32"),r=new Array(t);if(t>0){let e=n;for(let n=0;n<t;n++)r[n]=jt(e),e+=tt;Ze._free(n)}return r}}class ht{constructor(e,t){yt(e),this.tree=t}get typeId(){return bt(this),Ze._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return bt(this),Ze._ts_node_end_point_wasm(this.tree[0]),Pt(at)}get endIndex(){return bt(this),Ze._ts_node_end_index_wasm(this.tree[0])}get text(){return _t(this.tree,this.startIndex,this.endIndex)}isNamed(){return bt(this),1===Ze._ts_node_is_named_wasm(this.tree[0])}hasError(){return bt(this),1===Ze._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return bt(this),1===Ze._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return bt(this),1===Ze._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return bt(this),Ze._ts_node_child_wasm(this.tree[0],e),wt(this.tree)}namedChild(e){return bt(this),Ze._ts_node_named_child_wasm(this.tree[0],e),wt(this.tree)}childForFieldId(e){return bt(this),Ze._ts_node_child_by_field_id_wasm(this.tree[0],e),wt(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return bt(this),Ze._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return bt(this),Ze._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){bt(this),Ze._ts_node_children_wasm(this.tree[0]);const e=N(at,"i32"),t=N(at+Ye,"i32");if(this._children=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._children[t]=wt(this.tree,n),n+=Qe;Ze._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){bt(this),Ze._ts_node_named_children_wasm(this.tree[0]);const e=N(at,"i32"),t=N(at+Ye,"i32");if(this._namedChildren=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._namedChildren[t]=wt(this.tree,n),n+=Qe;Ze._free(t)}}return this._namedChildren}descendantsOfType(e,t,n){Array.isArray(e)||(e=[e]),t||(t=nt),n||(n=nt);const r=[],s=this.tree.language.types;for(let t=0,n=s.length;t<n;t++)e.includes(s[t])&&r.push(t);const i=Ze._malloc(Ye*r.length);for(let e=0,t=r.length;e<t;e++)k(i+e*Ye,r[e],"i32");bt(this),Ze._ts_node_descendants_of_type_wasm(this.tree[0],i,r.length,t.row,t.column,n.row,n.column);const o=N(at,"i32"),a=N(at+Ye,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=wt(this.tree,e),e+=Qe}return Ze._free(a),Ze._free(i),c}get nextSibling(){return bt(this),Ze._ts_node_next_sibling_wasm(this.tree[0]),wt(this.tree)}get previousSibling(){return bt(this),Ze._ts_node_prev_sibling_wasm(this.tree[0]),wt(this.tree)}get nextNamedSibling(){return bt(this),Ze._ts_node_next_named_sibling_wasm(this.tree[0]),wt(this.tree)}get previousNamedSibling(){return bt(this),Ze._ts_node_prev_named_sibling_wasm(this.tree[0]),wt(this.tree)}get parent(){return bt(this),Ze._ts_node_parent_wasm(this.tree[0]),wt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let n=at+Qe;return k(n,e,"i32"),k(n+Ye,t,"i32"),Ze._ts_node_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let n=at+Qe;return k(n,e,"i32"),k(n+Ye,t,"i32"),Ze._ts_node_named_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}descendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let n=at+Qe;return St(n,e),St(n+et,t),Ze._ts_node_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}namedDescendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let n=at+Qe;return St(n,e),St(n+et,t),Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}walk(){return bt(this),Ze._ts_tree_cursor_new_wasm(this.tree[0]),new mt(Xe,this.tree)}toString(){bt(this);const e=Ze._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var n=F[e++>>0];if(!n)return t;t+=String.fromCharCode(n)}}(e);return Ze._free(e),t}}class mt{constructor(e,t){yt(e),this.tree=t,xt(this)}delete(){Et(this),Ze._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){bt(e),Et(this,at+Qe),Ze._ts_tree_cursor_reset_wasm(this.tree[0]),xt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Et(this),Ze._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Et(this),Ze._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Et(this),1===Ze._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Et(this),1===Ze._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Et(this);const e=Ze._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ze._ts_tree_cursor_end_index_wasm(this.tree[0]);return _t(this.tree,e,t)}get startPosition(){return Et(this),Ze._ts_tree_cursor_start_position_wasm(this.tree[0]),Pt(at)}get endPosition(){return Et(this),Ze._ts_tree_cursor_end_position_wasm(this.tree[0]),Pt(at)}get startIndex(){return Et(this),Ze._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Et(this),Ze._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Et(this),Ze._ts_tree_cursor_current_node_wasm(this.tree[0]),wt(this.tree)}currentFieldId(){return Et(this),Ze._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Et(this);const e=Ze._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xt(this),1===e}gotoNextSibling(){Et(this);const e=Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xt(this),1===e}gotoParent(){Et(this);const e=Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xt(this),1===e}}class ft{constructor(e,t){yt(e),this[0]=t,this.types=new Array(Ze._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ze._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=U(Ze._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ze._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ze._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?U(t):null}}get version(){return Ze._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const n=G(e),r=Ze._malloc(n+1);H(e,r,n+1);const s=Ze._ts_language_symbol_for_name(this[0],r,n,t);return Ze._free(r),s||null}get nodeTypeCount(){return Ze._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ze._ts_language_symbol_name(this[0],e);return t?U(t):null}nodeTypeIsNamed(e){return!!Ze._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ze._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=G(e),n=Ze._malloc(t+1);H(e,n,t+1);const r=Ze._ts_query_new(this[0],n,t,at,at+Ye);if(!r){const t=N(at+Ye,"i32"),r=U(n,N(at,"i32")).length,s=e.substr(r,100).split("\n")[0];let i,o=s.match(rt)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${r}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${r}: '${s}'...`),o=""}throw i.index=r,i.length=o.length,Ze._free(n),i}const s=Ze._ts_query_string_count(r),i=Ze._ts_query_capture_count(r),o=Ze._ts_query_pattern_count(r),a=new Array(i),c=new Array(s);for(let e=0;e<i;e++){const t=Ze._ts_query_capture_name_for_id(r,e,at),n=N(at,"i32");a[e]=U(t,n)}for(let e=0;e<s;e++){const t=Ze._ts_query_string_value_for_id(r,e,at),n=N(at,"i32");c[e]=U(t,n)}const u=new Array(o),l=new Array(o),p=new Array(o),h=new Array(o),m=new Array(o);for(let e=0;e<o;e++){const t=Ze._ts_query_predicates_for_pattern(r,e,at),n=N(at,"i32");h[e]=[],m[e]=[];const s=[];let i=t;for(let t=0;t<n;t++){const t=N(i,"i32"),n=N(i+=Ye,"i32");if(i+=Ye,1===t)s.push({type:"capture",name:a[n]});else if(2===t)s.push({type:"string",value:c[n]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let n=!0;switch(t){case"not-eq?":n=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const t=s[1].name,r=s[2].name;m[e].push((function(e){let s,i;for(const n of e)n.name===t&&(s=n.node),n.name===r&&(i=n.node);return void 0===s||void 0===i||s.text===i.text===n}))}else{const t=s[1].name,r=s[2].value;m[e].push((function(e){for(const s of e)if(s.name===t)return s.node.text===r===n;return!0}))}break;case"not-match?":n=!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 r=s[1].name,i=new RegExp(s[2].value);m[e].push((function(e){for(const t of e)if(t.name===r)return i.test(t.node.text)===n;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?l:p;o[e]||(o[e]={}),o[e][s[1].value]=s[2]?s[2].value:null;break;default:h[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return Ze._free(n),new dt(Xe,r,a,m,h,Object.freeze(u),Object.freeze(l),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=n(5530);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const n=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${n}`)}}))))}const r="function"==typeof loadSideModule?loadSideModule:je;return t.then((e=>r(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),n=t.find((e=>st.test(e)&&!e.includes("external_scanner_")));n||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[n]();return new ft(Xe,r)}))}}class dt{constructor(e,t,n,r,s,i,o,a){yt(e),this[0]=t,this.captureNames=n,this.textPredicates=r,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ze._ts_query_delete(this[0]),this[0]=0}matches(e,t,n,r){t||(t=nt),n||(n=nt),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");bt(e),Ze._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column,s);const i=N(at,"i32"),o=N(at+Ye,"i32"),a=N(at+2*Ye,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let t=0;t<i;t++){const n=N(l,"i32"),r=N(l+=Ye,"i32");l+=Ye;const s=new Array(r);if(l=gt(this,e.tree,l,s),this.textPredicates[n].every((e=>e(s)))){c[u++]={pattern:n,captures:s};const e=this.setProperties[n];e&&(c[t].setProperties=e);const r=this.assertedProperties[n];r&&(c[t].assertedProperties=r);const i=this.refutedProperties[n];i&&(c[t].refutedProperties=i)}}return c.length=u,Ze._free(o),c}captures(e,t,n,r){t||(t=nt),n||(n=nt),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");bt(e),Ze._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column,s);const i=N(at,"i32"),o=N(at+Ye,"i32"),a=N(at+2*Ye,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;t<i;t++){const t=N(l,"i32"),n=N(l+=Ye,"i32"),r=N(l+=Ye,"i32");if(l+=Ye,u.length=n,l=gt(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[r],n=this.setProperties[t];n&&(e.setProperties=n);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return Ze._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function _t(e,t,n){const r=n-t;let s=e.textCallback(t,null,n);for(t+=s.length;t<n;){const r=e.textCallback(t,null,n);if(!(r&&r.length>0))break;t+=r.length,s+=r}return t>n&&(s=s.slice(0,r)),s}function gt(e,t,n,r){for(let s=0,i=r.length;s<i;s++){const i=N(n,"i32"),o=wt(t,n+=Ye);n+=Qe,r[s]={name:e.captureNames[i],node:o}}return n}function yt(e){if(e!==Xe)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function bt(e){let t=at;k(t,e.id,"i32"),k(t+=Ye,e.startIndex,"i32"),k(t+=Ye,e.startPosition.row,"i32"),k(t+=Ye,e.startPosition.column,"i32"),k(t+=Ye,e[0],"i32")}function wt(e,t=at){const n=N(t,"i32");if(0===n)return null;const r=N(t+=Ye,"i32"),s=N(t+=Ye,"i32"),i=N(t+=Ye,"i32"),o=N(t+=Ye,"i32"),a=new ht(Xe,e);return a.id=n,a.startIndex=r,a.startPosition={row:s,column:i},a[0]=o,a}function Et(e,t=at){k(t+0*Ye,e[0],"i32"),k(t+1*Ye,e[1],"i32"),k(t+2*Ye,e[2],"i32")}function xt(e){e[0]=N(at+0*Ye,"i32"),e[1]=N(at+1*Ye,"i32"),e[2]=N(at+2*Ye,"i32")}function St(e,t){k(e,t.row,"i32"),k(e+Ye,t.column,"i32")}function Pt(e){return{row:N(e,"i32"),column:N(e+Ye,"i32")}}function Ot(e,t){St(e,t.startPosition),St(e+=et,t.endPosition),k(e+=et,t.startIndex,"i32"),k(e+=Ye,t.endIndex,"i32"),e+=Ye}function jt(e){const t={};return t.startPosition=Pt(e),e+=et,t.endPosition=Pt(e),e+=et,t.startIndex=N(e,"i32"),e+=Ye,t.endIndex=N(e,"i32"),t}for(const e of Object.getOwnPropertyNames(lt.prototype))Object.defineProperty(i.prototype,e,{value:lt.prototype[e],enumerable:!1,writable:!1});i.Language=ft,r.onRuntimeInitialized=()=>{lt.init(),t()}})))}}return i}();e.exports=s},5530:()=>{},6287:()=>{},1427:(e,t,n)=>{e.exports=n(6762)}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&!e;)e=r[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();var r={};return(()=>{"use strict";n.r(r),n.d(r,{detect:()=>cl,detectionRegExp:()=>al,mediaTypes:()=>ol,namespace:()=>ll,parse:()=>ul});var e={};n.r(e),n.d(e,{hasElementSourceMap:()=>as,includesClasses:()=>us,includesSymbols:()=>cs,isAnnotationElement:()=>ns,isArrayElement:()=>Yr,isBooleanElement:()=>Zr,isCommentElement:()=>rs,isElement:()=>Gr,isLinkElement:()=>es,isMemberElement:()=>Qr,isNullElement:()=>Kr,isNumberElement:()=>Jr,isObjectElement:()=>Xr,isParseResultElement:()=>ss,isPrimitiveElement:()=>os,isRefElement:()=>ts,isSourceMapElement:()=>is,isStringElement:()=>Wr});var t={};n.r(t),n.d(t,{isJSONReferenceElement:()=>Wo,isJSONSchemaElement:()=>Go,isLinkDescriptionElement:()=>Ko,isMediaElement:()=>Jo});var s={};n.r(s),n.d(s,{isReferenceLikeElement:()=>Va,isSwaggerExtension:()=>Ba});var i={};function o(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function a(e){return function t(n){return 0===arguments.length||o(n)?t:e.apply(this,arguments)}}function c(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return o(n)?t:a((function(t){return e(n,t)}));default:return o(n)&&o(r)?t:o(n)?a((function(t){return e(t,r)})):o(r)?a((function(t){return e(n,t)})):e(n,r)}}}function u(e){return function t(n,r,s){switch(arguments.length){case 0:return t;case 1:return o(n)?t:c((function(t,r){return e(n,t,r)}));case 2:return o(n)&&o(r)?t:o(n)?c((function(t,n){return e(t,r,n)})):o(r)?c((function(t,r){return e(n,t,r)})):a((function(t){return e(n,r,t)}));default:return o(n)&&o(r)&&o(s)?t:o(n)&&o(r)?c((function(t,n){return e(t,n,s)})):o(n)&&o(s)?c((function(t,n){return e(t,r,n)})):o(r)&&o(s)?c((function(t,r){return e(n,t,r)})):o(n)?a((function(t){return e(t,r,s)})):o(r)?a((function(t){return e(n,t,s)})):o(s)?a((function(t){return e(n,r,t)})):e(n,r,s)}}}n.r(i),n.d(i,{isContactElement:()=>gc,isDefinitionsElement:()=>Rc,isExampleElement:()=>jc,isExternalDocumentationElement:()=>wc,isHeaderElement:()=>Ac,isHeadersElement:()=>Oc,isInfoElement:()=>dc,isItemsElement:()=>xc,isLicenseElement:()=>_c,isOperationElement:()=>bc,isParameterElement:()=>Ec,isParametersDefinitionsElement:()=>Fc,isPathItemElement:()=>vc,isPathsElement:()=>yc,isReferenceElement:()=>kc,isResponseElement:()=>Pc,isResponsesDefinitionsElement:()=>Tc,isResponsesElement:()=>Sc,isSchemaElement:()=>Nc,isScopesElement:()=>qc,isSecurityDefinitionsElement:()=>$c,isSecurityRequirementElement:()=>Dc,isSecuritySchemeElement:()=>Cc,isSwaggerElement:()=>mc,isSwaggerVersionElement:()=>fc,isTagElement:()=>Ic,isXmlElement:()=>Mc});const l=c((function(e,t){return null==t||t!=t?e:t})),p=Number.isInteger||function(e){return e<<0===e};function h(e){return"[object String]"===Object.prototype.toString.call(e)}const m=c((function(e,t){var n=e<0?t.length+e:e;return h(t)?t.charAt(n):t[n]}));const f=c((function(e,t){if(null!=t)return p(e)?m(e,t):t[e]}));const d=u((function(e,t,n){return l(e,f(t,n))}));var _=c((function(e,t){for(var n={},r={},s=0,i=e.length;s<i;)r[e[s]]=1,s+=1;for(var o in t)r.hasOwnProperty(o)||(n[o]=t[o]);return n}));const g=_;function y(e,t,n){for(var r=0,s=n.length;r<s;)t=e(t,n[r]),r+=1;return t}const v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const b=a((function(e){return!!v(e)||!!e&&("object"==typeof e&&(!h(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var w="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function E(e,t,n){return function(r,s,i){if(b(i))return e(r,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(r,s,i,"fantasy-land/reduce");if(null!=i[w])return n(r,s,i[w]());if("function"==typeof i.next)return n(r,s,i);if("function"==typeof i.reduce)return t(r,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function x(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function S(e,t,n,r){return n[r](e,t)}const P=E(y,S,x);function O(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!v(r)){for(var s=0;s<e.length;){if("function"==typeof r[e[s]])return r[e[s]].apply(r,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}function j(e,t){for(var n=0,r=t.length,s=Array(r);n<r;)s[n]=e(t[n]),n+=1;return s}const A=function(){return this.xf["@@transducer/init"]()},I=function(e){return this.xf["@@transducer/result"](e)};var k=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=I,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const N=function(e){return function(t){return new k(e,t)}};function M(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,s){return t.apply(this,arguments)};case 5:return function(e,n,r,s,i){return t.apply(this,arguments)};case 6:return function(e,n,r,s,i,o){return t.apply(this,arguments)};case 7:return function(e,n,r,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,n,r,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,n,r,s,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,n,r,s,i,o,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function T(e,t,n){return function(){for(var r=[],s=0,i=e,a=0,c=!1;a<t.length||s<arguments.length;){var u;a<t.length&&(!o(t[a])||s>=arguments.length)?u=t[a]:(u=arguments[s],s+=1),r[a]=u,o(u)?c=!0:i-=1,a+=1}return!c&&i<=0?n.apply(this,r):M(Math.max(0,i),T(e,r,n))}}const $=c((function(e,t){return 1===e?a(t):M(e,T(e,[],t))}));function R(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var F=Object.prototype.toString;const C=function(){return"[object Arguments]"===F.call(arguments)?function(e){return"[object Arguments]"===F.call(e)}:function(e){return R("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),D=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(){return arguments.propertyIsEnumerable("length")}(),B=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},V="function"!=typeof Object.keys||L?a((function(e){if(Object(e)!==e)return[];var t,n,r=[],s=L&&C(e);for(t in e)!R(t,e)||s&&"length"===t||(r[r.length]=t);if(q)for(n=D.length-1;n>=0;)R(t=D[n],e)&&!B(r,t)&&(r[r.length]=t),n-=1;return r})):a((function(e){return Object(e)!==e?[]:Object.keys(e)}));const U=V;const z=c(O(["fantasy-land/map","map"],N,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return $(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return y((function(n,r){return n[r]=e(t[r]),n}),{},U(t));default:return j(e,t)}})));const H=c((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:P((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,s=t.length,i=[];for(n=0;n<r;)i[i.length]=e[n],n+=1;for(n=0;n<s;)i[i.length]=t[n],n+=1;return i}(e,z(n,t))}),[],e)}));const G=c((function(e,t){var n=$(e,t);return $(e,(function(){return y(H,z(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const W=a((function(e){return G(e.length,e)}));const J=W(a((function(e){return!e})));function K(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Z(e,t,n){for(var r=0,s=n.length;r<s;){if(e(t,n[r]))return!0;r+=1}return!1}const X="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const Y=a((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Q(e,t,n,r){var s=K(e);function i(e,t){return ee(e,t,n.slice(),r.slice())}return!Z((function(e,t){return!Z(i,t,e)}),K(t),s)}function ee(e,t,n,r){if(X(e,t))return!0;var s,i,o=Y(e);if(o!==Y(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!X(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!X(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=n.length-1;a>=0;){if(n[a]===e)return r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&Q(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&Q(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=U(e);if(c.length!==U(t).length)return!1;var u=n.concat([e]),l=r.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!R(p,t)||!ee(t[p],e[p],u,l))return!1;a-=1}return!0}const te=c((function(e,t){return ee(e,t,[],[])}));const ne=a((function(e){return function(){return e}}));const re=ne(void 0);const se=te(re());const ie=J(se);var oe=n(7952);function ae(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ce(e,t,n){for(var r=0,s=n.length;r<s;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const ue=c((function(e,t){return M(e.length,(function(){return e.apply(t,arguments)}))}));function le(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function pe(e,t,n,r){return e["@@transducer/result"](n[r](ue(e["@@transducer/step"],e),t))}const he=E(ce,pe,le);var me=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function fe(e){return new me(e)}const de=u((function(e,t,n){return he("function"==typeof e?fe(e):e,t,n)}));function _e(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return v(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}const ge=u(_e("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})));const ye=a(_e("tail",ge(1,1/0)));function ve(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return M(arguments[0].length,de(ae,arguments[0],ye(arguments)))}var be=function(e,t){switch(arguments.length){case 0:return be;case 1:return function t(n){return 0===arguments.length?t:X(e,n)};default:return X(e,t)}};const we=be;function Ee(e,t){return function(e,t,n){var r,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(s=e[n])&&1/s===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(s=e[n])&&s!=s)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(te(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function xe(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var Se=function(e){return(e<10?"0":"")+e};const Pe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Se(e.getUTCMonth()+1)+"-"+Se(e.getUTCDate())+"T"+Se(e.getUTCHours())+":"+Se(e.getUTCMinutes())+":"+Se(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Oe(e){return"[object Object]"===Object.prototype.toString.call(e)}var je=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=I,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Ae(e){return function(t){return new je(e,t)}}const Ie=c(O(["fantasy-land/filter","filter"],Ae,(function(e,t){return Oe(t)?y((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},U(t)):function(e,t){for(var n=0,r=t.length,s=[];n<r;)e(t[n])&&(s[s.length]=t[n]),n+=1;return s}(e,t)})));const ke=c((function(e,t){return Ie((n=e,function(){return!n.apply(this,arguments)}),t);var n}));function Ne(e,t){var n=function(n){var r=t.concat([e]);return Ee(n,r)?"<Circular>":Ne(n,r)},r=function(e,t){return j((function(t){return xe(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+j(n,e).join(", ")+"))";case"[object Array]":return"["+j(n,e).concat(r(e,ke((function(e){return/^\d+$/.test(e)}),U(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):xe(Pe(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":xe(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+r(e,U(e)).join(", ")+"}"}}const Me=a((function(e){return Ne(e,[])}));const Te=c((function(e,t){return e.map((function(e){for(var n,r=t,s=0;s<e.length;){if(null==r)return;n=e[s],r=p(n)?m(n,r):r[n],s+=1}return r}))}));const $e=c((function(e,t){return Te([e],t)[0]}));const Re=u((function(e,t,n){return e($e(t,n))}));function Fe(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Ce=c((function(e,t){return e&&t}));const qe=c((function(e,t){return Fe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:W(Ce)(e,t)}));const De=te(null);const Le=J(De);function Be(e){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(e)}const Ve=function(e){return"object"===Be(e)};const Ue=$(1,qe(Le,Ve));const ze=c((function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var s=n(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=Me(e),o=n(i,Me(t));return void 0!==o&&o===i?e:t}));const He=c((function(e,t){return z(f(e),t)}));const Ge=a((function(e){return $(de(ze,0,He("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const We=$(1,ve(Y,we("GeneratorFunction")));const Je=$(1,ve(Y,we("AsyncFunction")));const Ke=Ge([ve(Y,we("Function")),We,Je]);var Ze=ve(Y,we("Object")),Xe=ve(Me,te(Me(Object))),Ye=Re(qe(Ke,Xe),["constructor"]);const Qe=$(1,(function(e){if(!Ue(e)||!Ze(e))return!1;var t=Object.getPrototypeOf(e);return!!De(t)||Ye(t)}));class et extends oe.RP{constructor(e,t,n){super(e,t,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const tt=et;class nt extends oe.RP{constructor(e,t,n){super(e,t,n),this.element="comment"}}const rt=nt;class st extends oe.ON{constructor(e,t,n){super(e,t,n),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(se(t))return!1;const n=this.content.findIndex((e=>e===t));return-1!==n&&(this.content[n]=e,!0)}}const it=st;class ot extends oe.ON{constructor(e,t,n){super(e,t,n),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(null===e)return;const t=new oe.ON([e.start.row,e.start.column,e.start.char]),n=new oe.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),n.classes.push("position"),this.push(t).push(n)}}const at=ot;class ct extends oe.lS{constructor(){super(),this.register("annotation",tt),this.register("comment",rt),this.register("parseResult",it),this.register("sourceMap",at)}}const ut=new ct,lt=e=>{const t=new ct;return Qe(e)&&t.use(e),t},pt=ut;const ht=$(1,ve(Y,we("String"))),mt=n.p+"23aac571c96605dc25219087ad291441.wasm",ft=globalThis.fetch;Ke(ft)&&(globalThis.fetch=(...e)=>ht(e[0])&&e[0].endsWith("tree-sitter.wasm")?ft.apply(globalThis,[mt,ye(e)]):ft.apply(globalThis,e));var dt=n(9794),_t=n(1427);const gt=class extends _t{constructor(e,t,n){if(super(e,t,n),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!=n&&"object"==typeof n&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:e}=n;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class yt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(gt,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const vt=yt,bt=n.p+"d396281e11774e0afa7a40d620779b6d.wasm";let wt=null,Et=null;const xt=async e=>{if(null===wt&&null===Et)Et=dt.init().then((()=>dt.Language.load(bt))).then((e=>{const t=new dt;return t.setLanguage(e),t})).finally((()=>{Et=null})),wt=await Et;else if(null===wt&&null!==Et)wt=await Et;else if(null===wt)throw new vt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return wt.parse(e)};var St=n(6591);function Pt(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function Ot(e,t,n){if(n||(n=new jt),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var r=function(r){var s=n.get(e);if(s)return s;for(var i in n.set(e,r),e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t?Ot(e[i],!0,n):e[i]);return r};switch(Y(e)){case"Object":return r(Object.create(Object.getPrototypeOf(e)));case"Array":return r([]);case"Date":return new Date(e.valueOf());case"RegExp":return Pt(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var jt=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const n=this.hash(e);let r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){let t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(const t in this.map){const n=this.map[t];for(let t=0;t<n.length;t+=1){const r=n[t];if(r[0]===e)return r[1]}}return}const t=this.hash(e),n=this.map[t];if(n)for(let t=0;t<n.length;t+=1){const r=n[t];if(r[0]===e)return r[1]}},e}();const At=a((function(e){return null!=e&&"function"==typeof e.clone?e.clone():Ot(e,!0)}));const It=class extends vt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}};const kt=class extends It{};const Nt=class extends kt{constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagPosition=t.tagPosition,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}},Mt=St({props:{type:null,position:null,children:[]},init({children:e=[],position:t=null,isMissing:n=!1}={},{stamp:r={}}){this.type=r.type,this.isMissing=n,this.children=e,this.position=t},methods:{clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const n=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,n)})),e}}});let Tt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const $t=St(Mt,{statics:{type:"tag"},props:{explicitName:"",kind:null},init({explicitName:e,kind:t}={}){this.explicitName=e,this.kind=t}});const Rt=u((function(e,t,n){return l(e,$e(t,n))}));const Ft=a((function(e){return $(e.length,e)}));var Ct="\t\n\v\f\r \u2028\u2029\ufeff";const qt=a("function"==typeof String.prototype.trim&&!Ct.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Ct+"]["+Ct+"]*"),n=new RegExp("["+Ct+"]["+Ct+"]*$");return e.replace(t,"").replace(n,"")});const Dt=c((function(e,t){return $(e+1,(function(){var n=arguments[e];if(null!=n&&Fe(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Me(n)+' does not have a method named "'+t+'"')}))}));const Lt=Dt(1,"split");const Bt=Dt(1,"join");const Vt=a((function(e){return h(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Ut(){if(0===arguments.length)throw new Error("compose requires at least one argument");return ve.apply(this,Vt(arguments))}const zt=$(4,(function(e,t,n,r){return he(e("function"==typeof t?fe(t):t),n,r)}));const Ht=c((function(e,t){if(v(e)){if(v(t))return e.concat(t);throw new TypeError(Me(t)+" is not an array")}if(h(e)){if(h(t))return e+t;throw new TypeError(Me(t)+" is not a string")}if(null!=e&&Fe(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&Fe(e.concat))return e.concat(t);throw new TypeError(Me(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Gt=te("");const Wt=c((function(e,t){return $(de(ze,0,He("length",t)),(function(){var n=arguments,r=this;return e.apply(r,j((function(e){return e.apply(r,n)}),t))}))}));function Jt(e){return e}const Kt=a(Jt);const Zt=$(1,ve(Y,we("Number")));var Xt=qe(Zt,isFinite);var Yt=$(1,Xt);const Qt=Ke(Number.isFinite)?$(1,ue(Number.isFinite,Number)):Yt;var en=qe(Qt,Wt(te,[Math.floor,Kt]));var tn=$(1,en);const nn=Ke(Number.isInteger)?$(1,ue(Number.isInteger,Number)):tn;const rn=a((function(e){return $(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))}));const sn=J(Qt);const on=$(1,qe(Zt,c((function(e,t){return e>t}))(0)));var an=Ft((function(e,t){var n=Number(t);if(n!==t&&(n=0),on(n))throw new RangeError("repeat count must be non-negative");if(sn(n))throw new RangeError("repeat count must be less than infinity");if(n=Math.floor(n),0===e.length||0===n)return"";if(e.length*n>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*n;n=Math.floor(Math.log(n)/Math.log(2));for(var s=e;n;)s+=e,n-=1;return s+=s.substring(0,r-s.length)})),cn=rn(Dt(1,"repeat"));const un=Ke(String.prototype.repeat)?cn:an;const ln=u((function(e,t,n){return n.replace(e,t)}));var pn=ln(/[\s\uFEFF\xA0]+$/,""),hn=Dt(0,"trimEnd");const mn=Ke(String.prototype.trimEnd)?hn:pn;var fn=ln(/^[\s\uFEFF\xA0]+/,""),dn=Dt(0,"trimStart");const _n=Ke(String.prototype.trimStart)?dn:fn;var gn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=I,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function yn(e){return function(t){return new gn(e,t)}}const vn=c(O(["dropWhile"],yn,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return ge(n,1/0,t)})));const bn=rn(c(Ee));const wn=Ft((function(e,t){return ve(Lt(""),vn(bn(e)),Bt(""))(t)}));const En=rn(Ht);var xn=n(2770);const Sn=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Pn=e=>{const t=(e=>{const t=e.match(Sn),n=Rt("",["groups","indentation"],t);return Gt(n)?void 0:parseInt(n,10)})(e);if(nn(t))return un(" ",t);const n=Rt("",[1],e.split("\n")),r=Rt(0,["groups","indentation","length"],n.match(/^(?<indentation>[ ]*)/));return un(" ",r)},On=e=>{const t=e.match(Sn),n=Rt("",["groups","chomping"],t);return Gt(n)?void 0:n},jn=(e,t)=>se(e)?`${mn(t)}\n`:"-"===e?mn(t):t,An=e=>e.replace(/\r\n/g,"\n"),In=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,n)=>t?e:` ${n.trimStart()}`)).replace(/[\n]{2}/g,"\n"),kn=Ft(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Nn=ve(An,qt,In,Lt("\n"),z(_n),Bt("\n")),Mn=ve(An,qt,kn("'"),In,Lt("\n"),z(_n),Bt("\n")),Tn=ve(An,qt,kn('"'),(e=>e.replace(/\\\n\s*/g,"")),In,xn.S6,Lt("\n"),z(_n),Bt("\n"));let $n=function(e){return e.Plain="Plain",e.SingleQuoted="SingleQuoted",e.DoubleQuoted="DoubleQuoted",e.Literal="Literal",e.Folded="Folded",e.Explicit="Explicit",e.SinglePair="SinglePair",e.NextLine="NextLine",e.InLine="InLine",e}({}),Rn=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Fn=St({props:{styleGroup:null,style:null}}),Cn=St({methods:{test:e=>e.tag.kind===Tt.Scalar&&"string"==typeof e.content,canonicalFormat(e){let t=e.content;const n=e.clone();return e.style===$n.Plain?t=Nn(e.content):e.style===$n.SingleQuoted?t=Mn(e.content):e.style===$n.DoubleQuoted?t=Tn(e.content):e.style===$n.Literal?t=(e=>{const t=Pn(e),n=On(e),r=An(e),s=ye(r.split("\n")),i=Ut(z(wn(t)),z(En("\n"))),o=zt(i,Ht,"",s);return jn(n,o)})(e.content):e.style===$n.Folded&&(t=(e=>{const t=Pn(e),n=On(e),r=An(e),s=ye(r.split("\n")),i=Ut(z(wn(t)),z(En("\n"))),o=zt(i,Ht,"",s),a=In(o);return jn(n,a)})(e.content)),n.content=t,n},resolve:e=>e}}),qn=St(Cn,{props:{tag:""}}),Dn=St(qn,{statics:{uri:"tag:yaml.org,2002:map"},init(e,{stamp:t}){this.tag=t.uri},methods:{test:e=>e.tag.kind===Tt.Mapping,resolve:e=>e}}),Ln=St(qn,{statics:{uri:"tag:yaml.org,2002:seq"},init(e,{stamp:t}){this.tag=t.uri},methods:{test:e=>e.tag.kind===Tt.Sequence,resolve:e=>e}}),Bn=St(qn,{statics:{uri:"tag:yaml.org,2002:str"},init(e,{stamp:t}){this.tag=t.uri},methods:{resolve:e=>e}}),Vn=St({props:{tags:[],tagDirectives:[]},init(){this.tags=[],this.tagDirectives=[],this.registerTag(Dn()),this.registerTag(Ln()),this.registerTag(Bn())},methods:{toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===Tt.Scalar?t=Bn.uri:e.tag.kind===Tt.Sequence?t=Ln.uri:e.tag.kind===Tt.Mapping&&(t=Dn.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").replace(/>$/,""):e.tag.explicitName.startsWith("!!")&&(t=`tag:yaml.org,2002:${e.tag.explicitName.replace(/^!!/,"")}`),t},registerTagDirective(e){this.tagDirectives.push({handle:e.parameters.handle,prefix:e.parameters.prefix})},registerTag(e,t=!1){return t?this.tags.unshift(e):this.tags.push(e),this},overrideTag(e){return this.tags=this.tags.filter((t=>t.tag===e.tag)),this.tags.push(e),this},resolve(e){const t=this.toSpecificTagName(e);if("?"===t)return e;let n=e;e.tag.kind===Tt.Scalar&&(n=Cn().canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new Nt(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:At(e.tag.position),node:e.clone()});if(!r.test(n))throw new Nt(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:At(e.tag.position),nodeCanonicalContent:n.content,node:e.clone()});return r.resolve(n)}}}),Un=Vn,zn=St(qn,{statics:{uri:"tag:yaml.org,2002:bool"},init(e,{stamp:t}){this.tag=t.uri},methods:{test:e=>/^(true|false)$/.test(e.content),resolve(e){const t="true"===e.content,n=e.clone();return n.content=t,n}}}),Hn=St(qn,{statics:{uri:"tag:yaml.org,2002:float"},init(e,{stamp:t}){this.tag=t.uri},methods:{test:e=>/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content),resolve(e){const t=parseFloat(e.content),n=e.clone();return n.content=t,n}}}),Gn=St(qn,{statics:{uri:"tag:yaml.org,2002:int"},init(e,{stamp:t}){this.tag=t.uri},methods:{test:e=>/^-?(0|[1-9][0-9]*)$/.test(e.content),resolve(e){const t=parseInt(e.content,10),n=e.clone();return n.content=t,n}}}),Wn=St(qn,{statics:{uri:"tag:yaml.org,2002:null"},init(e,{stamp:t}){this.tag=t.uri},methods:{test:e=>/^null$/.test(e.content),resolve(e){const t=e.clone();return t.content=null,t}}}),Jn=St(Un,{init(){this.registerTag(zn(),!0),this.registerTag(Hn(),!0),this.registerTag(Gn(),!0),this.registerTag(Wn(),!0)},methods:{toSpecificTagName(e){let t=Un.compose.methods.toSpecificTagName.call(this,e);if("?"===t)if(e.tag.vkind===Tt.Sequence)t=Ln.uri;else if(e.tag.kind===Tt.Mapping)t=Dn.uri;else if(e.tag.kind===Tt.Scalar){const n=this.tags.find((t=>t.test(e)));t=(null==n?void 0:n.tag)||"?"}return t}}}),Kn=Jn,Zn=(e,t,n)=>{const r=e[t];if(null!=r){if(!n&&"function"==typeof r)return r;const e=n?r.leave:r.enter;if("function"==typeof e)return e}else{const r=n?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},Xn={},Yn=e=>null==e?void 0:e.type,Qn=e=>"string"==typeof Yn(e),er=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),tr=(e,t,{keyMap:n=null,state:r={},breakSymbol:s=Xn,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Zn,nodeTypeGetter:c=Yn,nodePredicate:u=Qn,nodeCloneFn:l=er,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),_=[e],g=-1,y=[],v=e;const b=[],w=[];do{g+=1;const e=g===_.length;let n;const x=e&&0!==y.length;if(e){if(n=0===w.length?void 0:b.pop(),v=f,f=w.pop(),x)if(d){v=v.slice();let e=0;for(const[t,n]of y){const r=t-e;n===i?(v.splice(r,1),e+=1):v[r]=n}}else{v=l(v);for(const[e,t]of y)v[e]=t}g=m.index,_=m.keys,y=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(n=d?g:_[g],v=f[n],v===i||void 0===v)continue;b.push(n)}if(w.includes(v))continue;let S;if(!Array.isArray(v)){if(!u(v))throw new It(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;S=i.call(t,v,n,f,b,w)}if(S===s)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(y.push([n,S]),!e)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&y.push([n,v]),!e)m={inArray:d,index:g,keys:_,edits:y,prev:m},d=Array.isArray(v),_=d?v:null!==(E=h[c(v)])&&void 0!==E?E:[],g=-1,y=[],f!==i&&void 0!==f&&w.push(f),f=v}while(void 0!==m);return 0!==y.length?y[y.length-1][1]:e};tr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:s=Xn,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Zn,nodeTypeGetter:c=Yn,nodePredicate:u=Qn,nodeCloneFn:l=er,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),_=[e],g=-1,y=[],v=e;const b=[],w=[];do{g+=1;const e=g===_.length;let n;const x=e&&0!==y.length;if(e){if(n=0===w.length?void 0:b.pop(),v=f,f=w.pop(),x)if(d){v=v.slice();let e=0;for(const[t,n]of y){const r=t-e;n===i?(v.splice(r,1),e+=1):v[r]=n}}else{v=l(v);for(const[e,t]of y)v[e]=t}g=m.index,_=m.keys,y=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(n=d?g:_[g],v=f[n],v===i||void 0===v)continue;b.push(n)}let S;if(!Array.isArray(v)){if(!u(v))throw new It(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;S=await i.call(t,v,n,f,b,w)}if(S===s)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(y.push([n,S]),!e)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&y.push([n,v]),!e)m={inArray:d,index:g,keys:_,edits:y,prev:m},d=Array.isArray(v),_=d?v:null!==(E=h[c(v)])&&void 0!==E?E:[],g=-1,y=[],f!==i&&void 0!==f&&w.push(f),f=v}while(void 0!==m);return 0!==y.length?y[y.length-1][1]:e};const nr=St({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init({row:e=null,column:t=null,char:n=null}={}){this.row=e,this.column=t,this.char=n}}),rr=St({statics:{type:"position"},props:{type:"position",start:null,end:null},init({start:e=null,end:t=null}={}){this.start=e,this.end=t}}),sr=St(Mt,{statics:{type:"anchor"},props:{name:null},init({name:e=null}={}){this.name=e}}),ir=St(Mt,{props:{anchor:null,tag:null,style:null,styleGroup:null},init({anchor:e=null,tag:t=null,style:n=null,styleGroup:r=null}={}){this.anchor=e,this.tag=t,this.style=n,this.styleGroup=r}}),or=ir,ar=St(or,{statics:{type:"scalar"},props:{content:""},init({content:e}={}){this.content=e}}),cr=St(Mt,{statics:{type:"literal"},props:{value:null},init({value:e=null}={}){this.value=e}}),ur=(e,t)=>(null==t?void 0:t.type)===e,lr=(ur.bind(void 0,"literal"),ur.bind(void 0,"position"),ur.bind(void 0,"point"),ur.bind(void 0,"parseResult"),ur.bind(void 0,"stream"),ur.bind(void 0,"document")),pr=ur.bind(void 0,"mapping"),hr=ur.bind(void 0,"sequence"),mr=ur.bind(void 0,"keyValuePair"),fr=(ur.bind(void 0,"tag"),ur.bind(void 0,"scalar")),dr=ur.bind(void 0,"alias"),_r=(ur.bind(void 0,"directive"),ur.bind(void 0,"comment")),gr=St(Mt,{statics:{type:"stream"},propertyDescriptors:{content:{get(){return Array.isArray(this.children)?this.children.filter((e=>lr(e)||_r(e))):[]},enumerable:!0}}});const yr=m(0),vr=St(Mt,{statics:{type:"parseResult"},methods:{get rootNode(){return yr(this.children)}}});const br="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,r=arguments.length;n<r;){var s=arguments[n];if(null!=s)for(var i in s)R(i,s)&&(t[i]=s[i]);n+=1}return t};const wr=c((function(e,t){return br({},e,t)})),Er=St(Mt,{statics:{type:"directive"},props:{name:null,parameters:null},init({name:e=null,parameters:t={}}={}){this.name=e,this.parameters=wr({version:null,handle:null,prefix:null},t)}}),xr=St(Mt,{statics:{type:"document"}}),Sr=St(or,{}),Pr=St(Sr,{statics:{type:"mapping"},propertyDescriptors:{content:{get(){return Array.isArray(this.children)?this.children.filter(mr):[]},enumerable:!0}}}),Or=St(Mt,Fn,{statics:{type:"keyValuePair"},propertyDescriptors:{key:{get(){return this.children.filter((e=>fr(e)||pr(e)||hr(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>fr(e)||pr(e)||hr(e)||dr(e))(t)))[0]},enumerable:!0}}}),jr=St(Sr,{statics:{type:"sequence"},propertyDescriptors:{content:{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>hr(e)||pr(e)||fr(e)||dr(e))):[]},enumerable:!0}}}),Ar=St(Mt,{statics:{type:"comment"},props:{content:null},init({content:e=null}={}){this.content=e}}),Ir=St(Mt,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init({value:e=null,isUnexpected:t=!1}={}){this.value=e,this.isUnexpected=t}});const kr=class{hasError=!1;children=[];constructor(e){this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}get tag(){let{previousSibling:e}=this;for(;void 0!==e&&"tag"!==e.type;)({previousSibling:e}=e);return e}get anchor(){let{previousSibling:e}=this;for(;void 0!==e&&"anchor"!==e.type;)({previousSibling:e}=e);return e}get firstNamedChild(){return this.children.find((e=>e.isNamed))}setFieldName(e){return"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},Nr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Mr=e=>Array.isArray(e)||Qn(e),Tr=St({props:{schema:null},init(){const e=e=>{const t=nr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),n=nr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return rr({start:t,end:n})},t=t=>{const{tag:n}=t,r=(null==n?void 0:n.text)||("plain_scalar"===t.type?"?":"!"),s=t.type.endsWith("mapping")?Tt.Mapping:t.type.endsWith("sequence")?Tt.Sequence:Tt.Scalar,i=n?e(n):null;return $t({explicitName:r,kind:s,position:i})},n=t=>{const{anchor:n}=t;return void 0===n?null:sr({name:n.text,position:e(n)})},r=e=>t=>"string"==typeof(null==t?void 0:t.type)&&t.type.endsWith(e),s=r("scalar"),i=r("mapping"),o=r("sequence"),a=e=>("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.keyNode,c=e=>("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.valueNode,u=t=>{const n=nr({row:t.startPosition.row,column:t.startPosition.column,char:t.startIndex}),{keyNode:s}=t,i=(null==s?void 0:s.children)||[],o=i.find(r("tag")),a=i.find(r("anchor")),c=$t(void 0!==o?{explicitName:o.text,kind:Tt.Scalar,position:e(o)}:{explicitName:"?",kind:Tt.Scalar}),u=void 0!==a?sr({name:a.text,position:e(a)}):null;return ar({content:"",position:rr({start:n,end:n}),tag:c,anchor:u,styleGroup:Rn.Flow,style:$n.Plain})},l=t=>{const n=nr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),{valueNode:s}=t,i=(null==s?void 0:s.children)||[],o=i.find(r("tag")),a=i.find(r("anchor")),c=$t(void 0!==o?{explicitName:o.text,kind:Tt.Scalar,position:e(o)}:{explicitName:"?",kind:Tt.Scalar}),u=void 0!==a?sr({name:a.text,position:e(a)}):null;return ar({content:"",position:rr({start:n,end:n}),tag:c,anchor:u,styleGroup:Rn.Flow,style:$n.Plain})};this.enter=function(t){if(t instanceof kr&&!t.isNamed){const n=e(t),r=t.type||t.text,{isMissing:s}=t;return cr({value:r,position:n,isMissing:s})}},this.stream={enter(t){const n=e(t);return gr({children:t.children,position:n,isMissing:t.isMissing})},leave:e=>vr({children:[e]})},this.yaml_directive={enter(t){var n;const r=e(t),s=(null==t||null===(n=t.firstNamedChild)||void 0===n?void 0:n.text)||null;return Er({position:r,name:"%YAML",parameters:{version:s}})}},this.tag_directive={enter(t){const n=e(t),r=t.children[0],s=t.children[1],i=Er({position:n,name:"%TAG",parameters:{handle:(null==r?void 0:r.text)||null,prefix:(null==s?void 0:s.text)||null}});return this.schema.registerTagDirective(i),i}},this.reserved_directive={enter(t){const n=e(t),r=t.children[0],s=t.children[1],i=t.children[2];return Er({position:n,name:(null==r?void 0:r.text)||null,parameters:{handle:(null==s?void 0:s.text)||null,prefix:(null==i?void 0:i.text)||null}})}},this.document={enter(t){const n=e(t);return xr({children:t.children,position:n,isMissing:t.isMissing})},leave(e){e.children=e.children.flat()}},this.block_node={enter:e=>e.children},this.flow_node={enter(e){const[r]=e.children.slice(-1);if(s(r)||i(r)||o(r))return e.children;const a=nr({row:r.endPosition.row,column:r.endPosition.column,char:r.endIndex}),c=ar({content:"",anchor:n(r),tag:t(r),position:rr({start:a,end:a}),styleGroup:Rn.Flow,style:$n.Plain});return[...e.children,c]}},this.tag={enter:()=>null},this.anchor={enter:()=>null},this.block_mapping={enter(r){const s=e(r),i=t(r),o=n(r),a=Pr({children:r.children,position:s,anchor:o,tag:i,styleGroup:Rn.Block,style:$n.NextLine,isMissing:r.isMissing});return this.schema.resolve(a)}},this.block_mapping_pair={enter(t){const n=e(t),r=[...t.children];if(a(t)){const e=u(t);r.unshift(e)}if(c(t)){const e=l(t);r.push(e)}return Or({children:r,position:n,styleGroup:Rn.Block,isMissing:t.isMissing})}},this.flow_mapping={enter(r){const s=e(r),i=t(r),o=n(r),a=Pr({children:r.children,position:s,anchor:o,tag:i,styleGroup:Rn.Flow,style:$n.Explicit,isMissing:r.isMissing});return this.schema.resolve(a)}},this.flow_pair={enter(t){const n=e(t),r=[...t.children];if(a(t)){const e=u(t);r.unshift(e)}if(c(t)){const e=l(t);r.push(e)}return Or({children:r,position:n,styleGroup:Rn.Flow,isMissing:t.isMissing})}},this.keyValuePair={leave(e){e.children=e.children.flat()}},this.block_sequence={enter(r){const s=e(r),i=t(r),o=n(r),a=jr({children:r.children,position:s,anchor:o,tag:i,styleGroup:Rn.Block,style:$n.NextLine});return this.schema.resolve(a)}},this.block_sequence_item={enter(e){if(e.children.length>1)return e.children;const t=nr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[ar({content:"",anchor:null,tag:$t({explicitName:"?",kind:Tt.Scalar}),position:rr({start:t,end:t}),styleGroup:Rn.Flow,style:$n.Plain})]}},this.flow_sequence={enter(r){const s=e(r),i=t(r),o=n(r),a=jr({children:r.children.flat(),position:s,anchor:o,tag:i,styleGroup:Rn.Flow,style:$n.Explicit});return this.schema.resolve(a)}},this.sequence={leave(e){e.children=e.children.flat(1/0)}},this.plain_scalar={enter(r){const s=e(r),i=t(r),o=n(r),a=ar({content:r.text,anchor:o,tag:i,position:s,styleGroup:Rn.Flow,style:$n.Plain});return this.schema.resolve(a)}},this.single_quote_scalar={enter(r){const s=e(r),i=t(r),o=n(r),a=ar({content:r.text,anchor:o,tag:i,position:s,styleGroup:Rn.Flow,style:$n.SingleQuoted});return this.schema.resolve(a)}},this.double_quote_scalar={enter(r){const s=e(r),i=t(r),o=n(r),a=ar({content:r.text,anchor:o,tag:i,position:s,styleGroup:Rn.Flow,style:$n.DoubleQuoted});return this.schema.resolve(a)}},this.block_scalar={enter(r){const s=e(r),i=t(r),o=n(r),a=r.text.startsWith("|")?$n.Literal:r.text.startsWith(">")?$n.Folded:null,c=ar({content:r.text,anchor:o,tag:i,position:s,styleGroup:Rn.Block,style:a});return this.schema.resolve(c)}},this.comment={enter:e=>Ar({content:e.text})},this.ERROR=function(t,n,r,s){const i=e(t),o=Ir({children:t.children,position:i,isUnexpected:!t.hasError,isMissing:t.isMissing,value:t.text});return 0===s.length?vr({children:[o]}):o}}}),$r=Tr;const Rr=function(){return!1};function Fr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Cr=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=Fr(this.xf["@@transducer/step"](e,!1))),e},e}();function qr(e){return function(t){return new Cr(e,t)}}const Dr=c(O(["all"],qr,(function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}))),Lr=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Br=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Vr=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Ur=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof oe.ON)&&t.classes.includes(e),zr=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Hr=e=>e({hasMethod:Lr,hasBasicElementProps:Br,primitiveEq:Vr,isElementType:zr,hasClass:Ur}),Gr=Hr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.W_||e(n)&&t(void 0,n))),Wr=Hr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.RP||e(n)&&t("string",n))),Jr=Hr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.VL||e(n)&&t("number",n))),Kr=Hr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.zr||e(n)&&t("null",n))),Zr=Hr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.hh||e(n)&&t("boolean",n))),Xr=Hr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof oe.Sb||e(r)&&t("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),Yr=Hr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof oe.ON&&!(r instanceof oe.Sb)||e(r)&&t("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),Qr=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oe.c6||e(r)&&t("member",r)&&n(void 0,r))),es=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oe.EA||e(r)&&t("link",r)&&n(void 0,r))),ts=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oe.tK||e(r)&&t("ref",r)&&n(void 0,r))),ns=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof tt||e(r)&&t("annotation",r)&&n("array",r))),rs=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof rt||e(r)&&t("comment",r)&&n("string",r))),ss=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof it||e(r)&&t("parseResult",r)&&n("array",r))),is=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof at||e(r)&&t("sourceMap",r)&&n("array",r))),os=e=>zr("object",e)||zr("array",e)||zr("boolean",e)||zr("number",e)||zr("string",e)||zr("null",e)||zr("member",e),as=e=>is(e.meta.get("sourceMap")),cs=(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!Yr(n)&&Dr(bn(n.toValue()),e)},us=(e,t)=>0===e.length||Dr(bn(t.classes.toValue()),e);const ls=class extends It{constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const ps=class extends ls{};const hs=class extends ls{},ms=(e,t={})=>{const{visited:n=new WeakMap}=t,r={...t,visited:n};if(n.has(e))return n.get(e);if(e instanceof oe.KeyValuePair){const{key:t,value:s}=e,i=Gr(t)?ms(t,r):t,o=Gr(s)?ms(s,r):s,a=new oe.KeyValuePair(i,o);return n.set(e,a),a}if(e instanceof oe.rm){const t=e=>ms(e,r),s=[...e].map(t),i=new oe.rm(s);return n.set(e,i),i}if(e instanceof oe.O4){const t=e=>ms(e,r),s=[...e].map(t),i=new oe.O4(s);return n.set(e,i),i}if(Gr(e)){const t=_s(e);if(n.set(e,t),e.content)if(Gr(e.content))t.content=ms(e.content,r);else if(e.content instanceof oe.KeyValuePair)t.content=ms(e.content,r);else if(Array.isArray(e.content)){const n=e=>ms(e,r);t.content=e.content.map(n)}else t.content=e.content;else t.content=e.content;return t}throw new ps("Value provided to cloneDeep function couldn't be cloned",{value:e})};ms.safe=e=>{try{return ms(e)}catch{return e}};const fs=e=>{const{key:t,value:n}=e;return new oe.KeyValuePair(t,n)},ds=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=ms(e.meta)),e.attributes.length>0&&(t._attributes=ms(e.attributes)),Gr(e.content)){const n=e.content;t.content=ds(n)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof oe.KeyValuePair?t.content=fs(e.content):t.content=e.content;return t},_s=e=>{if(e instanceof oe.KeyValuePair)return fs(e);if(e instanceof oe.rm)return(e=>{const t=[...e];return new oe.rm(t)})(e);if(e instanceof oe.O4)return(e=>{const t=[...e];return new oe.O4(t)})(e);if(Gr(e))return ds(e);throw new hs("Value provided to cloneShallow function couldn't be cloned",{value:e})};_s.safe=e=>{try{return _s(e)}catch{return e}};const gs=e=>Xr(e)?"ObjectElement":Yr(e)?"ArrayElement":Qr(e)?"MemberElement":Wr(e)?"StringElement":Zr(e)?"BooleanElement":Jr(e)?"NumberElement":Kr(e)?"NullElement":es(e)?"LinkElement":ts(e)?"RefElement":void 0,ys=e=>Gr(e)?_s(e):er(e),vs=ve(gs,ht),bs={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},ws=(St({props:{result:[],predicate:Rr,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:n=this.returnOnFalse}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=n},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),(e,t,{keyMap:n=bs,...r}={})=>tr(e,t,{keyMap:n,nodeTypeGetter:gs,nodePredicate:vs,nodeCloneFn:ys,...r}));ws[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=bs,...r}={})=>tr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:n,nodeTypeGetter:gs,nodePredicate:vs,nodeCloneFn:ys,...r});const Es=ge(0,-1);const xs=c((function(e,t){return e.apply(this,t)}));const Ss=J(Ke);var Ps=a((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():v(e)?[]:h(e)?"":Oe(e)?{}:C(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const Os=Ps;const js=a((function(e){return null!=e&&te(e,Os(e))}));const As=$(1,Ke(Array.isArray)?Array.isArray:ve(Y,we("Array")));const Is=qe(As,js);const ks=$(3,(function(e,t,n){var r=$e(e,n),s=$e(Es(e),n);if(!Ss(r)&&!Is(e)){var i=ue(r,s);return xs(i,t)}})),Ns=()=>({predicates:{...e},namespace:pt}),Ms=(e,t,n={})=>{if(0===t.length)return e;const r=d(Ns,"toolboxCreator",n),s=d({},"visitorOptions",n),i=d(gs,"nodeTypeGetter",s),o=r(),a=t.map((e=>e(o))),c=((e,{visitFnGetter:t=Zn,nodeTypeGetter:n=Yn}={})=>{const r=new Array(e.length).fill(null);return{enter(s,...i){for(let o=0;o<e.length;o+=1)if(null===r[o]){const a=t(e[o],n(s),!1);if("function"==typeof a){const t=a.call(e[o],s,...i);if(!1===t)r[o]=s;else if(t===Xn)r[o]=Xn;else if(void 0!==t)return t}}},leave(s,...i){for(let o=0;o<e.length;o+=1)if(null===r[o]){const a=t(e[o],n(s),!0);if("function"==typeof a){const t=a.call(e[o],s,...i);if(t===Xn)r[o]=Xn;else if(void 0!==t&&!1!==t)return t}}else r[o]===s&&(r[o]=null)}}})(a.map(d({},"visitor")),{nodeTypeGetter:i});a.forEach(ks(["pre"],[]));const u=ws(e,c,s);return a.forEach(ks(["post"],[])),u},Ts=(e,{Type:t,plugins:n=[]})=>{const r=new t(e);return Ms(r,n,{toolboxCreator:Ns,visitorOptions:{nodeTypeGetter:gs}})},$s=e=>(t,n={})=>Ts(t,{...n,Type:e});oe.Sb.refract=$s(oe.Sb),oe.ON.refract=$s(oe.ON),oe.RP.refract=$s(oe.RP),oe.hh.refract=$s(oe.hh),oe.zr.refract=$s(oe.zr),oe.VL.refract=$s(oe.VL),oe.EA.refract=$s(oe.EA),oe.tK.refract=$s(oe.tK),tt.refract=$s(tt),rt.refract=$s(rt),it.refract=$s(it),at.refract=$s(at);const Rs={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...bs},Fs=e=>Gr(e)?gs(e):Yn(e),Cs=e=>Gr(e)||Qn(e)||Array.isArray(e),qs=St({props:{sourceMap:!1,processedDocumentCount:0,annotations:[],namespace:null},init(){const e=(e,t)=>{if(!this.sourceMap)return;const n=new at;n.position=e.position,n.astNode=e,t.meta.set("sourceMap",n)};this.namespace=lt(),this.annotations=[],this.stream={leave(e){const t=new it;t._content=e.children.flat(1);const n=t.findElements(os);if(n.length>0){n[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}},this.comment=function(t){if(0===this.processedDocumentCount){const n=new rt(t.content);return e(t,n),n}return null},this.document=function(t){const n=1===this.processedDocumentCount,r=this.processedDocumentCount>=1;if(n){const n=new tt("Only first document within YAML stream will be used. Rest will be discarded.");n.classes.push("warning"),e(t,n),this.annotations.push(n)}return r?null:(this.processedDocumentCount+=1,t.children)},this.mapping=function(t){const n=new oe.Sb;return n._content=t.children,e(t,n),n},this.keyValuePair=function(t){const n=new oe.c6;return n.content.key=t.key,n.content.value=t.value,e(t,n),t.children.filter((e=>"error"===e.type)).forEach((e=>{this.error(e,t,[],[t])})),n},this.sequence=function(t){const n=new oe.ON;return n._content=t.children,e(t,n),n},this.scalar=function(t){const n=this.namespace.toElement(t.content);return""===t.content&&t.style===$n.Plain&&(n.classes.push("yaml-e-node"),n.classes.push("yaml-e-scalar")),e(t,n),n},this.literal=function(t){if(t.isMissing){const n=`(Missing ${t.value})`,r=new tt(n);r.classes.push("warning"),e(t,r),this.annotations.push(r)}return null},this.error=function(t,n,r,s){const i=t.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",o=new tt(i);if(o.classes.push("error"),e(t,o),0===s.length){const e=new it;return e.push(o),e}return this.annotations.push(o),null}}}),Ds=qs;class Ls{constructor(e){this.cursor=e}stream(){return new kr(this.cursor)}yaml_directive(){return new kr(this.cursor)}tag_directive(){return new kr(this.cursor)}reserved_directive(){return new kr(this.cursor)}document(){return new kr(this.cursor)}block_node(){return new kr(this.cursor).setFieldName(this.cursor)}flow_node(){return new kr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new kr(this.cursor)}block_mapping_pair(){return new kr(this.cursor)}flow_mapping(){return new kr(this.cursor)}flow_pair(){return new kr(this.cursor)}block_sequence(){return new kr(this.cursor)}block_sequence_item(){return new kr(this.cursor)}flow_sequence(){return new kr(this.cursor)}plain_scalar(){return new kr(this.cursor)}single_quote_scalar(){return new kr(this.cursor)}double_quote_scalar(){return new kr(this.cursor)}block_scalar(){return new kr(this.cursor)}ERROR(){return new kr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new kr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Ls(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Ls(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Bs=Ls,Vs=(e,{sourceMap:t=!1}={})=>{const n=e.walk(),r=new Bs(n),[s]=Array.from(r),i=$r(),o=Ds(),a=Kn(),c=tr(s,i,{keyMap:Nr,nodePredicate:Mr,state:{schema:a,sourceMap:t}});return tr(c.rootNode,o,{keyMap:Rs,nodeTypeGetter:Fs,nodePredicate:Cs,state:{sourceMap:t}})};class Us extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="swagger",this.classes.push("api")}get swagger(){return this.get("swagger")}set swagger(e){this.set("swagger",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get host(){return this.get("host")}set host(e){this.set("host",e)}get basePath(){return this.get("basePath")}set basePath(e){this.set("basePath",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get consumes(){return this.get("consumes")}set consumes(e){this.set("consumes",e)}get produces(){return this.get("produces")}set produces(e){this.set("produces",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get securityDefinitions(){return this.get("securityDefinitions")}set securityDefinitions(e){this.set("securityDefinitions",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const zs=Us;class Hs extends oe.RP{constructor(e,t,n){super(e,t,n),this.element="swaggerVersion",this.classes.push("spec-version"),this.classes.push("version")}}const Gs=Hs;class Ws extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const Js=Ws;class Ks extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const Zs=Ks;class Xs extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Ys=Xs;class Qs extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="paths"}}const ei=Qs;class ti extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const ni=ti;class ri extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.hh(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}}const si=ri;class ii extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const oi=ii;const ai=class extends vt{};class ci extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("idProp",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const ui=ci;class li extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const pi=li;class hi extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const mi=hi;class fi extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const di=fi;const _i=c((function(e,t){return y((function(n,r){return n[r]=e(t[r],r,t),n}),{},U(t))}));const gi=a((function(e){return null==e}));const yi=c((function(e,t){if(0===e.length||gi(t))return!1;for(var n=t,r=0;r<e.length;){if(gi(n)||!R(e[r],n))return!1;n=n[e[r]],r+=1}return!0}));var vi=c((function(e,t){return yi([e],t)}));const bi=vi;const wi=u((function(e,t,n){return e(f(t,n))})),Ei=(e,t)=>{const n=l(e,t);return _i((e=>{if(Qe(e)&&bi("$ref",e)&&wi(ht,"$ref",e)){const t=$e(["$ref"],e),r=wn("#/",t);return $e(r.split("/"),n)}return Qe(e)?Ei(e,n):e}),e)},xi=St({props:{element:null},methods:{copyMetaAndAttributes(e,t){as(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),Si=St(xi,{methods:{enter(e){return this.element=ms(e),Xn}}});const Pi=ne(re());const Oi=function(){return!0},ji=e=>"string"==typeof(null==e?void 0:e.type)?e.type:gs(e),Ai={EphemeralObject:["content"],EphemeralArray:["content"],...bs},Ii=(e,t,{keyMap:n=Ai,...r}={})=>ws(e,t,{keyMap:n,nodeTypeGetter:ji,nodePredicate:Oi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});Ii[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Ai,...n}={})=>ws[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:ji,nodePredicate:Oi,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});const ki=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const Ni=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}},Mi=St.init((function(){const e=new WeakMap;this.BooleanElement=function(e){return e.toValue()},this.NumberElement=function(e){return e.toValue()},this.StringElement=function(e){return e.toValue()},this.NullElement=function(){return null},this.ObjectElement={enter(t){if(e.has(t))return e.get(t).toReference();const n=new Ni(t.content);return e.set(t,n),n}},this.EphemeralObject={leave:e=>e.toObject()},this.MemberElement={enter:e=>[e.key,e.value]},this.ArrayElement={enter(t){if(e.has(t))return e.get(t).toReference();const n=new ki(t.content);return e.set(t,n),n}},this.EphemeralArray={leave:e=>e.toArray()}})),Ti=e=>Gr(e)?Wr(e)||Jr(e)||Zr(e)||Kr(e)?e.toValue():Ii(e,Mi()):e;const $i=c((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n})),Ri=e=>{if(Gr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Fi={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...bs},Ci=St(xi,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return $i(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=$e(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return Re(Ke,["visitors",...e],this.specObj)?$e(["visitors",...e],this.specObj):$e(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return this.retrieveVisitor(e)({...n,...t})},toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n),s=Object.getPrototypeOf(r);return se(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?ms(t):(ws(t,r,{keyMap:Fi,nodeTypeGetter:Ri,...n}),r.element)}}}),qi=St(Ci,{props:{specPath:Pi,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(Wr(r)&&n.includes(Ti(r))&&!this.ignoredFields.includes(Ti(r))){const n=this.toRefractedElement([...t,"fixedFields",Ti(r)],e),i=new oe.c6(ms(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ti(r))||this.element.content.push(ms(s))})),this.copyMetaAndAttributes(e,this.element),Xn}}}),Di=St(qi,Si,{props:{specPath:ne(["document","objects","JSONSchema"])},init(){this.element=new ui}}),Li=Si,Bi=Si,Vi=Si,Ui=Si,zi=Si,Hi=Si,Gi=Si,Wi=Si,Ji=Si,Ki=Si,Zi=St({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Xi=e=>Xr(e)&&e.hasKey("$ref"),Yi=St(Ci,Zi,Si,{methods:{ObjectElement(e){const t=Xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Xn},ArrayElement(e){return this.element=new oe.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),Xn}}}),Qi=Si,eo=Si,to=Si,no=Si,ro=Si,so=St(Si,{methods:{ArrayElement(e){return this.element=ms(e),this.element.classes.push("json-schema-required"),Xn}}});const io=a((function(e){return $(de(ze,0,He("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const oo=c((function(e,t){return e||t}));const ao=J($(1,qe(Le,c((function(e,t){return Fe(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:W(oo)(e,t)}))(Ve,Ke))));const co=J(js);const uo=io([ht,ao,co]),lo=St(Ci,{props:{fieldPatternPredicate:Rr,specPath:Pi,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,n)=>{if(!this.ignoredFields.includes(Ti(t))&&this.fieldPatternPredicate(Ti(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new oe.c6(ms(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ti(t))||this.element.content.push(ms(n))})),this.copyMetaAndAttributes(e,this.element),Xn}}}),po=St(lo,{props:{fieldPatternPredicate:uo}}),ho=St(po,Zi,Si,{props:{specPath:e=>Xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sb,this.element.classes.push("json-schema-properties")}}),mo=St(po,Zi,Si,{props:{specPath:e=>Xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sb,this.element.classes.push("json-schema-patternProperties")}}),fo=St(po,Zi,Si,{props:{specPath:e=>Xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sb,this.element.classes.push("json-schema-dependencies")}}),_o=St(Si,{methods:{ArrayElement(e){return this.element=ms(e),this.element.classes.push("json-schema-enum"),Xn}}}),go=St(Si,{methods:{StringElement(e){return this.element=ms(e),this.element.classes.push("json-schema-type"),Xn},ArrayElement(e){return this.element=ms(e),this.element.classes.push("json-schema-type"),Xn}}}),yo=St(Ci,Zi,Si,{init(){this.element=new oe.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),Xn}}}),vo=St(Ci,Zi,Si,{init(){this.element=new oe.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),Xn}}}),bo=St(Ci,Zi,Si,{init(){this.element=new oe.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),Xn}}}),wo=St(po,Zi,Si,{props:{specPath:e=>Xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sb,this.element.classes.push("json-schema-definitions")}}),Eo=Si,xo=Si,So=Si,Po=Si,Oo=Si,jo=St(Ci,Zi,Si,{init(){this.element=new oe.ON,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xn}}}),Ao=Si,Io=St(qi,Si,{props:{specPath:ne(["document","objects","JSONReference"])},init(){this.element=new pi},methods:{ObjectElement(e){const t=qi.compose.methods.ObjectElement.call(this,e);return Wr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),ko=St(Si,{methods:{StringElement(e){return this.element=ms(e),this.element.classes.push("reference-value"),Xn}}});const No=u((function(e,t,n){return $(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))}));const Mo=a((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}}));var To=c((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const $o=To;const Ro=a(Fr);const Fo=J(gi);const Co=qe(As,co);function qo(e){return function(e){if(Array.isArray(e))return Do(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Do(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Do(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Do(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Lo=ve($o(Mo((function(e,t){return e.length>t.length}))),yr,f("length")),Bo=Ft((function(e,t,n){var r=n.apply(void 0,qo(e));return Fo(r)?Ro(r):t}));const Vo=No(Co,(function(e){var t=Lo(e);return $(t,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return de(Bo(n),void 0,e)}))}),re),Uo=St(Ci,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>No(e,ne(t),re))),n=Vo(t)(e);return this.element=this.toRefractedElement(n,e),Xn}}}),zo=St(Uo,{props:{alternator:[{predicate:Xi,specPath:["document","objects","JSONReference"]},{predicate:Oi,specPath:["document","objects","JSONSchema"]}]}}),Ho={visitors:{value:Si,JSONSchemaOrJSONReferenceVisitor:zo,document:{objects:{JSONSchema:{$visitor:Di,fixedFields:{id:Li,$schema:Bi,multipleOf:Vi,maximum:Ui,exclusiveMaximum:zi,minimum:Hi,exclusiveMinimum:Gi,maxLength:Wi,minLength:Ji,pattern:Ki,additionalItems:zo,items:Yi,maxItems:Qi,minItems:eo,uniqueItems:to,maxProperties:no,minProperties:ro,required:so,properties:ho,additionalProperties:zo,patternProperties:mo,dependencies:fo,enum:_o,type:go,allOf:yo,anyOf:vo,oneOf:bo,not:zo,definitions:wo,title:Eo,description:xo,default:So,format:Po,base:Oo,links:jo,media:{$ref:"#/visitors/document/objects/Media"},readOnly:Ao}},JSONReference:{$visitor:Io,fixedFields:{$ref:ko}},Media:{$visitor:St(qi,Si,{props:{specPath:ne(["document","objects","Media"])},init(){this.element=new mi}}),fixedFields:{binaryEncoding:Si,type:Si}},LinkDescription:{$visitor:St(qi,Si,{props:{specPath:ne(["document","objects","LinkDescription"])},init(){this.element=new di}}),fixedFields:{href:Si,rel:Si,title:Si,targetSchema:zo,mediaType:Si,method:Si,encType:Si,schema:zo}}}}}},Go=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ui||e(r)&&t("JSONSchemaDraft4",r)&&n("object",r))),Wo=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof pi||e(r)&&t("JSONReference",r)&&n("object",r))),Jo=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof mi||e(r)&&t("media",r)&&n("object",r))),Ko=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof di||e(r)&&t("linkDescription",r)&&n("object",r))),Zo={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",ui),t.register("jSONReference",pi),t.register("media",mi),t.register("linkDescription",di),t}},Xo=()=>{const e=lt(Zo);return{predicates:{...t,isStringElement:Wr},namespace:e}},Yo=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=Ho}={})=>{const s=(0,oe.Qc)(e),i=Ei(r),o=ks(t,[],i);return ws(s,o,{state:{specObj:i}}),Ms(o.element,n,{toolboxCreator:Xo,visitorOptions:{keyMap:Fi,nodeTypeGetter:Ri}})},Qo=e=>(t,n={})=>Yo(t,{specPath:e,...n});ui.refract=Qo(["visitors","document","objects","JSONSchema","$visitor"]),pi.refract=Qo(["visitors","document","objects","JSONReference","$visitor"]),mi.refract=Qo(["visitors","document","objects","Media","$visitor"]),di.refract=Qo(["visitors","document","objects","LinkDescription","$visitor"]);const ea=class extends ui{constructor(e,t,n){super(e,t,n),this.element="parameter",this.classes.push("json-schema-draft-4")}get idProp(){throw new ai("idProp getter in Parameter class is not not supported.")}set idProp(e){throw new ai("idProp setter in Parameter class is not not supported.")}get $schema(){throw new ai("$schema getter in Parameter class is not not supported.")}set $schema(e){throw new ai("$schema setter in Parameter class is not not supported.")}get additionalItems(){throw new ai("additionalItems getter in Parameter class is not not supported.")}set additionalItems(e){throw new ai("additionalItems setter in Parameter class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new ai("maxProperties getter in Parameter class is not not supported.")}set maxProperties(e){throw new ai("maxProperties setter in Parameter class is not not supported.")}get minProperties(){throw new ai("minProperties getter in Parameter class is not not supported.")}set minProperties(e){throw new ai("minProperties setter in Parameter class is not not supported.")}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){throw new ai("properties getter in Parameter class is not not supported.")}set properties(e){throw new ai("properties setter in Parameter class is not not supported.")}get additionalProperties(){throw new ai("additionalProperties getter in Parameter class is not not supported.")}set additionalProperties(e){throw new ai("additionalProperties setter in Parameter class is not not supported.")}get patternProperties(){throw new ai("patternProperties getter in Parameter class is not not supported.")}set patternProperties(e){throw new ai("patternProperties setter in Parameter class is not not supported.")}get dependencies(){throw new ai("dependencies getter in Parameter class is not not supported.")}set dependencies(e){throw new ai("dependencies setter in Parameter class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new ai("allOf getter in Parameter class is not not supported.")}set allOf(e){throw new ai("allOf setter in Parameter class is not not supported.")}get anyOf(){throw new ai("anyOf getter in Parameter class is not not supported.")}set anyOf(e){throw new ai("anyOf setter in Parameter class is not not supported.")}get oneOf(){throw new ai("oneOf getter in Parameter class is not not supported.")}set oneOf(e){throw new ai("oneOf setter in Parameter class is not not supported.")}get not(){throw new ai("not getter in Parameter class is not not supported.")}set not(e){throw new ai("not setter in Parameter class is not not supported.")}get definitions(){throw new ai("definitions getter in Parameter class is not not supported.")}set definitions(e){throw new ai("definitions setter in Parameter class is not not supported.")}get title(){throw new ai("title getter in Parameter class is not not supported.")}set title(e){throw new ai("title setter in Parameter class is not not supported.")}get description(){return this.get("description")}set description(e){this.set("description,",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){throw new ai("base getter in Parameter class is not not supported.")}set base(e){throw new ai("base setter in Parameter class is not not supported.")}get links(){throw new ai("links getter in Parameter class is not not supported.")}set links(e){throw new ai("links setter in Parameter class is not not supported.")}get media(){throw new ai("media getter in Parameter class is not not supported.")}set media(e){throw new ai("media setter in Parameter class is not not supported.")}get readOnly(){throw new ai("readOnly getter in Parameter class is not not supported.")}set readOnly(e){throw new ai("readOnly setter in Parameter class is not not supported.")}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const ta=class extends ui{constructor(e,t,n){super(e,t,n),this.element="items",this.classes.push("json-schema-draft-4")}get idProp(){throw new ai("idProp getter in Items class is not not supported.")}set idProp(e){throw new ai("idProp setter in Items class is not not supported.")}get $schema(){throw new ai("$schema getter in Items class is not not supported.")}set $schema(e){throw new ai("$schema setter in Items class is not not supported.")}get additionalItems(){throw new ai("additionalItems getter in Items class is not not supported.")}set additionalItems(e){throw new ai("additionalItems setter in Items class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new ai("maxProperties getter in Items class is not not supported.")}set maxProperties(e){throw new ai("maxProperties setter in Items class is not not supported.")}get minProperties(){throw new ai("minProperties getter in Items class is not not supported.")}set minProperties(e){throw new ai("minProperties setter in Items class is not not supported.")}get required(){throw new ai("required getter in Items class is not not supported.")}set required(e){throw new ai("required setter in Items class is not not supported.")}get properties(){throw new ai("properties getter in Items class is not not supported.")}set properties(e){throw new ai("properties setter in Items class is not not supported.")}get additionalProperties(){throw new ai("additionalProperties getter in Items class is not not supported.")}set additionalProperties(e){throw new ai("additionalProperties setter in Items class is not not supported.")}get patternProperties(){throw new ai("patternProperties getter in Items class is not not supported.")}set patternProperties(e){throw new ai("patternProperties setter in Items class is not not supported.")}get dependencies(){throw new ai("dependencies getter in Items class is not not supported.")}set dependencies(e){throw new ai("dependencies setter in Items class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new ai("allOf getter in Items class is not not supported.")}set allOf(e){throw new ai("allOf setter in Items class is not not supported.")}get anyOf(){throw new ai("anyOf getter in Items class is not not supported.")}set anyOf(e){throw new ai("anyOf setter in Items class is not not supported.")}get oneOf(){throw new ai("oneOf getter in Items class is not not supported.")}set oneOf(e){throw new ai("oneOf setter in Items class is not not supported.")}get not(){throw new ai("not getter in Items class is not not supported.")}set not(e){throw new ai("not setter in Items class is not not supported.")}get definitions(){throw new ai("definitions getter in Items class is not not supported.")}set definitions(e){throw new ai("definitions setter in Items class is not not supported.")}get title(){throw new ai("title getter in Items class is not not supported.")}set title(e){throw new ai("title setter in Items class is not not supported.")}get description(){throw new ai("description getter in Items class is not not supported.")}set description(e){throw new ai("description setter in Items class is not not supported.")}get base(){throw new ai("base getter in Items class is not not supported.")}set base(e){throw new ai("base setter in Items class is not not supported.")}get links(){throw new ai("links getter in Items class is not not supported.")}set links(e){throw new ai("links setter in Items class is not not supported.")}get media(){throw new ai("media getter in Items class is not not supported.")}set media(e){throw new ai("media setter in Items class is not not supported.")}get readOnly(){throw new ai("readOnly getter in Items class is not not supported.")}set readOnly(e){throw new ai("readOnly setter in Items class is not not supported.")}};class na extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const ra=na;class sa extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}}const ia=sa;class oa extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="headers"}}const aa=oa;class ca extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="example"}}const ua=ca;const la=class extends ui{constructor(e,t,n){super(e,t,n),this.element="header",this.classes.push("json-schema-draft-4")}get idProp(){throw new ai("idProp getter in Header class is not not supported.")}set idProp(e){throw new ai("idProp setter in Header class is not not supported.")}get $schema(){throw new ai("$schema getter in Header class is not not supported.")}set $schema(e){throw new ai("$schema setter in Header class is not not supported.")}get additionalItems(){throw new ai("additionalItems getter in Header class is not not supported.")}set additionalItems(e){throw new ai("additionalItems setter in Header class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new ai("maxProperties getter in Header class is not not supported.")}set maxProperties(e){throw new ai("maxProperties setter in Header class is not not supported.")}get minProperties(){throw new ai("minProperties getter in Header class is not not supported.")}set minProperties(e){throw new ai("minProperties setter in Header class is not not supported.")}get required(){throw new ai("required getter in Header class is not not supported.")}set required(e){throw new ai("required setter in Header class is not not supported.")}get properties(){throw new ai("properties getter in Header class is not not supported.")}set properties(e){throw new ai("properties setter in Header class is not not supported.")}get additionalProperties(){throw new ai("additionalProperties getter in Header class is not not supported.")}set additionalProperties(e){throw new ai("additionalProperties setter in Header class is not not supported.")}get patternProperties(){throw new ai("patternProperties getter in Header class is not not supported.")}set patternProperties(e){throw new ai("patternProperties setter in Header class is not not supported.")}get dependencies(){throw new ai("dependencies getter in Header class is not not supported.")}set dependencies(e){throw new ai("dependencies setter in Header class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new ai("allOf getter in Header class is not not supported.")}set allOf(e){throw new ai("allOf setter in Header class is not not supported.")}get anyOf(){throw new ai("anyOf getter in Header class is not not supported.")}set anyOf(e){throw new ai("anyOf setter in Header class is not not supported.")}get oneOf(){throw new ai("oneOf getter in Header class is not not supported.")}set oneOf(e){throw new ai("oneOf setter in Header class is not not supported.")}get not(){throw new ai("not getter in Header class is not not supported.")}set not(e){throw new ai("not setter in Header class is not not supported.")}get definitions(){throw new ai("definitions getter in Header class is not not supported.")}set definitions(e){throw new ai("definitions setter in Header class is not not supported.")}get title(){throw new ai("title getter in Header class is not not supported.")}set title(e){throw new ai("title setter in Header class is not not supported.")}get base(){throw new ai("base getter in Header class is not not supported.")}set base(e){throw new ai("base setter in Header class is not not supported.")}get links(){throw new ai("links getter in Header class is not not supported.")}set links(e){throw new ai("links setter in Header class is not not supported.")}get media(){throw new ai("media getter in Header class is not not supported.")}set media(e){throw new ai("media setter in Header class is not not supported.")}get readOnly(){throw new ai("readOnly getter in Header class is not not supported.")}set readOnly(e){throw new ai("readOnly setter in Header class is not not supported.")}};class pa extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const ha=pa;class ma extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const fa=ma;const da=class extends ui{constructor(e,t,n){super(e,t,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new ai("idProp getter in Schema class is not not supported.")}set idProp(e){throw new ai("idProp setter in Schema class is not not supported.")}get $schema(){throw new ai("$schema getter in Schema class is not not supported.")}set $schema(e){throw new ai("$schema setter in Schema class is not not supported.")}get additionalItems(){throw new ai("additionalItems getter in Schema class is not not supported.")}set additionalItems(e){throw new ai("additionalItems setter in Schema class is not not supported.")}get patternProperties(){throw new ai("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new ai("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new ai("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new ai("dependencies setter in Schema class is not not supported.")}get anyOf(){throw new ai("anyOf getter in Schema class is not not supported.")}set anyOf(e){throw new ai("anyOf setter in Schema class is not not supported.")}get oneOf(){throw new ai("oneOf getter in Schema class is not not supported.")}set oneOf(e){throw new ai("oneOf setter in Schema class is not not supported.")}get not(){throw new ai("not getter in Schema class is not not supported.")}set not(e){throw new ai("not setter in Schema class is not not supported.")}get definitions(){throw new ai("definitions getter in Schema class is not not supported.")}set definitions(e){throw new ai("definitions setter in Schema class is not not supported.")}get base(){throw new ai("base getter in Schema class is not not supported.")}set base(e){throw new ai("base setter in Schema class is not not supported.")}get links(){throw new ai("links getter in Schema class is not not supported.")}set links(e){throw new ai("links setter in Schema class is not not supported.")}get media(){throw new ai("media getter in Schema class is not not supported.")}set media(e){throw new ai("media setter in Schema class is not not supported.")}};class _a extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const ga=_a;class ya extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="definitions"}}const va=ya;class ba extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="parametersDefinitions"}}const wa=ba;class Ea extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="responsesDefinitions"}}const xa=Ea;class Sa extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="securityDefinitions"}}const Pa=Sa;class Oa extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get flow(){return this.get("flow")}set flow(e){this.set("flow",e)}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const ja=Oa;class Aa extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="scopes"}}const Ia=Aa;class ka extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="securityRequirement"}}const Na=ka,Ma=St({props:{element:null},methods:{copyMetaAndAttributes(e,t){as(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),Ta=St(Ma,{methods:{enter(e){return this.element=ms(e),Xn}}}),$a=e=>{if(Gr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ra={SwaggerElement:["content"],InfoElement:["content"],ContactElement:["content"],LicenseElement:["content"],PathsElement:["content"],PathItemElement:["content"],OperationElement:["content"],ExternalDocumentationElement:["content"],ParameterElement:["content"],ItemsElement:["content"],ExampleElement:["content"],ResponsesElement:["content"],ResponseElement:["content"],HeadersElement:["content"],HeaderElement:["content"],TagElement:["content"],ReferenceElement:["content"],JSONReferenceElement:["content"],SchemaElement:["content"],XmlElement:["content"],DefinitionsElement:["content"],ParametersDefinitionsElement:["content"],ResponsesDefinitionsElement:["content"],SecurityDefinitionsElement:["content"],SecuritySchemeElement:["content"],ScopesElement:["content"],SecurityRequirementElement:["content"],...bs},Fa=St(Ma,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init({specObj:e=this.specObj,openApiGenericElement:t=this.openApiGenericElement,openApiSemanticElement:n=this.openApiSemanticElement}){this.specObj=e,this.openApiGenericElement=t,this.openApiSemanticElement=n},methods:{retrievePassingOptions(){return $i(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=$e(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return Re(Ke,["visitors",...e],this.specObj)?$e(["visitors",...e],this.specObj):$e(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return this.retrieveVisitor(e)({...n,...t})},toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n),s=Object.getPrototypeOf(r);return se(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?ms(t):(ws(t,r,{keyMap:Ra,nodeTypeGetter:$a,...n}),r.element)}}});var Ca=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=I,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Fr(n):n},e}();function qa(e){return function(t){return new Ca(e,t)}}const Da=c(O(["take"],qa,(function(e,t){return ge(0,e<0?1/0:e,t)})));const La=c((function(e,t){return te(Da(e.length,t),e)})),Ba=e=>Wr(e.key)&&La("x-",Ti(e.key)),Va=e=>Xr(e)&&e.hasKey("$ref"),Ua=St(Fa,{props:{specPath:Pi,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:Ba},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:n=this.canSupportSpecificationExtensions,specificationExtensionPredicate:r=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=n,this.specificationExtensionPredicate=r},methods:{ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(Wr(r)&&n.includes(Ti(r))&&!this.ignoredFields.includes(Ti(r))){const n=this.toRefractedElement([...t,"fixedFields",Ti(r)],e),i=new oe.c6(ms(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(Ti(r))||this.element.content.push(ms(s))})),this.copyMetaAndAttributes(e,this.element),Xn}}}),za=St(Ua,Ta,{props:{specPath:ne(["document","objects","Swagger"]),canSupportSpecificationExtensions:!0},init(){this.element=new zs}}),Ha=St(Fa,Ta,{methods:{StringElement(e){const t=new Gs(Ti(e));return this.copyMetaAndAttributes(e,t),this.element=t,Xn}}});class Ga extends oe.ON{static primaryClass="swagger-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(Ga.primaryClass)}}const Wa=Ga,Ja=St(Ta,{init(){this.element=new Wa},methods:{ArrayElement(e){return this.element=this.element.concat(ms(e)),Xn}}});class Ka extends oe.ON{static primaryClass="swagger-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(Ka.primaryClass)}}const Za=Ka,Xa=St(Ta,{init(){this.element=new Za},methods:{ArrayElement(e){return this.element=this.element.concat(ms(e)),Xn}}});class Ya extends oe.ON{static primaryClass="swagger-produces";constructor(e,t,n){super(e,t,n),this.classes.push(Ya.primaryClass)}}const Qa=Ya,ec=St(Ta,{init(){this.element=new Qa},methods:{ArrayElement(e){return this.element=this.element.concat(ms(e)),Xn}}});class tc extends oe.ON{static primaryClass="swagger-security";constructor(e,t,n){super(e,t,n),this.classes.push(tc.primaryClass),this.classes.push("security")}}const nc=tc,rc=St(Fa,Ta,{init(){this.element=new nc},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xn}}});class sc extends oe.ON{static primaryClass="swagger-tags";constructor(e,t,n){super(e,t,n),this.classes.push(sc.primaryClass)}}const ic=sc,oc=St(Fa,Ta,{init(){this.element=new ic},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Tag"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xn}}}),ac=St(Ua,Ta,{props:{specPath:ne(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new Js}}),cc=St(Ta,{methods:{StringElement(e){return this.element=ms(e),this.element.classes.push("api-version"),this.element.classes.push("version"),Xn}}}),uc=St(Ua,Ta,{props:{specPath:ne(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new Zs}}),lc=St(Ua,Ta,{props:{specPath:ne(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ys}});const pc=c((function(e,t){if(n=e,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Me(e));var n;return Pt(e).test(t)})),hc=St(Fa,{props:{fieldPatternPredicate:Rr,specPath:Pi,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:Ba},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:n=this.canSupportSpecificationExtensions,specificationExtensionPredicate:r=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=n,this.specificationExtensionPredicate=r},methods:{ObjectElement(e){return e.forEach(((e,t,n)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else if(!this.ignoredFields.includes(Ti(t))&&this.fieldPatternPredicate(Ti(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new oe.c6(ms(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ti(t))||this.element.content.push(ms(n))})),this.copyMetaAndAttributes(e,this.element),Xn}}}),mc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof zs||e(r)&&t("swagger",r)&&n("object",r))),fc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Gs||e(r)&&t("swaggerVersion",r)&&n("string",r))),dc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Js||e(r)&&t("info",r)&&n("object",r))),_c=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ys||e(r)&&t("license",r)&&n("object",r))),gc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Zs||e(r)&&t("contact",r)&&n("object",r))),yc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ei||e(r)&&t("paths",r)&&n("object",r))),vc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ni||e(r)&&t("pathItem",r)&&n("object",r))),bc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof si||e(r)&&t("operation",r)&&n("object",r))),wc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oi||e(r)&&t("externalDocumentation",r)&&n("object",r))),Ec=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ea||e(r)&&t("parameter",r)&&n("object",r))),xc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ta||e(r)&&t("items",r)&&n("object",r))),Sc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ra||e(r)&&t("responses",r)&&n("object",r))),Pc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ia||e(r)&&t("response",r)&&n("object",r))),Oc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof aa||e(r)&&t("headers",r)&&n("object",r))),jc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ua||e(r)&&t("example",r)&&n("object",r))),Ac=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof la||e(r)&&t("header",r)&&n("object",r))),Ic=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ha||e(r)&&t("tag",r)&&n("object",r))),kc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof fa||e(r)&&t("reference",r)&&n("object",r))),Nc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof da||e(r)&&t("schema",r)&&n("object",r))),Mc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ga||e(r)&&t("xml",r)&&n("object",r))),Tc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof xa||e(r)&&t("responsesDefinitions",r)&&n("object",r))),$c=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Pa||e(r)&&t("securityDefinitions",r)&&n("object",r))),Rc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof va||e(r)&&t("definitions",r)&&n("object",r))),Fc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof wa||e(r)&&t("parametersDefinitions",r)&&n("object",r))),Cc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ja||e(r)&&t("securityScheme",r)&&n("object",r))),qc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ia||e(r)&&t("scopes",r)&&n("object",r))),Dc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Na||e(r)&&t("securityRequirement",r)&&n("object",r))),Lc=St(hc,Ta,{props:{fieldPatternPredicate:pc(/^\/(?<path>.*)$/),specPath:ne(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new ei},methods:{ObjectElement(e){const t=hc.compose.methods.ObjectElement.call(this,e);return this.element.filter(vc).forEach(((e,t)=>{e.setMetaProperty("path",ms(t))})),t}}}),Bc=St(Ua,Ta,{props:{specPath:ne(["document","objects","PathItem"])},init(){this.element=new ni},methods:{ObjectElement(e){const t=Ua.compose.methods.ObjectElement.call(this,e);return this.element.filter(bc).forEach(((e,t)=>{const n=ms(t);n.content=Ti(n).toUpperCase(),e.setMetaProperty("http-method",n)})),Wr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Vc=St(Ta,{methods:{StringElement(e){return this.element=ms(e),this.element.classes.push("reference-value"),Xn}}});class Uc extends oe.ON{static primaryClass="path-item-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(Uc.primaryClass),this.classes.push("parameters")}}const zc=Uc,Hc=St(Fa,Ta,{init(){this.element=new zc},methods:{ArrayElement(e){return e.forEach((e=>{const t=Va(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);kc(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),Xn}}}),Gc=St(Ua,Ta,{props:{specPath:ne(["document","objects","Operation"])},init(){this.element=new si}});class Wc extends oe.ON{static primaryClass="operation-tags";constructor(e,t,n){super(e,t,n),this.classes.push(Wc.primaryClass)}}const Jc=Wc,Kc=St(Ta,{init(){this.element=new Jc},methods:{ArrayElement(e){return this.element=this.element.concat(ms(e)),Xn}}});class Zc extends oe.ON{static primaryClass="operation-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(Zc.primaryClass)}}const Xc=Zc,Yc=St(Ta,{init(){this.element=new Xc},methods:{ArrayElement(e){return this.element=this.element.concat(ms(e)),Xn}}});class Qc extends oe.ON{static primaryClass="operation-produces";constructor(e,t,n){super(e,t,n),this.classes.push(Qc.primaryClass)}}const eu=Qc,tu=St(Ta,{init(){this.element=new eu},methods:{ArrayElement(e){return this.element=this.element.concat(ms(e)),Xn}}});class nu extends oe.ON{static primaryClass="operation-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(nu.primaryClass),this.classes.push("parameters")}}const ru=nu,su=St(Fa,Ta,{init(){this.element=new ru},methods:{ArrayElement(e){return e.forEach((e=>{const t=Va(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);kc(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),Xn}}});class iu extends oe.ON{static primaryClass="operation-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(iu.primaryClass)}}const ou=iu,au=St(Ta,{init(){this.element=new ou},methods:{ArrayElement(e){return this.element=this.element.concat(ms(e)),Xn}}});class cu extends oe.ON{static primaryClass="operation-security";constructor(e,t,n){super(e,t,n),this.classes.push(cu.primaryClass),this.classes.push("security")}}const uu=cu,lu=St(Fa,Ta,{init(){this.element=new uu},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xn}}}),pu=St(Ua,Ta,{props:{specPath:ne(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new oi}}),hu=St(Ua,Ta,{props:{specPath:ne(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new ea}}),mu=St(Ua,Ta,{props:{specPath:ne(["document","objects","Items"]),canSupportSpecificationExtensions:!0},init(){this.element=new ta}});function fu(e){return"[object Number]"===Object.prototype.toString.call(e)}const du=c((function(e,t){if(!fu(e)||!fu(t))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=e;r<t;)n.push(r),r+=1;return n}));function _u(e,t,n){var r,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?e in n._items[s]||(t&&(n._items[s][e]=!0),!1):(t&&(n._items[s]={},n._items[s][e]=!0),!1);case"boolean":if(s in n._items){var i=e?1:0;return!!n._items[s][i]||(t&&(n._items[s][i]=!0),!1)}return t&&(n._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?!!Ee(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1);case"undefined":return!!n._items[s]||(t&&(n._items[s]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in n._items?!!Ee(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1)}}const gu=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!_u(e,!0,this)},e.prototype.has=function(e){return _u(e,!1,this)},e}();const yu=c((function(e,t){for(var n=[],r=0,s=e.length,i=t.length,o=new gu,a=0;a<i;a+=1)o.add(t[a]);for(;r<s;)o.add(e[r])&&(n[n.length]=e[r]),r+=1;return n})),vu=St(Ua,hc,{props:{specPathFixedFields:Pi,specPathPatternedFields:Pi},methods:{ObjectElement(e){const{specPath:t,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...n,...yu(e.keys(),t)],Ua.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,hc.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Xn}}}),bu=St(vu,Ta,{props:{specPathFixedFields:ne(["document","objects","Responses"]),specPathPatternedFields:e=>Va(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:pc(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${du(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new ra},methods:{ObjectElement(e){const t=vu.compose.methods.ObjectElement.call(this,e);return this.element.filter(kc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Pc).forEach(((e,t)=>{const n=ms(t);this.fieldPatternPredicate(Ti(n))&&e.setMetaProperty("http-status-code",n)})),t}}}),wu=St(Fa,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>No(e,ne(t),re))),n=Vo(t)(e);return this.element=this.toRefractedElement(n,e),Xn}}}),Eu=St(wu,Ta,{props:{alternator:[{predicate:Va,specPath:["document","objects","Reference"]},{predicate:Oi,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=wu.compose.methods.enter.call(this,e);return kc(this.element)?this.element.setMetaProperty("referenced-element","response"):Pc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),xu=St(Ua,Ta,{props:{specPath:ne(["document","objects","Response"]),canSupportSpecificationExtensions:!0},init(){this.element=new ia}}),Su=St(hc,{props:{fieldPatternPredicate:uo}}),Pu=St(Su,Ta,{props:{specPath:ne(["document","objects","Header"]),canSupportSpecificationExtensions:!1},init(){this.element=new aa}}),Ou=St(Su,Ta,{props:{specPath:ne(["value"]),canSupportSpecificationExtensions:!1},init(){this.element=new ua}}),ju=St(Ua,Ta,{props:{specPath:ne(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new la}}),Au=St(Ua,Ta,{props:{specPath:ne(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new ha}}),Iu=St(Ua,Ta,{props:{specPath:ne(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new fa},methods:{ObjectElement(e){const t=Ua.compose.methods.ObjectElement.call(this,e);return Wr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),ku=St(Ta,{methods:{StringElement(e){return this.element=ms(e),this.element.classes.push("reference-value"),Xn}}}),Nu=St(Ua,Ta,{props:{specPath:ne(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new da}}),{allOf:Mu}=Ho.visitors.document.objects.JSONSchema.fixedFields,Tu=St(Mu,{methods:{ArrayElement(e){const t=Mu.compose.methods.ArrayElement.call(this,e);return this.element.filter(Wo).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:$u}=Ho.visitors.document.objects.JSONSchema.fixedFields,Ru=St($u,{methods:{ObjectElement(e){const t=$u.compose.methods.ObjectElement.call(this,e);return Wo(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){const t=$u.compose.methods.ArrayElement.call(this,e);return this.element.filter(Wo).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{properties:Fu}=Ho.visitors.document.objects.JSONSchema.fixedFields,Cu=St(Fu,{methods:{ObjectElement(e){const t=Fu.compose.methods.ObjectElement.call(this,e);return this.element.filter(Wo).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{JSONSchemaOrJSONReferenceVisitor:qu}=Ho.visitors,Du=St(qu,{methods:{ObjectElement(e){const t=qu.compose.methods.enter.call(this,e);return Wo(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Lu=St(Ua,Ta,{props:{specPath:ne(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new ga}}),Bu=St(Su,Ta,{props:{specPath:e=>Xi(e)?["document","objects","JSONReference"]:["document","objects","Schema"]},init(){this.element=new va},methods:{ObjectElement(e){const t=Su.compose.methods.ObjectElement.call(this,e);return this.element.filter(Wo).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),Vu=St(Su,Ta,{props:{specPath:ne(["document","objects","Response"])},init(){this.element=new xa}}),Uu=St(Su,Ta,{props:{specPath:ne(["document","objects","Parameter"])},init(){this.element=new wa}}),zu=St(Su,Ta,{props:{specPath:ne(["document","objects","SecurityScheme"])},init(){this.element=new Pa}}),Hu=St(Ua,Ta,{props:{specPath:ne(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new ja}}),Gu=St(Su,Ta,{props:{specPath:ne(["value"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ia}}),Wu=St(Su,Ta,{props:{specPath:ne(["value"])},init(){this.element=new Na}}),Ju=St(Fa,{methods:{MemberElement(e){return this.element=ms(e),this.element.classes.push("specification-extension"),Xn}}}),{fixedFields:Ku}=Ho.visitors.document.objects.JSONSchema,Zu={visitors:{value:Ta,document:{objects:{JSONReference:Ho.visitors.document.objects.JSONReference,JSONSchema:{$ref:"#/visitors/document/objects/Schema"},Swagger:{$visitor:za,fixedFields:{swagger:Ha,info:{$ref:"#/visitors/document/objects/Info"},host:{$ref:"#/visitors/value"},basePath:{$ref:"#/visitors/value"},schemes:Ja,consumes:Xa,produces:ec,paths:{$ref:"#/visitors/document/objects/Paths"},definitions:{$ref:"#/visitors/document/objects/Definitions"},parameters:{$ref:"#/visitors/document/objects/ParametersDefinitions"},responses:{$ref:"#/visitors/document/objects/ResponsesDefinitions"},securityDefinitions:{$ref:"#/visitors/document/objects/SecurityDefinitions"},security:rc,tags:oc,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:ac,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:cc}},Contact:{$visitor:uc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:lc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Paths:{$visitor:Lc},PathItem:{$visitor:Bc,fixedFields:{$ref:Vc,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},parameters:Hc}},Operation:{$visitor:Gc,fixedFields:{tags:Kc,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},consumes:Yc,produces:tu,parameters:su,responses:{$ref:"#/visitors/document/objects/Responses"},schemes:au,deprecated:{$ref:"#/visitors/value"},security:lu}},ExternalDocumentation:{$visitor:pu,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:hu,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:Ku.description,required:Ku.required,schema:Du,type:Ku.type,format:Ku.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Ku.default,maximum:Ku.maximum,exclusiveMaximum:Ku.exclusiveMaximum,minimum:Ku.minimum,exclusiveMinimum:Ku.exclusiveMinimum,maxLength:Ku.maxLength,minLength:Ku.minLength,pattern:Ku.pattern,maxItems:Ku.maxItems,minItems:Ku.minItems,uniqueItems:Ku.uniqueItems,enum:Ku.enum,multipleOf:Ku.multipleOf}},Items:{$visitor:mu,fixedFields:{type:Ku.type,format:Ku.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Ku.default,maximum:Ku.maximum,exclusiveMaximum:Ku.exclusiveMaximum,minimum:Ku.minimum,exclusiveMinimum:Ku.exclusiveMinimum,maxLength:Ku.maxLength,minLength:Ku.minLength,pattern:Ku.pattern,maxItems:Ku.maxItems,minItems:Ku.minItems,uniqueItems:Ku.uniqueItems,enum:Ku.enum,multipleOf:Ku.multipleOf}},Responses:{$visitor:bu,fixedFields:{default:Eu}},Response:{$visitor:xu,fixedFields:{description:{$ref:"#/visitors/value"},schema:Du,headers:{$ref:"#/visitors/document/objects/Headers"},examples:{$ref:"#/visitors/document/objects/Example"}}},Headers:{$visitor:Pu},Example:{$visitor:Ou},Header:{$visitor:ju,fixedFields:{description:Ku.description,type:Ku.type,format:Ku.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Ku.default,maximum:Ku.maximum,exclusiveMaximum:Ku.exclusiveMaximum,minimum:Ku.minimum,exclusiveMinimum:Ku.exclusiveMinimum,maxLength:Ku.maxLength,minLength:Ku.minLength,pattern:Ku.pattern,maxItems:Ku.maxItems,minItems:Ku.minItems,uniqueItems:Ku.uniqueItems,enum:Ku.enum,multipleOf:Ku.multipleOf}},Tag:{$visitor:Au,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Iu,fixedFields:{$ref:ku}},Schema:{$visitor:Nu,fixedFields:{format:Ku.format,title:Ku.title,description:Ku.description,default:Ku.default,multipleOf:Ku.multipleOf,maximum:Ku.maximum,exclusiveMaximum:Ku.exclusiveMaximum,minimum:Ku.minimum,exclusiveMinimum:Ku.exclusiveMinimum,maxLength:Ku.maxLength,minLength:Ku.minLength,pattern:Ku.pattern,maxItems:Ku.maxItems,minItems:Ku.minItems,uniqueItems:Ku.uniqueItems,maxProperties:Ku.maxProperties,minProperties:Ku.minProperties,required:Ku.required,enum:Ku.enum,type:Ku.type,readOnly:Ku.readOnly,items:Ru,allOf:Tu,properties:Cu,additionalProperties:Du,discriminator:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},XML:{$visitor:Lu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},Definitions:{$visitor:Bu},ParametersDefinitions:{$visitor:Uu},ResponsesDefinitions:{$visitor:Vu},SecurityDefinitions:{$visitor:zu},SecurityScheme:{$visitor:Hu,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},flow:{$ref:"#/visitors/value"},authorizationUrl:{$ref:"#/visitors/value"},token:{$ref:"#/visitors/value"},scopes:{$ref:"#/visitors/document/objects/Scopes"}}},Scopes:{$visitor:Gu},SecurityRequirement:{$visitor:Wu}},extension:{$visitor:Ju}}}},Xu={namespace:e=>{const{base:t}=e;return t.register("swagger",zs),t.register("swaggerVersion",Gs),t.register("info",Js),t.register("contact",Zs),t.register("license",Ys),t.register("paths",ei),t.register("pathItem",ni),t.register("operation",si),t.register("externalDocumentation",oi),t.register("parameter",ea),t.register("items",ta),t.register("responses",ra),t.register("response",ia),t.register("headers",aa),t.register("example",ua),t.register("header",la),t.register("tag",ha),t.register("reference",fa),t.register("schema",da),t.register("xml",ga),t.register("definitions",va),t.register("parametersDefinitions",wa),t.register("responsesDefinitions",xa),t.register("securityDefinitions",Pa),t.register("securityScheme",ja),t.register("scopes",Ia),t.register("securityRequirement",Na),t}},Yu=()=>{const e=lt(Xu);return{predicates:{...s,...i,isStringElement:Wr},namespace:e}},Qu=(e,{specPath:t=["visitors","document","objects","Swagger","$visitor"],plugins:n=[]}={})=>{const r=(0,oe.Qc)(e),s=Ei(Zu),i=ks(t,[],s);return ws(r,i,{state:{specObj:s}}),Ms(i.element,n,{toolboxCreator:Yu,visitorOptions:{keyMap:Ra,nodeTypeGetter:$a}})},el=e=>(t,n={})=>Qu(t,{specPath:e,...n});zs.refract=el(["visitors","document","objects","Swagger","$visitor"]),Gs.refract=el(["visitors","document","objects","SwaggerVersion","$visitor"]),Js.refract=el(["visitors","document","objects","Info","$visitor"]),Zs.refract=el(["visitors","document","objects","Contact","$visitor"]),Ys.refract=el(["visitors","document","objects","License","$visitor"]),ei.refract=el(["visitors","document","objects","Paths","$visitor"]),ni.refract=el(["visitors","document","objects","PathItem","$visitor"]),si.refract=el(["visitors","document","objects","Operation","$visitor"]),oi.refract=el(["visitors","document","objects","ExternalDocumentation","$visitor"]),ea.refract=el(["visitors","document","objects","Parameter","$visitor"]),ta.refract=el(["visitors","document","objects","Items","$visitor"]),ra.refract=el(["visitors","document","objects","Responses","$visitor"]),ia.refract=el(["visitors","document","objects","Response","$visitor"]),aa.refract=el(["visitors","document","objects","Headers","$visitor"]),ua.refract=el(["visitors","document","objects","Example","$visitor"]),la.refract=el(["visitors","document","objects","Header","$visitor"]),ha.refract=el(["visitors","document","objects","Tag","$visitor"]),fa.refract=el(["visitors","document","objects","Reference","$visitor"]),da.refract=el(["visitors","document","objects","Schema","$visitor"]),ga.refract=el(["visitors","document","objects","XML","$visitor"]),va.refract=el(["visitors","document","objects","Definitions","$visitor"]),wa.refract=el(["visitors","document","objects","ParametersDefinitions","$visitor"]),xa.refract=el(["visitors","document","objects","ResponsesDefinitions","$visitor"]),Pa.refract=el(["visitors","document","objects","SecurityDefinitions","$visitor"]),ja.refract=el(["visitors","document","objects","SecurityScheme","$visitor"]),Ia.refract=el(["visitors","document","objects","Scopes","$visitor"]),Na.refract=el(["visitors","document","objects","SecurityRequirement","$visitor"]);const tl=m(-1);const nl=class extends ai{};const rl=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new nl("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new nl("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new nl("latest method in MediaTypes class is not yet implemented.")}};class sl extends rl{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2.0",t="generic"){const n="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(n)))||this.unknownMediaType}latest(e="generic"){return tl(this.filterByFormat(e))}}const il=new sl("application/vnd.oai.openapi;version=2.0","application/vnd.oai.openapi+json;version=2.0","application/vnd.oai.openapi+yaml;version=2.0"),ol=new sl(...il.filterByFormat("generic"),...il.filterByFormat("yaml")),al=/(?<YAML>^(["']?)swagger\2\s*:\s*(["'])(?<version_yaml>2\.0)\3(?:\s+|$))|(?<JSON>"swagger"\s*:\s*"(?<version_json>2\.0)")/m,cl=async e=>al.test(e)&&await(async e=>{try{return"ERROR"!==(await xt(e)).rootNode.type}catch{return!1}})(e),ul=async(e,t={})=>{const n=d({},"refractorOpts",t),r=g(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1}={})=>{const n=await xt(e);return Vs(n,{sourceMap:t})})(e,r),{result:i}=s;if(ie(i)){const e=zs.refract(i,n);e.classes.push("result"),s.replaceResult(e)}return s},ll=lt(Xu)})(),r})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiYaml2=t():e.apidomParserAdapterOpenApiYaml2=t()}(self,(()=>(()=>{var e={9515:(e,t,n)=>{var r=n(8761)(n(7772),"DataView");e.exports=r},9612:(e,t,n)=>{var r=n(2118),s=n(6909),i=n(8138),o=n(4174),a=n(7942);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},235:(e,t,n)=>{var r=n(3945),s=n(1846),i=n(8028),o=n(2344),a=n(4769);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},326:(e,t,n)=>{var r=n(8761)(n(7772),"Map");e.exports=r},6738:(e,t,n)=>{var r=n(2411),s=n(6417),i=n(6928),o=n(9493),a=n(4150);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},2760:(e,t,n)=>{var r=n(8761)(n(7772),"Promise");e.exports=r},2143:(e,t,n)=>{var r=n(8761)(n(7772),"Set");e.exports=r},5386:(e,t,n)=>{var r=n(6738),s=n(2842),i=n(2482);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},6571:(e,t,n)=>{var r=n(235),s=n(5243),i=n(2858),o=n(4417),a=n(8605),c=n(1418);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},857:(e,t,n)=>{var r=n(7772).Symbol;e.exports=r},9162:(e,t,n)=>{var r=n(7772).Uint8Array;e.exports=r},3215:(e,t,n)=>{var r=n(8761)(n(7772),"WeakMap");e.exports=r},7552:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}},1634:(e,t,n)=>{var r=n(6473),s=n(9631),i=n(6152),o=n(3226),a=n(9045),c=n(7598),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&s(e),p=!n&&!l&&o(e),h=!n&&!l&&!p&&c(e),m=n||l||p||h,f=m?r(e.length,String):[],d=f.length;for(var _ in e)!t&&!u.call(e,_)||m&&("length"==_||p&&("offset"==_||"parent"==_)||h&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||a(_,d))||f.push(_);return f}},5067:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}},7064:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},2218:(e,t,n)=>{var r=n(1225);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},1897:(e,t,n)=>{var r=n(5067),s=n(6152);e.exports=function(e,t,n){var i=t(e);return s(e)?i:r(i,n(e))}},3366:(e,t,n)=>{var r=n(857),s=n(2107),i=n(7157),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},5183:(e,t,n)=>{var r=n(3366),s=n(5125);e.exports=function(e){return s(e)&&"[object Arguments]"==r(e)}},8746:(e,t,n)=>{var r=n(1952),s=n(5125);e.exports=function e(t,n,i,o,a){return t===n||(null==t||null==n||!s(t)&&!s(n)?t!=t&&n!=n:r(t,n,i,o,e,a))}},1952:(e,t,n)=>{var r=n(6571),s=n(4871),i=n(1491),o=n(7416),a=n(940),c=n(6152),u=n(3226),l=n(7598),p="[object Arguments]",h="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,_,g){var y=c(e),v=c(t),b=y?h:a(e),w=v?h:a(t),E=(b=b==p?m:b)==m,x=(w=w==p?m:w)==m,S=b==w;if(S&&u(e)){if(!u(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new r),y||l(e)?s(e,t,n,d,_,g):i(e,t,b,n,d,_,g);if(!(1&n)){var P=E&&f.call(e,"__wrapped__"),O=x&&f.call(t,"__wrapped__");if(P||O){var j=P?e.value():e,A=O?t.value():t;return g||(g=new r),_(j,A,n,d,g)}}return!!S&&(g||(g=new r),o(e,t,n,d,_,g))}},6840:(e,t,n)=>{var r=n(1049),s=n(7394),i=n(9259),o=n(7035),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,h=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(r(e)?h:a).test(o(e))}},5522:(e,t,n)=>{var r=n(3366),s=n(1158),i=n(5125),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[r(e)]}},6411:(e,t,n)=>{var r=n(6001),s=n(4248),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return s(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},6473:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7826:e=>{e.exports=function(e){return function(t){return e(t)}}},9950:e=>{e.exports=function(e,t){return e.has(t)}},4019:(e,t,n)=>{var r=n(7772)["__core-js_shared__"];e.exports=r},4871:(e,t,n)=>{var r=n(5386),s=n(7064),i=n(9950);e.exports=function(e,t,n,o,a,c){var u=1&n,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var f=-1,d=!0,_=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++f<l;){var g=e[f],y=t[f];if(o)var v=u?o(y,g,f,t,e,c):o(g,y,f,e,t,c);if(void 0!==v){if(v)continue;d=!1;break}if(_){if(!s(t,(function(e,t){if(!i(_,t)&&(g===e||a(g,e,n,o,c)))return _.push(t)}))){d=!1;break}}else if(g!==y&&!a(g,y,n,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},1491:(e,t,n)=>{var r=n(857),s=n(9162),i=n(1225),o=n(4871),a=n(5179),c=n(4207),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,p,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=a;case"[object Set]":var f=1&r;if(m||(m=c),e.size!=t.size&&!f)return!1;var d=h.get(e);if(d)return d==t;r|=2,h.set(e,t);var _=o(m(e),m(t),r,u,p,h);return h.delete(e),_;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},7416:(e,t,n)=>{var r=n(3483),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,a){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var p=l;p--;){var h=u[p];if(!(c?h in t:s.call(t,h)))return!1}var m=a.get(e),f=a.get(t);if(m&&f)return m==t&&f==e;var d=!0;a.set(e,t),a.set(t,e);for(var _=c;++p<l;){var g=e[h=u[p]],y=t[h];if(i)var v=c?i(y,g,h,t,e,a):i(g,y,h,e,t,a);if(!(void 0===v?g===y||o(g,y,n,i,a):v)){d=!1;break}_||(_="constructor"==h)}if(d&&!_){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(d=!1)}return a.delete(e),a.delete(t),d}},1242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},3483:(e,t,n)=>{var r=n(1897),s=n(633),i=n(249);e.exports=function(e){return r(e,i,s)}},7937:(e,t,n)=>{var r=n(8304);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},8761:(e,t,n)=>{var r=n(6840),s=n(8109);e.exports=function(e,t){var n=s(e,t);return r(n)?n:void 0}},2107:(e,t,n)=>{var r=n(857),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var s=o.call(e);return r&&(t?e[a]=n:delete e[a]),s}},633:(e,t,n)=>{var r=n(7552),s=n(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},940:(e,t,n)=>{var r=n(9515),s=n(326),i=n(2760),o=n(2143),a=n(3215),c=n(3366),u=n(7035),l="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",f="[object DataView]",d=u(r),_=u(s),g=u(i),y=u(o),v=u(a),b=c;(r&&b(new r(new ArrayBuffer(1)))!=f||s&&b(new s)!=l||i&&b(i.resolve())!=p||o&&b(new o)!=h||a&&b(new a)!=m)&&(b=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case d:return f;case _:return l;case g:return p;case y:return h;case v:return m}return t}),e.exports=b},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2118:(e,t,n)=>{var r=n(9191);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,n)=>{var r=n(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(t,e)?t[e]:void 0}},4174:(e,t,n)=>{var r=n(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:s.call(t,e)}},7942:(e,t,n)=>{var r=n(9191);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},9045:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,n)=>{var r,s=n(4019),i=(r=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},6001:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,n)=>{var r=n(2218),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():s.call(t,n,1),--this.size,!0)}},8028:(e,t,n)=>{var r=n(2218);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},2344:(e,t,n)=>{var r=n(2218);e.exports=function(e){return r(this.__data__,e)>-1}},4769:(e,t,n)=>{var r=n(2218);e.exports=function(e,t){var n=this.__data__,s=r(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}},2411:(e,t,n)=>{var r=n(9612),s=n(235),i=n(326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||s),string:new r}}},6417:(e,t,n)=>{var r=n(7937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).get(e)}},9493:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).has(e)}},4150:(e,t,n)=>{var r=n(7937);e.exports=function(e,t){var n=r(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}},5179:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},9191:(e,t,n)=>{var r=n(8761)(Object,"create");e.exports=r},4248:(e,t,n)=>{var r=n(241)(Object.keys,Object);e.exports=r},4146:(e,t,n)=>{e=n.nmd(e);var r=n(1242),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&r.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},241:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},7772:(e,t,n)=>{var r=n(1242),s="object"==typeof self&&self&&self.Object===Object&&self,i=r||s||Function("return this")();e.exports=i},2842:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2482:e=>{e.exports=function(e){return this.__data__.has(e)}},4207:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},5243:(e,t,n)=>{var r=n(235);e.exports=function(){this.__data__=new r,this.size=0}},2858:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:e=>{e.exports=function(e){return this.__data__.get(e)}},8605:e=>{e.exports=function(e){return this.__data__.has(e)}},1418:(e,t,n)=>{var r=n(235),s=n(326),i=n(6738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},7035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},9631:(e,t,n)=>{var r=n(5183),s=n(5125),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},6152:e=>{var t=Array.isArray;e.exports=t},7878:(e,t,n)=>{var r=n(1049),s=n(1158);e.exports=function(e){return null!=e&&s(e.length)&&!r(e)}},4335:(e,t,n)=>{var r=n(3366),s=n(5125);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==r(e)}},3226:(e,t,n)=>{e=n.nmd(e);var r=n(7772),s=n(6330),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},8149:(e,t,n)=>{var r=n(8746);e.exports=function(e,t){return r(e,t)}},1049:(e,t,n)=>{var r=n(3366),s=n(9259);e.exports=function(e){if(!s(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1158:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5877:e=>{e.exports=function(e){return null===e}},537:(e,t,n)=>{var r=n(3366),s=n(5125);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==r(e)}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},5505:(e,t,n)=>{var r=n(3366),s=n(6152),i=n(5125);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==r(e)}},7598:(e,t,n)=>{var r=n(5522),s=n(7826),i=n(4146),o=i&&i.isTypedArray,a=o?s(o):r;e.exports=a},249:(e,t,n)=>{var r=n(1634),s=n(6411),i=n(7878);e.exports=function(e){return i(e)?r(e):s(e)}},1570:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},981:e=>{e.exports=function(){return[]}},6330:e=>{e.exports=function(){return!1}},1178:(e,t,n)=>{const r=n(1570);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},3026:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5140:(e,t,n)=>{const r=n(5877),s=n(5505),i=n(537),o=n(4335),a=n(9259),c=n(2947),u=n(3756);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(r,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,n){return void 0===n||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],s=this.elementDetection[n][1];if(r(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},3853:(e,t,n)=>{const r=n(1570),s=n(1178);class i extends s{map(e,t){return this.elements.map((n=>e.bind(t)(n.value,n.key,n)))}filter(e,t){return new i(this.elements.filter((n=>e.bind(t)(n.value,n.key,n))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((n,r)=>{e.bind(t)(n.value,n.key,n,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3756:(e,t,n)=>{const r=n(6420),s=n(4152),i=n(9542),o=n(3710),a=n(3312),c=n(1641),u=n(8858),l=n(3860),p=n(5202),h=n(2320),m=n(1178),f=n(3853),d=n(3026);function _(e){if(e instanceof r)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(_));if("object"==typeof e){return new l(e)}return e}r.prototype.ObjectElement=l,r.prototype.RefElement=h,r.prototype.MemberElement=u,r.prototype.refract=_,m.prototype.refract=_,e.exports={Element:r,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:h,refract:_,ArraySlice:m,ObjectSlice:f,KeyValuePair:d}},5202:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},2320:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},7952:(e,t,n)=>{const r=n(5140),s=n(3756);t.lS=r,t.KeyValuePair=n(3026),t.O4=s.ArraySlice,t.rm=s.ObjectSlice,t.W_=s.Element,t.RP=s.StringElement,t.VL=s.NumberElement,t.hh=s.BooleanElement,t.zr=s.NullElement,t.ON=s.ArrayElement,t.Sb=s.ObjectElement,t.c6=s.MemberElement,t.tK=s.RefElement,t.EA=s.LinkElement,t.Qc=s.refract,n(2947),n(8910)},1641:(e,t,n)=>{const r=n(1570),s=n(6420),i=n(1178);class o extends s{constructor(e,t,n){super(e||[],t,n),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let n,r;void 0!==t?(n=0,r=this.refract(t)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=n;t<this.length;t+=1){const n=this.content[t];r="object"===this.primitive()?this.refract(e(r,n.value,n.key,n,this)):this.refract(e(r,n,t,this))}return r}forEach(e,t){this.content.forEach(((n,r)=>{e.bind(t)(n,this.refract(r))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const n=t||{},r=!!n.recursive,s=void 0===n.results?[]:n.results;return this.forEach(((t,n,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:r}),e(t,n,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},3312:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}}},6420:(e,t,n)=>{const r=n(8149),s=n(3026),i=n(1178);class o{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let n=new i;const r=(e,t)=>(e.push(t),e),o=(e,n)=>{n.element===t&&e.push(n);const i=n.findRecursive(t);return i&&i.reduce(r,e),n.content instanceof s&&(n.content.key&&o(e,n.content.key),n.content.value&&o(e,n.content.value)),e};return this.content&&(this.content.element&&o(n,this.content),Array.isArray(this.content)&&this.content.reduce(o,n)),e.isEmpty||(n=n.filter((t=>{let n=t.parents.map((e=>e.element));for(const t in e){const r=e[t],s=n.indexOf(r);if(-1===s)return!1;n=n.splice(0,s)}return!0}))),n}set(e){return this.content=e,this}equals(e){return r(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8858:(e,t,n)=>{const r=n(3026),s=n(6420);e.exports=class extends s{constructor(e,t,n,s){super(new r,n,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},4152:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e||null,t,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="number"}primitive(){return"number"}}},3860:(e,t,n)=>{const r=n(1570),s=n(9259),i=n(1641),o=n(8858),a=n(3853);e.exports=class extends i{constructor(e,t,n){super(e||[],t,n),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((n=>n.key.toValue()!==e||(t=n,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const n=e,r=this.getMember(n);return r?r.value=t:this.content.push(new o(n,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((n=>e.bind(t)(n.value,n.key,n)))}compactMap(e,t){const n=[];return this.forEach(((r,s,i)=>{const o=e.bind(t)(r,s,i);o&&n.push(o)})),n}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((n=>e.bind(t)(n.value,n.key,n)))}}},9542:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(e,t,n)=>{const r=n(2947);e.exports=class extends r{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(n.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(n.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),n=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==n.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let e=n.attributes.get("samples");if(n.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const s=new t(r);s.element=n.element,e.push(s)}))}));const s=e.shift();n.content=s?s.content:void 0,n.attributes.set("samples",e)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=n.element,n.attributes.set("default",e)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const e=n.attributes.get("meta");e&&(n.attributes.set("metadata",e),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,n)=>{if(e){const r=n.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},2947:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const n=this.serialiseContent(e.content);return void 0!==n&&(t.content=n),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const n=this.deserialiseContent(e.content);return void 0===n&&null!==t.content||(t.content=n),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,n)=>{e&&(t[n.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},6591:e=>{!function(){"use strict";var t,n,r,s,i,o="properties",a="deepProperties",c="propertyDescriptors",u="staticProperties",l="staticDeepProperties",p="staticPropertyDescriptors",h="configuration",m="deepConfiguration",f="deepProps",d="deepStatics",_="deepConf",g="initializers",y="methods",v="composers",b="compose";function w(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function E(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var x=E.bind(0,(function(e,t){if(t)for(var n=w(t),r=0;r<n.length;r+=1)Object.defineProperty(e,n[r],Object.getOwnPropertyDescriptor(t,n[r]));return e}));function S(e){return"function"==typeof e}function P(e){return e&&"object"==typeof e||S(e)}function O(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var j=E.bind(0,(function e(n,r){if(r===t)return n;if(Array.isArray(r))return(Array.isArray(n)?n:[]).concat(r);if(!O(r))return r;for(var s,i,o=w(r),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(r,s)).hasOwnProperty("value")?i.value!==t&&(n[s]=e(O(n[s])||Array.isArray(r[s])?n[s]:{},r[s])):Object.defineProperty(n,s,i);return n}));function A(){return(n=Array.prototype.concat.apply([],arguments).filter((function(e,t,n){return S(e)&&n.indexOf(e)===t}))).length?n:t}function I(e,t){function r(n,r){P(t[n])&&(P(e[n])||(e[n]={}),(r||x)(e[n],t[n]))}function s(r){(n=A(e[r],t[r]))&&(e[r]=n)}return t&&P(t=t[b]||t)&&(r(y),r(o),r(a,j),r(c),r(u),r(l,j),r(p),r(h),r(m,j),s(g),s(v)),e}function k(){return function(e){return n=function e(n){var r,s,i=e[b]||{},u={__proto__:i[y]},l=i[g],p=Array.prototype.slice.apply(arguments),h=i[a];if(h&&j(u,h),(h=i[o])&&x(u,h),(h=i[c])&&Object.defineProperties(u,h),!l||!l.length)return u;for(n===t&&(n={}),i=0;i<l.length;)S(r=l[i++])&&(u=(s=r.call(u,n,{instance:u,stamp:e,args:p}))===t?u:s);return u},(r=e[l])&&j(n,r),(r=e[u])&&x(n,r),(r=e[p])&&Object.defineProperties(n,r),r=S(n[b])?n[b]:k,x(n[b]=function(){return r.apply(this,arguments)},e),n}(Array.prototype.concat.apply([this],arguments).reduce(I,{}))}function N(e){return S(e)&&S(e[b])}var M={};function T(e,i){return function(){return(s={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((n=this)&&n[b]||r).call(n,s)}}M[y]=T(y,x),M[o]=M.props=T(o,x),M[g]=M.init=T(g,A),M[v]=T(v,A),M[a]=M[f]=T(a,j),M[u]=M.statics=T(u,x),M[l]=M[d]=T(l,j),M[h]=M.conf=T(h,x),M[m]=M[_]=T(m,j),M[c]=T(c,x),M[p]=T(p,x),r=M[b]=x((function(){for(var e,w,E=0,S=[],O=arguments,I=this;E<O.length;)P(e=O[E++])&&S.push(N(e)?e:((s={})[y]=(w=e)[y]||t,r=w.props,s[o]=P((n=w[o])||r)?x({},r,n):t,s[g]=A(w.init,w[g]),s[v]=A(w[v]),r=w[f],s[a]=P((n=w[a])||r)?j({},r,n):t,s[c]=w[c],r=w.statics,s[u]=P((n=w[u])||r)?x({},r,n):t,r=w[d],s[l]=P((n=w[l])||r)?j({},r,n):t,n=w[p],s[p]=P((r=w.name&&{name:{value:w.name}})||n)?x({},n,r):t,r=w.conf,s[h]=P((n=w[h])||r)?x({},r,n):t,r=w[_],s[m]=P((n=w[m])||r)?j({},r,n):t,s));if(e=k.apply(I||i,S),I&&S.unshift(I),Array.isArray(O=e[b][v]))for(E=0;E<O.length;)e=N(I=O[E++]({stamp:e,composables:S}))?I:e;return e}),M),M.create=function(){return this.apply(t,arguments)},(s={})[u]=M,i=k(s),r[b]=r.bind(),r.version="4.3.2","object"!=typeof t?e.exports=r:self.stampit=r}()},2396:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(n=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[n.MalformedUnicode,"malformed Unicode character escape sequence"],[n.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[n.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[n.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[n.EndOfString,"malformed escape sequence at end of string"]])},2770:(e,t,n)=>{"use strict";t.S6=void 0;const r=n(2396);function s(e,t,n){const s=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(s)||void 0!==n&&n!==e.length)throw new SyntaxError(r.errorMessages.get(t));return s}function i(e,t){const n=s(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=s(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(n,e)}return String.fromCharCode(n)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(e,t=!1){return e.replace(a,(function(e,n,a,c,u,l,p,h,m){if(void 0!==n)return"\\";if(void 0!==a)return function(e){const t=s(e,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(a);if(void 0!==c)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var t;const n=s(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(n)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(c);if(void 0!==u)return i(u,l);if(void 0!==p)return i(p);if("0"===h)return"\0";if(void 0!==h)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const n=parseInt(e,8);return String.fromCharCode(n)}(h,!t);if(void 0!==m)return f=m,o.get(f)||f;var f;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.S6=c},9794:(e,t,n)=>{var r=void 0!==r?r:{},s=function(){var t,s="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(r=Object.assign({},r,o),t=new Promise((t=>{var o,a={};for(o in r)r.hasOwnProperty(o)&&(a[o]=r[o]);var c,u,l,p,h=[],m="./this.program",f=function(e,t){throw t};l="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!p;var d,_,g,y,v,b="";c?(b=p?n(6287).dirname(b)+"/":"//",d=function(e,t){return y||(y=n(5530)),v||(v=n(6287)),e=v.normalize(e),y.readFileSync(e,t?null:"utf8")},g=function(e){var t=d(e,!0);return t.buffer||(t=new Uint8Array(t)),T(t.buffer),t},process.argv.length>1&&(m=process.argv[1].replace(/\\/g,"/")),h=process.argv.slice(2),e.exports=r,f=function(e){process.exit(e)},r.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(d=function(e){return read(e)}),g=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(T("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?h=scriptArgs:void 0!==arguments&&(h=arguments),"function"==typeof quit&&(f=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||p)&&(p?b=self.location.href:void 0!==s&&s.currentScript&&(b=s.currentScript.src),b=0!==b.indexOf("blob:")?b.substr(0,b.lastIndexOf("/")+1):"",d=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(g=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),_=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)}),r.print||console.log.bind(console);var w=r.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(r[o]=a[o]);a=null,r.arguments&&(h=r.arguments),r.thisProgram&&(m=r.thisProgram),r.quit&&(f=r.quit);var E,x=16,S=[];function P(e,t){if(!E){E=new WeakMap;for(var n=0;n<Z.length;n++){var r=Z.get(n);r&&E.set(r,n)}}if(E.has(e))return E.get(e);var s=function(){if(S.length)return S.pop();try{Z.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Z.length-1}();try{Z.set(s,e)}catch(n){if(!(n instanceof TypeError))throw n;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var n={i:"i32",j:"i64",f:"f32",d:"f64"},r={parameters:[],results:"v"==t[0]?[]:[n[t[0]]]},s=1;s<t.length;++s)r.parameters.push(n[t[s]]);return new WebAssembly.Function(r,e)}var i=[1,0,1,96],o=t.slice(0,1),a=t.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),s=0;s<a.length;++s)i.push(c[a[s]]);"v"==o?i.push(0):i=i.concat([1,c[o]]),i[1]=i.length-2;var u=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:e}}).exports.f}(e,t);Z.set(s,i)}return E.set(e,s),s}var O,j=r.dynamicLibraries||[];r.wasmBinary&&(O=r.wasmBinary);var A,I=r.noExitRuntime||!0;function k(e,t,n,r){switch("*"===(n=n||"i8").charAt(n.length-1)&&(n="i32"),n){case"i1":case"i8":R[e>>0]=t;break;case"i16":C[e>>1]=t;break;case"i32":q[e>>2]=t;break;case"i64":le=[t>>>0,(ue=t,+Math.abs(ue)>=1?ue>0?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],q[e>>2]=le[0],q[e+4>>2]=le[1];break;case"float":D[e>>2]=t;break;case"double":L[e>>3]=t;break;default:ae("invalid type for setValue: "+n)}}function N(e,t,n){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return R[e>>0];case"i16":return C[e>>1];case"i32":case"i64":return q[e>>2];case"float":return D[e>>2];case"double":return L[e>>3];default:ae("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ae("no native wasm support detected");var M=!1;function T(e,t){e||ae("Assertion failed: "+t)}var $,R,F,C,q,D,L,B="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function V(e,t,n){for(var r=t+n,s=t;e[s]&&!(s>=r);)++s;if(s-t>16&&e.subarray&&B)return B.decode(e.subarray(t,s));for(var i="";t<s;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function U(e,t){return e?V(F,e,t):""}function z(e,t,n,r){if(!(r>0))return 0;for(var s=n,i=n+r-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),a<=127){if(n>=i)break;t[n++]=a}else if(a<=2047){if(n+1>=i)break;t[n++]=192|a>>6,t[n++]=128|63&a}else if(a<=65535){if(n+2>=i)break;t[n++]=224|a>>12,t[n++]=128|a>>6&63,t[n++]=128|63&a}else{if(n+3>=i)break;t[n++]=240|a>>18,t[n++]=128|a>>12&63,t[n++]=128|a>>6&63,t[n++]=128|63&a}}return t[n]=0,n-s}function H(e,t,n){return z(e,F,t,n)}function G(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r>=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++n)),r<=127?++t:t+=r<=2047?2:r<=65535?3:4}return t}function W(e){var t=G(e)+1,n=Ue(t);return z(e,R,n,t),n}function J(e){$=e,r.HEAP8=R=new Int8Array(e),r.HEAP16=C=new Int16Array(e),r.HEAP32=q=new Int32Array(e),r.HEAPU8=F=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=new Uint32Array(e),r.HEAPF32=D=new Float32Array(e),r.HEAPF64=L=new Float64Array(e)}var K=r.INITIAL_MEMORY||33554432;(A=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:K/65536,maximum:32768}))&&($=A.buffer),K=$.byteLength,J($);var Z=new WebAssembly.Table({initial:17,element:"anyfunc"}),X=[],Y=[],Q=[],ee=[],te=!1,ne=0,re=null,se=null;function ie(e){ne++,r.monitorRunDependencies&&r.monitorRunDependencies(ne)}function oe(e){if(ne--,r.monitorRunDependencies&&r.monitorRunDependencies(ne),0==ne&&(null!==re&&(clearInterval(re),re=null),se)){var t=se;se=null,t()}}function ae(e){throw r.onAbort&&r.onAbort(e),w(e+=""),M=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}r.preloadedImages={},r.preloadedAudios={},r.preloadedWasm={};var ce,ue,le;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function he(e){return e.startsWith("file://")}function me(e){try{if(e==ce&&O)return new Uint8Array(O);if(g)return g(e);throw"both async and sync fetching of the wasm failed"}catch(e){ae(e)}}pe(ce="tree-sitter.wasm")||(ce=function(e){return r.locateFile?r.locateFile(e,b):b+e}(ce));var fe={},de={get:function(e,t){return fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),fe[t]}};function _e(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var n=t.func;"number"==typeof n?void 0===t.arg?Z.get(n)():Z.get(n)(t.arg):n(void 0===t.arg?null:t.arg)}else t(r)}}function ge(e){var t=0;function n(){for(var n=0,r=1;;){var s=e[t++];if(n+=(127&s)*r,r*=128,!(128&s))break}return n}if(e instanceof WebAssembly.Module){var r=WebAssembly.Module.customSections(e,"dylink");T(0!=r.length,"need dylink section"),e=new Int8Array(r[0])}else T(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),T(0===e[8],"need the dylink section to be first"),t=9,n(),T(6===e[t]),T(e[++t]==="d".charCodeAt(0)),T(e[++t]==="y".charCodeAt(0)),T(e[++t]==="l".charCodeAt(0)),T(e[++t]==="i".charCodeAt(0)),T(e[++t]==="n".charCodeAt(0)),T(e[++t]==="k".charCodeAt(0)),t++;var s={};s.memorySize=n(),s.memoryAlign=n(),s.tableSize=n(),s.tableAlign=n();var i=n();s.neededDynlibs=[];for(var o=0;o<i;++o){var a=n(),c=e.subarray(t,t+a);t+=a;var u=V(c,0);s.neededDynlibs.push(u)}return s}var ye=0;function ve(){return I||ye>0}function be(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function we(e,t){for(var n in e)if(e.hasOwnProperty(n)){qe.hasOwnProperty(n)||(qe[n]=e[n]);var s=be(n);r.hasOwnProperty(s)||(r[s]=e[n])}}var Ee={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xe=5250880;function Se(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function Pe(e,t){var n={};for(var r in e){var s=e[r];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),n[r]=s}return function(e){for(var t in e)if(!Se(t)){var n=!1,r=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],n=!0),fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(n||0==fe[t].value)&&("function"==typeof r?fe[t].value=P(r):"number"==typeof r?fe[t].value=r:w("unhandled export type for `"+t+"`: "+typeof r))}}(n),n}function Oe(e,t){var n,s;return t&&(n=qe["orig$"+e]),n||(n=qe[e]),n||(n=r[be(e)]),!n&&e.startsWith("invoke_")&&(s=e.split("_")[1],n=function(){var e=Be();try{return function(e,t,n){return e.includes("j")?function(e,t,n){var s=r["dynCall_"+e];return n&&n.length?s.apply(null,[t].concat(n)):s.call(null,t)}(e,t,n):Z.get(t).apply(null,n)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Ve(e),t!==t+0&&"longjmp"!==t)throw t;ze(1,0)}}),n}function je(e,t){var n=ge(e);function r(){var r=Math.pow(2,n.memoryAlign);r=Math.max(r,x);var s,i,o,a=(s=function(e){if(te)return De(e);var t=xe,n=t+e+15&-16;return xe=n,fe.__heap_base.value=n,t}(n.memorySize+r),(i=r)||(i=x),Math.ceil(s/i)*i),c=Z.length;Z.grow(n.tableSize);for(var u=a;u<a+n.memorySize;u++)R[u]=0;for(u=c;u<c+n.tableSize;u++)Z.set(u,null);var l=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return a;case"__table_base":return c}return t in qe?qe[t]:(t in e||(e[t]=function(){return n||(n=function(e){var t=Oe(e,!1);return t||(t=o[e]),t}(t)),n.apply(null,arguments)}),e[t]);var n}}),p={"GOT.mem":new Proxy({},de),"GOT.func":new Proxy({},de),env:l,wasi_snapshot_preview1:l};function h(e){for(var r=0;r<n.tableSize;r++){var s=Z.get(c+r);s&&E.set(s,c+r)}o=Pe(e.exports,a),t.allowUndefined||Ie();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(te?i():Y.push(i)),o}if(t.loadAsync){if(e instanceof WebAssembly.Module){var m=new WebAssembly.Instance(e,p);return Promise.resolve(h(m))}return WebAssembly.instantiate(e,p).then((function(e){return h(e.instance)}))}var f=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return h(m=new WebAssembly.Instance(f,p))}return t.loadAsync?n.neededDynlibs.reduce((function(e,n){return e.then((function(){return Ae(n,t)}))}),Promise.resolve()).then((function(){return r()})):(n.neededDynlibs.forEach((function(e){Ae(e,t)})),r())}function Ae(e,t){"__main__"!=e||Ee.loadedLibNames[e]||(Ee.loadedLibs[-1]={refcount:1/0,name:"__main__",module:r.asm,global:!0},Ee.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var n,s=Ee.loadedLibNames[e];if(s)return n=Ee.loadedLibs[s],t.global&&!n.global&&(n.global=!0,"loading"!==n.module&&we(n.module)),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,t.loadAsync?Promise.resolve(s):s;function i(e){if(t.fs){var n=t.fs.readFile(e,{encoding:"binary"});return n instanceof Uint8Array||(n=new Uint8Array(n)),t.loadAsync?Promise.resolve(n):n}return t.loadAsync?(r=e,fetch(r,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+r+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):g(e);var r}function o(){if(void 0!==r.preloadedWasm&&void 0!==r.preloadedWasm[e]){var n=r.preloadedWasm[e];return t.loadAsync?Promise.resolve(n):n}return t.loadAsync?i(e).then((function(e){return je(e,t)})):je(i(e),t)}function a(e){n.global&&we(e),n.module=e}return s=Ee.nextHandle++,n={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},Ee.loadedLibNames[e]=s,Ee.loadedLibs[s]=n,t.loadAsync?o().then((function(e){return a(e),s})):(a(o()),s)}function Ie(){for(var e in fe)if(0==fe[e].value){var t=Oe(e,!0);"function"==typeof t?fe[e].value=P(t,t.sig):"number"==typeof t?fe[e].value=t:T(!1,"bad export type for `"+e+"`: "+typeof t)}}r.___heap_base=xe;var ke,Ne=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Me(){ae()}r._abort=Me,Me.sig="v",ke=c?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Te(e,t){var n;if(0===e)n=Date.now();else{if(1!==e&&4!==e)return 28,q[Le()>>2]=28,-1;n=ke()}return q[t>>2]=n/1e3|0,q[t+4>>2]=n%1e3*1e3*1e3|0,0}function $e(e){try{return A.grow(e-$.byteLength+65535>>>16),J(A.buffer),1}catch(e){}}function Re(e){Je(e)}function Fe(e){}Te.sig="iii",Re.sig="vi",Fe.sig="vi";var Ce,qe={__heap_base:xe,__indirect_function_table:Z,__memory_base:1024,__stack_pointer:Ne,__table_base:1,abort:Me,clock_gettime:Te,emscripten_memcpy_big:function(e,t,n){F.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=F.length;if((e>>>=0)>2147483648)return!1;for(var r=1;r<=4;r*=2){var s=n*(1+.2/r);if(s=Math.min(s,e+100663296),$e(Math.min(2147483648,((t=Math.max(e,s))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Re,memory:A,setTempRet0:Fe,tree_sitter_log_callback:function(e,t){if(ut){const n=U(t);ut(n,0!==e)}},tree_sitter_parse_callback:function(e,t,n,r,s){var i=ct(t,{row:n,column:r});"string"==typeof i?(k(s,i.length,"i32"),function(e,t,n){if(void 0===n&&(n=2147483647),n<2)return 0;for(var r=(n-=2)<2*e.length?n/2:e.length,s=0;s<r;++s){var i=e.charCodeAt(s);C[t>>1]=i,t+=2}C[t>>1]=0}(i,e,10240)):k(s,0,"i32")}},De=(function(){var e={env:qe,wasi_snapshot_preview1:qe,"GOT.mem":new Proxy(qe,de),"GOT.func":new Proxy(qe,de)};function t(e,t){var n=e.exports;n=Pe(n,1024),r.asm=n;var s,i=ge(t);i.neededDynlibs&&(j=i.neededDynlibs.concat(j)),we(n),s=r.asm.__wasm_call_ctors,Y.unshift(s),oe()}function n(e){t(e.instance,e.module)}function s(t){return function(){if(!O&&(l||p)){if("function"==typeof fetch&&!he(ce))return fetch(ce,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ce+"'";return e.arrayBuffer()})).catch((function(){return me(ce)}));if(_)return new Promise((function(e,t){_(ce,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return me(ce)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){w("failed to asynchronously prepare wasm: "+e),ae(e)}))}if(ie(),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(e){return w("Module.instantiateWasm callback failed with error: "+e),!1}O||"function"!=typeof WebAssembly.instantiateStreaming||pe(ce)||he(ce)||"function"!=typeof fetch?s(n):fetch(ce,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return w("wasm streaming compile failed: "+e),w("falling back to ArrayBuffer instantiation"),s(n)}))}))}(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r._malloc=function(){return(De=r._malloc=r.asm.malloc).apply(null,arguments)}),Le=(r._calloc=function(){return(r._calloc=r.asm.calloc).apply(null,arguments)},r._realloc=function(){return(r._realloc=r.asm.realloc).apply(null,arguments)},r._free=function(){return(r._free=r.asm.free).apply(null,arguments)},r._ts_language_symbol_count=function(){return(r._ts_language_symbol_count=r.asm.ts_language_symbol_count).apply(null,arguments)},r._ts_language_version=function(){return(r._ts_language_version=r.asm.ts_language_version).apply(null,arguments)},r._ts_language_field_count=function(){return(r._ts_language_field_count=r.asm.ts_language_field_count).apply(null,arguments)},r._ts_language_symbol_name=function(){return(r._ts_language_symbol_name=r.asm.ts_language_symbol_name).apply(null,arguments)},r._ts_language_symbol_for_name=function(){return(r._ts_language_symbol_for_name=r.asm.ts_language_symbol_for_name).apply(null,arguments)},r._ts_language_symbol_type=function(){return(r._ts_language_symbol_type=r.asm.ts_language_symbol_type).apply(null,arguments)},r._ts_language_field_name_for_id=function(){return(r._ts_language_field_name_for_id=r.asm.ts_language_field_name_for_id).apply(null,arguments)},r._memcpy=function(){return(r._memcpy=r.asm.memcpy).apply(null,arguments)},r._ts_parser_delete=function(){return(r._ts_parser_delete=r.asm.ts_parser_delete).apply(null,arguments)},r._ts_parser_reset=function(){return(r._ts_parser_reset=r.asm.ts_parser_reset).apply(null,arguments)},r._ts_parser_set_language=function(){return(r._ts_parser_set_language=r.asm.ts_parser_set_language).apply(null,arguments)},r._ts_parser_timeout_micros=function(){return(r._ts_parser_timeout_micros=r.asm.ts_parser_timeout_micros).apply(null,arguments)},r._ts_parser_set_timeout_micros=function(){return(r._ts_parser_set_timeout_micros=r.asm.ts_parser_set_timeout_micros).apply(null,arguments)},r._memmove=function(){return(r._memmove=r.asm.memmove).apply(null,arguments)},r._memcmp=function(){return(r._memcmp=r.asm.memcmp).apply(null,arguments)},r._ts_query_new=function(){return(r._ts_query_new=r.asm.ts_query_new).apply(null,arguments)},r._ts_query_delete=function(){return(r._ts_query_delete=r.asm.ts_query_delete).apply(null,arguments)},r._iswspace=function(){return(r._iswspace=r.asm.iswspace).apply(null,arguments)},r._iswalnum=function(){return(r._iswalnum=r.asm.iswalnum).apply(null,arguments)},r._ts_query_pattern_count=function(){return(r._ts_query_pattern_count=r.asm.ts_query_pattern_count).apply(null,arguments)},r._ts_query_capture_count=function(){return(r._ts_query_capture_count=r.asm.ts_query_capture_count).apply(null,arguments)},r._ts_query_string_count=function(){return(r._ts_query_string_count=r.asm.ts_query_string_count).apply(null,arguments)},r._ts_query_capture_name_for_id=function(){return(r._ts_query_capture_name_for_id=r.asm.ts_query_capture_name_for_id).apply(null,arguments)},r._ts_query_string_value_for_id=function(){return(r._ts_query_string_value_for_id=r.asm.ts_query_string_value_for_id).apply(null,arguments)},r._ts_query_predicates_for_pattern=function(){return(r._ts_query_predicates_for_pattern=r.asm.ts_query_predicates_for_pattern).apply(null,arguments)},r._ts_tree_copy=function(){return(r._ts_tree_copy=r.asm.ts_tree_copy).apply(null,arguments)},r._ts_tree_delete=function(){return(r._ts_tree_delete=r.asm.ts_tree_delete).apply(null,arguments)},r._ts_init=function(){return(r._ts_init=r.asm.ts_init).apply(null,arguments)},r._ts_parser_new_wasm=function(){return(r._ts_parser_new_wasm=r.asm.ts_parser_new_wasm).apply(null,arguments)},r._ts_parser_enable_logger_wasm=function(){return(r._ts_parser_enable_logger_wasm=r.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},r._ts_parser_parse_wasm=function(){return(r._ts_parser_parse_wasm=r.asm.ts_parser_parse_wasm).apply(null,arguments)},r._ts_language_type_is_named_wasm=function(){return(r._ts_language_type_is_named_wasm=r.asm.ts_language_type_is_named_wasm).apply(null,arguments)},r._ts_language_type_is_visible_wasm=function(){return(r._ts_language_type_is_visible_wasm=r.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},r._ts_tree_root_node_wasm=function(){return(r._ts_tree_root_node_wasm=r.asm.ts_tree_root_node_wasm).apply(null,arguments)},r._ts_tree_edit_wasm=function(){return(r._ts_tree_edit_wasm=r.asm.ts_tree_edit_wasm).apply(null,arguments)},r._ts_tree_get_changed_ranges_wasm=function(){return(r._ts_tree_get_changed_ranges_wasm=r.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},r._ts_tree_cursor_new_wasm=function(){return(r._ts_tree_cursor_new_wasm=r.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},r._ts_tree_cursor_delete_wasm=function(){return(r._ts_tree_cursor_delete_wasm=r.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},r._ts_tree_cursor_reset_wasm=function(){return(r._ts_tree_cursor_reset_wasm=r.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_first_child_wasm=function(){return(r._ts_tree_cursor_goto_first_child_wasm=r.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_next_sibling_wasm=function(){return(r._ts_tree_cursor_goto_next_sibling_wasm=r.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_parent_wasm=function(){return(r._ts_tree_cursor_goto_parent_wasm=r.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_type_id_wasm=function(){return(r._ts_tree_cursor_current_node_type_id_wasm=r.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_named_wasm=function(){return(r._ts_tree_cursor_current_node_is_named_wasm=r.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_missing_wasm=function(){return(r._ts_tree_cursor_current_node_is_missing_wasm=r.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_id_wasm=function(){return(r._ts_tree_cursor_current_node_id_wasm=r.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},r._ts_tree_cursor_start_position_wasm=function(){return(r._ts_tree_cursor_start_position_wasm=r.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},r._ts_tree_cursor_end_position_wasm=function(){return(r._ts_tree_cursor_end_position_wasm=r.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},r._ts_tree_cursor_start_index_wasm=function(){return(r._ts_tree_cursor_start_index_wasm=r.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},r._ts_tree_cursor_end_index_wasm=function(){return(r._ts_tree_cursor_end_index_wasm=r.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},r._ts_tree_cursor_current_field_id_wasm=function(){return(r._ts_tree_cursor_current_field_id_wasm=r.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_wasm=function(){return(r._ts_tree_cursor_current_node_wasm=r.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},r._ts_node_symbol_wasm=function(){return(r._ts_node_symbol_wasm=r.asm.ts_node_symbol_wasm).apply(null,arguments)},r._ts_node_child_count_wasm=function(){return(r._ts_node_child_count_wasm=r.asm.ts_node_child_count_wasm).apply(null,arguments)},r._ts_node_named_child_count_wasm=function(){return(r._ts_node_named_child_count_wasm=r.asm.ts_node_named_child_count_wasm).apply(null,arguments)},r._ts_node_child_wasm=function(){return(r._ts_node_child_wasm=r.asm.ts_node_child_wasm).apply(null,arguments)},r._ts_node_named_child_wasm=function(){return(r._ts_node_named_child_wasm=r.asm.ts_node_named_child_wasm).apply(null,arguments)},r._ts_node_child_by_field_id_wasm=function(){return(r._ts_node_child_by_field_id_wasm=r.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},r._ts_node_next_sibling_wasm=function(){return(r._ts_node_next_sibling_wasm=r.asm.ts_node_next_sibling_wasm).apply(null,arguments)},r._ts_node_prev_sibling_wasm=function(){return(r._ts_node_prev_sibling_wasm=r.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},r._ts_node_next_named_sibling_wasm=function(){return(r._ts_node_next_named_sibling_wasm=r.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},r._ts_node_prev_named_sibling_wasm=function(){return(r._ts_node_prev_named_sibling_wasm=r.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},r._ts_node_parent_wasm=function(){return(r._ts_node_parent_wasm=r.asm.ts_node_parent_wasm).apply(null,arguments)},r._ts_node_descendant_for_index_wasm=function(){return(r._ts_node_descendant_for_index_wasm=r.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_index_wasm=function(){return(r._ts_node_named_descendant_for_index_wasm=r.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_descendant_for_position_wasm=function(){return(r._ts_node_descendant_for_position_wasm=r.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_position_wasm=function(){return(r._ts_node_named_descendant_for_position_wasm=r.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_start_point_wasm=function(){return(r._ts_node_start_point_wasm=r.asm.ts_node_start_point_wasm).apply(null,arguments)},r._ts_node_end_point_wasm=function(){return(r._ts_node_end_point_wasm=r.asm.ts_node_end_point_wasm).apply(null,arguments)},r._ts_node_start_index_wasm=function(){return(r._ts_node_start_index_wasm=r.asm.ts_node_start_index_wasm).apply(null,arguments)},r._ts_node_end_index_wasm=function(){return(r._ts_node_end_index_wasm=r.asm.ts_node_end_index_wasm).apply(null,arguments)},r._ts_node_to_string_wasm=function(){return(r._ts_node_to_string_wasm=r.asm.ts_node_to_string_wasm).apply(null,arguments)},r._ts_node_children_wasm=function(){return(r._ts_node_children_wasm=r.asm.ts_node_children_wasm).apply(null,arguments)},r._ts_node_named_children_wasm=function(){return(r._ts_node_named_children_wasm=r.asm.ts_node_named_children_wasm).apply(null,arguments)},r._ts_node_descendants_of_type_wasm=function(){return(r._ts_node_descendants_of_type_wasm=r.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},r._ts_node_is_named_wasm=function(){return(r._ts_node_is_named_wasm=r.asm.ts_node_is_named_wasm).apply(null,arguments)},r._ts_node_has_changes_wasm=function(){return(r._ts_node_has_changes_wasm=r.asm.ts_node_has_changes_wasm).apply(null,arguments)},r._ts_node_has_error_wasm=function(){return(r._ts_node_has_error_wasm=r.asm.ts_node_has_error_wasm).apply(null,arguments)},r._ts_node_is_missing_wasm=function(){return(r._ts_node_is_missing_wasm=r.asm.ts_node_is_missing_wasm).apply(null,arguments)},r._ts_query_matches_wasm=function(){return(r._ts_query_matches_wasm=r.asm.ts_query_matches_wasm).apply(null,arguments)},r._ts_query_captures_wasm=function(){return(r._ts_query_captures_wasm=r.asm.ts_query_captures_wasm).apply(null,arguments)},r._iswdigit=function(){return(r._iswdigit=r.asm.iswdigit).apply(null,arguments)},r._iswalpha=function(){return(r._iswalpha=r.asm.iswalpha).apply(null,arguments)},r._iswlower=function(){return(r._iswlower=r.asm.iswlower).apply(null,arguments)},r._towupper=function(){return(r._towupper=r.asm.towupper).apply(null,arguments)},r.___errno_location=function(){return(Le=r.___errno_location=r.asm.__errno_location).apply(null,arguments)}),Be=(r._memchr=function(){return(r._memchr=r.asm.memchr).apply(null,arguments)},r._strlen=function(){return(r._strlen=r.asm.strlen).apply(null,arguments)},r.stackSave=function(){return(Be=r.stackSave=r.asm.stackSave).apply(null,arguments)}),Ve=r.stackRestore=function(){return(Ve=r.stackRestore=r.asm.stackRestore).apply(null,arguments)},Ue=r.stackAlloc=function(){return(Ue=r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},ze=r._setThrew=function(){return(ze=r._setThrew=r.asm.setThrew).apply(null,arguments)};function He(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=r.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},r.__Znwm=function(){return(r.__Znwm=r.asm._Znwm).apply(null,arguments)},r.__ZdlPv=function(){return(r.__ZdlPv=r.asm._ZdlPv).apply(null,arguments)},r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=r.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},r._orig$ts_parser_timeout_micros=function(){return(r._orig$ts_parser_timeout_micros=r.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},r._orig$ts_parser_set_timeout_micros=function(){return(r._orig$ts_parser_set_timeout_micros=r.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},r.allocate=function(e,t){var n;return n=1==t?Ue(e.length):De(e.length),e.subarray||e.slice?F.set(e,n):F.set(new Uint8Array(e),n),n},se=function e(){Ce||We(),Ce||(se=e)};var Ge=!1;function We(e){function t(){Ce||(Ce=!0,r.calledRun=!0,M||(te=!0,_e(Y),_e(Q),r.onRuntimeInitialized&&r.onRuntimeInitialized(),Ke&&function(e){var t=r._main;if(t){var n=(e=e||[]).length+1,s=Ue(4*(n+1));q[s>>2]=W(m);for(var i=1;i<n;i++)q[(s>>2)+i]=W(e[i-1]);q[(s>>2)+n]=0;try{Je(t(n,s),!0)}catch(e){if(e instanceof He)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),w("exception thrown: "+o),f(1,e)}}}(e),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)e=r.postRun.shift(),ee.unshift(e);var e;_e(ee)}()))}e=e||h,ne>0||!Ge&&(function(){if(j.length){if(!g)return ie(),void j.reduce((function(e,t){return e.then((function(){return Ae(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),Ie()}));j.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),Ie()}else Ie()}(),Ge=!0,ne>0)||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)e=r.preRun.shift(),X.unshift(e);var e;_e(X)}(),ne>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),t()}),1)):t()))}function Je(e,t){t&&ve()&&0===e||(ve()||(r.onExit&&r.onExit(e),M=!0),f(e,new He(e)))}if(r.run=We,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();var Ke=!0;r.noInitialRun&&(Ke=!1),We();const Ze=r,Xe={},Ye=4,Qe=5*Ye,et=2*Ye,tt=2*Ye+2*et,nt={row:0,column:0},rt=/[\w-.]*/g,st=/^_?tree_sitter_\w+/;var it,ot,at,ct,ut;class lt{static init(){at=Ze._ts_init(),it=N(at,"i32"),ot=N(at+Ye,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=N(at,"i32"),this[1]=N(at+Ye,"i32")}delete(){Ze._ts_parser_delete(this[0]),Ze._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==ft)throw new Error("Argument must be a Language");{t=e[0];const n=Ze._ts_language_version(t);if(n<ot||it<n)throw new Error(`Incompatible language version ${n}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,Ze._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,n){if("string"==typeof e)ct=(t,n,r)=>e.slice(t,r);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");ct=e}this.logCallback?(ut=this.logCallback,Ze._ts_parser_enable_logger_wasm(this[0],1)):(ut=null,Ze._ts_parser_enable_logger_wasm(this[0],0));let r=0,s=0;if(n&&n.includedRanges){r=n.includedRanges.length;let e=s=Ze._calloc(r,tt);for(let t=0;t<r;t++)Ot(e,n.includedRanges[t]),e+=tt}const i=Ze._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,r);if(!i)throw ct=null,ut=null,new Error("Parsing failed");const o=new pt(Xe,i,this.language,ct);return ct=null,ut=null,o}reset(){Ze._ts_parser_reset(this[0])}setTimeoutMicros(e){Ze._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ze._ts_parser_timeout_micros(this[0])}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class pt{constructor(e,t,n,r){yt(e),this[0]=t,this.language=n,this.textCallback=r}copy(){const e=Ze._ts_tree_copy(this[0]);return new pt(Xe,e,this.language,this.textCallback)}delete(){Ze._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=at;St(t,e.startPosition),St(t+=et,e.oldEndPosition),St(t+=et,e.newEndPosition),k(t+=et,e.startIndex,"i32"),k(t+=Ye,e.oldEndIndex,"i32"),k(t+=Ye,e.newEndIndex,"i32"),t+=Ye}(e),Ze._ts_tree_edit_wasm(this[0])}get rootNode(){return Ze._ts_tree_root_node_wasm(this[0]),wt(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");Ze._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=N(at,"i32"),n=N(at+Ye,"i32"),r=new Array(t);if(t>0){let e=n;for(let n=0;n<t;n++)r[n]=jt(e),e+=tt;Ze._free(n)}return r}}class ht{constructor(e,t){yt(e),this.tree=t}get typeId(){return bt(this),Ze._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return bt(this),Ze._ts_node_end_point_wasm(this.tree[0]),Pt(at)}get endIndex(){return bt(this),Ze._ts_node_end_index_wasm(this.tree[0])}get text(){return _t(this.tree,this.startIndex,this.endIndex)}isNamed(){return bt(this),1===Ze._ts_node_is_named_wasm(this.tree[0])}hasError(){return bt(this),1===Ze._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return bt(this),1===Ze._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return bt(this),1===Ze._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return bt(this),Ze._ts_node_child_wasm(this.tree[0],e),wt(this.tree)}namedChild(e){return bt(this),Ze._ts_node_named_child_wasm(this.tree[0],e),wt(this.tree)}childForFieldId(e){return bt(this),Ze._ts_node_child_by_field_id_wasm(this.tree[0],e),wt(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return bt(this),Ze._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return bt(this),Ze._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){bt(this),Ze._ts_node_children_wasm(this.tree[0]);const e=N(at,"i32"),t=N(at+Ye,"i32");if(this._children=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._children[t]=wt(this.tree,n),n+=Qe;Ze._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){bt(this),Ze._ts_node_named_children_wasm(this.tree[0]);const e=N(at,"i32"),t=N(at+Ye,"i32");if(this._namedChildren=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._namedChildren[t]=wt(this.tree,n),n+=Qe;Ze._free(t)}}return this._namedChildren}descendantsOfType(e,t,n){Array.isArray(e)||(e=[e]),t||(t=nt),n||(n=nt);const r=[],s=this.tree.language.types;for(let t=0,n=s.length;t<n;t++)e.includes(s[t])&&r.push(t);const i=Ze._malloc(Ye*r.length);for(let e=0,t=r.length;e<t;e++)k(i+e*Ye,r[e],"i32");bt(this),Ze._ts_node_descendants_of_type_wasm(this.tree[0],i,r.length,t.row,t.column,n.row,n.column);const o=N(at,"i32"),a=N(at+Ye,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=wt(this.tree,e),e+=Qe}return Ze._free(a),Ze._free(i),c}get nextSibling(){return bt(this),Ze._ts_node_next_sibling_wasm(this.tree[0]),wt(this.tree)}get previousSibling(){return bt(this),Ze._ts_node_prev_sibling_wasm(this.tree[0]),wt(this.tree)}get nextNamedSibling(){return bt(this),Ze._ts_node_next_named_sibling_wasm(this.tree[0]),wt(this.tree)}get previousNamedSibling(){return bt(this),Ze._ts_node_prev_named_sibling_wasm(this.tree[0]),wt(this.tree)}get parent(){return bt(this),Ze._ts_node_parent_wasm(this.tree[0]),wt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let n=at+Qe;return k(n,e,"i32"),k(n+Ye,t,"i32"),Ze._ts_node_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let n=at+Qe;return k(n,e,"i32"),k(n+Ye,t,"i32"),Ze._ts_node_named_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}descendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let n=at+Qe;return St(n,e),St(n+et,t),Ze._ts_node_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}namedDescendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let n=at+Qe;return St(n,e),St(n+et,t),Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}walk(){return bt(this),Ze._ts_tree_cursor_new_wasm(this.tree[0]),new mt(Xe,this.tree)}toString(){bt(this);const e=Ze._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var n=F[e++>>0];if(!n)return t;t+=String.fromCharCode(n)}}(e);return Ze._free(e),t}}class mt{constructor(e,t){yt(e),this.tree=t,xt(this)}delete(){Et(this),Ze._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){bt(e),Et(this,at+Qe),Ze._ts_tree_cursor_reset_wasm(this.tree[0]),xt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Et(this),Ze._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Et(this),Ze._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Et(this),1===Ze._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Et(this),1===Ze._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Et(this);const e=Ze._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ze._ts_tree_cursor_end_index_wasm(this.tree[0]);return _t(this.tree,e,t)}get startPosition(){return Et(this),Ze._ts_tree_cursor_start_position_wasm(this.tree[0]),Pt(at)}get endPosition(){return Et(this),Ze._ts_tree_cursor_end_position_wasm(this.tree[0]),Pt(at)}get startIndex(){return Et(this),Ze._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Et(this),Ze._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Et(this),Ze._ts_tree_cursor_current_node_wasm(this.tree[0]),wt(this.tree)}currentFieldId(){return Et(this),Ze._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Et(this);const e=Ze._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xt(this),1===e}gotoNextSibling(){Et(this);const e=Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xt(this),1===e}gotoParent(){Et(this);const e=Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xt(this),1===e}}class ft{constructor(e,t){yt(e),this[0]=t,this.types=new Array(Ze._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ze._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=U(Ze._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ze._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ze._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?U(t):null}}get version(){return Ze._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const n=G(e),r=Ze._malloc(n+1);H(e,r,n+1);const s=Ze._ts_language_symbol_for_name(this[0],r,n,t);return Ze._free(r),s||null}get nodeTypeCount(){return Ze._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ze._ts_language_symbol_name(this[0],e);return t?U(t):null}nodeTypeIsNamed(e){return!!Ze._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ze._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=G(e),n=Ze._malloc(t+1);H(e,n,t+1);const r=Ze._ts_query_new(this[0],n,t,at,at+Ye);if(!r){const t=N(at+Ye,"i32"),r=U(n,N(at,"i32")).length,s=e.substr(r,100).split("\n")[0];let i,o=s.match(rt)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${r}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${r}: '${s}'...`),o=""}throw i.index=r,i.length=o.length,Ze._free(n),i}const s=Ze._ts_query_string_count(r),i=Ze._ts_query_capture_count(r),o=Ze._ts_query_pattern_count(r),a=new Array(i),c=new Array(s);for(let e=0;e<i;e++){const t=Ze._ts_query_capture_name_for_id(r,e,at),n=N(at,"i32");a[e]=U(t,n)}for(let e=0;e<s;e++){const t=Ze._ts_query_string_value_for_id(r,e,at),n=N(at,"i32");c[e]=U(t,n)}const u=new Array(o),l=new Array(o),p=new Array(o),h=new Array(o),m=new Array(o);for(let e=0;e<o;e++){const t=Ze._ts_query_predicates_for_pattern(r,e,at),n=N(at,"i32");h[e]=[],m[e]=[];const s=[];let i=t;for(let t=0;t<n;t++){const t=N(i,"i32"),n=N(i+=Ye,"i32");if(i+=Ye,1===t)s.push({type:"capture",name:a[n]});else if(2===t)s.push({type:"string",value:c[n]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let n=!0;switch(t){case"not-eq?":n=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const t=s[1].name,r=s[2].name;m[e].push((function(e){let s,i;for(const n of e)n.name===t&&(s=n.node),n.name===r&&(i=n.node);return void 0===s||void 0===i||s.text===i.text===n}))}else{const t=s[1].name,r=s[2].value;m[e].push((function(e){for(const s of e)if(s.name===t)return s.node.text===r===n;return!0}))}break;case"not-match?":n=!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 r=s[1].name,i=new RegExp(s[2].value);m[e].push((function(e){for(const t of e)if(t.name===r)return i.test(t.node.text)===n;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?l:p;o[e]||(o[e]={}),o[e][s[1].value]=s[2]?s[2].value:null;break;default:h[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return Ze._free(n),new dt(Xe,r,a,m,h,Object.freeze(u),Object.freeze(l),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=n(5530);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const n=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${n}`)}}))))}const r="function"==typeof loadSideModule?loadSideModule:je;return t.then((e=>r(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),n=t.find((e=>st.test(e)&&!e.includes("external_scanner_")));n||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[n]();return new ft(Xe,r)}))}}class dt{constructor(e,t,n,r,s,i,o,a){yt(e),this[0]=t,this.captureNames=n,this.textPredicates=r,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ze._ts_query_delete(this[0]),this[0]=0}matches(e,t,n,r){t||(t=nt),n||(n=nt),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");bt(e),Ze._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column,s);const i=N(at,"i32"),o=N(at+Ye,"i32"),a=N(at+2*Ye,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let t=0;t<i;t++){const n=N(l,"i32"),r=N(l+=Ye,"i32");l+=Ye;const s=new Array(r);if(l=gt(this,e.tree,l,s),this.textPredicates[n].every((e=>e(s)))){c[u++]={pattern:n,captures:s};const e=this.setProperties[n];e&&(c[t].setProperties=e);const r=this.assertedProperties[n];r&&(c[t].assertedProperties=r);const i=this.refutedProperties[n];i&&(c[t].refutedProperties=i)}}return c.length=u,Ze._free(o),c}captures(e,t,n,r){t||(t=nt),n||(n=nt),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");bt(e),Ze._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column,s);const i=N(at,"i32"),o=N(at+Ye,"i32"),a=N(at+2*Ye,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;t<i;t++){const t=N(l,"i32"),n=N(l+=Ye,"i32"),r=N(l+=Ye,"i32");if(l+=Ye,u.length=n,l=gt(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[r],n=this.setProperties[t];n&&(e.setProperties=n);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return Ze._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function _t(e,t,n){const r=n-t;let s=e.textCallback(t,null,n);for(t+=s.length;t<n;){const r=e.textCallback(t,null,n);if(!(r&&r.length>0))break;t+=r.length,s+=r}return t>n&&(s=s.slice(0,r)),s}function gt(e,t,n,r){for(let s=0,i=r.length;s<i;s++){const i=N(n,"i32"),o=wt(t,n+=Ye);n+=Qe,r[s]={name:e.captureNames[i],node:o}}return n}function yt(e){if(e!==Xe)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function bt(e){let t=at;k(t,e.id,"i32"),k(t+=Ye,e.startIndex,"i32"),k(t+=Ye,e.startPosition.row,"i32"),k(t+=Ye,e.startPosition.column,"i32"),k(t+=Ye,e[0],"i32")}function wt(e,t=at){const n=N(t,"i32");if(0===n)return null;const r=N(t+=Ye,"i32"),s=N(t+=Ye,"i32"),i=N(t+=Ye,"i32"),o=N(t+=Ye,"i32"),a=new ht(Xe,e);return a.id=n,a.startIndex=r,a.startPosition={row:s,column:i},a[0]=o,a}function Et(e,t=at){k(t+0*Ye,e[0],"i32"),k(t+1*Ye,e[1],"i32"),k(t+2*Ye,e[2],"i32")}function xt(e){e[0]=N(at+0*Ye,"i32"),e[1]=N(at+1*Ye,"i32"),e[2]=N(at+2*Ye,"i32")}function St(e,t){k(e,t.row,"i32"),k(e+Ye,t.column,"i32")}function Pt(e){return{row:N(e,"i32"),column:N(e+Ye,"i32")}}function Ot(e,t){St(e,t.startPosition),St(e+=et,t.endPosition),k(e+=et,t.startIndex,"i32"),k(e+=Ye,t.endIndex,"i32"),e+=Ye}function jt(e){const t={};return t.startPosition=Pt(e),e+=et,t.endPosition=Pt(e),e+=et,t.startIndex=N(e,"i32"),e+=Ye,t.endIndex=N(e,"i32"),t}for(const e of Object.getOwnPropertyNames(lt.prototype))Object.defineProperty(i.prototype,e,{value:lt.prototype[e],enumerable:!1,writable:!1});i.Language=ft,r.onRuntimeInitialized=()=>{lt.init(),t()}})))}}return i}();e.exports=s},5530:()=>{},6287:()=>{},1427:(e,t,n)=>{e.exports=n(1125)},1681:(e,t,n)=>{"use strict";var r=n(7497);e.exports=r},3258:(e,t,n)=>{"use strict";n(2777),n(733),n(1835),n(6449),n(9383);var r=n(8422);e.exports=r.AggregateError},1125:(e,t,n)=>{"use strict";e.exports=n(3985)},3985:(e,t,n)=>{"use strict";n(3584);var r=n(1681);e.exports=r},5375:(e,t,n)=>{"use strict";var r=n(8563),s=n(5787),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not a function")}},692:(e,t,n)=>{"use strict";var r=n(8563),s=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},7171:e=>{"use strict";e.exports=function(){}},457:(e,t,n)=>{"use strict";var r=n(8257),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not an object")}},3346:(e,t,n)=>{"use strict";var r=n(4312),s=n(1940),i=n(8960),o=function(e){return function(t,n,o){var a,c=r(t),u=i(c),l=s(o,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},88:(e,t,n)=>{"use strict";var r=n(8814),s=r({}.toString),i=r("".slice);e.exports=function(e){return i(s(e),8,-1)}},2327:(e,t,n)=>{"use strict";var r=n(6694),s=n(8563),i=n(88),o=n(379)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?n:c?i(t):"Object"===(r=i(t))&&s(t.callee)?"Arguments":r}},1318:(e,t,n)=>{"use strict";var r=n(3941),s=n(5956),i=n(3335),o=n(4376);e.exports=function(e,t,n){for(var a=s(t),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];r(e,p)||n&&r(n,p)||c(e,p,u(t,p))}}},8536:(e,t,n)=>{"use strict";var r=n(2998);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},9497:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},1370:(e,t,n)=>{"use strict";var r=n(1815),s=n(4376),i=n(7971);e.exports=r?function(e,t,n){return s.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},7971:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4500:(e,t,n)=>{"use strict";var r=n(1370);e.exports=function(e,t,n,s){return s&&s.enumerable?e[t]=n:r(e,t,n),e}},8194:(e,t,n)=>{"use strict";var r=n(8426),s=Object.defineProperty;e.exports=function(e,t){try{s(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},1815:(e,t,n)=>{"use strict";var r=n(2998);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5361:e=>{"use strict";var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},6327:(e,t,n)=>{"use strict";var r=n(8426),s=n(8257),i=r.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},8987:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9954:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},5057:(e,t,n)=>{"use strict";var r,s,i=n(8426),o=n(9954),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(s=+r[1]),e.exports=s},8573:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4456:(e,t,n)=>{"use strict";var r=n(8814),s=Error,i=r("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},4151:(e,t,n)=>{"use strict";var r=n(1370),s=n(4456),i=n(5111),o=Error.captureStackTrace;e.exports=function(e,t,n,a){i&&(o?o(e,t):r(e,"stack",s(n,a)))}},5111:(e,t,n)=>{"use strict";var r=n(2998),s=n(7971);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9011:(e,t,n)=>{"use strict";var r=n(8426),s=n(4877),i=n(9730),o=n(8563),a=n(3335).f,c=n(8722),u=n(8422),l=n(1207),p=n(1370),h=n(3941),m=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,s,f,d,_,g,y,v,b,w=e.target,E=e.global,x=e.stat,S=e.proto,P=E?r:x?r[w]:(r[w]||{}).prototype,O=E?u:u[w]||p(u,w,{})[w],j=O.prototype;for(d in t)s=!(n=c(E?d:w+(x?".":"#")+d,e.forced))&&P&&h(P,d),g=O[d],s&&(y=e.dontCallGetSet?(b=a(P,d))&&b.value:P[d]),_=s&&y?y:t[d],s&&typeof g==typeof _||(v=e.bind&&s?l(_,r):e.wrap&&s?m(_):S&&o(_)?i(_):_,(e.sham||_&&_.sham||g&&g.sham)&&p(v,"sham",!0),p(O,d,v),S&&(h(u,f=w+"Prototype")||p(u,f,{}),p(u[f],d,_),e.real&&j&&(n||!j[d])&&p(j,d,_)))}},2998:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},4877:(e,t,n)=>{"use strict";var r=n(5083),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},1207:(e,t,n)=>{"use strict";var r=n(9730),s=n(5375),i=n(5083),o=r(r.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},5083:(e,t,n)=>{"use strict";var r=n(2998);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},200:(e,t,n)=>{"use strict";var r=n(5083),s=Function.prototype.call;e.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},5339:(e,t,n)=>{"use strict";var r=n(1815),s=n(3941),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},2799:(e,t,n)=>{"use strict";var r=n(8814),s=n(5375);e.exports=function(e,t,n){try{return r(s(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},9730:(e,t,n)=>{"use strict";var r=n(88),s=n(8814);e.exports=function(e){if("Function"===r(e))return s(e)}},8814:(e,t,n)=>{"use strict";var r=n(5083),s=Function.prototype,i=s.call,o=r&&s.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},6589:(e,t,n)=>{"use strict";var r=n(8422),s=n(8426),i=n(8563),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(s[e]):r[e]&&r[e][t]||s[e]&&s[e][t]}},2630:(e,t,n)=>{"use strict";var r=n(2327),s=n(2833),i=n(5157),o=n(2444),a=n(379)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[r(e)]}},1291:(e,t,n)=>{"use strict";var r=n(200),s=n(5375),i=n(457),o=n(5787),a=n(2630),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(s(n))return i(r(n,e));throw new c(o(e)+" is not iterable")}},2833:(e,t,n)=>{"use strict";var r=n(5375),s=n(5157);e.exports=function(e,t){var n=e[t];return s(n)?void 0:r(n)}},8426:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},3941:(e,t,n)=>{"use strict";var r=n(8814),s=n(8389),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},3006:e=>{"use strict";e.exports={}},4812:(e,t,n)=>{"use strict";var r=n(6589);e.exports=r("document","documentElement")},4632:(e,t,n)=>{"use strict";var r=n(1815),s=n(2998),i=n(6327);e.exports=!r&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6541:(e,t,n)=>{"use strict";var r=n(8814),s=n(2998),i=n(88),o=Object,a=r("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},9330:(e,t,n)=>{"use strict";var r=n(8563),s=n(8257),i=n(8597);e.exports=function(e,t,n){var o,a;return i&&r(o=t.constructor)&&o!==n&&s(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},1609:(e,t,n)=>{"use strict";var r=n(8257),s=n(1370);e.exports=function(e,t){r(t)&&"cause"in t&&s(e,"cause",t.cause)}},8551:(e,t,n)=>{"use strict";var r,s,i,o=n(8268),a=n(8426),c=n(8257),u=n(1370),l=n(3941),p=n(6028),h=n(5430),m=n(3006),f="Object already initialized",d=a.TypeError,_=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new _);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new d(f);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=h("state");m[y]=!0,r=function(e,t){if(l(e,y))throw new d(f);return t.facade=e,u(e,y,t),t},s=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:r,get:s,has:i,enforce:function(e){return i(e)?s(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=s(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return n}}}},2576:(e,t,n)=>{"use strict";var r=n(379),s=n(2444),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},8563:(e,t,n)=>{"use strict";var r=n(5361),s=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},8722:(e,t,n)=>{"use strict";var r=n(2998),s=n(8563),i=/#|\.prototype\./,o=function(e,t){var n=c[a(e)];return n===l||n!==u&&(s(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},5157:e=>{"use strict";e.exports=function(e){return null==e}},8257:(e,t,n)=>{"use strict";var r=n(8563),s=n(5361),i=s.all;e.exports=s.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},7736:e=>{"use strict";e.exports=!0},6753:(e,t,n)=>{"use strict";var r=n(6589),s=n(8563),i=n(7367),o=n(9378),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return s(t)&&i(t.prototype,a(e))}},3490:(e,t,n)=>{"use strict";var r=n(1207),s=n(200),i=n(457),o=n(5787),a=n(2576),c=n(8960),u=n(7367),l=n(1291),p=n(2630),h=n(6889),m=TypeError,f=function(e,t){this.stopped=e,this.result=t},d=f.prototype;e.exports=function(e,t,n){var _,g,y,v,b,w,E,x=n&&n.that,S=!(!n||!n.AS_ENTRIES),P=!(!n||!n.IS_RECORD),O=!(!n||!n.IS_ITERATOR),j=!(!n||!n.INTERRUPTED),A=r(t,x),I=function(e){return _&&h(_,"normal",e),new f(!0,e)},k=function(e){return S?(i(e),j?A(e[0],e[1],I):A(e[0],e[1])):j?A(e,I):A(e)};if(P)_=e.iterator;else if(O)_=e;else{if(!(g=p(e)))throw new m(o(e)+" is not iterable");if(a(g)){for(y=0,v=c(e);v>y;y++)if((b=k(e[y]))&&u(d,b))return b;return new f(!1)}_=l(e,g)}for(w=P?e.next:_.next;!(E=s(w,_)).done;){try{b=k(E.value)}catch(e){h(_,"throw",e)}if("object"==typeof b&&b&&u(d,b))return b}return new f(!1)}},6889:(e,t,n)=>{"use strict";var r=n(200),s=n(457),i=n(2833);e.exports=function(e,t,n){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw n;if(a)throw o;return s(o),n}},7323:(e,t,n)=>{"use strict";var r=n(374).IteratorPrototype,s=n(1504),i=n(7971),o=n(9468),a=n(2444),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=s(r,{next:i(+!u,n)}),o(e,l,!1,!0),a[l]=c,e}},5994:(e,t,n)=>{"use strict";var r=n(9011),s=n(200),i=n(7736),o=n(5339),a=n(8563),c=n(7323),u=n(9814),l=n(8597),p=n(9468),h=n(1370),m=n(4500),f=n(379),d=n(2444),_=n(374),g=o.PROPER,y=o.CONFIGURABLE,v=_.IteratorPrototype,b=_.BUGGY_SAFARI_ITERATORS,w=f("iterator"),E="keys",x="values",S="entries",P=function(){return this};e.exports=function(e,t,n,o,f,_,O){c(n,t,o);var j,A,I,k=function(e){if(e===f&&R)return R;if(!b&&e&&e in T)return T[e];switch(e){case E:case x:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},N=t+" Iterator",M=!1,T=e.prototype,$=T[w]||T["@@iterator"]||f&&T[f],R=!b&&$||k(f),F="Array"===t&&T.entries||$;if(F&&(j=u(F.call(new e)))!==Object.prototype&&j.next&&(i||u(j)===v||(l?l(j,v):a(j[w])||m(j,w,P)),p(j,N,!0,!0),i&&(d[N]=P)),g&&f===x&&$&&$.name!==x&&(!i&&y?h(T,"name",x):(M=!0,R=function(){return s($,this)})),f)if(A={values:k(x),keys:_?R:k(E),entries:k(S)},O)for(I in A)(b||M||!(I in T))&&m(T,I,A[I]);else r({target:t,proto:!0,forced:b||M},A);return i&&!O||T[w]===R||m(T,w,R,{name:f}),d[t]=R,A}},374:(e,t,n)=>{"use strict";var r,s,i,o=n(2998),a=n(8563),c=n(8257),u=n(1504),l=n(9814),p=n(4500),h=n(379),m=n(7736),f=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(r=s):d=!0),!c(r)||o((function(){var e={};return r[f].call(e)!==e}))?r={}:m&&(r=u(r)),a(r[f])||p(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},2444:e=>{"use strict";e.exports={}},8960:(e,t,n)=>{"use strict";var r=n(9261);e.exports=function(e){return r(e.length)}},5703:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},5517:(e,t,n)=>{"use strict";var r=n(4809);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},1504:(e,t,n)=>{"use strict";var r,s=n(457),i=n(8253),o=n(8573),a=n(3006),c=n(4812),u=n(6327),l=n(5430),p="prototype",h="script",m=l("IE_PROTO"),f=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},_=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g="undefined"!=typeof document?document.domain&&r?_(r):(t=u("iframe"),n="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):_(r);for(var s=o.length;s--;)delete g[p][o[s]];return g()};a[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[p]=s(e),n=new f,f[p]=null,n[m]=e):n=g(),void 0===t?n:i.f(n,t)}},8253:(e,t,n)=>{"use strict";var r=n(1815),s=n(4210),i=n(4376),o=n(457),a=n(4312),c=n(4230);t.f=r&&!s?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=c(t),u=s.length,l=0;u>l;)i.f(e,n=s[l++],r[n]);return e}},4376:(e,t,n)=>{"use strict";var r=n(1815),s=n(4632),i=n(4210),o=n(457),a=n(9722),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",m="writable";t.f=r?i?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&m in n&&!n[m]){var r=l(e,t);r&&r[m]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:p in n?n[p]:r[p],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=a(t),o(n),s)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},3335:(e,t,n)=>{"use strict";var r=n(1815),s=n(200),i=n(2886),o=n(7971),a=n(4312),c=n(9722),u=n(3941),l=n(4632),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=a(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},4243:(e,t,n)=>{"use strict";var r=n(4062),s=n(8573).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,s)}},2306:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},9814:(e,t,n)=>{"use strict";var r=n(3941),s=n(8563),i=n(8389),o=n(5430),a=n(8536),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var n=t.constructor;return s(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},7367:(e,t,n)=>{"use strict";var r=n(8814);e.exports=r({}.isPrototypeOf)},4062:(e,t,n)=>{"use strict";var r=n(8814),s=n(3941),i=n(4312),o=n(3346).indexOf,a=n(3006),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!s(a,n)&&s(r,n)&&c(l,n);for(;t.length>u;)s(r,n=t[u++])&&(~o(l,n)||c(l,n));return l}},4230:(e,t,n)=>{"use strict";var r=n(4062),s=n(8573);e.exports=Object.keys||function(e){return r(e,s)}},2886:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},8597:(e,t,n)=>{"use strict";var r=n(2799),s=n(457),i=n(692);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return s(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},3024:(e,t,n)=>{"use strict";var r=n(6694),s=n(2327);e.exports=r?{}.toString:function(){return"[object "+s(this)+"]"}},2483:(e,t,n)=>{"use strict";var r=n(200),s=n(8563),i=n(8257),o=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&s(n=e.toString)&&!i(a=r(n,e)))return a;if(s(n=e.valueOf)&&!i(a=r(n,e)))return a;if("string"!==t&&s(n=e.toString)&&!i(a=r(n,e)))return a;throw new o("Can't convert object to primitive value")}},5956:(e,t,n)=>{"use strict";var r=n(6589),s=n(8814),i=n(4243),o=n(2306),a=n(457),c=s([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?c(t,n(e)):t}},8422:e=>{"use strict";e.exports={}},3142:(e,t,n)=>{"use strict";var r=n(4376).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},8280:(e,t,n)=>{"use strict";var r=n(5157),s=TypeError;e.exports=function(e){if(r(e))throw new s("Can't call method on "+e);return e}},9468:(e,t,n)=>{"use strict";var r=n(6694),s=n(4376).f,i=n(1370),o=n(3941),a=n(3024),c=n(379)("toStringTag");e.exports=function(e,t,n,u){if(e){var l=n?e:e.prototype;o(l,c)||s(l,c,{configurable:!0,value:t}),u&&!r&&i(l,"toString",a)}}},5430:(e,t,n)=>{"use strict";var r=n(3771),s=n(9216),i=r("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},6028:(e,t,n)=>{"use strict";var r=n(8426),s=n(8194),i="__core-js_shared__",o=r[i]||s(i,{});e.exports=o},3771:(e,t,n)=>{"use strict";var r=n(7736),s=n(6028);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.3",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE",source:"https://github.com/zloirock/core-js"})},7415:(e,t,n)=>{"use strict";var r=n(8814),s=n(1061),i=n(4809),o=n(8280),a=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,p=i(o(t)),h=s(n),m=p.length;return h<0||h>=m?e?"":void 0:(r=c(p,h))<55296||r>56319||h+1===m||(l=c(p,h+1))<56320||l>57343?e?a(p,h):r:e?u(p,h,h+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},3772:(e,t,n)=>{"use strict";var r=n(5057),s=n(2998),i=n(8426).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1940:(e,t,n)=>{"use strict";var r=n(1061),s=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?s(n+t,0):i(n,t)}},4312:(e,t,n)=>{"use strict";var r=n(6541),s=n(8280);e.exports=function(e){return r(s(e))}},1061:(e,t,n)=>{"use strict";var r=n(5703);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},9261:(e,t,n)=>{"use strict";var r=n(1061),s=Math.min;e.exports=function(e){return e>0?s(r(e),9007199254740991):0}},8389:(e,t,n)=>{"use strict";var r=n(8280),s=Object;e.exports=function(e){return s(r(e))}},6561:(e,t,n)=>{"use strict";var r=n(200),s=n(8257),i=n(6753),o=n(2833),a=n(2483),c=n(379),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var n,c=o(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!s(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},9722:(e,t,n)=>{"use strict";var r=n(6561),s=n(6753);e.exports=function(e){var t=r(e,"string");return s(t)?t:t+""}},6694:(e,t,n)=>{"use strict";var r={};r[n(379)("toStringTag")]="z",e.exports="[object z]"===String(r)},4809:(e,t,n)=>{"use strict";var r=n(2327),s=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},5787:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9216:(e,t,n)=>{"use strict";var r=n(8814),s=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},9378:(e,t,n)=>{"use strict";var r=n(3772);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},4210:(e,t,n)=>{"use strict";var r=n(1815),s=n(2998);e.exports=r&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8268:(e,t,n)=>{"use strict";var r=n(8426),s=n(8563),i=r.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},379:(e,t,n)=>{"use strict";var r=n(8426),s=n(3771),i=n(3941),o=n(9216),a=n(3772),c=n(9378),u=r.Symbol,l=s("wks"),p=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},9791:(e,t,n)=>{"use strict";var r=n(6589),s=n(3941),i=n(1370),o=n(7367),a=n(8597),c=n(1318),u=n(3142),l=n(9330),p=n(5517),h=n(1609),m=n(4151),f=n(1815),d=n(7736);e.exports=function(e,t,n,_){var g="stackTraceLimit",y=_?2:1,v=e.split("."),b=v[v.length-1],w=r.apply(null,v);if(w){var E=w.prototype;if(!d&&s(E,"cause")&&delete E.cause,!n)return w;var x=r("Error"),S=t((function(e,t){var n=p(_?t:e,void 0),r=_?new w(e):new w;return void 0!==n&&i(r,"message",n),m(r,S,r.stack,2),this&&o(E,this)&&l(r,this,S),arguments.length>y&&h(r,arguments[y]),r}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):f&&g in w&&(u(S,w,g),u(S,w,"prepareStackTrace")),c(S,w),!d)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},1835:(e,t,n)=>{"use strict";var r=n(9011),s=n(6589),i=n(4877),o=n(2998),a=n(9791),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,n){return i(e,this,arguments)}}),l,!0)})},1320:(e,t,n)=>{"use strict";var r=n(9011),s=n(7367),i=n(9814),o=n(8597),a=n(1318),c=n(1504),u=n(1370),l=n(7971),p=n(1609),h=n(4151),m=n(3490),f=n(5517),d=n(379)("toStringTag"),_=Error,g=[].push,y=function(e,t){var n,r=s(v,this);o?n=o(new _,r?i(this):v):(n=r?this:c(v),u(n,d,"Error")),void 0!==t&&u(n,"message",f(t)),h(n,y,n.stack,1),arguments.length>2&&p(n,arguments[2]);var a=[];return m(e,g,{that:a}),u(n,"errors",a),n};o?o(y,_):a(y,_,{name:!0});var v=y.prototype=c(_.prototype,{constructor:l(1,y),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},733:(e,t,n)=>{"use strict";n(1320)},6449:(e,t,n)=>{"use strict";var r=n(4312),s=n(7171),i=n(2444),o=n(8551),a=n(4376).f,c=n(5994),u=n(9497),l=n(7736),p=n(1815),h="Array Iterator",m=o.set,f=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){m(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!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(e){}},2777:(e,t,n)=>{"use strict";var r=n(9011),s=n(8426),i=n(4877),o=n(9791),a="WebAssembly",c=s[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var n={};n[e]=o(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},p=function(e,t){if(c&&c[e]){var n={};n[e]=o(a+"."+e,t,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},9383:(e,t,n)=>{"use strict";var r=n(7415).charAt,s=n(4809),i=n(8551),o=n(5994),a=n(9497),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:s(e),index:0})}),(function(){var e,t=l(this),n=t.string,s=t.index;return s>=n.length?a(void 0,!0):(e=r(n,s),t.index+=e.length,a(e,!1))}))},3584:(e,t,n)=>{"use strict";n(733)},6128:(e,t,n)=>{"use strict";n(6449);var r=n(8987),s=n(8426),i=n(2327),o=n(1370),a=n(2444),c=n(379)("toStringTag");for(var u in r){var l=s[u],p=l&&l.prototype;p&&i(p)!==c&&o(p,c,u),a[u]=a.Array}},7497:(e,t,n)=>{"use strict";n(3584);var r=n(3258);n(6128),e.exports=r}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&!e;)e=r[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();var r={};return(()=>{"use strict";n.r(r),n.d(r,{detect:()=>hl,detectionRegExp:()=>pl,mediaTypes:()=>ll,namespace:()=>fl,parse:()=>ml});var e={};n.r(e),n.d(e,{hasElementSourceMap:()=>as,includesClasses:()=>us,includesSymbols:()=>cs,isAnnotationElement:()=>ns,isArrayElement:()=>Yr,isBooleanElement:()=>Zr,isCommentElement:()=>rs,isElement:()=>Gr,isLinkElement:()=>es,isMemberElement:()=>Qr,isNullElement:()=>Kr,isNumberElement:()=>Jr,isObjectElement:()=>Xr,isParseResultElement:()=>ss,isPrimitiveElement:()=>os,isRefElement:()=>ts,isSourceMapElement:()=>is,isStringElement:()=>Wr});var t={};n.r(t),n.d(t,{isJSONReferenceElement:()=>Xo,isJSONSchemaElement:()=>Zo,isLinkDescriptionElement:()=>Qo,isMediaElement:()=>Yo});var s={};n.r(s),n.d(s,{isReferenceLikeElement:()=>Ga,isSwaggerExtension:()=>Ha});var i={};function o(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function a(e){return function t(n){return 0===arguments.length||o(n)?t:e.apply(this,arguments)}}function c(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return o(n)?t:a((function(t){return e(n,t)}));default:return o(n)&&o(r)?t:o(n)?a((function(t){return e(t,r)})):o(r)?a((function(t){return e(n,t)})):e(n,r)}}}function u(e){return function t(n,r,s){switch(arguments.length){case 0:return t;case 1:return o(n)?t:c((function(t,r){return e(n,t,r)}));case 2:return o(n)&&o(r)?t:o(n)?c((function(t,n){return e(t,r,n)})):o(r)?c((function(t,r){return e(n,t,r)})):a((function(t){return e(n,r,t)}));default:return o(n)&&o(r)&&o(s)?t:o(n)&&o(r)?c((function(t,n){return e(t,n,s)})):o(n)&&o(s)?c((function(t,n){return e(t,r,n)})):o(r)&&o(s)?c((function(t,r){return e(n,t,r)})):o(n)?a((function(t){return e(t,r,s)})):o(r)?a((function(t){return e(n,t,s)})):o(s)?a((function(t){return e(n,r,t)})):e(n,r,s)}}}n.r(i),n.d(i,{isContactElement:()=>wc,isDefinitionsElement:()=>Dc,isExampleElement:()=>Nc,isExternalDocumentationElement:()=>Pc,isHeaderElement:()=>Mc,isHeadersElement:()=>kc,isInfoElement:()=>vc,isItemsElement:()=>jc,isLicenseElement:()=>bc,isOperationElement:()=>Sc,isParameterElement:()=>Oc,isParametersDefinitionsElement:()=>Lc,isPathItemElement:()=>xc,isPathsElement:()=>Ec,isReferenceElement:()=>$c,isResponseElement:()=>Ic,isResponsesDefinitionsElement:()=>Cc,isResponsesElement:()=>Ac,isSchemaElement:()=>Rc,isScopesElement:()=>Vc,isSecurityDefinitionsElement:()=>qc,isSecurityRequirementElement:()=>Uc,isSecuritySchemeElement:()=>Bc,isSwaggerElement:()=>gc,isSwaggerVersionElement:()=>yc,isTagElement:()=>Tc,isXmlElement:()=>Fc});const l=c((function(e,t){return null==t||t!=t?e:t})),p=Number.isInteger||function(e){return e<<0===e};function h(e){return"[object String]"===Object.prototype.toString.call(e)}const m=c((function(e,t){var n=e<0?t.length+e:e;return h(t)?t.charAt(n):t[n]}));const f=c((function(e,t){if(null!=t)return p(e)?m(e,t):t[e]}));const d=u((function(e,t,n){return l(e,f(t,n))}));var _=c((function(e,t){for(var n={},r={},s=0,i=e.length;s<i;)r[e[s]]=1,s+=1;for(var o in t)r.hasOwnProperty(o)||(n[o]=t[o]);return n}));const g=_;function y(e,t,n){for(var r=0,s=n.length;r<s;)t=e(t,n[r]),r+=1;return t}const v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const b=a((function(e){return!!v(e)||!!e&&("object"==typeof e&&(!h(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var w="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function E(e,t,n){return function(r,s,i){if(b(i))return e(r,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(r,s,i,"fantasy-land/reduce");if(null!=i[w])return n(r,s,i[w]());if("function"==typeof i.next)return n(r,s,i);if("function"==typeof i.reduce)return t(r,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function x(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function S(e,t,n,r){return n[r](e,t)}const P=E(y,S,x);function O(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!v(r)){for(var s=0;s<e.length;){if("function"==typeof r[e[s]])return r[e[s]].apply(r,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}function j(e,t){for(var n=0,r=t.length,s=Array(r);n<r;)s[n]=e(t[n]),n+=1;return s}const A=function(){return this.xf["@@transducer/init"]()},I=function(e){return this.xf["@@transducer/result"](e)};var k=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=I,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const N=function(e){return function(t){return new k(e,t)}};function M(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,s){return t.apply(this,arguments)};case 5:return function(e,n,r,s,i){return t.apply(this,arguments)};case 6:return function(e,n,r,s,i,o){return t.apply(this,arguments)};case 7:return function(e,n,r,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,n,r,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,n,r,s,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,n,r,s,i,o,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function T(e,t,n){return function(){for(var r=[],s=0,i=e,a=0,c=!1;a<t.length||s<arguments.length;){var u;a<t.length&&(!o(t[a])||s>=arguments.length)?u=t[a]:(u=arguments[s],s+=1),r[a]=u,o(u)?c=!0:i-=1,a+=1}return!c&&i<=0?n.apply(this,r):M(Math.max(0,i),T(e,r,n))}}const $=c((function(e,t){return 1===e?a(t):M(e,T(e,[],t))}));function R(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var F=Object.prototype.toString;const C=function(){return"[object Arguments]"===F.call(arguments)?function(e){return"[object Arguments]"===F.call(e)}:function(e){return R("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),D=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(){return arguments.propertyIsEnumerable("length")}(),B=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},V="function"!=typeof Object.keys||L?a((function(e){if(Object(e)!==e)return[];var t,n,r=[],s=L&&C(e);for(t in e)!R(t,e)||s&&"length"===t||(r[r.length]=t);if(q)for(n=D.length-1;n>=0;)R(t=D[n],e)&&!B(r,t)&&(r[r.length]=t),n-=1;return r})):a((function(e){return Object(e)!==e?[]:Object.keys(e)}));const U=V;const z=c(O(["fantasy-land/map","map"],N,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return $(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return y((function(n,r){return n[r]=e(t[r]),n}),{},U(t));default:return j(e,t)}})));const H=c((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:P((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,s=t.length,i=[];for(n=0;n<r;)i[i.length]=e[n],n+=1;for(n=0;n<s;)i[i.length]=t[n],n+=1;return i}(e,z(n,t))}),[],e)}));const G=c((function(e,t){var n=$(e,t);return $(e,(function(){return y(H,z(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const W=a((function(e){return G(e.length,e)}));const J=W(a((function(e){return!e})));function K(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Z(e,t,n){for(var r=0,s=n.length;r<s;){if(e(t,n[r]))return!0;r+=1}return!1}const X="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const Y=a((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Q(e,t,n,r){var s=K(e);function i(e,t){return ee(e,t,n.slice(),r.slice())}return!Z((function(e,t){return!Z(i,t,e)}),K(t),s)}function ee(e,t,n,r){if(X(e,t))return!0;var s,i,o=Y(e);if(o!==Y(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!X(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!X(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=n.length-1;a>=0;){if(n[a]===e)return r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&Q(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&Q(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=U(e);if(c.length!==U(t).length)return!1;var u=n.concat([e]),l=r.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!R(p,t)||!ee(t[p],e[p],u,l))return!1;a-=1}return!0}const te=c((function(e,t){return ee(e,t,[],[])}));const ne=a((function(e){return function(){return e}}));const re=ne(void 0);const se=te(re());const ie=J(se);var oe=n(7952);function ae(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ce(e,t,n){for(var r=0,s=n.length;r<s;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const ue=c((function(e,t){return M(e.length,(function(){return e.apply(t,arguments)}))}));function le(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function pe(e,t,n,r){return e["@@transducer/result"](n[r](ue(e["@@transducer/step"],e),t))}const he=E(ce,pe,le);var me=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function fe(e){return new me(e)}const de=u((function(e,t,n){return he("function"==typeof e?fe(e):e,t,n)}));function _e(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return v(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}const ge=u(_e("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})));const ye=a(_e("tail",ge(1,1/0)));function ve(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return M(arguments[0].length,de(ae,arguments[0],ye(arguments)))}var be=function(e,t){switch(arguments.length){case 0:return be;case 1:return function t(n){return 0===arguments.length?t:X(e,n)};default:return X(e,t)}};const we=be;function Ee(e,t){return function(e,t,n){var r,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(s=e[n])&&1/s===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(s=e[n])&&s!=s)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(te(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function xe(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var Se=function(e){return(e<10?"0":"")+e};const Pe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Se(e.getUTCMonth()+1)+"-"+Se(e.getUTCDate())+"T"+Se(e.getUTCHours())+":"+Se(e.getUTCMinutes())+":"+Se(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Oe(e){return"[object Object]"===Object.prototype.toString.call(e)}var je=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=I,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Ae(e){return function(t){return new je(e,t)}}const Ie=c(O(["fantasy-land/filter","filter"],Ae,(function(e,t){return Oe(t)?y((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},U(t)):function(e,t){for(var n=0,r=t.length,s=[];n<r;)e(t[n])&&(s[s.length]=t[n]),n+=1;return s}(e,t)})));const ke=c((function(e,t){return Ie((n=e,function(){return!n.apply(this,arguments)}),t);var n}));function Ne(e,t){var n=function(n){var r=t.concat([e]);return Ee(n,r)?"<Circular>":Ne(n,r)},r=function(e,t){return j((function(t){return xe(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+j(n,e).join(", ")+"))";case"[object Array]":return"["+j(n,e).concat(r(e,ke((function(e){return/^\d+$/.test(e)}),U(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):xe(Pe(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":xe(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+r(e,U(e)).join(", ")+"}"}}const Me=a((function(e){return Ne(e,[])}));const Te=c((function(e,t){return e.map((function(e){for(var n,r=t,s=0;s<e.length;){if(null==r)return;n=e[s],r=p(n)?m(n,r):r[n],s+=1}return r}))}));const $e=c((function(e,t){return Te([e],t)[0]}));const Re=u((function(e,t,n){return e($e(t,n))}));function Fe(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Ce=c((function(e,t){return e&&t}));const qe=c((function(e,t){return Fe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:W(Ce)(e,t)}));const De=te(null);const Le=J(De);function Be(e){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(e)}const Ve=function(e){return"object"===Be(e)};const Ue=$(1,qe(Le,Ve));const ze=c((function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var s=n(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=Me(e),o=n(i,Me(t));return void 0!==o&&o===i?e:t}));const He=c((function(e,t){return z(f(e),t)}));const Ge=a((function(e){return $(de(ze,0,He("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const We=$(1,ve(Y,we("GeneratorFunction")));const Je=$(1,ve(Y,we("AsyncFunction")));const Ke=Ge([ve(Y,we("Function")),We,Je]);var Ze=ve(Y,we("Object")),Xe=ve(Me,te(Me(Object))),Ye=Re(qe(Ke,Xe),["constructor"]);const Qe=$(1,(function(e){if(!Ue(e)||!Ze(e))return!1;var t=Object.getPrototypeOf(e);return!!De(t)||Ye(t)}));class et extends oe.RP{constructor(e,t,n){super(e,t,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const tt=et;class nt extends oe.RP{constructor(e,t,n){super(e,t,n),this.element="comment"}}const rt=nt;class st extends oe.ON{constructor(e,t,n){super(e,t,n),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(se(t))return!1;const n=this.content.findIndex((e=>e===t));return-1!==n&&(this.content[n]=e,!0)}}const it=st;class ot extends oe.ON{constructor(e,t,n){super(e,t,n),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(null===e)return;const t=new oe.ON([e.start.row,e.start.column,e.start.char]),n=new oe.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),n.classes.push("position"),this.push(t).push(n)}}const at=ot;class ct extends oe.lS{constructor(){super(),this.register("annotation",tt),this.register("comment",rt),this.register("parseResult",it),this.register("sourceMap",at)}}const ut=new ct,lt=e=>{const t=new ct;return Qe(e)&&t.use(e),t},pt=ut;const ht=$(1,ve(Y,we("String"))),mt=n.p+"23aac571c96605dc25219087ad291441.wasm",ft=globalThis.fetch;Ke(ft)&&(globalThis.fetch=(...e)=>ht(e[0])&&e[0].endsWith("tree-sitter.wasm")?ft.apply(globalThis,[mt,ye(e)]):ft.apply(globalThis,e));var dt=n(9794),_t=n(1427);const gt=class extends _t{constructor(e,t,n){if(super(e,t,n),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!=n&&"object"==typeof n&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:e}=n;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class yt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(gt,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const vt=yt,bt=n.p+"d396281e11774e0afa7a40d620779b6d.wasm";let wt=null,Et=null;const xt=async e=>{if(null===wt&&null===Et)Et=dt.init().then((()=>dt.Language.load(bt))).then((e=>{const t=new dt;return t.setLanguage(e),t})).finally((()=>{Et=null})),wt=await Et;else if(null===wt&&null!==Et)wt=await Et;else if(null===wt)throw new vt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return wt.parse(e)};var St=n(6591);function Pt(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function Ot(e,t,n){if(n||(n=new jt),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var r=function(r){var s=n.get(e);if(s)return s;for(var i in n.set(e,r),e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t?Ot(e[i],!0,n):e[i]);return r};switch(Y(e)){case"Object":return r(Object.create(Object.getPrototypeOf(e)));case"Array":return r([]);case"Date":return new Date(e.valueOf());case"RegExp":return Pt(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var jt=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const n=this.hash(e);let r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){let t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(const t in this.map){const n=this.map[t];for(let t=0;t<n.length;t+=1){const r=n[t];if(r[0]===e)return r[1]}}return}const t=this.hash(e),n=this.map[t];if(n)for(let t=0;t<n.length;t+=1){const r=n[t];if(r[0]===e)return r[1]}},e}();const At=a((function(e){return null!=e&&"function"==typeof e.clone?e.clone():Ot(e,!0)}));const It=class extends vt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}};const kt=class extends It{};const Nt=class extends kt{constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagPosition=t.tagPosition,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}},Mt=St({props:{type:null,position:null,children:[]},init({children:e=[],position:t=null,isMissing:n=!1}={},{stamp:r={}}){this.type=r.type,this.isMissing=n,this.children=e,this.position=t},methods:{clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const n=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,n)})),e}}});let Tt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const $t=St(Mt,{statics:{type:"tag"},props:{explicitName:"",kind:null},init({explicitName:e,kind:t}={}){this.explicitName=e,this.kind=t}});const Rt=u((function(e,t,n){return l(e,$e(t,n))}));const Ft=a((function(e){return $(e.length,e)}));var Ct="\t\n\v\f\r \u2028\u2029\ufeff";const qt=a("function"==typeof String.prototype.trim&&!Ct.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Ct+"]["+Ct+"]*"),n=new RegExp("["+Ct+"]["+Ct+"]*$");return e.replace(t,"").replace(n,"")});const Dt=c((function(e,t){return $(e+1,(function(){var n=arguments[e];if(null!=n&&Fe(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Me(n)+' does not have a method named "'+t+'"')}))}));const Lt=Dt(1,"split");const Bt=Dt(1,"join");const Vt=a((function(e){return h(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Ut(){if(0===arguments.length)throw new Error("compose requires at least one argument");return ve.apply(this,Vt(arguments))}const zt=$(4,(function(e,t,n,r){return he(e("function"==typeof t?fe(t):t),n,r)}));const Ht=c((function(e,t){if(v(e)){if(v(t))return e.concat(t);throw new TypeError(Me(t)+" is not an array")}if(h(e)){if(h(t))return e+t;throw new TypeError(Me(t)+" is not a string")}if(null!=e&&Fe(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&Fe(e.concat))return e.concat(t);throw new TypeError(Me(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Gt=te("");const Wt=c((function(e,t){return $(de(ze,0,He("length",t)),(function(){var n=arguments,r=this;return e.apply(r,j((function(e){return e.apply(r,n)}),t))}))}));function Jt(e){return e}const Kt=a(Jt);const Zt=$(1,ve(Y,we("Number")));var Xt=qe(Zt,isFinite);var Yt=$(1,Xt);const Qt=Ke(Number.isFinite)?$(1,ue(Number.isFinite,Number)):Yt;var en=qe(Qt,Wt(te,[Math.floor,Kt]));var tn=$(1,en);const nn=Ke(Number.isInteger)?$(1,ue(Number.isInteger,Number)):tn;const rn=a((function(e){return $(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))}));const sn=J(Qt);const on=$(1,qe(Zt,c((function(e,t){return e>t}))(0)));var an=Ft((function(e,t){var n=Number(t);if(n!==t&&(n=0),on(n))throw new RangeError("repeat count must be non-negative");if(sn(n))throw new RangeError("repeat count must be less than infinity");if(n=Math.floor(n),0===e.length||0===n)return"";if(e.length*n>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*n;n=Math.floor(Math.log(n)/Math.log(2));for(var s=e;n;)s+=e,n-=1;return s+=s.substring(0,r-s.length)})),cn=rn(Dt(1,"repeat"));const un=Ke(String.prototype.repeat)?cn:an;const ln=u((function(e,t,n){return n.replace(e,t)}));var pn=ln(/[\s\uFEFF\xA0]+$/,""),hn=Dt(0,"trimEnd");const mn=Ke(String.prototype.trimEnd)?hn:pn;var fn=ln(/^[\s\uFEFF\xA0]+/,""),dn=Dt(0,"trimStart");const _n=Ke(String.prototype.trimStart)?dn:fn;var gn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=I,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function yn(e){return function(t){return new gn(e,t)}}const vn=c(O(["dropWhile"],yn,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return ge(n,1/0,t)})));const bn=rn(c(Ee));const wn=Ft((function(e,t){return ve(Lt(""),vn(bn(e)),Bt(""))(t)}));const En=rn(Ht);var xn=n(2770);const Sn=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Pn=e=>{const t=(e=>{const t=e.match(Sn),n=Rt("",["groups","indentation"],t);return Gt(n)?void 0:parseInt(n,10)})(e);if(nn(t))return un(" ",t);const n=Rt("",[1],e.split("\n")),r=Rt(0,["groups","indentation","length"],n.match(/^(?<indentation>[ ]*)/));return un(" ",r)},On=e=>{const t=e.match(Sn),n=Rt("",["groups","chomping"],t);return Gt(n)?void 0:n},jn=(e,t)=>se(e)?`${mn(t)}\n`:"-"===e?mn(t):t,An=e=>e.replace(/\r\n/g,"\n"),In=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,n)=>t?e:` ${n.trimStart()}`)).replace(/[\n]{2}/g,"\n"),kn=Ft(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Nn=ve(An,qt,In,Lt("\n"),z(_n),Bt("\n")),Mn=ve(An,qt,kn("'"),In,Lt("\n"),z(_n),Bt("\n")),Tn=ve(An,qt,kn('"'),(e=>e.replace(/\\\n\s*/g,"")),In,xn.S6,Lt("\n"),z(_n),Bt("\n"));let $n=function(e){return e.Plain="Plain",e.SingleQuoted="SingleQuoted",e.DoubleQuoted="DoubleQuoted",e.Literal="Literal",e.Folded="Folded",e.Explicit="Explicit",e.SinglePair="SinglePair",e.NextLine="NextLine",e.InLine="InLine",e}({}),Rn=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Fn=St({props:{styleGroup:null,style:null}}),Cn=St({methods:{test:e=>e.tag.kind===Tt.Scalar&&"string"==typeof e.content,canonicalFormat(e){let t=e.content;const n=e.clone();return e.style===$n.Plain?t=Nn(e.content):e.style===$n.SingleQuoted?t=Mn(e.content):e.style===$n.DoubleQuoted?t=Tn(e.content):e.style===$n.Literal?t=(e=>{const t=Pn(e),n=On(e),r=An(e),s=ye(r.split("\n")),i=Ut(z(wn(t)),z(En("\n"))),o=zt(i,Ht,"",s);return jn(n,o)})(e.content):e.style===$n.Folded&&(t=(e=>{const t=Pn(e),n=On(e),r=An(e),s=ye(r.split("\n")),i=Ut(z(wn(t)),z(En("\n"))),o=zt(i,Ht,"",s),a=In(o);return jn(n,a)})(e.content)),n.content=t,n},resolve:e=>e}}),qn=St(Cn,{props:{tag:""}}),Dn=St(qn,{statics:{uri:"tag:yaml.org,2002:map"},init(e,{stamp:t}){this.tag=t.uri},methods:{test:e=>e.tag.kind===Tt.Mapping,resolve:e=>e}}),Ln=St(qn,{statics:{uri:"tag:yaml.org,2002:seq"},init(e,{stamp:t}){this.tag=t.uri},methods:{test:e=>e.tag.kind===Tt.Sequence,resolve:e=>e}}),Bn=St(qn,{statics:{uri:"tag:yaml.org,2002:str"},init(e,{stamp:t}){this.tag=t.uri},methods:{resolve:e=>e}}),Vn=St({props:{tags:[],tagDirectives:[]},init(){this.tags=[],this.tagDirectives=[],this.registerTag(Dn()),this.registerTag(Ln()),this.registerTag(Bn())},methods:{toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===Tt.Scalar?t=Bn.uri:e.tag.kind===Tt.Sequence?t=Ln.uri:e.tag.kind===Tt.Mapping&&(t=Dn.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").replace(/>$/,""):e.tag.explicitName.startsWith("!!")&&(t=`tag:yaml.org,2002:${e.tag.explicitName.replace(/^!!/,"")}`),t},registerTagDirective(e){this.tagDirectives.push({handle:e.parameters.handle,prefix:e.parameters.prefix})},registerTag(e,t=!1){return t?this.tags.unshift(e):this.tags.push(e),this},overrideTag(e){return this.tags=this.tags.filter((t=>t.tag===e.tag)),this.tags.push(e),this},resolve(e){const t=this.toSpecificTagName(e);if("?"===t)return e;let n=e;e.tag.kind===Tt.Scalar&&(n=Cn().canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new Nt(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:At(e.tag.position),node:e.clone()});if(!r.test(n))throw new Nt(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:At(e.tag.position),nodeCanonicalContent:n.content,node:e.clone()});return r.resolve(n)}}}),Un=Vn,zn=St(qn,{statics:{uri:"tag:yaml.org,2002:bool"},init(e,{stamp:t}){this.tag=t.uri},methods:{test:e=>/^(true|false)$/.test(e.content),resolve(e){const t="true"===e.content,n=e.clone();return n.content=t,n}}}),Hn=St(qn,{statics:{uri:"tag:yaml.org,2002:float"},init(e,{stamp:t}){this.tag=t.uri},methods:{test:e=>/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content),resolve(e){const t=parseFloat(e.content),n=e.clone();return n.content=t,n}}}),Gn=St(qn,{statics:{uri:"tag:yaml.org,2002:int"},init(e,{stamp:t}){this.tag=t.uri},methods:{test:e=>/^-?(0|[1-9][0-9]*)$/.test(e.content),resolve(e){const t=parseInt(e.content,10),n=e.clone();return n.content=t,n}}}),Wn=St(qn,{statics:{uri:"tag:yaml.org,2002:null"},init(e,{stamp:t}){this.tag=t.uri},methods:{test:e=>/^null$/.test(e.content),resolve(e){const t=e.clone();return t.content=null,t}}}),Jn=St(Un,{init(){this.registerTag(zn(),!0),this.registerTag(Hn(),!0),this.registerTag(Gn(),!0),this.registerTag(Wn(),!0)},methods:{toSpecificTagName(e){let t=Un.compose.methods.toSpecificTagName.call(this,e);if("?"===t)if(e.tag.vkind===Tt.Sequence)t=Ln.uri;else if(e.tag.kind===Tt.Mapping)t=Dn.uri;else if(e.tag.kind===Tt.Scalar){const n=this.tags.find((t=>t.test(e)));t=(null==n?void 0:n.tag)||"?"}return t}}}),Kn=Jn,Zn=(e,t,n)=>{const r=e[t];if(null!=r){if(!n&&"function"==typeof r)return r;const e=n?r.leave:r.enter;if("function"==typeof e)return e}else{const r=n?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},Xn={},Yn=e=>null==e?void 0:e.type,Qn=e=>"string"==typeof Yn(e),er=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),tr=(e,t,{keyMap:n=null,state:r={},breakSymbol:s=Xn,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Zn,nodeTypeGetter:c=Yn,nodePredicate:u=Qn,nodeCloneFn:l=er,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),_=[e],g=-1,y=[],v=e;const b=[],w=[];do{g+=1;const e=g===_.length;let n;const x=e&&0!==y.length;if(e){if(n=0===w.length?void 0:b.pop(),v=f,f=w.pop(),x)if(d){v=v.slice();let e=0;for(const[t,n]of y){const r=t-e;n===i?(v.splice(r,1),e+=1):v[r]=n}}else{v=l(v);for(const[e,t]of y)v[e]=t}g=m.index,_=m.keys,y=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(n=d?g:_[g],v=f[n],v===i||void 0===v)continue;b.push(n)}let S;if(!Array.isArray(v)){if(!u(v))throw new It(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;S=i.call(t,v,n,f,b,w)}if(S===s)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(y.push([n,S]),!e)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&y.push([n,v]),!e)m={inArray:d,index:g,keys:_,edits:y,prev:m},d=Array.isArray(v),_=d?v:null!==(E=h[c(v)])&&void 0!==E?E:[],g=-1,y=[],f!==i&&void 0!==f&&w.push(f),f=v}while(void 0!==m);return 0!==y.length?y[y.length-1][1]:e};tr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:s=Xn,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Zn,nodeTypeGetter:c=Yn,nodePredicate:u=Qn,nodeCloneFn:l=er,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),_=[e],g=-1,y=[],v=e;const b=[],w=[];do{g+=1;const e=g===_.length;let n;const x=e&&0!==y.length;if(e){if(n=0===w.length?void 0:b.pop(),v=f,f=w.pop(),x)if(d){v=v.slice();let e=0;for(const[t,n]of y){const r=t-e;n===i?(v.splice(r,1),e+=1):v[r]=n}}else{v=l(v);for(const[e,t]of y)v[e]=t}g=m.index,_=m.keys,y=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(n=d?g:_[g],v=f[n],v===i||void 0===v)continue;b.push(n)}let S;if(!Array.isArray(v)){if(!u(v))throw new It(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;S=await i.call(t,v,n,f,b,w)}if(S===s)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(y.push([n,S]),!e)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&y.push([n,v]),!e)m={inArray:d,index:g,keys:_,edits:y,prev:m},d=Array.isArray(v),_=d?v:null!==(E=h[c(v)])&&void 0!==E?E:[],g=-1,y=[],f!==i&&void 0!==f&&w.push(f),f=v}while(void 0!==m);return 0!==y.length?y[y.length-1][1]:e};const nr=St({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init({row:e=null,column:t=null,char:n=null}={}){this.row=e,this.column=t,this.char=n}}),rr=St({statics:{type:"position"},props:{type:"position",start:null,end:null},init({start:e=null,end:t=null}={}){this.start=e,this.end=t}}),sr=St(Mt,{statics:{type:"anchor"},props:{name:null},init({name:e=null}={}){this.name=e}}),ir=St(Mt,{props:{anchor:null,tag:null,style:null,styleGroup:null},init({anchor:e=null,tag:t=null,style:n=null,styleGroup:r=null}={}){this.anchor=e,this.tag=t,this.style=n,this.styleGroup=r}}),or=ir,ar=St(or,{statics:{type:"scalar"},props:{content:""},init({content:e}={}){this.content=e}}),cr=St(Mt,{statics:{type:"literal"},props:{value:null},init({value:e=null}={}){this.value=e}}),ur=(e,t)=>(null==t?void 0:t.type)===e,lr=(ur.bind(void 0,"literal"),ur.bind(void 0,"position"),ur.bind(void 0,"point"),ur.bind(void 0,"parseResult"),ur.bind(void 0,"stream"),ur.bind(void 0,"document")),pr=ur.bind(void 0,"mapping"),hr=ur.bind(void 0,"sequence"),mr=ur.bind(void 0,"keyValuePair"),fr=(ur.bind(void 0,"tag"),ur.bind(void 0,"scalar")),dr=ur.bind(void 0,"alias"),_r=(ur.bind(void 0,"directive"),ur.bind(void 0,"comment")),gr=St(Mt,{statics:{type:"stream"},propertyDescriptors:{content:{get(){return Array.isArray(this.children)?this.children.filter((e=>lr(e)||_r(e))):[]},enumerable:!0}}});const yr=m(0),vr=St(Mt,{statics:{type:"parseResult"},methods:{get rootNode(){return yr(this.children)}}});const br="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,r=arguments.length;n<r;){var s=arguments[n];if(null!=s)for(var i in s)R(i,s)&&(t[i]=s[i]);n+=1}return t};const wr=c((function(e,t){return br({},e,t)})),Er=St(Mt,{statics:{type:"directive"},props:{name:null,parameters:null},init({name:e=null,parameters:t={}}={}){this.name=e,this.parameters=wr({version:null,handle:null,prefix:null},t)}}),xr=St(Mt,{statics:{type:"document"}}),Sr=St(or,{}),Pr=St(Sr,{statics:{type:"mapping"},propertyDescriptors:{content:{get(){return Array.isArray(this.children)?this.children.filter(mr):[]},enumerable:!0}}}),Or=St(Mt,Fn,{statics:{type:"keyValuePair"},propertyDescriptors:{key:{get(){return this.children.filter((e=>fr(e)||pr(e)||hr(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>fr(e)||pr(e)||hr(e)||dr(e))(t)))[0]},enumerable:!0}}}),jr=St(Sr,{statics:{type:"sequence"},propertyDescriptors:{content:{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>hr(e)||pr(e)||fr(e)||dr(e))):[]},enumerable:!0}}}),Ar=St(Mt,{statics:{type:"comment"},props:{content:null},init({content:e=null}={}){this.content=e}}),Ir=St(Mt,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init({value:e=null,isUnexpected:t=!1}={}){this.value=e,this.isUnexpected=t}});const kr=class{hasError=!1;children=[];constructor(e){this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}get tag(){let{previousSibling:e}=this;for(;void 0!==e&&"tag"!==e.type;)({previousSibling:e}=e);return e}get anchor(){let{previousSibling:e}=this;for(;void 0!==e&&"anchor"!==e.type;)({previousSibling:e}=e);return e}get firstNamedChild(){return this.children.find((e=>e.isNamed))}setFieldName(e){return"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},Nr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Mr=e=>Array.isArray(e)||Qn(e),Tr=St({props:{schema:null},init(){const e=e=>{const t=nr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),n=nr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return rr({start:t,end:n})},t=t=>{const{tag:n}=t,r=(null==n?void 0:n.text)||("plain_scalar"===t.type?"?":"!"),s=t.type.endsWith("mapping")?Tt.Mapping:t.type.endsWith("sequence")?Tt.Sequence:Tt.Scalar,i=n?e(n):null;return $t({explicitName:r,kind:s,position:i})},n=t=>{const{anchor:n}=t;return void 0===n?null:sr({name:n.text,position:e(n)})},r=e=>t=>"string"==typeof(null==t?void 0:t.type)&&t.type.endsWith(e),s=r("scalar"),i=r("mapping"),o=r("sequence"),a=e=>("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.keyNode,c=e=>("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.valueNode,u=t=>{const n=nr({row:t.startPosition.row,column:t.startPosition.column,char:t.startIndex}),{keyNode:s}=t,i=(null==s?void 0:s.children)||[],o=i.find(r("tag")),a=i.find(r("anchor")),c=$t(void 0!==o?{explicitName:o.text,kind:Tt.Scalar,position:e(o)}:{explicitName:"?",kind:Tt.Scalar}),u=void 0!==a?sr({name:a.text,position:e(a)}):null;return ar({content:"",position:rr({start:n,end:n}),tag:c,anchor:u,styleGroup:Rn.Flow,style:$n.Plain})},l=t=>{const n=nr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),{valueNode:s}=t,i=(null==s?void 0:s.children)||[],o=i.find(r("tag")),a=i.find(r("anchor")),c=$t(void 0!==o?{explicitName:o.text,kind:Tt.Scalar,position:e(o)}:{explicitName:"?",kind:Tt.Scalar}),u=void 0!==a?sr({name:a.text,position:e(a)}):null;return ar({content:"",position:rr({start:n,end:n}),tag:c,anchor:u,styleGroup:Rn.Flow,style:$n.Plain})};this.enter=function(t){if(t instanceof kr&&!t.isNamed){const n=e(t),r=t.type||t.text,{isMissing:s}=t;return cr({value:r,position:n,isMissing:s})}},this.stream={enter(t){const n=e(t);return gr({children:t.children,position:n,isMissing:t.isMissing})},leave:e=>vr({children:[e]})},this.yaml_directive={enter(t){var n;const r=e(t),s=(null==t||null===(n=t.firstNamedChild)||void 0===n?void 0:n.text)||null;return Er({position:r,name:"%YAML",parameters:{version:s}})}},this.tag_directive={enter(t){const n=e(t),r=t.children[0],s=t.children[1],i=Er({position:n,name:"%TAG",parameters:{handle:(null==r?void 0:r.text)||null,prefix:(null==s?void 0:s.text)||null}});return this.schema.registerTagDirective(i),i}},this.reserved_directive={enter(t){const n=e(t),r=t.children[0],s=t.children[1],i=t.children[2];return Er({position:n,name:(null==r?void 0:r.text)||null,parameters:{handle:(null==s?void 0:s.text)||null,prefix:(null==i?void 0:i.text)||null}})}},this.document={enter(t){const n=e(t);return xr({children:t.children,position:n,isMissing:t.isMissing})},leave(e){e.children=e.children.flat()}},this.block_node={enter:e=>e.children},this.flow_node={enter(e){const[r]=e.children.slice(-1);if(s(r)||i(r)||o(r))return e.children;const a=nr({row:r.endPosition.row,column:r.endPosition.column,char:r.endIndex}),c=ar({content:"",anchor:n(r),tag:t(r),position:rr({start:a,end:a}),styleGroup:Rn.Flow,style:$n.Plain});return[...e.children,c]}},this.tag={enter:()=>null},this.anchor={enter:()=>null},this.block_mapping={enter(r){const s=e(r),i=t(r),o=n(r),a=Pr({children:r.children,position:s,anchor:o,tag:i,styleGroup:Rn.Block,style:$n.NextLine,isMissing:r.isMissing});return this.schema.resolve(a)}},this.block_mapping_pair={enter(t){const n=e(t),r=[...t.children];if(a(t)){const e=u(t);r.unshift(e)}if(c(t)){const e=l(t);r.push(e)}return Or({children:r,position:n,styleGroup:Rn.Block,isMissing:t.isMissing})}},this.flow_mapping={enter(r){const s=e(r),i=t(r),o=n(r),a=Pr({children:r.children,position:s,anchor:o,tag:i,styleGroup:Rn.Flow,style:$n.Explicit,isMissing:r.isMissing});return this.schema.resolve(a)}},this.flow_pair={enter(t){const n=e(t),r=[...t.children];if(a(t)){const e=u(t);r.unshift(e)}if(c(t)){const e=l(t);r.push(e)}return Or({children:r,position:n,styleGroup:Rn.Flow,isMissing:t.isMissing})}},this.keyValuePair={leave(e){e.children=e.children.flat()}},this.block_sequence={enter(r){const s=e(r),i=t(r),o=n(r),a=jr({children:r.children,position:s,anchor:o,tag:i,styleGroup:Rn.Block,style:$n.NextLine});return this.schema.resolve(a)}},this.block_sequence_item={enter(e){if(e.children.length>1)return e.children;const t=nr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[ar({content:"",anchor:null,tag:$t({explicitName:"?",kind:Tt.Scalar}),position:rr({start:t,end:t}),styleGroup:Rn.Flow,style:$n.Plain})]}},this.flow_sequence={enter(r){const s=e(r),i=t(r),o=n(r),a=jr({children:r.children.flat(),position:s,anchor:o,tag:i,styleGroup:Rn.Flow,style:$n.Explicit});return this.schema.resolve(a)}},this.sequence={leave(e){e.children=e.children.flat(1/0)}},this.plain_scalar={enter(r){const s=e(r),i=t(r),o=n(r),a=ar({content:r.text,anchor:o,tag:i,position:s,styleGroup:Rn.Flow,style:$n.Plain});return this.schema.resolve(a)}},this.single_quote_scalar={enter(r){const s=e(r),i=t(r),o=n(r),a=ar({content:r.text,anchor:o,tag:i,position:s,styleGroup:Rn.Flow,style:$n.SingleQuoted});return this.schema.resolve(a)}},this.double_quote_scalar={enter(r){const s=e(r),i=t(r),o=n(r),a=ar({content:r.text,anchor:o,tag:i,position:s,styleGroup:Rn.Flow,style:$n.DoubleQuoted});return this.schema.resolve(a)}},this.block_scalar={enter(r){const s=e(r),i=t(r),o=n(r),a=r.text.startsWith("|")?$n.Literal:r.text.startsWith(">")?$n.Folded:null,c=ar({content:r.text,anchor:o,tag:i,position:s,styleGroup:Rn.Block,style:a});return this.schema.resolve(c)}},this.comment={enter:e=>Ar({content:e.text})},this.ERROR=function(t,n,r,s){const i=e(t),o=Ir({children:t.children,position:i,isUnexpected:!t.hasError,isMissing:t.isMissing,value:t.text});return 0===s.length?vr({children:[o]}):o}}}),$r=Tr;const Rr=function(){return!1};function Fr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Cr=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=Fr(this.xf["@@transducer/step"](e,!1))),e},e}();function qr(e){return function(t){return new Cr(e,t)}}const Dr=c(O(["all"],qr,(function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}))),Lr=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Br=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Vr=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Ur=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof oe.ON)&&t.classes.includes(e),zr=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Hr=e=>e({hasMethod:Lr,hasBasicElementProps:Br,primitiveEq:Vr,isElementType:zr,hasClass:Ur}),Gr=Hr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.W_||e(n)&&t(void 0,n))),Wr=Hr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.RP||e(n)&&t("string",n))),Jr=Hr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.VL||e(n)&&t("number",n))),Kr=Hr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.zr||e(n)&&t("null",n))),Zr=Hr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.hh||e(n)&&t("boolean",n))),Xr=Hr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof oe.Sb||e(r)&&t("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),Yr=Hr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof oe.ON&&!(r instanceof oe.Sb)||e(r)&&t("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),Qr=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oe.c6||e(r)&&t("member",r)&&n(void 0,r))),es=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oe.EA||e(r)&&t("link",r)&&n(void 0,r))),ts=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oe.tK||e(r)&&t("ref",r)&&n(void 0,r))),ns=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof tt||e(r)&&t("annotation",r)&&n("array",r))),rs=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof rt||e(r)&&t("comment",r)&&n("string",r))),ss=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof it||e(r)&&t("parseResult",r)&&n("array",r))),is=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof at||e(r)&&t("sourceMap",r)&&n("array",r))),os=e=>zr("object",e)||zr("array",e)||zr("boolean",e)||zr("number",e)||zr("string",e)||zr("null",e)||zr("member",e),as=e=>is(e.meta.get("sourceMap")),cs=(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!Yr(n)&&Dr(bn(n.toValue()),e)},us=(e,t)=>0===e.length||Dr(bn(t.classes.toValue()),e);const ls=class extends It{constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const ps=class extends ls{};const hs=class extends ls{},ms=(e,t={})=>{const{visited:n=new WeakMap}=t,r={...t,visited:n};if(n.has(e))return n.get(e);if(e instanceof oe.KeyValuePair){const{key:t,value:s}=e,i=Gr(t)?ms(t,r):t,o=Gr(s)?ms(s,r):s,a=new oe.KeyValuePair(i,o);return n.set(e,a),a}if(e instanceof oe.rm){const t=e=>ms(e,r),s=[...e].map(t),i=new oe.rm(s);return n.set(e,i),i}if(e instanceof oe.O4){const t=e=>ms(e,r),s=[...e].map(t),i=new oe.O4(s);return n.set(e,i),i}if(Gr(e)){const t=_s(e);if(n.set(e,t),e.content)if(Gr(e.content))t.content=ms(e.content,r);else if(e.content instanceof oe.KeyValuePair)t.content=ms(e.content,r);else if(Array.isArray(e.content)){const n=e=>ms(e,r);t.content=e.content.map(n)}else t.content=e.content;else t.content=e.content;return t}throw new ps("Value provided to cloneDeep function couldn't be cloned",{value:e})};ms.safe=e=>{try{return ms(e)}catch{return e}};const fs=e=>{const{key:t,value:n}=e;return new oe.KeyValuePair(t,n)},ds=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=ms(e.meta)),e.attributes.length>0&&(t._attributes=ms(e.attributes)),Gr(e.content)){const n=e.content;t.content=ds(n)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof oe.KeyValuePair?t.content=fs(e.content):t.content=e.content;return t},_s=e=>{if(e instanceof oe.KeyValuePair)return fs(e);if(e instanceof oe.rm)return(e=>{const t=[...e];return new oe.rm(t)})(e);if(e instanceof oe.O4)return(e=>{const t=[...e];return new oe.O4(t)})(e);if(Gr(e))return ds(e);throw new hs("Value provided to cloneShallow function couldn't be cloned",{value:e})};_s.safe=e=>{try{return _s(e)}catch{return e}};const gs=e=>Xr(e)?"ObjectElement":Yr(e)?"ArrayElement":Qr(e)?"MemberElement":Wr(e)?"StringElement":Zr(e)?"BooleanElement":Jr(e)?"NumberElement":Kr(e)?"NullElement":es(e)?"LinkElement":ts(e)?"RefElement":void 0,ys=e=>Gr(e)?_s(e):er(e),vs=ve(gs,ht),bs={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},ws=(St({props:{result:[],predicate:Rr,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:n=this.returnOnFalse}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=n},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),(e,t,{keyMap:n=bs,...r}={})=>tr(e,t,{keyMap:n,nodeTypeGetter:gs,nodePredicate:vs,nodeCloneFn:ys,...r}));ws[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=bs,...r}={})=>tr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:n,nodeTypeGetter:gs,nodePredicate:vs,nodeCloneFn:ys,...r});const Es=u((function(e,t,n){var r,s={};for(r in n=n||{},t=t||{})R(r,t)&&(s[r]=R(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)R(r,n)&&!R(r,s)&&(s[r]=n[r]);return s}));const xs=u((function e(t,n,r){return Es((function(n,r,s){return Oe(r)&&Oe(s)?e(t,r,s):t(n,r,s)}),n,r)}));const Ss=c((function(e,t){return xs((function(e,t,n){return n}),e,t)}));const Ps=ge(0,-1);const Os=c((function(e,t){return e.apply(this,t)}));const js=J(Ke);var As=a((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():v(e)?[]:h(e)?"":Oe(e)?{}:C(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const Is=As;const ks=a((function(e){return null!=e&&te(e,Is(e))}));const Ns=$(1,Ke(Array.isArray)?Array.isArray:ve(Y,we("Array")));const Ms=qe(Ns,ks);const Ts=$(3,(function(e,t,n){var r=$e(e,n),s=$e(Ps(e),n);if(!js(r)&&!Ms(e)){var i=ue(r,s);return Os(i,t)}})),$s=()=>({predicates:{...e},namespace:pt}),Rs={toolboxCreator:$s,visitorOptions:{nodeTypeGetter:gs,exposeEdits:!0}},Fs=(e,t,n={})=>{if(0===t.length)return e;const r=Ss(Rs,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),a=t.map((e=>e(o))),c=((e,{visitFnGetter:t=Zn,nodeTypeGetter:n=Yn,breakSymbol:r=Xn,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,...l){let p=u,h=!1;for(let m=0;m<e.length;m+=1)if(c[m]===a){const a=t(e[m],n(p),!1);if("function"==typeof a){const t=a.call(e[m],p,...l);if(t===i)c[m]=u;else if(t===r)c[m]=r;else{if(t===s)return t;if(void 0!==t){if(!o)return t;p=t,h=!0}}}}return h?p:void 0},leave(s,...o){for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],n(s),!0);if("function"==typeof a){const t=a.call(e[u],s,...o);if(t===r)c[u]=r;else if(void 0!==t&&t!==i)return t}}else c[u]===s&&(c[u]=a)}}})(a.map(d({},"visitor")),{...i});a.forEach(Ts(["pre"],[]));const u=ws(e,c,i);return a.forEach(Ts(["post"],[])),u},Cs=(e,{Type:t,plugins:n=[]})=>{const r=new t(e);return Fs(r,n,{toolboxCreator:$s,visitorOptions:{nodeTypeGetter:gs}})},qs=e=>(t,n={})=>Cs(t,{...n,Type:e});oe.Sb.refract=qs(oe.Sb),oe.ON.refract=qs(oe.ON),oe.RP.refract=qs(oe.RP),oe.hh.refract=qs(oe.hh),oe.zr.refract=qs(oe.zr),oe.VL.refract=qs(oe.VL),oe.EA.refract=qs(oe.EA),oe.tK.refract=qs(oe.tK),tt.refract=qs(tt),rt.refract=qs(rt),it.refract=qs(it),at.refract=qs(at);const Ds={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...bs},Ls=e=>Gr(e)?gs(e):Yn(e),Bs=e=>Gr(e)||Qn(e)||Array.isArray(e),Vs=St({props:{sourceMap:!1,processedDocumentCount:0,annotations:[],namespace:null},init(){const e=(e,t)=>{if(!this.sourceMap)return;const n=new at;n.position=e.position,n.astNode=e,t.meta.set("sourceMap",n)};this.namespace=lt(),this.annotations=[],this.stream={leave(e){const t=new it;t._content=e.children.flat(1);const n=t.findElements(os);if(n.length>0){n[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}},this.comment=function(t){if(0===this.processedDocumentCount){const n=new rt(t.content);return e(t,n),n}return null},this.document=function(t){const n=1===this.processedDocumentCount,r=this.processedDocumentCount>=1;if(n){const n=new tt("Only first document within YAML stream will be used. Rest will be discarded.");n.classes.push("warning"),e(t,n),this.annotations.push(n)}return r?null:(this.processedDocumentCount+=1,t.children)},this.mapping=function(t){const n=new oe.Sb;return n._content=t.children,e(t,n),n},this.keyValuePair=function(t){const n=new oe.c6;return n.content.key=t.key,n.content.value=t.value,e(t,n),t.children.filter((e=>"error"===e.type)).forEach((e=>{this.error(e,t,[],[t])})),n},this.sequence=function(t){const n=new oe.ON;return n._content=t.children,e(t,n),n},this.scalar=function(t){const n=this.namespace.toElement(t.content);return""===t.content&&t.style===$n.Plain&&(n.classes.push("yaml-e-node"),n.classes.push("yaml-e-scalar")),e(t,n),n},this.literal=function(t){if(t.isMissing){const n=`(Missing ${t.value})`,r=new tt(n);r.classes.push("warning"),e(t,r),this.annotations.push(r)}return null},this.error=function(t,n,r,s){const i=t.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",o=new tt(i);if(o.classes.push("error"),e(t,o),0===s.length){const e=new it;return e.push(o),e}return this.annotations.push(o),null}}}),Us=Vs;class zs{constructor(e){this.cursor=e}stream(){return new kr(this.cursor)}yaml_directive(){return new kr(this.cursor)}tag_directive(){return new kr(this.cursor)}reserved_directive(){return new kr(this.cursor)}document(){return new kr(this.cursor)}block_node(){return new kr(this.cursor).setFieldName(this.cursor)}flow_node(){return new kr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new kr(this.cursor)}block_mapping_pair(){return new kr(this.cursor)}flow_mapping(){return new kr(this.cursor)}flow_pair(){return new kr(this.cursor)}block_sequence(){return new kr(this.cursor)}block_sequence_item(){return new kr(this.cursor)}flow_sequence(){return new kr(this.cursor)}plain_scalar(){return new kr(this.cursor)}single_quote_scalar(){return new kr(this.cursor)}double_quote_scalar(){return new kr(this.cursor)}block_scalar(){return new kr(this.cursor)}ERROR(){return new kr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new kr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new zs(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new zs(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Hs=zs,Gs=(e,{sourceMap:t=!1}={})=>{const n=e.walk(),r=new Hs(n),[s]=Array.from(r),i=$r(),o=Us(),a=Kn(),c=tr(s,i,{keyMap:Nr,nodePredicate:Mr,state:{schema:a,sourceMap:t}});return tr(c.rootNode,o,{keyMap:Ds,nodeTypeGetter:Ls,nodePredicate:Bs,state:{sourceMap:t}})};class Ws extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="swagger",this.classes.push("api")}get swagger(){return this.get("swagger")}set swagger(e){this.set("swagger",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get host(){return this.get("host")}set host(e){this.set("host",e)}get basePath(){return this.get("basePath")}set basePath(e){this.set("basePath",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get consumes(){return this.get("consumes")}set consumes(e){this.set("consumes",e)}get produces(){return this.get("produces")}set produces(e){this.set("produces",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get securityDefinitions(){return this.get("securityDefinitions")}set securityDefinitions(e){this.set("securityDefinitions",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Js=Ws;class Ks extends oe.RP{constructor(e,t,n){super(e,t,n),this.element="swaggerVersion",this.classes.push("spec-version"),this.classes.push("version")}}const Zs=Ks;class Xs extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const Ys=Xs;class Qs extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const ei=Qs;class ti extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const ni=ti;class ri extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="paths"}}const si=ri;class ii extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const oi=ii;class ai extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.hh(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}}const ci=ai;class ui extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const li=ui;const pi=class extends vt{};class hi extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("idProp",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const mi=hi;class fi extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const di=fi;class _i extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const gi=_i;class yi extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const vi=yi;const bi=c((function(e,t){return y((function(n,r){return n[r]=e(t[r],r,t),n}),{},U(t))}));const wi=a((function(e){return null==e}));const Ei=c((function(e,t){if(0===e.length||wi(t))return!1;for(var n=t,r=0;r<e.length;){if(wi(n)||!R(e[r],n))return!1;n=n[e[r]],r+=1}return!0}));var xi=c((function(e,t){return Ei([e],t)}));const Si=xi;const Pi=u((function(e,t,n){return e(f(t,n))})),Oi=(e,t)=>{const n=l(e,t);return bi((e=>{if(Qe(e)&&Si("$ref",e)&&Pi(ht,"$ref",e)){const t=$e(["$ref"],e),r=wn("#/",t);return $e(r.split("/"),n)}return Qe(e)?Oi(e,n):e}),e)},ji=St({props:{element:null},methods:{copyMetaAndAttributes(e,t){as(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),Ai=St(ji,{methods:{enter(e){return this.element=ms(e),Xn}}});const Ii=ne(re());const ki=function(){return!0},Ni=e=>"string"==typeof(null==e?void 0:e.type)?e.type:gs(e),Mi={EphemeralObject:["content"],EphemeralArray:["content"],...bs},Ti=(e,t,{keyMap:n=Mi,...r}={})=>ws(e,t,{keyMap:n,nodeTypeGetter:Ni,nodePredicate:ki,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});Ti[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Mi,...n}={})=>ws[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Ni,nodePredicate:ki,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});const $i=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const Ri=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}},Fi=St.init((function(){const e=new WeakMap;this.BooleanElement=function(e){return e.toValue()},this.NumberElement=function(e){return e.toValue()},this.StringElement=function(e){return e.toValue()},this.NullElement=function(){return null},this.ObjectElement={enter(t){if(e.has(t))return e.get(t).toReference();const n=new Ri(t.content);return e.set(t,n),n}},this.EphemeralObject={leave:e=>e.toObject()},this.MemberElement={enter:e=>[e.key,e.value]},this.ArrayElement={enter(t){if(e.has(t))return e.get(t).toReference();const n=new $i(t.content);return e.set(t,n),n}},this.EphemeralArray={leave:e=>e.toArray()}})),Ci=e=>Gr(e)?Wr(e)||Jr(e)||Zr(e)||Kr(e)?e.toValue():Ti(e,Fi()):e;const qi=c((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n})),Di=e=>{if(Gr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Li={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...bs},Bi=St(ji,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return qi(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=$e(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return Re(Ke,["visitors",...e],this.specObj)?$e(["visitors",...e],this.specObj):$e(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return this.retrieveVisitor(e)({...n,...t})},toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n),s=Object.getPrototypeOf(r);return se(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?ms(t):(ws(t,r,{keyMap:Li,nodeTypeGetter:Di,...n}),r.element)}}}),Vi=St(Bi,{props:{specPath:Ii,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(Wr(r)&&n.includes(Ci(r))&&!this.ignoredFields.includes(Ci(r))){const n=this.toRefractedElement([...t,"fixedFields",Ci(r)],e),i=new oe.c6(ms(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ci(r))||this.element.content.push(ms(s))})),this.copyMetaAndAttributes(e,this.element),Xn}}}),Ui=St(Vi,Ai,{props:{specPath:ne(["document","objects","JSONSchema"])},init(){this.element=new mi}}),zi=Ai,Hi=Ai,Gi=Ai,Wi=Ai,Ji=Ai,Ki=Ai,Zi=Ai,Xi=Ai,Yi=Ai,Qi=Ai,eo=St({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),to=e=>Xr(e)&&e.hasKey("$ref"),no=St(Bi,eo,Ai,{methods:{ObjectElement(e){const t=to(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Xn},ArrayElement(e){return this.element=new oe.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=to(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),Xn}}}),ro=Ai,so=Ai,io=Ai,oo=Ai,ao=Ai,co=St(Ai,{methods:{ArrayElement(e){return this.element=ms(e),this.element.classes.push("json-schema-required"),Xn}}});const uo=a((function(e){return $(de(ze,0,He("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const lo=c((function(e,t){return e||t}));const po=J($(1,qe(Le,c((function(e,t){return Fe(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:W(lo)(e,t)}))(Ve,Ke))));const ho=J(ks);const mo=uo([ht,po,ho]),fo=St(Bi,{props:{fieldPatternPredicate:Rr,specPath:Ii,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,n)=>{if(!this.ignoredFields.includes(Ci(t))&&this.fieldPatternPredicate(Ci(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new oe.c6(ms(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ci(t))||this.element.content.push(ms(n))})),this.copyMetaAndAttributes(e,this.element),Xn}}}),_o=St(fo,{props:{fieldPatternPredicate:mo}}),go=St(_o,eo,Ai,{props:{specPath:e=>to(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sb,this.element.classes.push("json-schema-properties")}}),yo=St(_o,eo,Ai,{props:{specPath:e=>to(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sb,this.element.classes.push("json-schema-patternProperties")}}),vo=St(_o,eo,Ai,{props:{specPath:e=>to(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sb,this.element.classes.push("json-schema-dependencies")}}),bo=St(Ai,{methods:{ArrayElement(e){return this.element=ms(e),this.element.classes.push("json-schema-enum"),Xn}}}),wo=St(Ai,{methods:{StringElement(e){return this.element=ms(e),this.element.classes.push("json-schema-type"),Xn},ArrayElement(e){return this.element=ms(e),this.element.classes.push("json-schema-type"),Xn}}}),Eo=St(Bi,eo,Ai,{init(){this.element=new oe.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=to(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),Xn}}}),xo=St(Bi,eo,Ai,{init(){this.element=new oe.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=to(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),Xn}}}),So=St(Bi,eo,Ai,{init(){this.element=new oe.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=to(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),Xn}}}),Po=St(_o,eo,Ai,{props:{specPath:e=>to(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sb,this.element.classes.push("json-schema-definitions")}}),Oo=Ai,jo=Ai,Ao=Ai,Io=Ai,ko=Ai,No=St(Bi,eo,Ai,{init(){this.element=new oe.ON,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xn}}}),Mo=Ai,To=St(Vi,Ai,{props:{specPath:ne(["document","objects","JSONReference"])},init(){this.element=new di},methods:{ObjectElement(e){const t=Vi.compose.methods.ObjectElement.call(this,e);return Wr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),$o=St(Ai,{methods:{StringElement(e){return this.element=ms(e),this.element.classes.push("reference-value"),Xn}}});const Ro=u((function(e,t,n){return $(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))}));const Fo=a((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}}));var Co=c((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const qo=Co;const Do=a(Fr);const Lo=J(wi);const Bo=qe(Ns,ho);function Vo(e){return function(e){if(Array.isArray(e))return Uo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Uo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uo(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var zo=ve(qo(Fo((function(e,t){return e.length>t.length}))),yr,f("length")),Ho=Ft((function(e,t,n){var r=n.apply(void 0,Vo(e));return Lo(r)?Do(r):t}));const Go=Ro(Bo,(function(e){var t=zo(e);return $(t,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return de(Ho(n),void 0,e)}))}),re),Wo=St(Bi,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Ro(e,ne(t),re))),n=Go(t)(e);return this.element=this.toRefractedElement(n,e),Xn}}}),Jo=St(Wo,{props:{alternator:[{predicate:to,specPath:["document","objects","JSONReference"]},{predicate:ki,specPath:["document","objects","JSONSchema"]}]}}),Ko={visitors:{value:Ai,JSONSchemaOrJSONReferenceVisitor:Jo,document:{objects:{JSONSchema:{$visitor:Ui,fixedFields:{id:zi,$schema:Hi,multipleOf:Gi,maximum:Wi,exclusiveMaximum:Ji,minimum:Ki,exclusiveMinimum:Zi,maxLength:Xi,minLength:Yi,pattern:Qi,additionalItems:Jo,items:no,maxItems:ro,minItems:so,uniqueItems:io,maxProperties:oo,minProperties:ao,required:co,properties:go,additionalProperties:Jo,patternProperties:yo,dependencies:vo,enum:bo,type:wo,allOf:Eo,anyOf:xo,oneOf:So,not:Jo,definitions:Po,title:Oo,description:jo,default:Ao,format:Io,base:ko,links:No,media:{$ref:"#/visitors/document/objects/Media"},readOnly:Mo}},JSONReference:{$visitor:To,fixedFields:{$ref:$o}},Media:{$visitor:St(Vi,Ai,{props:{specPath:ne(["document","objects","Media"])},init(){this.element=new gi}}),fixedFields:{binaryEncoding:Ai,type:Ai}},LinkDescription:{$visitor:St(Vi,Ai,{props:{specPath:ne(["document","objects","LinkDescription"])},init(){this.element=new vi}}),fixedFields:{href:Ai,rel:Ai,title:Ai,targetSchema:Jo,mediaType:Ai,method:Ai,encType:Ai,schema:Jo}}}}}},Zo=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof mi||e(r)&&t("JSONSchemaDraft4",r)&&n("object",r))),Xo=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof di||e(r)&&t("JSONReference",r)&&n("object",r))),Yo=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof gi||e(r)&&t("media",r)&&n("object",r))),Qo=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof vi||e(r)&&t("linkDescription",r)&&n("object",r))),ea={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",mi),t.register("jSONReference",di),t.register("media",gi),t.register("linkDescription",vi),t}},ta=()=>{const e=lt(ea);return{predicates:{...t,isStringElement:Wr},namespace:e}},na=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=Ko}={})=>{const s=(0,oe.Qc)(e),i=Oi(r),o=Ts(t,[],i);return ws(s,o,{state:{specObj:i}}),Fs(o.element,n,{toolboxCreator:ta,visitorOptions:{keyMap:Li,nodeTypeGetter:Di}})},ra=e=>(t,n={})=>na(t,{specPath:e,...n});mi.refract=ra(["visitors","document","objects","JSONSchema","$visitor"]),di.refract=ra(["visitors","document","objects","JSONReference","$visitor"]),gi.refract=ra(["visitors","document","objects","Media","$visitor"]),vi.refract=ra(["visitors","document","objects","LinkDescription","$visitor"]);const sa=class extends mi{constructor(e,t,n){super(e,t,n),this.element="parameter",this.classes.push("json-schema-draft-4")}get idProp(){throw new pi("idProp getter in Parameter class is not not supported.")}set idProp(e){throw new pi("idProp setter in Parameter class is not not supported.")}get $schema(){throw new pi("$schema getter in Parameter class is not not supported.")}set $schema(e){throw new pi("$schema setter in Parameter class is not not supported.")}get additionalItems(){throw new pi("additionalItems getter in Parameter class is not not supported.")}set additionalItems(e){throw new pi("additionalItems setter in Parameter class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new pi("maxProperties getter in Parameter class is not not supported.")}set maxProperties(e){throw new pi("maxProperties setter in Parameter class is not not supported.")}get minProperties(){throw new pi("minProperties getter in Parameter class is not not supported.")}set minProperties(e){throw new pi("minProperties setter in Parameter class is not not supported.")}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){throw new pi("properties getter in Parameter class is not not supported.")}set properties(e){throw new pi("properties setter in Parameter class is not not supported.")}get additionalProperties(){throw new pi("additionalProperties getter in Parameter class is not not supported.")}set additionalProperties(e){throw new pi("additionalProperties setter in Parameter class is not not supported.")}get patternProperties(){throw new pi("patternProperties getter in Parameter class is not not supported.")}set patternProperties(e){throw new pi("patternProperties setter in Parameter class is not not supported.")}get dependencies(){throw new pi("dependencies getter in Parameter class is not not supported.")}set dependencies(e){throw new pi("dependencies setter in Parameter class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new pi("allOf getter in Parameter class is not not supported.")}set allOf(e){throw new pi("allOf setter in Parameter class is not not supported.")}get anyOf(){throw new pi("anyOf getter in Parameter class is not not supported.")}set anyOf(e){throw new pi("anyOf setter in Parameter class is not not supported.")}get oneOf(){throw new pi("oneOf getter in Parameter class is not not supported.")}set oneOf(e){throw new pi("oneOf setter in Parameter class is not not supported.")}get not(){throw new pi("not getter in Parameter class is not not supported.")}set not(e){throw new pi("not setter in Parameter class is not not supported.")}get definitions(){throw new pi("definitions getter in Parameter class is not not supported.")}set definitions(e){throw new pi("definitions setter in Parameter class is not not supported.")}get title(){throw new pi("title getter in Parameter class is not not supported.")}set title(e){throw new pi("title setter in Parameter class is not not supported.")}get description(){return this.get("description")}set description(e){this.set("description,",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){throw new pi("base getter in Parameter class is not not supported.")}set base(e){throw new pi("base setter in Parameter class is not not supported.")}get links(){throw new pi("links getter in Parameter class is not not supported.")}set links(e){throw new pi("links setter in Parameter class is not not supported.")}get media(){throw new pi("media getter in Parameter class is not not supported.")}set media(e){throw new pi("media setter in Parameter class is not not supported.")}get readOnly(){throw new pi("readOnly getter in Parameter class is not not supported.")}set readOnly(e){throw new pi("readOnly setter in Parameter class is not not supported.")}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const ia=class extends mi{constructor(e,t,n){super(e,t,n),this.element="items",this.classes.push("json-schema-draft-4")}get idProp(){throw new pi("idProp getter in Items class is not not supported.")}set idProp(e){throw new pi("idProp setter in Items class is not not supported.")}get $schema(){throw new pi("$schema getter in Items class is not not supported.")}set $schema(e){throw new pi("$schema setter in Items class is not not supported.")}get additionalItems(){throw new pi("additionalItems getter in Items class is not not supported.")}set additionalItems(e){throw new pi("additionalItems setter in Items class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new pi("maxProperties getter in Items class is not not supported.")}set maxProperties(e){throw new pi("maxProperties setter in Items class is not not supported.")}get minProperties(){throw new pi("minProperties getter in Items class is not not supported.")}set minProperties(e){throw new pi("minProperties setter in Items class is not not supported.")}get required(){throw new pi("required getter in Items class is not not supported.")}set required(e){throw new pi("required setter in Items class is not not supported.")}get properties(){throw new pi("properties getter in Items class is not not supported.")}set properties(e){throw new pi("properties setter in Items class is not not supported.")}get additionalProperties(){throw new pi("additionalProperties getter in Items class is not not supported.")}set additionalProperties(e){throw new pi("additionalProperties setter in Items class is not not supported.")}get patternProperties(){throw new pi("patternProperties getter in Items class is not not supported.")}set patternProperties(e){throw new pi("patternProperties setter in Items class is not not supported.")}get dependencies(){throw new pi("dependencies getter in Items class is not not supported.")}set dependencies(e){throw new pi("dependencies setter in Items class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new pi("allOf getter in Items class is not not supported.")}set allOf(e){throw new pi("allOf setter in Items class is not not supported.")}get anyOf(){throw new pi("anyOf getter in Items class is not not supported.")}set anyOf(e){throw new pi("anyOf setter in Items class is not not supported.")}get oneOf(){throw new pi("oneOf getter in Items class is not not supported.")}set oneOf(e){throw new pi("oneOf setter in Items class is not not supported.")}get not(){throw new pi("not getter in Items class is not not supported.")}set not(e){throw new pi("not setter in Items class is not not supported.")}get definitions(){throw new pi("definitions getter in Items class is not not supported.")}set definitions(e){throw new pi("definitions setter in Items class is not not supported.")}get title(){throw new pi("title getter in Items class is not not supported.")}set title(e){throw new pi("title setter in Items class is not not supported.")}get description(){throw new pi("description getter in Items class is not not supported.")}set description(e){throw new pi("description setter in Items class is not not supported.")}get base(){throw new pi("base getter in Items class is not not supported.")}set base(e){throw new pi("base setter in Items class is not not supported.")}get links(){throw new pi("links getter in Items class is not not supported.")}set links(e){throw new pi("links setter in Items class is not not supported.")}get media(){throw new pi("media getter in Items class is not not supported.")}set media(e){throw new pi("media setter in Items class is not not supported.")}get readOnly(){throw new pi("readOnly getter in Items class is not not supported.")}set readOnly(e){throw new pi("readOnly setter in Items class is not not supported.")}};class oa extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const aa=oa;class ca extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}}const ua=ca;class la extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="headers"}}const pa=la;class ha extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="example"}}const ma=ha;const fa=class extends mi{constructor(e,t,n){super(e,t,n),this.element="header",this.classes.push("json-schema-draft-4")}get idProp(){throw new pi("idProp getter in Header class is not not supported.")}set idProp(e){throw new pi("idProp setter in Header class is not not supported.")}get $schema(){throw new pi("$schema getter in Header class is not not supported.")}set $schema(e){throw new pi("$schema setter in Header class is not not supported.")}get additionalItems(){throw new pi("additionalItems getter in Header class is not not supported.")}set additionalItems(e){throw new pi("additionalItems setter in Header class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new pi("maxProperties getter in Header class is not not supported.")}set maxProperties(e){throw new pi("maxProperties setter in Header class is not not supported.")}get minProperties(){throw new pi("minProperties getter in Header class is not not supported.")}set minProperties(e){throw new pi("minProperties setter in Header class is not not supported.")}get required(){throw new pi("required getter in Header class is not not supported.")}set required(e){throw new pi("required setter in Header class is not not supported.")}get properties(){throw new pi("properties getter in Header class is not not supported.")}set properties(e){throw new pi("properties setter in Header class is not not supported.")}get additionalProperties(){throw new pi("additionalProperties getter in Header class is not not supported.")}set additionalProperties(e){throw new pi("additionalProperties setter in Header class is not not supported.")}get patternProperties(){throw new pi("patternProperties getter in Header class is not not supported.")}set patternProperties(e){throw new pi("patternProperties setter in Header class is not not supported.")}get dependencies(){throw new pi("dependencies getter in Header class is not not supported.")}set dependencies(e){throw new pi("dependencies setter in Header class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new pi("allOf getter in Header class is not not supported.")}set allOf(e){throw new pi("allOf setter in Header class is not not supported.")}get anyOf(){throw new pi("anyOf getter in Header class is not not supported.")}set anyOf(e){throw new pi("anyOf setter in Header class is not not supported.")}get oneOf(){throw new pi("oneOf getter in Header class is not not supported.")}set oneOf(e){throw new pi("oneOf setter in Header class is not not supported.")}get not(){throw new pi("not getter in Header class is not not supported.")}set not(e){throw new pi("not setter in Header class is not not supported.")}get definitions(){throw new pi("definitions getter in Header class is not not supported.")}set definitions(e){throw new pi("definitions setter in Header class is not not supported.")}get title(){throw new pi("title getter in Header class is not not supported.")}set title(e){throw new pi("title setter in Header class is not not supported.")}get base(){throw new pi("base getter in Header class is not not supported.")}set base(e){throw new pi("base setter in Header class is not not supported.")}get links(){throw new pi("links getter in Header class is not not supported.")}set links(e){throw new pi("links setter in Header class is not not supported.")}get media(){throw new pi("media getter in Header class is not not supported.")}set media(e){throw new pi("media setter in Header class is not not supported.")}get readOnly(){throw new pi("readOnly getter in Header class is not not supported.")}set readOnly(e){throw new pi("readOnly setter in Header class is not not supported.")}};class da extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const _a=da;class ga extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const ya=ga;const va=class extends mi{constructor(e,t,n){super(e,t,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new pi("idProp getter in Schema class is not not supported.")}set idProp(e){throw new pi("idProp setter in Schema class is not not supported.")}get $schema(){throw new pi("$schema getter in Schema class is not not supported.")}set $schema(e){throw new pi("$schema setter in Schema class is not not supported.")}get additionalItems(){throw new pi("additionalItems getter in Schema class is not not supported.")}set additionalItems(e){throw new pi("additionalItems setter in Schema class is not not supported.")}get patternProperties(){throw new pi("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new pi("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new pi("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new pi("dependencies setter in Schema class is not not supported.")}get anyOf(){throw new pi("anyOf getter in Schema class is not not supported.")}set anyOf(e){throw new pi("anyOf setter in Schema class is not not supported.")}get oneOf(){throw new pi("oneOf getter in Schema class is not not supported.")}set oneOf(e){throw new pi("oneOf setter in Schema class is not not supported.")}get not(){throw new pi("not getter in Schema class is not not supported.")}set not(e){throw new pi("not setter in Schema class is not not supported.")}get definitions(){throw new pi("definitions getter in Schema class is not not supported.")}set definitions(e){throw new pi("definitions setter in Schema class is not not supported.")}get base(){throw new pi("base getter in Schema class is not not supported.")}set base(e){throw new pi("base setter in Schema class is not not supported.")}get links(){throw new pi("links getter in Schema class is not not supported.")}set links(e){throw new pi("links setter in Schema class is not not supported.")}get media(){throw new pi("media getter in Schema class is not not supported.")}set media(e){throw new pi("media setter in Schema class is not not supported.")}};class ba extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const wa=ba;class Ea extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="definitions"}}const xa=Ea;class Sa extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="parametersDefinitions"}}const Pa=Sa;class Oa extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="responsesDefinitions"}}const ja=Oa;class Aa extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="securityDefinitions"}}const Ia=Aa;class ka extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get flow(){return this.get("flow")}set flow(e){this.set("flow",e)}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Na=ka;class Ma extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="scopes"}}const Ta=Ma;class $a extends oe.Sb{constructor(e,t,n){super(e,t,n),this.element="securityRequirement"}}const Ra=$a,Fa=St({props:{element:null},methods:{copyMetaAndAttributes(e,t){as(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),Ca=St(Fa,{methods:{enter(e){return this.element=ms(e),Xn}}}),qa=e=>{if(Gr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Da={SwaggerElement:["content"],InfoElement:["content"],ContactElement:["content"],LicenseElement:["content"],PathsElement:["content"],PathItemElement:["content"],OperationElement:["content"],ExternalDocumentationElement:["content"],ParameterElement:["content"],ItemsElement:["content"],ExampleElement:["content"],ResponsesElement:["content"],ResponseElement:["content"],HeadersElement:["content"],HeaderElement:["content"],TagElement:["content"],ReferenceElement:["content"],JSONReferenceElement:["content"],SchemaElement:["content"],XmlElement:["content"],DefinitionsElement:["content"],ParametersDefinitionsElement:["content"],ResponsesDefinitionsElement:["content"],SecurityDefinitionsElement:["content"],SecuritySchemeElement:["content"],ScopesElement:["content"],SecurityRequirementElement:["content"],...bs},La=St(Fa,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return qi(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=$e(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return Re(Ke,["visitors",...e],this.specObj)?$e(["visitors",...e],this.specObj):$e(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return this.retrieveVisitor(e)({...n,...t})},toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n),s=Object.getPrototypeOf(r);return se(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?ms(t):(ws(t,r,{keyMap:Da,nodeTypeGetter:qa,...n}),r.element)}}});var Ba=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=I,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Fr(n):n},e}();function Va(e){return function(t){return new Ba(e,t)}}const Ua=c(O(["take"],Va,(function(e,t){return ge(0,e<0?1/0:e,t)})));const za=c((function(e,t){return te(Ua(e.length,t),e)})),Ha=e=>Wr(e.key)&&za("x-",Ci(e.key)),Ga=e=>Xr(e)&&e.hasKey("$ref"),Wa=St(La,{props:{specPath:Ii,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:Ha},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:n=this.canSupportSpecificationExtensions,specificationExtensionPredicate:r=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=n,this.specificationExtensionPredicate=r},methods:{ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(Wr(r)&&n.includes(Ci(r))&&!this.ignoredFields.includes(Ci(r))){const n=this.toRefractedElement([...t,"fixedFields",Ci(r)],e),i=new oe.c6(ms(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(Ci(r))||this.element.content.push(ms(s))})),this.copyMetaAndAttributes(e,this.element),Xn}}}),Ja=St(Wa,Ca,{props:{specPath:ne(["document","objects","Swagger"]),canSupportSpecificationExtensions:!0},init(){this.element=new Js}}),Ka=St(La,Ca,{methods:{StringElement(e){const t=new Zs(Ci(e));return this.copyMetaAndAttributes(e,t),this.element=t,Xn}}});class Za extends oe.ON{static primaryClass="swagger-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(Za.primaryClass)}}const Xa=Za,Ya=St(Ca,{init(){this.element=new Xa},methods:{ArrayElement(e){return this.element=this.element.concat(ms(e)),Xn}}});class Qa extends oe.ON{static primaryClass="swagger-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(Qa.primaryClass)}}const ec=Qa,tc=St(Ca,{init(){this.element=new ec},methods:{ArrayElement(e){return this.element=this.element.concat(ms(e)),Xn}}});class nc extends oe.ON{static primaryClass="swagger-produces";constructor(e,t,n){super(e,t,n),this.classes.push(nc.primaryClass)}}const rc=nc,sc=St(Ca,{init(){this.element=new rc},methods:{ArrayElement(e){return this.element=this.element.concat(ms(e)),Xn}}});class ic extends oe.ON{static primaryClass="swagger-security";constructor(e,t,n){super(e,t,n),this.classes.push(ic.primaryClass),this.classes.push("security")}}const oc=ic,ac=St(La,Ca,{init(){this.element=new oc},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xn}}});class cc extends oe.ON{static primaryClass="swagger-tags";constructor(e,t,n){super(e,t,n),this.classes.push(cc.primaryClass)}}const uc=cc,lc=St(La,Ca,{init(){this.element=new uc},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Tag"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xn}}}),pc=St(Wa,Ca,{props:{specPath:ne(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ys}}),hc=St(Ca,{methods:{StringElement(e){return this.element=ms(e),this.element.classes.push("api-version"),this.element.classes.push("version"),Xn}}}),mc=St(Wa,Ca,{props:{specPath:ne(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new ei}}),fc=St(Wa,Ca,{props:{specPath:ne(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new ni}});const dc=c((function(e,t){if(n=e,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Me(e));var n;return Pt(e).test(t)})),_c=St(La,{props:{fieldPatternPredicate:Rr,specPath:Ii,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:Ha},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:n=this.canSupportSpecificationExtensions,specificationExtensionPredicate:r=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=n,this.specificationExtensionPredicate=r},methods:{ObjectElement(e){return e.forEach(((e,t,n)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else if(!this.ignoredFields.includes(Ci(t))&&this.fieldPatternPredicate(Ci(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new oe.c6(ms(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ci(t))||this.element.content.push(ms(n))})),this.copyMetaAndAttributes(e,this.element),Xn}}}),gc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Js||e(r)&&t("swagger",r)&&n("object",r))),yc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Zs||e(r)&&t("swaggerVersion",r)&&n("string",r))),vc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ys||e(r)&&t("info",r)&&n("object",r))),bc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ni||e(r)&&t("license",r)&&n("object",r))),wc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ei||e(r)&&t("contact",r)&&n("object",r))),Ec=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof si||e(r)&&t("paths",r)&&n("object",r))),xc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oi||e(r)&&t("pathItem",r)&&n("object",r))),Sc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ci||e(r)&&t("operation",r)&&n("object",r))),Pc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof li||e(r)&&t("externalDocumentation",r)&&n("object",r))),Oc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof sa||e(r)&&t("parameter",r)&&n("object",r))),jc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ia||e(r)&&t("items",r)&&n("object",r))),Ac=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof aa||e(r)&&t("responses",r)&&n("object",r))),Ic=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ua||e(r)&&t("response",r)&&n("object",r))),kc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof pa||e(r)&&t("headers",r)&&n("object",r))),Nc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ma||e(r)&&t("example",r)&&n("object",r))),Mc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof fa||e(r)&&t("header",r)&&n("object",r))),Tc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof _a||e(r)&&t("tag",r)&&n("object",r))),$c=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ya||e(r)&&t("reference",r)&&n("object",r))),Rc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof va||e(r)&&t("schema",r)&&n("object",r))),Fc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof wa||e(r)&&t("xml",r)&&n("object",r))),Cc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ja||e(r)&&t("responsesDefinitions",r)&&n("object",r))),qc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ia||e(r)&&t("securityDefinitions",r)&&n("object",r))),Dc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof xa||e(r)&&t("definitions",r)&&n("object",r))),Lc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Pa||e(r)&&t("parametersDefinitions",r)&&n("object",r))),Bc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Na||e(r)&&t("securityScheme",r)&&n("object",r))),Vc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ta||e(r)&&t("scopes",r)&&n("object",r))),Uc=Hr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ra||e(r)&&t("securityRequirement",r)&&n("object",r))),zc=St(_c,Ca,{props:{fieldPatternPredicate:dc(/^\/(?<path>.*)$/),specPath:ne(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new si},methods:{ObjectElement(e){const t=_c.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach(((e,t)=>{e.setMetaProperty("path",ms(t))})),t}}}),Hc=St(Wa,Ca,{props:{specPath:ne(["document","objects","PathItem"])},init(){this.element=new oi},methods:{ObjectElement(e){const t=Wa.compose.methods.ObjectElement.call(this,e);return this.element.filter(Sc).forEach(((e,t)=>{const n=ms(t);n.content=Ci(n).toUpperCase(),e.setMetaProperty("http-method",n)})),Wr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Gc=St(Ca,{methods:{StringElement(e){return this.element=ms(e),this.element.classes.push("reference-value"),Xn}}});class Wc extends oe.ON{static primaryClass="path-item-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(Wc.primaryClass),this.classes.push("parameters")}}const Jc=Wc,Kc=St(La,Ca,{init(){this.element=new Jc},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ga(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);$c(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),Xn}}}),Zc=St(Wa,Ca,{props:{specPath:ne(["document","objects","Operation"])},init(){this.element=new ci}});class Xc extends oe.ON{static primaryClass="operation-tags";constructor(e,t,n){super(e,t,n),this.classes.push(Xc.primaryClass)}}const Yc=Xc,Qc=St(Ca,{init(){this.element=new Yc},methods:{ArrayElement(e){return this.element=this.element.concat(ms(e)),Xn}}});class eu extends oe.ON{static primaryClass="operation-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(eu.primaryClass)}}const tu=eu,nu=St(Ca,{init(){this.element=new tu},methods:{ArrayElement(e){return this.element=this.element.concat(ms(e)),Xn}}});class ru extends oe.ON{static primaryClass="operation-produces";constructor(e,t,n){super(e,t,n),this.classes.push(ru.primaryClass)}}const su=ru,iu=St(Ca,{init(){this.element=new su},methods:{ArrayElement(e){return this.element=this.element.concat(ms(e)),Xn}}});class ou extends oe.ON{static primaryClass="operation-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(ou.primaryClass),this.classes.push("parameters")}}const au=ou,cu=St(La,Ca,{init(){this.element=new au},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ga(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);$c(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),Xn}}});class uu extends oe.ON{static primaryClass="operation-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(uu.primaryClass)}}const lu=uu,pu=St(Ca,{init(){this.element=new lu},methods:{ArrayElement(e){return this.element=this.element.concat(ms(e)),Xn}}});class hu extends oe.ON{static primaryClass="operation-security";constructor(e,t,n){super(e,t,n),this.classes.push(hu.primaryClass),this.classes.push("security")}}const mu=hu,fu=St(La,Ca,{init(){this.element=new mu},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Xn}}}),du=St(Wa,Ca,{props:{specPath:ne(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new li}}),_u=St(Wa,Ca,{props:{specPath:ne(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new sa}}),gu=St(Wa,Ca,{props:{specPath:ne(["document","objects","Items"]),canSupportSpecificationExtensions:!0},init(){this.element=new ia}});function yu(e){return"[object Number]"===Object.prototype.toString.call(e)}const vu=c((function(e,t){if(!yu(e)||!yu(t))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=e;r<t;)n.push(r),r+=1;return n}));function bu(e,t,n){var r,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?e in n._items[s]||(t&&(n._items[s][e]=!0),!1):(t&&(n._items[s]={},n._items[s][e]=!0),!1);case"boolean":if(s in n._items){var i=e?1:0;return!!n._items[s][i]||(t&&(n._items[s][i]=!0),!1)}return t&&(n._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?!!Ee(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1);case"undefined":return!!n._items[s]||(t&&(n._items[s]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in n._items?!!Ee(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1)}}const wu=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!bu(e,!0,this)},e.prototype.has=function(e){return bu(e,!1,this)},e}();const Eu=c((function(e,t){for(var n=[],r=0,s=e.length,i=t.length,o=new wu,a=0;a<i;a+=1)o.add(t[a]);for(;r<s;)o.add(e[r])&&(n[n.length]=e[r]),r+=1;return n})),xu=St(Wa,_c,{props:{specPathFixedFields:Ii,specPathPatternedFields:Ii},methods:{ObjectElement(e){const{specPath:t,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...n,...Eu(e.keys(),t)],Wa.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,_c.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Xn}}}),Su=St(xu,Ca,{props:{specPathFixedFields:ne(["document","objects","Responses"]),specPathPatternedFields:e=>Ga(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:dc(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${vu(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new aa},methods:{ObjectElement(e){const t=xu.compose.methods.ObjectElement.call(this,e);return this.element.filter($c).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Ic).forEach(((e,t)=>{const n=ms(t);this.fieldPatternPredicate(Ci(n))&&e.setMetaProperty("http-status-code",n)})),t}}}),Pu=St(La,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Ro(e,ne(t),re))),n=Go(t)(e);return this.element=this.toRefractedElement(n,e),Xn}}}),Ou=St(Pu,Ca,{props:{alternator:[{predicate:Ga,specPath:["document","objects","Reference"]},{predicate:ki,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=Pu.compose.methods.enter.call(this,e);return $c(this.element)?this.element.setMetaProperty("referenced-element","response"):Ic(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),ju=St(Wa,Ca,{props:{specPath:ne(["document","objects","Response"]),canSupportSpecificationExtensions:!0},init(){this.element=new ua}}),Au=St(_c,{props:{fieldPatternPredicate:mo}}),Iu=St(Au,Ca,{props:{specPath:ne(["document","objects","Header"]),canSupportSpecificationExtensions:!1},init(){this.element=new pa}}),ku=St(Au,Ca,{props:{specPath:ne(["value"]),canSupportSpecificationExtensions:!1},init(){this.element=new ma}}),Nu=St(Wa,Ca,{props:{specPath:ne(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new fa}}),Mu=St(Wa,Ca,{props:{specPath:ne(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new _a}}),Tu=St(Wa,Ca,{props:{specPath:ne(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new ya},methods:{ObjectElement(e){const t=Wa.compose.methods.ObjectElement.call(this,e);return Wr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),$u=St(Ca,{methods:{StringElement(e){return this.element=ms(e),this.element.classes.push("reference-value"),Xn}}}),Ru=St(Wa,Ca,{props:{specPath:ne(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new va}}),{allOf:Fu}=Ko.visitors.document.objects.JSONSchema.fixedFields,Cu=St(Fu,{methods:{ArrayElement(e){const t=Fu.compose.methods.ArrayElement.call(this,e);return this.element.filter(Xo).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:qu}=Ko.visitors.document.objects.JSONSchema.fixedFields,Du=St(qu,{methods:{ObjectElement(e){const t=qu.compose.methods.ObjectElement.call(this,e);return Xo(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){const t=qu.compose.methods.ArrayElement.call(this,e);return this.element.filter(Xo).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{properties:Lu}=Ko.visitors.document.objects.JSONSchema.fixedFields,Bu=St(Lu,{methods:{ObjectElement(e){const t=Lu.compose.methods.ObjectElement.call(this,e);return this.element.filter(Xo).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{JSONSchemaOrJSONReferenceVisitor:Vu}=Ko.visitors,Uu=St(Vu,{methods:{ObjectElement(e){const t=Vu.compose.methods.enter.call(this,e);return Xo(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),zu=St(Wa,Ca,{props:{specPath:ne(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new wa}}),Hu=St(Au,Ca,{props:{specPath:e=>to(e)?["document","objects","JSONReference"]:["document","objects","Schema"]},init(){this.element=new xa},methods:{ObjectElement(e){const t=Au.compose.methods.ObjectElement.call(this,e);return this.element.filter(Xo).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),Gu=St(Au,Ca,{props:{specPath:ne(["document","objects","Response"])},init(){this.element=new ja}}),Wu=St(Au,Ca,{props:{specPath:ne(["document","objects","Parameter"])},init(){this.element=new Pa}}),Ju=St(Au,Ca,{props:{specPath:ne(["document","objects","SecurityScheme"])},init(){this.element=new Ia}}),Ku=St(Wa,Ca,{props:{specPath:ne(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new Na}}),Zu=St(Au,Ca,{props:{specPath:ne(["value"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ta}}),Xu=St(Au,Ca,{props:{specPath:ne(["value"])},init(){this.element=new Ra}}),Yu=St(La,{methods:{MemberElement(e){return this.element=ms(e),this.element.classes.push("specification-extension"),Xn}}}),{fixedFields:Qu}=Ko.visitors.document.objects.JSONSchema,el={visitors:{value:Ca,document:{objects:{JSONReference:Ko.visitors.document.objects.JSONReference,JSONSchema:{$ref:"#/visitors/document/objects/Schema"},Swagger:{$visitor:Ja,fixedFields:{swagger:Ka,info:{$ref:"#/visitors/document/objects/Info"},host:{$ref:"#/visitors/value"},basePath:{$ref:"#/visitors/value"},schemes:Ya,consumes:tc,produces:sc,paths:{$ref:"#/visitors/document/objects/Paths"},definitions:{$ref:"#/visitors/document/objects/Definitions"},parameters:{$ref:"#/visitors/document/objects/ParametersDefinitions"},responses:{$ref:"#/visitors/document/objects/ResponsesDefinitions"},securityDefinitions:{$ref:"#/visitors/document/objects/SecurityDefinitions"},security:ac,tags:lc,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:pc,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:hc}},Contact:{$visitor:mc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:fc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Paths:{$visitor:zc},PathItem:{$visitor:Hc,fixedFields:{$ref:Gc,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},parameters:Kc}},Operation:{$visitor:Zc,fixedFields:{tags:Qc,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},consumes:nu,produces:iu,parameters:cu,responses:{$ref:"#/visitors/document/objects/Responses"},schemes:pu,deprecated:{$ref:"#/visitors/value"},security:fu}},ExternalDocumentation:{$visitor:du,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:_u,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:Qu.description,required:Qu.required,schema:Uu,type:Qu.type,format:Qu.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Qu.default,maximum:Qu.maximum,exclusiveMaximum:Qu.exclusiveMaximum,minimum:Qu.minimum,exclusiveMinimum:Qu.exclusiveMinimum,maxLength:Qu.maxLength,minLength:Qu.minLength,pattern:Qu.pattern,maxItems:Qu.maxItems,minItems:Qu.minItems,uniqueItems:Qu.uniqueItems,enum:Qu.enum,multipleOf:Qu.multipleOf}},Items:{$visitor:gu,fixedFields:{type:Qu.type,format:Qu.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Qu.default,maximum:Qu.maximum,exclusiveMaximum:Qu.exclusiveMaximum,minimum:Qu.minimum,exclusiveMinimum:Qu.exclusiveMinimum,maxLength:Qu.maxLength,minLength:Qu.minLength,pattern:Qu.pattern,maxItems:Qu.maxItems,minItems:Qu.minItems,uniqueItems:Qu.uniqueItems,enum:Qu.enum,multipleOf:Qu.multipleOf}},Responses:{$visitor:Su,fixedFields:{default:Ou}},Response:{$visitor:ju,fixedFields:{description:{$ref:"#/visitors/value"},schema:Uu,headers:{$ref:"#/visitors/document/objects/Headers"},examples:{$ref:"#/visitors/document/objects/Example"}}},Headers:{$visitor:Iu},Example:{$visitor:ku},Header:{$visitor:Nu,fixedFields:{description:Qu.description,type:Qu.type,format:Qu.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:Qu.default,maximum:Qu.maximum,exclusiveMaximum:Qu.exclusiveMaximum,minimum:Qu.minimum,exclusiveMinimum:Qu.exclusiveMinimum,maxLength:Qu.maxLength,minLength:Qu.minLength,pattern:Qu.pattern,maxItems:Qu.maxItems,minItems:Qu.minItems,uniqueItems:Qu.uniqueItems,enum:Qu.enum,multipleOf:Qu.multipleOf}},Tag:{$visitor:Mu,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Tu,fixedFields:{$ref:$u}},Schema:{$visitor:Ru,fixedFields:{format:Qu.format,title:Qu.title,description:Qu.description,default:Qu.default,multipleOf:Qu.multipleOf,maximum:Qu.maximum,exclusiveMaximum:Qu.exclusiveMaximum,minimum:Qu.minimum,exclusiveMinimum:Qu.exclusiveMinimum,maxLength:Qu.maxLength,minLength:Qu.minLength,pattern:Qu.pattern,maxItems:Qu.maxItems,minItems:Qu.minItems,uniqueItems:Qu.uniqueItems,maxProperties:Qu.maxProperties,minProperties:Qu.minProperties,required:Qu.required,enum:Qu.enum,type:Qu.type,readOnly:Qu.readOnly,items:Du,allOf:Cu,properties:Bu,additionalProperties:Uu,discriminator:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},XML:{$visitor:zu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},Definitions:{$visitor:Hu},ParametersDefinitions:{$visitor:Wu},ResponsesDefinitions:{$visitor:Gu},SecurityDefinitions:{$visitor:Ju},SecurityScheme:{$visitor:Ku,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},flow:{$ref:"#/visitors/value"},authorizationUrl:{$ref:"#/visitors/value"},token:{$ref:"#/visitors/value"},scopes:{$ref:"#/visitors/document/objects/Scopes"}}},Scopes:{$visitor:Zu},SecurityRequirement:{$visitor:Xu}},extension:{$visitor:Yu}}}},tl={namespace:e=>{const{base:t}=e;return t.register("swagger",Js),t.register("swaggerVersion",Zs),t.register("info",Ys),t.register("contact",ei),t.register("license",ni),t.register("paths",si),t.register("pathItem",oi),t.register("operation",ci),t.register("externalDocumentation",li),t.register("parameter",sa),t.register("items",ia),t.register("responses",aa),t.register("response",ua),t.register("headers",pa),t.register("example",ma),t.register("header",fa),t.register("tag",_a),t.register("reference",ya),t.register("schema",va),t.register("xml",wa),t.register("definitions",xa),t.register("parametersDefinitions",Pa),t.register("responsesDefinitions",ja),t.register("securityDefinitions",Ia),t.register("securityScheme",Na),t.register("scopes",Ta),t.register("securityRequirement",Ra),t}},nl=()=>{const e=lt(tl);return{predicates:{...s,...i,isStringElement:Wr},namespace:e}},rl=(e,{specPath:t=["visitors","document","objects","Swagger","$visitor"],plugins:n=[]}={})=>{const r=(0,oe.Qc)(e),s=Oi(el),i=Ts(t,[],s);return ws(r,i,{state:{specObj:s}}),Fs(i.element,n,{toolboxCreator:nl,visitorOptions:{keyMap:Da,nodeTypeGetter:qa}})},sl=e=>(t,n={})=>rl(t,{specPath:e,...n});Js.refract=sl(["visitors","document","objects","Swagger","$visitor"]),Zs.refract=sl(["visitors","document","objects","SwaggerVersion","$visitor"]),Ys.refract=sl(["visitors","document","objects","Info","$visitor"]),ei.refract=sl(["visitors","document","objects","Contact","$visitor"]),ni.refract=sl(["visitors","document","objects","License","$visitor"]),si.refract=sl(["visitors","document","objects","Paths","$visitor"]),oi.refract=sl(["visitors","document","objects","PathItem","$visitor"]),ci.refract=sl(["visitors","document","objects","Operation","$visitor"]),li.refract=sl(["visitors","document","objects","ExternalDocumentation","$visitor"]),sa.refract=sl(["visitors","document","objects","Parameter","$visitor"]),ia.refract=sl(["visitors","document","objects","Items","$visitor"]),aa.refract=sl(["visitors","document","objects","Responses","$visitor"]),ua.refract=sl(["visitors","document","objects","Response","$visitor"]),pa.refract=sl(["visitors","document","objects","Headers","$visitor"]),ma.refract=sl(["visitors","document","objects","Example","$visitor"]),fa.refract=sl(["visitors","document","objects","Header","$visitor"]),_a.refract=sl(["visitors","document","objects","Tag","$visitor"]),ya.refract=sl(["visitors","document","objects","Reference","$visitor"]),va.refract=sl(["visitors","document","objects","Schema","$visitor"]),wa.refract=sl(["visitors","document","objects","XML","$visitor"]),xa.refract=sl(["visitors","document","objects","Definitions","$visitor"]),Pa.refract=sl(["visitors","document","objects","ParametersDefinitions","$visitor"]),ja.refract=sl(["visitors","document","objects","ResponsesDefinitions","$visitor"]),Ia.refract=sl(["visitors","document","objects","SecurityDefinitions","$visitor"]),Na.refract=sl(["visitors","document","objects","SecurityScheme","$visitor"]),Ta.refract=sl(["visitors","document","objects","Scopes","$visitor"]),Ra.refract=sl(["visitors","document","objects","SecurityRequirement","$visitor"]);const il=m(-1);const ol=class extends pi{};const al=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new ol("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new ol("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new ol("latest method in MediaTypes class is not yet implemented.")}};class cl extends al{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2.0",t="generic"){const n="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(n)))||this.unknownMediaType}latest(e="generic"){return il(this.filterByFormat(e))}}const ul=new cl("application/vnd.oai.openapi;version=2.0","application/vnd.oai.openapi+json;version=2.0","application/vnd.oai.openapi+yaml;version=2.0"),ll=new cl(...ul.filterByFormat("generic"),...ul.filterByFormat("yaml")),pl=/(?<YAML>^(["']?)swagger\2\s*:\s*(["'])(?<version_yaml>2\.0)\3(?:\s+|$))|(?<JSON>"swagger"\s*:\s*"(?<version_json>2\.0)")/m,hl=async e=>pl.test(e)&&await(async e=>{try{return"ERROR"!==(await xt(e)).rootNode.type}catch{return!1}})(e),ml=async(e,t={})=>{const n=d({},"refractorOpts",t),r=g(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1}={})=>{const n=await xt(e);return Gs(n,{sourceMap:t})})(e,r),{result:i}=s;if(ie(i)){const e=Js.refract(i,n);e.classes.push("result"),s.replaceResult(e)}return s},fl=lt(tl)})(),r})()));
|