@swagger-api/apidom-parser-adapter-openapi-json-3-0 0.70.2 → 0.70.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/23aac571c96605dc25219087ad291441.wasm +0 -0
- package/dist/{6d9fed5aefa3863691924a69721182bc.wasm → 7c7ca323880d9fa6e48d1d1b2e78e140.wasm} +0 -0
- package/dist/apidom-parser-adapter-openapi-json-3-0.browser.js +133 -54
- package/dist/apidom-parser-adapter-openapi-json-3-0.browser.min.js +1 -1
- package/package.json +4 -4
- package/dist/3055f0c5f4843ded29b10894f35a54d2.wasm +0 -0
|
@@ -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.apidomParserAdapterOpenApiJson3_0=t():e.apidomParserAdapterOpenApiJson3_0=t()}(self,(()=>(()=>{var __webpack_modules__={8385:(e,t,r)=>{var n=r(6174);e.exports=n},5271:(e,t,r)=>{var n=r(7820);e.exports=n},7574:(e,t,r)=>{var n=r(2);e.exports=n},33:(e,t,r)=>{var n=r(5636);e.exports=n},9821:(e,t,r)=>{var n=r(2285);r(9031),e.exports=n},8008:(e,t,r)=>{var n=r(8535);e.exports=n},164:(e,t,r)=>{var n=r(6042);e.exports=n},2089:(e,t,r)=>{r(2276);var n=r(5607);e.exports=n("Array").indexOf},2604:(e,t,r)=>{var n=r(8902),s=r(2089),i=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===i||n(i,e)&&t===i.indexOf?s:t}},3512:(e,t,r)=>{r(297);var n=r(7545).Object,s=e.exports=function(e,t,r){return n.defineProperty(e,t,r)};n.defineProperty.sham&&(s.sham=!0)},2921:(e,t,r)=>{r(6187);var n=r(7545);e.exports=n.Object.getOwnPropertySymbols},8651:(e,t,r)=>{r(2647);var n=r(7545);e.exports=n.Object.keys},5008:(e,t,r)=>{r(9106),r(6663),r(6187),r(9781),r(492),r(6681),r(9594),r(3665),r(9017),r(1250),r(9786),r(503),r(6565),r(9322),r(3610),r(6886),r(3514),r(8671),r(8556),r(1367);var n=r(7545);e.exports=n.Symbol},994:(e,t,r)=>{r(8939),r(6663),r(5454),r(3665);var n=r(9207);e.exports=n.f("iterator")},290:(e,t,r)=>{r(2432),r(3610);var n=r(9207);e.exports=n.f("toPrimitive")},2747:(e,t,r)=>{var n=r(8385);e.exports=n},229:(e,t,r)=>{var n=r(5271);e.exports=n},5090:(e,t,r)=>{var n=r(7574);e.exports=n},5483:(e,t,r)=>{var n=r(33);e.exports=n},2185:(e,t,r)=>{var n=r(9821);r(177),r(2725),r(1806),r(6658),r(4212),r(8658),r(1875),r(4592),r(6680),e.exports=n},9982:(e,t,r)=>{var n=r(8008);e.exports=n},8241:(e,t,r)=>{var n=r(164);e.exports=n},6235:(e,t,r)=>{var n=r(6447),s=r(9288),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not a function")}},7757:(e,t,r)=>{var n=r(6447),s=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+s(e)+" as a prototype")}},7423:e=>{e.exports=function(){}},1138:(e,t,r)=>{var n=r(5744),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not an object")}},8180:(e,t,r)=>{var n=r(101),s=r(7739),i=r(4104),o=function(e){return function(t,r,o){var a,c=n(t),l=i(c),u=s(o,l);if(e&&r!=r){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},454:(e,t,r)=>{var n=r(8043),s=r(4120),i=r(2202),o=r(1795),a=r(4104),c=r(1321),l=s([].push),u=function(e){var t=1==e,r=2==e,s=3==e,u=4==e,p=6==e,m=7==e,_=5==e||p;return function(h,d,f,y){for(var g,b,v=o(h),E=i(v),w=n(d,f),O=a(E),S=0,x=y||c,j=t?x(h,O):r||m?x(h,0):void 0;O>S;S++)if((_||S in E)&&(b=w(g=E[S],S,v),e))if(t)j[S]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return S;case 2:l(j,g)}else switch(e){case 4:return!1;case 7:l(j,g)}return p?-1:s||u?u:j}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},242:(e,t,r)=>{var n=r(6192),s=r(8182),i=r(4218),o=s("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},424:(e,t,r)=>{"use strict";var n=r(6192);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},1923:(e,t,r)=>{var n=r(7739),s=r(4104),i=r(9361),o=Array,a=Math.max;e.exports=function(e,t,r){for(var c=s(e),l=n(t,c),u=n(void 0===r?c:r,c),p=o(a(u-l,0)),m=0;l<u;l++,m++)i(p,m,e[l]);return p.length=m,p}},3096:(e,t,r)=>{var n=r(4120);e.exports=n([].slice)},3712:(e,t,r)=>{var n=r(4770),s=r(2091),i=r(5744),o=r(8182)("species"),a=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(s(t)&&(t===a||n(t.prototype))||i(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?a:t}},1321:(e,t,r)=>{var n=r(3712);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},9272:(e,t,r)=>{var n=r(4120),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},4696:(e,t,r)=>{var n=r(3471),s=r(6447),i=r(9272),o=r(8182)("toStringTag"),a=Object,c="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"==(n=i(t))&&s(t.callee)?"Arguments":n}},4635:(e,t,r)=>{var n=r(6192);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},7271:e=>{e.exports=function(e,t){return{value:e,done:t}}},8711:(e,t,r)=>{var n=r(69),s=r(2760),i=r(774);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},774:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9361:(e,t,r)=>{"use strict";var n=r(77),s=r(2760),i=r(774);e.exports=function(e,t,r){var o=n(t);o in e?s.f(e,o,i(0,r)):e[o]=r}},2807:(e,t,r)=>{var n=r(2760);e.exports=function(e,t,r){return n.f(e,t,r)}},9362:(e,t,r)=>{var n=r(8711);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},5098:(e,t,r)=>{var n=r(8576),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},69:(e,t,r)=>{var n=r(6192);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8382:e=>{var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},7449:(e,t,r)=>{var n=r(8576),s=r(5744),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9425:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},7365:e=>{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=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4218:(e,t,r)=>{var n,s,i=r(8576),o=r(8989),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(s=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},5607:(e,t,r)=>{var n=r(7545);e.exports=function(e){return n[e+"Prototype"]}},2952:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3085:(e,t,r)=>{"use strict";var n=r(8576),s=r(6298),i=r(4914),o=r(6447),a=r(5141).f,c=r(9245),l=r(7545),u=r(8043),p=r(8711),m=r(4500),_=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,h,d,f,y,g,b,v,E=e.target,w=e.global,O=e.stat,S=e.proto,x=w?n:O?n[E]:(n[E]||{}).prototype,j=w?l:l[E]||p(l,E,{})[E],P=j.prototype;for(d in t)s=!(r=c(w?d:E+(O?".":"#")+d,e.forced))&&x&&m(x,d),y=j[d],s&&(g=e.dontCallGetSet?(v=a(x,d))&&v.value:x[d]),f=s&&g?g:t[d],s&&typeof y==typeof f||(b=e.bind&&s?u(f,n):e.wrap&&s?_(f):S&&o(f)?i(f):f,(e.sham||f&&f.sham||y&&y.sham)&&p(b,"sham",!0),p(j,d,b),S&&(m(l,h=E+"Prototype")||p(l,h,{}),p(l[h],d,f),e.real&&P&&(r||!P[d])&&p(P,d,f)))}},6192:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},6298:(e,t,r)=>{var n=r(2784),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},8043:(e,t,r)=>{var n=r(4914),s=r(6235),i=r(2784),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},2784:(e,t,r)=>{var n=r(6192);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8922:(e,t,r)=>{var n=r(2784),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},2282:(e,t,r)=>{var n=r(69),s=r(4500),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},6419:(e,t,r)=>{var n=r(4120),s=r(6235);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},4914:(e,t,r)=>{var n=r(9272),s=r(4120);e.exports=function(e){if("Function"===n(e))return s(e)}},4120:(e,t,r)=>{var n=r(2784),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},150:(e,t,r)=>{var n=r(7545),s=r(8576),i=r(6447),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},9202:(e,t,r)=>{var n=r(4120),s=r(4770),i=r(6447),o=r(9272),a=r(4845),c=n([].push);e.exports=function(e){if(i(e))return e;if(s(e)){for(var t=e.length,r=[],n=0;n<t;n++){var l=e[n];"string"==typeof l?c(r,l):"number"!=typeof l&&"Number"!=o(l)&&"String"!=o(l)||c(r,a(l))}var u=r.length,p=!0;return function(e,t){if(p)return p=!1,t;if(s(this))return t;for(var n=0;n<u;n++)if(r[n]===e)return t}}}},5037:(e,t,r)=>{var n=r(6235),s=r(5646);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},8576:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},4500:(e,t,r)=>{var n=r(4120),s=r(1795),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},4535:e=>{e.exports={}},7403:(e,t,r)=>{var n=r(150);e.exports=n("document","documentElement")},188:(e,t,r)=>{var n=r(69),s=r(6192),i=r(7449);e.exports=!n&&!s((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2202:(e,t,r)=>{var n=r(4120),s=r(6192),i=r(9272),o=Object,a=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a(e,""):o(e)}:o},9516:(e,t,r)=>{var n=r(4120),s=r(6447),i=r(6434),o=n(Function.toString);s(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},3326:(e,t,r)=>{var n,s,i,o=r(5278),a=r(8576),c=r(5744),l=r(8711),u=r(4500),p=r(6434),m=r(9766),_=r(4535),h="Object already initialized",d=a.TypeError,f=a.WeakMap;if(o||p.state){var y=p.state||(p.state=new f);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw d(h);return t.facade=e,y.set(e,t),t},s=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var g=m("state");_[g]=!0,n=function(e,t){if(u(e,g))throw d(h);return t.facade=e,l(e,g,t),t},s=function(e){return u(e,g)?e[g]:{}},i=function(e){return u(e,g)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=s(t)).type!==e)throw d("Incompatible receiver, "+e+" required");return r}}}},4770:(e,t,r)=>{var n=r(9272);e.exports=Array.isArray||function(e){return"Array"==n(e)}},6447:(e,t,r)=>{var n=r(8382),s=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},2091:(e,t,r)=>{var n=r(4120),s=r(6192),i=r(6447),o=r(4696),a=r(150),c=r(9516),l=function(){},u=[],p=a("Reflect","construct"),m=/^\s*(?:class|function)\b/,_=n(m.exec),h=!m.exec(l),d=function(e){if(!i(e))return!1;try{return p(l,u,e),!0}catch(e){return!1}},f=function(e){if(!i(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!_(m,c(e))}catch(e){return!0}};f.sham=!0,e.exports=!p||s((function(){var e;return d(d.call)||!d(Object)||!d((function(){e=!0}))||e}))?f:d},9245:(e,t,r)=>{var n=r(6192),s=r(6447),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r==u||r!=l&&(s(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},5646:e=>{e.exports=function(e){return null==e}},5744:(e,t,r)=>{var n=r(6447),s=r(8382),i=s.all;e.exports=s.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},5546:e=>{e.exports=!0},3236:(e,t,r)=>{var n=r(150),s=r(6447),i=r(8902),o=r(615),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,a(e))}},5695:(e,t,r)=>{"use strict";var n=r(4413).IteratorPrototype,s=r(2853),i=r(774),o=r(1284),a=r(7771),c=function(){return this};e.exports=function(e,t,r,l){var u=t+" Iterator";return e.prototype=s(n,{next:i(+!l,r)}),o(e,u,!1,!0),a[u]=c,e}},5297:(e,t,r)=>{"use strict";var n=r(3085),s=r(8922),i=r(5546),o=r(2282),a=r(6447),c=r(5695),l=r(9341),u=r(4469),p=r(1284),m=r(8711),_=r(9362),h=r(8182),d=r(7771),f=r(4413),y=o.PROPER,g=o.CONFIGURABLE,b=f.IteratorPrototype,v=f.BUGGY_SAFARI_ITERATORS,E=h("iterator"),w="keys",O="values",S="entries",x=function(){return this};e.exports=function(e,t,r,o,h,f,j){c(r,t,o);var P,M,A,N=function(e){if(e===h&&k)return k;if(!v&&e in R)return R[e];switch(e){case w:case O:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},I=t+" Iterator",T=!1,R=e.prototype,F=R[E]||R["@@iterator"]||h&&R[h],k=!v&&F||N(h),C="Array"==t&&R.entries||F;if(C&&(P=l(C.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===b||(u?u(P,b):a(P[E])||_(P,E,x)),p(P,I,!0,!0),i&&(d[I]=x)),y&&h==O&&F&&F.name!==O&&(!i&&g?m(R,"name",O):(T=!0,k=function(){return s(F,this)})),h)if(M={values:N(O),keys:f?k:N(w),entries:N(S)},j)for(A in M)(v||T||!(A in R))&&_(R,A,M[A]);else n({target:t,proto:!0,forced:v||T},M);return i&&!j||R[E]===k||_(R,E,k,{name:h}),d[t]=k,M}},4413:(e,t,r)=>{"use strict";var n,s,i,o=r(6192),a=r(6447),c=r(5744),l=r(2853),u=r(9341),p=r(9362),m=r(8182),_=r(5546),h=m("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=u(u(i)))!==Object.prototype&&(n=s):d=!0),!c(n)||o((function(){var e={};return n[h].call(e)!==e}))?n={}:_&&(n=l(n)),a(n[h])||p(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},7771:e=>{e.exports={}},4104:(e,t,r)=>{var n=r(8445);e.exports=function(e){return n(e.length)}},7679:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},2853:(e,t,r)=>{var n,s=r(1138),i=r(1187),o=r(2952),a=r(4535),c=r(7403),l=r(7449),u=r(9766),p="prototype",m="script",_=u("IE_PROTO"),h=function(){},d=function(e){return"<"+m+">"+e+"</"+m+">"},f=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&n?f(n):(t=l("iframe"),r="java"+m+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):f(n);for(var s=o.length;s--;)delete y[p][o[s]];return y()};a[_]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h[p]=s(e),r=new h,h[p]=null,r[_]=e):r=y(),void 0===t?r:i.f(r,t)}},1187:(e,t,r)=>{var n=r(69),s=r(9600),i=r(2760),o=r(1138),a=r(101),c=r(7653);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=c(t),l=s.length,u=0;l>u;)i.f(e,r=s[u++],n[r]);return e}},2760:(e,t,r)=>{var n=r(69),s=r(188),i=r(9600),o=r(1138),a=r(77),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",m="configurable",_="writable";t.f=n?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&_ in r&&!r[_]){var n=u(e,t);n&&n[_]&&(e[t]=r.value,r={configurable:m in r?r[m]:n[m],enumerable:p in r?r[p]:n[p],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(o(e),t=a(t),o(r),s)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},5141:(e,t,r)=>{var n=r(69),s=r(8922),i=r(6007),o=r(774),a=r(101),c=r(77),l=r(4500),u=r(188),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=a(e),t=c(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!s(i.f,e,t),e[t])}},4052:(e,t,r)=>{var n=r(9272),s=r(101),i=r(2092).f,o=r(1923),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"Window"==n(e)?function(e){try{return i(e)}catch(e){return o(a)}}(e):i(s(e))}},2092:(e,t,r)=>{var n=r(7934),s=r(2952).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},4750:(e,t)=>{t.f=Object.getOwnPropertySymbols},9341:(e,t,r)=>{var n=r(4500),s=r(6447),i=r(1795),o=r(9766),a=r(4635),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},8902:(e,t,r)=>{var n=r(4120);e.exports=n({}.isPrototypeOf)},7934:(e,t,r)=>{var n=r(4120),s=r(4500),i=r(101),o=r(8180).indexOf,a=r(4535),c=n([].push);e.exports=function(e,t){var r,n=i(e),l=0,u=[];for(r in n)!s(a,r)&&s(n,r)&&c(u,r);for(;t.length>l;)s(n,r=t[l++])&&(~o(u,r)||c(u,r));return u}},7653:(e,t,r)=>{var n=r(7934),s=r(2952);e.exports=Object.keys||function(e){return n(e,s)}},6007:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},4469:(e,t,r)=>{var n=r(6419),s=r(1138),i=r(7757);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return s(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},158:(e,t,r)=>{"use strict";var n=r(3471),s=r(4696);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},380:(e,t,r)=>{var n=r(8922),s=r(6447),i=r(5744),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&s(r=e.toString)&&!i(a=n(r,e)))return a;if(s(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&s(r=e.toString)&&!i(a=n(r,e)))return a;throw o("Can't convert object to primitive value")}},7545:e=>{e.exports={}},3209:(e,t,r)=>{var n=r(5646),s=TypeError;e.exports=function(e){if(n(e))throw s("Can't call method on "+e);return e}},1284:(e,t,r)=>{var n=r(3471),s=r(2760).f,i=r(8711),o=r(4500),a=r(158),c=r(8182)("toStringTag");e.exports=function(e,t,r,l){if(e){var u=r?e:e.prototype;o(u,c)||s(u,c,{configurable:!0,value:t}),l&&!n&&i(u,"toString",a)}}},9766:(e,t,r)=>{var n=r(8717),s=r(2759),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},6434:(e,t,r)=>{var n=r(8576),s=r(5098),i="__core-js_shared__",o=n[i]||s(i,{});e.exports=o},8717:(e,t,r)=>{var n=r(5546),s=r(6434);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},863:(e,t,r)=>{var n=r(4120),s=r(1941),i=r(4845),o=r(3209),a=n("".charAt),c=n("".charCodeAt),l=n("".slice),u=function(e){return function(t,r){var n,u,p=i(o(t)),m=s(r),_=p.length;return m<0||m>=_?e?"":void 0:(n=c(p,m))<55296||n>56319||m+1===_||(u=c(p,m+1))<56320||u>57343?e?a(p,m):n:e?l(p,m,m+2):u-56320+(n-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},6770:(e,t,r)=>{var n=r(4218),s=r(6192),i=r(8576).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},3407:(e,t,r)=>{var n=r(8922),s=r(150),i=r(8182),o=r(9362);e.exports=function(){var e=s("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,a=i("toPrimitive");t&&!t[a]&&o(t,a,(function(e){return n(r,this)}),{arity:1})}},31:(e,t,r)=>{var n=r(6770);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},7739:(e,t,r)=>{var n=r(1941),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},101:(e,t,r)=>{var n=r(2202),s=r(3209);e.exports=function(e){return n(s(e))}},1941:(e,t,r)=>{var n=r(7679);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},8445:(e,t,r)=>{var n=r(1941),s=Math.min;e.exports=function(e){return e>0?s(n(e),9007199254740991):0}},1795:(e,t,r)=>{var n=r(3209),s=Object;e.exports=function(e){return s(n(e))}},7888:(e,t,r)=>{var n=r(8922),s=r(5744),i=r(3236),o=r(5037),a=r(380),c=r(8182),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,c=o(e,u);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!s(r)||i(r))return r;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},77:(e,t,r)=>{var n=r(7888),s=r(3236);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},3471:(e,t,r)=>{var n={};n[r(8182)("toStringTag")]="z",e.exports="[object z]"===String(n)},4845:(e,t,r)=>{var n=r(4696),s=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return s(e)}},9288:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},2759:(e,t,r)=>{var n=r(4120),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},615:(e,t,r)=>{var n=r(6770);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9600:(e,t,r)=>{var n=r(69),s=r(6192);e.exports=n&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5278:(e,t,r)=>{var n=r(8576),s=r(6447),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8332:(e,t,r)=>{var n=r(7545),s=r(4500),i=r(9207),o=r(2760).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});s(t,e)||o(t,e,{value:i.f(e)})}},9207:(e,t,r)=>{var n=r(8182);t.f=n},8182:(e,t,r)=>{var n=r(8576),s=r(8717),i=r(4500),o=r(2759),a=r(6770),c=r(615),l=n.Symbol,u=s("wks"),p=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:p("Symbol."+e)),u[e]}},9106:(e,t,r)=>{"use strict";var n=r(3085),s=r(6192),i=r(4770),o=r(5744),a=r(1795),c=r(4104),l=r(9425),u=r(9361),p=r(1321),m=r(242),_=r(8182),h=r(4218),d=_("isConcatSpreadable"),f=h>=51||!s((function(){var e=[];return e[d]=!1,e.concat()[0]!==e})),y=function(e){if(!o(e))return!1;var t=e[d];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!f||!m("concat")},{concat:function(e){var t,r,n,s,i,o=a(this),m=p(o,0),_=0;for(t=-1,n=arguments.length;t<n;t++)if(y(i=-1===t?o:arguments[t]))for(s=c(i),l(_+s),r=0;r<s;r++,_++)r in i&&u(m,_,i[r]);else l(_+1),u(m,_++,i);return m.length=_,m}})},2276:(e,t,r)=>{"use strict";var n=r(3085),s=r(4914),i=r(8180).indexOf,o=r(424),a=s([].indexOf),c=!!a&&1/a([1],1,-0)<0;n({target:"Array",proto:!0,forced:c||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?a(this,e,t)||0:i(this,e,t)}})},8939:(e,t,r)=>{"use strict";var n=r(101),s=r(7423),i=r(7771),o=r(3326),a=r(2760).f,c=r(5297),l=r(7271),u=r(5546),p=r(69),m="Array Iterator",_=o.set,h=o.getterFor(m);e.exports=c(Array,"Array",(function(e,t){_(this,{type:m,target:n(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,l(void 0,!0)):l("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!u&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},2432:()=>{},9704:(e,t,r)=>{var n=r(3085),s=r(150),i=r(6298),o=r(8922),a=r(4120),c=r(6192),l=r(6447),u=r(3236),p=r(3096),m=r(9202),_=r(6770),h=String,d=s("JSON","stringify"),f=a(/./.exec),y=a("".charAt),g=a("".charCodeAt),b=a("".replace),v=a(1..toString),E=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,S=!_||c((function(){var e=s("Symbol")();return"[null]"!=d([e])||"{}"!=d({a:e})||"{}"!=d(Object(e))})),x=c((function(){return'"\\udf06\\ud834"'!==d("\udf06\ud834")||'"\\udead"'!==d("\udead")})),j=function(e,t){var r=p(arguments),n=m(t);if(l(n)||void 0!==e&&!u(e))return r[1]=function(e,t){if(l(n)&&(t=o(n,this,h(e),t)),!u(t))return t},i(d,null,r)},P=function(e,t,r){var n=y(r,t-1),s=y(r,t+1);return f(w,e)&&!f(O,s)||f(O,e)&&!f(w,n)?"\\u"+v(g(e,0),16):e};d&&n({target:"JSON",stat:!0,arity:3,forced:S||x},{stringify:function(e,t,r){var n=p(arguments),s=i(S?j:d,null,n);return x&&"string"==typeof s?b(s,E,P):s}})},8671:(e,t,r)=>{var n=r(8576);r(1284)(n.JSON,"JSON",!0)},8556:()=>{},297:(e,t,r)=>{var n=r(3085),s=r(69),i=r(2760).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!s},{defineProperty:i})},7895:(e,t,r)=>{var n=r(3085),s=r(6770),i=r(6192),o=r(4750),a=r(1795);n({target:"Object",stat:!0,forced:!s||i((function(){o.f(1)}))},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(a(e)):[]}})},2647:(e,t,r)=>{var n=r(3085),s=r(1795),i=r(7653);n({target:"Object",stat:!0,forced:r(6192)((function(){i(1)}))},{keys:function(e){return i(s(e))}})},6663:()=>{},1367:()=>{},5454:(e,t,r)=>{"use strict";var n=r(863).charAt,s=r(4845),i=r(3326),o=r(5297),a=r(7271),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:s(e),index:0})}),(function(){var e,t=u(this),r=t.string,s=t.index;return s>=r.length?a(void 0,!0):(e=n(r,s),t.index+=e.length,a(e,!1))}))},9781:(e,t,r)=>{r(8332)("asyncIterator")},9351:(e,t,r)=>{"use strict";var n=r(3085),s=r(8576),i=r(8922),o=r(4120),a=r(5546),c=r(69),l=r(6770),u=r(6192),p=r(4500),m=r(8902),_=r(1138),h=r(101),d=r(77),f=r(4845),y=r(774),g=r(2853),b=r(7653),v=r(2092),E=r(4052),w=r(4750),O=r(5141),S=r(2760),x=r(1187),j=r(6007),P=r(9362),M=r(2807),A=r(8717),N=r(9766),I=r(4535),T=r(2759),R=r(8182),F=r(9207),k=r(8332),C=r(3407),D=r(1284),q=r(3326),B=r(454).forEach,V=N("hidden"),U="Symbol",L="prototype",$=q.set,Z=q.getterFor(U),H=Object[L],z=s.Symbol,G=z&&z[L],W=s.TypeError,J=s.QObject,K=O.f,X=S.f,Y=E.f,Q=j.f,ee=o([].push),te=A("symbols"),re=A("op-symbols"),ne=A("wks"),se=!J||!J[L]||!J[L].findChild,ie=c&&u((function(){return 7!=g(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=K(H,t);n&&delete H[t],X(e,t,r),n&&e!==H&&X(H,t,n)}:X,oe=function(e,t){var r=te[e]=g(G);return $(r,{type:U,tag:e,description:t}),c||(r.description=t),r},ae=function(e,t,r){e===H&&ae(re,t,r),_(e);var n=d(t);return _(r),p(te,n)?(r.enumerable?(p(e,V)&&e[V][n]&&(e[V][n]=!1),r=g(r,{enumerable:y(0,!1)})):(p(e,V)||X(e,V,y(1,{})),e[V][n]=!0),ie(e,n,r)):X(e,n,r)},ce=function(e,t){_(e);var r=h(t),n=b(r).concat(me(r));return B(n,(function(t){c&&!i(le,r,t)||ae(e,t,r[t])})),e},le=function(e){var t=d(e),r=i(Q,this,t);return!(this===H&&p(te,t)&&!p(re,t))&&(!(r||!p(this,t)||!p(te,t)||p(this,V)&&this[V][t])||r)},ue=function(e,t){var r=h(e),n=d(t);if(r!==H||!p(te,n)||p(re,n)){var s=K(r,n);return!s||!p(te,n)||p(r,V)&&r[V][n]||(s.enumerable=!0),s}},pe=function(e){var t=Y(h(e)),r=[];return B(t,(function(e){p(te,e)||p(I,e)||ee(r,e)})),r},me=function(e){var t=e===H,r=Y(t?re:h(e)),n=[];return B(r,(function(e){!p(te,e)||t&&!p(H,e)||ee(n,te[e])})),n};l||(P(G=(z=function(){if(m(G,this))throw W("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?f(arguments[0]):void 0,t=T(e),r=function(e){this===H&&i(r,re,e),p(this,V)&&p(this[V],t)&&(this[V][t]=!1),ie(this,t,y(1,e))};return c&&se&&ie(H,t,{configurable:!0,set:r}),oe(t,e)})[L],"toString",(function(){return Z(this).tag})),P(z,"withoutSetter",(function(e){return oe(T(e),e)})),j.f=le,S.f=ae,x.f=ce,O.f=ue,v.f=E.f=pe,w.f=me,F.f=function(e){return oe(R(e),e)},c&&(M(G,"description",{configurable:!0,get:function(){return Z(this).description}}),a||P(H,"propertyIsEnumerable",le,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:z}),B(b(ne),(function(e){k(e)})),n({target:U,stat:!0,forced:!l},{useSetter:function(){se=!0},useSimple:function(){se=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!c},{create:function(e,t){return void 0===t?g(e):ce(g(e),t)},defineProperty:ae,defineProperties:ce,getOwnPropertyDescriptor:ue}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pe}),C(),D(z,U),I[V]=!0},492:()=>{},9148:(e,t,r)=>{var n=r(3085),s=r(150),i=r(4500),o=r(4845),a=r(8717),c=r(31),l=a("string-to-symbol-registry"),u=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=o(e);if(i(l,t))return l[t];var r=s("Symbol")(t);return l[t]=r,u[r]=t,r}})},6681:(e,t,r)=>{r(8332)("hasInstance")},9594:(e,t,r)=>{r(8332)("isConcatSpreadable")},3665:(e,t,r)=>{r(8332)("iterator")},6187:(e,t,r)=>{r(9351),r(9148),r(5991),r(9704),r(7895)},5991:(e,t,r)=>{var n=r(3085),s=r(4500),i=r(3236),o=r(9288),a=r(8717),c=r(31),l=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!i(e))throw TypeError(o(e)+" is not a symbol");if(s(l,e))return l[e]}})},1250:(e,t,r)=>{r(8332)("matchAll")},9017:(e,t,r)=>{r(8332)("match")},9786:(e,t,r)=>{r(8332)("replace")},503:(e,t,r)=>{r(8332)("search")},6565:(e,t,r)=>{r(8332)("species")},9322:(e,t,r)=>{r(8332)("split")},3610:(e,t,r)=>{var n=r(8332),s=r(3407);n("toPrimitive"),s()},6886:(e,t,r)=>{var n=r(150),s=r(8332),i=r(1284);s("toStringTag"),i(n("Symbol"),"Symbol")},3514:(e,t,r)=>{r(8332)("unscopables")},177:(e,t,r)=>{r(8332)("asyncDispose")},9031:(e,t,r)=>{r(8332)("dispose")},2725:(e,t,r)=>{var n=r(3085),s=r(150),i=r(4120),o=s("Symbol"),a=o.keyFor,c=i(o.prototype.valueOf);n({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==a(c(e))}catch(e){return!1}}})},1806:(e,t,r)=>{for(var n=r(3085),s=r(8717),i=r(150),o=r(4120),a=r(3236),c=r(8182),l=i("Symbol"),u=l.isWellKnown,p=i("Object","getOwnPropertyNames"),m=o(l.prototype.valueOf),_=s("wks"),h=0,d=p(l),f=d.length;h<f;h++)try{var y=d[h];a(l[y])&&c(y)}catch(e){}n({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(u&&u(e))return!0;try{for(var t=m(e),r=0,n=p(_),s=n.length;r<s;r++)if(_[n[r]]==t)return!0}catch(e){}return!1}})},6658:(e,t,r)=>{r(8332)("matcher")},4212:(e,t,r)=>{r(8332)("metadataKey")},1875:(e,t,r)=>{r(8332)("metadata")},8658:(e,t,r)=>{r(8332)("observable")},4592:(e,t,r)=>{r(8332)("patternMatch")},6680:(e,t,r)=>{r(8332)("replaceAll")},162:(e,t,r)=>{r(8939);var n=r(7365),s=r(8576),i=r(4696),o=r(8711),a=r(7771),c=r(8182)("toStringTag");for(var l in n){var u=s[l],p=u&&u.prototype;p&&i(p)!==c&&o(p,c,l),a[l]=a.Array}},6174:(e,t,r)=>{var n=r(2604);e.exports=n},7820:(e,t,r)=>{var n=r(3512);e.exports=n},2:(e,t,r)=>{var n=r(2921);e.exports=n},5636:(e,t,r)=>{var n=r(8651);e.exports=n},2285:(e,t,r)=>{var n=r(5008);r(162),e.exports=n},8535:(e,t,r)=>{var n=r(994);r(162),e.exports=n},6042:(e,t,r)=>{var n=r(290);e.exports=n},9515:(e,t,r)=>{var n=r(8761)(r(7772),"DataView");e.exports=n},9612:(e,t,r)=>{var n=r(2118),s=r(6909),i=r(8138),o=r(4174),a=r(7942);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},235:(e,t,r)=>{var n=r(3945),s=r(1846),i=r(8028),o=r(2344),a=r(4769);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},326:(e,t,r)=>{var n=r(8761)(r(7772),"Map");e.exports=n},6738:(e,t,r)=>{var n=r(2411),s=r(6417),i=r(6928),o=r(9493),a=r(4150);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1985:(e,t,r)=>{var n=r(8761)(r(7772),"Promise");e.exports=n},2143:(e,t,r)=>{var n=r(8761)(r(7772),"Set");e.exports=n},5386:(e,t,r)=>{var n=r(6738),s=r(2842),i=r(2482);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},6571:(e,t,r)=>{var n=r(235),s=r(5243),i=r(2858),o=r(4417),a=r(8605),c=r(1418);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=s,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},857:(e,t,r)=>{var n=r(7772).Symbol;e.exports=n},9162:(e,t,r)=>{var n=r(7772).Uint8Array;e.exports=n},3215:(e,t,r)=>{var n=r(8761)(r(7772),"WeakMap");e.exports=n},7552:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},1634:(e,t,r)=>{var n=r(6473),s=r(9631),i=r(6152),o=r(3226),a=r(9045),c=r(7598),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&s(e),p=!r&&!u&&o(e),m=!r&&!u&&!p&&c(e),_=r||u||p||m,h=_?n(e.length,String):[],d=h.length;for(var f in e)!t&&!l.call(e,f)||_&&("length"==f||p&&("offset"==f||"parent"==f)||m&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,d))||h.push(f);return h}},5067:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},7064:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},2218:(e,t,r)=>{var n=r(1225);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},1897:(e,t,r)=>{var n=r(5067),s=r(6152);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},3366:(e,t,r)=>{var n=r(857),s=r(2107),i=r(7157),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},5183:(e,t,r)=>{var n=r(3366),s=r(5125);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},8746:(e,t,r)=>{var n=r(1952),s=r(5125);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,a))}},1952:(e,t,r)=>{var n=r(6571),s=r(4871),i=r(1491),o=r(7416),a=r(940),c=r(6152),l=r(3226),u=r(7598),p="[object Arguments]",m="[object Array]",_="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,f,y){var g=c(e),b=c(t),v=g?m:a(e),E=b?m:a(t),w=(v=v==p?_:v)==_,O=(E=E==p?_:E)==_,S=v==E;if(S&&l(e)){if(!l(t))return!1;g=!0,w=!1}if(S&&!w)return y||(y=new n),g||u(e)?s(e,t,r,d,f,y):i(e,t,v,r,d,f,y);if(!(1&r)){var x=w&&h.call(e,"__wrapped__"),j=O&&h.call(t,"__wrapped__");if(x||j){var P=x?e.value():e,M=j?t.value():t;return y||(y=new n),f(P,M,r,d,y)}}return!!S&&(y||(y=new n),o(e,t,r,d,f,y))}},6840:(e,t,r)=>{var n=r(1049),s=r(7394),i=r(9259),o=r(7035),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,p=l.hasOwnProperty,m=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?m:a).test(o(e))}},5522:(e,t,r)=>{var n=r(3366),s=r(1158),i=r(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[n(e)]}},6411:(e,t,r)=>{var n=r(6001),s=r(4248),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6473:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},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,r)=>{var n=r(7772)["__core-js_shared__"];e.exports=n},4871:(e,t,r)=>{var n=r(5386),s=r(7064),i=r(9950);e.exports=function(e,t,r,o,a,c){var l=1&r,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var m=c.get(e),_=c.get(t);if(m&&_)return m==t&&_==e;var h=-1,d=!0,f=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++h<u;){var y=e[h],g=t[h];if(o)var b=l?o(g,y,h,t,e,c):o(y,g,h,e,t,c);if(void 0!==b){if(b)continue;d=!1;break}if(f){if(!s(t,(function(e,t){if(!i(f,t)&&(y===e||a(y,e,r,o,c)))return f.push(t)}))){d=!1;break}}else if(y!==g&&!a(y,g,r,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},1491:(e,t,r)=>{var n=r(857),s=r(9162),i=r(1225),o=r(4871),a=r(5179),c=r(4207),l=n?n.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,n,l,p,m){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var _=a;case"[object Set]":var h=1&n;if(_||(_=c),e.size!=t.size&&!h)return!1;var d=m.get(e);if(d)return d==t;n|=2,m.set(e,t);var f=o(_(e),_(t),n,l,p,m);return m.delete(e),f;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},7416:(e,t,r)=>{var n=r(3483),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,l=n(e),u=l.length;if(u!=n(t).length&&!c)return!1;for(var p=u;p--;){var m=l[p];if(!(c?m in t:s.call(t,m)))return!1}var _=a.get(e),h=a.get(t);if(_&&h)return _==t&&h==e;var d=!0;a.set(e,t),a.set(t,e);for(var f=c;++p<u;){var y=e[m=l[p]],g=t[m];if(i)var b=c?i(g,y,m,t,e,a):i(y,g,m,e,t,a);if(!(void 0===b?y===g||o(y,g,r,i,a):b)){d=!1;break}f||(f="constructor"==m)}if(d&&!f){var v=e.constructor,E=t.constructor;v==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof E&&E instanceof E||(d=!1)}return a.delete(e),a.delete(t),d}},1242:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},3483:(e,t,r)=>{var n=r(1897),s=r(633),i=r(249);e.exports=function(e){return n(e,i,s)}},7937:(e,t,r)=>{var n=r(8304);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},8761:(e,t,r)=>{var n=r(6840),s=r(8109);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},2107:(e,t,r)=>{var n=r(857),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[a]=r:delete e[a]),s}},633:(e,t,r)=>{var n=r(7552),s=r(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},940:(e,t,r)=>{var n=r(9515),s=r(326),i=r(1985),o=r(2143),a=r(3215),c=r(3366),l=r(7035),u="[object Map]",p="[object Promise]",m="[object Set]",_="[object WeakMap]",h="[object DataView]",d=l(n),f=l(s),y=l(i),g=l(o),b=l(a),v=c;(n&&v(new n(new ArrayBuffer(1)))!=h||s&&v(new s)!=u||i&&v(i.resolve())!=p||o&&v(new o)!=m||a&&v(new a)!=_)&&(v=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case d:return h;case f:return u;case y:return p;case g:return m;case b:return _}return t}),e.exports=v},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2118:(e,t,r)=>{var n=r(9191);e.exports=function(){this.__data__=n?n(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,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},4174:(e,t,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},7942:(e,t,r)=>{var n=r(9191);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9045:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},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,r)=>{var n,s=r(4019),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},6001:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,r)=>{var n=r(2218),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},8028:(e,t,r)=>{var n=r(2218);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},2344:(e,t,r)=>{var n=r(2218);e.exports=function(e){return n(this.__data__,e)>-1}},4769:(e,t,r)=>{var n=r(2218);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},2411:(e,t,r)=>{var n=r(9612),s=r(235),i=r(326);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},6417:(e,t,r)=>{var n=r(7937);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,r)=>{var n=r(7937);e.exports=function(e){return n(this,e).get(e)}},9493:(e,t,r)=>{var n=r(7937);e.exports=function(e){return n(this,e).has(e)}},4150:(e,t,r)=>{var n=r(7937);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},5179:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},9191:(e,t,r)=>{var n=r(8761)(Object,"create");e.exports=n},4248:(e,t,r)=>{var n=r(241)(Object.keys,Object);e.exports=n},4146:(e,t,r)=>{e=r.nmd(e);var n=r(1242),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},241:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},7772:(e,t,r)=>{var n=r(1242),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||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,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},5243:(e,t,r)=>{var n=r(235);e.exports=function(){this.__data__=new n,this.size=0}},2858:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},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,r)=>{var n=r(235),s=r(326),i=r(6738);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},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,r)=>{var n=r(5183),s=r(5125),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},6152:e=>{var t=Array.isArray;e.exports=t},7878:(e,t,r)=>{var n=r(1049),s=r(1158);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},4335:(e,t,r)=>{var n=r(3366),s=r(5125);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},3226:(e,t,r)=>{e=r.nmd(e);var n=r(7772),s=r(6330),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},8149:(e,t,r)=>{var n=r(8746);e.exports=function(e,t){return n(e,t)}},1049:(e,t,r)=>{var n=r(3366),s=r(9259);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},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,r)=>{var n=r(3366),s=r(5125);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(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,r)=>{var n=r(3366),s=r(6152),i=r(5125);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},7598:(e,t,r)=>{var n=r(5522),s=r(7826),i=r(4146),o=i&&i.isTypedArray,a=o?s(o):n;e.exports=a},249:(e,t,r)=>{var n=r(1634),s=r(6411),i=r(7878);e.exports=function(e){return i(e)?n(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,r)=>{const n=r(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 r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},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,r)=>{const n=r(5877),s=r(5505),i=r(537),o=r(4335),a=r(9259),c=r(2947),l=r(3756);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(n,l.NullElement,!1).detect(s,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=u,e.exports=u},3853:(e,t,r)=>{const n=r(1570),s=r(1178);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3756:(e,t,r)=>{const n=r(6420),s=r(4152),i=r(9542),o=r(3710),a=r(3312),c=r(1641),l=r(8858),u=r(3860),p=r(5202),m=r(2320),_=r(1178),h=r(3853),d=r(3026);function f(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(f));if("object"==typeof e){return new u(e)}return e}n.prototype.ObjectElement=u,n.prototype.RefElement=m,n.prototype.MemberElement=l,n.prototype.refract=f,_.prototype.refract=f,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:m,refract:f,ArraySlice:_,ObjectSlice:h,KeyValuePair:d}},5202:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},2320:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},7952:(e,t,r)=>{const n=r(5140),s=r(3756);t.lS=n,r(3026),s.ArraySlice,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,r(2947),r(8910)},1641:(e,t,r)=>{const n=r(1570),s=r(6420),i=r(1178);class o extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},3312:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},6420:(e,t,r)=>{const n=r(8149),s=r(3026),i=r(1178);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8858:(e,t,r)=>{const n=r(3026),s=r(6420);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},4152:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},3860:(e,t,r)=>{const n=r(1570),s=r(9259),i=r(1641),o=r(8858),a=r(3853);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},9542:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(e,t,r)=>{const n=r(2947);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},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 r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},6591:e=>{!function(){"use strict";var t,r,n,s,i,o="properties",a="deepProperties",c="propertyDescriptors",l="staticProperties",u="staticDeepProperties",p="staticPropertyDescriptors",m="configuration",_="deepConfiguration",h="deepProps",d="deepStatics",f="deepConf",y="initializers",g="methods",b="composers",v="compose";function E(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function w(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var O=w.bind(0,(function(e,t){if(t)for(var r=E(t),n=0;n<r.length;n+=1)Object.defineProperty(e,r[n],Object.getOwnPropertyDescriptor(t,r[n]));return e}));function S(e){return"function"==typeof e}function x(e){return e&&"object"==typeof e||S(e)}function j(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var P=w.bind(0,(function e(r,n){if(n===t)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!j(n))return n;for(var s,i,o=E(n),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(n,s)).hasOwnProperty("value")?i.value!==t&&(r[s]=e(j(r[s])||Array.isArray(n[s])?r[s]:{},n[s])):Object.defineProperty(r,s,i);return r}));function M(){return(r=Array.prototype.concat.apply([],arguments).filter((function(e,t,r){return S(e)&&r.indexOf(e)===t}))).length?r:t}function A(e,t){function n(r,n){x(t[r])&&(x(e[r])||(e[r]={}),(n||O)(e[r],t[r]))}function s(n){(r=M(e[n],t[n]))&&(e[n]=r)}return t&&x(t=t[v]||t)&&(n(g),n(o),n(a,P),n(c),n(l),n(u,P),n(p),n(m),n(_,P),s(y),s(b)),e}function N(){return function(e){return r=function e(r){var n,s,i=e[v]||{},l={__proto__:i[g]},u=i[y],p=Array.prototype.slice.apply(arguments),m=i[a];if(m&&P(l,m),(m=i[o])&&O(l,m),(m=i[c])&&Object.defineProperties(l,m),!u||!u.length)return l;for(r===t&&(r={}),i=0;i<u.length;)S(n=u[i++])&&(l=(s=n.call(l,r,{instance:l,stamp:e,args:p}))===t?l:s);return l},(n=e[u])&&P(r,n),(n=e[l])&&O(r,n),(n=e[p])&&Object.defineProperties(r,n),n=S(r[v])?r[v]:N,O(r[v]=function(){return n.apply(this,arguments)},e),r}(Array.prototype.concat.apply([this],arguments).reduce(A,{}))}function I(e){return S(e)&&S(e[v])}var T={};function R(e,i){return function(){return(s={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[v]||n).call(r,s)}}T[g]=R(g,O),T[o]=T.props=R(o,O),T[y]=T.init=R(y,M),T[b]=R(b,M),T[a]=T[h]=R(a,P),T[l]=T.statics=R(l,O),T[u]=T[d]=R(u,P),T[m]=T.conf=R(m,O),T[_]=T[f]=R(_,P),T[c]=R(c,O),T[p]=R(p,O),n=T[v]=O((function(){for(var e,E,w=0,S=[],j=arguments,A=this;w<j.length;)x(e=j[w++])&&S.push(I(e)?e:((s={})[g]=(E=e)[g]||t,n=E.props,s[o]=x((r=E[o])||n)?O({},n,r):t,s[y]=M(E.init,E[y]),s[b]=M(E[b]),n=E[h],s[a]=x((r=E[a])||n)?P({},n,r):t,s[c]=E[c],n=E.statics,s[l]=x((r=E[l])||n)?O({},n,r):t,n=E[d],s[u]=x((r=E[u])||n)?P({},n,r):t,r=E[p],s[p]=x((n=E.name&&{name:{value:E.name}})||r)?O({},r,n):t,n=E.conf,s[m]=x((r=E[m])||n)?O({},n,r):t,n=E[f],s[_]=x((r=E[_])||n)?P({},n,r):t,s));if(e=N.apply(A||i,S),A&&S.unshift(A),Array.isArray(j=e[v][b]))for(w=0;w<j.length;)e=I(A=j[w++]({stamp:e,composables:S}))?A:e;return e}),T),T.create=function(){return this.apply(t,arguments)},(s={})[l]=T,i=N(s),n[v]=n.bind(),n.version="4.3.2","object"!=typeof t?e.exports=n:self.stampit=n}()},9794:(module,__unused_webpack_exports,__webpack_require__)=>{var __dirname="/",Module=void 0!==Module?Module:{},TreeSitter=function(){var initPromise,document="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise((resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,scriptDirectory="",read_,readAsync,readBinary,setWindowTitle;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}function logExceptionOnExit(e){e instanceof ExitStatus||err("exiting due to exception: "+e)}if(ENVIRONMENT_IS_NODE){var fs=__webpack_require__(5530),nodePath=__webpack_require__(6287);scriptDirectory=ENVIRONMENT_IS_WORKER?nodePath.dirname(scriptDirectory)+"/":__dirname+"/",read_=(e,t)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e,t?void 0:"utf8")),readBinary=e=>{var t=read_(e,!0);return t.buffer||(t=new Uint8Array(t)),t},readAsync=(e,t,r)=>{e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFile(e,(function(e,n){e?r(e):t(n.buffer)}))},process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{if(keepRuntimeAlive())throw process.exitCode=e,t;logExceptionOnExit(t),process.exit(e)},Module.inspect=function(){return"[Emscripten Module object]"}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1):"",read_=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)},setWindowTitle=e=>document.title=e);var out=Module.print||console.log.bind(console),err=Module.printErr||console.warn.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var STACK_ALIGN=16,dynamicLibraries=Module.dynamicLibraries||[],wasmBinary;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var noExitRuntime=Module.noExitRuntime||!0,wasmMemory;"object"!=typeof WebAssembly&&abort("no native wasm support detected");var ABORT=!1,EXITSTATUS,UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function UTF8ArrayToString(e,t,r){for(var n=t+r,s=t;e[s]&&!(s>=n);)++s;if(s-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.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 l=o-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function UTF8ToString(e,t){return e?UTF8ArrayToString(HEAPU8,e,t):""}function stringToUTF8Array(e,t,r,n){if(!(n>0))return 0;for(var s=r,i=r+n-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),a<=127){if(r>=i)break;t[r++]=a}else if(a<=2047){if(r+1>=i)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=i)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|63&a}}return t[r]=0,r-s}function stringToUTF8(e,t,r){return stringToUTF8Array(e,HEAPU8,t,r)}function lengthBytesUTF8(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t}function updateGlobalBufferAndViews(e){buffer=e,Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=Module.wasmMemory?Module.wasmMemory:new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768}),wasmMemory&&(buffer=wasmMemory.buffer),INITIAL_MEMORY=buffer.byteLength,updateGlobalBufferAndViews(buffer);var wasmTable=new WebAssembly.Table({initial:20,element:"anyfunc"}),__ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function keepRuntimeAlive(){return noExitRuntime}function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function addRunDependency(e){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort&&Module.onAbort(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var dataURIPrefix="data:application/octet-stream;base64,",wasmBinaryFile,tempDouble,tempI64;function isDataURI(e){return e.startsWith(dataURIPrefix)}function isFileURI(e){return e.startsWith("file://")}function getBinary(e){try{if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}catch(e){abort(e)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if("function"==typeof fetch&&!isFileURI(wasmBinaryFile))return fetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+wasmBinaryFile+"'";return e.arrayBuffer()})).catch((function(){return getBinary(wasmBinaryFile)}));if(readAsync)return new Promise((function(e,t){readAsync(wasmBinaryFile,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return getBinary(wasmBinaryFile)}))}function createWasm(){var e={env:asmLibraryArg,wasi_snapshot_preview1:asmLibraryArg,"GOT.mem":new Proxy(asmLibraryArg,GOTHandler),"GOT.func":new Proxy(asmLibraryArg,GOTHandler)};function t(e,t){var r=e.exports;r=relocateExports(r,1024);var n=getDylinkMetadata(t);n.neededDynlibs&&(dynamicLibraries=n.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(r,"main"),Module.asm=r,addOnInit(Module.asm.__wasm_call_ctors),__RELOC_FUNCS__.push(Module.asm.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate")}function r(e){t(e.instance,e.module)}function n(t){return getBinaryPromise().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){err("failed to asynchronously prepare wasm: "+e),abort(e)}))}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err("Module.instantiateWasm callback failed with error: "+e),!1}return wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(wasmBinaryFile)||isFileURI(wasmBinaryFile)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?n(r):fetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return err("wasm streaming compile failed: "+e),err("falling back to ArrayBuffer instantiation"),n(r)}))})),{}}wasmBinaryFile="tree-sitter.wasm",isDataURI(wasmBinaryFile)||(wasmBinaryFile=locateFile(wasmBinaryFile));var ASM_CONSTS={};function ExitStatus(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}var GOT={},CurrentModuleWeakSymbols=new Set([]),GOTHandler={get:function(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),CurrentModuleWeakSymbols.has(t)||(r.required=!0),r}};function callRuntimeCallbacks(e){for(;e.length>0;)e.shift()(Module)}function getDylinkMetadata(e){var t=0,r=0;function n(){for(var r=0,n=1;;){var s=e[t++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}function s(){var r=n();return UTF8ArrayToString(e,(t+=r)-r,r)}function i(e,t){if(e)throw new Error(t)}var o="dylink.0";if(e instanceof WebAssembly.Module){var a=WebAssembly.Module.customSections(e,o);0===a.length&&(o="dylink",a=WebAssembly.Module.customSections(e,o)),i(0===a.length,"need dylink section"),r=(e=new Uint8Array(a[0])).length}else{i(!(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0]),"need to see wasm magic number"),i(0!==e[8],"need the dylink section to be first"),t=9;var c=n();r=t+c,o=s()}var l={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==o){l.memorySize=n(),l.memoryAlign=n(),l.tableSize=n(),l.tableAlign=n();for(var u=n(),p=0;p<u;++p){var m=s();l.neededDynlibs.push(m)}}else for(i("dylink.0"!==o);t<r;){var _=e[t++],h=n();if(1===_)l.memorySize=n(),l.memoryAlign=n(),l.tableSize=n(),l.tableAlign=n();else if(2===_)for(u=n(),p=0;p<u;++p)m=s(),l.neededDynlibs.push(m);else if(3===_)for(var d=n();d--;){var f=s();256&n()&&l.tlsExports.add(f)}else if(4===_)for(d=n();d--;)s(),f=s(),1==(3&n())&&l.weakImports.add(f);else t+=h}return l}function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e>>0];case"i16":return HEAP16[e>>1];case"i32":case"i64":return HEAP32[e>>2];case"float":return HEAPF32[e>>2];case"double":return HEAPF64[e>>3];case"*":return HEAPU32[e>>2];default:abort("invalid type for getValue: "+t)}return null}function asmjsMangle(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore","getTempRet0","setTempRet0"].includes(e)?e:"_"+e}function mergeLibSymbols(e,t){for(var r in e)if(e.hasOwnProperty(r)){asmLibraryArg.hasOwnProperty(r)||(asmLibraryArg[r]=e[r]);var n=asmjsMangle(r);Module.hasOwnProperty(n)||(Module[n]=e[r]),"__main_argc_argv"==r&&(Module._main=e[r])}}var LDSO={loadedLibsByName:{},loadedLibsByHandle:{}};function dynCallLegacy(e,t,r){var n=Module["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)}var wasmTableMirror=[];function getWasmTableEntry(e){var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t}function dynCall(e,t,r){return e.includes("j")?dynCallLegacy(e,t,r):getWasmTableEntry(t).apply(null,r)}function createInvokeFunction(e){return function(){var t=stackSave();try{return dynCall(e,arguments[0],Array.prototype.slice.call(arguments,1))}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}}var ___heap_base=78144;function zeroMemory(e,t){return HEAPU8.fill(0,e,e+t),e}function getMemory(e){if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,r=t+e+15&-16;return ___heap_base=r,GOT.__heap_base.value=r,t}function isInternalSym(e){return["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm"].includes(e)}function uleb128Encode(e,t){e<128?t.push(e):t.push(e%128|128,e>>7)}function sigToWasmTypes(e){for(var t={i:"i32",j:"i32",f:"f32",d:"f64",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},n=1;n<e.length;++n)r.parameters.push(t[e[n]]),"j"===e[n]&&r.parameters.push("i32");return r}function generateFuncType(e,t){var r=e.slice(0,1),n=e.slice(1),s={i:127,p:127,j:126,f:125,d:124};t.push(96),uleb128Encode(n.length,t);for(var i=0;i<n.length;++i)t.push(s[n[i]]);"v"==r?t.push(0):t.push(1,s[r])}function convertJsFunctionToWasm(e,t){if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var n=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,n),n.push.apply(n,r),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var s=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(s,{e:{f:e}}).exports.f}function updateTableMap(e,t){if(functionsInTableMap)for(var r=e;r<e+t;r++){var n=getWasmTableEntry(r);n&&functionsInTableMap.set(n,r)}}var functionsInTableMap=void 0,freeTableIndexes=[];function getEmptyTableSlot(){if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1}function setWasmTableEntry(e,t){wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)}function addFunction(e,t){if(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.has(e))return functionsInTableMap.get(e);var r=getEmptyTableSlot();try{setWasmTableEntry(r,e)}catch(n){if(!(n instanceof TypeError))throw n;setWasmTableEntry(r,convertJsFunctionToWasm(e,t))}return functionsInTableMap.set(e,r),r}function updateGOT(e,t){for(var r in e)if(!isInternalSym(r)){var n=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||(GOT[r]=new WebAssembly.Global({value:"i32",mutable:!0})),(t||0==GOT[r].value)&&("function"==typeof n?GOT[r].value=addFunction(n):"number"==typeof n?GOT[r].value=n:err("unhandled export type for `"+r+"`: "+typeof n))}}function relocateExports(e,t,r){var n={};for(var s in e){var i=e[s];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=t),n[s]=i}return updateGOT(n,r),n}function resolveGlobalSymbol(e,t){var r;return t&&(r=asmLibraryArg["orig$"+e]),r||(r=asmLibraryArg[e])&&r.stub&&(r=void 0),r||(r=Module[asmjsMangle(e)]),!r&&e.startsWith("invoke_")&&(r=createInvokeFunction(e.split("_")[1])),r}function alignMemory(e,t){return Math.ceil(e/t)*t}function loadWebAssemblyModule(binary,flags,handle){var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+12>>0];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign);memAlign=Math.max(memAlign,STACK_ALIGN);var memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+12>>0]=1,HEAPU32[handle+16>>2]=memoryBase,HEAP32[handle+20>>2]=metadata.memorySize,HEAPU32[handle+24>>2]=tableBase,HEAP32[handle+28>>2]=metadata.tableSize)}else memoryBase=HEAPU32[handle+16>>2],tableBase=HEAPU32[handle+24>>2];var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e,!1);return t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get:function(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}return t in asmLibraryArg?asmLibraryArg[t]:(t in e||(e[t]=function(){return r||(r=resolveSymbol(t)),r.apply(null,arguments)}),e[t]);var r}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func="("+args+" ) => { "+body+"};";ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(instance))}return WebAssembly.instantiate(binary,info).then((function(e){return postInstantiation(e.instance)}))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(instance)}return CurrentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce((function(e,t){return e.then((function(){return loadDynamicLibrary(t,flags)}))}),Promise.resolve()).then((function(){return loadModule()})):(metadata.neededDynlibs.forEach((function(e){loadDynamicLibrary(e,flags)})),loadModule())}function loadDynamicLibrary(e,t,r){t=t||{global:!0,nodelete:!0};var n=LDSO.loadedLibsByName[e];if(n)return t.global&&!n.global&&(n.global=!0,"loading"!==n.module&&mergeLibSymbols(n.module,e)),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,r&&(LDSO.loadedLibsByHandle[r]=n),!t.loadAsync||Promise.resolve(!0);function s(e){if(t.fs&&t.fs.findObject(e)){var r=t.fs.readFile(e,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),t.loadAsync?Promise.resolve(r):r}if(e=locateFile(e),t.loadAsync)return new Promise((function(t,r){readAsync(e,(e=>t(new Uint8Array(e))),r)}));if(!readBinary)throw new Error(e+": file not found, and synchronous loading of external files is not available");return readBinary(e)}function i(){if("undefined"!=typeof preloadedWasm&&preloadedWasm[e]){var n=preloadedWasm[e];return t.loadAsync?Promise.resolve(n):n}return t.loadAsync?s(e).then((function(e){return loadWebAssemblyModule(e,t,r)})):loadWebAssemblyModule(s(e),t,r)}function o(t){n.global&&mergeLibSymbols(t,e),n.module=t}return n={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},LDSO.loadedLibsByName[e]=n,r&&(LDSO.loadedLibsByHandle[r]=n),t.loadAsync?i().then((function(e){return o(e),!0})):(o(i()),!0)}function reportUndefinedSymbols(){for(var e in GOT)if(0==GOT[e].value){var t=resolveGlobalSymbol(e,!0);if(!t&&!GOT[e].required)continue;if("function"==typeof t)GOT[e].value=addFunction(t,t.sig);else{if("number"!=typeof t)throw new Error("bad export type for `"+e+"`: "+typeof t);GOT[e].value=t}}}function preloadDylibs(){dynamicLibraries.length?(addRunDependency("preloadDylibs"),dynamicLibraries.reduce((function(e,t){return e.then((function(){return loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){reportUndefinedSymbols(),removeRunDependency("preloadDylibs")}))):reportUndefinedSymbols()}function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e>>0]=t;break;case"i16":HEAP16[e>>1]=t;break;case"i32":HEAP32[e>>2]=t;break;case"i64":tempI64=[t>>>0,(tempDouble=t,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[e>>2]=tempI64[0],HEAP32[e+4>>2]=tempI64[1];break;case"float":HEAPF32[e>>2]=t;break;case"double":HEAPF64[e>>3]=t;break;case"*":HEAPU32[e>>2]=t;break;default:abort("invalid type for setValue: "+r)}}var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78144),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),nowIsMonotonic=!0,_emscripten_get_now;function __emscripten_get_now_is_monotonic(){return nowIsMonotonic}function _abort(){abort("")}function _emscripten_date_now(){return Date.now()}function _emscripten_memcpy_big(e,t,r){HEAPU8.copyWithin(e,t,t+r)}function getHeapMax(){return 2147483648}function emscripten_realloc_buffer(e){try{return wasmMemory.grow(e-buffer.byteLength+65535>>>16),updateGlobalBufferAndViews(wasmMemory.buffer),1}catch(e){}}function _emscripten_resize_heap(e){var t=HEAPU8.length;e>>>=0;var r,n=getHeapMax();if(e>n)return!1;for(var s=1;s<=4;s*=2){var i=t*(1+.2/s);if(i=Math.min(i,e+100663296),emscripten_realloc_buffer(Math.min(n,(r=Math.max(e,i))+(65536-r%65536)%65536)))return!0}return!1}__emscripten_get_now_is_monotonic.sig="i",Module._abort=_abort,_abort.sig="v",_emscripten_date_now.sig="d",_emscripten_get_now=ENVIRONMENT_IS_NODE?()=>{var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:()=>performance.now(),_emscripten_get_now.sig="d",_emscripten_memcpy_big.sig="vppp",_emscripten_resize_heap.sig="ip";var SYSCALLS={DEFAULT_POLLMASK:5,calculateAt:function(e,t,r){if(PATH.isAbs(t))return t;var n;if(n=-100===e?FS.cwd():SYSCALLS.getStreamFromFD(e).path,0==t.length){if(!r)throw new FS.ErrnoError(44);return n}return PATH.join2(n,t)},doStat:function(e,t,r){try{var n=e(t)}catch(e){if(e&&e.node&&PATH.normalize(t)!==PATH.normalize(FS.getPath(e.node)))return-54;throw e}HEAP32[r>>2]=n.dev,HEAP32[r+8>>2]=n.ino,HEAP32[r+12>>2]=n.mode,HEAPU32[r+16>>2]=n.nlink,HEAP32[r+20>>2]=n.uid,HEAP32[r+24>>2]=n.gid,HEAP32[r+28>>2]=n.rdev,tempI64=[n.size>>>0,(tempDouble=n.size,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+40>>2]=tempI64[0],HEAP32[r+44>>2]=tempI64[1],HEAP32[r+48>>2]=4096,HEAP32[r+52>>2]=n.blocks;var s=n.atime.getTime(),i=n.mtime.getTime(),o=n.ctime.getTime();return tempI64=[Math.floor(s/1e3)>>>0,(tempDouble=Math.floor(s/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+56>>2]=tempI64[0],HEAP32[r+60>>2]=tempI64[1],HEAPU32[r+64>>2]=s%1e3*1e3,tempI64=[Math.floor(i/1e3)>>>0,(tempDouble=Math.floor(i/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+72>>2]=tempI64[0],HEAP32[r+76>>2]=tempI64[1],HEAPU32[r+80>>2]=i%1e3*1e3,tempI64=[Math.floor(o/1e3)>>>0,(tempDouble=Math.floor(o/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+88>>2]=tempI64[0],HEAP32[r+92>>2]=tempI64[1],HEAPU32[r+96>>2]=o%1e3*1e3,tempI64=[n.ino>>>0,(tempDouble=n.ino,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+104>>2]=tempI64[0],HEAP32[r+108>>2]=tempI64[1],0},doMsync:function(e,t,r,n,s){if(!FS.isFile(t.node.mode))throw new FS.ErrnoError(43);if(2&n)return 0;var i=HEAPU8.slice(e,e+r);FS.msync(t,i,s,r,n)},varargs:void 0,get:function(){return SYSCALLS.varargs+=4,HEAP32[SYSCALLS.varargs-4>>2]},getStr:function(e){return UTF8ToString(e)},getStreamFromFD:function(e){var t=FS.getStream(e);if(!t)throw new FS.ErrnoError(8);return t}};function _proc_exit(e){EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit&&Module.onExit(e),ABORT=!0),quit_(e,new ExitStatus(e))}function exitJS(e,t){EXITSTATUS=e,_proc_exit(e)}_proc_exit.sig="vi";var _exit=exitJS;function _fd_close(e){try{var t=SYSCALLS.getStreamFromFD(e);return FS.close(t),0}catch(e){if("undefined"==typeof FS||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function convertI32PairToI53Checked(e,t){return t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN}function _fd_seek(e,t,r,n,s){try{var i=convertI32PairToI53Checked(t,r);if(isNaN(i))return 61;var o=SYSCALLS.getStreamFromFD(e);return FS.llseek(o,i,n),tempI64=[o.position>>>0,(tempDouble=o.position,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[s>>2]=tempI64[0],HEAP32[s+4>>2]=tempI64[1],o.getdents&&0===i&&0===n&&(o.getdents=null),0}catch(e){if("undefined"==typeof FS||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function doWritev(e,t,r,n){for(var s=0,i=0;i<r;i++){var o=HEAPU32[t>>2],a=HEAPU32[t+4>>2];t+=8;var c=FS.write(e,HEAP8,o,a,n);if(c<0)return-1;s+=c,void 0!==n&&(n+=c)}return s}function _fd_write(e,t,r,n){try{var s=doWritev(SYSCALLS.getStreamFromFD(e),t,r);return HEAPU32[n>>2]=s,0}catch(e){if("undefined"==typeof FS||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function _tree_sitter_log_callback(e,t){if(currentLogCallback){const r=UTF8ToString(t);currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,n,s){var i=currentParseCallback(t,{row:r,column:n});"string"==typeof i?(setValue(s,i.length,"i32"),stringToUTF16(i,e,10240)):setValue(s,0,"i32")}function handleException(e){if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)}function allocateUTF8OnStack(e){var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8Array(e,HEAP8,r,t),r}function stringToUTF16(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,s=(r-=2)<2*e.length?r/2:e.length,i=0;i<s;++i){var o=e.charCodeAt(i);HEAP16[t>>1]=o,t+=2}return HEAP16[t>>1]=0,t-n}function AsciiToString(e){for(var t="";;){var r=HEAPU8[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}_exit.sig="vi",_fd_close.sig="ii",_fd_seek.sig="iijip",_fd_write.sig="iippp";var asmLibraryArg={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,abort:_abort,emscripten_get_now:_emscripten_get_now,emscripten_memcpy_big:_emscripten_memcpy_big,emscripten_resize_heap:_emscripten_resize_heap,exit:_exit,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},asm=createWasm(),___wasm_call_ctors=Module.___wasm_call_ctors=function(){return(___wasm_call_ctors=Module.___wasm_call_ctors=Module.asm.__wasm_call_ctors).apply(null,arguments)},___wasm_apply_data_relocs=Module.___wasm_apply_data_relocs=function(){return(___wasm_apply_data_relocs=Module.___wasm_apply_data_relocs=Module.asm.__wasm_apply_data_relocs).apply(null,arguments)},_malloc=Module._malloc=function(){return(_malloc=Module._malloc=Module.asm.malloc).apply(null,arguments)},_calloc=Module._calloc=function(){return(_calloc=Module._calloc=Module.asm.calloc).apply(null,arguments)},_realloc=Module._realloc=function(){return(_realloc=Module._realloc=Module.asm.realloc).apply(null,arguments)},_free=Module._free=function(){return(_free=Module._free=Module.asm.free).apply(null,arguments)},_ts_language_symbol_count=Module._ts_language_symbol_count=function(){return(_ts_language_symbol_count=Module._ts_language_symbol_count=Module.asm.ts_language_symbol_count).apply(null,arguments)},_ts_language_version=Module._ts_language_version=function(){return(_ts_language_version=Module._ts_language_version=Module.asm.ts_language_version).apply(null,arguments)},_ts_language_field_count=Module._ts_language_field_count=function(){return(_ts_language_field_count=Module._ts_language_field_count=Module.asm.ts_language_field_count).apply(null,arguments)},_ts_language_symbol_name=Module._ts_language_symbol_name=function(){return(_ts_language_symbol_name=Module._ts_language_symbol_name=Module.asm.ts_language_symbol_name).apply(null,arguments)},_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=function(){return(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=Module.asm.ts_language_symbol_for_name).apply(null,arguments)},_ts_language_symbol_type=Module._ts_language_symbol_type=function(){return(_ts_language_symbol_type=Module._ts_language_symbol_type=Module.asm.ts_language_symbol_type).apply(null,arguments)},_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=function(){return(_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=Module.asm.ts_language_field_name_for_id).apply(null,arguments)},_memset=Module._memset=function(){return(_memset=Module._memset=Module.asm.memset).apply(null,arguments)},_memcpy=Module._memcpy=function(){return(_memcpy=Module._memcpy=Module.asm.memcpy).apply(null,arguments)},_ts_parser_delete=Module._ts_parser_delete=function(){return(_ts_parser_delete=Module._ts_parser_delete=Module.asm.ts_parser_delete).apply(null,arguments)},_ts_parser_reset=Module._ts_parser_reset=function(){return(_ts_parser_reset=Module._ts_parser_reset=Module.asm.ts_parser_reset).apply(null,arguments)},_ts_parser_set_language=Module._ts_parser_set_language=function(){return(_ts_parser_set_language=Module._ts_parser_set_language=Module.asm.ts_parser_set_language).apply(null,arguments)},_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=function(){return(_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=Module.asm.ts_parser_timeout_micros).apply(null,arguments)},_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=function(){return(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=Module.asm.ts_parser_set_timeout_micros).apply(null,arguments)},_memmove=Module._memmove=function(){return(_memmove=Module._memmove=Module.asm.memmove).apply(null,arguments)},_memcmp=Module._memcmp=function(){return(_memcmp=Module._memcmp=Module.asm.memcmp).apply(null,arguments)},_ts_query_new=Module._ts_query_new=function(){return(_ts_query_new=Module._ts_query_new=Module.asm.ts_query_new).apply(null,arguments)},_ts_query_delete=Module._ts_query_delete=function(){return(_ts_query_delete=Module._ts_query_delete=Module.asm.ts_query_delete).apply(null,arguments)},_iswspace=Module._iswspace=function(){return(_iswspace=Module._iswspace=Module.asm.iswspace).apply(null,arguments)},_iswalnum=Module._iswalnum=function(){return(_iswalnum=Module._iswalnum=Module.asm.iswalnum).apply(null,arguments)},_ts_query_pattern_count=Module._ts_query_pattern_count=function(){return(_ts_query_pattern_count=Module._ts_query_pattern_count=Module.asm.ts_query_pattern_count).apply(null,arguments)},_ts_query_capture_count=Module._ts_query_capture_count=function(){return(_ts_query_capture_count=Module._ts_query_capture_count=Module.asm.ts_query_capture_count).apply(null,arguments)},_ts_query_string_count=Module._ts_query_string_count=function(){return(_ts_query_string_count=Module._ts_query_string_count=Module.asm.ts_query_string_count).apply(null,arguments)},_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=function(){return(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=Module.asm.ts_query_capture_name_for_id).apply(null,arguments)},_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=function(){return(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=Module.asm.ts_query_string_value_for_id).apply(null,arguments)},_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=function(){return(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=Module.asm.ts_query_predicates_for_pattern).apply(null,arguments)},_ts_tree_copy=Module._ts_tree_copy=function(){return(_ts_tree_copy=Module._ts_tree_copy=Module.asm.ts_tree_copy).apply(null,arguments)},_ts_tree_delete=Module._ts_tree_delete=function(){return(_ts_tree_delete=Module._ts_tree_delete=Module.asm.ts_tree_delete).apply(null,arguments)},_ts_init=Module._ts_init=function(){return(_ts_init=Module._ts_init=Module.asm.ts_init).apply(null,arguments)},_ts_parser_new_wasm=Module._ts_parser_new_wasm=function(){return(_ts_parser_new_wasm=Module._ts_parser_new_wasm=Module.asm.ts_parser_new_wasm).apply(null,arguments)},_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=function(){return(_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=Module.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=function(){return(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=Module.asm.ts_parser_parse_wasm).apply(null,arguments)},_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=function(){return(_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=Module.asm.ts_language_type_is_named_wasm).apply(null,arguments)},_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=function(){return(_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=Module.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=function(){return(_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=Module.asm.ts_tree_root_node_wasm).apply(null,arguments)},_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=function(){return(_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=Module.asm.ts_tree_edit_wasm).apply(null,arguments)},_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=function(){return(_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=Module.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=function(){return(_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=Module.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=function(){return(_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=Module.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=function(){return(_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=Module.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=function(){return(_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=Module.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=function(){return(_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=Module.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=function(){return(_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=Module.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=function(){return(_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=Module.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=function(){return(_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=Module.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=function(){return(_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=Module.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=function(){return(_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=Module.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=function(){return(_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=Module.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=function(){return(_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=Module.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=function(){return(_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=Module.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=function(){return(_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=Module.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=function(){return(_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=Module.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=function(){return(_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=Module.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=function(){return(_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=Module.asm.ts_node_symbol_wasm).apply(null,arguments)},_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=function(){return(_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=Module.asm.ts_node_child_count_wasm).apply(null,arguments)},_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=function(){return(_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=Module.asm.ts_node_named_child_count_wasm).apply(null,arguments)},_ts_node_child_wasm=Module._ts_node_child_wasm=function(){return(_ts_node_child_wasm=Module._ts_node_child_wasm=Module.asm.ts_node_child_wasm).apply(null,arguments)},_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=function(){return(_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=Module.asm.ts_node_named_child_wasm).apply(null,arguments)},_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=function(){return(_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=Module.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=function(){return(_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=Module.asm.ts_node_next_sibling_wasm).apply(null,arguments)},_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=function(){return(_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=Module.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=function(){return(_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=Module.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=function(){return(_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=Module.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},_ts_node_parent_wasm=Module._ts_node_parent_wasm=function(){return(_ts_node_parent_wasm=Module._ts_node_parent_wasm=Module.asm.ts_node_parent_wasm).apply(null,arguments)},_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=function(){return(_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=Module.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=function(){return(_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=Module.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=function(){return(_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=Module.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=function(){return(_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=Module.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=function(){return(_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=Module.asm.ts_node_start_point_wasm).apply(null,arguments)},_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=function(){return(_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=Module.asm.ts_node_end_point_wasm).apply(null,arguments)},_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=function(){return(_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=Module.asm.ts_node_start_index_wasm).apply(null,arguments)},_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=function(){return(_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=Module.asm.ts_node_end_index_wasm).apply(null,arguments)},_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=function(){return(_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=Module.asm.ts_node_to_string_wasm).apply(null,arguments)},_ts_node_children_wasm=Module._ts_node_children_wasm=function(){return(_ts_node_children_wasm=Module._ts_node_children_wasm=Module.asm.ts_node_children_wasm).apply(null,arguments)},_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=function(){return(_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=Module.asm.ts_node_named_children_wasm).apply(null,arguments)},_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=function(){return(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=Module.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=function(){return(_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=Module.asm.ts_node_is_named_wasm).apply(null,arguments)},_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=function(){return(_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=Module.asm.ts_node_has_changes_wasm).apply(null,arguments)},_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=function(){return(_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=Module.asm.ts_node_has_error_wasm).apply(null,arguments)},_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=function(){return(_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=Module.asm.ts_node_is_missing_wasm).apply(null,arguments)},_ts_query_matches_wasm=Module._ts_query_matches_wasm=function(){return(_ts_query_matches_wasm=Module._ts_query_matches_wasm=Module.asm.ts_query_matches_wasm).apply(null,arguments)},_ts_query_captures_wasm=Module._ts_query_captures_wasm=function(){return(_ts_query_captures_wasm=Module._ts_query_captures_wasm=Module.asm.ts_query_captures_wasm).apply(null,arguments)},___cxa_atexit=Module.___cxa_atexit=function(){return(___cxa_atexit=Module.___cxa_atexit=Module.asm.__cxa_atexit).apply(null,arguments)},_iswdigit=Module._iswdigit=function(){return(_iswdigit=Module._iswdigit=Module.asm.iswdigit).apply(null,arguments)},_iswalpha=Module._iswalpha=function(){return(_iswalpha=Module._iswalpha=Module.asm.iswalpha).apply(null,arguments)},_iswlower=Module._iswlower=function(){return(_iswlower=Module._iswlower=Module.asm.iswlower).apply(null,arguments)},_memchr=Module._memchr=function(){return(_memchr=Module._memchr=Module.asm.memchr).apply(null,arguments)},_strlen=Module._strlen=function(){return(_strlen=Module._strlen=Module.asm.strlen).apply(null,arguments)},_towupper=Module._towupper=function(){return(_towupper=Module._towupper=Module.asm.towupper).apply(null,arguments)},_setThrew=Module._setThrew=function(){return(_setThrew=Module._setThrew=Module.asm.setThrew).apply(null,arguments)},stackSave=Module.stackSave=function(){return(stackSave=Module.stackSave=Module.asm.stackSave).apply(null,arguments)},stackRestore=Module.stackRestore=function(){return(stackRestore=Module.stackRestore=Module.asm.stackRestore).apply(null,arguments)},stackAlloc=Module.stackAlloc=function(){return(stackAlloc=Module.stackAlloc=Module.asm.stackAlloc).apply(null,arguments)},__Znwm=Module.__Znwm=function(){return(__Znwm=Module.__Znwm=Module.asm._Znwm).apply(null,arguments)},__ZdlPv=Module.__ZdlPv=function(){return(__ZdlPv=Module.__ZdlPv=Module.asm._ZdlPv).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=function(){return(__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw).apply(null,arguments)},dynCall_jiji=Module.dynCall_jiji=function(){return(dynCall_jiji=Module.dynCall_jiji=Module.asm.dynCall_jiji).apply(null,arguments)},_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=function(){return(_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=Module.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=function(){return(_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=Module.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},calledRun;function callMain(e){var t=Module._main;if(t){(e=e||[]).unshift(thisProgram);var r=e.length,n=stackAlloc(4*(r+1)),s=n>>2;e.forEach((e=>{HEAP32[s++]=allocateUTF8OnStack(e)})),HEAP32[s]=0;try{var i=t(r,n);return exitJS(i,!0),i}catch(e){return handleException(e)}}}Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)};var dylibsLoaded=!1;function run(e){function t(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),shouldRunNow&&callMain(e),postRun()))}e=e||arguments_,runDependencies>0||!dylibsLoaded&&(preloadDylibs(),dylibsLoaded=!0,runDependencies>0)||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t()))}if(Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();const C=Module,INTERNAL={},SIZE_OF_INT=4,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},QUERY_WORD_REGEX=/[\w-.]*/g,PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,LANGUAGE_FUNCTION_REGEX=/^_?tree_sitter_\w+/;var VERSION,MIN_COMPATIBLE_VERSION,TRANSFER_BUFFER,currentParseCallback,currentLogCallback;class ParserImpl{static init(){TRANSFER_BUFFER=C._ts_init(),VERSION=getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}initialize(){C._ts_parser_new_wasm(),this[0]=getValue(TRANSFER_BUFFER,"i32"),this[1]=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const r=C._ts_language_version(t);if(r<MIN_COMPATIBLE_VERSION||VERSION<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)currentParseCallback=(t,r,n)=>e.slice(t,n);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r&&r.includedRanges){n=r.includedRanges.length,s=C._calloc(n,SIZE_OF_RANGE);let e=s;for(let t=0;t<n;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}const i=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,n);if(!i)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const o=new Tree(INTERNAL,i,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,o}reset(){C._ts_parser_reset(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return C._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 Tree{constructor(e,t,r,n){assertInternal(e),this[0]=t,this.language=r,this.textCallback=n}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return n}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),r||(r=ZERO_POINT);const n=[],s=this.tree.language.types;for(let t=0,r=s.length;t<r;t++)e.includes(s[t])&&n.push(t);const i=C._malloc(SIZE_OF_INT*n.length);for(let e=0,t=n.length;e<t;e++)setValue(i+e*SIZE_OF_INT,n[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,t.row,t.column,r.row,r.column);const o=getValue(TRANSFER_BUFFER,"i32"),a=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(a),C._free(i),c}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=lengthBytesUTF8(e),n=C._malloc(r+1);stringToUTF8(e,n,r+1);const s=C._ts_language_symbol_for_name(this[0],n,r,t);return C._free(n),s||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1);const n=C._ts_query_new(this[0],r,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!n){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=UTF8ToString(r,getValue(TRANSFER_BUFFER,"i32")).length,s=e.substr(n,100).split("\n")[0];let i,o=s.match(QUERY_WORD_REGEX)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${n}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${n}: '${s}'...`),o=""}throw i.index=n,i.length=o.length,C._free(r),i}const s=C._ts_query_string_count(n),i=C._ts_query_capture_count(n),o=C._ts_query_pattern_count(n),a=new Array(i),c=new Array(s);for(let e=0;e<i;e++){const t=C._ts_query_capture_name_for_id(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");a[e]=UTF8ToString(t,r)}for(let e=0;e<s;e++){const t=C._ts_query_string_value_for_id(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");c[e]=UTF8ToString(t,r)}const l=new Array(o),u=new Array(o),p=new Array(o),m=new Array(o),_=new Array(o);for(let e=0;e<o;e++){const t=C._ts_query_predicates_for_pattern(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");m[e]=[],_[e]=[];const s=[];let i=t;for(let t=0;t<r;t++){const t=getValue(i,"i32");i+=SIZE_OF_INT;const r=getValue(i,"i32");if(i+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)s.push({type:"capture",name:a[r]});else if(t===PREDICATE_STEP_TYPE_STRING)s.push({type:"string",value:c[r]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let r=!0;switch(t){case"not-eq?":r=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const t=s[1].name,n=s[2].name;_[e].push((function(e){let s,i;for(const r of e)r.name===t&&(s=r.node),r.name===n&&(i=r.node);return void 0===s||void 0===i||s.text===i.text===r}))}else{const t=s[1].name,n=s[2].value;_[e].push((function(e){for(const s of e)if(s.name===t)return s.node.text===n===r;return!0}))}break;case"not-match?":r=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const n=s[1].name,i=new RegExp(s[2].value);_[e].push((function(e){for(const t of e)if(t.name===n)return i.test(t.node.text)===r;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');l[e]||(l[e]={}),l[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?u:p;o[e]||(o[e]={}),o[e][s[1].value]=s[2]?s[2].value:null;break;default:m[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(p[e])}return C._free(r),new Query(INTERNAL,n,a,_,m,Object.freeze(l),Object.freeze(u),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=__webpack_require__(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 r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}const r="function"==typeof loadSideModule?loadSideModule:loadWebAssemblyModule;return t.then((e=>r(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const n=e[r]();return new Language(INTERNAL,n)}))}}class Query{constructor(e,t,r,n,s,i,o,a){assertInternal(e),this[0]=t,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,n){t||(t=ZERO_POINT),r||(r=ZERO_POINT),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const i=getValue(TRANSFER_BUFFER,"i32"),o=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),a=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let l=0,u=o;for(let t=0;t<i;t++){const r=getValue(u,"i32");u+=SIZE_OF_INT;const n=getValue(u,"i32");u+=SIZE_OF_INT;const s=new Array(n);if(u=unmarshalCaptures(this,e.tree,u,s),this.textPredicates[r].every((e=>e(s)))){c[l++]={pattern:r,captures:s};const e=this.setProperties[r];e&&(c[t].setProperties=e);const n=this.assertedProperties[r];n&&(c[t].assertedProperties=n);const i=this.refutedProperties[r];i&&(c[t].refutedProperties=i)}}return c.length=l,C._free(o),c}captures(e,t,r,n){t||(t=ZERO_POINT),r||(r=ZERO_POINT),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const i=getValue(TRANSFER_BUFFER,"i32"),o=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),a=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),c=[];this.exceededMatchLimit=!!a;const l=[];let u=o;for(let t=0;t<i;t++){const t=getValue(u,"i32");u+=SIZE_OF_INT;const r=getValue(u,"i32");u+=SIZE_OF_INT;const n=getValue(u,"i32");if(u+=SIZE_OF_INT,l.length=r,u=unmarshalCaptures(this,e.tree,u,l),this.textPredicates[t].every((e=>e(l)))){const e=l[n],r=this.setProperties[t];r&&(e.setProperties=r);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return C._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,r){const n=r-t;let s=e.textCallback(t,null,r);for(t+=s.length;t<r;){const n=e.textCallback(t,null,r);if(!(n&&n.length>0))break;t+=n.length,s+=n}return t>r&&(s=s.slice(0,n)),s}function unmarshalCaptures(e,t,r,n){for(let s=0,i=n.length;s<i;s++){const i=getValue(r,"i32"),o=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,n[s]={name:e.captureNames[i],node:o}}return r}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const r=getValue(t,"i32");if(0===r)return null;const n=getValue(t+=SIZE_OF_INT,"i32"),s=getValue(t+=SIZE_OF_INT,"i32"),i=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),a=new Node(INTERNAL,e);return a.id=r,a.startIndex=n,a.startPosition={row:s,column:i},a[0]=o,a}function marshalTreeCursor(e,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,e[0],"i32"),setValue(t+1*SIZE_OF_INT,e[1],"i32"),setValue(t+2*SIZE_OF_INT,e[2],"i32")}function unmarshalTreeCursor(e){e[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32")}function marshalPoint(e,t){setValue(e,t.row,"i32"),setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:getValue(e,"i32"),column:getValue(e+SIZE_OF_INT,"i32")}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),setValue(e+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(e+=SIZE_OF_INT,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=getValue(e,"i32"),e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32"),t}function marshalEdit(e){let t=TRANSFER_BUFFER;marshalPoint(t,e.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.newEndPosition),t+=SIZE_OF_POINT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}})))}}return Parser}();module.exports=TreeSitter},5530:()=>{},6287:()=>{}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&!e;)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})();var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{detect:()=>gm,detectionRegExp:()=>ym,mediaTypes:()=>fm,namespace:()=>vm,parse:()=>bm});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>zr,includesClasses:()=>Wr,includesSymbols:()=>Gr,isAnnotationElement:()=>Ur,isArrayElement:()=>Dr,isBooleanElement:()=>kr,isCommentElement:()=>Lr,isElement:()=>Ir,isLinkElement:()=>Br,isMemberElement:()=>qr,isNullElement:()=>Fr,isNumberElement:()=>Rr,isObjectElement:()=>Cr,isParseResultElement:()=>$r,isPrimitiveElement:()=>Hr,isRefElement:()=>Vr,isSourceMapElement:()=>Zr,isStringElement:()=>Tr});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>wo,isJSONSchemaElement:()=>Eo,isLinkDescriptionElement:()=>So,isMediaElement:()=>Oo});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{isOpenApi3_0LikeElement:()=>Yo,isOpenApiExtension:()=>ia,isParameterLikeElement:()=>Qo,isReferenceLikeElement:()=>ea,isRequestBodyLikeElement:()=>ta,isResponseLikeElement:()=>ra,isServerLikeElement:()=>na,isTagLikeElement:()=>sa});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{isBooleanJsonSchemaElement:()=>yc,isCallbackElement:()=>Wa,isComponentsElement:()=>Ja,isContactElement:()=>Ka,isExampleElement:()=>Xa,isExternalDocumentationElement:()=>Ya,isHeaderElement:()=>Qa,isInfoElement:()=>ec,isLicenseElement:()=>tc,isLinkElement:()=>rc,isLinkElementExternal:()=>nc,isMediaTypeElement:()=>Ec,isOpenApi3_0Element:()=>ic,isOpenapiElement:()=>sc,isOperationElement:()=>oc,isParameterElement:()=>ac,isPathItemElement:()=>cc,isPathItemElementExternal:()=>lc,isPathsElement:()=>uc,isReferenceElement:()=>pc,isReferenceElementExternal:()=>mc,isRequestBodyElement:()=>_c,isResponseElement:()=>hc,isResponsesElement:()=>dc,isSchemaElement:()=>fc,isSecurityRequirementElement:()=>gc,isServerElement:()=>bc,isServerVariableElement:()=>vc});const s=function(){return!1};const i=function(){return!0};function o(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function a(e){return function t(r){return 0===arguments.length||o(r)?t:e.apply(this,arguments)}}function c(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return o(r)?t:a((function(t){return e(r,t)}));default:return o(r)&&o(n)?t:o(r)?a((function(t){return e(t,n)})):o(n)?a((function(t){return e(r,t)})):e(r,n)}}}const l=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function u(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!l(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function p(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const m=function(){return this.xf["@@transducer/init"]()},_=function(e){return this.xf["@@transducer/result"](e)};var h=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=p(this.xf["@@transducer/step"](e,!1))),e},e}();function d(e){return function(t){return new h(e,t)}}const f=c(u(["all"],d,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function y(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function g(e,t,r){return function(){for(var n=[],s=0,i=e,a=0;a<t.length||s<arguments.length;){var c;a<t.length&&(!o(t[a])||s>=arguments.length)?c=t[a]:(c=arguments[s],s+=1),n[a]=c,o(c)||(i-=1),a+=1}return i<=0?r.apply(this,n):y(i,g(e,n,r))}}const b=c((function(e,t){return 1===e?a(t):y(e,g(e,[],t))}));function v(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function E(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function w(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const O="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var S=Object.prototype.toString;const x=function(){return"[object Arguments]"===S.call(arguments)?function(e){return"[object Arguments]"===S.call(e)}:function(e){return w("callee",e)}}();var j=!{toString:null}.propertyIsEnumerable("toString"),P=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],M=function(){return arguments.propertyIsEnumerable("length")}(),A=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1};const N="function"!=typeof Object.keys||M?a((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=M&&x(e);for(t in e)!w(t,e)||s&&"length"===t||(n[n.length]=t);if(j)for(r=P.length-1;r>=0;)w(t=P[r],e)&&!A(n,t)&&(n[n.length]=t),r-=1;return n})):a((function(e){return Object(e)!==e?[]:Object.keys(e)}));const I=a((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function T(e,t,r,n){var s=v(e);function i(e,t){return R(e,t,r.slice(),n.slice())}return!E((function(e,t){return!E(i,t,e)}),v(t),s)}function R(e,t,r,n){if(O(e,t))return!0;var s,i,o=I(e);if(o!==I(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||!O(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!O(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===e)return n[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&T(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&T(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=N(e);if(c.length!==N(t).length)return!1;var l=r.concat([e]),u=n.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!w(p,t)||!R(t[p],e[p],l,u))return!1;a-=1}return!0}const F=c((function(e,t){return R(e,t,[],[])}));function k(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(F(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function C(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function D(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 q=function(e){return(e<10?"0":"")+e};const B="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+q(e.getUTCMonth()+1)+"-"+q(e.getUTCDate())+"T"+q(e.getUTCHours())+":"+q(e.getUTCMinutes())+":"+q(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function V(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}function U(e){return"[object Object]"===Object.prototype.toString.call(e)}var L=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=_,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function $(e){return function(t){return new L(e,t)}}const Z=c(u(["fantasy-land/filter","filter"],$,(function(e,t){return U(t)?V((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},N(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const H=c((function(e,t){return Z((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function z(e,t){var r=function(r){var n=t.concat([e]);return k(r,n)?"<Circular>":z(r,n)},n=function(e,t){return C((function(t){return D(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+C(r,e).join(", ")+"))";case"[object Array]":return"["+C(r,e).concat(n(e,H((function(e){return/^\d+$/.test(e)}),N(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):D(B(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":D(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,N(e)).join(", ")+"}"}}const G=a((function(e){return z(e,[])}));const W=c((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=G(e),o=r(i,G(t));return void 0!==o&&o===i?e:t}));var J=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=_,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const K=c(u(["fantasy-land/map","map"],(function(e){return function(t){return new J(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return b(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return V((function(r,n){return r[n]=e(t[n]),r}),{},N(t));default:return C(e,t)}}))),X=Number.isInteger||function(e){return e<<0===e};function Y(e){return"[object String]"===Object.prototype.toString.call(e)}const Q=c((function(e,t){var r=e<0?t.length+e:e;return Y(t)?t.charAt(r):t[r]}));const ee=c((function(e,t){if(null!=t)return X(e)?Q(e,t):t[e]}));const te=c((function(e,t){return K(ee(e),t)}));function re(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return o(r)?t:c((function(t,n){return e(r,t,n)}));case 2:return o(r)&&o(n)?t:o(r)?c((function(t,r){return e(t,n,r)})):o(n)?c((function(t,n){return e(r,t,n)})):a((function(t){return e(r,n,t)}));default:return o(r)&&o(n)&&o(s)?t:o(r)&&o(n)?c((function(t,r){return e(t,r,s)})):o(r)&&o(s)?c((function(t,r){return e(t,n,r)})):o(n)&&o(s)?c((function(t,n){return e(r,t,n)})):o(r)?a((function(t){return e(t,n,s)})):o(n)?a((function(t){return e(r,t,s)})):o(s)?a((function(t){return e(r,n,t)})):e(r,n,s)}}}const ne=a((function(e){return!!l(e)||!!e&&("object"==typeof e&&(!Y(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var se="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function ie(e,t,r){return function(n,s,i){if(ne(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[se])return r(n,s,i[se]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function oe(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const ae=c((function(e,t){return y(e.length,(function(){return e.apply(t,arguments)}))}));function ce(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function le(e,t,r,n){return e["@@transducer/result"](r[n](ae(e["@@transducer/step"],e),t))}const ue=ie(oe,le,ce);var pe=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const me=re((function(e,t,r){return ue("function"==typeof e?new pe(e):e,t,r)}));const _e=a((function(e){return b(me(W,0,te("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const he=a((function(e){return function(){return e}}));const de=a((function(e){return b(me(W,0,te("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function fe(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function ye(e,t,r,n){return r[n](e,t)}const ge=ie(V,ye,fe);const be=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(r){return e(r)(t(r))}:ge((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,K(r,t))}),[],e)}));const ve=c((function(e,t){return e.apply(this,t)}));function Ee(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const we=c((function(e,t){return e&&t}));const Oe=c((function(e,t){var r=b(e,t);return b(e,(function(){return V(be,K(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Se=a((function(e){return Oe(e.length,e)}));const xe=c((function(e,t){return Ee(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Se(we)(e,t)}));const je=a((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));const Pe=Se(a((function(e){return!e})));function Me(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Ae(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return l(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const Ne=re(Ae("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Ie=a(Ae("tail",Ne(1,1/0)));function Te(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return y(arguments[0].length,me(Me,arguments[0],Ie(arguments)))}const Re=a((function(e){return b(e.length,e)}));const Fe=c((function(e,t){return null==t||t!=t?e:t}));function ke(e,t,r){var n,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?e in r._items[s]||(t&&(r._items[s][e]=!0),!1):(t&&(r._items[s]={},r._items[s][e]=!0),!1);case"boolean":if(s in r._items){var i=e?1:0;return!!r._items[s][i]||(t&&(r._items[s][i]=!0),!1)}return t&&(r._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?!!k(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1);case"undefined":return!!r._items[s]||(t&&(r._items[s]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in r._items?!!k(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1)}}const Ce=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!ke(e,!0,this)},e.prototype.has=function(e){return ke(e,!1,this)},e}();const De=c((function(e,t){for(var r=[],n=0,s=e.length,i=t.length,o=new Ce,a=0;a<i;a+=1)o.add(t[a]);for(;n<s;)o.add(e[n])&&(r[r.length]=e[n]),n+=1;return r}));var qe=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=_,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?p(r):r},e}();function Be(e){return function(t){return new qe(e,t)}}const Ve=c(u(["take"],Be,(function(e,t){return Ne(0,e<0?1/0:e,t)})));var Ue=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=m,e.prototype["@@transducer/result"]=_,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 Le(e){return function(t){return new Ue(e,t)}}const $e=c(u(["dropWhile"],Le,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return Ne(r,1/0,t)})));const Ze=c((function(e,t){return e||t}));const He=c((function(e,t){return Ee(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Se(Ze)(e,t)}));var ze=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():l(e)?[]:Y(e)?"":U(e)?{}:x(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 Ge=ze;const We=a((function(e){return b(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));const Je=a((function(e){return null==e}));const Ke=c((function(e,t){if(0===e.length||Je(t))return!1;for(var r=t,n=0;n<e.length;){if(Je(r)||!w(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const Xe=c((function(e,t){return Ke([e],t)}));const Ye=Q(0);var Qe=function(e,t){switch(arguments.length){case 0:return Qe;case 1:return function t(r){return 0===arguments.length?t:O(e,r)};default:return O(e,t)}};const et=Qe;const tt=re((function(e,t,r){return b(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const rt=c(k);const nt=Ne(0,-1);"function"==typeof Object.assign&&Object.assign;const st=c((function(e,t){return b(e+1,(function(){var r=arguments[e];if(null!=r&&Ee(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(G(r)+' does not have a method named "'+t+'"')}))}));const it=a((function(e){return null!=e&&F(e,Ge(e))}));const ot=st(1,"join");const at=Q(-1);const ct=c((function(e,t){return e.map((function(e){for(var r,n=t,s=0;s<e.length;){if(null==n)return;r=e[s],n=X(r)?Q(r,n):n[r],s+=1}return n}))}));const lt=c((function(e,t){return ct([e],t)[0]}));const ut=c((function(e,t){return V((function(r,n){return r[n]=e(t[n],n,t),r}),{},N(t))}));const pt=c((function(e,t){for(var r={},n={},s=0,i=e.length;s<i;)n[e[s]]=1,s+=1;for(var o in t)n.hasOwnProperty(o)||(r[o]=t[o]);return r}));const mt=re((function(e,t,r){return e(lt(t,r))}));const _t=c((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r}));const ht=re((function(e,t,r){return Fe(e,ee(t,r))}));const dt=re((function(e,t,r){return e(ee(t,r))}));function ft(e){return"[object Number]"===Object.prototype.toString.call(e)}const yt=c((function(e,t){if(!ft(e)||!ft(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],n=e;n<t;)r.push(n),n+=1;return r}));const gt=a(p);var bt=c((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const vt=bt;const Et=st(1,"split");const wt=c((function(e,t){return F(Ve(e.length,t),e)}));const Ot=c((function(e,t){if(r=e,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+G(e));var r;return function(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":""))}(e).test(t)}));var St="\t\n\v\f\r \u2028\u2029\ufeff";String.prototype.trim;const xt=he(void 0);const jt=F(xt());const Pt=Pe(jt);var Mt=__webpack_require__(7952);const At=F(null);const Nt=Pe(At);function It(e){return It="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},It(e)}const Tt=function(e){return"object"===It(e)};const Rt=b(1,xe(Nt,Tt));const Ft=b(1,Te(I,et("GeneratorFunction")));const kt=b(1,Te(I,et("AsyncFunction")));const Ct=de([Te(I,et("Function")),Ft,kt]);var Dt=Te(I,et("Object")),qt=Te(G,F(G(Object))),Bt=mt(xe(Ct,qt),["constructor"]);const Vt=b(1,(function(e){if(!Rt(e)||!Dt(e))return!1;var t=Object.getPrototypeOf(e);return!!At(t)||Bt(t)}));class Ut extends Mt.RP{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Lt=Ut;class $t extends Mt.RP{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Zt=$t;class Ht extends Mt.ON{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(jt(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const zt=Ht;class Gt extends Mt.ON{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(null===e)return;const t=new Mt.ON([e.start.row,e.start.column,e.start.char]),r=new Mt.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const Wt=Gt;class Jt extends Mt.lS{constructor(){super(),this.register("annotation",Lt),this.register("comment",Zt),this.register("parseResult",zt),this.register("sourceMap",Wt)}}const Kt=new Jt,Xt=e=>{const t=new Jt;return Vt(e)&&t.use(e),t},Yt=Kt;const Qt=b(1,Te(I,et("String"))),er=__webpack_require__.p+"3055f0c5f4843ded29b10894f35a54d2.wasm",tr=globalThis.fetch;Ct(tr)&&(globalThis.fetch=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Qt(t[0])&&t[0].endsWith("tree-sitter.wasm")?tr.apply(globalThis,[er,Ie(t)]):tr.apply(globalThis,t)});var rr=__webpack_require__(9794);const nr=__webpack_require__.p+"6d9fed5aefa3863691924a69721182bc.wasm";let sr=null,ir=null;const or=async e=>{if(null===sr&&null===ir)ir=rr.init().then((()=>rr.Language.load(nr))).then((e=>{const t=new rr;return t.setLanguage(e),t})).finally((()=>{ir=null})),sr=await ir;else if(null===sr&&null!==ir)sr=await ir;else if(null===sr)throw new Error("Error while initializing web-tree-sitter");return sr.parse(e)};var ar=__webpack_require__(229),cr=__webpack_require__(2185),lr=__webpack_require__(9982);function ur(e){return ur="function"==typeof cr&&"symbol"==typeof lr?function(e){return typeof e}:function(e){return e&&"function"==typeof cr&&e.constructor===cr&&e!==cr.prototype?"symbol":typeof e},ur(e)}var pr=__webpack_require__(8241);function mr(e){var t=function(e,t){if("object"!==ur(e)||null===e)return e;var r=e[pr];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ur(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ur(t)?t:String(t)}function _r(e,t,r){return(t=mr(t))in e?ar(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var hr=__webpack_require__(6591);const dr=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},fr={},yr=e=>null==e?void 0:e.type,gr=e=>"string"==typeof yr(e),br=function(e,t){let{keyMap:r=null,state:n={},breakSymbol:s=fr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=dr,nodeTypeGetter:c=yr,nodePredicate:l=gr,detectCycles:u=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const p=r||{};let m,_,h=Array.isArray(e),d=[e],f=-1,y=[];const g=[],b=[];let v=e;do{f+=1;const e=f===d.length;let r,E;const w=e&&0!==y.length;if(e){if(r=0===b.length?void 0:g.pop(),E=_,_=b.pop(),w){E=h?E.slice():Object.create(Object.getPrototypeOf(E),Object.getOwnPropertyDescriptors(E));let e=0;for(let t=0;t<y.length;t+=1){let r=y[t][0];const n=y[t][1];h&&(r-=e),h&&n===i?(E.splice(r,1),e+=1):E[r]=n}}f=m.index,d=m.keys,y=m.edits,h=m.inArray,m=m.prev}else{if(r=_?h?f:d[f]:void 0,E=_?_[r]:v,E===i||void 0===E)continue;_&&g.push(r)}if(b.includes(E))continue;let O;if(!Array.isArray(E)){if(!l(E))throw new Error(`Invalid AST Node: ${JSON.stringify(E)}`);if(u&&b.includes(E)){g.pop();continue}const i=a(t,c(E),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;if(O=i.call(t,E,r,_,g,b),O===s)break;if(O===o){if(!e){g.pop();continue}}else if(void 0!==O&&(y.push([r,O]),!e)){if(!l(O)){g.pop();continue}E=O}}}void 0===O&&w&&y.push([r,E]),e||(m={inArray:h,index:f,keys:d,edits:y,prev:m},h=Array.isArray(E),d=h?E:p[c(E)]||[],f=-1,y=[],_&&b.push(_),_=E)}while(void 0!==m);return 0!==y.length&&([,v]=y[y.length-1]),v};br[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let{keyMap:r=null,state:n={},breakSymbol:s=fr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=dr,nodeTypeGetter:c=yr,nodePredicate:l=gr,detectCycles:u=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const p=r||{};let m,_,h=Array.isArray(e),d=[e],f=-1,y=[];const g=[],b=[];let v=e;do{f+=1;const e=f===d.length;let r,E;const w=e&&0!==y.length;if(e){if(r=0===b.length?void 0:g.pop(),E=_,_=b.pop(),w){E=h?E.slice():Object.create(Object.getPrototypeOf(E),Object.getOwnPropertyDescriptors(E));let e=0;for(let t=0;t<y.length;t+=1){let r=y[t][0];const n=y[t][1];h&&(r-=e),h&&n===i?(E.splice(r,1),e+=1):E[r]=n}}f=m.index,d=m.keys,y=m.edits,h=m.inArray,m=m.prev}else{if(r=_?h?f:d[f]:void 0,E=_?_[r]:v,E===i||void 0===E)continue;_&&g.push(r)}let O;if(!Array.isArray(E)){if(!l(E))throw new Error(`Invalid AST Node: ${JSON.stringify(E)}`);if(u&&b.includes(E)){g.pop();continue}const i=a(t,c(E),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;if(O=await i.call(t,E,r,_,g,b),O===s)break;if(O===o){if(!e){g.pop();continue}}else if(void 0!==O&&(y.push([r,O]),!e)){if(!l(O)){g.pop();continue}E=O}}}void 0===O&&w&&y.push([r,E]),e||(m={inArray:h,index:f,keys:d,edits:y,prev:m},h=Array.isArray(E),d=h?E:p[c(E)]||[],f=-1,y=[],_&&b.push(_),_=E)}while(void 0!==m);return 0!==y.length&&([,v]=y[y.length-1]),v};var vr=__webpack_require__(5090),Er=__webpack_require__(2747),wr=__webpack_require__(5483);function Or(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},i=wr(e);for(n=0;n<i.length;n++)r=i[n],Er(t).call(t,r)>=0||(s[r]=e[r]);return s}(e,t);if(vr){var i=vr(e);for(n=0;n<i.length;n++)r=i[n],Er(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}const Sr=We(rt),xr=(e,t)=>"function"==typeof(null==t?void 0:t[e]),jr=e=>null!=e&&Object.prototype.hasOwnProperty.call(e,"_storedElement")&&Object.prototype.hasOwnProperty.call(e,"_content"),Pr=(e,t)=>{var r;return(null==t||null===(r=t.primitive)||void 0===r?void 0:r.call(t))===e},Mr=(e,t)=>{var r,n;return(null==t||null===(r=t.classes)||void 0===r||null===(n=r.includes)||void 0===n?void 0:n.call(r,e))||!1},Ar=(e,t)=>(null==t?void 0:t.element)===e,Nr=e=>e({hasMethod:xr,hasBasicElementProps:jr,primitiveEq:Pr,isElementType:Ar,hasClass:Mr}),Ir=Nr((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof Mt.W_||t(e)&&r(void 0,e)})),Tr=Nr((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof Mt.RP||t(e)&&r("string",e)})),Rr=Nr((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof Mt.VL||t(e)&&r("number",e)})),Fr=Nr((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof Mt.zr||t(e)&&r("null",e)})),kr=Nr((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof Mt.hh||t(e)&&r("boolean",e)})),Cr=Nr((e=>{let{hasBasicElementProps:t,primitiveEq:r,hasMethod:n}=e;return e=>e instanceof Mt.Sb||t(e)&&r("object",e)&&n("keys",e)&&n("values",e)&&n("items",e)})),Dr=Nr((e=>{let{hasBasicElementProps:t,primitiveEq:r,hasMethod:n}=e;return e=>e instanceof Mt.ON&&!(e instanceof Mt.Sb)||t(e)&&r("array",e)&&n("push",e)&&n("unshift",e)&&n("map",e)&&n("reduce",e)})),qr=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Mt.c6||t(e)&&r("member",e)&&n(void 0,e)})),Br=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Mt.EA||t(e)&&r("link",e)&&n(void 0,e)})),Vr=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Mt.tK||t(e)&&r("ref",e)&&n(void 0,e)})),Ur=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Lt||t(e)&&r("annotation",e)&&n("array",e)})),Lr=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Zt||t(e)&&r("comment",e)&&n("string",e)})),$r=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof zt||t(e)&&r("parseResult",e)&&n("array",e)})),Zr=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Wt||t(e)&&r("sourceMap",e)&&n("array",e)})),Hr=e=>Ar("object",e)||Ar("array",e)||Ar("boolean",e)||Ar("number",e)||Ar("string",e)||Ar("null",e)||Ar("member",e),zr=e=>{var t,r;return Zr(null==e||null===(t=e.meta)||void 0===t||null===(r=t.get)||void 0===r?void 0:r.call(t,"sourceMap"))},Gr=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Dr(r)&&f(Sr(r.toValue()),e)},Wr=(e,t)=>0===e.length||f(Sr(t.classes.toValue()),e),Jr=["keyMap"],Kr=["keyMap"];function Xr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(r),!0).forEach((function(t){_r(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Qr=e=>Cr(e)?"ObjectElement":Dr(e)?"ArrayElement":qr(e)?"MemberElement":Tr(e)?"StringElement":kr(e)?"BooleanElement":Rr(e)?"NumberElement":Fr(e)?"NullElement":Br(e)?"LinkElement":Vr(e)?"RefElement":void 0,en=Te(Qr,Qt),tn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},rn=(hr({props:{result:[],predicate:s,returnOnTrue:void 0,returnOnFalse:void 0},init(){let{predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{keyMap:n=tn}=r,s=Or(r,Jr);return br(e,t,Yr({keyMap:n,nodeTypeGetter:Qr,nodePredicate:en},s))});rn[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{keyMap:n=tn}=r,s=Or(r,Kr);return br[Symbol.for("nodejs.util.promisify.custom")](e,t,Yr({keyMap:n,nodeTypeGetter:Qr,nodePredicate:en},s))};const nn=Pe(Ct);const sn=b(1,Ct(Array.isArray)?Array.isArray:Te(I,et("Array")));const on=xe(sn,it);const an=b(3,(function(e,t,r){var n=lt(e,r),s=lt(nt(e),r);if(!nn(n)&&!on(e)){var i=ae(n,s);return ve(i,t)}}));function cn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const ln=()=>({predicates:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(r),!0).forEach((function(t){_r(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),namespace:Yt}),un=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===t.length)return e;const n=ht(ln,"toolboxCreator",r),s=ht({},"visitorOptions",r),i=ht(Qr,"nodeTypeGetter",s),o=n(),a=t.map((e=>e(o))),c=function(e){let{visitFnGetter:t=dr,nodeTypeGetter:r=yr}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Array(e.length);return{enter(s){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];for(let i=0;i<e.length;i+=1)if(null==n[i]){const a=t(e[i],r(s),!1);if("function"==typeof a){const t=a.call(e[i],s,...o);if(!1===t)n[i]=s;else if(t===fr)n[i]=fr;else if(void 0!==t)return t}}},leave(s){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];for(let i=0;i<e.length;i+=1)if(null==n[i]){const a=t(e[i],r(s),!0);if("function"==typeof a){const t=a.call(e[i],s,...o);if(t===fr)n[i]=fr;else if(void 0!==t&&!1!==t)return t}}else n[i]===s&&(n[i]=null)}}}(a.map(ht({},"visitor")),{nodeTypeGetter:i});a.forEach(an(["pre"],[]));const l=rn(e,c,s);return a.forEach(an(["post"],[])),l};function pn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(r),!0).forEach((function(t){_r(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const _n=(e,t)=>{let{Type:r,plugins:n=[]}=t;const s=new r(e);return un(s,n,{toolboxCreator:ln,visitorOptions:{nodeTypeGetter:Qr}})},hn=e=>function(t){return _n(t,mn(mn({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),{},{Type:e}))};function dn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}Mt.Sb.refract=hn(Mt.Sb),Mt.ON.refract=hn(Mt.ON),Mt.RP.refract=hn(Mt.RP),Mt.hh.refract=hn(Mt.hh),Mt.zr.refract=hn(Mt.zr),Mt.VL.refract=hn(Mt.VL),Mt.EA.refract=hn(Mt.EA),Mt.tK.refract=hn(Mt.tK),Lt.refract=hn(Lt),Zt.refract=hn(Zt),zt.refract=hn(zt),Wt.refract=hn(Wt);const fn=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(r),!0).forEach((function(t){_r(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},tn),yn=e=>$r(e)?"ParseResultElement":Ir(e)?Qr(e):yr(e),gn=e=>Ir(e)||gr(e),bn=hr({props:{sourceMap:!1,annotations:[]},init(){this.annotations=[];const e=(e,t)=>{if(!this.sourceMap)return;const r=new Wt,n=(e=>{if(null===e)return null;const t=new Mt.ON([e.startPosition.row,e.startPosition.column,e.startIndex]),r=new Mt.ON([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),r.classes.push("position"),[t,r]})(e);if(null!==n){const[e,t]=n;r.push(e),r.push(t)}r.astNode=e,t.meta.set("sourceMap",r)},t=(e,t)=>{var r;return`${e}Node`in t?t[`${e}Node`]:"childForFieldName"in t?null===(r=t.childForFieldName)||void 0===r?void 0:r.call(t,e):null};this.enter=function(t){if(("function"==typeof t.isNamed&&!t.isNamed()||!1===t.isNamed)&&t.isMissing()){const r=t.type||t.text,n=new Lt(`(Missing ${r})`);n.classes.push("warning"),e(t,n),this.annotations.push(n)}return null},this.document=function(t){const r=new zt;return r._content=t.children,e(t,r),r},this.ParseResultElement={leave(e){const t=e.findElements(Hr);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}},this.object=function(t){const r=new Mt.Sb;return r._content=t.children,e(t,r),r},this.array=function(t){const r=new Mt.ON;return r._content=t.children,e(t,r),r},this.pair=function(r){const n=new Mt.c6;return n.content.key=t("key",r),n.content.value=t("value",r),e(r,n),r.children.length>3&&r.children.filter((e=>"ERROR"===e.type)).forEach((e=>{this.ERROR(e,r,[],[r])})),n},this.string=function(t){const r=new Mt.RP(t.text.slice(1,-1));return e(t,r),r},this.number=function(t){const r=new Mt.VL(Number(t.text));return e(t,r),r},this.null=function(t){const r=new Mt.zr;return e(t,r),r},this.true=function(t){const r=new Mt.hh(!0);return e(t,r),r},this.false=function(t){const r=new Mt.hh(!1);return e(t,r),r},this.ERROR=function(t,r,n,s){const i=!t.hasError(),o=t.text,a=new Lt(i?`(Unexpected ${o})`:`(Error ${o})`);if(a.classes.push("error"),e(t,a),0===s.length){const e=new zt;return e.push(a),e}return this.annotations.push(a),null}}}),vn=function(e){let{sourceMap:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=bn();return br(e.rootNode,r,{keyMap:fn,nodeTypeGetter:yn,nodePredicate:gn,state:{sourceMap:t}})},En=hr({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init(){let{row:e=null,column:t=null,char:r=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.row=e,this.column=t,this.char=r}}),wn=hr({statics:{type:"position"},props:{type:"position",start:null,end:null},init(){let{start:e=null,end:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.start=e,this.end=t}}),On=hr({props:{type:null,position:null,children:[]},init(){let{children:e=[],position:t=null,isMissing:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stamp:n={}}=arguments.length>1?arguments[1]:void 0;this.type=n.type,this.isMissing=r,this.children=e,this.position=t},methods:{clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}}}),Sn=hr(On,{statics:{type:"literal"},props:{value:null},init(){let{value:e=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.value=e}}),xn=hr(On),jn=hr(xn,{statics:{type:"document"},methods:{get child(){return Ye(this.children)}}}),Pn=hr(On,{statics:{type:"parseResult"},methods:{get rootNode(){return Ye(this.children)}}}),Mn=(e,t)=>(null==t?void 0:t.type)===e,An=(Mn.bind(void 0,"literal"),Mn.bind(void 0,"position"),Mn.bind(void 0,"point"),Mn.bind(void 0,"parseResult"),Mn.bind(void 0,"document"),Mn.bind(void 0,"string")),Nn=Mn.bind(void 0,"false"),In=Mn.bind(void 0,"true"),Tn=Mn.bind(void 0,"null"),Rn=Mn.bind(void 0,"number"),Fn=Mn.bind(void 0,"array"),kn=Mn.bind(void 0,"object"),Cn=Mn.bind(void 0,"stringContent"),Dn=Mn.bind(void 0,"escapeSequence"),qn=Mn.bind(void 0,"property"),Bn=Mn.bind(void 0,"key"),Vn=hr(xn,{statics:{type:"object"},methods:{get properties(){return this.children.filter(qn)}}}),Un=hr(xn,{statics:{type:"string"},methods:{get value(){return 1===this.children.length?this.children[0].value:this.children.filter((e=>Cn(e)||Dn(e))).reduce(((e,t)=>e+t.value),"")}}}),Ln=hr(Un,{statics:{type:"key"}}),$n=hr(xn,{statics:{type:"property"},methods:{get key(){return this.children.find(Bn)},get value(){return this.children.find((e=>Nn(e)||In(e)||Tn(e)||Rn(e)||An(e)||Fn(e)||kn(e)))}}}),Zn=hr(xn,{statics:{type:"array"},methods:{get items(){return this.children.filter((e=>Nn(e)||In(e)||Tn(e)||Rn(e)||An(e)||Fn(e)||kn))}}}),Hn=hr(xn,{statics:{type:"value"},props:{value:null},init(){let{value:e=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.value=e}}),zn=hr(Hn,{statics:{type:"stringContent"}}),Gn=hr(Hn,{statics:{type:"number"}}),Wn=hr(Hn,{statics:{type:"null"}}),Jn=hr(Hn,{statics:{type:"true"}}),Kn=hr(Hn,{statics:{type:"false"}}),Xn=hr(On,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init(){let{value:e=null,isUnexpected:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.value=e,this.isUnexpected=t}}),Yn={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},Qn=hr({init(){const e=e=>{if(null===e)return null;const t=En({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=En({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return wn({start:t,end:r})};this.enter=function(t){if("function"==typeof t.isNamed&&!t.isNamed()||!1===t.isNamed){const r=e(t),n=t.type||t.text,s=t.isMissing();return Sn({value:n,position:r,isMissing:s})}},this.document={enter(t){const r=e(t);return jn({children:t.children,position:r,isMissing:t.isMissing()})},leave:e=>Pn({children:[e]})},this.object=function(t){const r=e(t);return Vn({children:t.children,position:r,isMissing:t.isMissing()})},this.pair=function(t){const r=e(t),n=t.children.slice(1),s=((e,t)=>{var r;return`${e}Node`in t?t[`${e}Node`]:"childForFieldName"in t?null===(r=t.childForFieldName)||void 0===r?void 0:r.call(t,e):null})("key",t),i=Ln({children:(null==s?void 0:s.children)||[],position:e(s),isMissing:(null==s?void 0:s.isMissing())||!1});return $n({children:[i,...n],position:r,isMissing:t.isMissing()})},this.array=function(t){const r=e(t);return Zn({children:t.children,position:r,isMissing:t.isMissing()})},this.string=function(t){const r=e(t),n=zn({value:t.text.slice(1,-1)});return Un({children:[n],position:r,isMissing:t.isMissing()})},this.number=function(t){const r=e(t),n=t.text;return Gn({value:n,position:r,isMissing:t.isMissing()})},this.null=function(t){const r=e(t),n=t.text;return Wn({value:n,position:r,isMissing:t.isMissing()})},this.true=function(t){const r=e(t),n=t.text;return Jn({value:n,position:r,isMissing:t.isMissing()})},this.false=function(t){const r=e(t),n=t.text;return Kn({value:n,position:r,isMissing:t.isMissing()})},this.ERROR=function(t,r,n,s){const i=e(t),o=Xn({children:t.children,position:i,isUnexpected:!t.hasError(),isMissing:t.isMissing(),value:t.text});return 0===s.length?Pn({children:[o]}):o}}});function es(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const ts=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?es(Object(r),!0).forEach((function(t){_r(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):es(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({[Pn.type]:["children"],[jn.type]:["children"],[Vn.type]:["children"],[$n.type]:["children"],[Zn.type]:["children"],[Xn.type]:["children"]},tn),rs=e=>$r(e)?"ParseResultElement":Ir(e)?Qr(e):yr(e),ns=e=>Ir(e)||gr(e),ss=hr({props:{sourceMap:!1,annotations:[]},init(){this.annotation=[];const e=(e,t)=>{if(!this.sourceMap)return;const r=new Wt;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)};this.document=function(e){const t=new zt;return t._content=e.children,t},this.ParseResultElement={leave(e){const t=e.findElements(Hr);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}},this.object=function(t){const r=new Mt.Sb;return r._content=t.children,e(t,r),r},this.property=function(t){const r=new Mt.c6;return r.content.key=t.key,r.content.value=t.value,e(t,r),t.children.length>3&&t.children.filter((e=>"error"===e.type)).forEach((e=>{this.error(e,t,[],[t])})),r},this.key=function(t){const r=new Mt.RP(t.value);return e(t,r),r},this.array=function(t){const r=new Mt.ON;return r._content=t.children,e(t,r),r},this.string=function(t){const r=new Mt.RP(t.value);return e(t,r),r},this.number=function(t){const r=new Mt.VL(Number(t.value));return e(t,r),r},this.null=function(t){const r=new Mt.zr;return e(t,r),r},this.true=function(t){const r=new Mt.hh(!0);return e(t,r),r},this.false=function(t){const r=new Mt.hh(!1);return e(t,r),r},this.literal=function(t){if(t.isMissing){const r=`(Missing ${t.value})`,n=new Lt(r);n.classes.push("warning"),e(t,n),this.annotations.push(n)}return null},this.error=function(t,r,n,s){const i=t.isUnexpected?`(Unexpected ${t.value})`:`(Error ${t.value})`,o=new Lt(i);if(o.classes.push("error"),e(t,o),0===s.length){const e=new zt;return e.push(o),e}return this.annotations.push(o),null}}}),is=function(e){let{sourceMap:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=Qn(),n=ss(),s=br(e.rootNode,r,{keyMap:Yn,state:{sourceMap:t}});return br(s.rootNode,n,{keyMap:ts,nodeTypeGetter:rs,nodePredicate:ns,state:{sourceMap:t}})},os=(Xt(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);class as extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="callback"}}const cs=as;class ls extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const us=ls;class ps extends Mt.Sb{constructor(e,t,r){super(e,t,r),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 ms=ps;class _s extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const hs=_s;class ds extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const fs=ds;class ys extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const gs=ys;class bs extends Mt.Sb{constructor(e,t,r){super(e,t,r),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 vs=bs;class Es extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Mt.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Mt.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Es.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ws=Es;class Os extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get 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 Ss=Os;class xs extends Mt.Sb{constructor(e,t,r){super(e,t,r),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 js=xs;class Ps extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Tr(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Tr(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const Ms=Ps;class As extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const Ns=As;class Is extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Ts=Is;class Rs extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const Fs=Rs;class ks extends Mt.RP{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Cs=ks;class Ds extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const qs=Ds;class Bs extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Mt.hh(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const Vs=Bs;class Us extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new Mt.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Mt.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Us.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Ls=Us;class $s extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const Zs=$s;class Hs extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="paths"}}const zs=Hs;class Gs extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Ws=Gs;class Js extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new Mt.hh(!1)}set required(e){this.set("required",e)}}const Ks=Js;class Xs extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const Ys=Xs;class Qs extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const ei=Qs;class ti extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("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 ri=ti;class ni extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const si=ni;class ii extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const oi=ii;class ai extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const ci=ai;const li=Re((function(e,t){return Te(Et(""),$e(Sr(e)),ot(""))(t)})),ui=(e,t)=>{const r=Fe(e,t);return ut((e=>{if(Vt(e)&&Xe("$ref",e)&&dt(Qt,"$ref",e)){const t=lt(["$ref"],e),n=li("#/",t);return lt(n.split("/"),r)}return Vt(e)?ui(e,r):e}),e)},pi=hr({props:{element:null},methods:{copyMetaAndAttributes(e,t){zr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),mi=hr(pi,{methods:{enter(e){return this.element=e.clone(),fr}}});const _i=he(xt());function hi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const di=e=>{if(Ir(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},fi=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hi(Object(r),!0).forEach((function(t){_r(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"]},tn);function yi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yi(Object(r),!0).forEach((function(t){_r(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const bi=hr(pi,{props:{specObj:null,passingOptionsNames:["specObj"]},init(e){let{specObj:t=this.specObj}=e;this.specObj=t},methods:{retrievePassingOptions(){return _t(this.passingOptionsNames,this)},retrieveFixedFields(e){return Te(lt(["visitors",...e,"fixedFields"]),N)(this.specObj)},retrieveVisitor(e){return mt(Ct,["visitors",...e],this.specObj)?lt(["visitors",...e],this.specObj):lt(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(gi(gi({},r),t))},toRefractedElement(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return jt(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(rn(t,n,gi({keyMap:fi,nodeTypeGetter:di},r)),n.element)}}}),vi=hr(bi,{props:{specPath:_i,ignoredFields:[]},init(){let{specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Tr(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new Mt.c6(n.clone(),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(n.toValue())||this.element.content.push(s.clone())})),this.copyMetaAndAttributes(e,this.element),fr}}}),Ei=hr(vi,mi,{props:{specPath:he(["document","objects","JSONSchema"])},init(){this.element=new ri}}),wi=mi,Oi=mi,Si=mi,xi=mi,ji=mi,Pi=mi,Mi=mi,Ai=mi,Ni=mi,Ii=mi,Ti=hr({props:{parent:null},init(e){let{parent:t=this.parent}=e;this.parent=t,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Ri=e=>Cr(e)&&e.hasKey("$ref"),Fi=hr(bi,Ti,mi,{methods:{ObjectElement(e){const t=Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),fr},ArrayElement(e){return this.element=new Mt.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),fr}}}),ki=mi,Ci=mi,Di=mi,qi=mi,Bi=mi,Vi=hr(mi,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),fr}}});const Ui=Pe(b(1,xe(Nt,He(Tt,Ct))));const Li=Pe(it);const $i=_e([Qt,Ui,Li]),Zi=hr(bi,{props:{fieldPatternPredicate:s,specPath:_i,ignoredFields:[]},init(){let{specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(t.toValue())&&this.fieldPatternPredicate(t.toValue())){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Mt.c6(t.clone(),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(t.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(e,this.element),fr}}}),Hi=hr(Zi,{props:{fieldPatternPredicate:$i}}),zi=hr(Hi,Ti,mi,{props:{specPath:e=>Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Mt.Sb,this.element.classes.push("json-schema-properties")}}),Gi=hr(Hi,Ti,mi,{props:{specPath:e=>Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Mt.Sb,this.element.classes.push("json-schema-patternProperties")}}),Wi=hr(Hi,Ti,mi,{props:{specPath:e=>Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Mt.Sb,this.element.classes.push("json-schema-dependencies")}}),Ji=hr(mi,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),fr}}}),Ki=hr(mi,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),fr},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),fr}}}),Xi=hr(bi,Ti,mi,{init(){this.element=new Mt.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),fr}}}),Yi=hr(bi,Ti,mi,{init(){this.element=new Mt.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),fr}}}),Qi=hr(bi,Ti,mi,{init(){this.element=new Mt.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),fr}}}),eo=hr(Hi,Ti,mi,{props:{specPath:e=>Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Mt.Sb,this.element.classes.push("json-schema-definitions")}}),to=mi,ro=mi,no=mi,so=mi,io=mi,oo=hr(bi,Ti,mi,{init(){this.element=new Mt.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),fr}}}),ao=mi,co=hr(vi,mi,{props:{specPath:he(["document","objects","JSONReference"])},init(){this.element=new si},methods:{ObjectElement(e){const t=vi.compose.methods.ObjectElement.call(this,e);return Tr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),lo=hr(mi,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),fr}}});const uo=Pe(Je);const po=xe(sn,Li);function mo(e){return function(e){if(Array.isArray(e))return _o(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 _o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _o(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 _o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ho=Te(vt(je((function(e,t){return e.length>t.length}))),Ye,ee("length")),fo=Re((function(e,t,r){var n=r.apply(void 0,mo(e));return uo(n)?gt(n):t}));const yo=tt(po,(function(e){var t=ho(e);return b(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return me(fo(r),void 0,e)}))}),xt),go=hr(bi,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((e=>{let{predicate:t,specPath:r}=e;return tt(t,he(r),xt)})),r=yo(t)(e);return this.element=this.toRefractedElement(r,e),fr}}}),bo=hr(go,{props:{alternator:[{predicate:Ri,specPath:["document","objects","JSONReference"]},{predicate:i,specPath:["document","objects","JSONSchema"]}]}}),vo={visitors:{value:mi,JSONSchemaOrJSONReferenceVisitor:bo,document:{objects:{JSONSchema:{$visitor:Ei,fixedFields:{id:wi,$schema:Oi,multipleOf:Si,maximum:xi,exclusiveMaximum:ji,minimum:Pi,exclusiveMinimum:Mi,maxLength:Ai,minLength:Ni,pattern:Ii,additionalItems:bo,items:Fi,maxItems:ki,minItems:Ci,uniqueItems:Di,maxProperties:qi,minProperties:Bi,required:Vi,properties:zi,additionalProperties:bo,patternProperties:Gi,dependencies:Wi,enum:Ji,type:Ki,allOf:Xi,anyOf:Yi,oneOf:Qi,not:bo,definitions:eo,title:to,description:ro,default:no,format:so,base:io,links:oo,media:{$ref:"#/visitors/document/objects/Media"},readOnly:ao}},JSONReference:{$visitor:co,fixedFields:{$ref:lo}},Media:{$visitor:hr(vi,mi,{props:{specPath:he(["document","objects","Media"])},init(){this.element=new oi}}),fixedFields:{binaryEncoding:mi,type:mi}},LinkDescription:{$visitor:hr(vi,mi,{props:{specPath:he(["document","objects","LinkDescription"])},init(){this.element=new ci}}),fixedFields:{href:mi,rel:mi,title:mi,targetSchema:bo,mediaType:mi,method:mi,encType:mi,schema:bo}}}}}},Eo=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof ri||t(e)&&r("JSONSchemaDraft4",e)&&n("object",e)})),wo=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof si||t(e)&&r("JSONReference",e)&&n("object",e)})),Oo=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof oi||t(e)&&r("media",e)&&n("object",e)})),So=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof ci||t(e)&&r("linkDescription",e)&&n("object",e)})),xo={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",ri),t.register("jSONReference",si),t.register("media",oi),t.register("linkDescription",ci),t}};function jo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Po(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(r),!0).forEach((function(t){_r(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Mo=()=>{const e=Xt(xo);return{predicates:Po(Po({},t),{},{isStringElement:Tr}),namespace:e}};function Ao(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const No=function(e){let{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=vo}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=(0,Mt.Qc)(e),i=ui(n),o=an(t,[],i);return rn(s,o,{state:{specObj:i}}),un(o.element,r,{toolboxCreator:Mo,visitorOptions:{keyMap:fi,nodeTypeGetter:di}})},Io=e=>function(t){return No(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(r),!0).forEach((function(t){_r(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ao(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))};ri.refract=Io(["visitors","document","objects","JSONSchema","$visitor"]),si.refract=Io(["visitors","document","objects","JSONReference","$visitor"]),oi.refract=Io(["visitors","document","objects","Media","$visitor"]),ci.refract=Io(["visitors","document","objects","LinkDescription","$visitor"]);const To=class extends ri{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class Ro extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Fo=Ro;class ko extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Co=ko;class Do extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const qo=Do;class Bo extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Vo=Bo;class Uo extends Mt.Sb{constructor(e,t,r){super(e,t,r),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 Lo=Uo;class $o extends Mt.Sb{constructor(e,t,r){super(e,t,r),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 Zo=$o,Ho=hr({props:{element:null},methods:{copyMetaAndAttributes(e,t){zr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}});function zo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const Go=e=>{if(Ir(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Wo=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(r),!0).forEach((function(t){_r(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"]},tn);function Jo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ko(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(r),!0).forEach((function(t){_r(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Xo=hr(Ho,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init(e){let{specObj:t=this.specObj,openApiGenericElement:r=this.openApiGenericElement,openApiSemanticElement:n=this.openApiSemanticElement}=e;this.specObj=t,this.openApiGenericElement=r,this.openApiSemanticElement=n},methods:{retrievePassingOptions(){return _t(this.passingOptionsNames,this)},retrieveFixedFields(e){return Te(lt(["visitors",...e,"fixedFields"]),N)(this.specObj)},retrieveVisitor(e){return mt(Ct,["visitors",...e],this.specObj)?lt(["visitors",...e],this.specObj):lt(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(Ko(Ko({},r),t))},toRefractedElement(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return jt(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(rn(t,n,Ko({keyMap:Wo,nodeTypeGetter:Go},r)),n.element)}}}),Yo=e=>Cr(e)&&e.hasKey("openapi")&&e.hasKey("info"),Qo=e=>Cr(e)&&e.hasKey("name")&&e.hasKey("in"),ea=e=>Cr(e)&&e.hasKey("$ref"),ta=e=>Cr(e)&&e.hasKey("content"),ra=e=>Cr(e)&&e.hasKey("description"),na=Cr,sa=Cr,ia=e=>Tr(e.key)&&wt("x-",e.key.toValue()),oa=hr(Xo,{props:{specPath:_i,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:ia},init(){let{specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Tr(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new Mt.c6(n.clone(),r);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(n.toValue())||this.element.content.push(s.clone())})),this.copyMetaAndAttributes(e,this.element),fr}}}),aa=hr(Ho,{methods:{enter(e){return this.element=e.clone(),fr}}}),ca=hr(oa,aa,{props:{specPath:he(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new qs},methods:{ObjectElement(e){return this.unrefractedElement=e,oa.compose.methods.ObjectElement.call(this,e)}}}),la=hr(Xo,aa,{methods:{StringElement(e){const t=new Cs(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,fr}}}),ua=hr(Xo,{methods:{MemberElement(e){return this.element=e.clone(),this.element.classes.push("specification-extension"),fr}}}),pa=hr(oa,aa,{props:{specPath:he(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ss}}),ma=aa,_a=aa,ha=aa,da=hr(aa,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("api-version"),this.element.classes.push("version"),fr}}}),fa=hr(oa,aa,{props:{specPath:he(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new ms}}),ya=aa,ga=aa,ba=aa,va=hr(oa,aa,{props:{specPath:he(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new js}}),Ea=aa,wa=aa,Oa=hr(oa,aa,{props:{specPath:he(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ms},methods:{ObjectElement(e){const t=oa.compose.methods.ObjectElement.call(this,e);return(Tr(this.element.operationId)||Tr(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),Sa=hr(aa,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),fr}}}),xa=hr(aa,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),fr}}}),ja=hr(Xo,{props:{fieldPatternPredicate:s,specPath:_i,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:ia},init(){let{specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(t.toValue())&&this.fieldPatternPredicate(t.toValue())){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Mt.c6(t.clone(),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(t.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(e,this.element),fr}}}),Pa=hr(ja,{props:{fieldPatternPredicate:$i}});class Ma extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ma.primaryClass)}}_r(Ma,"primaryClass","link-parameters");const Aa=Ma,Na=hr(Pa,aa,{props:{specPath:he(["value"])},init(){this.element=new Aa}}),Ia=aa,Ta=aa,Ra=hr(oa,aa,{props:{specPath:he(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new qo}}),Fa=hr(aa,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("server-url"),fr}}}),ka=aa;class Ca extends Mt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Ca.primaryClass)}}_r(Ca,"primaryClass","servers");const Da=Ca,qa=hr(Xo,aa,{init(){this.element=new Da},methods:{ArrayElement(e){return e.forEach((e=>{const t=na(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),fr}}}),Ba=hr(oa,aa,{props:{specPath:he(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new Vo}}),Va=aa,Ua=aa,La=aa;class $a extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push($a.primaryClass)}}_r($a,"primaryClass","server-variables");const Za=$a,Ha=hr(Pa,aa,{props:{specPath:he(["document","objects","ServerVariable"])},init(){this.element=new Za}}),za=hr(oa,aa,{props:{specPath:he(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ns}}),Ga=hr(Xo,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((e=>{let{predicate:t,specPath:r}=e;return tt(t,he(r),xt)})),r=yo(t)(e);return this.element=this.toRefractedElement(r,e),fr}}}),Wa=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof cs||t(e)&&r("callback",e)&&n("object",e)})),Ja=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof us||t(e)&&r("components",e)&&n("object",e)})),Ka=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof ms||t(e)&&r("contact",e)&&n("object",e)})),Xa=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof gs||t(e)&&r("example",e)&&n("object",e)})),Ya=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof vs||t(e)&&r("externalDocumentation",e)&&n("object",e)})),Qa=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof ws||t(e)&&r("header",e)&&n("object",e)})),ec=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ss||t(e)&&r("info",e)&&n("object",e)})),tc=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof js||t(e)&&r("license",e)&&n("object",e)})),rc=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ms||t(e)&&r("link",e)&&n("object",e)})),nc=e=>{if(!rc(e))return!1;if(!Tr(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},sc=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Cs||t(e)&&r("openapi",e)&&n("string",e)})),ic=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n,hasClass:s}=e;return e=>e instanceof qs||t(e)&&r("openApi3_0",e)&&n("object",e)&&s("api",e)})),oc=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Vs||t(e)&&r("operation",e)&&n("object",e)})),ac=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ls||t(e)&&r("parameter",e)&&n("object",e)})),cc=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Zs||t(e)&&r("pathItem",e)&&n("object",e)})),lc=e=>{if(!cc(e))return!1;if(!Tr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},uc=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof zs||t(e)&&r("paths",e)&&n("object",e)})),pc=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ws||t(e)&&r("reference",e)&&n("object",e)})),mc=e=>{if(!pc(e))return!1;if(!Tr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},_c=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ks||t(e)&&r("requestBody",e)&&n("object",e)})),hc=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ys||t(e)&&r("response",e)&&n("object",e)})),dc=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof ei||t(e)&&r("responses",e)&&n("object",e)})),fc=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof To||t(e)&&r("schema",e)&&n("object",e)})),yc=e=>kr(e)&&e.classes.includes("boolean-json-schema"),gc=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Fo||t(e)&&r("securityRequirement",e)&&n("object",e)})),bc=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof qo||t(e)&&r("server",e)&&n("object",e)})),vc=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Vo||t(e)&&r("serverVariable",e)&&n("object",e)})),Ec=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ns||t(e)&&r("mediaType",e)&&n("object",e)})),wc=hr(Ga,aa,{props:{alternator:[{predicate:ea,specPath:["document","objects","Reference"]},{predicate:i,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Ga.compose.methods.enter.call(this,e);return pc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Oc=aa,Sc=hr(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new Mt.Sb,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class xc extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(xc.primaryClass),this.classes.push("examples")}}_r(xc,"primaryClass","media-type-examples");const jc=xc,Pc=hr(Sc,{init(){this.element=new jc}});class Mc extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Mc.primaryClass)}}_r(Mc,"primaryClass","media-type-encoding");const Ac=Mc,Nc=hr(Pa,aa,{props:{specPath:he(["document","objects","Encoding"])},init(){this.element=new Ac}}),Ic=hr(Pa,aa,{props:{specPath:he(["value"])},init(){this.element=new Fo}});class Tc extends Mt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Tc.primaryClass)}}_r(Tc,"primaryClass","security");const Rc=Tc,Fc=hr(Xo,aa,{init(){this.element=new Rc},methods:{ArrayElement(e){return e.forEach((e=>{if(Cr(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(e.clone())})),this.copyMetaAndAttributes(e,this.element),fr}}}),kc=hr(oa,aa,{props:{specPath:he(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new us}}),Cc=hr(oa,aa,{props:{specPath:he(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new Lo}}),Dc=aa,qc=aa,Bc=hr(oa,aa,{props:{specPath:he(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new Ws},methods:{ObjectElement(e){const t=oa.compose.methods.ObjectElement.call(this,e);return Tr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Vc=hr(aa,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),fr}}}),Uc=hr(oa,aa,{props:{specPath:he(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ls},methods:{ObjectElement(e){const t=oa.compose.methods.ObjectElement.call(this,e);return Cr(this.element.contentProp)&&this.element.contentProp.filter(Ec).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),Lc=aa,$c=aa,Zc=aa,Hc=aa,zc=aa,Gc=aa,Wc=aa,Jc=aa,Kc=aa,Xc=hr(Ga,aa,{props:{alternator:[{predicate:ea,specPath:["document","objects","Reference"]},{predicate:i,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Ga.compose.methods.enter.call(this,e);return pc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Yc=hr(oa,aa,{props:{specPath:he(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new ws}}),Qc=aa,el=aa,tl=aa,rl=aa,nl=aa,sl=aa,il=aa,ol=hr(Ga,aa,{props:{alternator:[{predicate:ea,specPath:["document","objects","Reference"]},{predicate:i,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Ga.compose.methods.enter.call(this,e);return pc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),al=aa;class cl extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(cl.primaryClass),this.classes.push("examples")}}_r(cl,"primaryClass","header-examples");const ll=cl,ul=hr(Sc,{init(){this.element=new ll}}),pl=hr(Pa,aa,{props:{specPath:he(["document","objects","MediaType"])},init(){this.element=new Mt.Sb,this.element.classes.push("content")}});class ml extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ml.primaryClass),this.classes.push("content")}}_r(ml,"primaryClass","header-content");const _l=ml,hl=hr(pl,{init(){this.element=new _l}}),dl=hr(oa,aa,{props:{specPath:he(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new To}}),{items:fl}=vo.visitors.document.objects.JSONSchema.fixedFields,yl=hr(fl,{methods:{ObjectElement(e){const t=fl.compose.methods.ObjectElement.call(this,e);return pc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=e.clone(),fr}}}),{properties:gl}=vo.visitors.document.objects.JSONSchema.fixedFields,bl=hr(gl,{methods:{ObjectElement(e){const t=gl.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:vl}=vo.visitors.document.objects.JSONSchema.fixedFields,El=hr(vl,{methods:{ArrayElement(e){return this.element=e.clone(),fr}}}),wl=aa,Ol=aa,Sl=aa,xl=aa,{JSONSchemaOrJSONReferenceVisitor:jl}=vo.visitors,Pl=hr(jl,{methods:{ObjectElement(e){const t=jl.compose.methods.enter.call(this,e);return pc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Ml=Object.fromEntries(Object.entries(vo.visitors.document.objects.JSONSchema.fixedFields).map((e=>{let[t,r]=e;return r===vo.visitors.JSONSchemaOrJSONReferenceVisitor?[t,Pl]:[t,r]}))),Al=hr(oa,aa,{props:{specPath:he(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new hs}}),Nl=aa;class Il extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Il.primaryClass)}}_r(Il,"primaryClass","discriminator-mapping");const Tl=Il,Rl=hr(Pa,aa,{props:{specPath:he(["value"])},init(){this.element=new Tl}}),Fl=hr(oa,aa,{props:{specPath:he(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new Zo}}),kl=aa,Cl=aa,Dl=aa,ql=aa,Bl=aa,Vl=aa;class Ul extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ul.primaryClass),this.classes.push("examples")}}_r(Ul,"primaryClass","parameter-examples");const Ll=Ul,$l=hr(Sc,{init(){this.element=new Ll}});class Zl extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Zl.primaryClass),this.classes.push("content")}}_r(Zl,"primaryClass","parameter-content");const Hl=Zl,zl=hr(pl,{init(){this.element=new Hl}});class Gl extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Gl.primaryClass)}}_r(Gl,"primaryClass","components-schemas");const Wl=Gl,Jl=hr(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new Wl},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}});class Kl extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Kl.primaryClass)}}_r(Kl,"primaryClass","components-responses");const Xl=Kl,Yl=hr(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new Xl},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(hc).forEach(((e,t)=>{e.setMetaProperty("http-status-code",t.toValue())})),t}}});class Ql extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ql.primaryClass),this.classes.push("parameters")}}_r(Ql,"primaryClass","components-parameters");const eu=Ql,tu=hr(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new eu},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}});class ru extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ru.primaryClass),this.classes.push("examples")}}_r(ru,"primaryClass","components-examples");const nu=ru,su=hr(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new nu},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class iu extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(iu.primaryClass)}}_r(iu,"primaryClass","components-request-bodies");const ou=iu,au=hr(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new ou},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}});class cu extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(cu.primaryClass)}}_r(cu,"primaryClass","components-headers");const lu=cu,uu=hr(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new lu},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(Qa).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}});class pu extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(pu.primaryClass)}}_r(pu,"primaryClass","components-security-schemes");const mu=pu,_u=hr(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new mu},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}});class hu extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(hu.primaryClass)}}_r(hu,"primaryClass","components-links");const du=hu,fu=hr(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new du},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});class yu extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(yu.primaryClass)}}_r(yu,"primaryClass","components-callbacks");const gu=yu,bu=hr(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new gu},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),vu=hr(oa,aa,{props:{specPath:he(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new gs},methods:{ObjectElement(e){const t=oa.compose.methods.ObjectElement.call(this,e);return Tr(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),Eu=aa,wu=aa,Ou=aa,Su=hr(aa,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),fr}}}),xu=hr(oa,aa,{props:{specPath:he(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new vs}}),ju=aa,Pu=aa,Mu=hr(oa,aa,{props:{specPath:he(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new fs},methods:{ObjectElement(e){const t=oa.compose.methods.ObjectElement.call(this,e);return Cr(this.element.headers)&&this.element.headers.filter(Qa).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),Au=aa;class Nu extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Nu.primaryClass)}}_r(Nu,"primaryClass","encoding-headers");const Iu=Nu,Tu=hr(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Iu},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Qa(e))return;const r=t.toValue();e.setMetaProperty("headerName",r)})),t}}}),Ru=aa,Fu=aa,ku=aa,Cu=hr(ja,aa,{props:{fieldPatternPredicate:Ot(/^\/(?<path>.*)$/),specPath:he(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new zs},methods:{ObjectElement(e){const t=ja.compose.methods.ObjectElement.call(this,e);return this.element.filter(cc).forEach(((e,t)=>{e.setMetaProperty("path",t.clone())})),t}}}),Du=hr(oa,aa,{props:{specPath:he(["document","objects","RequestBody"])},init(){this.element=new Ks},methods:{ObjectElement(e){const t=oa.compose.methods.ObjectElement.call(this,e);return Cr(this.element.contentProp)&&this.element.contentProp.filter(Ec).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),qu=aa;class Bu extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Bu.primaryClass),this.classes.push("content")}}_r(Bu,"primaryClass","request-body-content");const Vu=Bu,Uu=hr(pl,{init(){this.element=new Vu}}),Lu=aa,$u=hr(ja,aa,{props:{fieldPatternPredicate:Ot(/{(?<expression>.*)}/),specPath:he(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new cs},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(cc).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",t.toValue())})),t}}}),Zu=hr(oa,aa,{props:{specPath:he(["document","objects","Response"])},init(){this.element=new Ys},methods:{ObjectElement(e){const t=oa.compose.methods.ObjectElement.call(this,e);return Cr(this.element.contentProp)&&this.element.contentProp.filter(Ec).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),Cr(this.element.headers)&&this.element.headers.filter(Qa).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),Hu=aa;class zu extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(zu.primaryClass)}}_r(zu,"primaryClass","response-headers");const Gu=zu,Wu=hr(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Gu},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Qa(e))return;const r=t.toValue();e.setMetaProperty("header-name",r)})),t}}});class Ju extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ju.primaryClass),this.classes.push("content")}}_r(Ju,"primaryClass","response-content");const Ku=Ju,Xu=hr(pl,{init(){this.element=new Ku}});class Yu extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Yu.primaryClass)}}_r(Yu,"primaryClass","response-links");const Qu=Yu,ep=hr(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new Qu},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),tp=hr(oa,ja,{props:{specPathFixedFields:_i,specPathPatternedFields:_i},methods:{ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...De(e.keys(),t)],oa.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,ja.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return fr}}}),rp=hr(tp,aa,{props:{specPathFixedFields:he(["document","objects","Responses"]),specPathPatternedFields:e=>ea(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:Ot(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${yt(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new ei},methods:{ObjectElement(e){const t=tp.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(hc).forEach(((e,t)=>{const r=t.clone();this.fieldPatternPredicate(r.toValue())&&e.setMetaProperty("http-status-code",r)})),t}}}),np=hr(Ga,aa,{props:{alternator:[{predicate:ea,specPath:["document","objects","Reference"]},{predicate:i,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=Ga.compose.methods.enter.call(this,e);return pc(this.element)?this.element.setMetaProperty("referenced-element","response"):hc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),sp=hr(oa,aa,{props:{specPath:he(["document","objects","Operation"])},init(){this.element=new Vs}});class ip extends Mt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(ip.primaryClass)}}_r(ip,"primaryClass","operation-tags");const op=ip,ap=hr(aa,{init(){this.element=new op},methods:{ArrayElement(e){return this.element=this.element.concat(e.clone()),fr}}}),cp=aa,lp=aa,up=aa;class pp extends Mt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(pp.primaryClass),this.classes.push("parameters")}}_r(pp,"primaryClass","operation-parameters");const mp=pp,_p=hr(Xo,aa,{init(){this.element=new Mt.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ea(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);pc(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),fr}}}),hp=hr(_p,{init(){this.element=new mp}}),dp=hr(Ga,{props:{alternator:[{predicate:ea,specPath:["document","objects","Reference"]},{predicate:i,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=Ga.compose.methods.enter.call(this,e);return pc(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}});class fp extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(fp.primaryClass)}}_r(fp,"primaryClass","operation-callbacks");const yp=fp,gp=hr(Pa,aa,{props:{specPath:e=>ea(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new yp},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(pc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),bp=aa;class vp extends Mt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(vp.primaryClass),this.classes.push("security")}}_r(vp,"primaryClass","operation-security");const Ep=vp,wp=hr(Xo,aa,{init(){this.element=new Ep},methods:{ArrayElement(e){return e.forEach((e=>{const t=Cr(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),fr}}});class Op extends Mt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Op.primaryClass),this.classes.push("servers")}}_r(Op,"primaryClass","operation-servers");const Sp=Op,xp=hr(qa,{init(){this.element=new Sp}}),jp=hr(oa,aa,{props:{specPath:he(["document","objects","PathItem"])},init(){this.element=new Zs},methods:{ObjectElement(e){const t=oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach(((e,t)=>{const r=t.clone();r.content=r.toValue().toUpperCase(),e.setMetaProperty("http-method",r)})),Tr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Pp=hr(aa,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),fr}}}),Mp=aa,Ap=aa;class Np extends Mt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Np.primaryClass),this.classes.push("servers")}}_r(Np,"primaryClass","path-item-servers");const Ip=Np,Tp=hr(qa,{init(){this.element=new Ip}});class Rp extends Mt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Rp.primaryClass),this.classes.push("parameters")}}_r(Rp,"primaryClass","path-item-parameters");const Fp=Rp,kp=hr(_p,{init(){this.element=new Fp}}),Cp=hr(oa,aa,{props:{specPath:he(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new Co}}),Dp=aa,qp=aa,Bp=aa,Vp=aa,Up=aa,Lp=aa,$p=aa,Zp=hr(oa,aa,{props:{specPath:he(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new Fs}}),Hp=hr(oa,aa,{props:{specPath:he(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ts}}),zp=aa,Gp=aa,Wp=aa;class Jp extends Mt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Jp.primaryClass)}}_r(Jp,"primaryClass","oauth-flow-scopes");const Kp=Jp,Xp=hr(Pa,aa,{props:{specPath:he(["value"])},init(){this.element=new Kp}});class Yp extends Mt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Yp.primaryClass)}}_r(Yp,"primaryClass","tags");const Qp=Yp,em=hr(Xo,aa,{init(){this.element=new Qp},methods:{ArrayElement(e){return e.forEach((e=>{const t=sa(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),fr}}});function tm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tm(Object(r),!0).forEach((function(t){_r(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const nm={$visitor:Bc,fixedFields:{$ref:Vc}},sm={$visitor:dl,fixedFields:rm(rm({},Ml),{},{items:yl,properties:bl,type:El,nullable:wl,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:Ol,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:Sl,deprecated:xl})},im={visitors:{value:aa,document:{objects:{OpenApi:{$visitor:ca,fixedFields:{openapi:la,info:{$ref:"#/visitors/document/objects/Info"},servers:qa,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Fc,tags:em,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:pa,fixedFields:{title:ma,description:_a,termsOfService:ha,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:da}},Contact:{$visitor:fa,fixedFields:{name:ya,url:ga,email:ba}},License:{$visitor:va,fixedFields:{name:Ea,url:wa}},Server:{$visitor:Ra,fixedFields:{url:Fa,description:ka,variables:Ha}},ServerVariable:{$visitor:Ba,fixedFields:{enum:Va,default:Ua,description:La}},Components:{$visitor:kc,fixedFields:{schemas:Jl,responses:Yl,parameters:tu,examples:su,requestBodies:au,headers:uu,securitySchemes:_u,links:fu,callbacks:bu}},Paths:{$visitor:Cu},PathItem:{$visitor:jp,fixedFields:{$ref:Pp,summary:Mp,description:Ap,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Tp,parameters:kp}},Operation:{$visitor:sp,fixedFields:{tags:ap,summary:cp,description:lp,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:up,parameters:hp,requestBody:dp,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:gp,deprecated:bp,security:wp,servers:xp}},ExternalDocumentation:{$visitor:xu,fixedFields:{description:ju,url:Pu}},Parameter:{$visitor:Uc,fixedFields:{name:Lc,in:$c,description:Zc,required:Hc,deprecated:zc,allowEmptyValue:Gc,style:Wc,explode:Jc,allowReserved:Kc,schema:Xc,example:Vl,examples:$l,content:zl}},RequestBody:{$visitor:Du,fixedFields:{description:qu,content:Uu,required:Lu}},MediaType:{$visitor:za,fixedFields:{schema:wc,example:Oc,examples:Pc,encoding:Nc}},Encoding:{$visitor:Mu,fixedFields:{contentType:Au,headers:Tu,style:Ru,explode:Fu,allowReserved:ku}},Responses:{$visitor:rp,fixedFields:{default:np}},Response:{$visitor:Zu,fixedFields:{description:Hu,headers:Wu,content:Xu,links:ep}},Callback:{$visitor:$u},Example:{$visitor:vu,fixedFields:{summary:Eu,description:wu,value:Ou,externalValue:Su}},Link:{$visitor:Oa,fixedFields:{operationRef:Sa,operationId:xa,parameters:Na,requestBody:Ia,description:Ta,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Yc,fixedFields:{description:Qc,required:el,deprecated:tl,allowEmptyValue:rl,style:nl,explode:sl,allowReserved:il,schema:ol,example:al,examples:ul,content:hl}},Tag:{$visitor:Cc,fixedFields:{name:Dc,description:qc,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},JSONReference:nm,Reference:nm,JSONSchema:sm,Schema:sm,LinkDescription:vo.visitors.document.objects.LinkDescription,Media:vo.visitors.document.objects.Media,Discriminator:{$visitor:Al,fixedFields:{propertyName:Nl,mapping:Rl}},XML:{$visitor:Fl,fixedFields:{name:kl,namespace:Cl,prefix:Dl,attribute:ql,wrapped:Bl}},SecurityScheme:{$visitor:Cp,fixedFields:{type:Dp,description:qp,name:Bp,in:Vp,scheme:Up,bearerFormat:Lp,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:$p}},OAuthFlows:{$visitor:Zp,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:Hp,fixedFields:{authorizationUrl:zp,tokenUrl:Gp,refreshUrl:Wp,scopes:Xp}},SecurityRequirement:{$visitor:Ic}},extension:{$visitor:ua}}}},om={namespace:e=>{const{base:t}=e;return t.register("callback",cs),t.register("components",us),t.register("contact",ms),t.register("discriminator",hs),t.register("encoding",fs),t.register("example",gs),t.register("externalDocumentation",vs),t.register("header",ws),t.register("info",Ss),t.register("license",js),t.register("link",Ms),t.register("mediaType",Ns),t.register("oAuthFlow",Ts),t.register("oAuthFlows",Fs),t.register("openapi",Cs),t.register("openApi3_0",qs),t.register("operation",Vs),t.register("parameter",Ls),t.register("pathItem",Zs),t.register("paths",zs),t.register("reference",Ws),t.register("requestBody",Ks),t.register("response",Ys),t.register("responses",ei),t.register("schema",To),t.register("securityRequirement",Fo),t.register("securityScheme",Co),t.register("server",qo),t.register("serverVariable",Vo),t.register("tag",Lo),t.register("xml",Zo),t}};function am(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?am(Object(r),!0).forEach((function(t){_r(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):am(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const lm=()=>{const e=Xt(om);return{predicates:cm(cm(cm({},r),n),{},{isStringElement:Tr}),namespace:e}};function um(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const pm=function(e){let{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,Mt.Qc)(e),s=ui(im),i=an(t,[],s);return rn(n,i,{state:{specObj:s}}),un(i.element,r,{toolboxCreator:lm,visitorOptions:{keyMap:Wo,nodeTypeGetter:Go}})},mm=e=>function(t){return pm(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?um(Object(r),!0).forEach((function(t){_r(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):um(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))};cs.refract=mm(["visitors","document","objects","Callback","$visitor"]),us.refract=mm(["visitors","document","objects","Components","$visitor"]),ms.refract=mm(["visitors","document","objects","Contact","$visitor"]),gs.refract=mm(["visitors","document","objects","Example","$visitor"]),hs.refract=mm(["visitors","document","objects","Discriminator","$visitor"]),fs.refract=mm(["visitors","document","objects","Encoding","$visitor"]),vs.refract=mm(["visitors","document","objects","ExternalDocumentation","$visitor"]),ws.refract=mm(["visitors","document","objects","Header","$visitor"]),Ss.refract=mm(["visitors","document","objects","Info","$visitor"]),js.refract=mm(["visitors","document","objects","License","$visitor"]),Ms.refract=mm(["visitors","document","objects","Link","$visitor"]),Ns.refract=mm(["visitors","document","objects","MediaType","$visitor"]),Ts.refract=mm(["visitors","document","objects","OAuthFlow","$visitor"]),Fs.refract=mm(["visitors","document","objects","OAuthFlows","$visitor"]),Cs.refract=mm(["visitors","document","objects","OpenApi","fixedFields","openapi"]),qs.refract=mm(["visitors","document","objects","OpenApi","$visitor"]),Vs.refract=mm(["visitors","document","objects","Operation","$visitor"]),Ls.refract=mm(["visitors","document","objects","Parameter","$visitor"]),Zs.refract=mm(["visitors","document","objects","PathItem","$visitor"]),zs.refract=mm(["visitors","document","objects","Paths","$visitor"]),Ws.refract=mm(["visitors","document","objects","Reference","$visitor"]),Ks.refract=mm(["visitors","document","objects","RequestBody","$visitor"]),Ys.refract=mm(["visitors","document","objects","Response","$visitor"]),ei.refract=mm(["visitors","document","objects","Responses","$visitor"]),To.refract=mm(["visitors","document","objects","Schema","$visitor"]),Fo.refract=mm(["visitors","document","objects","SecurityRequirement","$visitor"]),Co.refract=mm(["visitors","document","objects","SecurityScheme","$visitor"]),qo.refract=mm(["visitors","document","objects","Server","$visitor"]),Vo.refract=mm(["visitors","document","objects","ServerVariable","$visitor"]),Lo.refract=mm(["visitors","document","objects","Tag","$visitor"]),Zo.refract=mm(["visitors","document","objects","XML","$visitor"]);const _m=class extends Array{constructor(){super(...arguments),_r(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new Error("Not implemented!")}findBy(){throw new Error("Not implemented")}latest(){throw new Error("Not implemented!")}};class hm extends _m{filterByFormat(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"generic";const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"3.0.3",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"generic";const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"generic";return at(this.filterByFormat(e))}}const dm=new hm("application/vnd.oai.openapi;version=3.0.0","application/vnd.oai.openapi+json;version=3.0.0","application/vnd.oai.openapi+yaml;version=3.0.0","application/vnd.oai.openapi;version=3.0.1","application/vnd.oai.openapi+json;version=3.0.1","application/vnd.oai.openapi+yaml;version=3.0.1","application/vnd.oai.openapi;version=3.0.2","application/vnd.oai.openapi+json;version=3.0.2","application/vnd.oai.openapi+yaml;version=3.0.2","application/vnd.oai.openapi;version=3.0.3","application/vnd.oai.openapi+json;version=3.0.3","application/vnd.oai.openapi+yaml;version=3.0.3"),fm=new hm(...dm.filterByFormat("generic"),...dm.filterByFormat("json")),ym=/"openapi"\s*:\s*"(?<version_json>3\.0\.([0123])(?:-rc[012])?)"/,gm=async e=>ym.test(e)&&await(async e=>{if(!os.test(e))return!1;try{return"ERROR"!==(await or(e)).rootNode.type}catch{return!1}})(e),bm=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=ht({},"refractorOpts",t),n=pt(["refractorOpts"],t),s=await async function(e){let{sourceMap:t=!1,syntacticAnalysis:r="direct"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await or(e);let s;return s="indirect"===r?is(n,{sourceMap:t}):vn(n,{sourceMap:t}),s}(e,n),{result:i}=s;if(Pt(i)){const e=qs.refract(i,r);e.classes.push("result"),s.replaceResult(e)}return s},vm=Xt(om)})(),__webpack_exports__})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiJson3_0=t():e.apidomParserAdapterOpenApiJson3_0=t()}(self,(()=>(()=>{var e={8385:(e,t,r)=>{var n=r(6174);e.exports=n},5271:(e,t,r)=>{var n=r(7820);e.exports=n},7574:(e,t,r)=>{var n=r(2);e.exports=n},33:(e,t,r)=>{var n=r(5636);e.exports=n},9821:(e,t,r)=>{var n=r(2285);r(7148),r(9031),r(1875),e.exports=n},8008:(e,t,r)=>{var n=r(8535);e.exports=n},164:(e,t,r)=>{var n=r(6042);e.exports=n},2089:(e,t,r)=>{r(2276);var n=r(5607);e.exports=n("Array").indexOf},2604:(e,t,r)=>{var n=r(8902),s=r(2089),i=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===i||n(i,e)&&t===i.indexOf?s:t}},3512:(e,t,r)=>{r(297);var n=r(7545).Object,s=e.exports=function(e,t,r){return n.defineProperty(e,t,r)};n.defineProperty.sham&&(s.sham=!0)},2921:(e,t,r)=>{r(6187);var n=r(7545);e.exports=n.Object.getOwnPropertySymbols},8651:(e,t,r)=>{r(2647);var n=r(7545);e.exports=n.Object.keys},5008:(e,t,r)=>{r(9106),r(6663),r(6187),r(9781),r(492),r(6681),r(9594),r(3665),r(9017),r(1250),r(9786),r(503),r(6565),r(9322),r(3610),r(6886),r(3514),r(8671),r(8556),r(1367);var n=r(7545);e.exports=n.Symbol},994:(e,t,r)=>{r(8939),r(6663),r(5454),r(3665);var n=r(9207);e.exports=n.f("iterator")},290:(e,t,r)=>{r(2432),r(3610);var n=r(9207);e.exports=n.f("toPrimitive")},2747:(e,t,r)=>{var n=r(8385);e.exports=n},229:(e,t,r)=>{var n=r(5271);e.exports=n},5090:(e,t,r)=>{var n=r(7574);e.exports=n},5483:(e,t,r)=>{var n=r(33);e.exports=n},2185:(e,t,r)=>{var n=r(9821);r(177),r(3346),r(3520),r(6658),r(8658),r(2725),r(1806),r(4212),r(4592),r(6680),e.exports=n},9982:(e,t,r)=>{var n=r(8008);e.exports=n},8241:(e,t,r)=>{var n=r(164);e.exports=n},6235:(e,t,r)=>{var n=r(6447),s=r(9288),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not a function")}},7757:(e,t,r)=>{var n=r(6447),s=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+s(e)+" as a prototype")}},7423:e=>{e.exports=function(){}},1138:(e,t,r)=>{var n=r(5744),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not an object")}},8180:(e,t,r)=>{var n=r(101),s=r(7739),i=r(4104),o=function(e){return function(t,r,o){var a,c=n(t),u=i(c),l=s(o,u);if(e&&r!=r){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},454:(e,t,r)=>{var n=r(8043),s=r(4120),i=r(2202),o=r(1795),a=r(4104),c=r(1321),u=s([].push),l=function(e){var t=1==e,r=2==e,s=3==e,l=4==e,p=6==e,h=7==e,m=5==e||p;return function(f,d,_,y){for(var g,b,v=o(f),w=i(v),E=n(d,_),O=a(w),j=0,x=y||c,S=t?x(f,O):r||h?x(f,0):void 0;O>j;j++)if((m||j in w)&&(b=E(g=w[j],j,v),e))if(t)S[j]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return j;case 2:u(S,g)}else switch(e){case 4:return!1;case 7:u(S,g)}return p?-1:s||l?l:S}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},242:(e,t,r)=>{var n=r(6192),s=r(8182),i=r(4218),o=s("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},424:(e,t,r)=>{"use strict";var n=r(6192);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},1923:(e,t,r)=>{var n=r(7739),s=r(4104),i=r(9361),o=Array,a=Math.max;e.exports=function(e,t,r){for(var c=s(e),u=n(t,c),l=n(void 0===r?c:r,c),p=o(a(l-u,0)),h=0;u<l;u++,h++)i(p,h,e[u]);return p.length=h,p}},3096:(e,t,r)=>{var n=r(4120);e.exports=n([].slice)},3712:(e,t,r)=>{var n=r(4770),s=r(2091),i=r(5744),o=r(8182)("species"),a=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(s(t)&&(t===a||n(t.prototype))||i(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?a:t}},1321:(e,t,r)=>{var n=r(3712);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},9272:(e,t,r)=>{var n=r(4120),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},4696:(e,t,r)=>{var n=r(3471),s=r(6447),i=r(9272),o=r(8182)("toStringTag"),a=Object,c="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"==(n=i(t))&&s(t.callee)?"Arguments":n}},4635:(e,t,r)=>{var n=r(6192);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},7271:e=>{e.exports=function(e,t){return{value:e,done:t}}},8711:(e,t,r)=>{var n=r(69),s=r(2760),i=r(774);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},774:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9361:(e,t,r)=>{"use strict";var n=r(77),s=r(2760),i=r(774);e.exports=function(e,t,r){var o=n(t);o in e?s.f(e,o,i(0,r)):e[o]=r}},2807:(e,t,r)=>{var n=r(2760);e.exports=function(e,t,r){return n.f(e,t,r)}},9362:(e,t,r)=>{var n=r(8711);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},5098:(e,t,r)=>{var n=r(8576),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},69:(e,t,r)=>{var n=r(6192);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8382:e=>{var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},7449:(e,t,r)=>{var n=r(8576),s=r(5744),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9425:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},7365:e=>{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=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4218:(e,t,r)=>{var n,s,i=r(8576),o=r(8989),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},5607:(e,t,r)=>{var n=r(7545);e.exports=function(e){return n[e+"Prototype"]}},2952:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3085:(e,t,r)=>{"use strict";var n=r(8576),s=r(6298),i=r(4914),o=r(6447),a=r(5141).f,c=r(9245),u=r(7545),l=r(8043),p=r(8711),h=r(4500),m=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,f,d,_,y,g,b,v,w=e.target,E=e.global,O=e.stat,j=e.proto,x=E?n:O?n[w]:(n[w]||{}).prototype,S=E?u:u[w]||p(u,w,{})[w],P=S.prototype;for(d in t)s=!(r=c(E?d:w+(O?".":"#")+d,e.forced))&&x&&h(x,d),y=S[d],s&&(g=e.dontCallGetSet?(v=a(x,d))&&v.value:x[d]),_=s&&g?g:t[d],s&&typeof y==typeof _||(b=e.bind&&s?l(_,n):e.wrap&&s?m(_):j&&o(_)?i(_):_,(e.sham||_&&_.sham||y&&y.sham)&&p(b,"sham",!0),p(S,d,b),j&&(h(u,f=w+"Prototype")||p(u,f,{}),p(u[f],d,_),e.real&&P&&(r||!P[d])&&p(P,d,_)))}},6192:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},6298:(e,t,r)=>{var n=r(2784),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},8043:(e,t,r)=>{var n=r(4914),s=r(6235),i=r(2784),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},2784:(e,t,r)=>{var n=r(6192);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8922:(e,t,r)=>{var n=r(2784),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},2282:(e,t,r)=>{var n=r(69),s=r(4500),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},6419:(e,t,r)=>{var n=r(4120),s=r(6235);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},4914:(e,t,r)=>{var n=r(9272),s=r(4120);e.exports=function(e){if("Function"===n(e))return s(e)}},4120:(e,t,r)=>{var n=r(2784),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},150:(e,t,r)=>{var n=r(7545),s=r(8576),i=r(6447),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},9202:(e,t,r)=>{var n=r(4120),s=r(4770),i=r(6447),o=r(9272),a=r(4845),c=n([].push);e.exports=function(e){if(i(e))return e;if(s(e)){for(var t=e.length,r=[],n=0;n<t;n++){var u=e[n];"string"==typeof u?c(r,u):"number"!=typeof u&&"Number"!=o(u)&&"String"!=o(u)||c(r,a(u))}var l=r.length,p=!0;return function(e,t){if(p)return p=!1,t;if(s(this))return t;for(var n=0;n<l;n++)if(r[n]===e)return t}}}},5037:(e,t,r)=>{var n=r(6235),s=r(5646);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},8576:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},4500:(e,t,r)=>{var n=r(4120),s=r(1795),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},4535:e=>{e.exports={}},7403:(e,t,r)=>{var n=r(150);e.exports=n("document","documentElement")},188:(e,t,r)=>{var n=r(69),s=r(6192),i=r(7449);e.exports=!n&&!s((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2202:(e,t,r)=>{var n=r(4120),s=r(6192),i=r(9272),o=Object,a=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a(e,""):o(e)}:o},9516:(e,t,r)=>{var n=r(4120),s=r(6447),i=r(6434),o=n(Function.toString);s(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},3326:(e,t,r)=>{var n,s,i,o=r(5278),a=r(8576),c=r(5744),u=r(8711),l=r(4500),p=r(6434),h=r(9766),m=r(4535),f="Object already initialized",d=a.TypeError,_=a.WeakMap;if(o||p.state){var y=p.state||(p.state=new _);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw d(f);return t.facade=e,y.set(e,t),t},s=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var g=h("state");m[g]=!0,n=function(e,t){if(l(e,g))throw d(f);return t.facade=e,u(e,g,t),t},s=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=s(t)).type!==e)throw d("Incompatible receiver, "+e+" required");return r}}}},4770:(e,t,r)=>{var n=r(9272);e.exports=Array.isArray||function(e){return"Array"==n(e)}},6447:(e,t,r)=>{var n=r(8382),s=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},2091:(e,t,r)=>{var n=r(4120),s=r(6192),i=r(6447),o=r(4696),a=r(150),c=r(9516),u=function(){},l=[],p=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,m=n(h.exec),f=!h.exec(u),d=function(e){if(!i(e))return!1;try{return p(u,l,e),!0}catch(e){return!1}},_=function(e){if(!i(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!m(h,c(e))}catch(e){return!0}};_.sham=!0,e.exports=!p||s((function(){var e;return d(d.call)||!d(Object)||!d((function(){e=!0}))||e}))?_:d},9245:(e,t,r)=>{var n=r(6192),s=r(6447),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r==l||r!=u&&(s(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},5646:e=>{e.exports=function(e){return null==e}},5744:(e,t,r)=>{var n=r(6447),s=r(8382),i=s.all;e.exports=s.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},5546:e=>{e.exports=!0},3236:(e,t,r)=>{var n=r(150),s=r(6447),i=r(8902),o=r(615),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,a(e))}},5695:(e,t,r)=>{"use strict";var n=r(4413).IteratorPrototype,s=r(2853),i=r(774),o=r(1284),a=r(7771),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=s(n,{next:i(+!u,r)}),o(e,l,!1,!0),a[l]=c,e}},5297:(e,t,r)=>{"use strict";var n=r(3085),s=r(8922),i=r(5546),o=r(2282),a=r(6447),c=r(5695),u=r(9341),l=r(4469),p=r(1284),h=r(8711),m=r(9362),f=r(8182),d=r(7771),_=r(4413),y=o.PROPER,g=o.CONFIGURABLE,b=_.IteratorPrototype,v=_.BUGGY_SAFARI_ITERATORS,w=f("iterator"),E="keys",O="values",j="entries",x=function(){return this};e.exports=function(e,t,r,o,f,_,S){c(r,t,o);var P,A,k,N=function(e){if(e===f&&T)return T;if(!v&&e in I)return I[e];switch(e){case E:case O:case j:return function(){return new r(this,e)}}return function(){return new r(this)}},M=t+" Iterator",R=!1,I=e.prototype,C=I[w]||I["@@iterator"]||f&&I[f],T=!v&&C||N(f),F="Array"==t&&I.entries||C;if(F&&(P=u(F.call(new e)))!==Object.prototype&&P.next&&(i||u(P)===b||(l?l(P,b):a(P[w])||m(P,w,x)),p(P,M,!0,!0),i&&(d[M]=x)),y&&f==O&&C&&C.name!==O&&(!i&&g?h(I,"name",O):(R=!0,T=function(){return s(C,this)})),f)if(A={values:N(O),keys:_?T:N(E),entries:N(j)},S)for(k in A)(v||R||!(k in I))&&m(I,k,A[k]);else n({target:t,proto:!0,forced:v||R},A);return i&&!S||I[w]===T||m(I,w,T,{name:f}),d[t]=T,A}},4413:(e,t,r)=>{"use strict";var n,s,i,o=r(6192),a=r(6447),c=r(5744),u=r(2853),l=r(9341),p=r(9362),h=r(8182),m=r(5546),f=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):d=!0),!c(n)||o((function(){var e={};return n[f].call(e)!==e}))?n={}:m&&(n=u(n)),a(n[f])||p(n,f,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},7771:e=>{e.exports={}},4104:(e,t,r)=>{var n=r(8445);e.exports=function(e){return n(e.length)}},7679:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},2853:(e,t,r)=>{var n,s=r(1138),i=r(1187),o=r(2952),a=r(4535),c=r(7403),u=r(7449),l=r(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},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&n?_(n):(t=u("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):_(n);for(var s=o.length;s--;)delete y[p][o[s]];return y()};a[m]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f[p]=s(e),r=new f,f[p]=null,r[m]=e):r=y(),void 0===t?r:i.f(r,t)}},1187:(e,t,r)=>{var n=r(69),s=r(9600),i=r(2760),o=r(1138),a=r(101),c=r(7653);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=c(t),u=s.length,l=0;u>l;)i.f(e,r=s[l++],n[r]);return e}},2760:(e,t,r)=>{var n=r(69),s=r(188),i=r(9600),o=r(1138),a=r(77),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",m="writable";t.f=n?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&m in r&&!r[m]){var n=l(e,t);n&&n[m]&&(e[t]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:p in r?r[p]:n[p],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=a(t),o(r),s)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},5141:(e,t,r)=>{var n=r(69),s=r(8922),i=r(6007),o=r(774),a=r(101),c=r(77),u=r(4500),l=r(188),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=a(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},4052:(e,t,r)=>{var n=r(9272),s=r(101),i=r(2092).f,o=r(1923),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"Window"==n(e)?function(e){try{return i(e)}catch(e){return o(a)}}(e):i(s(e))}},2092:(e,t,r)=>{var n=r(7934),s=r(2952).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},4750:(e,t)=>{t.f=Object.getOwnPropertySymbols},9341:(e,t,r)=>{var n=r(4500),s=r(6447),i=r(1795),o=r(9766),a=r(4635),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},8902:(e,t,r)=>{var n=r(4120);e.exports=n({}.isPrototypeOf)},7934:(e,t,r)=>{var n=r(4120),s=r(4500),i=r(101),o=r(8180).indexOf,a=r(4535),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!s(a,r)&&s(n,r)&&c(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~o(l,r)||c(l,r));return l}},7653:(e,t,r)=>{var n=r(7934),s=r(2952);e.exports=Object.keys||function(e){return n(e,s)}},6007:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},4469:(e,t,r)=>{var n=r(6419),s=r(1138),i=r(7757);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return s(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},158:(e,t,r)=>{"use strict";var n=r(3471),s=r(4696);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},380:(e,t,r)=>{var n=r(8922),s=r(6447),i=r(5744),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&s(r=e.toString)&&!i(a=n(r,e)))return a;if(s(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&s(r=e.toString)&&!i(a=n(r,e)))return a;throw o("Can't convert object to primitive value")}},7545:e=>{e.exports={}},3209:(e,t,r)=>{var n=r(5646),s=TypeError;e.exports=function(e){if(n(e))throw s("Can't call method on "+e);return e}},1284:(e,t,r)=>{var n=r(3471),s=r(2760).f,i=r(8711),o=r(4500),a=r(158),c=r(8182)("toStringTag");e.exports=function(e,t,r,u){if(e){var l=r?e:e.prototype;o(l,c)||s(l,c,{configurable:!0,value:t}),u&&!n&&i(l,"toString",a)}}},9766:(e,t,r)=>{var n=r(8717),s=r(2759),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},6434:(e,t,r)=>{var n=r(8576),s=r(5098),i="__core-js_shared__",o=n[i]||s(i,{});e.exports=o},8717:(e,t,r)=>{var n=r(5546),s=r(6434);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"})},863:(e,t,r)=>{var n=r(4120),s=r(1941),i=r(4845),o=r(3209),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,p=i(o(t)),h=s(r),m=p.length;return h<0||h>=m?e?"":void 0:(n=c(p,h))<55296||n>56319||h+1===m||(l=c(p,h+1))<56320||l>57343?e?a(p,h):n:e?u(p,h,h+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},6770:(e,t,r)=>{var n=r(4218),s=r(6192),i=r(8576).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},3407:(e,t,r)=>{var n=r(8922),s=r(150),i=r(8182),o=r(9362);e.exports=function(){var e=s("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,a=i("toPrimitive");t&&!t[a]&&o(t,a,(function(e){return n(r,this)}),{arity:1})}},8743:(e,t,r)=>{var n=r(150),s=r(4120),i=n("Symbol"),o=i.keyFor,a=s(i.prototype.valueOf);e.exports=i.isRegisteredSymbol||function(e){try{return void 0!==o(a(e))}catch(e){return!1}}},5128:(e,t,r)=>{for(var n=r(8717),s=r(150),i=r(4120),o=r(3236),a=r(8182),c=s("Symbol"),u=c.isWellKnownSymbol,l=s("Object","getOwnPropertyNames"),p=i(c.prototype.valueOf),h=n("wks"),m=0,f=l(c),d=f.length;m<d;m++)try{var _=f[m];o(c[_])&&a(_)}catch(e){}e.exports=function(e){if(u&&u(e))return!0;try{for(var t=p(e),r=0,n=l(h),s=n.length;r<s;r++)if(h[n[r]]==t)return!0}catch(e){}return!1}},31:(e,t,r)=>{var n=r(6770);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},7739:(e,t,r)=>{var n=r(1941),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},101:(e,t,r)=>{var n=r(2202),s=r(3209);e.exports=function(e){return n(s(e))}},1941:(e,t,r)=>{var n=r(7679);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},8445:(e,t,r)=>{var n=r(1941),s=Math.min;e.exports=function(e){return e>0?s(n(e),9007199254740991):0}},1795:(e,t,r)=>{var n=r(3209),s=Object;e.exports=function(e){return s(n(e))}},7888:(e,t,r)=>{var n=r(8922),s=r(5744),i=r(3236),o=r(5037),a=r(380),c=r(8182),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,c=o(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!s(r)||i(r))return r;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},77:(e,t,r)=>{var n=r(7888),s=r(3236);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},3471:(e,t,r)=>{var n={};n[r(8182)("toStringTag")]="z",e.exports="[object z]"===String(n)},4845:(e,t,r)=>{var n=r(4696),s=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return s(e)}},9288:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},2759:(e,t,r)=>{var n=r(4120),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},615:(e,t,r)=>{var n=r(6770);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9600:(e,t,r)=>{var n=r(69),s=r(6192);e.exports=n&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5278:(e,t,r)=>{var n=r(8576),s=r(6447),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8332:(e,t,r)=>{var n=r(7545),s=r(4500),i=r(9207),o=r(2760).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});s(t,e)||o(t,e,{value:i.f(e)})}},9207:(e,t,r)=>{var n=r(8182);t.f=n},8182:(e,t,r)=>{var n=r(8576),s=r(8717),i=r(4500),o=r(2759),a=r(6770),c=r(615),u=n.Symbol,l=s("wks"),p=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},9106:(e,t,r)=>{"use strict";var n=r(3085),s=r(6192),i=r(4770),o=r(5744),a=r(1795),c=r(4104),u=r(9425),l=r(9361),p=r(1321),h=r(242),m=r(8182),f=r(4218),d=m("isConcatSpreadable"),_=f>=51||!s((function(){var e=[];return e[d]=!1,e.concat()[0]!==e})),y=function(e){if(!o(e))return!1;var t=e[d];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!_||!h("concat")},{concat:function(e){var t,r,n,s,i,o=a(this),h=p(o,0),m=0;for(t=-1,n=arguments.length;t<n;t++)if(y(i=-1===t?o:arguments[t]))for(s=c(i),u(m+s),r=0;r<s;r++,m++)r in i&&l(h,m,i[r]);else u(m+1),l(h,m++,i);return h.length=m,h}})},2276:(e,t,r)=>{"use strict";var n=r(3085),s=r(4914),i=r(8180).indexOf,o=r(424),a=s([].indexOf),c=!!a&&1/a([1],1,-0)<0;n({target:"Array",proto:!0,forced:c||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?a(this,e,t)||0:i(this,e,t)}})},8939:(e,t,r)=>{"use strict";var n=r(101),s=r(7423),i=r(7771),o=r(3326),a=r(2760).f,c=r(5297),u=r(7271),l=r(5546),p=r(69),h="Array Iterator",m=o.set,f=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){m(this,{type:h,target:n(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==r?n:"values"==r?t[n]:[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){}},2432:()=>{},9704:(e,t,r)=>{var n=r(3085),s=r(150),i=r(6298),o=r(8922),a=r(4120),c=r(6192),u=r(6447),l=r(3236),p=r(3096),h=r(9202),m=r(6770),f=String,d=s("JSON","stringify"),_=a(/./.exec),y=a("".charAt),g=a("".charCodeAt),b=a("".replace),v=a(1..toString),w=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,j=!m||c((function(){var e=s("Symbol")();return"[null]"!=d([e])||"{}"!=d({a:e})||"{}"!=d(Object(e))})),x=c((function(){return'"\\udf06\\ud834"'!==d("\udf06\ud834")||'"\\udead"'!==d("\udead")})),S=function(e,t){var r=p(arguments),n=h(t);if(u(n)||void 0!==e&&!l(e))return r[1]=function(e,t){if(u(n)&&(t=o(n,this,f(e),t)),!l(t))return t},i(d,null,r)},P=function(e,t,r){var n=y(r,t-1),s=y(r,t+1);return _(E,e)&&!_(O,s)||_(O,e)&&!_(E,n)?"\\u"+v(g(e,0),16):e};d&&n({target:"JSON",stat:!0,arity:3,forced:j||x},{stringify:function(e,t,r){var n=p(arguments),s=i(j?S:d,null,n);return x&&"string"==typeof s?b(s,w,P):s}})},8671:(e,t,r)=>{var n=r(8576);r(1284)(n.JSON,"JSON",!0)},8556:()=>{},297:(e,t,r)=>{var n=r(3085),s=r(69),i=r(2760).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!s},{defineProperty:i})},7895:(e,t,r)=>{var n=r(3085),s=r(6770),i=r(6192),o=r(4750),a=r(1795);n({target:"Object",stat:!0,forced:!s||i((function(){o.f(1)}))},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(a(e)):[]}})},2647:(e,t,r)=>{var n=r(3085),s=r(1795),i=r(7653);n({target:"Object",stat:!0,forced:r(6192)((function(){i(1)}))},{keys:function(e){return i(s(e))}})},6663:()=>{},1367:()=>{},5454:(e,t,r)=>{"use strict";var n=r(863).charAt,s=r(4845),i=r(3326),o=r(5297),a=r(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),r=t.string,s=t.index;return s>=r.length?a(void 0,!0):(e=n(r,s),t.index+=e.length,a(e,!1))}))},9781:(e,t,r)=>{r(8332)("asyncIterator")},9351:(e,t,r)=>{"use strict";var n=r(3085),s=r(8576),i=r(8922),o=r(4120),a=r(5546),c=r(69),u=r(6770),l=r(6192),p=r(4500),h=r(8902),m=r(1138),f=r(101),d=r(77),_=r(4845),y=r(774),g=r(2853),b=r(7653),v=r(2092),w=r(4052),E=r(4750),O=r(5141),j=r(2760),x=r(1187),S=r(6007),P=r(9362),A=r(2807),k=r(8717),N=r(9766),M=r(4535),R=r(2759),I=r(8182),C=r(9207),T=r(8332),F=r(3407),$=r(1284),D=r(3326),q=r(454).forEach,L=N("hidden"),V="Symbol",B="prototype",z=D.set,U=D.getterFor(V),G=Object[B],W=s.Symbol,J=W&&W[B],K=s.TypeError,H=s.QObject,Z=O.f,X=j.f,Y=w.f,Q=S.f,ee=o([].push),te=k("symbols"),re=k("op-symbols"),ne=k("wks"),se=!H||!H[B]||!H[B].findChild,ie=c&&l((function(){return 7!=g(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Z(G,t);n&&delete G[t],X(e,t,r),n&&e!==G&&X(G,t,n)}:X,oe=function(e,t){var r=te[e]=g(J);return z(r,{type:V,tag:e,description:t}),c||(r.description=t),r},ae=function(e,t,r){e===G&&ae(re,t,r),m(e);var n=d(t);return m(r),p(te,n)?(r.enumerable?(p(e,L)&&e[L][n]&&(e[L][n]=!1),r=g(r,{enumerable:y(0,!1)})):(p(e,L)||X(e,L,y(1,{})),e[L][n]=!0),ie(e,n,r)):X(e,n,r)},ce=function(e,t){m(e);var r=f(t),n=b(r).concat(he(r));return q(n,(function(t){c&&!i(ue,r,t)||ae(e,t,r[t])})),e},ue=function(e){var t=d(e),r=i(Q,this,t);return!(this===G&&p(te,t)&&!p(re,t))&&(!(r||!p(this,t)||!p(te,t)||p(this,L)&&this[L][t])||r)},le=function(e,t){var r=f(e),n=d(t);if(r!==G||!p(te,n)||p(re,n)){var s=Z(r,n);return!s||!p(te,n)||p(r,L)&&r[L][n]||(s.enumerable=!0),s}},pe=function(e){var t=Y(f(e)),r=[];return q(t,(function(e){p(te,e)||p(M,e)||ee(r,e)})),r},he=function(e){var t=e===G,r=Y(t?re:f(e)),n=[];return q(r,(function(e){!p(te,e)||t&&!p(G,e)||ee(n,te[e])})),n};u||(P(J=(W=function(){if(h(J,this))throw K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?_(arguments[0]):void 0,t=R(e),r=function(e){this===G&&i(r,re,e),p(this,L)&&p(this[L],t)&&(this[L][t]=!1),ie(this,t,y(1,e))};return c&&se&&ie(G,t,{configurable:!0,set:r}),oe(t,e)})[B],"toString",(function(){return U(this).tag})),P(W,"withoutSetter",(function(e){return oe(R(e),e)})),S.f=ue,j.f=ae,x.f=ce,O.f=le,v.f=w.f=pe,E.f=he,C.f=function(e){return oe(I(e),e)},c&&(A(J,"description",{configurable:!0,get:function(){return U(this).description}}),a||P(G,"propertyIsEnumerable",ue,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),q(b(ne),(function(e){T(e)})),n({target:V,stat:!0,forced:!u},{useSetter:function(){se=!0},useSimple:function(){se=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(e,t){return void 0===t?g(e):ce(g(e),t)},defineProperty:ae,defineProperties:ce,getOwnPropertyDescriptor:le}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pe}),F(),$(W,V),M[L]=!0},492:()=>{},9148:(e,t,r)=>{var n=r(3085),s=r(150),i=r(4500),o=r(4845),a=r(8717),c=r(31),u=a("string-to-symbol-registry"),l=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=o(e);if(i(u,t))return u[t];var r=s("Symbol")(t);return u[t]=r,l[r]=t,r}})},6681:(e,t,r)=>{r(8332)("hasInstance")},9594:(e,t,r)=>{r(8332)("isConcatSpreadable")},3665:(e,t,r)=>{r(8332)("iterator")},6187:(e,t,r)=>{r(9351),r(9148),r(5991),r(9704),r(7895)},5991:(e,t,r)=>{var n=r(3085),s=r(4500),i=r(3236),o=r(9288),a=r(8717),c=r(31),u=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!i(e))throw TypeError(o(e)+" is not a symbol");if(s(u,e))return u[e]}})},1250:(e,t,r)=>{r(8332)("matchAll")},9017:(e,t,r)=>{r(8332)("match")},9786:(e,t,r)=>{r(8332)("replace")},503:(e,t,r)=>{r(8332)("search")},6565:(e,t,r)=>{r(8332)("species")},9322:(e,t,r)=>{r(8332)("split")},3610:(e,t,r)=>{var n=r(8332),s=r(3407);n("toPrimitive"),s()},6886:(e,t,r)=>{var n=r(150),s=r(8332),i=r(1284);s("toStringTag"),i(n("Symbol"),"Symbol")},3514:(e,t,r)=>{r(8332)("unscopables")},7148:(e,t,r)=>{var n=r(8182),s=r(2760).f,i=n("metadata"),o=Function.prototype;void 0===o[i]&&s(o,i,{value:null})},177:(e,t,r)=>{r(8332)("asyncDispose")},9031:(e,t,r)=>{r(8332)("dispose")},3346:(e,t,r)=>{r(3085)({target:"Symbol",stat:!0},{isRegisteredSymbol:r(8743)})},2725:(e,t,r)=>{r(3085)({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:r(8743)})},3520:(e,t,r)=>{r(3085)({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:r(5128)})},1806:(e,t,r)=>{r(3085)({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:r(5128)})},6658:(e,t,r)=>{r(8332)("matcher")},4212:(e,t,r)=>{r(8332)("metadataKey")},1875:(e,t,r)=>{r(8332)("metadata")},8658:(e,t,r)=>{r(8332)("observable")},4592:(e,t,r)=>{r(8332)("patternMatch")},6680:(e,t,r)=>{r(8332)("replaceAll")},162:(e,t,r)=>{r(8939);var n=r(7365),s=r(8576),i=r(4696),o=r(8711),a=r(7771),c=r(8182)("toStringTag");for(var u in n){var l=s[u],p=l&&l.prototype;p&&i(p)!==c&&o(p,c,u),a[u]=a.Array}},6174:(e,t,r)=>{var n=r(2604);e.exports=n},7820:(e,t,r)=>{var n=r(3512);e.exports=n},2:(e,t,r)=>{var n=r(2921);e.exports=n},5636:(e,t,r)=>{var n=r(8651);e.exports=n},2285:(e,t,r)=>{var n=r(5008);r(162),e.exports=n},8535:(e,t,r)=>{var n=r(994);r(162),e.exports=n},6042:(e,t,r)=>{var n=r(290);e.exports=n},9515:(e,t,r)=>{var n=r(8761)(r(7772),"DataView");e.exports=n},9612:(e,t,r)=>{var n=r(2118),s=r(6909),i=r(8138),o=r(4174),a=r(7942);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},235:(e,t,r)=>{var n=r(3945),s=r(1846),i=r(8028),o=r(2344),a=r(4769);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},326:(e,t,r)=>{var n=r(8761)(r(7772),"Map");e.exports=n},6738:(e,t,r)=>{var n=r(2411),s=r(6417),i=r(6928),o=r(9493),a=r(4150);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1985:(e,t,r)=>{var n=r(8761)(r(7772),"Promise");e.exports=n},2143:(e,t,r)=>{var n=r(8761)(r(7772),"Set");e.exports=n},5386:(e,t,r)=>{var n=r(6738),s=r(2842),i=r(2482);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},6571:(e,t,r)=>{var n=r(235),s=r(5243),i=r(2858),o=r(4417),a=r(8605),c=r(1418);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},857:(e,t,r)=>{var n=r(7772).Symbol;e.exports=n},9162:(e,t,r)=>{var n=r(7772).Uint8Array;e.exports=n},3215:(e,t,r)=>{var n=r(8761)(r(7772),"WeakMap");e.exports=n},7552:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},1634:(e,t,r)=>{var n=r(6473),s=r(9631),i=r(6152),o=r(3226),a=r(9045),c=r(7598),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&s(e),p=!r&&!l&&o(e),h=!r&&!l&&!p&&c(e),m=r||l||p||h,f=m?n(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 r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},7064:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},2218:(e,t,r)=>{var n=r(1225);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},1897:(e,t,r)=>{var n=r(5067),s=r(6152);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},3366:(e,t,r)=>{var n=r(857),s=r(2107),i=r(7157),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},5183:(e,t,r)=>{var n=r(3366),s=r(5125);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},8746:(e,t,r)=>{var n=r(1952),s=r(5125);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,a))}},1952:(e,t,r)=>{var n=r(6571),s=r(4871),i=r(1491),o=r(7416),a=r(940),c=r(6152),u=r(3226),l=r(7598),p="[object Arguments]",h="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,_,y){var g=c(e),b=c(t),v=g?h:a(e),w=b?h:a(t),E=(v=v==p?m:v)==m,O=(w=w==p?m:w)==m,j=v==w;if(j&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(j&&!E)return y||(y=new n),g||l(e)?s(e,t,r,d,_,y):i(e,t,v,r,d,_,y);if(!(1&r)){var x=E&&f.call(e,"__wrapped__"),S=O&&f.call(t,"__wrapped__");if(x||S){var P=x?e.value():e,A=S?t.value():t;return y||(y=new n),_(P,A,r,d,y)}}return!!j&&(y||(y=new n),o(e,t,r,d,_,y))}},6840:(e,t,r)=>{var n=r(1049),s=r(7394),i=r(9259),o=r(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))&&(n(e)?h:a).test(o(e))}},5522:(e,t,r)=>{var n=r(3366),s=r(1158),i=r(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[n(e)]}},6411:(e,t,r)=>{var n=r(6001),s=r(4248),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6473:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},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,r)=>{var n=r(7772)["__core-js_shared__"];e.exports=n},4871:(e,t,r)=>{var n=r(5386),s=r(7064),i=r(9950);e.exports=function(e,t,r,o,a,c){var u=1&r,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var f=-1,d=!0,_=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++f<l;){var y=e[f],g=t[f];if(o)var b=u?o(g,y,f,t,e,c):o(y,g,f,e,t,c);if(void 0!==b){if(b)continue;d=!1;break}if(_){if(!s(t,(function(e,t){if(!i(_,t)&&(y===e||a(y,e,r,o,c)))return _.push(t)}))){d=!1;break}}else if(y!==g&&!a(y,g,r,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},1491:(e,t,r)=>{var n=r(857),s=r(9162),i=r(1225),o=r(4871),a=r(5179),c=r(4207),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,p,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=a;case"[object Set]":var f=1&n;if(m||(m=c),e.size!=t.size&&!f)return!1;var d=h.get(e);if(d)return d==t;n|=2,h.set(e,t);var _=o(m(e),m(t),n,u,p,h);return h.delete(e),_;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},7416:(e,t,r)=>{var n=r(3483),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!c)return!1;for(var p=l;p--;){var 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 y=e[h=u[p]],g=t[h];if(i)var b=c?i(g,y,h,t,e,a):i(y,g,h,e,t,a);if(!(void 0===b?y===g||o(y,g,r,i,a):b)){d=!1;break}_||(_="constructor"==h)}if(d&&!_){var v=e.constructor,w=t.constructor;v==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(d=!1)}return a.delete(e),a.delete(t),d}},1242:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},3483:(e,t,r)=>{var n=r(1897),s=r(633),i=r(249);e.exports=function(e){return n(e,i,s)}},7937:(e,t,r)=>{var n=r(8304);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},8761:(e,t,r)=>{var n=r(6840),s=r(8109);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},2107:(e,t,r)=>{var n=r(857),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[a]=r:delete e[a]),s}},633:(e,t,r)=>{var n=r(7552),s=r(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},940:(e,t,r)=>{var n=r(9515),s=r(326),i=r(1985),o=r(2143),a=r(3215),c=r(3366),u=r(7035),l="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",f="[object DataView]",d=u(n),_=u(s),y=u(i),g=u(o),b=u(a),v=c;(n&&v(new n(new ArrayBuffer(1)))!=f||s&&v(new s)!=l||i&&v(i.resolve())!=p||o&&v(new o)!=h||a&&v(new a)!=m)&&(v=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case d:return f;case _:return l;case y:return p;case g:return h;case b:return m}return t}),e.exports=v},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2118:(e,t,r)=>{var n=r(9191);e.exports=function(){this.__data__=n?n(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,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},4174:(e,t,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},7942:(e,t,r)=>{var n=r(9191);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9045:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},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,r)=>{var n,s=r(4019),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},6001:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,r)=>{var n=r(2218),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},8028:(e,t,r)=>{var n=r(2218);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},2344:(e,t,r)=>{var n=r(2218);e.exports=function(e){return n(this.__data__,e)>-1}},4769:(e,t,r)=>{var n=r(2218);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},2411:(e,t,r)=>{var n=r(9612),s=r(235),i=r(326);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},6417:(e,t,r)=>{var n=r(7937);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,r)=>{var n=r(7937);e.exports=function(e){return n(this,e).get(e)}},9493:(e,t,r)=>{var n=r(7937);e.exports=function(e){return n(this,e).has(e)}},4150:(e,t,r)=>{var n=r(7937);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},5179:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},9191:(e,t,r)=>{var n=r(8761)(Object,"create");e.exports=n},4248:(e,t,r)=>{var n=r(241)(Object.keys,Object);e.exports=n},4146:(e,t,r)=>{e=r.nmd(e);var n=r(1242),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},241:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},7772:(e,t,r)=>{var n=r(1242),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||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,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},5243:(e,t,r)=>{var n=r(235);e.exports=function(){this.__data__=new n,this.size=0}},2858:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},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,r)=>{var n=r(235),s=r(326),i=r(6738);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},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,r)=>{var n=r(5183),s=r(5125),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},6152:e=>{var t=Array.isArray;e.exports=t},7878:(e,t,r)=>{var n=r(1049),s=r(1158);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},4335:(e,t,r)=>{var n=r(3366),s=r(5125);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},3226:(e,t,r)=>{e=r.nmd(e);var n=r(7772),s=r(6330),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},8149:(e,t,r)=>{var n=r(8746);e.exports=function(e,t){return n(e,t)}},1049:(e,t,r)=>{var n=r(3366),s=r(9259);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},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,r)=>{var n=r(3366),s=r(5125);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(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,r)=>{var n=r(3366),s=r(6152),i=r(5125);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},7598:(e,t,r)=>{var n=r(5522),s=r(7826),i=r(4146),o=i&&i.isTypedArray,a=o?s(o):n;e.exports=a},249:(e,t,r)=>{var n=r(1634),s=r(6411),i=r(7878);e.exports=function(e){return i(e)?n(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,r)=>{const n=r(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 r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},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,r)=>{const n=r(5877),s=r(5505),i=r(537),o=r(4335),a=r(9259),c=r(2947),u=r(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(n,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},3853:(e,t,r)=>{const n=r(1570),s=r(1178);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3756:(e,t,r)=>{const n=r(6420),s=r(4152),i=r(9542),o=r(3710),a=r(3312),c=r(1641),u=r(8858),l=r(3860),p=r(5202),h=r(2320),m=r(1178),f=r(3853),d=r(3026);function _(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(_));if("object"==typeof e){return new l(e)}return e}n.prototype.ObjectElement=l,n.prototype.RefElement=h,n.prototype.MemberElement=u,n.prototype.refract=_,m.prototype.refract=_,e.exports={Element:n,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,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},2320:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},7952:(e,t,r)=>{const n=r(5140),s=r(3756);t.lS=n,r(3026),s.ArraySlice,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,r(2947),r(8910)},1641:(e,t,r)=>{const n=r(1570),s=r(6420),i=r(1178);class o extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},3312:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},6420:(e,t,r)=>{const n=r(8149),s=r(3026),i=r(1178);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8858:(e,t,r)=>{const n=r(3026),s=r(6420);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},4152:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},3860:(e,t,r)=>{const n=r(1570),s=r(9259),i=r(1641),o=r(8858),a=r(3853);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},9542:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(e,t,r)=>{const n=r(2947);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},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 r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},6591:e=>{!function(){"use strict";var t,r,n,s,i,o="properties",a="deepProperties",c="propertyDescriptors",u="staticProperties",l="staticDeepProperties",p="staticPropertyDescriptors",h="configuration",m="deepConfiguration",f="deepProps",d="deepStatics",_="deepConf",y="initializers",g="methods",b="composers",v="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 O=E.bind(0,(function(e,t){if(t)for(var r=w(t),n=0;n<r.length;n+=1)Object.defineProperty(e,r[n],Object.getOwnPropertyDescriptor(t,r[n]));return e}));function j(e){return"function"==typeof e}function x(e){return e&&"object"==typeof e||j(e)}function S(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var P=E.bind(0,(function e(r,n){if(n===t)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!S(n))return n;for(var s,i,o=w(n),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(n,s)).hasOwnProperty("value")?i.value!==t&&(r[s]=e(S(r[s])||Array.isArray(n[s])?r[s]:{},n[s])):Object.defineProperty(r,s,i);return r}));function A(){return(r=Array.prototype.concat.apply([],arguments).filter((function(e,t,r){return j(e)&&r.indexOf(e)===t}))).length?r:t}function k(e,t){function n(r,n){x(t[r])&&(x(e[r])||(e[r]={}),(n||O)(e[r],t[r]))}function s(n){(r=A(e[n],t[n]))&&(e[n]=r)}return t&&x(t=t[v]||t)&&(n(g),n(o),n(a,P),n(c),n(u),n(l,P),n(p),n(h),n(m,P),s(y),s(b)),e}function N(){return function(e){return r=function e(r){var n,s,i=e[v]||{},u={__proto__:i[g]},l=i[y],p=Array.prototype.slice.apply(arguments),h=i[a];if(h&&P(u,h),(h=i[o])&&O(u,h),(h=i[c])&&Object.defineProperties(u,h),!l||!l.length)return u;for(r===t&&(r={}),i=0;i<l.length;)j(n=l[i++])&&(u=(s=n.call(u,r,{instance:u,stamp:e,args:p}))===t?u:s);return u},(n=e[l])&&P(r,n),(n=e[u])&&O(r,n),(n=e[p])&&Object.defineProperties(r,n),n=j(r[v])?r[v]:N,O(r[v]=function(){return n.apply(this,arguments)},e),r}(Array.prototype.concat.apply([this],arguments).reduce(k,{}))}function M(e){return j(e)&&j(e[v])}var R={};function I(e,i){return function(){return(s={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[v]||n).call(r,s)}}R[g]=I(g,O),R[o]=R.props=I(o,O),R[y]=R.init=I(y,A),R[b]=I(b,A),R[a]=R[f]=I(a,P),R[u]=R.statics=I(u,O),R[l]=R[d]=I(l,P),R[h]=R.conf=I(h,O),R[m]=R[_]=I(m,P),R[c]=I(c,O),R[p]=I(p,O),n=R[v]=O((function(){for(var e,w,E=0,j=[],S=arguments,k=this;E<S.length;)x(e=S[E++])&&j.push(M(e)?e:((s={})[g]=(w=e)[g]||t,n=w.props,s[o]=x((r=w[o])||n)?O({},n,r):t,s[y]=A(w.init,w[y]),s[b]=A(w[b]),n=w[f],s[a]=x((r=w[a])||n)?P({},n,r):t,s[c]=w[c],n=w.statics,s[u]=x((r=w[u])||n)?O({},n,r):t,n=w[d],s[l]=x((r=w[l])||n)?P({},n,r):t,r=w[p],s[p]=x((n=w.name&&{name:{value:w.name}})||r)?O({},r,n):t,n=w.conf,s[h]=x((r=w[h])||n)?O({},n,r):t,n=w[_],s[m]=x((r=w[m])||n)?P({},n,r):t,s));if(e=N.apply(k||i,j),k&&j.unshift(k),Array.isArray(S=e[v][b]))for(E=0;E<S.length;)e=M(k=S[E++]({stamp:e,composables:j}))?k:e;return e}),R),R.create=function(){return this.apply(t,arguments)},(s={})[u]=R,i=N(s),n[v]=n.bind(),n.version="4.3.2","object"!=typeof t?e.exports=n:self.stampit=n}()},9794:(e,t,r)=>{var n=void 0!==n?n:{},s=function(){var t,s="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(n=Object.assign({},n,o),t=new Promise((t=>{var o,a={};for(o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);var c,u,l,p,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,_,y,g,b,v="";c?(v=p?r(6287).dirname(v)+"/":"//",d=function(e,t){return g||(g=r(5530)),b||(b=r(6287)),e=b.normalize(e),g.readFileSync(e,t?null:"utf8")},y=function(e){var t=d(e,!0);return t.buffer||(t=new Uint8Array(t)),I(t.buffer),t},process.argv.length>1&&(m=process.argv[1].replace(/\\/g,"/")),h=process.argv.slice(2),e.exports=n,f=function(e){process.exit(e)},n.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(d=function(e){return read(e)}),y=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(I("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?v=self.location.href:void 0!==s&&s.currentScript&&(v=s.currentScript.src),v=0!==v.indexOf("blob:")?v.substr(0,v.lastIndexOf("/")+1):"",d=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(y=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),_=function(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)}),n.print||console.log.bind(console);var w=n.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(n[o]=a[o]);a=null,n.arguments&&(h=n.arguments),n.thisProgram&&(m=n.thisProgram),n.quit&&(f=n.quit);var E,O=16,j=[];function x(e,t){if(!E){E=new WeakMap;for(var r=0;r<Z.length;r++){var n=Z.get(r);n&&E.set(n,r)}}if(E.has(e))return E.get(e);var s=function(){if(j.length)return j.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(r){if(!(r instanceof TypeError))throw r;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==t[0]?[]:[r[t[0]]]},s=1;s<t.length;++s)n.parameters.push(r[t[s]]);return new WebAssembly.Function(n,e)}var i=[1,0,1,96],o=t.slice(0,1),a=t.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),s=0;s<a.length;++s)i.push(c[a[s]]);"v"==o?i.push(0):i=i.concat([1,c[o]]),i[1]=i.length-2;var u=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:e}}).exports.f}(e,t);Z.set(s,i)}return E.set(e,s),s}var S,P=n.dynamicLibraries||[];n.wasmBinary&&(S=n.wasmBinary);var A,k=n.noExitRuntime||!0;function N(e,t,r,n){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":T[e>>0]=t;break;case"i16":$[e>>1]=t;break;case"i32":D[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)],D[e>>2]=le[0],D[e+4>>2]=le[1];break;case"float":q[e>>2]=t;break;case"double":L[e>>3]=t;break;default:ae("invalid type for setValue: "+r)}}function M(e,t,r){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return T[e>>0];case"i16":return $[e>>1];case"i32":case"i64":return D[e>>2];case"float":return q[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 R=!1;function I(e,t){e||ae("Assertion failed: "+t)}var C,T,F,$,D,q,L,V="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function B(e,t,r){for(var n=t+r,s=t;e[s]&&!(s>=n);)++s;if(s-t>16&&e.subarray&&V)return V.decode(e.subarray(t,s));for(var i="";t<s;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function z(e,t){return e?B(F,e,t):""}function U(e,t,r,n){if(!(n>0))return 0;for(var s=r,i=r+n-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),a<=127){if(r>=i)break;t[r++]=a}else if(a<=2047){if(r+1>=i)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=i)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|63&a}}return t[r]=0,r-s}function G(e,t,r){return U(e,F,t,r)}function W(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}function J(e){var t=W(e)+1,r=ze(t);return U(e,T,r,t),r}function K(e){C=e,n.HEAP8=T=new Int8Array(e),n.HEAP16=$=new Int16Array(e),n.HEAP32=D=new Int32Array(e),n.HEAPU8=F=new Uint8Array(e),n.HEAPU16=new Uint16Array(e),n.HEAPU32=new Uint32Array(e),n.HEAPF32=q=new Float32Array(e),n.HEAPF64=L=new Float64Array(e)}var H=n.INITIAL_MEMORY||33554432;(A=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:H/65536,maximum:32768}))&&(C=A.buffer),H=C.byteLength,K(C);var Z=new WebAssembly.Table({initial:17,element:"anyfunc"}),X=[],Y=[],Q=[],ee=[],te=!1,re=0,ne=null,se=null;function ie(e){re++,n.monitorRunDependencies&&n.monitorRunDependencies(re)}function oe(e){if(re--,n.monitorRunDependencies&&n.monitorRunDependencies(re),0==re&&(null!==ne&&(clearInterval(ne),ne=null),se)){var t=se;se=null,t()}}function ae(e){throw n.onAbort&&n.onAbort(e),w(e+=""),R=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}n.preloadedImages={},n.preloadedAudios={},n.preloadedWasm={};var ce,ue,le;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function he(e){return e.startsWith("file://")}function me(e){try{if(e==ce&&S)return new Uint8Array(S);if(y)return y(e);throw"both async and sync fetching of the wasm failed"}catch(e){ae(e)}}pe(ce="tree-sitter.wasm")||(ce=function(e){return n.locateFile?n.locateFile(e,v):v+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 r=t.func;"number"==typeof r?void 0===t.arg?Z.get(r)():Z.get(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(n)}}function ye(e){var t=0;function r(){for(var r=0,n=1;;){var s=e[t++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}if(e instanceof WebAssembly.Module){var n=WebAssembly.Module.customSections(e,"dylink");I(0!=n.length,"need dylink section"),e=new Int8Array(n[0])}else I(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),I(0===e[8],"need the dylink section to be first"),t=9,r(),I(6===e[t]),I(e[++t]==="d".charCodeAt(0)),I(e[++t]==="y".charCodeAt(0)),I(e[++t]==="l".charCodeAt(0)),I(e[++t]==="i".charCodeAt(0)),I(e[++t]==="n".charCodeAt(0)),I(e[++t]==="k".charCodeAt(0)),t++;var s={};s.memorySize=r(),s.memoryAlign=r(),s.tableSize=r(),s.tableAlign=r();var i=r();s.neededDynlibs=[];for(var o=0;o<i;++o){var a=r(),c=e.subarray(t,t+a);t+=a;var u=B(c,0);s.neededDynlibs.push(u)}return s}var ge=0;function be(){return k||ge>0}function ve(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function we(e,t){for(var r in e)if(e.hasOwnProperty(r)){De.hasOwnProperty(r)||(De[r]=e[r]);var s=ve(r);n.hasOwnProperty(s)||(n[s]=e[r])}}var Ee={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var Oe=5250880;function je(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function xe(e,t){var r={};for(var n in e){var s=e[n];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),r[n]=s}return function(e){for(var t in e)if(!je(t)){var r=!1,n=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],r=!0),fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==fe[t].value)&&("function"==typeof n?fe[t].value=x(n):"number"==typeof n?fe[t].value=n:w("unhandled export type for `"+t+"`: "+typeof n))}}(r),r}function Se(e,t){var r,s;return t&&(r=De["orig$"+e]),r||(r=De[e]),r||(r=n[ve(e)]),!r&&e.startsWith("invoke_")&&(s=e.split("_")[1],r=function(){var e=Ve();try{return function(e,t,r){return e.includes("j")?function(e,t,r){var s=n["dynCall_"+e];return r&&r.length?s.apply(null,[t].concat(r)):s.call(null,t)}(e,t,r):Z.get(t).apply(null,r)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Be(e),t!==t+0&&"longjmp"!==t)throw t;Ue(1,0)}}),r}function Pe(e,t){var r=ye(e);function n(){var n=Math.pow(2,r.memoryAlign);n=Math.max(n,O);var s,i,o,a=(s=function(e){if(te)return qe(e);var t=Oe,r=t+e+15&-16;return Oe=r,fe.__heap_base.value=r,t}(r.memorySize+n),(i=n)||(i=O),Math.ceil(s/i)*i),c=Z.length;Z.grow(r.tableSize);for(var u=a;u<a+r.memorySize;u++)T[u]=0;for(u=c;u<c+r.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 De?De[t]:(t in e||(e[t]=function(){return r||(r=function(e){var t=Se(e,!1);return t||(t=o[e]),t}(t)),r.apply(null,arguments)}),e[t]);var r}}),p={"GOT.mem":new Proxy({},de),"GOT.func":new Proxy({},de),env:l,wasi_snapshot_preview1:l};function h(e){for(var n=0;n<r.tableSize;n++){var s=Z.get(c+n);s&&E.set(s,c+n)}o=xe(e.exports,a),t.allowUndefined||ke();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?r.neededDynlibs.reduce((function(e,r){return e.then((function(){return Ae(r,t)}))}),Promise.resolve()).then((function(){return n()})):(r.neededDynlibs.forEach((function(e){Ae(e,t)})),n())}function Ae(e,t){"__main__"!=e||Ee.loadedLibNames[e]||(Ee.loadedLibs[-1]={refcount:1/0,name:"__main__",module:n.asm,global:!0},Ee.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var r,s=Ee.loadedLibNames[e];if(s)return r=Ee.loadedLibs[s],t.global&&!r.global&&(r.global=!0,"loading"!==r.module&&we(r.module)),t.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,t.loadAsync?Promise.resolve(s):s;function i(e){if(t.fs){var r=t.fs.readFile(e,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),t.loadAsync?Promise.resolve(r):r}return t.loadAsync?(n=e,fetch(n,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+n+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):y(e);var n}function o(){if(void 0!==n.preloadedWasm&&void 0!==n.preloadedWasm[e]){var r=n.preloadedWasm[e];return t.loadAsync?Promise.resolve(r):r}return t.loadAsync?i(e).then((function(e){return Pe(e,t)})):Pe(i(e),t)}function a(e){r.global&&we(e),r.module=e}return s=Ee.nextHandle++,r={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},Ee.loadedLibNames[e]=s,Ee.loadedLibs[s]=r,t.loadAsync?o().then((function(e){return a(e),s})):(a(o()),s)}function ke(){for(var e in fe)if(0==fe[e].value){var t=Se(e,!0);"function"==typeof t?fe[e].value=x(t,t.sig):"number"==typeof t?fe[e].value=t:I(!1,"bad export type for `"+e+"`: "+typeof t)}}n.___heap_base=Oe;var Ne,Me=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Re(){ae()}n._abort=Re,Re.sig="v",Ne=c?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Ie(e,t){var r;if(0===e)r=Date.now();else{if(1!==e&&4!==e)return 28,D[Le()>>2]=28,-1;r=Ne()}return D[t>>2]=r/1e3|0,D[t+4>>2]=r%1e3*1e3*1e3|0,0}function Ce(e){try{return A.grow(e-C.byteLength+65535>>>16),K(A.buffer),1}catch(e){}}function Te(e){Ke(e)}function Fe(e){}Ie.sig="iii",Te.sig="vi",Fe.sig="vi";var $e,De={__heap_base:Oe,__indirect_function_table:Z,__memory_base:1024,__stack_pointer:Me,__table_base:1,abort:Re,clock_gettime:Ie,emscripten_memcpy_big:function(e,t,r){F.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){var t,r=F.length;if((e>>>=0)>2147483648)return!1;for(var n=1;n<=4;n*=2){var s=r*(1+.2/n);if(s=Math.min(s,e+100663296),Ce(Math.min(2147483648,((t=Math.max(e,s))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Te,memory:A,setTempRet0:Fe,tree_sitter_log_callback:function(e,t){if(ut){const r=z(t);ut(r,0!==e)}},tree_sitter_parse_callback:function(e,t,r,n,s){var i=ct(t,{row:r,column:n});"string"==typeof i?(N(s,i.length,"i32"),function(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=(r-=2)<2*e.length?r/2:e.length,s=0;s<n;++s){var i=e.charCodeAt(s);$[t>>1]=i,t+=2}$[t>>1]=0}(i,e,10240)):N(s,0,"i32")}},qe=(function(){var e={env:De,wasi_snapshot_preview1:De,"GOT.mem":new Proxy(De,de),"GOT.func":new Proxy(De,de)};function t(e,t){var r=e.exports;r=xe(r,1024),n.asm=r;var s,i=ye(t);i.neededDynlibs&&(P=i.neededDynlibs.concat(P)),we(r),s=n.asm.__wasm_call_ctors,Y.unshift(s),oe()}function r(e){t(e.instance,e.module)}function s(t){return function(){if(!S&&(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(),n.instantiateWasm)try{return n.instantiateWasm(e,t)}catch(e){return w("Module.instantiateWasm callback failed with error: "+e),!1}S||"function"!=typeof WebAssembly.instantiateStreaming||pe(ce)||he(ce)||"function"!=typeof fetch?s(r):fetch(ce,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return w("wasm streaming compile failed: "+e),w("falling back to ArrayBuffer instantiation"),s(r)}))}))}(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.__wasm_call_ctors).apply(null,arguments)},n._malloc=function(){return(qe=n._malloc=n.asm.malloc).apply(null,arguments)}),Le=(n._calloc=function(){return(n._calloc=n.asm.calloc).apply(null,arguments)},n._realloc=function(){return(n._realloc=n.asm.realloc).apply(null,arguments)},n._free=function(){return(n._free=n.asm.free).apply(null,arguments)},n._ts_language_symbol_count=function(){return(n._ts_language_symbol_count=n.asm.ts_language_symbol_count).apply(null,arguments)},n._ts_language_version=function(){return(n._ts_language_version=n.asm.ts_language_version).apply(null,arguments)},n._ts_language_field_count=function(){return(n._ts_language_field_count=n.asm.ts_language_field_count).apply(null,arguments)},n._ts_language_symbol_name=function(){return(n._ts_language_symbol_name=n.asm.ts_language_symbol_name).apply(null,arguments)},n._ts_language_symbol_for_name=function(){return(n._ts_language_symbol_for_name=n.asm.ts_language_symbol_for_name).apply(null,arguments)},n._ts_language_symbol_type=function(){return(n._ts_language_symbol_type=n.asm.ts_language_symbol_type).apply(null,arguments)},n._ts_language_field_name_for_id=function(){return(n._ts_language_field_name_for_id=n.asm.ts_language_field_name_for_id).apply(null,arguments)},n._memcpy=function(){return(n._memcpy=n.asm.memcpy).apply(null,arguments)},n._ts_parser_delete=function(){return(n._ts_parser_delete=n.asm.ts_parser_delete).apply(null,arguments)},n._ts_parser_reset=function(){return(n._ts_parser_reset=n.asm.ts_parser_reset).apply(null,arguments)},n._ts_parser_set_language=function(){return(n._ts_parser_set_language=n.asm.ts_parser_set_language).apply(null,arguments)},n._ts_parser_timeout_micros=function(){return(n._ts_parser_timeout_micros=n.asm.ts_parser_timeout_micros).apply(null,arguments)},n._ts_parser_set_timeout_micros=function(){return(n._ts_parser_set_timeout_micros=n.asm.ts_parser_set_timeout_micros).apply(null,arguments)},n._memmove=function(){return(n._memmove=n.asm.memmove).apply(null,arguments)},n._memcmp=function(){return(n._memcmp=n.asm.memcmp).apply(null,arguments)},n._ts_query_new=function(){return(n._ts_query_new=n.asm.ts_query_new).apply(null,arguments)},n._ts_query_delete=function(){return(n._ts_query_delete=n.asm.ts_query_delete).apply(null,arguments)},n._iswspace=function(){return(n._iswspace=n.asm.iswspace).apply(null,arguments)},n._iswalnum=function(){return(n._iswalnum=n.asm.iswalnum).apply(null,arguments)},n._ts_query_pattern_count=function(){return(n._ts_query_pattern_count=n.asm.ts_query_pattern_count).apply(null,arguments)},n._ts_query_capture_count=function(){return(n._ts_query_capture_count=n.asm.ts_query_capture_count).apply(null,arguments)},n._ts_query_string_count=function(){return(n._ts_query_string_count=n.asm.ts_query_string_count).apply(null,arguments)},n._ts_query_capture_name_for_id=function(){return(n._ts_query_capture_name_for_id=n.asm.ts_query_capture_name_for_id).apply(null,arguments)},n._ts_query_string_value_for_id=function(){return(n._ts_query_string_value_for_id=n.asm.ts_query_string_value_for_id).apply(null,arguments)},n._ts_query_predicates_for_pattern=function(){return(n._ts_query_predicates_for_pattern=n.asm.ts_query_predicates_for_pattern).apply(null,arguments)},n._ts_tree_copy=function(){return(n._ts_tree_copy=n.asm.ts_tree_copy).apply(null,arguments)},n._ts_tree_delete=function(){return(n._ts_tree_delete=n.asm.ts_tree_delete).apply(null,arguments)},n._ts_init=function(){return(n._ts_init=n.asm.ts_init).apply(null,arguments)},n._ts_parser_new_wasm=function(){return(n._ts_parser_new_wasm=n.asm.ts_parser_new_wasm).apply(null,arguments)},n._ts_parser_enable_logger_wasm=function(){return(n._ts_parser_enable_logger_wasm=n.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},n._ts_parser_parse_wasm=function(){return(n._ts_parser_parse_wasm=n.asm.ts_parser_parse_wasm).apply(null,arguments)},n._ts_language_type_is_named_wasm=function(){return(n._ts_language_type_is_named_wasm=n.asm.ts_language_type_is_named_wasm).apply(null,arguments)},n._ts_language_type_is_visible_wasm=function(){return(n._ts_language_type_is_visible_wasm=n.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},n._ts_tree_root_node_wasm=function(){return(n._ts_tree_root_node_wasm=n.asm.ts_tree_root_node_wasm).apply(null,arguments)},n._ts_tree_edit_wasm=function(){return(n._ts_tree_edit_wasm=n.asm.ts_tree_edit_wasm).apply(null,arguments)},n._ts_tree_get_changed_ranges_wasm=function(){return(n._ts_tree_get_changed_ranges_wasm=n.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},n._ts_tree_cursor_new_wasm=function(){return(n._ts_tree_cursor_new_wasm=n.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},n._ts_tree_cursor_delete_wasm=function(){return(n._ts_tree_cursor_delete_wasm=n.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},n._ts_tree_cursor_reset_wasm=function(){return(n._ts_tree_cursor_reset_wasm=n.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_first_child_wasm=function(){return(n._ts_tree_cursor_goto_first_child_wasm=n.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_next_sibling_wasm=function(){return(n._ts_tree_cursor_goto_next_sibling_wasm=n.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_parent_wasm=function(){return(n._ts_tree_cursor_goto_parent_wasm=n.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_type_id_wasm=function(){return(n._ts_tree_cursor_current_node_type_id_wasm=n.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_named_wasm=function(){return(n._ts_tree_cursor_current_node_is_named_wasm=n.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_missing_wasm=function(){return(n._ts_tree_cursor_current_node_is_missing_wasm=n.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_id_wasm=function(){return(n._ts_tree_cursor_current_node_id_wasm=n.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},n._ts_tree_cursor_start_position_wasm=function(){return(n._ts_tree_cursor_start_position_wasm=n.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},n._ts_tree_cursor_end_position_wasm=function(){return(n._ts_tree_cursor_end_position_wasm=n.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},n._ts_tree_cursor_start_index_wasm=function(){return(n._ts_tree_cursor_start_index_wasm=n.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},n._ts_tree_cursor_end_index_wasm=function(){return(n._ts_tree_cursor_end_index_wasm=n.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},n._ts_tree_cursor_current_field_id_wasm=function(){return(n._ts_tree_cursor_current_field_id_wasm=n.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_wasm=function(){return(n._ts_tree_cursor_current_node_wasm=n.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},n._ts_node_symbol_wasm=function(){return(n._ts_node_symbol_wasm=n.asm.ts_node_symbol_wasm).apply(null,arguments)},n._ts_node_child_count_wasm=function(){return(n._ts_node_child_count_wasm=n.asm.ts_node_child_count_wasm).apply(null,arguments)},n._ts_node_named_child_count_wasm=function(){return(n._ts_node_named_child_count_wasm=n.asm.ts_node_named_child_count_wasm).apply(null,arguments)},n._ts_node_child_wasm=function(){return(n._ts_node_child_wasm=n.asm.ts_node_child_wasm).apply(null,arguments)},n._ts_node_named_child_wasm=function(){return(n._ts_node_named_child_wasm=n.asm.ts_node_named_child_wasm).apply(null,arguments)},n._ts_node_child_by_field_id_wasm=function(){return(n._ts_node_child_by_field_id_wasm=n.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},n._ts_node_next_sibling_wasm=function(){return(n._ts_node_next_sibling_wasm=n.asm.ts_node_next_sibling_wasm).apply(null,arguments)},n._ts_node_prev_sibling_wasm=function(){return(n._ts_node_prev_sibling_wasm=n.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},n._ts_node_next_named_sibling_wasm=function(){return(n._ts_node_next_named_sibling_wasm=n.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},n._ts_node_prev_named_sibling_wasm=function(){return(n._ts_node_prev_named_sibling_wasm=n.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},n._ts_node_parent_wasm=function(){return(n._ts_node_parent_wasm=n.asm.ts_node_parent_wasm).apply(null,arguments)},n._ts_node_descendant_for_index_wasm=function(){return(n._ts_node_descendant_for_index_wasm=n.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_index_wasm=function(){return(n._ts_node_named_descendant_for_index_wasm=n.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_descendant_for_position_wasm=function(){return(n._ts_node_descendant_for_position_wasm=n.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_position_wasm=function(){return(n._ts_node_named_descendant_for_position_wasm=n.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_start_point_wasm=function(){return(n._ts_node_start_point_wasm=n.asm.ts_node_start_point_wasm).apply(null,arguments)},n._ts_node_end_point_wasm=function(){return(n._ts_node_end_point_wasm=n.asm.ts_node_end_point_wasm).apply(null,arguments)},n._ts_node_start_index_wasm=function(){return(n._ts_node_start_index_wasm=n.asm.ts_node_start_index_wasm).apply(null,arguments)},n._ts_node_end_index_wasm=function(){return(n._ts_node_end_index_wasm=n.asm.ts_node_end_index_wasm).apply(null,arguments)},n._ts_node_to_string_wasm=function(){return(n._ts_node_to_string_wasm=n.asm.ts_node_to_string_wasm).apply(null,arguments)},n._ts_node_children_wasm=function(){return(n._ts_node_children_wasm=n.asm.ts_node_children_wasm).apply(null,arguments)},n._ts_node_named_children_wasm=function(){return(n._ts_node_named_children_wasm=n.asm.ts_node_named_children_wasm).apply(null,arguments)},n._ts_node_descendants_of_type_wasm=function(){return(n._ts_node_descendants_of_type_wasm=n.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},n._ts_node_is_named_wasm=function(){return(n._ts_node_is_named_wasm=n.asm.ts_node_is_named_wasm).apply(null,arguments)},n._ts_node_has_changes_wasm=function(){return(n._ts_node_has_changes_wasm=n.asm.ts_node_has_changes_wasm).apply(null,arguments)},n._ts_node_has_error_wasm=function(){return(n._ts_node_has_error_wasm=n.asm.ts_node_has_error_wasm).apply(null,arguments)},n._ts_node_is_missing_wasm=function(){return(n._ts_node_is_missing_wasm=n.asm.ts_node_is_missing_wasm).apply(null,arguments)},n._ts_query_matches_wasm=function(){return(n._ts_query_matches_wasm=n.asm.ts_query_matches_wasm).apply(null,arguments)},n._ts_query_captures_wasm=function(){return(n._ts_query_captures_wasm=n.asm.ts_query_captures_wasm).apply(null,arguments)},n._iswdigit=function(){return(n._iswdigit=n.asm.iswdigit).apply(null,arguments)},n._iswalpha=function(){return(n._iswalpha=n.asm.iswalpha).apply(null,arguments)},n._iswlower=function(){return(n._iswlower=n.asm.iswlower).apply(null,arguments)},n._towupper=function(){return(n._towupper=n.asm.towupper).apply(null,arguments)},n.___errno_location=function(){return(Le=n.___errno_location=n.asm.__errno_location).apply(null,arguments)}),Ve=(n._memchr=function(){return(n._memchr=n.asm.memchr).apply(null,arguments)},n._strlen=function(){return(n._strlen=n.asm.strlen).apply(null,arguments)},n.stackSave=function(){return(Ve=n.stackSave=n.asm.stackSave).apply(null,arguments)}),Be=n.stackRestore=function(){return(Be=n.stackRestore=n.asm.stackRestore).apply(null,arguments)},ze=n.stackAlloc=function(){return(ze=n.stackAlloc=n.asm.stackAlloc).apply(null,arguments)},Ue=n._setThrew=function(){return(Ue=n._setThrew=n.asm.setThrew).apply(null,arguments)};function Ge(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=n.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},n.__Znwm=function(){return(n.__Znwm=n.asm._Znwm).apply(null,arguments)},n.__ZdlPv=function(){return(n.__ZdlPv=n.asm._ZdlPv).apply(null,arguments)},n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=n.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},n._orig$ts_parser_timeout_micros=function(){return(n._orig$ts_parser_timeout_micros=n.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},n._orig$ts_parser_set_timeout_micros=function(){return(n._orig$ts_parser_set_timeout_micros=n.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},n.allocate=function(e,t){var r;return r=1==t?ze(e.length):qe(e.length),e.subarray||e.slice?F.set(e,r):F.set(new Uint8Array(e),r),r},se=function e(){$e||Je(),$e||(se=e)};var We=!1;function Je(e){function t(){$e||($e=!0,n.calledRun=!0,R||(te=!0,_e(Y),_e(Q),n.onRuntimeInitialized&&n.onRuntimeInitialized(),He&&function(e){var t=n._main;if(t){var r=(e=e||[]).length+1,s=ze(4*(r+1));D[s>>2]=J(m);for(var i=1;i<r;i++)D[(s>>2)+i]=J(e[i-1]);D[(s>>2)+r]=0;try{Ke(t(r,s),!0)}catch(e){if(e instanceof Ge)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),w("exception thrown: "+o),f(1,e)}}}(e),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)e=n.postRun.shift(),ee.unshift(e);var e;_e(ee)}()))}e=e||h,re>0||!We&&(function(){if(P.length){if(!y)return ie(),void P.reduce((function(e,t){return e.then((function(){return Ae(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),ke()}));P.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),ke()}else ke()}(),We=!0,re>0)||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)e=n.preRun.shift(),X.unshift(e);var e;_e(X)}(),re>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),t()}),1)):t()))}function Ke(e,t){t&&be()&&0===e||(be()||(n.onExit&&n.onExit(e),R=!0),f(e,new Ge(e)))}if(n.run=Je,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var He=!0;n.noInitialRun&&(He=!1),Je();const Ze=n,Xe={},Ye=4,Qe=5*Ye,et=2*Ye,tt=2*Ye+2*et,rt={row:0,column:0},nt=/[\w-.]*/g,st=/^_?tree_sitter_\w+/;var it,ot,at,ct,ut;class lt{static init(){at=Ze._ts_init(),it=M(at,"i32"),ot=M(at+Ye,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=M(at,"i32"),this[1]=M(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 r=Ze._ts_language_version(t);if(r<ot||it<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,Ze._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)ct=(t,r,n)=>e.slice(t,n);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");ct=e}this.logCallback?(ut=this.logCallback,Ze._ts_parser_enable_logger_wasm(this[0],1)):(ut=null,Ze._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r&&r.includedRanges){n=r.includedRanges.length;let e=s=Ze._calloc(n,tt);for(let t=0;t<n;t++)St(e,r.includedRanges[t]),e+=tt}const i=Ze._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,n);if(!i)throw ct=null,ut=null,new Error("Parsing failed");const o=new pt(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,r,n){gt(e),this[0]=t,this.language=r,this.textCallback=n}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;jt(t,e.startPosition),jt(t+=et,e.oldEndPosition),jt(t+=et,e.newEndPosition),N(t+=et,e.startIndex,"i32"),N(t+=Ye,e.oldEndIndex,"i32"),N(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=M(at,"i32"),r=M(at+Ye,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=Pt(e),e+=tt;Ze._free(r)}return n}}class ht{constructor(e,t){gt(e),this.tree=t}get typeId(){return vt(this),Ze._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return vt(this),Ze._ts_node_end_point_wasm(this.tree[0]),xt(at)}get endIndex(){return vt(this),Ze._ts_node_end_index_wasm(this.tree[0])}get text(){return _t(this.tree,this.startIndex,this.endIndex)}isNamed(){return vt(this),1===Ze._ts_node_is_named_wasm(this.tree[0])}hasError(){return vt(this),1===Ze._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return vt(this),1===Ze._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return vt(this),1===Ze._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return vt(this),Ze._ts_node_child_wasm(this.tree[0],e),wt(this.tree)}namedChild(e){return vt(this),Ze._ts_node_named_child_wasm(this.tree[0],e),wt(this.tree)}childForFieldId(e){return vt(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 vt(this),Ze._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return vt(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){vt(this),Ze._ts_node_children_wasm(this.tree[0]);const e=M(at,"i32"),t=M(at+Ye,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=wt(this.tree,r),r+=Qe;Ze._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){vt(this),Ze._ts_node_named_children_wasm(this.tree[0]);const e=M(at,"i32"),t=M(at+Ye,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=wt(this.tree,r),r+=Qe;Ze._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=rt),r||(r=rt);const n=[],s=this.tree.language.types;for(let t=0,r=s.length;t<r;t++)e.includes(s[t])&&n.push(t);const i=Ze._malloc(Ye*n.length);for(let e=0,t=n.length;e<t;e++)N(i+e*Ye,n[e],"i32");vt(this),Ze._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,t.row,t.column,r.row,r.column);const o=M(at,"i32"),a=M(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 vt(this),Ze._ts_node_next_sibling_wasm(this.tree[0]),wt(this.tree)}get previousSibling(){return vt(this),Ze._ts_node_prev_sibling_wasm(this.tree[0]),wt(this.tree)}get nextNamedSibling(){return vt(this),Ze._ts_node_next_named_sibling_wasm(this.tree[0]),wt(this.tree)}get previousNamedSibling(){return vt(this),Ze._ts_node_prev_named_sibling_wasm(this.tree[0]),wt(this.tree)}get parent(){return vt(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");vt(this);let r=at+Qe;return N(r,e,"i32"),N(r+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");vt(this);let r=at+Qe;return N(r,e,"i32"),N(r+Ye,t,"i32"),Ze._ts_node_named_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}descendantForPosition(e,t=e){if(!bt(e)||!bt(t))throw new Error("Arguments must be {row, column} objects");vt(this);let r=at+Qe;return jt(r,e),jt(r+et,t),Ze._ts_node_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}namedDescendantForPosition(e,t=e){if(!bt(e)||!bt(t))throw new Error("Arguments must be {row, column} objects");vt(this);let r=at+Qe;return jt(r,e),jt(r+et,t),Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}walk(){return vt(this),Ze._ts_tree_cursor_new_wasm(this.tree[0]),new mt(Xe,this.tree)}toString(){vt(this);const e=Ze._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var r=F[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}(e);return Ze._free(e),t}}class mt{constructor(e,t){gt(e),this.tree=t,Ot(this)}delete(){Et(this),Ze._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){vt(e),Et(this,at+Qe),Ze._ts_tree_cursor_reset_wasm(this.tree[0]),Ot(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]),xt(at)}get endPosition(){return Et(this),Ze._ts_tree_cursor_end_position_wasm(this.tree[0]),xt(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 Ot(this),1===e}gotoNextSibling(){Et(this);const e=Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return Ot(this),1===e}gotoParent(){Et(this);const e=Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return Ot(this),1===e}}class ft{constructor(e,t){gt(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]=z(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?z(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 r=W(e),n=Ze._malloc(r+1);G(e,n,r+1);const s=Ze._ts_language_symbol_for_name(this[0],n,r,t);return Ze._free(n),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?z(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=W(e),r=Ze._malloc(t+1);G(e,r,t+1);const n=Ze._ts_query_new(this[0],r,t,at,at+Ye);if(!n){const t=M(at+Ye,"i32"),n=z(r,M(at,"i32")).length,s=e.substr(n,100).split("\n")[0];let i,o=s.match(nt)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${n}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${n}: '${s}'...`),o=""}throw i.index=n,i.length=o.length,Ze._free(r),i}const s=Ze._ts_query_string_count(n),i=Ze._ts_query_capture_count(n),o=Ze._ts_query_pattern_count(n),a=new Array(i),c=new Array(s);for(let e=0;e<i;e++){const t=Ze._ts_query_capture_name_for_id(n,e,at),r=M(at,"i32");a[e]=z(t,r)}for(let e=0;e<s;e++){const t=Ze._ts_query_string_value_for_id(n,e,at),r=M(at,"i32");c[e]=z(t,r)}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(n,e,at),r=M(at,"i32");h[e]=[],m[e]=[];const s=[];let i=t;for(let t=0;t<r;t++){const t=M(i,"i32"),r=M(i+=Ye,"i32");if(i+=Ye,1===t)s.push({type:"capture",name:a[r]});else if(2===t)s.push({type:"string",value:c[r]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let r=!0;switch(t){case"not-eq?":r=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const t=s[1].name,n=s[2].name;m[e].push((function(e){let s,i;for(const r of e)r.name===t&&(s=r.node),r.name===n&&(i=r.node);return void 0===s||void 0===i||s.text===i.text===r}))}else{const t=s[1].name,n=s[2].value;m[e].push((function(e){for(const s of e)if(s.name===t)return s.node.text===n===r;return!0}))}break;case"not-match?":r=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const n=s[1].name,i=new RegExp(s[2].value);m[e].push((function(e){for(const t of e)if(t.name===n)return i.test(t.node.text)===r;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?l:p;o[e]||(o[e]={}),o[e][s[1].value]=s[2]?s[2].value:null;break;default: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(r),new dt(Xe,n,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 n=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=r(5530);t=Promise.resolve(e.readFileSync(n))}else t=fetch(n).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}const n="function"==typeof loadSideModule?loadSideModule:Pe;return t.then((e=>n(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>st.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const n=e[r]();return new ft(Xe,n)}))}}class dt{constructor(e,t,r,n,s,i,o,a){gt(e),this[0]=t,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ze._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,n){t||(t=rt),r||(r=rt),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");vt(e),Ze._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const i=M(at,"i32"),o=M(at+Ye,"i32"),a=M(at+2*Ye,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let t=0;t<i;t++){const r=M(l,"i32"),n=M(l+=Ye,"i32");l+=Ye;const s=new Array(n);if(l=yt(this,e.tree,l,s),this.textPredicates[r].every((e=>e(s)))){c[u++]={pattern:r,captures:s};const e=this.setProperties[r];e&&(c[t].setProperties=e);const n=this.assertedProperties[r];n&&(c[t].assertedProperties=n);const i=this.refutedProperties[r];i&&(c[t].refutedProperties=i)}}return c.length=u,Ze._free(o),c}captures(e,t,r,n){t||(t=rt),r||(r=rt),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");vt(e),Ze._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const i=M(at,"i32"),o=M(at+Ye,"i32"),a=M(at+2*Ye,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;t<i;t++){const t=M(l,"i32"),r=M(l+=Ye,"i32"),n=M(l+=Ye,"i32");if(l+=Ye,u.length=r,l=yt(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[n],r=this.setProperties[t];r&&(e.setProperties=r);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return Ze._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function _t(e,t,r){const n=r-t;let s=e.textCallback(t,null,r);for(t+=s.length;t<r;){const n=e.textCallback(t,null,r);if(!(n&&n.length>0))break;t+=n.length,s+=n}return t>r&&(s=s.slice(0,n)),s}function yt(e,t,r,n){for(let s=0,i=n.length;s<i;s++){const i=M(r,"i32"),o=wt(t,r+=Ye);r+=Qe,n[s]={name:e.captureNames[i],node:o}}return r}function gt(e){if(e!==Xe)throw new Error("Illegal constructor")}function bt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function vt(e){let t=at;N(t,e.id,"i32"),N(t+=Ye,e.startIndex,"i32"),N(t+=Ye,e.startPosition.row,"i32"),N(t+=Ye,e.startPosition.column,"i32"),N(t+=Ye,e[0],"i32")}function wt(e,t=at){const r=M(t,"i32");if(0===r)return null;const n=M(t+=Ye,"i32"),s=M(t+=Ye,"i32"),i=M(t+=Ye,"i32"),o=M(t+=Ye,"i32"),a=new ht(Xe,e);return a.id=r,a.startIndex=n,a.startPosition={row:s,column:i},a[0]=o,a}function Et(e,t=at){N(t+0*Ye,e[0],"i32"),N(t+1*Ye,e[1],"i32"),N(t+2*Ye,e[2],"i32")}function Ot(e){e[0]=M(at+0*Ye,"i32"),e[1]=M(at+1*Ye,"i32"),e[2]=M(at+2*Ye,"i32")}function jt(e,t){N(e,t.row,"i32"),N(e+Ye,t.column,"i32")}function xt(e){return{row:M(e,"i32"),column:M(e+Ye,"i32")}}function St(e,t){jt(e,t.startPosition),jt(e+=et,t.endPosition),N(e+=et,t.startIndex,"i32"),N(e+=Ye,t.endIndex,"i32"),e+=Ye}function Pt(e){const t={};return t.startPosition=xt(e),e+=et,t.endPosition=xt(e),e+=et,t.startIndex=M(e,"i32"),e+=Ye,t.endIndex=M(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,n.onRuntimeInitialized=()=>{lt.init(),t()}})))}}return i}();e.exports=s},5530:()=>{},6287:()=>{}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&!e;)e=n[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var n={};return(()=>{"use strict";r.r(n),r.d(n,{detect:()=>vh,detectionRegExp:()=>bh,mediaTypes:()=>gh,namespace:()=>Eh,parse:()=>wh});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>Kr,includesClasses:()=>Zr,includesSymbols:()=>Hr,isAnnotationElement:()=>zr,isArrayElement:()=>qr,isBooleanElement:()=>$r,isCommentElement:()=>Ur,isElement:()=>Ir,isLinkElement:()=>Vr,isMemberElement:()=>Lr,isNullElement:()=>Fr,isNumberElement:()=>Tr,isObjectElement:()=>Dr,isParseResultElement:()=>Gr,isPrimitiveElement:()=>Jr,isRefElement:()=>Br,isSourceMapElement:()=>Wr,isStringElement:()=>Cr});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>jo,isJSONSchemaElement:()=>Oo,isLinkDescriptionElement:()=>So,isMediaElement:()=>xo});var s={};r.r(s),r.d(s,{isOpenApi3_0LikeElement:()=>ea,isOpenApiExtension:()=>aa,isParameterLikeElement:()=>ta,isReferenceLikeElement:()=>ra,isRequestBodyLikeElement:()=>na,isResponseLikeElement:()=>sa,isServerLikeElement:()=>ia,isTagLikeElement:()=>oa});var i={};r.r(i),r.d(i,{isBooleanJsonSchemaElement:()=>bc,isCallbackElement:()=>Za,isComponentsElement:()=>Xa,isContactElement:()=>Ya,isExampleElement:()=>Qa,isExternalDocumentationElement:()=>ec,isHeaderElement:()=>tc,isInfoElement:()=>rc,isLicenseElement:()=>nc,isLinkElement:()=>sc,isLinkElementExternal:()=>ic,isMediaTypeElement:()=>Oc,isOpenApi3_0Element:()=>ac,isOpenapiElement:()=>oc,isOperationElement:()=>cc,isParameterElement:()=>uc,isPathItemElement:()=>lc,isPathItemElementExternal:()=>pc,isPathsElement:()=>hc,isReferenceElement:()=>mc,isReferenceElementExternal:()=>fc,isRequestBodyElement:()=>dc,isResponseElement:()=>_c,isResponsesElement:()=>yc,isSchemaElement:()=>gc,isSecurityRequirementElement:()=>vc,isServerElement:()=>wc,isServerVariableElement:()=>Ec});const o=function(){return!1};const a=function(){return!0};function c(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function u(e){return function t(r){return 0===arguments.length||c(r)?t:e.apply(this,arguments)}}function l(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return c(r)?t:u((function(t){return e(r,t)}));default:return c(r)&&c(n)?t:c(r)?u((function(t){return e(t,n)})):c(n)?u((function(t){return e(r,t)})):e(r,n)}}}const p=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function h(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!p(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function m(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const f=function(){return this.xf["@@transducer/init"]()},d=function(e){return this.xf["@@transducer/result"](e)};var _=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=f,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=m(this.xf["@@transducer/step"](e,!1))),e},e}();function y(e){return function(t){return new _(e,t)}}const g=l(h(["all"],y,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function b(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function v(e,t,r){return function(){for(var n=[],s=0,i=e,o=0;o<t.length||s<arguments.length;){var a;o<t.length&&(!c(t[o])||s>=arguments.length)?a=t[o]:(a=arguments[s],s+=1),n[o]=a,c(a)||(i-=1),o+=1}return i<=0?r.apply(this,n):b(i,v(e,n,r))}}const w=l((function(e,t){return 1===e?u(t):b(e,v(e,[],t))}));function E(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function O(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function j(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const x="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var S=Object.prototype.toString;const P=function(){return"[object Arguments]"===S.call(arguments)?function(e){return"[object Arguments]"===S.call(e)}:function(e){return j("callee",e)}}();var A=!{toString:null}.propertyIsEnumerable("toString"),k=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],N=function(){return arguments.propertyIsEnumerable("length")}(),M=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1};const R="function"!=typeof Object.keys||N?u((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=N&&P(e);for(t in e)!j(t,e)||s&&"length"===t||(n[n.length]=t);if(A)for(r=k.length-1;r>=0;)j(t=k[r],e)&&!M(n,t)&&(n[n.length]=t),r-=1;return n})):u((function(e){return Object(e)!==e?[]:Object.keys(e)}));const I=u((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function C(e,t,r,n){var s=E(e);function i(e,t){return T(e,t,r.slice(),n.slice())}return!O((function(e,t){return!O(i,t,e)}),E(t),s)}function T(e,t,r,n){if(x(e,t))return!0;var s,i,o=I(e);if(o!==I(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=r.length-1;a>=0;){if(r[a]===e)return n[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&C(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&C(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=R(e);if(c.length!==R(t).length)return!1;var u=r.concat([e]),l=n.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!j(p,t)||!T(t[p],e[p],u,l))return!1;a-=1}return!0}const F=l((function(e,t){return T(e,t,[],[])}));function $(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(F(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function D(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function q(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 L=function(e){return(e<10?"0":"")+e};const V="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+L(e.getUTCMonth()+1)+"-"+L(e.getUTCDate())+"T"+L(e.getUTCHours())+":"+L(e.getUTCMinutes())+":"+L(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function B(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}function z(e){return"[object Object]"===Object.prototype.toString.call(e)}var U=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=d,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function G(e){return function(t){return new U(e,t)}}const W=l(h(["fantasy-land/filter","filter"],G,(function(e,t){return z(t)?B((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},R(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const J=l((function(e,t){return W((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function K(e,t){var r=function(r){var n=t.concat([e]);return $(r,n)?"<Circular>":K(r,n)},n=function(e,t){return D((function(t){return q(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+D(r,e).join(", ")+"))";case"[object Array]":return"["+D(r,e).concat(n(e,J((function(e){return/^\d+$/.test(e)}),R(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):q(V(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":q(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,R(e)).join(", ")+"}"}}const H=u((function(e){return K(e,[])}));const Z=l((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=H(e),o=r(i,H(t));return void 0!==o&&o===i?e:t}));var X=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=d,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Y=l(h(["fantasy-land/map","map"],(function(e){return function(t){return new X(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return w(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return B((function(r,n){return r[n]=e(t[n]),r}),{},R(t));default:return D(e,t)}}))),Q=Number.isInteger||function(e){return e<<0===e};function ee(e){return"[object String]"===Object.prototype.toString.call(e)}const te=l((function(e,t){var r=e<0?t.length+e:e;return ee(t)?t.charAt(r):t[r]}));const re=l((function(e,t){if(null!=t)return Q(e)?te(e,t):t[e]}));const ne=l((function(e,t){return Y(re(e),t)}));function se(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return c(r)?t:l((function(t,n){return e(r,t,n)}));case 2:return c(r)&&c(n)?t:c(r)?l((function(t,r){return e(t,n,r)})):c(n)?l((function(t,n){return e(r,t,n)})):u((function(t){return e(r,n,t)}));default:return c(r)&&c(n)&&c(s)?t:c(r)&&c(n)?l((function(t,r){return e(t,r,s)})):c(r)&&c(s)?l((function(t,r){return e(t,n,r)})):c(n)&&c(s)?l((function(t,n){return e(r,t,n)})):c(r)?u((function(t){return e(t,n,s)})):c(n)?u((function(t){return e(r,t,s)})):c(s)?u((function(t){return e(r,n,t)})):e(r,n,s)}}}const ie=u((function(e){return!!p(e)||!!e&&("object"==typeof e&&(!ee(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var oe="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function ae(e,t,r){return function(n,s,i){if(ie(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[oe])return r(n,s,i[oe]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ce(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const ue=l((function(e,t){return b(e.length,(function(){return e.apply(t,arguments)}))}));function le(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function pe(e,t,r,n){return e["@@transducer/result"](r[n](ue(e["@@transducer/step"],e),t))}const he=ae(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}();const fe=se((function(e,t,r){return he("function"==typeof e?new me(e):e,t,r)}));const de=u((function(e){return w(fe(Z,0,ne("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const _e=u((function(e){return function(){return e}}));const ye=u((function(e){return w(fe(Z,0,ne("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function ge(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function be(e,t,r,n){return r[n](e,t)}const ve=ae(B,be,ge);const we=l((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:ve((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,Y(r,t))}),[],e)}));const Ee=l((function(e,t){return e.apply(this,t)}));function Oe(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const je=l((function(e,t){return e&&t}));const xe=l((function(e,t){var r=w(e,t);return w(e,(function(){return B(we,Y(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Se=u((function(e){return xe(e.length,e)}));const Pe=l((function(e,t){return Oe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Se(je)(e,t)}));const Ae=u((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));const ke=Se(u((function(e){return!e})));function Ne(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Me(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return p(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const Re=se(Me("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Ie=u(Me("tail",Re(1,1/0)));function Ce(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return b(arguments[0].length,fe(Ne,arguments[0],Ie(arguments)))}const Te=u((function(e){return w(e.length,e)}));const Fe=l((function(e,t){return null==t||t!=t?e:t}));function $e(e,t,r){var n,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?e in r._items[s]||(t&&(r._items[s][e]=!0),!1):(t&&(r._items[s]={},r._items[s][e]=!0),!1);case"boolean":if(s in r._items){var i=e?1:0;return!!r._items[s][i]||(t&&(r._items[s][i]=!0),!1)}return t&&(r._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?!!$(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1);case"undefined":return!!r._items[s]||(t&&(r._items[s]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in r._items?!!$(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1)}}const De=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!$e(e,!0,this)},e.prototype.has=function(e){return $e(e,!1,this)},e}();const qe=l((function(e,t){for(var r=[],n=0,s=e.length,i=t.length,o=new De,a=0;a<i;a+=1)o.add(t[a]);for(;n<s;)o.add(e[n])&&(r[r.length]=e[n]),n+=1;return r}));var Le=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=d,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?m(r):r},e}();function Ve(e){return function(t){return new Le(e,t)}}const Be=l(h(["take"],Ve,(function(e,t){return Re(0,e<0?1/0:e,t)})));var ze=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=d,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 Ue(e){return function(t){return new ze(e,t)}}const Ge=l(h(["dropWhile"],Ue,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return Re(r,1/0,t)})));const We=l((function(e,t){return e||t}));const Je=l((function(e,t){return Oe(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Se(We)(e,t)}));var Ke=u((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():p(e)?[]:ee(e)?"":z(e)?{}:P(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 He=Ke;const Ze=u((function(e){return w(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));const Xe=u((function(e){return null==e}));const Ye=l((function(e,t){if(0===e.length||Xe(t))return!1;for(var r=t,n=0;n<e.length;){if(Xe(r)||!j(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const Qe=l((function(e,t){return Ye([e],t)}));const et=te(0);var tt=function(e,t){switch(arguments.length){case 0:return tt;case 1:return function t(r){return 0===arguments.length?t:x(e,r)};default:return x(e,t)}};const rt=tt;const nt=se((function(e,t,r){return w(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const st=l($);const it=Re(0,-1);"function"==typeof Object.assign&&Object.assign;const ot=l((function(e,t){return w(e+1,(function(){var r=arguments[e];if(null!=r&&Oe(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(H(r)+' does not have a method named "'+t+'"')}))}));const at=u((function(e){return null!=e&&F(e,He(e))}));const ct=ot(1,"join");const ut=te(-1);const lt=l((function(e,t){return e.map((function(e){for(var r,n=t,s=0;s<e.length;){if(null==n)return;r=e[s],n=Q(r)?te(r,n):n[r],s+=1}return n}))}));const pt=l((function(e,t){return lt([e],t)[0]}));const ht=l((function(e,t){return B((function(r,n){return r[n]=e(t[n],n,t),r}),{},R(t))}));const mt=l((function(e,t){for(var r={},n={},s=0,i=e.length;s<i;)n[e[s]]=1,s+=1;for(var o in t)n.hasOwnProperty(o)||(r[o]=t[o]);return r}));const ft=se((function(e,t,r){return e(pt(t,r))}));const dt=l((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r}));const _t=se((function(e,t,r){return Fe(e,re(t,r))}));const yt=se((function(e,t,r){return e(re(t,r))}));function gt(e){return"[object Number]"===Object.prototype.toString.call(e)}const bt=l((function(e,t){if(!gt(e)||!gt(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],n=e;n<t;)r.push(n),n+=1;return r}));const vt=u(m);var wt=l((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Et=wt;const Ot=ot(1,"split");const jt=l((function(e,t){return F(Be(e.length,t),e)}));const xt=l((function(e,t){if(r=e,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+H(e));var r;return function(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":""))}(e).test(t)}));var St="\t\n\v\f\r \u2028\u2029\ufeff";String.prototype.trim;const Pt=_e(void 0);const At=F(Pt());const kt=ke(At);var Nt=r(7952);const Mt=F(null);const Rt=ke(Mt);function It(e){return It="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},It(e)}const Ct=function(e){return"object"===It(e)};const Tt=w(1,Pe(Rt,Ct));const Ft=w(1,Ce(I,rt("GeneratorFunction")));const $t=w(1,Ce(I,rt("AsyncFunction")));const Dt=ye([Ce(I,rt("Function")),Ft,$t]);var qt=Ce(I,rt("Object")),Lt=Ce(H,F(H(Object))),Vt=ft(Pe(Dt,Lt),["constructor"]);const Bt=w(1,(function(e){if(!Tt(e)||!qt(e))return!1;var t=Object.getPrototypeOf(e);return!!Mt(t)||Vt(t)}));class zt extends Nt.RP{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Ut=zt;class Gt extends Nt.RP{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Wt=Gt;class Jt extends Nt.ON{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(At(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const Kt=Jt;class Ht extends Nt.ON{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(null===e)return;const t=new Nt.ON([e.start.row,e.start.column,e.start.char]),r=new Nt.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const Zt=Ht;class Xt extends Nt.lS{constructor(){super(),this.register("annotation",Ut),this.register("comment",Wt),this.register("parseResult",Kt),this.register("sourceMap",Zt)}}const Yt=new Xt,Qt=e=>{const t=new Xt;return Bt(e)&&t.use(e),t},er=Yt;const tr=w(1,Ce(I,rt("String"))),rr=r.p+"23aac571c96605dc25219087ad291441.wasm",nr=globalThis.fetch;Dt(nr)&&(globalThis.fetch=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return tr(t[0])&&t[0].endsWith("tree-sitter.wasm")?nr.apply(globalThis,[rr,Ie(t)]):nr.apply(globalThis,t)});var sr=r(9794);const ir=r.p+"7c7ca323880d9fa6e48d1d1b2e78e140.wasm";let or=null,ar=null;const cr=async e=>{if(null===or&&null===ar)ar=sr.init().then((()=>sr.Language.load(ir))).then((e=>{const t=new sr;return t.setLanguage(e),t})).finally((()=>{ar=null})),or=await ar;else if(null===or&&null!==ar)or=await ar;else if(null===or)throw new Error("Error while initializing web-tree-sitter");return or.parse(e)};var ur=r(229),lr=r(2185),pr=r(9982);function hr(e){return hr="function"==typeof lr&&"symbol"==typeof pr?function(e){return typeof e}:function(e){return e&&"function"==typeof lr&&e.constructor===lr&&e!==lr.prototype?"symbol":typeof e},hr(e)}var mr=r(8241);function fr(e){var t=function(e,t){if("object"!==hr(e)||null===e)return e;var r=e[mr];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==hr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hr(t)?t:String(t)}function dr(e,t,r){return(t=fr(t))in e?ur(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _r=r(6591);const yr=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},gr={},br=e=>null==e?void 0:e.type,vr=e=>"string"==typeof br(e),wr=function(e,t){let{keyMap:r=null,state:n={},breakSymbol:s=gr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=yr,nodeTypeGetter:c=br,nodePredicate:u=vr,detectCycles:l=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const p=r||{};let h,m,f=Array.isArray(e),d=[e],_=-1,y=[];const g=[],b=[];let v=e;do{_+=1;const e=_===d.length;let r,w;const E=e&&0!==y.length;if(e){if(r=0===b.length?void 0:g.pop(),w=m,m=b.pop(),E){w=f?w.slice():Object.create(Object.getPrototypeOf(w),Object.getOwnPropertyDescriptors(w));let e=0;for(let t=0;t<y.length;t+=1){let r=y[t][0];const n=y[t][1];f&&(r-=e),f&&n===i?(w.splice(r,1),e+=1):w[r]=n}}_=h.index,d=h.keys,y=h.edits,f=h.inArray,h=h.prev}else{if(r=m?f?_:d[_]:void 0,w=m?m[r]:v,w===i||void 0===w)continue;m&&g.push(r)}if(b.includes(w))continue;let O;if(!Array.isArray(w)){if(!u(w))throw new Error(`Invalid AST Node: ${JSON.stringify(w)}`);if(l&&b.includes(w)){g.pop();continue}const i=a(t,c(w),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;if(O=i.call(t,w,r,m,g,b),O===s)break;if(O===o){if(!e){g.pop();continue}}else if(void 0!==O&&(y.push([r,O]),!e)){if(!u(O)){g.pop();continue}w=O}}}void 0===O&&E&&y.push([r,w]),e||(h={inArray:f,index:_,keys:d,edits:y,prev:h},f=Array.isArray(w),d=f?w:p[c(w)]||[],_=-1,y=[],m&&b.push(m),m=w)}while(void 0!==h);return 0!==y.length&&([,v]=y[y.length-1]),v};wr[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let{keyMap:r=null,state:n={},breakSymbol:s=gr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=yr,nodeTypeGetter:c=br,nodePredicate:u=vr,detectCycles:l=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const p=r||{};let h,m,f=Array.isArray(e),d=[e],_=-1,y=[];const g=[],b=[];let v=e;do{_+=1;const e=_===d.length;let r,w;const E=e&&0!==y.length;if(e){if(r=0===b.length?void 0:g.pop(),w=m,m=b.pop(),E){w=f?w.slice():Object.create(Object.getPrototypeOf(w),Object.getOwnPropertyDescriptors(w));let e=0;for(let t=0;t<y.length;t+=1){let r=y[t][0];const n=y[t][1];f&&(r-=e),f&&n===i?(w.splice(r,1),e+=1):w[r]=n}}_=h.index,d=h.keys,y=h.edits,f=h.inArray,h=h.prev}else{if(r=m?f?_:d[_]:void 0,w=m?m[r]:v,w===i||void 0===w)continue;m&&g.push(r)}let O;if(!Array.isArray(w)){if(!u(w))throw new Error(`Invalid AST Node: ${JSON.stringify(w)}`);if(l&&b.includes(w)){g.pop();continue}const i=a(t,c(w),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;if(O=await i.call(t,w,r,m,g,b),O===s)break;if(O===o){if(!e){g.pop();continue}}else if(void 0!==O&&(y.push([r,O]),!e)){if(!u(O)){g.pop();continue}w=O}}}void 0===O&&E&&y.push([r,w]),e||(h={inArray:f,index:_,keys:d,edits:y,prev:h},f=Array.isArray(w),d=f?w:p[c(w)]||[],_=-1,y=[],m&&b.push(m),m=w)}while(void 0!==h);return 0!==y.length&&([,v]=y[y.length-1]),v};var Er=r(5090),Or=r(2747),jr=r(5483);function xr(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},i=jr(e);for(n=0;n<i.length;n++)r=i[n],Or(t).call(t,r)>=0||(s[r]=e[r]);return s}(e,t);if(Er){var i=Er(e);for(n=0;n<i.length;n++)r=i[n],Or(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}const Sr=Ze(st),Pr=(e,t)=>"function"==typeof(null==t?void 0:t[e]),Ar=e=>null!=e&&Object.prototype.hasOwnProperty.call(e,"_storedElement")&&Object.prototype.hasOwnProperty.call(e,"_content"),kr=(e,t)=>{var r;return(null==t||null===(r=t.primitive)||void 0===r?void 0:r.call(t))===e},Nr=(e,t)=>{var r,n;return(null==t||null===(r=t.classes)||void 0===r||null===(n=r.includes)||void 0===n?void 0:n.call(r,e))||!1},Mr=(e,t)=>(null==t?void 0:t.element)===e,Rr=e=>e({hasMethod:Pr,hasBasicElementProps:Ar,primitiveEq:kr,isElementType:Mr,hasClass:Nr}),Ir=Rr((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof Nt.W_||t(e)&&r(void 0,e)})),Cr=Rr((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof Nt.RP||t(e)&&r("string",e)})),Tr=Rr((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof Nt.VL||t(e)&&r("number",e)})),Fr=Rr((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof Nt.zr||t(e)&&r("null",e)})),$r=Rr((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof Nt.hh||t(e)&&r("boolean",e)})),Dr=Rr((e=>{let{hasBasicElementProps:t,primitiveEq:r,hasMethod:n}=e;return e=>e instanceof Nt.Sb||t(e)&&r("object",e)&&n("keys",e)&&n("values",e)&&n("items",e)})),qr=Rr((e=>{let{hasBasicElementProps:t,primitiveEq:r,hasMethod:n}=e;return e=>e instanceof Nt.ON&&!(e instanceof Nt.Sb)||t(e)&&r("array",e)&&n("push",e)&&n("unshift",e)&&n("map",e)&&n("reduce",e)})),Lr=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Nt.c6||t(e)&&r("member",e)&&n(void 0,e)})),Vr=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Nt.EA||t(e)&&r("link",e)&&n(void 0,e)})),Br=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Nt.tK||t(e)&&r("ref",e)&&n(void 0,e)})),zr=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ut||t(e)&&r("annotation",e)&&n("array",e)})),Ur=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Wt||t(e)&&r("comment",e)&&n("string",e)})),Gr=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Kt||t(e)&&r("parseResult",e)&&n("array",e)})),Wr=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Zt||t(e)&&r("sourceMap",e)&&n("array",e)})),Jr=e=>Mr("object",e)||Mr("array",e)||Mr("boolean",e)||Mr("number",e)||Mr("string",e)||Mr("null",e)||Mr("member",e),Kr=e=>{var t,r;return Wr(null==e||null===(t=e.meta)||void 0===t||null===(r=t.get)||void 0===r?void 0:r.call(t,"sourceMap"))},Hr=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!qr(r)&&g(Sr(r.toValue()),e)},Zr=(e,t)=>0===e.length||g(Sr(t.classes.toValue()),e),Xr=["keyMap"],Yr=["keyMap"];function Qr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function en(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const tn=e=>Dr(e)?"ObjectElement":qr(e)?"ArrayElement":Lr(e)?"MemberElement":Cr(e)?"StringElement":$r(e)?"BooleanElement":Tr(e)?"NumberElement":Fr(e)?"NullElement":Vr(e)?"LinkElement":Br(e)?"RefElement":void 0,rn=Ce(tn,tr),nn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},sn=(_r({props:{result:[],predicate:o,returnOnTrue:void 0,returnOnFalse:void 0},init(){let{predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{keyMap:n=nn}=r,s=xr(r,Xr);return wr(e,t,en({keyMap:n,nodeTypeGetter:tn,nodePredicate:rn},s))});sn[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{keyMap:n=nn}=r,s=xr(r,Yr);return wr[Symbol.for("nodejs.util.promisify.custom")](e,t,en({keyMap:n,nodeTypeGetter:tn,nodePredicate:rn},s))};const on=ke(Dt);const an=w(1,Dt(Array.isArray)?Array.isArray:Ce(I,rt("Array")));const cn=Pe(an,at);const un=w(3,(function(e,t,r){var n=pt(e,r),s=pt(it(e),r);if(!on(n)&&!cn(e)){var i=ue(n,s);return Ee(i,t)}}));function ln(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const pn=()=>({predicates:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ln(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),namespace:er}),hn=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===t.length)return e;const n=_t(pn,"toolboxCreator",r),s=_t({},"visitorOptions",r),i=_t(tn,"nodeTypeGetter",s),o=n(),a=t.map((e=>e(o))),c=function(e){let{visitFnGetter:t=yr,nodeTypeGetter:r=br}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Array(e.length);return{enter(s){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];for(let i=0;i<e.length;i+=1)if(null==n[i]){const a=t(e[i],r(s),!1);if("function"==typeof a){const t=a.call(e[i],s,...o);if(!1===t)n[i]=s;else if(t===gr)n[i]=gr;else if(void 0!==t)return t}}},leave(s){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];for(let i=0;i<e.length;i+=1)if(null==n[i]){const a=t(e[i],r(s),!0);if("function"==typeof a){const t=a.call(e[i],s,...o);if(t===gr)n[i]=gr;else if(void 0!==t&&!1!==t)return t}}else n[i]===s&&(n[i]=null)}}}(a.map(_t({},"visitor")),{nodeTypeGetter:i});a.forEach(un(["pre"],[]));const u=sn(e,c,s);return a.forEach(un(["post"],[])),u};function mn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const dn=(e,t)=>{let{Type:r,plugins:n=[]}=t;const s=new r(e);return hn(s,n,{toolboxCreator:pn,visitorOptions:{nodeTypeGetter:tn}})},_n=e=>function(t){return dn(t,fn(fn({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),{},{Type:e}))};function yn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}Nt.Sb.refract=_n(Nt.Sb),Nt.ON.refract=_n(Nt.ON),Nt.RP.refract=_n(Nt.RP),Nt.hh.refract=_n(Nt.hh),Nt.zr.refract=_n(Nt.zr),Nt.VL.refract=_n(Nt.VL),Nt.EA.refract=_n(Nt.EA),Nt.tK.refract=_n(Nt.tK),Ut.refract=_n(Ut),Wt.refract=_n(Wt),Kt.refract=_n(Kt),Zt.refract=_n(Zt);const gn=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},nn),bn=e=>Gr(e)?"ParseResultElement":Ir(e)?tn(e):br(e),vn=e=>Ir(e)||vr(e),wn=_r({props:{sourceMap:!1,annotations:[]},init(){this.annotations=[];const e=(e,t)=>{if(!this.sourceMap)return;const r=new Zt,n=(e=>{if(null===e)return null;const t=new Nt.ON([e.startPosition.row,e.startPosition.column,e.startIndex]),r=new Nt.ON([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),r.classes.push("position"),[t,r]})(e);if(null!==n){const[e,t]=n;r.push(e),r.push(t)}r.astNode=e,t.meta.set("sourceMap",r)},t=(e,t)=>{var r;return`${e}Node`in t?t[`${e}Node`]:"childForFieldName"in t?null===(r=t.childForFieldName)||void 0===r?void 0:r.call(t,e):null};this.enter=function(t){if(("function"==typeof t.isNamed&&!t.isNamed()||!1===t.isNamed)&&t.isMissing()){const r=t.type||t.text,n=new Ut(`(Missing ${r})`);n.classes.push("warning"),e(t,n),this.annotations.push(n)}return null},this.document=function(t){const r=new Kt;return r._content=t.children,e(t,r),r},this.ParseResultElement={leave(e){const t=e.findElements(Jr);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}},this.object=function(t){const r=new Nt.Sb;return r._content=t.children,e(t,r),r},this.array=function(t){const r=new Nt.ON;return r._content=t.children,e(t,r),r},this.pair=function(r){const n=new Nt.c6;return n.content.key=t("key",r),n.content.value=t("value",r),e(r,n),r.children.length>3&&r.children.filter((e=>"ERROR"===e.type)).forEach((e=>{this.ERROR(e,r,[],[r])})),n},this.string=function(t){const r=new Nt.RP(t.text.slice(1,-1));return e(t,r),r},this.number=function(t){const r=new Nt.VL(Number(t.text));return e(t,r),r},this.null=function(t){const r=new Nt.zr;return e(t,r),r},this.true=function(t){const r=new Nt.hh(!0);return e(t,r),r},this.false=function(t){const r=new Nt.hh(!1);return e(t,r),r},this.ERROR=function(t,r,n,s){const i=!t.hasError(),o=t.text,a=new Ut(i?`(Unexpected ${o})`:`(Error ${o})`);if(a.classes.push("error"),e(t,a),0===s.length){const e=new Kt;return e.push(a),e}return this.annotations.push(a),null}}}),En=function(e){let{sourceMap:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=wn();return wr(e.rootNode,r,{keyMap:gn,nodeTypeGetter:bn,nodePredicate:vn,state:{sourceMap:t}})},On=_r({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init(){let{row:e=null,column:t=null,char:r=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.row=e,this.column=t,this.char=r}}),jn=_r({statics:{type:"position"},props:{type:"position",start:null,end:null},init(){let{start:e=null,end:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.start=e,this.end=t}}),xn=_r({props:{type:null,position:null,children:[]},init(){let{children:e=[],position:t=null,isMissing:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stamp:n={}}=arguments.length>1?arguments[1]:void 0;this.type=n.type,this.isMissing=r,this.children=e,this.position=t},methods:{clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}}}),Sn=_r(xn,{statics:{type:"literal"},props:{value:null},init(){let{value:e=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.value=e}}),Pn=_r(xn),An=_r(Pn,{statics:{type:"document"},methods:{get child(){return et(this.children)}}}),kn=_r(xn,{statics:{type:"parseResult"},methods:{get rootNode(){return et(this.children)}}}),Nn=(e,t)=>(null==t?void 0:t.type)===e,Mn=(Nn.bind(void 0,"literal"),Nn.bind(void 0,"position"),Nn.bind(void 0,"point"),Nn.bind(void 0,"parseResult"),Nn.bind(void 0,"document"),Nn.bind(void 0,"string")),Rn=Nn.bind(void 0,"false"),In=Nn.bind(void 0,"true"),Cn=Nn.bind(void 0,"null"),Tn=Nn.bind(void 0,"number"),Fn=Nn.bind(void 0,"array"),$n=Nn.bind(void 0,"object"),Dn=Nn.bind(void 0,"stringContent"),qn=Nn.bind(void 0,"escapeSequence"),Ln=Nn.bind(void 0,"property"),Vn=Nn.bind(void 0,"key"),Bn=_r(Pn,{statics:{type:"object"},methods:{get properties(){return this.children.filter(Ln)}}}),zn=_r(Pn,{statics:{type:"string"},methods:{get value(){return 1===this.children.length?this.children[0].value:this.children.filter((e=>Dn(e)||qn(e))).reduce(((e,t)=>e+t.value),"")}}}),Un=_r(zn,{statics:{type:"key"}}),Gn=_r(Pn,{statics:{type:"property"},methods:{get key(){return this.children.find(Vn)},get value(){return this.children.find((e=>Rn(e)||In(e)||Cn(e)||Tn(e)||Mn(e)||Fn(e)||$n(e)))}}}),Wn=_r(Pn,{statics:{type:"array"},methods:{get items(){return this.children.filter((e=>Rn(e)||In(e)||Cn(e)||Tn(e)||Mn(e)||Fn(e)||$n))}}}),Jn=_r(Pn,{statics:{type:"value"},props:{value:null},init(){let{value:e=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.value=e}}),Kn=_r(Jn,{statics:{type:"stringContent"}}),Hn=_r(Jn,{statics:{type:"number"}}),Zn=_r(Jn,{statics:{type:"null"}}),Xn=_r(Jn,{statics:{type:"true"}}),Yn=_r(Jn,{statics:{type:"false"}}),Qn=_r(xn,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init(){let{value:e=null,isUnexpected:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.value=e,this.isUnexpected=t}}),es={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},ts=_r({init(){const e=e=>{if(null===e)return null;const t=On({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=On({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return jn({start:t,end:r})};this.enter=function(t){if("function"==typeof t.isNamed&&!t.isNamed()||!1===t.isNamed){const r=e(t),n=t.type||t.text,s=t.isMissing();return Sn({value:n,position:r,isMissing:s})}},this.document={enter(t){const r=e(t);return An({children:t.children,position:r,isMissing:t.isMissing()})},leave:e=>kn({children:[e]})},this.object=function(t){const r=e(t);return Bn({children:t.children,position:r,isMissing:t.isMissing()})},this.pair=function(t){const r=e(t),n=t.children.slice(1),s=((e,t)=>{var r;return`${e}Node`in t?t[`${e}Node`]:"childForFieldName"in t?null===(r=t.childForFieldName)||void 0===r?void 0:r.call(t,e):null})("key",t),i=Un({children:(null==s?void 0:s.children)||[],position:e(s),isMissing:(null==s?void 0:s.isMissing())||!1});return Gn({children:[i,...n],position:r,isMissing:t.isMissing()})},this.array=function(t){const r=e(t);return Wn({children:t.children,position:r,isMissing:t.isMissing()})},this.string=function(t){const r=e(t),n=Kn({value:t.text.slice(1,-1)});return zn({children:[n],position:r,isMissing:t.isMissing()})},this.number=function(t){const r=e(t),n=t.text;return Hn({value:n,position:r,isMissing:t.isMissing()})},this.null=function(t){const r=e(t),n=t.text;return Zn({value:n,position:r,isMissing:t.isMissing()})},this.true=function(t){const r=e(t),n=t.text;return Xn({value:n,position:r,isMissing:t.isMissing()})},this.false=function(t){const r=e(t),n=t.text;return Yn({value:n,position:r,isMissing:t.isMissing()})},this.ERROR=function(t,r,n,s){const i=e(t),o=Qn({children:t.children,position:i,isUnexpected:!t.hasError(),isMissing:t.isMissing(),value:t.text});return 0===s.length?kn({children:[o]}):o}}});function rs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const ns=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rs(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({[kn.type]:["children"],[An.type]:["children"],[Bn.type]:["children"],[Gn.type]:["children"],[Wn.type]:["children"],[Qn.type]:["children"]},nn),ss=e=>Gr(e)?"ParseResultElement":Ir(e)?tn(e):br(e),is=e=>Ir(e)||vr(e),os=_r({props:{sourceMap:!1,annotations:[]},init(){this.annotation=[];const e=(e,t)=>{if(!this.sourceMap)return;const r=new Zt;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)};this.document=function(e){const t=new Kt;return t._content=e.children,t},this.ParseResultElement={leave(e){const t=e.findElements(Jr);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}},this.object=function(t){const r=new Nt.Sb;return r._content=t.children,e(t,r),r},this.property=function(t){const r=new Nt.c6;return r.content.key=t.key,r.content.value=t.value,e(t,r),t.children.length>3&&t.children.filter((e=>"error"===e.type)).forEach((e=>{this.error(e,t,[],[t])})),r},this.key=function(t){const r=new Nt.RP(t.value);return e(t,r),r},this.array=function(t){const r=new Nt.ON;return r._content=t.children,e(t,r),r},this.string=function(t){const r=new Nt.RP(t.value);return e(t,r),r},this.number=function(t){const r=new Nt.VL(Number(t.value));return e(t,r),r},this.null=function(t){const r=new Nt.zr;return e(t,r),r},this.true=function(t){const r=new Nt.hh(!0);return e(t,r),r},this.false=function(t){const r=new Nt.hh(!1);return e(t,r),r},this.literal=function(t){if(t.isMissing){const r=`(Missing ${t.value})`,n=new Ut(r);n.classes.push("warning"),e(t,n),this.annotations.push(n)}return null},this.error=function(t,r,n,s){const i=t.isUnexpected?`(Unexpected ${t.value})`:`(Error ${t.value})`,o=new Ut(i);if(o.classes.push("error"),e(t,o),0===s.length){const e=new Kt;return e.push(o),e}return this.annotations.push(o),null}}}),as=function(e){let{sourceMap:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=ts(),n=os(),s=wr(e.rootNode,r,{keyMap:es,state:{sourceMap:t}});return wr(s.rootNode,n,{keyMap:ns,nodeTypeGetter:ss,nodePredicate:is,state:{sourceMap:t}})},cs=(Qt(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);class us extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="callback"}}const ls=us;class ps extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const hs=ps;class ms extends Nt.Sb{constructor(e,t,r){super(e,t,r),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 fs=ms;class ds extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const _s=ds;class ys extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const gs=ys;class bs extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const vs=bs;class ws extends Nt.Sb{constructor(e,t,r){super(e,t,r),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 Es=ws;class Os extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Nt.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Nt.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Os.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const js=Os;class xs extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get 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 Ss=xs;class Ps extends Nt.Sb{constructor(e,t,r){super(e,t,r),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 As=Ps;class ks extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Cr(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Cr(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const Ns=ks;class Ms extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const Rs=Ms;class Is extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Cs=Is;class Ts extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const Fs=Ts;class $s extends Nt.RP{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Ds=$s;class qs extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Ls=qs;class Vs extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Nt.hh(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const Bs=Vs;class zs extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new Nt.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Nt.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(zs.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Us=zs;class Gs extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const Ws=Gs;class Js extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="paths"}}const Ks=Js;class Hs extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Zs=Hs;class Xs extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new Nt.hh(!1)}set required(e){this.set("required",e)}}const Ys=Xs;class Qs extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const ei=Qs;class ti extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const ri=ti;class ni extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("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 si=ni;class ii extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const oi=ii;class ai extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const ci=ai;class ui extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const li=ui;const pi=Te((function(e,t){return Ce(Ot(""),Ge(Sr(e)),ct(""))(t)})),hi=(e,t)=>{const r=Fe(e,t);return ht((e=>{if(Bt(e)&&Qe("$ref",e)&&yt(tr,"$ref",e)){const t=pt(["$ref"],e),n=pi("#/",t);return pt(n.split("/"),r)}return Bt(e)?hi(e,r):e}),e)},mi=_r({props:{element:null},methods:{copyMetaAndAttributes(e,t){Kr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),fi=_r(mi,{methods:{enter(e){return this.element=e.clone(),gr}}});const di=_e(Pt());function _i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const yi=e=>{if(Ir(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},gi=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_i(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"]},nn);function bi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bi(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const wi=_r(mi,{props:{specObj:null,passingOptionsNames:["specObj"]},init(e){let{specObj:t=this.specObj}=e;this.specObj=t},methods:{retrievePassingOptions(){return dt(this.passingOptionsNames,this)},retrieveFixedFields(e){return Ce(pt(["visitors",...e,"fixedFields"]),R)(this.specObj)},retrieveVisitor(e){return ft(Dt,["visitors",...e],this.specObj)?pt(["visitors",...e],this.specObj):pt(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(vi(vi({},r),t))},toRefractedElement(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return At(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(sn(t,n,vi({keyMap:gi,nodeTypeGetter:yi},r)),n.element)}}}),Ei=_r(wi,{props:{specPath:di,ignoredFields:[]},init(){let{specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Cr(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new Nt.c6(n.clone(),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(n.toValue())||this.element.content.push(s.clone())})),this.copyMetaAndAttributes(e,this.element),gr}}}),Oi=_r(Ei,fi,{props:{specPath:_e(["document","objects","JSONSchema"])},init(){this.element=new si}}),ji=fi,xi=fi,Si=fi,Pi=fi,Ai=fi,ki=fi,Ni=fi,Mi=fi,Ri=fi,Ii=fi,Ci=_r({props:{parent:null},init(e){let{parent:t=this.parent}=e;this.parent=t,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Ti=e=>Dr(e)&&e.hasKey("$ref"),Fi=_r(wi,Ci,fi,{methods:{ObjectElement(e){const t=Ti(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),gr},ArrayElement(e){return this.element=new Nt.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Ti(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gr}}}),$i=fi,Di=fi,qi=fi,Li=fi,Vi=fi,Bi=_r(fi,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),gr}}});const zi=ke(w(1,Pe(Rt,Je(Ct,Dt))));const Ui=ke(at);const Gi=de([tr,zi,Ui]),Wi=_r(wi,{props:{fieldPatternPredicate:o,specPath:di,ignoredFields:[]},init(){let{specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(t.toValue())&&this.fieldPatternPredicate(t.toValue())){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Nt.c6(t.clone(),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(t.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(e,this.element),gr}}}),Ji=_r(Wi,{props:{fieldPatternPredicate:Gi}}),Ki=_r(Ji,Ci,fi,{props:{specPath:e=>Ti(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Nt.Sb,this.element.classes.push("json-schema-properties")}}),Hi=_r(Ji,Ci,fi,{props:{specPath:e=>Ti(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Nt.Sb,this.element.classes.push("json-schema-patternProperties")}}),Zi=_r(Ji,Ci,fi,{props:{specPath:e=>Ti(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Nt.Sb,this.element.classes.push("json-schema-dependencies")}}),Xi=_r(fi,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),gr}}}),Yi=_r(fi,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),gr},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),gr}}}),Qi=_r(wi,Ci,fi,{init(){this.element=new Nt.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ti(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gr}}}),eo=_r(wi,Ci,fi,{init(){this.element=new Nt.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ti(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gr}}}),to=_r(wi,Ci,fi,{init(){this.element=new Nt.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ti(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gr}}}),ro=_r(Ji,Ci,fi,{props:{specPath:e=>Ti(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Nt.Sb,this.element.classes.push("json-schema-definitions")}}),no=fi,so=fi,io=fi,oo=fi,ao=fi,co=_r(wi,Ci,fi,{init(){this.element=new Nt.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),gr}}}),uo=fi,lo=_r(Ei,fi,{props:{specPath:_e(["document","objects","JSONReference"])},init(){this.element=new oi},methods:{ObjectElement(e){const t=Ei.compose.methods.ObjectElement.call(this,e);return Cr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),po=_r(fi,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),gr}}});const ho=ke(Xe);const mo=Pe(an,Ui);function fo(e){return function(e){if(Array.isArray(e))return _o(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 _o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _o(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 _o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var yo=Ce(Et(Ae((function(e,t){return e.length>t.length}))),et,re("length")),go=Te((function(e,t,r){var n=r.apply(void 0,fo(e));return ho(n)?vt(n):t}));const bo=nt(mo,(function(e){var t=yo(e);return w(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return fe(go(r),void 0,e)}))}),Pt),vo=_r(wi,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((e=>{let{predicate:t,specPath:r}=e;return nt(t,_e(r),Pt)})),r=bo(t)(e);return this.element=this.toRefractedElement(r,e),gr}}}),wo=_r(vo,{props:{alternator:[{predicate:Ti,specPath:["document","objects","JSONReference"]},{predicate:a,specPath:["document","objects","JSONSchema"]}]}}),Eo={visitors:{value:fi,JSONSchemaOrJSONReferenceVisitor:wo,document:{objects:{JSONSchema:{$visitor:Oi,fixedFields:{id:ji,$schema:xi,multipleOf:Si,maximum:Pi,exclusiveMaximum:Ai,minimum:ki,exclusiveMinimum:Ni,maxLength:Mi,minLength:Ri,pattern:Ii,additionalItems:wo,items:Fi,maxItems:$i,minItems:Di,uniqueItems:qi,maxProperties:Li,minProperties:Vi,required:Bi,properties:Ki,additionalProperties:wo,patternProperties:Hi,dependencies:Zi,enum:Xi,type:Yi,allOf:Qi,anyOf:eo,oneOf:to,not:wo,definitions:ro,title:no,description:so,default:io,format:oo,base:ao,links:co,media:{$ref:"#/visitors/document/objects/Media"},readOnly:uo}},JSONReference:{$visitor:lo,fixedFields:{$ref:po}},Media:{$visitor:_r(Ei,fi,{props:{specPath:_e(["document","objects","Media"])},init(){this.element=new ci}}),fixedFields:{binaryEncoding:fi,type:fi}},LinkDescription:{$visitor:_r(Ei,fi,{props:{specPath:_e(["document","objects","LinkDescription"])},init(){this.element=new li}}),fixedFields:{href:fi,rel:fi,title:fi,targetSchema:wo,mediaType:fi,method:fi,encType:fi,schema:wo}}}}}},Oo=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof si||t(e)&&r("JSONSchemaDraft4",e)&&n("object",e)})),jo=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof oi||t(e)&&r("JSONReference",e)&&n("object",e)})),xo=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof ci||t(e)&&r("media",e)&&n("object",e)})),So=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof li||t(e)&&r("linkDescription",e)&&n("object",e)})),Po={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",si),t.register("jSONReference",oi),t.register("media",ci),t.register("linkDescription",li),t}};function Ao(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ko(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ao(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const No=()=>{const e=Qt(Po);return{predicates:ko(ko({},t),{},{isStringElement:Cr}),namespace:e}};function Mo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const Ro=function(e){let{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Eo}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=(0,Nt.Qc)(e),i=hi(n),o=un(t,[],i);return sn(s,o,{state:{specObj:i}}),hn(o.element,r,{toolboxCreator:No,visitorOptions:{keyMap:gi,nodeTypeGetter:yi}})},Io=e=>function(t){return Ro(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mo(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))};si.refract=Io(["visitors","document","objects","JSONSchema","$visitor"]),oi.refract=Io(["visitors","document","objects","JSONReference","$visitor"]),ci.refract=Io(["visitors","document","objects","Media","$visitor"]),li.refract=Io(["visitors","document","objects","LinkDescription","$visitor"]);const Co=class extends si{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class To extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Fo=To;class $o extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Do=$o;class qo extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const Lo=qo;class Vo extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Bo=Vo;class zo extends Nt.Sb{constructor(e,t,r){super(e,t,r),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 Uo=zo;class Go extends Nt.Sb{constructor(e,t,r){super(e,t,r),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 Wo=Go,Jo=_r({props:{element:null},methods:{copyMetaAndAttributes(e,t){Kr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}});function Ko(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const Ho=e=>{if(Ir(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Zo=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ko(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ko(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"]},nn);function Xo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xo(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Qo=_r(Jo,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init(e){let{specObj:t=this.specObj,openApiGenericElement:r=this.openApiGenericElement,openApiSemanticElement:n=this.openApiSemanticElement}=e;this.specObj=t,this.openApiGenericElement=r,this.openApiSemanticElement=n},methods:{retrievePassingOptions(){return dt(this.passingOptionsNames,this)},retrieveFixedFields(e){return Ce(pt(["visitors",...e,"fixedFields"]),R)(this.specObj)},retrieveVisitor(e){return ft(Dt,["visitors",...e],this.specObj)?pt(["visitors",...e],this.specObj):pt(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(Yo(Yo({},r),t))},toRefractedElement(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return At(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(sn(t,n,Yo({keyMap:Zo,nodeTypeGetter:Ho},r)),n.element)}}}),ea=e=>Dr(e)&&e.hasKey("openapi")&&e.hasKey("info"),ta=e=>Dr(e)&&e.hasKey("name")&&e.hasKey("in"),ra=e=>Dr(e)&&e.hasKey("$ref"),na=e=>Dr(e)&&e.hasKey("content"),sa=e=>Dr(e)&&e.hasKey("description"),ia=Dr,oa=Dr,aa=e=>Cr(e.key)&&jt("x-",e.key.toValue()),ca=_r(Qo,{props:{specPath:di,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:aa},init(){let{specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Cr(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new Nt.c6(n.clone(),r);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(n.toValue())||this.element.content.push(s.clone())})),this.copyMetaAndAttributes(e,this.element),gr}}}),ua=_r(Jo,{methods:{enter(e){return this.element=e.clone(),gr}}}),la=_r(ca,ua,{props:{specPath:_e(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ls},methods:{ObjectElement(e){return this.unrefractedElement=e,ca.compose.methods.ObjectElement.call(this,e)}}}),pa=_r(Qo,ua,{methods:{StringElement(e){const t=new Ds(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,gr}}}),ha=_r(Qo,{methods:{MemberElement(e){return this.element=e.clone(),this.element.classes.push("specification-extension"),gr}}}),ma=_r(ca,ua,{props:{specPath:_e(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ss}}),fa=ua,da=ua,_a=ua,ya=_r(ua,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("api-version"),this.element.classes.push("version"),gr}}}),ga=_r(ca,ua,{props:{specPath:_e(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new fs}}),ba=ua,va=ua,wa=ua,Ea=_r(ca,ua,{props:{specPath:_e(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new As}}),Oa=ua,ja=ua,xa=_r(ca,ua,{props:{specPath:_e(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ns},methods:{ObjectElement(e){const t=ca.compose.methods.ObjectElement.call(this,e);return(Cr(this.element.operationId)||Cr(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),Sa=_r(ua,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),gr}}}),Pa=_r(ua,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),gr}}}),Aa=_r(Qo,{props:{fieldPatternPredicate:o,specPath:di,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:aa},init(){let{specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(t.toValue())&&this.fieldPatternPredicate(t.toValue())){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Nt.c6(t.clone(),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(t.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(e,this.element),gr}}}),ka=_r(Aa,{props:{fieldPatternPredicate:Gi}});class Na extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Na.primaryClass)}}dr(Na,"primaryClass","link-parameters");const Ma=Na,Ra=_r(ka,ua,{props:{specPath:_e(["value"])},init(){this.element=new Ma}}),Ia=ua,Ca=ua,Ta=_r(ca,ua,{props:{specPath:_e(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new Lo}}),Fa=_r(ua,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("server-url"),gr}}}),$a=ua;class Da extends Nt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Da.primaryClass)}}dr(Da,"primaryClass","servers");const qa=Da,La=_r(Qo,ua,{init(){this.element=new qa},methods:{ArrayElement(e){return e.forEach((e=>{const t=ia(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gr}}}),Va=_r(ca,ua,{props:{specPath:_e(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new Bo}}),Ba=ua,za=ua,Ua=ua;class Ga extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ga.primaryClass)}}dr(Ga,"primaryClass","server-variables");const Wa=Ga,Ja=_r(ka,ua,{props:{specPath:_e(["document","objects","ServerVariable"])},init(){this.element=new Wa}}),Ka=_r(ca,ua,{props:{specPath:_e(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new Rs}}),Ha=_r(Qo,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((e=>{let{predicate:t,specPath:r}=e;return nt(t,_e(r),Pt)})),r=bo(t)(e);return this.element=this.toRefractedElement(r,e),gr}}}),Za=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof ls||t(e)&&r("callback",e)&&n("object",e)})),Xa=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof hs||t(e)&&r("components",e)&&n("object",e)})),Ya=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof fs||t(e)&&r("contact",e)&&n("object",e)})),Qa=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof vs||t(e)&&r("example",e)&&n("object",e)})),ec=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Es||t(e)&&r("externalDocumentation",e)&&n("object",e)})),tc=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof js||t(e)&&r("header",e)&&n("object",e)})),rc=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ss||t(e)&&r("info",e)&&n("object",e)})),nc=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof As||t(e)&&r("license",e)&&n("object",e)})),sc=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ns||t(e)&&r("link",e)&&n("object",e)})),ic=e=>{if(!sc(e))return!1;if(!Cr(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},oc=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ds||t(e)&&r("openapi",e)&&n("string",e)})),ac=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n,hasClass:s}=e;return e=>e instanceof Ls||t(e)&&r("openApi3_0",e)&&n("object",e)&&s("api",e)})),cc=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Bs||t(e)&&r("operation",e)&&n("object",e)})),uc=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Us||t(e)&&r("parameter",e)&&n("object",e)})),lc=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ws||t(e)&&r("pathItem",e)&&n("object",e)})),pc=e=>{if(!lc(e))return!1;if(!Cr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},hc=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ks||t(e)&&r("paths",e)&&n("object",e)})),mc=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Zs||t(e)&&r("reference",e)&&n("object",e)})),fc=e=>{if(!mc(e))return!1;if(!Cr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},dc=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ys||t(e)&&r("requestBody",e)&&n("object",e)})),_c=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof ei||t(e)&&r("response",e)&&n("object",e)})),yc=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof ri||t(e)&&r("responses",e)&&n("object",e)})),gc=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Co||t(e)&&r("schema",e)&&n("object",e)})),bc=e=>$r(e)&&e.classes.includes("boolean-json-schema"),vc=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Fo||t(e)&&r("securityRequirement",e)&&n("object",e)})),wc=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Lo||t(e)&&r("server",e)&&n("object",e)})),Ec=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Bo||t(e)&&r("serverVariable",e)&&n("object",e)})),Oc=Rr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Rs||t(e)&&r("mediaType",e)&&n("object",e)})),jc=_r(Ha,ua,{props:{alternator:[{predicate:ra,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Ha.compose.methods.enter.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),xc=ua,Sc=_r(ka,ua,{props:{specPath:e=>ra(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new Nt.Sb,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=ka.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class Pc extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Pc.primaryClass),this.classes.push("examples")}}dr(Pc,"primaryClass","media-type-examples");const Ac=Pc,kc=_r(Sc,{init(){this.element=new Ac}});class Nc extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Nc.primaryClass)}}dr(Nc,"primaryClass","media-type-encoding");const Mc=Nc,Rc=_r(ka,ua,{props:{specPath:_e(["document","objects","Encoding"])},init(){this.element=new Mc}}),Ic=_r(ka,ua,{props:{specPath:_e(["value"])},init(){this.element=new Fo}});class Cc extends Nt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Cc.primaryClass)}}dr(Cc,"primaryClass","security");const Tc=Cc,Fc=_r(Qo,ua,{init(){this.element=new Tc},methods:{ArrayElement(e){return e.forEach((e=>{if(Dr(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(e.clone())})),this.copyMetaAndAttributes(e,this.element),gr}}}),$c=_r(ca,ua,{props:{specPath:_e(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new hs}}),Dc=_r(ca,ua,{props:{specPath:_e(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new Uo}}),qc=ua,Lc=ua,Vc=_r(ca,ua,{props:{specPath:_e(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new Zs},methods:{ObjectElement(e){const t=ca.compose.methods.ObjectElement.call(this,e);return Cr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Bc=_r(ua,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),gr}}}),zc=_r(ca,ua,{props:{specPath:_e(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new Us},methods:{ObjectElement(e){const t=ca.compose.methods.ObjectElement.call(this,e);return Dr(this.element.contentProp)&&this.element.contentProp.filter(Oc).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),Uc=ua,Gc=ua,Wc=ua,Jc=ua,Kc=ua,Hc=ua,Zc=ua,Xc=ua,Yc=ua,Qc=_r(Ha,ua,{props:{alternator:[{predicate:ra,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Ha.compose.methods.enter.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),eu=_r(ca,ua,{props:{specPath:_e(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new js}}),tu=ua,ru=ua,nu=ua,su=ua,iu=ua,ou=ua,au=ua,cu=_r(Ha,ua,{props:{alternator:[{predicate:ra,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Ha.compose.methods.enter.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),uu=ua;class lu extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(lu.primaryClass),this.classes.push("examples")}}dr(lu,"primaryClass","header-examples");const pu=lu,hu=_r(Sc,{init(){this.element=new pu}}),mu=_r(ka,ua,{props:{specPath:_e(["document","objects","MediaType"])},init(){this.element=new Nt.Sb,this.element.classes.push("content")}});class fu extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(fu.primaryClass),this.classes.push("content")}}dr(fu,"primaryClass","header-content");const du=fu,_u=_r(mu,{init(){this.element=new du}}),yu=_r(ca,ua,{props:{specPath:_e(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new Co}}),{items:gu}=Eo.visitors.document.objects.JSONSchema.fixedFields,bu=_r(gu,{methods:{ObjectElement(e){const t=gu.compose.methods.ObjectElement.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=e.clone(),gr}}}),{properties:vu}=Eo.visitors.document.objects.JSONSchema.fixedFields,wu=_r(vu,{methods:{ObjectElement(e){const t=vu.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:Eu}=Eo.visitors.document.objects.JSONSchema.fixedFields,Ou=_r(Eu,{methods:{ArrayElement(e){return this.element=e.clone(),gr}}}),ju=ua,xu=ua,Su=ua,Pu=ua,{JSONSchemaOrJSONReferenceVisitor:Au}=Eo.visitors,ku=_r(Au,{methods:{ObjectElement(e){const t=Au.compose.methods.enter.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Nu=Object.fromEntries(Object.entries(Eo.visitors.document.objects.JSONSchema.fixedFields).map((e=>{let[t,r]=e;return r===Eo.visitors.JSONSchemaOrJSONReferenceVisitor?[t,ku]:[t,r]}))),Mu=_r(ca,ua,{props:{specPath:_e(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new _s}}),Ru=ua;class Iu extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Iu.primaryClass)}}dr(Iu,"primaryClass","discriminator-mapping");const Cu=Iu,Tu=_r(ka,ua,{props:{specPath:_e(["value"])},init(){this.element=new Cu}}),Fu=_r(ca,ua,{props:{specPath:_e(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new Wo}}),$u=ua,Du=ua,qu=ua,Lu=ua,Vu=ua,Bu=ua;class zu extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(zu.primaryClass),this.classes.push("examples")}}dr(zu,"primaryClass","parameter-examples");const Uu=zu,Gu=_r(Sc,{init(){this.element=new Uu}});class Wu extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Wu.primaryClass),this.classes.push("content")}}dr(Wu,"primaryClass","parameter-content");const Ju=Wu,Ku=_r(mu,{init(){this.element=new Ju}});class Hu extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Hu.primaryClass)}}dr(Hu,"primaryClass","components-schemas");const Zu=Hu,Xu=_r(ka,ua,{props:{specPath:e=>ra(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new Zu},methods:{ObjectElement(e){const t=ka.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}});class Yu extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Yu.primaryClass)}}dr(Yu,"primaryClass","components-responses");const Qu=Yu,el=_r(ka,ua,{props:{specPath:e=>ra(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new Qu},methods:{ObjectElement(e){const t=ka.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(_c).forEach(((e,t)=>{e.setMetaProperty("http-status-code",t.toValue())})),t}}});class tl extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(tl.primaryClass),this.classes.push("parameters")}}dr(tl,"primaryClass","components-parameters");const rl=tl,nl=_r(ka,ua,{props:{specPath:e=>ra(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new rl},methods:{ObjectElement(e){const t=ka.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}});class sl extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(sl.primaryClass),this.classes.push("examples")}}dr(sl,"primaryClass","components-examples");const il=sl,ol=_r(ka,ua,{props:{specPath:e=>ra(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new il},methods:{ObjectElement(e){const t=ka.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class al extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(al.primaryClass)}}dr(al,"primaryClass","components-request-bodies");const cl=al,ul=_r(ka,ua,{props:{specPath:e=>ra(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new cl},methods:{ObjectElement(e){const t=ka.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}});class ll extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ll.primaryClass)}}dr(ll,"primaryClass","components-headers");const pl=ll,hl=_r(ka,ua,{props:{specPath:e=>ra(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new pl},methods:{ObjectElement(e){const t=ka.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(tc).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}});class ml extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ml.primaryClass)}}dr(ml,"primaryClass","components-security-schemes");const fl=ml,dl=_r(ka,ua,{props:{specPath:e=>ra(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new fl},methods:{ObjectElement(e){const t=ka.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}});class _l extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(_l.primaryClass)}}dr(_l,"primaryClass","components-links");const yl=_l,gl=_r(ka,ua,{props:{specPath:e=>ra(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new yl},methods:{ObjectElement(e){const t=ka.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});class bl extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(bl.primaryClass)}}dr(bl,"primaryClass","components-callbacks");const vl=bl,wl=_r(ka,ua,{props:{specPath:e=>ra(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new vl},methods:{ObjectElement(e){const t=ka.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),El=_r(ca,ua,{props:{specPath:_e(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new vs},methods:{ObjectElement(e){const t=ca.compose.methods.ObjectElement.call(this,e);return Cr(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),Ol=ua,jl=ua,xl=ua,Sl=_r(ua,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),gr}}}),Pl=_r(ca,ua,{props:{specPath:_e(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new Es}}),Al=ua,kl=ua,Nl=_r(ca,ua,{props:{specPath:_e(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new gs},methods:{ObjectElement(e){const t=ca.compose.methods.ObjectElement.call(this,e);return Dr(this.element.headers)&&this.element.headers.filter(tc).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),Ml=ua;class Rl extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Rl.primaryClass)}}dr(Rl,"primaryClass","encoding-headers");const Il=Rl,Cl=_r(ka,ua,{props:{specPath:e=>ra(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Il},methods:{ObjectElement(e){const t=ka.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!tc(e))return;const r=t.toValue();e.setMetaProperty("headerName",r)})),t}}}),Tl=ua,Fl=ua,$l=ua,Dl=_r(Aa,ua,{props:{fieldPatternPredicate:xt(/^\/(?<path>.*)$/),specPath:_e(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ks},methods:{ObjectElement(e){const t=Aa.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach(((e,t)=>{e.setMetaProperty("path",t.clone())})),t}}}),ql=_r(ca,ua,{props:{specPath:_e(["document","objects","RequestBody"])},init(){this.element=new Ys},methods:{ObjectElement(e){const t=ca.compose.methods.ObjectElement.call(this,e);return Dr(this.element.contentProp)&&this.element.contentProp.filter(Oc).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),Ll=ua;class Vl extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Vl.primaryClass),this.classes.push("content")}}dr(Vl,"primaryClass","request-body-content");const Bl=Vl,zl=_r(mu,{init(){this.element=new Bl}}),Ul=ua,Gl=_r(Aa,ua,{props:{fieldPatternPredicate:xt(/{(?<expression>.*)}/),specPath:_e(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new ls},methods:{ObjectElement(e){const t=ka.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",t.toValue())})),t}}}),Wl=_r(ca,ua,{props:{specPath:_e(["document","objects","Response"])},init(){this.element=new ei},methods:{ObjectElement(e){const t=ca.compose.methods.ObjectElement.call(this,e);return Dr(this.element.contentProp)&&this.element.contentProp.filter(Oc).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),Dr(this.element.headers)&&this.element.headers.filter(tc).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),Jl=ua;class Kl extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Kl.primaryClass)}}dr(Kl,"primaryClass","response-headers");const Hl=Kl,Zl=_r(ka,ua,{props:{specPath:e=>ra(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Hl},methods:{ObjectElement(e){const t=ka.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!tc(e))return;const r=t.toValue();e.setMetaProperty("header-name",r)})),t}}});class Xl extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Xl.primaryClass),this.classes.push("content")}}dr(Xl,"primaryClass","response-content");const Yl=Xl,Ql=_r(mu,{init(){this.element=new Yl}});class ep extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ep.primaryClass)}}dr(ep,"primaryClass","response-links");const tp=ep,rp=_r(ka,ua,{props:{specPath:e=>ra(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new tp},methods:{ObjectElement(e){const t=ka.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),np=_r(ca,Aa,{props:{specPathFixedFields:di,specPathPatternedFields:di},methods:{ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...qe(e.keys(),t)],ca.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Aa.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return gr}}}),sp=_r(np,ua,{props:{specPathFixedFields:_e(["document","objects","Responses"]),specPathPatternedFields:e=>ra(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:xt(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${bt(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new ri},methods:{ObjectElement(e){const t=np.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(_c).forEach(((e,t)=>{const r=t.clone();this.fieldPatternPredicate(r.toValue())&&e.setMetaProperty("http-status-code",r)})),t}}}),ip=_r(Ha,ua,{props:{alternator:[{predicate:ra,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=Ha.compose.methods.enter.call(this,e);return mc(this.element)?this.element.setMetaProperty("referenced-element","response"):_c(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),op=_r(ca,ua,{props:{specPath:_e(["document","objects","Operation"])},init(){this.element=new Bs}});class ap extends Nt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(ap.primaryClass)}}dr(ap,"primaryClass","operation-tags");const cp=ap,up=_r(ua,{init(){this.element=new cp},methods:{ArrayElement(e){return this.element=this.element.concat(e.clone()),gr}}}),lp=ua,pp=ua,hp=ua;class mp extends Nt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(mp.primaryClass),this.classes.push("parameters")}}dr(mp,"primaryClass","operation-parameters");const fp=mp,dp=_r(Qo,ua,{init(){this.element=new Nt.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ra(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);mc(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gr}}}),_p=_r(dp,{init(){this.element=new fp}}),yp=_r(Ha,{props:{alternator:[{predicate:ra,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=Ha.compose.methods.enter.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}});class gp extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(gp.primaryClass)}}dr(gp,"primaryClass","operation-callbacks");const bp=gp,vp=_r(ka,ua,{props:{specPath:e=>ra(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new bp},methods:{ObjectElement(e){const t=ka.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),wp=ua;class Ep extends Nt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Ep.primaryClass),this.classes.push("security")}}dr(Ep,"primaryClass","operation-security");const Op=Ep,jp=_r(Qo,ua,{init(){this.element=new Op},methods:{ArrayElement(e){return e.forEach((e=>{const t=Dr(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gr}}});class xp extends Nt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(xp.primaryClass),this.classes.push("servers")}}dr(xp,"primaryClass","operation-servers");const Sp=xp,Pp=_r(La,{init(){this.element=new Sp}}),Ap=_r(ca,ua,{props:{specPath:_e(["document","objects","PathItem"])},init(){this.element=new Ws},methods:{ObjectElement(e){const t=ca.compose.methods.ObjectElement.call(this,e);return this.element.filter(cc).forEach(((e,t)=>{const r=t.clone();r.content=r.toValue().toUpperCase(),e.setMetaProperty("http-method",r)})),Cr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),kp=_r(ua,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),gr}}}),Np=ua,Mp=ua;class Rp extends Nt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Rp.primaryClass),this.classes.push("servers")}}dr(Rp,"primaryClass","path-item-servers");const Ip=Rp,Cp=_r(La,{init(){this.element=new Ip}});class Tp extends Nt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Tp.primaryClass),this.classes.push("parameters")}}dr(Tp,"primaryClass","path-item-parameters");const Fp=Tp,$p=_r(dp,{init(){this.element=new Fp}}),Dp=_r(ca,ua,{props:{specPath:_e(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new Do}}),qp=ua,Lp=ua,Vp=ua,Bp=ua,zp=ua,Up=ua,Gp=ua,Wp=_r(ca,ua,{props:{specPath:_e(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new Fs}}),Jp=_r(ca,ua,{props:{specPath:_e(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new Cs}}),Kp=ua,Hp=ua,Zp=ua;class Xp extends Nt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Xp.primaryClass)}}dr(Xp,"primaryClass","oauth-flow-scopes");const Yp=Xp,Qp=_r(ka,ua,{props:{specPath:_e(["value"])},init(){this.element=new Yp}});class eh extends Nt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(eh.primaryClass)}}dr(eh,"primaryClass","tags");const th=eh,rh=_r(Qo,ua,{init(){this.element=new th},methods:{ArrayElement(e){return e.forEach((e=>{const t=oa(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gr}}});function nh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nh(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ih={$visitor:Vc,fixedFields:{$ref:Bc}},oh={$visitor:yu,fixedFields:sh(sh({},Nu),{},{items:bu,properties:wu,type:Ou,nullable:ju,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:xu,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:Su,deprecated:Pu})},ah={visitors:{value:ua,document:{objects:{OpenApi:{$visitor:la,fixedFields:{openapi:pa,info:{$ref:"#/visitors/document/objects/Info"},servers:La,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Fc,tags:rh,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:ma,fixedFields:{title:fa,description:da,termsOfService:_a,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:ya}},Contact:{$visitor:ga,fixedFields:{name:ba,url:va,email:wa}},License:{$visitor:Ea,fixedFields:{name:Oa,url:ja}},Server:{$visitor:Ta,fixedFields:{url:Fa,description:$a,variables:Ja}},ServerVariable:{$visitor:Va,fixedFields:{enum:Ba,default:za,description:Ua}},Components:{$visitor:$c,fixedFields:{schemas:Xu,responses:el,parameters:nl,examples:ol,requestBodies:ul,headers:hl,securitySchemes:dl,links:gl,callbacks:wl}},Paths:{$visitor:Dl},PathItem:{$visitor:Ap,fixedFields:{$ref:kp,summary:Np,description:Mp,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Cp,parameters:$p}},Operation:{$visitor:op,fixedFields:{tags:up,summary:lp,description:pp,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:hp,parameters:_p,requestBody:yp,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:vp,deprecated:wp,security:jp,servers:Pp}},ExternalDocumentation:{$visitor:Pl,fixedFields:{description:Al,url:kl}},Parameter:{$visitor:zc,fixedFields:{name:Uc,in:Gc,description:Wc,required:Jc,deprecated:Kc,allowEmptyValue:Hc,style:Zc,explode:Xc,allowReserved:Yc,schema:Qc,example:Bu,examples:Gu,content:Ku}},RequestBody:{$visitor:ql,fixedFields:{description:Ll,content:zl,required:Ul}},MediaType:{$visitor:Ka,fixedFields:{schema:jc,example:xc,examples:kc,encoding:Rc}},Encoding:{$visitor:Nl,fixedFields:{contentType:Ml,headers:Cl,style:Tl,explode:Fl,allowReserved:$l}},Responses:{$visitor:sp,fixedFields:{default:ip}},Response:{$visitor:Wl,fixedFields:{description:Jl,headers:Zl,content:Ql,links:rp}},Callback:{$visitor:Gl},Example:{$visitor:El,fixedFields:{summary:Ol,description:jl,value:xl,externalValue:Sl}},Link:{$visitor:xa,fixedFields:{operationRef:Sa,operationId:Pa,parameters:Ra,requestBody:Ia,description:Ca,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:eu,fixedFields:{description:tu,required:ru,deprecated:nu,allowEmptyValue:su,style:iu,explode:ou,allowReserved:au,schema:cu,example:uu,examples:hu,content:_u}},Tag:{$visitor:Dc,fixedFields:{name:qc,description:Lc,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},JSONReference:ih,Reference:ih,JSONSchema:oh,Schema:oh,LinkDescription:Eo.visitors.document.objects.LinkDescription,Media:Eo.visitors.document.objects.Media,Discriminator:{$visitor:Mu,fixedFields:{propertyName:Ru,mapping:Tu}},XML:{$visitor:Fu,fixedFields:{name:$u,namespace:Du,prefix:qu,attribute:Lu,wrapped:Vu}},SecurityScheme:{$visitor:Dp,fixedFields:{type:qp,description:Lp,name:Vp,in:Bp,scheme:zp,bearerFormat:Up,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Gp}},OAuthFlows:{$visitor:Wp,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:Jp,fixedFields:{authorizationUrl:Kp,tokenUrl:Hp,refreshUrl:Zp,scopes:Qp}},SecurityRequirement:{$visitor:Ic}},extension:{$visitor:ha}}}},ch={namespace:e=>{const{base:t}=e;return t.register("callback",ls),t.register("components",hs),t.register("contact",fs),t.register("discriminator",_s),t.register("encoding",gs),t.register("example",vs),t.register("externalDocumentation",Es),t.register("header",js),t.register("info",Ss),t.register("license",As),t.register("link",Ns),t.register("mediaType",Rs),t.register("oAuthFlow",Cs),t.register("oAuthFlows",Fs),t.register("openapi",Ds),t.register("openApi3_0",Ls),t.register("operation",Bs),t.register("parameter",Us),t.register("pathItem",Ws),t.register("paths",Ks),t.register("reference",Zs),t.register("requestBody",Ys),t.register("response",ei),t.register("responses",ri),t.register("schema",Co),t.register("securityRequirement",Fo),t.register("securityScheme",Do),t.register("server",Lo),t.register("serverVariable",Bo),t.register("tag",Uo),t.register("xml",Wo),t}};function uh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uh(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ph=()=>{const e=Qt(ch);return{predicates:lh(lh(lh({},s),i),{},{isStringElement:Cr}),namespace:e}};function hh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const mh=function(e){let{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,Nt.Qc)(e),s=hi(ah),i=un(t,[],s);return sn(n,i,{state:{specObj:s}}),hn(i.element,r,{toolboxCreator:ph,visitorOptions:{keyMap:Zo,nodeTypeGetter:Ho}})},fh=e=>function(t){return mh(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hh(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))};ls.refract=fh(["visitors","document","objects","Callback","$visitor"]),hs.refract=fh(["visitors","document","objects","Components","$visitor"]),fs.refract=fh(["visitors","document","objects","Contact","$visitor"]),vs.refract=fh(["visitors","document","objects","Example","$visitor"]),_s.refract=fh(["visitors","document","objects","Discriminator","$visitor"]),gs.refract=fh(["visitors","document","objects","Encoding","$visitor"]),Es.refract=fh(["visitors","document","objects","ExternalDocumentation","$visitor"]),js.refract=fh(["visitors","document","objects","Header","$visitor"]),Ss.refract=fh(["visitors","document","objects","Info","$visitor"]),As.refract=fh(["visitors","document","objects","License","$visitor"]),Ns.refract=fh(["visitors","document","objects","Link","$visitor"]),Rs.refract=fh(["visitors","document","objects","MediaType","$visitor"]),Cs.refract=fh(["visitors","document","objects","OAuthFlow","$visitor"]),Fs.refract=fh(["visitors","document","objects","OAuthFlows","$visitor"]),Ds.refract=fh(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Ls.refract=fh(["visitors","document","objects","OpenApi","$visitor"]),Bs.refract=fh(["visitors","document","objects","Operation","$visitor"]),Us.refract=fh(["visitors","document","objects","Parameter","$visitor"]),Ws.refract=fh(["visitors","document","objects","PathItem","$visitor"]),Ks.refract=fh(["visitors","document","objects","Paths","$visitor"]),Zs.refract=fh(["visitors","document","objects","Reference","$visitor"]),Ys.refract=fh(["visitors","document","objects","RequestBody","$visitor"]),ei.refract=fh(["visitors","document","objects","Response","$visitor"]),ri.refract=fh(["visitors","document","objects","Responses","$visitor"]),Co.refract=fh(["visitors","document","objects","Schema","$visitor"]),Fo.refract=fh(["visitors","document","objects","SecurityRequirement","$visitor"]),Do.refract=fh(["visitors","document","objects","SecurityScheme","$visitor"]),Lo.refract=fh(["visitors","document","objects","Server","$visitor"]),Bo.refract=fh(["visitors","document","objects","ServerVariable","$visitor"]),Uo.refract=fh(["visitors","document","objects","Tag","$visitor"]),Wo.refract=fh(["visitors","document","objects","XML","$visitor"]);const dh=class extends Array{constructor(){super(...arguments),dr(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new Error("Not implemented!")}findBy(){throw new Error("Not implemented")}latest(){throw new Error("Not implemented!")}};class _h extends dh{filterByFormat(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"generic";const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"3.0.3",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"generic";const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"generic";return ut(this.filterByFormat(e))}}const yh=new _h("application/vnd.oai.openapi;version=3.0.0","application/vnd.oai.openapi+json;version=3.0.0","application/vnd.oai.openapi+yaml;version=3.0.0","application/vnd.oai.openapi;version=3.0.1","application/vnd.oai.openapi+json;version=3.0.1","application/vnd.oai.openapi+yaml;version=3.0.1","application/vnd.oai.openapi;version=3.0.2","application/vnd.oai.openapi+json;version=3.0.2","application/vnd.oai.openapi+yaml;version=3.0.2","application/vnd.oai.openapi;version=3.0.3","application/vnd.oai.openapi+json;version=3.0.3","application/vnd.oai.openapi+yaml;version=3.0.3"),gh=new _h(...yh.filterByFormat("generic"),...yh.filterByFormat("json")),bh=/"openapi"\s*:\s*"(?<version_json>3\.0\.([0123])(?:-rc[012])?)"/,vh=async e=>bh.test(e)&&await(async e=>{if(!cs.test(e))return!1;try{return"ERROR"!==(await cr(e)).rootNode.type}catch{return!1}})(e),wh=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=_t({},"refractorOpts",t),n=mt(["refractorOpts"],t),s=await async function(e){let{sourceMap:t=!1,syntacticAnalysis:r="direct"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await cr(e);let s;return s="indirect"===r?as(n,{sourceMap:t}):En(n,{sourceMap:t}),s}(e,n),{result:i}=s;if(kt(i)){const e=Ls.refract(i,r);e.classes.push("result"),s.replaceResult(e)}return s},Eh=Qt(ch)})(),n})()));
|