@swagger-api/apidom-parser-adapter-openapi-json-3-0 0.76.1 → 0.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/cjs/adapter.cjs +4 -7
- package/cjs/media-types.cjs +1 -2
- package/dist/apidom-parser-adapter-openapi-json-3-0.browser.js +22966 -24928
- package/dist/apidom-parser-adapter-openapi-json-3-0.browser.min.js +1 -1
- package/es/{adapter.js → adapter.mjs} +1 -1
- package/package.json +8 -8
- /package/es/{media-types.js → media-types.mjs} +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 e={42:(e,t,r)=>{var n=r(5846);e.exports=n},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},6791:(e,t,r)=>{r(4339),r(4242),r(4016),r(8939),r(5454);var n=r(7545);e.exports=n.AggregateError},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")},6762:(e,t,r)=>{e.exports=r(3028)},3028:(e,t,r)=>{r(2752);var n=r(42);e.exports=n},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),x=0,j=y||c,S=t?j(f,O):r||h?j(f,0):void 0;O>x;x++)if((m||x in w)&&(b=E(g=w[x],x,v),e))if(t)S[x]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return x;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}},7987:(e,t,r)=>{var n=r(4500),s=r(3011),i=r(5141),o=r(2760);e.exports=function(e,t,r){for(var a=s(t),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];n(e,p)||r&&n(r,p)||c(e,p,u(t,p))}}},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"]},4503:(e,t,r)=>{var n=r(4120),s=Error,i=n("".replace),o=String(s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},8266:(e,t,r)=>{var n=r(8711),s=r(4503),i=r(274),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):n(e,"stack",s(r,a)))}},274:(e,t,r)=>{var n=r(6192),s=r(774);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},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,x=e.proto,j=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))&&j&&h(j,d),y=S[d],s&&(g=e.dontCallGetSet?(v=a(j,d))&&v.value:j[d]),_=s&&g?g:t[d],s&&typeof y==typeof _||(b=e.bind&&s?l(_,n):e.wrap&&s?m(_):x&&o(_)?i(_):_,(e.sham||_&&_.sham||y&&y.sham)&&p(b,"sham",!0),p(S,d,b),x&&(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]}},8703:(e,t,r)=>{var n=r(4696),s=r(5037),i=r(5646),o=r(7771),a=r(8182)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[n(e)]}},1669:(e,t,r)=>{var n=r(8922),s=r(6235),i=r(1138),o=r(9288),a=r(8703),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(s(r))return i(n(r,e));throw c(o(e)+" is not iterable")}},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},2643:(e,t,r)=>{var n=r(6447),s=r(5744),i=r(4469);e.exports=function(e,t,r){var o,a;return i&&n(o=t.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},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},273:(e,t,r)=>{var n=r(5744),s=r(8711);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},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}}}},6109:(e,t,r)=>{var n=r(8182),s=r(7771),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},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))}},3442:(e,t,r)=>{var n=r(8043),s=r(8922),i=r(1138),o=r(9288),a=r(6109),c=r(4104),u=r(8902),l=r(1669),p=r(8703),h=r(6639),m=TypeError,f=function(e,t){this.stopped=e,this.result=t},d=f.prototype;e.exports=function(e,t,r){var _,y,g,b,v,w,E,O=r&&r.that,x=!(!r||!r.AS_ENTRIES),j=!(!r||!r.IS_RECORD),S=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),A=n(t,O),k=function(e){return _&&h(_,"normal",e),new f(!0,e)},N=function(e){return x?(i(e),P?A(e[0],e[1],k):A(e[0],e[1])):P?A(e,k):A(e)};if(j)_=e.iterator;else if(S)_=e;else{if(!(y=p(e)))throw m(o(e)+" is not iterable");if(a(y)){for(g=0,b=c(e);b>g;g++)if((v=N(e[g]))&&u(d,v))return v;return new f(!1)}_=l(e,y)}for(w=j?e.next:_.next;!(E=s(w,_)).done;){try{v=N(E.value)}catch(e){h(_,"throw",e)}if("object"==typeof v&&v&&u(d,v))return v}return new f(!1)}},6639:(e,t,r)=>{var n=r(8922),s=r(1138),i=r(5037);e.exports=function(e,t,r){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return s(o),r}},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",x="entries",j=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 x:return function(){return new r(this,e)}}return function(){return new r(this)}},R=t+" Iterator",M=!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,j)),p(P,R,!0,!0),i&&(d[R]=j)),y&&f==O&&C&&C.name!==O&&(!i&&g?h(I,"name",O):(M=!0,T=function(){return s(C,this)})),f)if(A={values:N(O),keys:_?T:N(E),entries:N(x)},S)for(k in A)(v||M||!(k in I))&&m(I,k,A[k]);else n({target:t,proto:!0,forced:v||M},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)}},6016:(e,t,r)=>{var n=r(4845);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},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")}},3011:(e,t,r)=>{var n=r(150),s=r(4120),i=r(2092),o=r(4750),a=r(1138),c=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},7545:e=>{e.exports={}},7656:(e,t,r)=>{var n=r(2760).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},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.1",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/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]}},426:(e,t,r)=>{"use strict";var n=r(150),s=r(4500),i=r(8711),o=r(8902),a=r(4469),c=r(7987),u=r(7656),l=r(2643),p=r(6016),h=r(273),m=r(8266),f=r(69),d=r(5546);e.exports=function(e,t,r,_){var y="stackTraceLimit",g=_?2:1,b=e.split("."),v=b[b.length-1],w=n.apply(null,b);if(w){var E=w.prototype;if(!d&&s(E,"cause")&&delete E.cause,!r)return w;var O=n("Error"),x=t((function(e,t){var r=p(_?t:e,void 0),n=_?new w(e):new w;return void 0!==r&&i(n,"message",r),m(n,x,n.stack,2),this&&o(E,this)&&l(n,this,x),arguments.length>g&&h(n,arguments[g]),n}));if(x.prototype=E,"Error"!==v?a?a(x,O):c(x,O,{name:!0}):f&&y in w&&(u(x,w,y),u(x,w,"prepareStackTrace")),c(x,w),!d)try{E.name!==v&&i(E,"name",v),E.constructor=x}catch(e){}return x}}},4016:(e,t,r)=>{var n=r(3085),s=r(150),i=r(6298),o=r(6192),a=r(426),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},3820:(e,t,r)=>{"use strict";var n=r(3085),s=r(8902),i=r(9341),o=r(4469),a=r(7987),c=r(2853),u=r(8711),l=r(774),p=r(273),h=r(8266),m=r(3442),f=r(6016),d=r(8182)("toStringTag"),_=Error,y=[].push,g=function(e,t){var r,n=s(b,this);o?r=o(_(),n?i(this):b):(r=n?this:c(b),u(r,d,"Error")),void 0!==t&&u(r,"message",f(t)),h(r,g,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return m(e,y,{that:a}),u(r,"errors",a),r};o?o(g,_):a(g,_,{name:!0});var b=g.prototype=c(_.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},4242:(e,t,r)=>{r(3820)},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:()=>{},4339:(e,t,r)=>{var n=r(3085),s=r(8576),i=r(6298),o=r(426),a="WebAssembly",c=s[a],u=7!==Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,u),n({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},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]$/,x=!m||c((function(){var e=s("Symbol")();return"[null]"!=d([e])||"{}"!=d({a:e})||"{}"!=d(Object(e))})),j=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:x||j},{stringify:function(e,t,r){var n=p(arguments),s=i(x?S:d,null,n);return j&&"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),x=r(2760),j=r(1187),S=r(6007),P=r(9362),A=r(2807),k=r(8717),N=r(9766),R=r(4535),M=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),J=Object[B],G=s.Symbol,W=G&&G[B],K=s.TypeError,H=s.QObject,Z=O.f,X=x.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(J,t);n&&delete J[t],X(e,t,r),n&&e!==J&&X(J,t,n)}:X,oe=function(e,t){var r=te[e]=g(W);return z(r,{type:V,tag:e,description:t}),c||(r.description=t),r},ae=function(e,t,r){e===J&&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===J&&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!==J||!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(R,e)||ee(r,e)})),r},he=function(e){var t=e===J,r=Y(t?re:f(e)),n=[];return q(r,(function(e){!p(te,e)||t&&!p(J,e)||ee(n,te[e])})),n};u||(P(W=(G=function(){if(h(W,this))throw K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?_(arguments[0]):void 0,t=M(e),r=function(e){this===J&&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(J,t,{configurable:!0,set:r}),oe(t,e)})[B],"toString",(function(){return U(this).tag})),P(G,"withoutSetter",(function(e){return oe(M(e),e)})),S.f=ue,x.f=ae,j.f=ce,O.f=le,v.f=w.f=pe,E.f=he,C.f=function(e){return oe(I(e),e)},c&&(A(W,"description",{configurable:!0,get:function(){return U(this).description}}),a||P(J,"propertyIsEnumerable",ue,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),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(),$(G,V),R[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")},2752:(e,t,r)=>{r(4242)},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}},5846:(e,t,r)=>{r(2752);var n=r(6791);r(162),e.exports=n},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,x=v==w;if(x&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(x&&!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 j=E&&f.call(e,"__wrapped__"),S=O&&f.call(t,"__wrapped__");if(j||S){var P=j?e.value():e,A=S?t.value():t;return y||(y=new n),_(P,A,r,d,y)}}return!!x&&(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 x(e){return"function"==typeof e}function j(e){return e&&"object"==typeof e||x(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 x(e)&&r.indexOf(e)===t}))).length?r:t}function k(e,t){function n(r,n){j(t[r])&&(j(e[r])||(e[r]={}),(n||O)(e[r],t[r]))}function s(n){(r=A(e[n],t[n]))&&(e[n]=r)}return t&&j(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;)x(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=x(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 R(e){return x(e)&&x(e[v])}var M={};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)}}M[g]=I(g,O),M[o]=M.props=I(o,O),M[y]=M.init=I(y,A),M[b]=I(b,A),M[a]=M[f]=I(a,P),M[u]=M.statics=I(u,O),M[l]=M[d]=I(l,P),M[h]=M.conf=I(h,O),M[m]=M[_]=I(m,P),M[c]=I(c,O),M[p]=I(p,O),n=M[v]=O((function(){for(var e,w,E=0,x=[],S=arguments,k=this;E<S.length;)j(e=S[E++])&&x.push(R(e)?e:((s={})[g]=(w=e)[g]||t,n=w.props,s[o]=j((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]=j((r=w[a])||n)?P({},n,r):t,s[c]=w[c],n=w.statics,s[u]=j((r=w[u])||n)?O({},n,r):t,n=w[d],s[l]=j((r=w[l])||n)?P({},n,r):t,r=w[p],s[p]=j((n=w.name&&{name:{value:w.name}})||r)?O({},r,n):t,n=w.conf,s[h]=j((r=w[h])||n)?O({},n,r):t,n=w[_],s[m]=j((r=w[m])||n)?P({},n,r):t,s));if(e=N.apply(k||i,x),k&&x.unshift(k),Array.isArray(S=e[v][b]))for(E=0;E<S.length;)e=R(k=S[E++]({stamp:e,composables:x}))?k:e;return e}),M),M.create=function(){return this.apply(t,arguments)},(s={})[u]=M,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,x=[];function j(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(x.length)return x.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 R(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 M=!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 J(e,t,r){return U(e,F,t,r)}function G(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}function W(e){var t=G(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+=""),M=!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 xe(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function je(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(!xe(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=j(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=je(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=j(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,Re=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Me(){ae()}n._abort=Me,Me.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:Re,__table_base:1,abort:Me,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=je(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 Je(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||We(),$e||(se=e)};var Ge=!1;function We(e){function t(){$e||($e=!0,n.calledRun=!0,M||(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]=W(m);for(var i=1;i<r;i++)D[(s>>2)+i]=W(e[i-1]);D[(s>>2)+r]=0;try{Ke(t(r,s),!0)}catch(e){if(e instanceof Je)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||!Ge&&(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()}(),Ge=!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),M=!0),f(e,new Je(e)))}if(n.run=We,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),We();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=R(at,"i32"),ot=R(at+Ye,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=R(at,"i32"),this[1]=R(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;xt(t,e.startPosition),xt(t+=et,e.oldEndPosition),xt(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=R(at,"i32"),r=R(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]),jt(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=R(at,"i32"),t=R(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=R(at,"i32"),t=R(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=R(at,"i32"),a=R(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 xt(r,e),xt(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 xt(r,e),xt(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]),jt(at)}get endPosition(){return Et(this),Ze._ts_tree_cursor_end_position_wasm(this.tree[0]),jt(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=G(e),n=Ze._malloc(r+1);J(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=G(e),r=Ze._malloc(t+1);J(e,r,t+1);const n=Ze._ts_query_new(this[0],r,t,at,at+Ye);if(!n){const t=R(at+Ye,"i32"),n=z(r,R(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=R(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=R(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=R(at,"i32");h[e]=[],m[e]=[];const s=[];let i=t;for(let t=0;t<r;t++){const t=R(i,"i32"),r=R(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=R(at,"i32"),o=R(at+Ye,"i32"),a=R(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=R(l,"i32"),n=R(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=R(at,"i32"),o=R(at+Ye,"i32"),a=R(at+2*Ye,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;t<i;t++){const t=R(l,"i32"),r=R(l+=Ye,"i32"),n=R(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=R(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=R(t,"i32");if(0===r)return null;const n=R(t+=Ye,"i32"),s=R(t+=Ye,"i32"),i=R(t+=Ye,"i32"),o=R(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]=R(at+0*Ye,"i32"),e[1]=R(at+1*Ye,"i32"),e[2]=R(at+2*Ye,"i32")}function xt(e,t){N(e,t.row,"i32"),N(e+Ye,t.column,"i32")}function jt(e){return{row:R(e,"i32"),column:R(e+Ye,"i32")}}function St(e,t){xt(e,t.startPosition),xt(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=jt(e),e+=et,t.endPosition=jt(e),e+=et,t.startIndex=R(e,"i32"),e+=Ye,t.endIndex=R(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:()=>{},1427:(e,t,r)=>{e.exports=r(6762)}},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:()=>Jh,detectionRegExp:()=>Uh,mediaTypes:()=>zh,namespace:()=>Wh,parse:()=>Gh});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>tn,includesClasses:()=>nn,includesSymbols:()=>rn,isAnnotationElement:()=>Zr,isArrayElement:()=>Gr,isBooleanElement:()=>Ur,isCommentElement:()=>Xr,isElement:()=>Lr,isLinkElement:()=>Kr,isMemberElement:()=>Wr,isNullElement:()=>zr,isNumberElement:()=>Br,isObjectElement:()=>Jr,isParseResultElement:()=>Yr,isPrimitiveElement:()=>en,isRefElement:()=>Hr,isSourceMapElement:()=>Qr,isStringElement:()=>Vr});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>To,isJSONSchemaElement:()=>Co,isLinkDescriptionElement:()=>$o,isMediaElement:()=>Fo});var s={};r.r(s),r.d(s,{isOpenApi3_0LikeElement:()=>pa,isOpenApiExtension:()=>ga,isParameterLikeElement:()=>ha,isReferenceLikeElement:()=>ma,isRequestBodyLikeElement:()=>fa,isResponseLikeElement:()=>da,isServerLikeElement:()=>_a,isTagLikeElement:()=>ya});var i={};r.r(i),r.d(i,{isBooleanJsonSchemaElement:()=>Nc,isCallbackElement:()=>ac,isComponentsElement:()=>cc,isContactElement:()=>uc,isExampleElement:()=>lc,isExternalDocumentationElement:()=>pc,isHeaderElement:()=>hc,isInfoElement:()=>mc,isLicenseElement:()=>fc,isLinkElement:()=>dc,isLinkElementExternal:()=>_c,isMediaTypeElement:()=>Cc,isOpenApi3_0Element:()=>gc,isOpenapiElement:()=>yc,isOperationElement:()=>bc,isParameterElement:()=>vc,isPathItemElement:()=>wc,isPathItemElementExternal:()=>Ec,isPathsElement:()=>Oc,isReferenceElement:()=>xc,isReferenceElementExternal:()=>jc,isRequestBodyElement:()=>Sc,isResponseElement:()=>Pc,isResponsesElement:()=>Ac,isSchemaElement:()=>kc,isSecurityRequirementElement:()=>Rc,isServerElement:()=>Mc,isServerVariableElement:()=>Ic});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 x(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const j="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 x("callee",e)}}();var A=!{toString:null}.propertyIsEnumerable("toString"),k=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],N=function(){return arguments.propertyIsEnumerable("length")}(),R=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1};const M="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)!x(t,e)||s&&"length"===t||(n[n.length]=t);if(A)for(r=k.length-1;r>=0;)x(t=k[r],e)&&!R(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(j(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||!j(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!j(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=M(e);if(c.length!==M(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(!x(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 J(e){return function(t){return new U(e,t)}}const G=l(h(["fantasy-land/filter","filter"],J,(function(e,t){return z(t)?B((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},M(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 W=l((function(e,t){return G((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,W((function(e){return/^\d+$/.test(e)}),M(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,M(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}),{},M(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 xe=l((function(e,t){return e&&t}));const je=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 je(e.length,e)}));const Pe=l((function(e,t){return Oe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Se(xe)(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 Re(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 Me=se(Re("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Ie=u(Re("tail",Me(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 Me(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 Je=l(h(["dropWhile"],Ue,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return Me(r,1/0,t)})));const Ge=l((function(e,t){return e||t}));const We=l((function(e,t){return Oe(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Se(Ge)(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)||!x(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=l((function(e,t){return!Xe(t)&&e in t}));const tt=te(0);var rt=function(e,t){switch(arguments.length){case 0:return rt;case 1:return function t(r){return 0===arguments.length?t:j(e,r)};default:return j(e,t)}};const nt=rt;const st=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 it=l($);const ot=Me(0,-1);"function"==typeof Object.assign&&Object.assign;const at=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 ct=u((function(e){return null!=e&&F(e,He(e))}));const ut=at(1,"join");const lt=te(-1);const pt=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 ht=l((function(e,t){return pt([e],t)[0]}));const mt=l((function(e,t){return B((function(r,n){return r[n]=e(t[n],n,t),r}),{},M(t))}));const ft=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 dt=se((function(e,t,r){return e(ht(t,r))}));const _t=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 yt=se((function(e,t,r){return Fe(e,re(t,r))}));const gt=se((function(e,t,r){return e(re(t,r))}));function bt(e){return"[object Number]"===Object.prototype.toString.call(e)}const vt=l((function(e,t){if(!bt(e)||!bt(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 wt=u(m);var Et=l((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Ot=Et;const xt=at(1,"split");const jt=l((function(e,t){return F(Be(e.length,t),e)}));const St=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 Pt="\t\n\v\f\r \u2028\u2029\ufeff";String.prototype.trim;const At=_e(void 0);const kt=F(At());const Nt=ke(kt);var Rt=r(7952);const Mt=F(null);const It=ke(Mt);function Ct(e){return Ct="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},Ct(e)}const Tt=function(e){return"object"===Ct(e)};const Ft=w(1,Pe(It,Tt));const $t=w(1,Ce(I,nt("GeneratorFunction")));const Dt=w(1,Ce(I,nt("AsyncFunction")));const qt=ye([Ce(I,nt("Function")),$t,Dt]);var Lt=Ce(I,nt("Object")),Vt=Ce(H,F(H(Object))),Bt=dt(Pe(qt,Vt),["constructor"]);const zt=w(1,(function(e){if(!Ft(e)||!Lt(e))return!1;var t=Object.getPrototypeOf(e);return!!Mt(t)||Bt(t)}));class Ut extends Rt.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 Jt=Ut;class Gt extends Rt.RP{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Wt=Gt;class Kt extends Rt.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(kt(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const Ht=Kt;class Zt extends Rt.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 Rt.ON([e.start.row,e.start.column,e.start.char]),r=new Rt.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const Xt=Zt;class Yt extends Rt.lS{constructor(){super(),this.register("annotation",Jt),this.register("comment",Wt),this.register("parseResult",Ht),this.register("sourceMap",Xt)}}const Qt=new Yt,er=e=>{const t=new Yt;return zt(e)&&t.use(e),t},tr=Qt;const rr=w(1,Ce(I,nt("String"))),nr=r.p+"23aac571c96605dc25219087ad291441.wasm",sr=globalThis.fetch;qt(sr)&&(globalThis.fetch=(...e)=>rr(e[0])&&e[0].endsWith("tree-sitter.wasm")?sr.apply(globalThis,[nr,Ie(e)]):sr.apply(globalThis,e));var ir,or=r(9794),ar=r(1427);const cr=null!==(ir=globalThis.AggregateError)&&void 0!==ir?ir:ar;const ur=class extends cr{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,zt(r)&&et("cause",r)&&!et("cause",this)){const{cause:e}=r;this.cause=e,e instanceof Error&&et("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}};class lr extends Error{static[Symbol.hasInstance](e){return Function.prototype[Symbol.hasInstance].call(lr,e)||Function.prototype[Symbol.hasInstance].call(ur,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,zt(t)&&et("cause",t)&&!et("cause",this)){const{cause:e}=t;this.cause=e,e instanceof Error&&et("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}}const pr=lr,hr=r.p+"7c7ca323880d9fa6e48d1d1b2e78e140.wasm";let mr=null,fr=null;const dr=async e=>{if(null===mr&&null===fr)fr=or.init().then((()=>or.Language.load(hr))).then((e=>{const t=new or;return t.setLanguage(e),t})).finally((()=>{fr=null})),mr=await fr;else if(null===mr&&null!==fr)mr=await fr;else if(null===mr)throw new pr("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return mr.parse(e)};var _r=r(229),yr=r(2185),gr=r(9982);function br(e){return br="function"==typeof yr&&"symbol"==typeof gr?function(e){return typeof e}:function(e){return e&&"function"==typeof yr&&e.constructor===yr&&e!==yr.prototype?"symbol":typeof e},br(e)}var vr=r(8241);function wr(e){var t=function(e,t){if("object"!==br(e)||null===e)return e;var r=e[vr];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==br(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===br(t)?t:String(t)}function Er(e,t,r){return(t=wr(t))in e?_r(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Or=(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},xr={},jr=e=>null==e?void 0:e.type,Sr=e=>"string"==typeof jr(e),Pr=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=xr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Or,nodeTypeGetter:c=jr,nodePredicate:u=Sr,detectCycles:l=!0}={})=>{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 pr(`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};Pr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=xr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Or,nodeTypeGetter:c=jr,nodePredicate:u=Sr,detectCycles:l=!0}={})=>{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 pr(`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 Ar=r(5090),kr=r(2747),Nr=r(5483);function Rr(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},i=Nr(e);for(n=0;n<i.length;n++)r=i[n],kr(t).call(t,r)>=0||(s[r]=e[r]);return s}(e,t);if(Ar){var i=Ar(e);for(n=0;n<i.length;n++)r=i[n],kr(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}var Mr=r(6591);const Ir=Ze(it),Cr=(e,t)=>"function"==typeof(null==t?void 0:t[e]),Tr=e=>null!=e&&Object.prototype.hasOwnProperty.call(e,"_storedElement")&&Object.prototype.hasOwnProperty.call(e,"_content"),Fr=(e,t)=>{var r;return(null==t||null===(r=t.primitive)||void 0===r?void 0:r.call(t))===e},$r=(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},Dr=(e,t)=>(null==t?void 0:t.element)===e,qr=e=>e({hasMethod:Cr,hasBasicElementProps:Tr,primitiveEq:Fr,isElementType:Dr,hasClass:$r}),Lr=qr((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Rt.W_||e(r)&&t(void 0,r))),Vr=qr((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Rt.RP||e(r)&&t("string",r))),Br=qr((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Rt.VL||e(r)&&t("number",r))),zr=qr((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Rt.zr||e(r)&&t("null",r))),Ur=qr((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Rt.hh||e(r)&&t("boolean",r))),Jr=qr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof Rt.Sb||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Gr=qr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof Rt.ON&&!(n instanceof Rt.Sb)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Wr=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rt.c6||e(n)&&t("member",n)&&r(void 0,n))),Kr=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rt.EA||e(n)&&t("link",n)&&r(void 0,n))),Hr=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rt.tK||e(n)&&t("ref",n)&&r(void 0,n))),Zr=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jt||e(n)&&t("annotation",n)&&r("array",n))),Xr=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wt||e(n)&&t("comment",n)&&r("string",n))),Yr=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ht||e(n)&&t("parseResult",n)&&r("array",n))),Qr=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xt||e(n)&&t("sourceMap",n)&&r("array",n))),en=e=>Dr("object",e)||Dr("array",e)||Dr("boolean",e)||Dr("number",e)||Dr("string",e)||Dr("null",e)||Dr("member",e),tn=e=>{var t,r;return Qr(null==e||null===(t=e.meta)||void 0===t||null===(r=t.get)||void 0===r?void 0:r.call(t,"sourceMap"))},rn=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Gr(r)&&g(Ir(r.toValue()),e)},nn=(e,t)=>0===e.length||g(Ir(t.classes.toValue()),e),sn=["keyMap"],on=["keyMap"];function an(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 cn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?an(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):an(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const un=e=>Jr(e)?"ObjectElement":Gr(e)?"ArrayElement":Wr(e)?"MemberElement":Vr(e)?"StringElement":Ur(e)?"BooleanElement":Br(e)?"NumberElement":zr(e)?"NullElement":Kr(e)?"LinkElement":Hr(e)?"RefElement":void 0,ln=Ce(un,rr),pn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},hn=(Mr({props:{result:[],predicate:o,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}={}){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}}}),(e,t,r={})=>{let{keyMap:n=pn}=r,s=Rr(r,sn);return Pr(e,t,cn({keyMap:n,nodeTypeGetter:un,nodePredicate:ln},s))});hn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{let{keyMap:n=pn}=r,s=Rr(r,on);return Pr[Symbol.for("nodejs.util.promisify.custom")](e,t,cn({keyMap:n,nodeTypeGetter:un,nodePredicate:ln},s))};const mn=ke(qt);const fn=w(1,qt(Array.isArray)?Array.isArray:Ce(I,nt("Array")));const dn=Pe(fn,ct);const _n=w(3,(function(e,t,r){var n=ht(e,r),s=ht(ot(e),r);if(!mn(n)&&!dn(e)){var i=ue(n,s);return Ee(i,t)}}));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}const gn=()=>({predicates: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){Er(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}({},e),namespace:tr}),bn=(e,t,r={})=>{if(0===t.length)return e;const n=yt(gn,"toolboxCreator",r),s=yt({},"visitorOptions",r),i=yt(un,"nodeTypeGetter",s),o=n(),a=t.map((e=>e(o))),c=((e,{visitFnGetter:t=Or,nodeTypeGetter:r=jr}={})=>{const n=new Array(e.length);return{enter(s,...i){for(let o=0;o<e.length;o+=1)if(null==n[o]){const a=t(e[o],r(s),!1);if("function"==typeof a){const t=a.call(e[o],s,...i);if(!1===t)n[o]=s;else if(t===xr)n[o]=xr;else if(void 0!==t)return t}}},leave(s,...i){for(let o=0;o<e.length;o+=1)if(null==n[o]){const a=t(e[o],r(s),!0);if("function"==typeof a){const t=a.call(e[o],s,...i);if(t===xr)n[o]=xr;else if(void 0!==t&&!1!==t)return t}}else n[o]===s&&(n[o]=null)}}})(a.map(yt({},"visitor")),{nodeTypeGetter:i});a.forEach(_n(["pre"],[]));const u=hn(e,c,s);return a.forEach(_n(["post"],[])),u};function vn(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 wn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const En=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return bn(n,r,{toolboxCreator:gn,visitorOptions:{nodeTypeGetter:un}})},On=e=>(t,r={})=>En(t,wn(wn({},r),{},{Type:e}));Rt.Sb.refract=On(Rt.Sb),Rt.ON.refract=On(Rt.ON),Rt.RP.refract=On(Rt.RP),Rt.hh.refract=On(Rt.hh),Rt.zr.refract=On(Rt.zr),Rt.VL.refract=On(Rt.VL),Rt.EA.refract=On(Rt.EA),Rt.tK.refract=On(Rt.tK),Jt.refract=On(Jt),Wt.refract=On(Wt),Ht.refract=On(Ht),Xt.refract=On(Xt);const xn=class{constructor(e){Er(this,"type",void 0),Er(this,"startPosition",void 0),Er(this,"endPosition",void 0),Er(this,"startIndex",void 0),Er(this,"endIndex",void 0),Er(this,"text",void 0),Er(this,"isNamed",void 0),Er(this,"isMissing",void 0),Er(this,"fieldName",void 0),Er(this,"hasError",!1),Er(this,"children",[]),this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}setFieldName(e){return"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}pushChildren(...e){this.children.push(...e)}},jn=Mr({props:{sourceMap:!1,annotations:[]},init(){this.annotations=[];const e=(e,t)=>{if(!this.sourceMap)return;const r=new Xt,n=(e=>{const t=new Rt.ON([e.startPosition.row,e.startPosition.column,e.startIndex]),r=new Rt.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)};this.enter=function(t){if(t instanceof xn&&!t.isNamed&&t.isMissing){const r=t.type||t.text,n=new Jt(`(Missing ${r})`);n.classes.push("warning"),e(t,n),this.annotations.push(n)}return null},this.document=function(t){const r=new Ht;return r._content=t.children,e(t,r),r},this.ParseResultElement={leave(e){const t=e.findElements(en);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 Rt.Sb;return r._content=t.children,e(t,r),r},this.array=function(t){const r=new Rt.ON;return r._content=t.children,e(t,r),r},this.pair=function(t){const r=new Rt.c6;return r.content.key=t.keyNode,r.content.value=t.valueNode,e(t,r),t.children.length>3&&t.children.filter((e=>"ERROR"===e.type)).forEach((e=>{this.ERROR(e,t,[],[t])})),r},this.string=function(t){const r=new Rt.RP(JSON.parse(t.text));return e(t,r),r},this.number=function(t){const r=new Rt.VL(Number(t.text));return e(t,r),r},this.null=function(t){const r=new Rt.zr;return e(t,r),r},this.true=function(t){const r=new Rt.hh(!0);return e(t,r),r},this.false=function(t){const r=new Rt.hh(!1);return e(t,r),r},this.ERROR=function(t,r,n,s){const i=!t.hasError,o=t.text,a=new Jt(i?`(Unexpected ${o})`:`(Error ${o})`);if(a.classes.push("error"),e(t,a),0===s.length){const e=new Ht;return e.push(a),e}return this.annotations.push(a),null}}});let Sn;Sn=Symbol.iterator;class Pn{constructor(e){Er(this,"cursor",void 0),this.cursor=e}document(){return new xn(this.cursor)}object(){return new xn(this.cursor).setFieldName(this.cursor)}array(){return new xn(this.cursor).setFieldName(this.cursor)}pair(){return new xn(this.cursor)}string(){return new xn(this.cursor).setFieldName(this.cursor)}number(){return new xn(this.cursor).setFieldName(this.cursor)}null(){return new xn(this.cursor).setFieldName(this.cursor)}true(){return new xn(this.cursor).setFieldName(this.cursor)}false(){return new xn(this.cursor).setFieldName(this.cursor)}ERROR(){return new xn(this.cursor).setHasError(this.cursor)}*[Sn](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new xn(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Pn(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Pn(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const An=Pn;function kn(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 Nn=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kn(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"]},pn),Rn=e=>Yr(e)?"ParseResultElement":Lr(e)?un(e):jr(e),Mn=e=>Lr(e)||Sr(e),In=(e,{sourceMap:t=!1}={})=>{const r=jn(),n=e.walk(),s=[...new An(n)].at(0);return Pr(s,r,{keyMap:Nn,nodeTypeGetter:Rn,nodePredicate:Mn,state:{sourceMap:t}})},Cn=Mr({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init({row:e=null,column:t=null,char:r=null}={}){this.row=e,this.column=t,this.char=r}}),Tn=Mr({statics:{type:"position"},props:{type:"position",start:null,end:null},init({start:e=null,end:t=null}={}){this.start=e,this.end=t}}),Fn=Mr({props:{type:null,position:null,children:[]},init({children:e=[],position:t=null,isMissing:r=!1}={},{stamp:n={}}){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}}}),$n=Mr(Fn,{statics:{type:"literal"},props:{value:null},init({value:e=null}={}){this.value=e}}),Dn=Mr(Fn),qn=Mr(Dn,{statics:{type:"document"},methods:{get child(){return tt(this.children)}}}),Ln=Mr(Fn,{statics:{type:"parseResult"},methods:{get rootNode(){return tt(this.children)}}}),Vn=(e,t)=>(null==t?void 0:t.type)===e,Bn=(Vn.bind(void 0,"literal"),Vn.bind(void 0,"position"),Vn.bind(void 0,"point"),Vn.bind(void 0,"parseResult"),Vn.bind(void 0,"document"),Vn.bind(void 0,"string")),zn=Vn.bind(void 0,"false"),Un=Vn.bind(void 0,"true"),Jn=Vn.bind(void 0,"null"),Gn=Vn.bind(void 0,"number"),Wn=Vn.bind(void 0,"array"),Kn=Vn.bind(void 0,"object"),Hn=Vn.bind(void 0,"stringContent"),Zn=Vn.bind(void 0,"escapeSequence"),Xn=Vn.bind(void 0,"property"),Yn=Vn.bind(void 0,"key"),Qn=Mr(Dn,{statics:{type:"object"},methods:{get properties(){return this.children.filter(Xn)}}}),es=Mr(Dn,{statics:{type:"string"},methods:{get value(){return 1===this.children.length?this.children[0].value:this.children.filter((e=>Hn(e)||Zn(e))).reduce(((e,t)=>e+t.value),"")}}}),ts=Mr(es,{statics:{type:"key"}}),rs=Mr(Dn,{statics:{type:"property"},methods:{get key(){return this.children.find(Yn)},get value(){return this.children.find((e=>zn(e)||Un(e)||Jn(e)||Gn(e)||Bn(e)||Wn(e)||Kn(e)))}}}),ns=Mr(Dn,{statics:{type:"array"},methods:{get items(){return this.children.filter((e=>zn(e)||Un(e)||Jn(e)||Gn(e)||Bn(e)||Wn(e)||Kn))}}}),ss=Mr(Dn,{statics:{type:"value"},props:{value:null},init({value:e=null}={}){this.value=e}}),is=Mr(ss,{statics:{type:"stringContent"}}),os=Mr(ss,{statics:{type:"number"}}),as=Mr(ss,{statics:{type:"null"}}),cs=Mr(ss,{statics:{type:"true"}}),us=Mr(ss,{statics:{type:"false"}}),ls=Mr(Fn,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init({value:e=null,isUnexpected:t=!1}={}){this.value=e,this.isUnexpected=t}}),ps={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},hs=Mr({init(){const e=e=>{const t=Cn({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=Cn({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return Tn({start:t,end:r})};this.enter=function(t){if(t instanceof xn&&!t.isNamed){const r=e(t),n=t.type||t.text,{isMissing:s}=t;return $n({value:n,position:r,isMissing:s})}},this.document={enter(t){const r=e(t);return qn({children:t.children,position:r,isMissing:t.isMissing})},leave:e=>Ln({children:[e]})},this.object=function(t){const r=e(t);return Qn({children:t.children,position:r,isMissing:t.isMissing})},this.pair=function(t){const r=e(t),n=t.children.slice(1),{keyNode:s}=t,i=ts({children:(null==s?void 0:s.children)||[],position:null!=s?e(s):null,isMissing:null!=s&&s.isMissing});return rs({children:[i,...n],position:r,isMissing:t.isMissing})},this.array=function(t){const r=e(t);return ns({children:t.children,position:r,isMissing:t.isMissing})},this.string=function(t){const r=e(t),n=is({value:JSON.parse(t.text)});return es({children:[n],position:r,isMissing:t.isMissing})},this.number=function(t){const r=e(t),n=t.text;return os({value:n,position:r,isMissing:t.isMissing})},this.null=function(t){const r=e(t),n=t.text;return as({value:n,position:r,isMissing:t.isMissing})},this.true=function(t){const r=e(t),n=t.text;return cs({value:n,position:r,isMissing:t.isMissing})},this.false=function(t){const r=e(t),n=t.text;return us({value:n,position:r,isMissing:t.isMissing})},this.ERROR=function(t,r,n,s){const i=e(t),o=ls({children:t.children,position:i,isUnexpected:!t.hasError,isMissing:t.isMissing,value:t.text});return 0===s.length?Ln({children:[o]}):o}}});function ms(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 fs=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ms(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({[Ln.type]:["children"],[qn.type]:["children"],[Qn.type]:["children"],[rs.type]:["children"],[ns.type]:["children"],[ls.type]:["children"]},pn),ds=e=>Yr(e)?"ParseResultElement":Lr(e)?un(e):jr(e),_s=e=>Lr(e)||Sr(e),ys=Mr({props:{sourceMap:!1,annotations:[]},init(){this.annotation=[];const e=(e,t)=>{if(!this.sourceMap)return;const r=new Xt;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)};this.document=function(e){const t=new Ht;return t._content=e.children,t},this.ParseResultElement={leave(e){const t=e.findElements(en);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 Rt.Sb;return r._content=t.children,e(t,r),r},this.property=function(t){const r=new Rt.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 Rt.RP(t.value);return e(t,r),r},this.array=function(t){const r=new Rt.ON;return r._content=t.children,e(t,r),r},this.string=function(t){const r=new Rt.RP(t.value);return e(t,r),r},this.number=function(t){const r=new Rt.VL(Number(t.value));return e(t,r),r},this.null=function(t){const r=new Rt.zr;return e(t,r),r},this.true=function(t){const r=new Rt.hh(!0);return e(t,r),r},this.false=function(t){const r=new Rt.hh(!1);return e(t,r),r},this.literal=function(t){if(t.isMissing){const r=`(Missing ${t.value})`,n=new Jt(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 Jt(i);if(o.classes.push("error"),e(t,o),0===s.length){const e=new Ht;return e.push(o),e}return this.annotations.push(o),null}}}),gs=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),n=[...new An(r)].at(0),s=hs(),i=ys(),o=Pr(n,s,{keyMap:ps,state:{sourceMap:t}});return Pr(o.rootNode,i,{keyMap:fs,nodeTypeGetter:ds,nodePredicate:_s,state:{sourceMap:t}})},bs=(er(),/(?<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 vs extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="callback"}}const ws=vs;class Es extends Rt.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 Os=Es;class xs extends Rt.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 js=xs;class Ss extends Rt.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 Ps=Ss;class As extends Rt.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 ks=As;class Ns extends Rt.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 Rs=Ns;class Ms extends Rt.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 Is=Ms;class Cs extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Rt.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Rt.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(Cs.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Ts=Cs;class Fs extends Rt.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 $s=Fs;class Ds extends Rt.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 qs=Ds;class Ls extends Rt.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 Vr(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Vr(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 Vs=Ls;class Bs extends Rt.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 zs=Bs;class Us extends Rt.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 Js=Us;class Gs extends Rt.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 Ws=Gs;class Ks extends Rt.RP{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Hs=Ks;class Zs extends Rt.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 Xs=Zs;class Ys extends Rt.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 Rt.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 Qs=Ys;class ei extends Rt.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 Rt.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Rt.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(ei.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ti=ei;class ri extends Rt.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 ni=ri;class si extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="paths"}}const ii=si;class oi extends Rt.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 ai=oi;class ci extends Rt.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 Rt.hh(!1)}set required(e){this.set("required",e)}}const ui=ci;class li extends Rt.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 pi=li;class hi extends Rt.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 mi=hi;class fi extends Rt.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 di=fi;class _i extends Rt.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 yi=_i;class gi extends Rt.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 bi=gi;class vi extends Rt.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 wi=vi;const Ei=Te((function(e,t){return Ce(xt(""),Je(Ir(e)),ut(""))(t)})),Oi=(e,t)=>{const r=Fe(e,t);return mt((e=>{if(zt(e)&&Qe("$ref",e)&>(rr,"$ref",e)){const t=ht(["$ref"],e),n=Ei("#/",t);return ht(n.split("/"),r)}return zt(e)?Oi(e,r):e}),e)},xi=Mr({props:{element:null},methods:{copyMetaAndAttributes(e,t){tn(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),ji=Mr(xi,{methods:{enter(e){return this.element=e.clone(),xr}}});const Si=_e(At());function Pi(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 Ai=e=>{if(Lr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ki=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pi(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"]},pn);function Ni(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 Ri(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ni(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Mi=Mr(xi,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return _t(this.passingOptionsNames,this)},retrieveFixedFields(e){return Ce(ht(["visitors",...e,"fixedFields"]),M)(this.specObj)},retrieveVisitor(e){return dt(qt,["visitors",...e],this.specObj)?ht(["visitors",...e],this.specObj):ht(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(Ri(Ri({},r),t))},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return kt(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(hn(t,n,Ri({keyMap:ki,nodeTypeGetter:Ai},r)),n.element)}}}),Ii=Mr(Mi,{props:{specPath:Si,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){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(Vr(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new Rt.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),xr}}}),Ci=Mr(Ii,ji,{props:{specPath:_e(["document","objects","JSONSchema"])},init(){this.element=new di}}),Ti=ji,Fi=ji,$i=ji,Di=ji,qi=ji,Li=ji,Vi=ji,Bi=ji,zi=ji,Ui=ji,Ji=Mr({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Gi=e=>Jr(e)&&e.hasKey("$ref"),Wi=Mr(Mi,Ji,ji,{methods:{ObjectElement(e){const t=Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),xr},ArrayElement(e){return this.element=new Rt.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xr}}}),Ki=ji,Hi=ji,Zi=ji,Xi=ji,Yi=ji,Qi=Mr(ji,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),xr}}});const eo=ke(w(1,Pe(It,We(Tt,qt))));const to=ke(ct);const ro=de([rr,eo,to]),no=Mr(Mi,{props:{fieldPatternPredicate:o,specPath:Si,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){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 Rt.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),xr}}}),so=Mr(no,{props:{fieldPatternPredicate:ro}}),io=Mr(so,Ji,ji,{props:{specPath:e=>Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-properties")}}),oo=Mr(so,Ji,ji,{props:{specPath:e=>Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-patternProperties")}}),ao=Mr(so,Ji,ji,{props:{specPath:e=>Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-dependencies")}}),co=Mr(ji,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),xr}}}),uo=Mr(ji,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),xr},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),xr}}}),lo=Mr(Mi,Ji,ji,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xr}}}),po=Mr(Mi,Ji,ji,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xr}}}),ho=Mr(Mi,Ji,ji,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xr}}}),mo=Mr(so,Ji,ji,{props:{specPath:e=>Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-definitions")}}),fo=ji,_o=ji,yo=ji,go=ji,bo=ji,vo=Mr(Mi,Ji,ji,{init(){this.element=new Rt.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),xr}}}),wo=ji,Eo=Mr(Ii,ji,{props:{specPath:_e(["document","objects","JSONReference"])},init(){this.element=new yi},methods:{ObjectElement(e){const t=Ii.compose.methods.ObjectElement.call(this,e);return Vr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Oo=Mr(ji,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),xr}}});const xo=ke(Xe);const jo=Pe(fn,to);function So(e){return function(e){if(Array.isArray(e))return Po(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 Po(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 Po(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 Po(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 Ao=Ce(Ot(Ae((function(e,t){return e.length>t.length}))),tt,re("length")),ko=Te((function(e,t,r){var n=r.apply(void 0,So(e));return xo(n)?wt(n):t}));const No=st(jo,(function(e){var t=Ao(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(ko(r),void 0,e)}))}),At),Ro=Mr(Mi,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>st(e,_e(t),At))),r=No(t)(e);return this.element=this.toRefractedElement(r,e),xr}}}),Mo=Mr(Ro,{props:{alternator:[{predicate:Gi,specPath:["document","objects","JSONReference"]},{predicate:a,specPath:["document","objects","JSONSchema"]}]}}),Io={visitors:{value:ji,JSONSchemaOrJSONReferenceVisitor:Mo,document:{objects:{JSONSchema:{$visitor:Ci,fixedFields:{id:Ti,$schema:Fi,multipleOf:$i,maximum:Di,exclusiveMaximum:qi,minimum:Li,exclusiveMinimum:Vi,maxLength:Bi,minLength:zi,pattern:Ui,additionalItems:Mo,items:Wi,maxItems:Ki,minItems:Hi,uniqueItems:Zi,maxProperties:Xi,minProperties:Yi,required:Qi,properties:io,additionalProperties:Mo,patternProperties:oo,dependencies:ao,enum:co,type:uo,allOf:lo,anyOf:po,oneOf:ho,not:Mo,definitions:mo,title:fo,description:_o,default:yo,format:go,base:bo,links:vo,media:{$ref:"#/visitors/document/objects/Media"},readOnly:wo}},JSONReference:{$visitor:Eo,fixedFields:{$ref:Oo}},Media:{$visitor:Mr(Ii,ji,{props:{specPath:_e(["document","objects","Media"])},init(){this.element=new bi}}),fixedFields:{binaryEncoding:ji,type:ji}},LinkDescription:{$visitor:Mr(Ii,ji,{props:{specPath:_e(["document","objects","LinkDescription"])},init(){this.element=new wi}}),fixedFields:{href:ji,rel:ji,title:ji,targetSchema:Mo,mediaType:ji,method:ji,encType:ji,schema:Mo}}}}}},Co=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof di||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),To=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yi||e(n)&&t("JSONReference",n)&&r("object",n))),Fo=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bi||e(n)&&t("media",n)&&r("object",n))),$o=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wi||e(n)&&t("linkDescription",n)&&r("object",n))),Do={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",di),t.register("jSONReference",yi),t.register("media",bi),t.register("linkDescription",wi),t}};function qo(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 Lo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Vo=()=>{const e=er(Do);return{predicates:Lo(Lo({},t),{},{isStringElement:Vr}),namespace:e}};function Bo(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 zo=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Io}={})=>{const s=(0,Rt.Qc)(e),i=Oi(n),o=_n(t,[],i);return hn(s,o,{state:{specObj:i}}),bn(o.element,r,{toolboxCreator:Vo,visitorOptions:{keyMap:ki,nodeTypeGetter:Ai}})},Uo=e=>(t,r={})=>zo(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));di.refract=Uo(["visitors","document","objects","JSONSchema","$visitor"]),yi.refract=Uo(["visitors","document","objects","JSONReference","$visitor"]),bi.refract=Uo(["visitors","document","objects","Media","$visitor"]),wi.refract=Uo(["visitors","document","objects","LinkDescription","$visitor"]);const Jo=class extends di{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 Go extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Wo=Go;class Ko extends Rt.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 Ho=Ko;class Zo extends Rt.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 Xo=Zo;class Yo extends Rt.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 Qo=Yo;class ea extends Rt.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 ta=ea;class ra extends Rt.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 na=ra,sa=Mr({props:{element:null},methods:{copyMetaAndAttributes(e,t){tn(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}});function ia(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 oa=e=>{if(Lr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},aa=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ia(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"]},pn);function ca(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 ua(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ca(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const la=Mr(sa,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init({specObj:e=this.specObj,openApiGenericElement:t=this.openApiGenericElement,openApiSemanticElement:r=this.openApiSemanticElement}){this.specObj=e,this.openApiGenericElement=t,this.openApiSemanticElement=r},methods:{retrievePassingOptions(){return _t(this.passingOptionsNames,this)},retrieveFixedFields(e){return Ce(ht(["visitors",...e,"fixedFields"]),M)(this.specObj)},retrieveVisitor(e){return dt(qt,["visitors",...e],this.specObj)?ht(["visitors",...e],this.specObj):ht(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(ua(ua({},r),t))},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return kt(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(hn(t,n,ua({keyMap:aa,nodeTypeGetter:oa},r)),n.element)}}}),pa=e=>Jr(e)&&e.hasKey("openapi")&&e.hasKey("info"),ha=e=>Jr(e)&&e.hasKey("name")&&e.hasKey("in"),ma=e=>Jr(e)&&e.hasKey("$ref"),fa=e=>Jr(e)&&e.hasKey("content"),da=e=>Jr(e)&&e.hasKey("description"),_a=Jr,ya=Jr,ga=e=>Vr(e.key)&&jt("x-",e.key.toValue()),ba=Mr(la,{props:{specPath:Si,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:ga},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){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(Vr(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new Rt.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),xr}}}),va=Mr(sa,{methods:{enter(e){return this.element=e.clone(),xr}}}),wa=Mr(ba,va,{props:{specPath:_e(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Xs},methods:{ObjectElement(e){return this.unrefractedElement=e,ba.compose.methods.ObjectElement.call(this,e)}}}),Ea=Mr(la,va,{methods:{StringElement(e){const t=new Hs(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,xr}}}),Oa=Mr(la,{methods:{MemberElement(e){return this.element=e.clone(),this.element.classes.push("specification-extension"),xr}}}),xa=Mr(ba,va,{props:{specPath:_e(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new $s}}),ja=va,Sa=va,Pa=va,Aa=Mr(va,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("api-version"),this.element.classes.push("version"),xr}}}),ka=Mr(ba,va,{props:{specPath:_e(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new js}}),Na=va,Ra=va,Ma=va,Ia=Mr(ba,va,{props:{specPath:_e(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new qs}}),Ca=va,Ta=va,Fa=Mr(ba,va,{props:{specPath:_e(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new Vs},methods:{ObjectElement(e){const t=ba.compose.methods.ObjectElement.call(this,e);return(Vr(this.element.operationId)||Vr(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),$a=Mr(va,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),xr}}}),Da=Mr(va,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),xr}}}),qa=Mr(la,{props:{fieldPatternPredicate:o,specPath:Si,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:ga},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){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 Rt.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),xr}}}),La=Mr(qa,{props:{fieldPatternPredicate:ro}});class Va extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Va.primaryClass)}}Er(Va,"primaryClass","link-parameters");const Ba=Va,za=Mr(La,va,{props:{specPath:_e(["value"])},init(){this.element=new Ba}}),Ua=va,Ja=va,Ga=Mr(ba,va,{props:{specPath:_e(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new Xo}}),Wa=Mr(va,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("server-url"),xr}}}),Ka=va;class Ha extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Ha.primaryClass)}}Er(Ha,"primaryClass","servers");const Za=Ha,Xa=Mr(la,va,{init(){this.element=new Za},methods:{ArrayElement(e){return e.forEach((e=>{const t=_a(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xr}}}),Ya=Mr(ba,va,{props:{specPath:_e(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new Qo}}),Qa=va,ec=va,tc=va;class rc extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(rc.primaryClass)}}Er(rc,"primaryClass","server-variables");const nc=rc,sc=Mr(La,va,{props:{specPath:_e(["document","objects","ServerVariable"])},init(){this.element=new nc}}),ic=Mr(ba,va,{props:{specPath:_e(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new zs}}),oc=Mr(la,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>st(e,_e(t),At))),r=No(t)(e);return this.element=this.toRefractedElement(r,e),xr}}}),ac=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ws||e(n)&&t("callback",n)&&r("object",n))),cc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Os||e(n)&&t("components",n)&&r("object",n))),uc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof js||e(n)&&t("contact",n)&&r("object",n))),lc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rs||e(n)&&t("example",n)&&r("object",n))),pc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Is||e(n)&&t("externalDocumentation",n)&&r("object",n))),hc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ts||e(n)&&t("header",n)&&r("object",n))),mc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $s||e(n)&&t("info",n)&&r("object",n))),fc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qs||e(n)&&t("license",n)&&r("object",n))),dc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vs||e(n)&&t("link",n)&&r("object",n))),_c=e=>{if(!dc(e))return!1;if(!Vr(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},yc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hs||e(n)&&t("openapi",n)&&r("string",n))),gc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof Xs||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),bc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qs||e(n)&&t("operation",n)&&r("object",n))),vc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ti||e(n)&&t("parameter",n)&&r("object",n))),wc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ni||e(n)&&t("pathItem",n)&&r("object",n))),Ec=e=>{if(!wc(e))return!1;if(!Vr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Oc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ii||e(n)&&t("paths",n)&&r("object",n))),xc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ai||e(n)&&t("reference",n)&&r("object",n))),jc=e=>{if(!xc(e))return!1;if(!Vr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Sc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ui||e(n)&&t("requestBody",n)&&r("object",n))),Pc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pi||e(n)&&t("response",n)&&r("object",n))),Ac=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mi||e(n)&&t("responses",n)&&r("object",n))),kc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jo||e(n)&&t("schema",n)&&r("object",n))),Nc=e=>Ur(e)&&e.classes.includes("boolean-json-schema"),Rc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wo||e(n)&&t("securityRequirement",n)&&r("object",n))),Mc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xo||e(n)&&t("server",n)&&r("object",n))),Ic=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qo||e(n)&&t("serverVariable",n)&&r("object",n))),Cc=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zs||e(n)&&t("mediaType",n)&&r("object",n))),Tc=Mr(oc,va,{props:{alternator:[{predicate:ma,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=oc.compose.methods.enter.call(this,e);return xc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Fc=va,$c=Mr(La,va,{props:{specPath:e=>ma(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new Rt.Sb,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=La.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class Dc extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Dc.primaryClass),this.classes.push("examples")}}Er(Dc,"primaryClass","media-type-examples");const qc=Dc,Lc=Mr($c,{init(){this.element=new qc}});class Vc extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Vc.primaryClass)}}Er(Vc,"primaryClass","media-type-encoding");const Bc=Vc,zc=Mr(La,va,{props:{specPath:_e(["document","objects","Encoding"])},init(){this.element=new Bc}}),Uc=Mr(La,va,{props:{specPath:_e(["value"])},init(){this.element=new Wo}});class Jc extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Jc.primaryClass)}}Er(Jc,"primaryClass","security");const Gc=Jc,Wc=Mr(la,va,{init(){this.element=new Gc},methods:{ArrayElement(e){return e.forEach((e=>{if(Jr(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(e.clone())})),this.copyMetaAndAttributes(e,this.element),xr}}}),Kc=Mr(ba,va,{props:{specPath:_e(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new Os}}),Hc=Mr(ba,va,{props:{specPath:_e(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new ta}}),Zc=va,Xc=va,Yc=Mr(ba,va,{props:{specPath:_e(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new ai},methods:{ObjectElement(e){const t=ba.compose.methods.ObjectElement.call(this,e);return Vr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Qc=Mr(va,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),xr}}}),eu=Mr(ba,va,{props:{specPath:_e(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new ti},methods:{ObjectElement(e){const t=ba.compose.methods.ObjectElement.call(this,e);return Jr(this.element.contentProp)&&this.element.contentProp.filter(Cc).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),tu=va,ru=va,nu=va,su=va,iu=va,ou=va,au=va,cu=va,uu=va,lu=Mr(oc,va,{props:{alternator:[{predicate:ma,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=oc.compose.methods.enter.call(this,e);return xc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),pu=Mr(ba,va,{props:{specPath:_e(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ts}}),hu=va,mu=va,fu=va,du=va,_u=va,yu=va,gu=va,bu=Mr(oc,va,{props:{alternator:[{predicate:ma,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=oc.compose.methods.enter.call(this,e);return xc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),vu=va;class wu extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(wu.primaryClass),this.classes.push("examples")}}Er(wu,"primaryClass","header-examples");const Eu=wu,Ou=Mr($c,{init(){this.element=new Eu}}),xu=Mr(La,va,{props:{specPath:_e(["document","objects","MediaType"])},init(){this.element=new Rt.Sb,this.element.classes.push("content")}});class ju extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ju.primaryClass),this.classes.push("content")}}Er(ju,"primaryClass","header-content");const Su=ju,Pu=Mr(xu,{init(){this.element=new Su}}),Au=Mr(ba,va,{props:{specPath:_e(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new Jo}}),{allOf:ku}=Io.visitors.document.objects.JSONSchema.fixedFields,Nu=Mr(ku,{methods:{ArrayElement(e){const t=ku.compose.methods.ArrayElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:Ru}=Io.visitors.document.objects.JSONSchema.fixedFields,Mu=Mr(Ru,{methods:{ArrayElement(e){const t=Ru.compose.methods.ArrayElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:Iu}=Io.visitors.document.objects.JSONSchema.fixedFields,Cu=Mr(Iu,{methods:{ArrayElement(e){const t=Iu.compose.methods.ArrayElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{definitions:Tu}=Io.visitors.document.objects.JSONSchema.fixedFields,Fu=Mr(Tu,{methods:{ObjectElement(e){const t=Tu.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{dependencies:$u}=Io.visitors.document.objects.JSONSchema.fixedFields,Du=Mr($u,{methods:{ObjectElement(e){const t=$u.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:qu}=Io.visitors.document.objects.JSONSchema.fixedFields,Lu=Mr(qu,{methods:{ObjectElement(e){const t=qu.compose.methods.ObjectElement.call(this,e);return xc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=e.clone(),xr}}}),{properties:Vu}=Io.visitors.document.objects.JSONSchema.fixedFields,Bu=Mr(Vu,{methods:{ObjectElement(e){const t=Vu.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{patternProperties:zu}=Io.visitors.document.objects.JSONSchema.fixedFields,Uu=Mr(zu,{methods:{ObjectElement(e){const t=zu.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:Ju}=Io.visitors.document.objects.JSONSchema.fixedFields,Gu=Mr(Ju,{methods:{ArrayElement(e){return this.element=e.clone(),xr}}}),Wu=va,Ku=va,Hu=va,Zu=va,{JSONSchemaOrJSONReferenceVisitor:Xu}=Io.visitors,Yu=Mr(Xu,{methods:{ObjectElement(e){const t=Xu.compose.methods.enter.call(this,e);return xc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Qu=Object.fromEntries(Object.entries(Io.visitors.document.objects.JSONSchema.fixedFields).map((([e,t])=>t===Io.visitors.JSONSchemaOrJSONReferenceVisitor?[e,Yu]:[e,t]))),el=Mr(ba,va,{props:{specPath:_e(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new Ps}}),tl=va;class rl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(rl.primaryClass)}}Er(rl,"primaryClass","discriminator-mapping");const nl=rl,sl=Mr(La,va,{props:{specPath:_e(["value"])},init(){this.element=new nl}}),il=Mr(ba,va,{props:{specPath:_e(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new na}}),ol=va,al=va,cl=va,ul=va,ll=va,pl=va;class hl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(hl.primaryClass),this.classes.push("examples")}}Er(hl,"primaryClass","parameter-examples");const ml=hl,fl=Mr($c,{init(){this.element=new ml}});class dl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(dl.primaryClass),this.classes.push("content")}}Er(dl,"primaryClass","parameter-content");const _l=dl,yl=Mr(xu,{init(){this.element=new _l}});class gl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(gl.primaryClass)}}Er(gl,"primaryClass","components-schemas");const bl=gl,vl=Mr(La,va,{props:{specPath:e=>ma(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new bl},methods:{ObjectElement(e){const t=La.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}});class wl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(wl.primaryClass)}}Er(wl,"primaryClass","components-responses");const El=wl,Ol=Mr(La,va,{props:{specPath:e=>ma(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new El},methods:{ObjectElement(e){const t=La.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Pc).forEach(((e,t)=>{e.setMetaProperty("http-status-code",t.toValue())})),t}}});class xl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(xl.primaryClass),this.classes.push("parameters")}}Er(xl,"primaryClass","components-parameters");const jl=xl,Sl=Mr(La,va,{props:{specPath:e=>ma(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new jl},methods:{ObjectElement(e){const t=La.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}});class Pl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Pl.primaryClass),this.classes.push("examples")}}Er(Pl,"primaryClass","components-examples");const Al=Pl,kl=Mr(La,va,{props:{specPath:e=>ma(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new Al},methods:{ObjectElement(e){const t=La.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class Nl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Nl.primaryClass)}}Er(Nl,"primaryClass","components-request-bodies");const Rl=Nl,Ml=Mr(La,va,{props:{specPath:e=>ma(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new Rl},methods:{ObjectElement(e){const t=La.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}});class Il extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Il.primaryClass)}}Er(Il,"primaryClass","components-headers");const Cl=Il,Tl=Mr(La,va,{props:{specPath:e=>ma(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Cl},methods:{ObjectElement(e){const t=La.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(hc).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}});class Fl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Fl.primaryClass)}}Er(Fl,"primaryClass","components-security-schemes");const $l=Fl,Dl=Mr(La,va,{props:{specPath:e=>ma(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new $l},methods:{ObjectElement(e){const t=La.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}});class ql extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ql.primaryClass)}}Er(ql,"primaryClass","components-links");const Ll=ql,Vl=Mr(La,va,{props:{specPath:e=>ma(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new Ll},methods:{ObjectElement(e){const t=La.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});class Bl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Bl.primaryClass)}}Er(Bl,"primaryClass","components-callbacks");const zl=Bl,Ul=Mr(La,va,{props:{specPath:e=>ma(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new zl},methods:{ObjectElement(e){const t=La.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Jl=Mr(ba,va,{props:{specPath:_e(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new Rs},methods:{ObjectElement(e){const t=ba.compose.methods.ObjectElement.call(this,e);return Vr(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),Gl=va,Wl=va,Kl=va,Hl=Mr(va,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),xr}}}),Zl=Mr(ba,va,{props:{specPath:_e(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new Is}}),Xl=va,Yl=va,Ql=Mr(ba,va,{props:{specPath:_e(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new ks},methods:{ObjectElement(e){const t=ba.compose.methods.ObjectElement.call(this,e);return Jr(this.element.headers)&&this.element.headers.filter(hc).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),ep=va;class tp extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(tp.primaryClass)}}Er(tp,"primaryClass","encoding-headers");const rp=tp,np=Mr(La,va,{props:{specPath:e=>ma(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new rp},methods:{ObjectElement(e){const t=La.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!hc(e))return;const r=t.toValue();e.setMetaProperty("headerName",r)})),t}}}),sp=va,ip=va,op=va,ap=Mr(qa,va,{props:{fieldPatternPredicate:St(/^\/(?<path>.*)$/),specPath:_e(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new ii},methods:{ObjectElement(e){const t=qa.compose.methods.ObjectElement.call(this,e);return this.element.filter(wc).forEach(((e,t)=>{e.setMetaProperty("path",t.clone())})),t}}}),cp=Mr(ba,va,{props:{specPath:_e(["document","objects","RequestBody"])},init(){this.element=new ui},methods:{ObjectElement(e){const t=ba.compose.methods.ObjectElement.call(this,e);return Jr(this.element.contentProp)&&this.element.contentProp.filter(Cc).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),up=va;class lp extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(lp.primaryClass),this.classes.push("content")}}Er(lp,"primaryClass","request-body-content");const pp=lp,hp=Mr(xu,{init(){this.element=new pp}}),mp=va,fp=Mr(qa,va,{props:{fieldPatternPredicate:St(/{(?<expression>.*)}/),specPath:_e(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new ws},methods:{ObjectElement(e){const t=La.compose.methods.ObjectElement.call(this,e);return this.element.filter(wc).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",t.toValue())})),t}}}),dp=Mr(ba,va,{props:{specPath:_e(["document","objects","Response"])},init(){this.element=new pi},methods:{ObjectElement(e){const t=ba.compose.methods.ObjectElement.call(this,e);return Jr(this.element.contentProp)&&this.element.contentProp.filter(Cc).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),Jr(this.element.headers)&&this.element.headers.filter(hc).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),_p=va;class yp extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(yp.primaryClass)}}Er(yp,"primaryClass","response-headers");const gp=yp,bp=Mr(La,va,{props:{specPath:e=>ma(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new gp},methods:{ObjectElement(e){const t=La.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!hc(e))return;const r=t.toValue();e.setMetaProperty("header-name",r)})),t}}});class vp extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(vp.primaryClass),this.classes.push("content")}}Er(vp,"primaryClass","response-content");const wp=vp,Ep=Mr(xu,{init(){this.element=new wp}});class Op extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Op.primaryClass)}}Er(Op,"primaryClass","response-links");const xp=Op,jp=Mr(La,va,{props:{specPath:e=>ma(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new xp},methods:{ObjectElement(e){const t=La.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),Sp=Mr(ba,qa,{props:{specPathFixedFields:Si,specPathPatternedFields:Si},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)],ba.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,qa.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return xr}}}),Pp=Mr(Sp,va,{props:{specPathFixedFields:_e(["document","objects","Responses"]),specPathPatternedFields:e=>ma(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:St(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${vt(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new mi},methods:{ObjectElement(e){const t=Sp.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Pc).forEach(((e,t)=>{const r=t.clone();this.fieldPatternPredicate(r.toValue())&&e.setMetaProperty("http-status-code",r)})),t}}}),Ap=Mr(oc,va,{props:{alternator:[{predicate:ma,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=oc.compose.methods.enter.call(this,e);return xc(this.element)?this.element.setMetaProperty("referenced-element","response"):Pc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),kp=Mr(ba,va,{props:{specPath:_e(["document","objects","Operation"])},init(){this.element=new Qs}});class Np extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Np.primaryClass)}}Er(Np,"primaryClass","operation-tags");const Rp=Np,Mp=Mr(va,{init(){this.element=new Rp},methods:{ArrayElement(e){return this.element=this.element.concat(e.clone()),xr}}}),Ip=va,Cp=va,Tp=va;class Fp extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Fp.primaryClass),this.classes.push("parameters")}}Er(Fp,"primaryClass","operation-parameters");const $p=Fp,Dp=Mr(la,va,{init(){this.element=new Rt.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ma(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);xc(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xr}}}),qp=Mr(Dp,{init(){this.element=new $p}}),Lp=Mr(oc,{props:{alternator:[{predicate:ma,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=oc.compose.methods.enter.call(this,e);return xc(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}});class Vp extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Vp.primaryClass)}}Er(Vp,"primaryClass","operation-callbacks");const Bp=Vp,zp=Mr(La,va,{props:{specPath:e=>ma(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Bp},methods:{ObjectElement(e){const t=La.compose.methods.ObjectElement.call(this,e);return this.element.filter(xc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Up=va;class Jp extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Jp.primaryClass),this.classes.push("security")}}Er(Jp,"primaryClass","operation-security");const Gp=Jp,Wp=Mr(la,va,{init(){this.element=new Gp},methods:{ArrayElement(e){return e.forEach((e=>{const t=Jr(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xr}}});class Kp extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Kp.primaryClass),this.classes.push("servers")}}Er(Kp,"primaryClass","operation-servers");const Hp=Kp,Zp=Mr(Xa,{init(){this.element=new Hp}}),Xp=Mr(ba,va,{props:{specPath:_e(["document","objects","PathItem"])},init(){this.element=new ni},methods:{ObjectElement(e){const t=ba.compose.methods.ObjectElement.call(this,e);return this.element.filter(bc).forEach(((e,t)=>{const r=t.clone();r.content=r.toValue().toUpperCase(),e.setMetaProperty("http-method",r)})),Vr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Yp=Mr(va,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),xr}}}),Qp=va,eh=va;class th extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(th.primaryClass),this.classes.push("servers")}}Er(th,"primaryClass","path-item-servers");const rh=th,nh=Mr(Xa,{init(){this.element=new rh}});class sh extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(sh.primaryClass),this.classes.push("parameters")}}Er(sh,"primaryClass","path-item-parameters");const ih=sh,oh=Mr(Dp,{init(){this.element=new ih}}),ah=Mr(ba,va,{props:{specPath:_e(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ho}}),ch=va,uh=va,lh=va,ph=va,hh=va,mh=va,fh=va,dh=Mr(ba,va,{props:{specPath:_e(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ws}}),_h=Mr(ba,va,{props:{specPath:_e(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new Js}}),yh=va,gh=va,bh=va;class vh extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(vh.primaryClass)}}Er(vh,"primaryClass","oauth-flow-scopes");const wh=vh,Eh=Mr(La,va,{props:{specPath:_e(["value"])},init(){this.element=new wh}});class Oh extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Oh.primaryClass)}}Er(Oh,"primaryClass","tags");const xh=Oh,jh=Mr(la,va,{init(){this.element=new xh},methods:{ArrayElement(e){return e.forEach((e=>{const t=ya(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),xr}}});function Sh(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 Ph(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sh(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ah={$visitor:Yc,fixedFields:{$ref:Qc}},kh={$visitor:Au,fixedFields:Ph(Ph({},Qu),{},{allOf:Nu,anyOf:Mu,oneOf:Cu,definitions:Fu,items:Lu,dependencies:Du,properties:Bu,patternProperties:Uu,type:Gu,nullable:Wu,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:Ku,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:Hu,deprecated:Zu})},Nh={visitors:{value:va,document:{objects:{OpenApi:{$visitor:wa,fixedFields:{openapi:Ea,info:{$ref:"#/visitors/document/objects/Info"},servers:Xa,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Wc,tags:jh,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:xa,fixedFields:{title:ja,description:Sa,termsOfService:Pa,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Aa}},Contact:{$visitor:ka,fixedFields:{name:Na,url:Ra,email:Ma}},License:{$visitor:Ia,fixedFields:{name:Ca,url:Ta}},Server:{$visitor:Ga,fixedFields:{url:Wa,description:Ka,variables:sc}},ServerVariable:{$visitor:Ya,fixedFields:{enum:Qa,default:ec,description:tc}},Components:{$visitor:Kc,fixedFields:{schemas:vl,responses:Ol,parameters:Sl,examples:kl,requestBodies:Ml,headers:Tl,securitySchemes:Dl,links:Vl,callbacks:Ul}},Paths:{$visitor:ap},PathItem:{$visitor:Xp,fixedFields:{$ref:Yp,summary:Qp,description:eh,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:nh,parameters:oh}},Operation:{$visitor:kp,fixedFields:{tags:Mp,summary:Ip,description:Cp,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Tp,parameters:qp,requestBody:Lp,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:zp,deprecated:Up,security:Wp,servers:Zp}},ExternalDocumentation:{$visitor:Zl,fixedFields:{description:Xl,url:Yl}},Parameter:{$visitor:eu,fixedFields:{name:tu,in:ru,description:nu,required:su,deprecated:iu,allowEmptyValue:ou,style:au,explode:cu,allowReserved:uu,schema:lu,example:pl,examples:fl,content:yl}},RequestBody:{$visitor:cp,fixedFields:{description:up,content:hp,required:mp}},MediaType:{$visitor:ic,fixedFields:{schema:Tc,example:Fc,examples:Lc,encoding:zc}},Encoding:{$visitor:Ql,fixedFields:{contentType:ep,headers:np,style:sp,explode:ip,allowReserved:op}},Responses:{$visitor:Pp,fixedFields:{default:Ap}},Response:{$visitor:dp,fixedFields:{description:_p,headers:bp,content:Ep,links:jp}},Callback:{$visitor:fp},Example:{$visitor:Jl,fixedFields:{summary:Gl,description:Wl,value:Kl,externalValue:Hl}},Link:{$visitor:Fa,fixedFields:{operationRef:$a,operationId:Da,parameters:za,requestBody:Ua,description:Ja,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:pu,fixedFields:{description:hu,required:mu,deprecated:fu,allowEmptyValue:du,style:_u,explode:yu,allowReserved:gu,schema:bu,example:vu,examples:Ou,content:Pu}},Tag:{$visitor:Hc,fixedFields:{name:Zc,description:Xc,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},JSONReference:Ah,Reference:Ah,JSONSchema:kh,Schema:kh,LinkDescription:Io.visitors.document.objects.LinkDescription,Media:Io.visitors.document.objects.Media,Discriminator:{$visitor:el,fixedFields:{propertyName:tl,mapping:sl}},XML:{$visitor:il,fixedFields:{name:ol,namespace:al,prefix:cl,attribute:ul,wrapped:ll}},SecurityScheme:{$visitor:ah,fixedFields:{type:ch,description:uh,name:lh,in:ph,scheme:hh,bearerFormat:mh,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:fh}},OAuthFlows:{$visitor:dh,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:_h,fixedFields:{authorizationUrl:yh,tokenUrl:gh,refreshUrl:bh,scopes:Eh}},SecurityRequirement:{$visitor:Uc}},extension:{$visitor:Oa}}}},Rh={namespace:e=>{const{base:t}=e;return t.register("callback",ws),t.register("components",Os),t.register("contact",js),t.register("discriminator",Ps),t.register("encoding",ks),t.register("example",Rs),t.register("externalDocumentation",Is),t.register("header",Ts),t.register("info",$s),t.register("license",qs),t.register("link",Vs),t.register("mediaType",zs),t.register("oAuthFlow",Js),t.register("oAuthFlows",Ws),t.register("openapi",Hs),t.register("openApi3_0",Xs),t.register("operation",Qs),t.register("parameter",ti),t.register("pathItem",ni),t.register("paths",ii),t.register("reference",ai),t.register("requestBody",ui),t.register("response",pi),t.register("responses",mi),t.register("schema",Jo),t.register("securityRequirement",Wo),t.register("securityScheme",Ho),t.register("server",Xo),t.register("serverVariable",Qo),t.register("tag",ta),t.register("xml",na),t}};function Mh(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 Ih(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mh(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ch=()=>{const e=er(Rh);return{predicates:Ih(Ih(Ih({},s),i),{},{isStringElement:Vr}),namespace:e}};function Th(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 Fh=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,Rt.Qc)(e),s=Oi(Nh),i=_n(t,[],s);return hn(n,i,{state:{specObj:s}}),bn(i.element,r,{toolboxCreator:Ch,visitorOptions:{keyMap:aa,nodeTypeGetter:oa}})},$h=e=>(t,r={})=>Fh(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Th(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Th(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));ws.refract=$h(["visitors","document","objects","Callback","$visitor"]),Os.refract=$h(["visitors","document","objects","Components","$visitor"]),js.refract=$h(["visitors","document","objects","Contact","$visitor"]),Rs.refract=$h(["visitors","document","objects","Example","$visitor"]),Ps.refract=$h(["visitors","document","objects","Discriminator","$visitor"]),ks.refract=$h(["visitors","document","objects","Encoding","$visitor"]),Is.refract=$h(["visitors","document","objects","ExternalDocumentation","$visitor"]),Ts.refract=$h(["visitors","document","objects","Header","$visitor"]),$s.refract=$h(["visitors","document","objects","Info","$visitor"]),qs.refract=$h(["visitors","document","objects","License","$visitor"]),Vs.refract=$h(["visitors","document","objects","Link","$visitor"]),zs.refract=$h(["visitors","document","objects","MediaType","$visitor"]),Js.refract=$h(["visitors","document","objects","OAuthFlow","$visitor"]),Ws.refract=$h(["visitors","document","objects","OAuthFlows","$visitor"]),Hs.refract=$h(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Xs.refract=$h(["visitors","document","objects","OpenApi","$visitor"]),Qs.refract=$h(["visitors","document","objects","Operation","$visitor"]),ti.refract=$h(["visitors","document","objects","Parameter","$visitor"]),ni.refract=$h(["visitors","document","objects","PathItem","$visitor"]),ii.refract=$h(["visitors","document","objects","Paths","$visitor"]),ai.refract=$h(["visitors","document","objects","Reference","$visitor"]),ui.refract=$h(["visitors","document","objects","RequestBody","$visitor"]),pi.refract=$h(["visitors","document","objects","Response","$visitor"]),mi.refract=$h(["visitors","document","objects","Responses","$visitor"]),Jo.refract=$h(["visitors","document","objects","Schema","$visitor"]),Wo.refract=$h(["visitors","document","objects","SecurityRequirement","$visitor"]),Ho.refract=$h(["visitors","document","objects","SecurityScheme","$visitor"]),Xo.refract=$h(["visitors","document","objects","Server","$visitor"]),Qo.refract=$h(["visitors","document","objects","ServerVariable","$visitor"]),ta.refract=$h(["visitors","document","objects","Tag","$visitor"]),na.refract=$h(["visitors","document","objects","XML","$visitor"]);const Dh=class extends pr{};const qh=class extends Dh{};const Lh=class extends Array{constructor(...e){super(...e),Er(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new qh('"filterByFormat" method is not implemented.')}findBy(){throw new qh('"findBy" method is not implemented.')}latest(){throw new qh('"latest" method is not implemented.')}};class Vh extends Lh{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.0.3",t="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(e="generic"){return lt(this.filterByFormat(e))}}const Bh=new Vh("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"),zh=new Vh(...Bh.filterByFormat("generic"),...Bh.filterByFormat("json")),Uh=/"openapi"\s*:\s*"(?<version_json>3\.0\.([0123])(?:-rc[012])?)"/,Jh=async e=>Uh.test(e)&&await(async e=>{if(!bs.test(e))return!1;try{return"ERROR"!==(await dr(e)).rootNode.type}catch{return!1}})(e),Gh=async(e,t={})=>{const r=yt({},"refractorOpts",t),n=ft(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1,syntacticAnalysis:r="direct"}={})=>{const n=await dr(e);let s;return s="indirect"===r?gs(n,{sourceMap:t}):In(n,{sourceMap:t}),s})(e,n),{result:i}=s;if(Nt(i)){const e=Xs.refract(i,r);e.classes.push("result"),s.replaceResult(e)}return s},Wh=er(Rh)})(),n})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiJson3_0=t():e.apidomParserAdapterOpenApiJson3_0=t()}(self,(()=>(()=>{var e={42:(e,t,n)=>{var r=n(5846);e.exports=r},6791:(e,t,n)=>{n(4339),n(4242),n(4016),n(8939),n(5454);var r=n(7545);e.exports=r.AggregateError},6762:(e,t,n)=>{e.exports=n(3028)},3028:(e,t,n)=>{n(2752);var r=n(42);e.exports=r},6235:(e,t,n)=>{var r=n(6447),s=n(9288),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(s(e)+" is not a function")}},7757:(e,t,n)=>{var r=n(6447),s=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+s(e)+" as a prototype")}},7423:e=>{e.exports=function(){}},1138:(e,t,n)=>{var r=n(5744),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(s(e)+" is not an object")}},8180:(e,t,n)=>{var r=n(101),s=n(7739),i=n(4104),o=function(e){return function(t,n,o){var a,c=r(t),u=i(c),l=s(o,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9272:(e,t,n)=>{var r=n(4120),s=r({}.toString),i=r("".slice);e.exports=function(e){return i(s(e),8,-1)}},4696:(e,t,n)=>{var r=n(3471),s=n(6447),i=n(9272),o=n(8182)("toStringTag"),a=Object,c="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?n:c?i(t):"Object"==(r=i(t))&&s(t.callee)?"Arguments":r}},7987:(e,t,n)=>{var r=n(4500),s=n(3011),i=n(5141),o=n(2760);e.exports=function(e,t,n){for(var a=s(t),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];r(e,p)||n&&r(n,p)||c(e,p,u(t,p))}}},4635:(e,t,n)=>{var r=n(6192);e.exports=!r((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,n)=>{var r=n(69),s=n(2760),i=n(774);e.exports=r?function(e,t,n){return s.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},774:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9362:(e,t,n)=>{var r=n(8711);e.exports=function(e,t,n,s){return s&&s.enumerable?e[t]=n:r(e,t,n),e}},5098:(e,t,n)=>{var r=n(8576),s=Object.defineProperty;e.exports=function(e,t){try{s(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},69:(e,t,n)=>{var r=n(6192);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8382:e=>{var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},7449:(e,t,n)=>{var r=n(8576),s=n(5744),i=r.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},7365:e=>{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,n)=>{var r,s,i=n(8576),o=n(8989),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(s=+r[1]),e.exports=s},2952:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4503:(e,t,n)=>{var r=n(4120),s=Error,i=r("".replace),o=String(s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},8266:(e,t,n)=>{var r=n(8711),s=n(4503),i=n(274),o=Error.captureStackTrace;e.exports=function(e,t,n,a){i&&(o?o(e,t):r(e,"stack",s(n,a)))}},274:(e,t,n)=>{var r=n(6192),s=n(774);e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},3085:(e,t,n)=>{"use strict";var r=n(8576),s=n(6298),i=n(4914),o=n(6447),a=n(5141).f,c=n(9245),u=n(7545),l=n(8043),p=n(8711),h=n(4500),m=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,s,f,d,_,y,g,b,v,E=e.target,w=e.global,x=e.stat,j=e.proto,S=w?r:x?r[E]:(r[E]||{}).prototype,O=w?u:u[E]||p(u,E,{})[E],P=O.prototype;for(d in t)s=!(n=c(w?d:E+(x?".":"#")+d,e.forced))&&S&&h(S,d),y=O[d],s&&(g=e.dontCallGetSet?(v=a(S,d))&&v.value:S[d]),_=s&&g?g:t[d],s&&typeof y==typeof _||(b=e.bind&&s?l(_,r):e.wrap&&s?m(_):j&&o(_)?i(_):_,(e.sham||_&&_.sham||y&&y.sham)&&p(b,"sham",!0),p(O,d,b),j&&(h(u,f=E+"Prototype")||p(u,f,{}),p(u[f],d,_),e.real&&P&&(n||!P[d])&&p(P,d,_)))}},6192:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},6298:(e,t,n)=>{var r=n(2784),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},8043:(e,t,n)=>{var r=n(4914),s=n(6235),i=n(2784),o=r(r.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},2784:(e,t,n)=>{var r=n(6192);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8922:(e,t,n)=>{var r=n(2784),s=Function.prototype.call;e.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},2282:(e,t,n)=>{var r=n(69),s=n(4500),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},6419:(e,t,n)=>{var r=n(4120),s=n(6235);e.exports=function(e,t,n){try{return r(s(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},4914:(e,t,n)=>{var r=n(9272),s=n(4120);e.exports=function(e){if("Function"===r(e))return s(e)}},4120:(e,t,n)=>{var r=n(2784),s=Function.prototype,i=s.call,o=r&&s.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},150:(e,t,n)=>{var r=n(7545),s=n(8576),i=n(6447),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(s[e]):r[e]&&r[e][t]||s[e]&&s[e][t]}},8703:(e,t,n)=>{var r=n(4696),s=n(5037),i=n(5646),o=n(7771),a=n(8182)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[r(e)]}},1669:(e,t,n)=>{var r=n(8922),s=n(6235),i=n(1138),o=n(9288),a=n(8703),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(s(n))return i(r(n,e));throw c(o(e)+" is not iterable")}},5037:(e,t,n)=>{var r=n(6235),s=n(5646);e.exports=function(e,t){var n=e[t];return s(n)?void 0:r(n)}},8576:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},4500:(e,t,n)=>{var r=n(4120),s=n(1795),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},4535:e=>{e.exports={}},7403:(e,t,n)=>{var r=n(150);e.exports=r("document","documentElement")},188:(e,t,n)=>{var r=n(69),s=n(6192),i=n(7449);e.exports=!r&&!s((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2202:(e,t,n)=>{var r=n(4120),s=n(6192),i=n(9272),o=Object,a=r("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a(e,""):o(e)}:o},2643:(e,t,n)=>{var r=n(6447),s=n(5744),i=n(4469);e.exports=function(e,t,n){var o,a;return i&&r(o=t.constructor)&&o!==n&&s(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},273:(e,t,n)=>{var r=n(5744),s=n(8711);e.exports=function(e,t){r(t)&&"cause"in t&&s(e,"cause",t.cause)}},3326:(e,t,n)=>{var r,s,i,o=n(5278),a=n(8576),c=n(5744),u=n(8711),l=n(4500),p=n(6434),h=n(9766),m=n(4535),f="Object already initialized",d=a.TypeError,_=a.WeakMap;if(o||p.state){var y=p.state||(p.state=new _);y.get=y.get,y.has=y.has,y.set=y.set,r=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,r=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:r,get:s,has:i,enforce:function(e){return i(e)?s(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=s(t)).type!==e)throw d("Incompatible receiver, "+e+" required");return n}}}},6109:(e,t,n)=>{var r=n(8182),s=n(7771),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},6447:(e,t,n)=>{var r=n(8382),s=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},9245:(e,t,n)=>{var r=n(6192),s=n(6447),i=/#|\.prototype\./,o=function(e,t){var n=c[a(e)];return n==l||n!=u&&(s(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},5646:e=>{e.exports=function(e){return null==e}},5744:(e,t,n)=>{var r=n(6447),s=n(8382),i=s.all;e.exports=s.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},5546:e=>{e.exports=!0},3236:(e,t,n)=>{var r=n(150),s=n(6447),i=n(8902),o=n(615),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return s(t)&&i(t.prototype,a(e))}},3442:(e,t,n)=>{var r=n(8043),s=n(8922),i=n(1138),o=n(9288),a=n(6109),c=n(4104),u=n(8902),l=n(1669),p=n(8703),h=n(6639),m=TypeError,f=function(e,t){this.stopped=e,this.result=t},d=f.prototype;e.exports=function(e,t,n){var _,y,g,b,v,E,w,x=n&&n.that,j=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),O=!(!n||!n.IS_ITERATOR),P=!(!n||!n.INTERRUPTED),A=r(t,x),k=function(e){return _&&h(_,"normal",e),new f(!0,e)},N=function(e){return j?(i(e),P?A(e[0],e[1],k):A(e[0],e[1])):P?A(e,k):A(e)};if(S)_=e.iterator;else if(O)_=e;else{if(!(y=p(e)))throw m(o(e)+" is not iterable");if(a(y)){for(g=0,b=c(e);b>g;g++)if((v=N(e[g]))&&u(d,v))return v;return new f(!1)}_=l(e,y)}for(E=S?e.next:_.next;!(w=s(E,_)).done;){try{v=N(w.value)}catch(e){h(_,"throw",e)}if("object"==typeof v&&v&&u(d,v))return v}return new f(!1)}},6639:(e,t,n)=>{var r=n(8922),s=n(1138),i=n(5037);e.exports=function(e,t,n){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw n;if(a)throw o;return s(o),n}},5695:(e,t,n)=>{"use strict";var r=n(4413).IteratorPrototype,s=n(2853),i=n(774),o=n(1284),a=n(7771),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=s(r,{next:i(+!u,n)}),o(e,l,!1,!0),a[l]=c,e}},5297:(e,t,n)=>{"use strict";var r=n(3085),s=n(8922),i=n(5546),o=n(2282),a=n(6447),c=n(5695),u=n(9341),l=n(4469),p=n(1284),h=n(8711),m=n(9362),f=n(8182),d=n(7771),_=n(4413),y=o.PROPER,g=o.CONFIGURABLE,b=_.IteratorPrototype,v=_.BUGGY_SAFARI_ITERATORS,E=f("iterator"),w="keys",x="values",j="entries",S=function(){return this};e.exports=function(e,t,n,o,f,_,O){c(n,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 w:case x:case j:return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",R=!1,I=e.prototype,C=I[E]||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[E])||m(P,E,S)),p(P,M,!0,!0),i&&(d[M]=S)),y&&f==x&&C&&C.name!==x&&(!i&&g?h(I,"name",x):(R=!0,T=function(){return s(C,this)})),f)if(A={values:N(x),keys:_?T:N(w),entries:N(j)},O)for(k in A)(v||R||!(k in I))&&m(I,k,A[k]);else r({target:t,proto:!0,forced:v||R},A);return i&&!O||I[E]===T||m(I,E,T,{name:f}),d[t]=T,A}},4413:(e,t,n)=>{"use strict";var r,s,i,o=n(6192),a=n(6447),c=n(5744),u=n(2853),l=n(9341),p=n(9362),h=n(8182),m=n(5546),f=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(r=s):d=!0),!c(r)||o((function(){var e={};return r[f].call(e)!==e}))?r={}:m&&(r=u(r)),a(r[f])||p(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},7771:e=>{e.exports={}},4104:(e,t,n)=>{var r=n(8445);e.exports=function(e){return r(e.length)}},7679:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},6016:(e,t,n)=>{var r=n(4845);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},2853:(e,t,n)=>{var r,s=n(1138),i=n(1187),o=n(2952),a=n(4535),c=n(7403),u=n(7449),l=n(9766),p="prototype",h="script",m=l("IE_PROTO"),f=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},_=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;y="undefined"!=typeof document?document.domain&&r?_(r):(t=u("iframe"),n="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):_(r);for(var s=o.length;s--;)delete y[p][o[s]];return y()};a[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[p]=s(e),n=new f,f[p]=null,n[m]=e):n=y(),void 0===t?n:i.f(n,t)}},1187:(e,t,n)=>{var r=n(69),s=n(9600),i=n(2760),o=n(1138),a=n(101),c=n(7653);t.f=r&&!s?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=c(t),u=s.length,l=0;u>l;)i.f(e,n=s[l++],r[n]);return e}},2760:(e,t,n)=>{var r=n(69),s=n(188),i=n(9600),o=n(1138),a=n(77),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",m="writable";t.f=r?i?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&m in n&&!n[m]){var r=l(e,t);r&&r[m]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:p in n?n[p]:r[p],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=a(t),o(n),s)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},5141:(e,t,n)=>{var r=n(69),s=n(8922),i=n(6007),o=n(774),a=n(101),c=n(77),u=n(4500),l=n(188),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=a(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},2092:(e,t,n)=>{var r=n(7934),s=n(2952).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,s)}},4750:(e,t)=>{t.f=Object.getOwnPropertySymbols},9341:(e,t,n)=>{var r=n(4500),s=n(6447),i=n(1795),o=n(9766),a=n(4635),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var n=t.constructor;return s(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},8902:(e,t,n)=>{var r=n(4120);e.exports=r({}.isPrototypeOf)},7934:(e,t,n)=>{var r=n(4120),s=n(4500),i=n(101),o=n(8180).indexOf,a=n(4535),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!s(a,n)&&s(r,n)&&c(l,n);for(;t.length>u;)s(r,n=t[u++])&&(~o(l,n)||c(l,n));return l}},7653:(e,t,n)=>{var r=n(7934),s=n(2952);e.exports=Object.keys||function(e){return r(e,s)}},6007:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},4469:(e,t,n)=>{var r=n(6419),s=n(1138),i=n(7757);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return s(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},158:(e,t,n)=>{"use strict";var r=n(3471),s=n(4696);e.exports=r?{}.toString:function(){return"[object "+s(this)+"]"}},380:(e,t,n)=>{var r=n(8922),s=n(6447),i=n(5744),o=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&s(n=e.toString)&&!i(a=r(n,e)))return a;if(s(n=e.valueOf)&&!i(a=r(n,e)))return a;if("string"!==t&&s(n=e.toString)&&!i(a=r(n,e)))return a;throw o("Can't convert object to primitive value")}},3011:(e,t,n)=>{var r=n(150),s=n(4120),i=n(2092),o=n(4750),a=n(1138),c=s([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?c(t,n(e)):t}},7545:e=>{e.exports={}},7656:(e,t,n)=>{var r=n(2760).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},3209:(e,t,n)=>{var r=n(5646),s=TypeError;e.exports=function(e){if(r(e))throw s("Can't call method on "+e);return e}},1284:(e,t,n)=>{var r=n(3471),s=n(2760).f,i=n(8711),o=n(4500),a=n(158),c=n(8182)("toStringTag");e.exports=function(e,t,n,u){if(e){var l=n?e:e.prototype;o(l,c)||s(l,c,{configurable:!0,value:t}),u&&!r&&i(l,"toString",a)}}},9766:(e,t,n)=>{var r=n(8717),s=n(2759),i=r("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},6434:(e,t,n)=>{var r=n(8576),s=n(5098),i="__core-js_shared__",o=r[i]||s(i,{});e.exports=o},8717:(e,t,n)=>{var r=n(5546),s=n(6434);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},863:(e,t,n)=>{var r=n(4120),s=n(1941),i=n(4845),o=n(3209),a=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,p=i(o(t)),h=s(n),m=p.length;return h<0||h>=m?e?"":void 0:(r=c(p,h))<55296||r>56319||h+1===m||(l=c(p,h+1))<56320||l>57343?e?a(p,h):r:e?u(p,h,h+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},6770:(e,t,n)=>{var r=n(4218),s=n(6192),i=n(8576).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},7739:(e,t,n)=>{var r=n(1941),s=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?s(n+t,0):i(n,t)}},101:(e,t,n)=>{var r=n(2202),s=n(3209);e.exports=function(e){return r(s(e))}},1941:(e,t,n)=>{var r=n(7679);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8445:(e,t,n)=>{var r=n(1941),s=Math.min;e.exports=function(e){return e>0?s(r(e),9007199254740991):0}},1795:(e,t,n)=>{var r=n(3209),s=Object;e.exports=function(e){return s(r(e))}},7888:(e,t,n)=>{var r=n(8922),s=n(5744),i=n(3236),o=n(5037),a=n(380),c=n(8182),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var n,c=o(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!s(n)||i(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},77:(e,t,n)=>{var r=n(7888),s=n(3236);e.exports=function(e){var t=r(e,"string");return s(t)?t:t+""}},3471:(e,t,n)=>{var r={};r[n(8182)("toStringTag")]="z",e.exports="[object z]"===String(r)},4845:(e,t,n)=>{var r=n(4696),s=String;e.exports=function(e){if("Symbol"===r(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,n)=>{var r=n(4120),s=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},615:(e,t,n)=>{var r=n(6770);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9600:(e,t,n)=>{var r=n(69),s=n(6192);e.exports=r&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5278:(e,t,n)=>{var r=n(8576),s=n(6447),i=r.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8182:(e,t,n)=>{var r=n(8576),s=n(8717),i=n(4500),o=n(2759),a=n(6770),c=n(615),u=r.Symbol,l=s("wks"),p=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},426:(e,t,n)=>{"use strict";var r=n(150),s=n(4500),i=n(8711),o=n(8902),a=n(4469),c=n(7987),u=n(7656),l=n(2643),p=n(6016),h=n(273),m=n(8266),f=n(69),d=n(5546);e.exports=function(e,t,n,_){var y="stackTraceLimit",g=_?2:1,b=e.split("."),v=b[b.length-1],E=r.apply(null,b);if(E){var w=E.prototype;if(!d&&s(w,"cause")&&delete w.cause,!n)return E;var x=r("Error"),j=t((function(e,t){var n=p(_?t:e,void 0),r=_?new E(e):new E;return void 0!==n&&i(r,"message",n),m(r,j,r.stack,2),this&&o(w,this)&&l(r,this,j),arguments.length>g&&h(r,arguments[g]),r}));if(j.prototype=w,"Error"!==v?a?a(j,x):c(j,x,{name:!0}):f&&y in E&&(u(j,E,y),u(j,E,"prepareStackTrace")),c(j,E),!d)try{w.name!==v&&i(w,"name",v),w.constructor=j}catch(e){}return j}}},4016:(e,t,n)=>{var r=n(3085),s=n(150),i=n(6298),o=n(6192),a=n(426),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,n){return i(e,this,arguments)}}),l,!0)})},3820:(e,t,n)=>{"use strict";var r=n(3085),s=n(8902),i=n(9341),o=n(4469),a=n(7987),c=n(2853),u=n(8711),l=n(774),p=n(273),h=n(8266),m=n(3442),f=n(6016),d=n(8182)("toStringTag"),_=Error,y=[].push,g=function(e,t){var n,r=s(b,this);o?n=o(_(),r?i(this):b):(n=r?this:c(b),u(n,d,"Error")),void 0!==t&&u(n,"message",f(t)),h(n,g,n.stack,1),arguments.length>2&&p(n,arguments[2]);var a=[];return m(e,y,{that:a}),u(n,"errors",a),n};o?o(g,_):a(g,_,{name:!0});var b=g.prototype=c(_.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:g})},4242:(e,t,n)=>{n(3820)},8939:(e,t,n)=>{"use strict";var r=n(101),s=n(7423),i=n(7771),o=n(3326),a=n(2760).f,c=n(5297),u=n(7271),l=n(5546),p=n(69),h="Array Iterator",m=o.set,f=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){m(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},4339:(e,t,n)=>{var r=n(3085),s=n(8576),i=n(6298),o=n(426),a="WebAssembly",c=s[a],u=7!==Error("e",{cause:7}).cause,l=function(e,t){var n={};n[e]=o(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},p=function(e,t){if(c&&c[e]){var n={};n[e]=o(a+"."+e,t,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},5454:(e,t,n)=>{"use strict";var r=n(863).charAt,s=n(4845),i=n(3326),o=n(5297),a=n(7271),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:s(e),index:0})}),(function(){var e,t=l(this),n=t.string,s=t.index;return s>=n.length?a(void 0,!0):(e=r(n,s),t.index+=e.length,a(e,!1))}))},2752:(e,t,n)=>{n(4242)},162:(e,t,n)=>{n(8939);var r=n(7365),s=n(8576),i=n(4696),o=n(8711),a=n(7771),c=n(8182)("toStringTag");for(var u in r){var l=s[u],p=l&&l.prototype;p&&i(p)!==c&&o(p,c,u),a[u]=a.Array}},5846:(e,t,n)=>{n(2752);var r=n(6791);n(162),e.exports=r},9515:(e,t,n)=>{var r=n(8761)(n(7772),"DataView");e.exports=r},9612:(e,t,n)=>{var r=n(2118),s=n(6909),i=n(8138),o=n(4174),a=n(7942);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},235:(e,t,n)=>{var r=n(3945),s=n(1846),i=n(8028),o=n(2344),a=n(4769);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},326:(e,t,n)=>{var r=n(8761)(n(7772),"Map");e.exports=r},6738:(e,t,n)=>{var r=n(2411),s=n(6417),i=n(6928),o=n(9493),a=n(4150);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1985:(e,t,n)=>{var r=n(8761)(n(7772),"Promise");e.exports=r},2143:(e,t,n)=>{var r=n(8761)(n(7772),"Set");e.exports=r},5386:(e,t,n)=>{var r=n(6738),s=n(2842),i=n(2482);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},6571:(e,t,n)=>{var r=n(235),s=n(5243),i=n(2858),o=n(4417),a=n(8605),c=n(1418);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},857:(e,t,n)=>{var r=n(7772).Symbol;e.exports=r},9162:(e,t,n)=>{var r=n(7772).Uint8Array;e.exports=r},3215:(e,t,n)=>{var r=n(8761)(n(7772),"WeakMap");e.exports=r},7552:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}},1634:(e,t,n)=>{var r=n(6473),s=n(9631),i=n(6152),o=n(3226),a=n(9045),c=n(7598),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&s(e),p=!n&&!l&&o(e),h=!n&&!l&&!p&&c(e),m=n||l||p||h,f=m?r(e.length,String):[],d=f.length;for(var _ in e)!t&&!u.call(e,_)||m&&("length"==_||p&&("offset"==_||"parent"==_)||h&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||a(_,d))||f.push(_);return f}},5067:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}},7064:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},2218:(e,t,n)=>{var r=n(1225);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},1897:(e,t,n)=>{var r=n(5067),s=n(6152);e.exports=function(e,t,n){var i=t(e);return s(e)?i:r(i,n(e))}},3366:(e,t,n)=>{var r=n(857),s=n(2107),i=n(7157),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},5183:(e,t,n)=>{var r=n(3366),s=n(5125);e.exports=function(e){return s(e)&&"[object Arguments]"==r(e)}},8746:(e,t,n)=>{var r=n(1952),s=n(5125);e.exports=function e(t,n,i,o,a){return t===n||(null==t||null==n||!s(t)&&!s(n)?t!=t&&n!=n:r(t,n,i,o,e,a))}},1952:(e,t,n)=>{var r=n(6571),s=n(4871),i=n(1491),o=n(7416),a=n(940),c=n(6152),u=n(3226),l=n(7598),p="[object Arguments]",h="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,_,y){var g=c(e),b=c(t),v=g?h:a(e),E=b?h:a(t),w=(v=v==p?m:v)==m,x=(E=E==p?m:E)==m,j=v==E;if(j&&u(e)){if(!u(t))return!1;g=!0,w=!1}if(j&&!w)return y||(y=new r),g||l(e)?s(e,t,n,d,_,y):i(e,t,v,n,d,_,y);if(!(1&n)){var S=w&&f.call(e,"__wrapped__"),O=x&&f.call(t,"__wrapped__");if(S||O){var P=S?e.value():e,A=O?t.value():t;return y||(y=new r),_(P,A,n,d,y)}}return!!j&&(y||(y=new r),o(e,t,n,d,_,y))}},6840:(e,t,n)=>{var r=n(1049),s=n(7394),i=n(9259),o=n(7035),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,h=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(r(e)?h:a).test(o(e))}},5522:(e,t,n)=>{var r=n(3366),s=n(1158),i=n(5125),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[r(e)]}},6411:(e,t,n)=>{var r=n(6001),s=n(4248),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return s(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},6473:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7826:e=>{e.exports=function(e){return function(t){return e(t)}}},9950:e=>{e.exports=function(e,t){return e.has(t)}},4019:(e,t,n)=>{var r=n(7772)["__core-js_shared__"];e.exports=r},4871:(e,t,n)=>{var r=n(5386),s=n(7064),i=n(9950);e.exports=function(e,t,n,o,a,c){var u=1&n,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var f=-1,d=!0,_=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++f<l;){var 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,n,o,c)))return _.push(t)}))){d=!1;break}}else if(y!==g&&!a(y,g,n,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},1491:(e,t,n)=>{var r=n(857),s=n(9162),i=n(1225),o=n(4871),a=n(5179),c=n(4207),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,p,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=a;case"[object Set]":var f=1&r;if(m||(m=c),e.size!=t.size&&!f)return!1;var d=h.get(e);if(d)return d==t;r|=2,h.set(e,t);var _=o(m(e),m(t),r,u,p,h);return h.delete(e),_;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},7416:(e,t,n)=>{var r=n(3483),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,a){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var p=l;p--;){var h=u[p];if(!(c?h in t:s.call(t,h)))return!1}var m=a.get(e),f=a.get(t);if(m&&f)return m==t&&f==e;var d=!0;a.set(e,t),a.set(t,e);for(var _=c;++p<l;){var 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,n,i,a):b)){d=!1;break}_||(_="constructor"==h)}if(d&&!_){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,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},3483:(e,t,n)=>{var r=n(1897),s=n(633),i=n(249);e.exports=function(e){return r(e,i,s)}},7937:(e,t,n)=>{var r=n(8304);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},8761:(e,t,n)=>{var r=n(6840),s=n(8109);e.exports=function(e,t){var n=s(e,t);return r(n)?n:void 0}},2107:(e,t,n)=>{var r=n(857),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var s=o.call(e);return r&&(t?e[a]=n:delete e[a]),s}},633:(e,t,n)=>{var r=n(7552),s=n(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},940:(e,t,n)=>{var r=n(9515),s=n(326),i=n(1985),o=n(2143),a=n(3215),c=n(3366),u=n(7035),l="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",f="[object DataView]",d=u(r),_=u(s),y=u(i),g=u(o),b=u(a),v=c;(r&&v(new r(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),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){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,n)=>{var r=n(9191);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,n)=>{var r=n(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(t,e)?t[e]:void 0}},4174:(e,t,n)=>{var r=n(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:s.call(t,e)}},7942:(e,t,n)=>{var r=n(9191);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},9045:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,n)=>{var r,s=n(4019),i=(r=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},6001:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,n)=>{var r=n(2218),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():s.call(t,n,1),--this.size,!0)}},8028:(e,t,n)=>{var r=n(2218);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},2344:(e,t,n)=>{var r=n(2218);e.exports=function(e){return r(this.__data__,e)>-1}},4769:(e,t,n)=>{var r=n(2218);e.exports=function(e,t){var n=this.__data__,s=r(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}},2411:(e,t,n)=>{var r=n(9612),s=n(235),i=n(326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||s),string:new r}}},6417:(e,t,n)=>{var r=n(7937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).get(e)}},9493:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).has(e)}},4150:(e,t,n)=>{var r=n(7937);e.exports=function(e,t){var n=r(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}},5179:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},9191:(e,t,n)=>{var r=n(8761)(Object,"create");e.exports=r},4248:(e,t,n)=>{var r=n(241)(Object.keys,Object);e.exports=r},4146:(e,t,n)=>{e=n.nmd(e);var r=n(1242),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&r.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},241:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},7772:(e,t,n)=>{var r=n(1242),s="object"==typeof self&&self&&self.Object===Object&&self,i=r||s||Function("return this")();e.exports=i},2842:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2482:e=>{e.exports=function(e){return this.__data__.has(e)}},4207:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},5243:(e,t,n)=>{var r=n(235);e.exports=function(){this.__data__=new r,this.size=0}},2858:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:e=>{e.exports=function(e){return this.__data__.get(e)}},8605:e=>{e.exports=function(e){return this.__data__.has(e)}},1418:(e,t,n)=>{var r=n(235),s=n(326),i=n(6738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},7035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},9631:(e,t,n)=>{var r=n(5183),s=n(5125),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},6152:e=>{var t=Array.isArray;e.exports=t},7878:(e,t,n)=>{var r=n(1049),s=n(1158);e.exports=function(e){return null!=e&&s(e.length)&&!r(e)}},4335:(e,t,n)=>{var r=n(3366),s=n(5125);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==r(e)}},3226:(e,t,n)=>{e=n.nmd(e);var r=n(7772),s=n(6330),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},8149:(e,t,n)=>{var r=n(8746);e.exports=function(e,t){return r(e,t)}},1049:(e,t,n)=>{var r=n(3366),s=n(9259);e.exports=function(e){if(!s(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1158:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5877:e=>{e.exports=function(e){return null===e}},537:(e,t,n)=>{var r=n(3366),s=n(5125);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==r(e)}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},5505:(e,t,n)=>{var r=n(3366),s=n(6152),i=n(5125);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==r(e)}},7598:(e,t,n)=>{var r=n(5522),s=n(7826),i=n(4146),o=i&&i.isTypedArray,a=o?s(o):r;e.exports=a},249:(e,t,n)=>{var r=n(1634),s=n(6411),i=n(7878);e.exports=function(e){return i(e)?r(e):s(e)}},1570:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},981:e=>{e.exports=function(){return[]}},6330:e=>{e.exports=function(){return!1}},1178:(e,t,n)=>{const r=n(1570);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},3026:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5140:(e,t,n)=>{const r=n(5877),s=n(5505),i=n(537),o=n(4335),a=n(9259),c=n(2947),u=n(3756);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(r,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,n){return void 0===n||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],s=this.elementDetection[n][1];if(r(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},3853:(e,t,n)=>{const r=n(1570),s=n(1178);class i extends s{map(e,t){return this.elements.map((n=>e.bind(t)(n.value,n.key,n)))}filter(e,t){return new i(this.elements.filter((n=>e.bind(t)(n.value,n.key,n))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((n,r)=>{e.bind(t)(n.value,n.key,n,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3756:(e,t,n)=>{const r=n(6420),s=n(4152),i=n(9542),o=n(3710),a=n(3312),c=n(1641),u=n(8858),l=n(3860),p=n(5202),h=n(2320),m=n(1178),f=n(3853),d=n(3026);function _(e){if(e instanceof r)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(_));if("object"==typeof e){return new l(e)}return e}r.prototype.ObjectElement=l,r.prototype.RefElement=h,r.prototype.MemberElement=u,r.prototype.refract=_,m.prototype.refract=_,e.exports={Element:r,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:h,refract:_,ArraySlice:m,ObjectSlice:f,KeyValuePair:d}},5202:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},2320:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},7952:(e,t,n)=>{const r=n(5140),s=n(3756);t.lS=r,t.KeyValuePair=n(3026),t.O4=s.ArraySlice,t.rm=s.ObjectSlice,t.W_=s.Element,t.RP=s.StringElement,t.VL=s.NumberElement,t.hh=s.BooleanElement,t.zr=s.NullElement,t.ON=s.ArrayElement,t.Sb=s.ObjectElement,t.c6=s.MemberElement,t.tK=s.RefElement,t.EA=s.LinkElement,t.Qc=s.refract,n(2947),n(8910)},1641:(e,t,n)=>{const r=n(1570),s=n(6420),i=n(1178);class o extends s{constructor(e,t,n){super(e||[],t,n),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let n,r;void 0!==t?(n=0,r=this.refract(t)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=n;t<this.length;t+=1){const n=this.content[t];r="object"===this.primitive()?this.refract(e(r,n.value,n.key,n,this)):this.refract(e(r,n,t,this))}return r}forEach(e,t){this.content.forEach(((n,r)=>{e.bind(t)(n,this.refract(r))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const n=t||{},r=!!n.recursive,s=void 0===n.results?[]:n.results;return this.forEach(((t,n,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:r}),e(t,n,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},3312:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}}},6420:(e,t,n)=>{const r=n(8149),s=n(3026),i=n(1178);class o{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let n=new i;const r=(e,t)=>(e.push(t),e),o=(e,n)=>{n.element===t&&e.push(n);const i=n.findRecursive(t);return i&&i.reduce(r,e),n.content instanceof s&&(n.content.key&&o(e,n.content.key),n.content.value&&o(e,n.content.value)),e};return this.content&&(this.content.element&&o(n,this.content),Array.isArray(this.content)&&this.content.reduce(o,n)),e.isEmpty||(n=n.filter((t=>{let n=t.parents.map((e=>e.element));for(const t in e){const r=e[t],s=n.indexOf(r);if(-1===s)return!1;n=n.splice(0,s)}return!0}))),n}set(e){return this.content=e,this}equals(e){return r(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8858:(e,t,n)=>{const r=n(3026),s=n(6420);e.exports=class extends s{constructor(e,t,n,s){super(new r,n,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},4152:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e||null,t,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="number"}primitive(){return"number"}}},3860:(e,t,n)=>{const r=n(1570),s=n(9259),i=n(1641),o=n(8858),a=n(3853);e.exports=class extends i{constructor(e,t,n){super(e||[],t,n),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((n=>n.key.toValue()!==e||(t=n,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const n=e,r=this.getMember(n);return r?r.value=t:this.content.push(new o(n,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((n=>e.bind(t)(n.value,n.key,n)))}compactMap(e,t){const n=[];return this.forEach(((r,s,i)=>{const o=e.bind(t)(r,s,i);o&&n.push(o)})),n}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((n=>e.bind(t)(n.value,n.key,n)))}}},9542:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(e,t,n)=>{const r=n(2947);e.exports=class extends r{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(n.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(n.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),n=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==n.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let e=n.attributes.get("samples");if(n.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const s=new t(r);s.element=n.element,e.push(s)}))}));const s=e.shift();n.content=s?s.content:void 0,n.attributes.set("samples",e)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=n.element,n.attributes.set("default",e)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const e=n.attributes.get("meta");e&&(n.attributes.set("metadata",e),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,n)=>{if(e){const r=n.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},2947:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const n=this.serialiseContent(e.content);return void 0!==n&&(t.content=n),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const n=this.deserialiseContent(e.content);return void 0===n&&null!==t.content||(t.content=n),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,n)=>{e&&(t[n.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},6591:e=>{!function(){"use strict";var t,n,r,s,i,o="properties",a="deepProperties",c="propertyDescriptors",u="staticProperties",l="staticDeepProperties",p="staticPropertyDescriptors",h="configuration",m="deepConfiguration",f="deepProps",d="deepStatics",_="deepConf",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 x=w.bind(0,(function(e,t){if(t)for(var n=E(t),r=0;r<n.length;r+=1)Object.defineProperty(e,n[r],Object.getOwnPropertyDescriptor(t,n[r]));return e}));function j(e){return"function"==typeof e}function S(e){return e&&"object"==typeof e||j(e)}function O(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var P=w.bind(0,(function e(n,r){if(r===t)return n;if(Array.isArray(r))return(Array.isArray(n)?n:[]).concat(r);if(!O(r))return r;for(var s,i,o=E(r),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(r,s)).hasOwnProperty("value")?i.value!==t&&(n[s]=e(O(n[s])||Array.isArray(r[s])?n[s]:{},r[s])):Object.defineProperty(n,s,i);return n}));function A(){return(n=Array.prototype.concat.apply([],arguments).filter((function(e,t,n){return j(e)&&n.indexOf(e)===t}))).length?n:t}function k(e,t){function r(n,r){S(t[n])&&(S(e[n])||(e[n]={}),(r||x)(e[n],t[n]))}function s(r){(n=A(e[r],t[r]))&&(e[r]=n)}return t&&S(t=t[v]||t)&&(r(g),r(o),r(a,P),r(c),r(u),r(l,P),r(p),r(h),r(m,P),s(y),s(b)),e}function N(){return function(e){return n=function e(n){var r,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])&&x(u,h),(h=i[c])&&Object.defineProperties(u,h),!l||!l.length)return u;for(n===t&&(n={}),i=0;i<l.length;)j(r=l[i++])&&(u=(s=r.call(u,n,{instance:u,stamp:e,args:p}))===t?u:s);return u},(r=e[l])&&P(n,r),(r=e[u])&&x(n,r),(r=e[p])&&Object.defineProperties(n,r),r=j(n[v])?n[v]:N,x(n[v]=function(){return r.apply(this,arguments)},e),n}(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)),((n=this)&&n[v]||r).call(n,s)}}R[g]=I(g,x),R[o]=R.props=I(o,x),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,x),R[l]=R[d]=I(l,P),R[h]=R.conf=I(h,x),R[m]=R[_]=I(m,P),R[c]=I(c,x),R[p]=I(p,x),r=R[v]=x((function(){for(var e,E,w=0,j=[],O=arguments,k=this;w<O.length;)S(e=O[w++])&&j.push(M(e)?e:((s={})[g]=(E=e)[g]||t,r=E.props,s[o]=S((n=E[o])||r)?x({},r,n):t,s[y]=A(E.init,E[y]),s[b]=A(E[b]),r=E[f],s[a]=S((n=E[a])||r)?P({},r,n):t,s[c]=E[c],r=E.statics,s[u]=S((n=E[u])||r)?x({},r,n):t,r=E[d],s[l]=S((n=E[l])||r)?P({},r,n):t,n=E[p],s[p]=S((r=E.name&&{name:{value:E.name}})||n)?x({},n,r):t,r=E.conf,s[h]=S((n=E[h])||r)?x({},r,n):t,r=E[_],s[m]=S((n=E[m])||r)?P({},r,n):t,s));if(e=N.apply(k||i,j),k&&j.unshift(k),Array.isArray(O=e[v][b]))for(w=0;w<O.length;)e=M(k=O[w++]({stamp:e,composables:j}))?k:e;return e}),R),R.create=function(){return this.apply(t,arguments)},(s={})[u]=R,i=N(s),r[v]=r.bind(),r.version="4.3.2","object"!=typeof t?e.exports=r:self.stampit=r}()},9794:(e,t,n)=>{var r=void 0!==r?r:{},s=function(){var t,s="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(r=Object.assign({},r,o),t=new Promise((t=>{var o,a={};for(o in r)r.hasOwnProperty(o)&&(a[o]=r[o]);var c,u,l,p,h=[],m="./this.program",f=function(e,t){throw t};l="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!p;var d,_,y,g,b,v="";c?(v=p?n(6287).dirname(v)+"/":"//",d=function(e,t){return g||(g=n(5530)),b||(b=n(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=r,f=function(e){process.exit(e)},r.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,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)}),r.print||console.log.bind(console);var E=r.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(r[o]=a[o]);a=null,r.arguments&&(h=r.arguments),r.thisProgram&&(m=r.thisProgram),r.quit&&(f=r.quit);var w,x=16,j=[];function S(e,t){if(!w){w=new WeakMap;for(var n=0;n<Z.length;n++){var r=Z.get(n);r&&w.set(r,n)}}if(w.has(e))return w.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(n){if(!(n instanceof TypeError))throw n;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var n={i:"i32",j:"i64",f:"f32",d:"f64"},r={parameters:[],results:"v"==t[0]?[]:[n[t[0]]]},s=1;s<t.length;++s)r.parameters.push(n[t[s]]);return new WebAssembly.Function(r,e)}var i=[1,0,1,96],o=t.slice(0,1),a=t.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),s=0;s<a.length;++s)i.push(c[a[s]]);"v"==o?i.push(0):i=i.concat([1,c[o]]),i[1]=i.length-2;var u=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:e}}).exports.f}(e,t);Z.set(s,i)}return w.set(e,s),s}var O,P=r.dynamicLibraries||[];r.wasmBinary&&(O=r.wasmBinary);var A,k=r.noExitRuntime||!0;function N(e,t,n,r){switch("*"===(n=n||"i8").charAt(n.length-1)&&(n="i32"),n){case"i1":case"i8":T[e>>0]=t;break;case"i16":$[e>>1]=t;break;case"i32":q[e>>2]=t;break;case"i64":le=[t>>>0,(ue=t,+Math.abs(ue)>=1?ue>0?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],q[e>>2]=le[0],q[e+4>>2]=le[1];break;case"float":L[e>>2]=t;break;case"double":D[e>>3]=t;break;default:ae("invalid type for setValue: "+n)}}function M(e,t,n){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 q[e>>2];case"float":return L[e>>2];case"double":return D[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,$,q,L,D,B="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function V(e,t,n){for(var r=t+n,s=t;e[s]&&!(s>=r);)++s;if(s-t>16&&e.subarray&&B)return B.decode(e.subarray(t,s));for(var i="";t<s;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function z(e,t){return e?V(F,e,t):""}function U(e,t,n,r){if(!(r>0))return 0;for(var s=n,i=n+r-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),a<=127){if(n>=i)break;t[n++]=a}else if(a<=2047){if(n+1>=i)break;t[n++]=192|a>>6,t[n++]=128|63&a}else if(a<=65535){if(n+2>=i)break;t[n++]=224|a>>12,t[n++]=128|a>>6&63,t[n++]=128|63&a}else{if(n+3>=i)break;t[n++]=240|a>>18,t[n++]=128|a>>12&63,t[n++]=128|a>>6&63,t[n++]=128|63&a}}return t[n]=0,n-s}function G(e,t,n){return U(e,F,t,n)}function J(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r>=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++n)),r<=127?++t:t+=r<=2047?2:r<=65535?3:4}return t}function W(e){var t=J(e)+1,n=ze(t);return U(e,T,n,t),n}function K(e){C=e,r.HEAP8=T=new Int8Array(e),r.HEAP16=$=new Int16Array(e),r.HEAP32=q=new Int32Array(e),r.HEAPU8=F=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=new Uint32Array(e),r.HEAPF32=L=new Float32Array(e),r.HEAPF64=D=new Float64Array(e)}var H=r.INITIAL_MEMORY||33554432;(A=r.wasmMemory?r.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,ne=0,re=null,se=null;function ie(e){ne++,r.monitorRunDependencies&&r.monitorRunDependencies(ne)}function oe(e){if(ne--,r.monitorRunDependencies&&r.monitorRunDependencies(ne),0==ne&&(null!==re&&(clearInterval(re),re=null),se)){var t=se;se=null,t()}}function ae(e){throw r.onAbort&&r.onAbort(e),E(e+=""),R=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}r.preloadedImages={},r.preloadedAudios={},r.preloadedWasm={};var ce,ue,le;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function he(e){return e.startsWith("file://")}function me(e){try{if(e==ce&&O)return new Uint8Array(O);if(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 r.locateFile?r.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 n=t.func;"number"==typeof n?void 0===t.arg?Z.get(n)():Z.get(n)(t.arg):n(void 0===t.arg?null:t.arg)}else t(r)}}function ye(e){var t=0;function n(){for(var n=0,r=1;;){var s=e[t++];if(n+=(127&s)*r,r*=128,!(128&s))break}return n}if(e instanceof WebAssembly.Module){var r=WebAssembly.Module.customSections(e,"dylink");I(0!=r.length,"need dylink section"),e=new Int8Array(r[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,n(),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=n(),s.memoryAlign=n(),s.tableSize=n(),s.tableAlign=n();var i=n();s.neededDynlibs=[];for(var o=0;o<i;++o){var a=n(),c=e.subarray(t,t+a);t+=a;var u=V(c,0);s.neededDynlibs.push(u)}return s}var ge=0;function be(){return k||ge>0}function ve(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function Ee(e,t){for(var n in e)if(e.hasOwnProperty(n)){qe.hasOwnProperty(n)||(qe[n]=e[n]);var s=ve(n);r.hasOwnProperty(s)||(r[s]=e[n])}}var we={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xe=5250880;function je(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function Se(e,t){var n={};for(var r in e){var s=e[r];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),n[r]=s}return function(e){for(var t in e)if(!je(t)){var n=!1,r=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],n=!0),fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(n||0==fe[t].value)&&("function"==typeof r?fe[t].value=S(r):"number"==typeof r?fe[t].value=r:E("unhandled export type for `"+t+"`: "+typeof r))}}(n),n}function Oe(e,t){var n,s;return t&&(n=qe["orig$"+e]),n||(n=qe[e]),n||(n=r[ve(e)]),!n&&e.startsWith("invoke_")&&(s=e.split("_")[1],n=function(){var e=Be();try{return function(e,t,n){return e.includes("j")?function(e,t,n){var s=r["dynCall_"+e];return n&&n.length?s.apply(null,[t].concat(n)):s.call(null,t)}(e,t,n):Z.get(t).apply(null,n)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Ve(e),t!==t+0&&"longjmp"!==t)throw t;Ue(1,0)}}),n}function Pe(e,t){var n=ye(e);function r(){var r=Math.pow(2,n.memoryAlign);r=Math.max(r,x);var s,i,o,a=(s=function(e){if(te)return Le(e);var t=xe,n=t+e+15&-16;return xe=n,fe.__heap_base.value=n,t}(n.memorySize+r),(i=r)||(i=x),Math.ceil(s/i)*i),c=Z.length;Z.grow(n.tableSize);for(var u=a;u<a+n.memorySize;u++)T[u]=0;for(u=c;u<c+n.tableSize;u++)Z.set(u,null);var l=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return a;case"__table_base":return c}return t in qe?qe[t]:(t in e||(e[t]=function(){return n||(n=function(e){var t=Oe(e,!1);return t||(t=o[e]),t}(t)),n.apply(null,arguments)}),e[t]);var n}}),p={"GOT.mem":new Proxy({},de),"GOT.func":new Proxy({},de),env:l,wasi_snapshot_preview1:l};function h(e){for(var r=0;r<n.tableSize;r++){var s=Z.get(c+r);s&&w.set(s,c+r)}o=Se(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?n.neededDynlibs.reduce((function(e,n){return e.then((function(){return Ae(n,t)}))}),Promise.resolve()).then((function(){return r()})):(n.neededDynlibs.forEach((function(e){Ae(e,t)})),r())}function Ae(e,t){"__main__"!=e||we.loadedLibNames[e]||(we.loadedLibs[-1]={refcount:1/0,name:"__main__",module:r.asm,global:!0},we.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var n,s=we.loadedLibNames[e];if(s)return n=we.loadedLibs[s],t.global&&!n.global&&(n.global=!0,"loading"!==n.module&&Ee(n.module)),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,t.loadAsync?Promise.resolve(s):s;function i(e){if(t.fs){var n=t.fs.readFile(e,{encoding:"binary"});return n instanceof Uint8Array||(n=new Uint8Array(n)),t.loadAsync?Promise.resolve(n):n}return t.loadAsync?(r=e,fetch(r,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+r+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):y(e);var r}function o(){if(void 0!==r.preloadedWasm&&void 0!==r.preloadedWasm[e]){var n=r.preloadedWasm[e];return t.loadAsync?Promise.resolve(n):n}return t.loadAsync?i(e).then((function(e){return Pe(e,t)})):Pe(i(e),t)}function a(e){n.global&&Ee(e),n.module=e}return s=we.nextHandle++,n={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},we.loadedLibNames[e]=s,we.loadedLibs[s]=n,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=Oe(e,!0);"function"==typeof t?fe[e].value=S(t,t.sig):"number"==typeof t?fe[e].value=t:I(!1,"bad export type for `"+e+"`: "+typeof t)}}r.___heap_base=xe;var Ne,Me=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Re(){ae()}r._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 n;if(0===e)n=Date.now();else{if(1!==e&&4!==e)return 28,q[De()>>2]=28,-1;n=Ne()}return q[t>>2]=n/1e3|0,q[t+4>>2]=n%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,qe={__heap_base:xe,__indirect_function_table:Z,__memory_base:1024,__stack_pointer:Me,__table_base:1,abort:Re,clock_gettime:Ie,emscripten_memcpy_big:function(e,t,n){F.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=F.length;if((e>>>=0)>2147483648)return!1;for(var r=1;r<=4;r*=2){var s=n*(1+.2/r);if(s=Math.min(s,e+100663296),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 n=z(t);ut(n,0!==e)}},tree_sitter_parse_callback:function(e,t,n,r,s){var i=ct(t,{row:n,column:r});"string"==typeof i?(N(s,i.length,"i32"),function(e,t,n){if(void 0===n&&(n=2147483647),n<2)return 0;for(var r=(n-=2)<2*e.length?n/2:e.length,s=0;s<r;++s){var i=e.charCodeAt(s);$[t>>1]=i,t+=2}$[t>>1]=0}(i,e,10240)):N(s,0,"i32")}},Le=(function(){var e={env:qe,wasi_snapshot_preview1:qe,"GOT.mem":new Proxy(qe,de),"GOT.func":new Proxy(qe,de)};function t(e,t){var n=e.exports;n=Se(n,1024),r.asm=n;var s,i=ye(t);i.neededDynlibs&&(P=i.neededDynlibs.concat(P)),Ee(n),s=r.asm.__wasm_call_ctors,Y.unshift(s),oe()}function n(e){t(e.instance,e.module)}function s(t){return function(){if(!O&&(l||p)){if("function"==typeof fetch&&!he(ce))return fetch(ce,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ce+"'";return e.arrayBuffer()})).catch((function(){return me(ce)}));if(_)return new Promise((function(e,t){_(ce,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return me(ce)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){E("failed to asynchronously prepare wasm: "+e),ae(e)}))}if(ie(),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(e){return E("Module.instantiateWasm callback failed with error: "+e),!1}O||"function"!=typeof WebAssembly.instantiateStreaming||pe(ce)||he(ce)||"function"!=typeof fetch?s(n):fetch(ce,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return E("wasm streaming compile failed: "+e),E("falling back to ArrayBuffer instantiation"),s(n)}))}))}(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r._malloc=function(){return(Le=r._malloc=r.asm.malloc).apply(null,arguments)}),De=(r._calloc=function(){return(r._calloc=r.asm.calloc).apply(null,arguments)},r._realloc=function(){return(r._realloc=r.asm.realloc).apply(null,arguments)},r._free=function(){return(r._free=r.asm.free).apply(null,arguments)},r._ts_language_symbol_count=function(){return(r._ts_language_symbol_count=r.asm.ts_language_symbol_count).apply(null,arguments)},r._ts_language_version=function(){return(r._ts_language_version=r.asm.ts_language_version).apply(null,arguments)},r._ts_language_field_count=function(){return(r._ts_language_field_count=r.asm.ts_language_field_count).apply(null,arguments)},r._ts_language_symbol_name=function(){return(r._ts_language_symbol_name=r.asm.ts_language_symbol_name).apply(null,arguments)},r._ts_language_symbol_for_name=function(){return(r._ts_language_symbol_for_name=r.asm.ts_language_symbol_for_name).apply(null,arguments)},r._ts_language_symbol_type=function(){return(r._ts_language_symbol_type=r.asm.ts_language_symbol_type).apply(null,arguments)},r._ts_language_field_name_for_id=function(){return(r._ts_language_field_name_for_id=r.asm.ts_language_field_name_for_id).apply(null,arguments)},r._memcpy=function(){return(r._memcpy=r.asm.memcpy).apply(null,arguments)},r._ts_parser_delete=function(){return(r._ts_parser_delete=r.asm.ts_parser_delete).apply(null,arguments)},r._ts_parser_reset=function(){return(r._ts_parser_reset=r.asm.ts_parser_reset).apply(null,arguments)},r._ts_parser_set_language=function(){return(r._ts_parser_set_language=r.asm.ts_parser_set_language).apply(null,arguments)},r._ts_parser_timeout_micros=function(){return(r._ts_parser_timeout_micros=r.asm.ts_parser_timeout_micros).apply(null,arguments)},r._ts_parser_set_timeout_micros=function(){return(r._ts_parser_set_timeout_micros=r.asm.ts_parser_set_timeout_micros).apply(null,arguments)},r._memmove=function(){return(r._memmove=r.asm.memmove).apply(null,arguments)},r._memcmp=function(){return(r._memcmp=r.asm.memcmp).apply(null,arguments)},r._ts_query_new=function(){return(r._ts_query_new=r.asm.ts_query_new).apply(null,arguments)},r._ts_query_delete=function(){return(r._ts_query_delete=r.asm.ts_query_delete).apply(null,arguments)},r._iswspace=function(){return(r._iswspace=r.asm.iswspace).apply(null,arguments)},r._iswalnum=function(){return(r._iswalnum=r.asm.iswalnum).apply(null,arguments)},r._ts_query_pattern_count=function(){return(r._ts_query_pattern_count=r.asm.ts_query_pattern_count).apply(null,arguments)},r._ts_query_capture_count=function(){return(r._ts_query_capture_count=r.asm.ts_query_capture_count).apply(null,arguments)},r._ts_query_string_count=function(){return(r._ts_query_string_count=r.asm.ts_query_string_count).apply(null,arguments)},r._ts_query_capture_name_for_id=function(){return(r._ts_query_capture_name_for_id=r.asm.ts_query_capture_name_for_id).apply(null,arguments)},r._ts_query_string_value_for_id=function(){return(r._ts_query_string_value_for_id=r.asm.ts_query_string_value_for_id).apply(null,arguments)},r._ts_query_predicates_for_pattern=function(){return(r._ts_query_predicates_for_pattern=r.asm.ts_query_predicates_for_pattern).apply(null,arguments)},r._ts_tree_copy=function(){return(r._ts_tree_copy=r.asm.ts_tree_copy).apply(null,arguments)},r._ts_tree_delete=function(){return(r._ts_tree_delete=r.asm.ts_tree_delete).apply(null,arguments)},r._ts_init=function(){return(r._ts_init=r.asm.ts_init).apply(null,arguments)},r._ts_parser_new_wasm=function(){return(r._ts_parser_new_wasm=r.asm.ts_parser_new_wasm).apply(null,arguments)},r._ts_parser_enable_logger_wasm=function(){return(r._ts_parser_enable_logger_wasm=r.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},r._ts_parser_parse_wasm=function(){return(r._ts_parser_parse_wasm=r.asm.ts_parser_parse_wasm).apply(null,arguments)},r._ts_language_type_is_named_wasm=function(){return(r._ts_language_type_is_named_wasm=r.asm.ts_language_type_is_named_wasm).apply(null,arguments)},r._ts_language_type_is_visible_wasm=function(){return(r._ts_language_type_is_visible_wasm=r.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},r._ts_tree_root_node_wasm=function(){return(r._ts_tree_root_node_wasm=r.asm.ts_tree_root_node_wasm).apply(null,arguments)},r._ts_tree_edit_wasm=function(){return(r._ts_tree_edit_wasm=r.asm.ts_tree_edit_wasm).apply(null,arguments)},r._ts_tree_get_changed_ranges_wasm=function(){return(r._ts_tree_get_changed_ranges_wasm=r.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},r._ts_tree_cursor_new_wasm=function(){return(r._ts_tree_cursor_new_wasm=r.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},r._ts_tree_cursor_delete_wasm=function(){return(r._ts_tree_cursor_delete_wasm=r.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},r._ts_tree_cursor_reset_wasm=function(){return(r._ts_tree_cursor_reset_wasm=r.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_first_child_wasm=function(){return(r._ts_tree_cursor_goto_first_child_wasm=r.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_next_sibling_wasm=function(){return(r._ts_tree_cursor_goto_next_sibling_wasm=r.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_parent_wasm=function(){return(r._ts_tree_cursor_goto_parent_wasm=r.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_type_id_wasm=function(){return(r._ts_tree_cursor_current_node_type_id_wasm=r.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_named_wasm=function(){return(r._ts_tree_cursor_current_node_is_named_wasm=r.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_missing_wasm=function(){return(r._ts_tree_cursor_current_node_is_missing_wasm=r.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_id_wasm=function(){return(r._ts_tree_cursor_current_node_id_wasm=r.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},r._ts_tree_cursor_start_position_wasm=function(){return(r._ts_tree_cursor_start_position_wasm=r.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},r._ts_tree_cursor_end_position_wasm=function(){return(r._ts_tree_cursor_end_position_wasm=r.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},r._ts_tree_cursor_start_index_wasm=function(){return(r._ts_tree_cursor_start_index_wasm=r.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},r._ts_tree_cursor_end_index_wasm=function(){return(r._ts_tree_cursor_end_index_wasm=r.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},r._ts_tree_cursor_current_field_id_wasm=function(){return(r._ts_tree_cursor_current_field_id_wasm=r.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_wasm=function(){return(r._ts_tree_cursor_current_node_wasm=r.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},r._ts_node_symbol_wasm=function(){return(r._ts_node_symbol_wasm=r.asm.ts_node_symbol_wasm).apply(null,arguments)},r._ts_node_child_count_wasm=function(){return(r._ts_node_child_count_wasm=r.asm.ts_node_child_count_wasm).apply(null,arguments)},r._ts_node_named_child_count_wasm=function(){return(r._ts_node_named_child_count_wasm=r.asm.ts_node_named_child_count_wasm).apply(null,arguments)},r._ts_node_child_wasm=function(){return(r._ts_node_child_wasm=r.asm.ts_node_child_wasm).apply(null,arguments)},r._ts_node_named_child_wasm=function(){return(r._ts_node_named_child_wasm=r.asm.ts_node_named_child_wasm).apply(null,arguments)},r._ts_node_child_by_field_id_wasm=function(){return(r._ts_node_child_by_field_id_wasm=r.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},r._ts_node_next_sibling_wasm=function(){return(r._ts_node_next_sibling_wasm=r.asm.ts_node_next_sibling_wasm).apply(null,arguments)},r._ts_node_prev_sibling_wasm=function(){return(r._ts_node_prev_sibling_wasm=r.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},r._ts_node_next_named_sibling_wasm=function(){return(r._ts_node_next_named_sibling_wasm=r.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},r._ts_node_prev_named_sibling_wasm=function(){return(r._ts_node_prev_named_sibling_wasm=r.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},r._ts_node_parent_wasm=function(){return(r._ts_node_parent_wasm=r.asm.ts_node_parent_wasm).apply(null,arguments)},r._ts_node_descendant_for_index_wasm=function(){return(r._ts_node_descendant_for_index_wasm=r.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_index_wasm=function(){return(r._ts_node_named_descendant_for_index_wasm=r.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_descendant_for_position_wasm=function(){return(r._ts_node_descendant_for_position_wasm=r.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_position_wasm=function(){return(r._ts_node_named_descendant_for_position_wasm=r.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_start_point_wasm=function(){return(r._ts_node_start_point_wasm=r.asm.ts_node_start_point_wasm).apply(null,arguments)},r._ts_node_end_point_wasm=function(){return(r._ts_node_end_point_wasm=r.asm.ts_node_end_point_wasm).apply(null,arguments)},r._ts_node_start_index_wasm=function(){return(r._ts_node_start_index_wasm=r.asm.ts_node_start_index_wasm).apply(null,arguments)},r._ts_node_end_index_wasm=function(){return(r._ts_node_end_index_wasm=r.asm.ts_node_end_index_wasm).apply(null,arguments)},r._ts_node_to_string_wasm=function(){return(r._ts_node_to_string_wasm=r.asm.ts_node_to_string_wasm).apply(null,arguments)},r._ts_node_children_wasm=function(){return(r._ts_node_children_wasm=r.asm.ts_node_children_wasm).apply(null,arguments)},r._ts_node_named_children_wasm=function(){return(r._ts_node_named_children_wasm=r.asm.ts_node_named_children_wasm).apply(null,arguments)},r._ts_node_descendants_of_type_wasm=function(){return(r._ts_node_descendants_of_type_wasm=r.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},r._ts_node_is_named_wasm=function(){return(r._ts_node_is_named_wasm=r.asm.ts_node_is_named_wasm).apply(null,arguments)},r._ts_node_has_changes_wasm=function(){return(r._ts_node_has_changes_wasm=r.asm.ts_node_has_changes_wasm).apply(null,arguments)},r._ts_node_has_error_wasm=function(){return(r._ts_node_has_error_wasm=r.asm.ts_node_has_error_wasm).apply(null,arguments)},r._ts_node_is_missing_wasm=function(){return(r._ts_node_is_missing_wasm=r.asm.ts_node_is_missing_wasm).apply(null,arguments)},r._ts_query_matches_wasm=function(){return(r._ts_query_matches_wasm=r.asm.ts_query_matches_wasm).apply(null,arguments)},r._ts_query_captures_wasm=function(){return(r._ts_query_captures_wasm=r.asm.ts_query_captures_wasm).apply(null,arguments)},r._iswdigit=function(){return(r._iswdigit=r.asm.iswdigit).apply(null,arguments)},r._iswalpha=function(){return(r._iswalpha=r.asm.iswalpha).apply(null,arguments)},r._iswlower=function(){return(r._iswlower=r.asm.iswlower).apply(null,arguments)},r._towupper=function(){return(r._towupper=r.asm.towupper).apply(null,arguments)},r.___errno_location=function(){return(De=r.___errno_location=r.asm.__errno_location).apply(null,arguments)}),Be=(r._memchr=function(){return(r._memchr=r.asm.memchr).apply(null,arguments)},r._strlen=function(){return(r._strlen=r.asm.strlen).apply(null,arguments)},r.stackSave=function(){return(Be=r.stackSave=r.asm.stackSave).apply(null,arguments)}),Ve=r.stackRestore=function(){return(Ve=r.stackRestore=r.asm.stackRestore).apply(null,arguments)},ze=r.stackAlloc=function(){return(ze=r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},Ue=r._setThrew=function(){return(Ue=r._setThrew=r.asm.setThrew).apply(null,arguments)};function Ge(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=r.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},r.__Znwm=function(){return(r.__Znwm=r.asm._Znwm).apply(null,arguments)},r.__ZdlPv=function(){return(r.__ZdlPv=r.asm._ZdlPv).apply(null,arguments)},r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=r.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},r._orig$ts_parser_timeout_micros=function(){return(r._orig$ts_parser_timeout_micros=r.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},r._orig$ts_parser_set_timeout_micros=function(){return(r._orig$ts_parser_set_timeout_micros=r.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},r.allocate=function(e,t){var n;return n=1==t?ze(e.length):Le(e.length),e.subarray||e.slice?F.set(e,n):F.set(new Uint8Array(e),n),n},se=function e(){$e||We(),$e||(se=e)};var Je=!1;function We(e){function t(){$e||($e=!0,r.calledRun=!0,R||(te=!0,_e(Y),_e(Q),r.onRuntimeInitialized&&r.onRuntimeInitialized(),He&&function(e){var t=r._main;if(t){var n=(e=e||[]).length+1,s=ze(4*(n+1));q[s>>2]=W(m);for(var i=1;i<n;i++)q[(s>>2)+i]=W(e[i-1]);q[(s>>2)+n]=0;try{Ke(t(n,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]),E("exception thrown: "+o),f(1,e)}}}(e),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)e=r.postRun.shift(),ee.unshift(e);var e;_e(ee)}()))}e=e||h,ne>0||!Je&&(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()}(),Je=!0,ne>0)||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)e=r.preRun.shift(),X.unshift(e);var e;_e(X)}(),ne>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),t()}),1)):t()))}function Ke(e,t){t&&be()&&0===e||(be()||(r.onExit&&r.onExit(e),R=!0),f(e,new Ge(e)))}if(r.run=We,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();var He=!0;r.noInitialRun&&(He=!1),We();const Ze=r,Xe={},Ye=4,Qe=5*Ye,et=2*Ye,tt=2*Ye+2*et,nt={row:0,column:0},rt=/[\w-.]*/g,st=/^_?tree_sitter_\w+/;var it,ot,at,ct,ut;class lt{static init(){at=Ze._ts_init(),it=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 n=Ze._ts_language_version(t);if(n<ot||it<n)throw new Error(`Incompatible language version ${n}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,Ze._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,n){if("string"==typeof e)ct=(t,n,r)=>e.slice(t,r);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");ct=e}this.logCallback?(ut=this.logCallback,Ze._ts_parser_enable_logger_wasm(this[0],1)):(ut=null,Ze._ts_parser_enable_logger_wasm(this[0],0));let r=0,s=0;if(n&&n.includedRanges){r=n.includedRanges.length;let e=s=Ze._calloc(r,tt);for(let t=0;t<r;t++)Ot(e,n.includedRanges[t]),e+=tt}const i=Ze._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,r);if(!i)throw ct=null,ut=null,new Error("Parsing failed");const o=new pt(Xe,i,this.language,ct);return ct=null,ut=null,o}reset(){Ze._ts_parser_reset(this[0])}setTimeoutMicros(e){Ze._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ze._ts_parser_timeout_micros(this[0])}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class pt{constructor(e,t,n,r){gt(e),this[0]=t,this.language=n,this.textCallback=r}copy(){const e=Ze._ts_tree_copy(this[0]);return new pt(Xe,e,this.language,this.textCallback)}delete(){Ze._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=at;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]),Et(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"),n=M(at+Ye,"i32"),r=new Array(t);if(t>0){let e=n;for(let n=0;n<t;n++)r[n]=Pt(e),e+=tt;Ze._free(n)}return r}}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]),St(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),Et(this.tree)}namedChild(e){return vt(this),Ze._ts_node_named_child_wasm(this.tree[0],e),Et(this.tree)}childForFieldId(e){return vt(this),Ze._ts_node_child_by_field_id_wasm(this.tree[0],e),Et(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 n=t;for(let t=0;t<e;t++)this._children[t]=Et(this.tree,n),n+=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 n=t;for(let t=0;t<e;t++)this._namedChildren[t]=Et(this.tree,n),n+=Qe;Ze._free(t)}}return this._namedChildren}descendantsOfType(e,t,n){Array.isArray(e)||(e=[e]),t||(t=nt),n||(n=nt);const r=[],s=this.tree.language.types;for(let t=0,n=s.length;t<n;t++)e.includes(s[t])&&r.push(t);const i=Ze._malloc(Ye*r.length);for(let e=0,t=r.length;e<t;e++)N(i+e*Ye,r[e],"i32");vt(this),Ze._ts_node_descendants_of_type_wasm(this.tree[0],i,r.length,t.row,t.column,n.row,n.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]=Et(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]),Et(this.tree)}get previousSibling(){return vt(this),Ze._ts_node_prev_sibling_wasm(this.tree[0]),Et(this.tree)}get nextNamedSibling(){return vt(this),Ze._ts_node_next_named_sibling_wasm(this.tree[0]),Et(this.tree)}get previousNamedSibling(){return vt(this),Ze._ts_node_prev_named_sibling_wasm(this.tree[0]),Et(this.tree)}get parent(){return vt(this),Ze._ts_node_parent_wasm(this.tree[0]),Et(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");vt(this);let n=at+Qe;return N(n,e,"i32"),N(n+Ye,t,"i32"),Ze._ts_node_descendant_for_index_wasm(this.tree[0]),Et(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");vt(this);let n=at+Qe;return N(n,e,"i32"),N(n+Ye,t,"i32"),Ze._ts_node_named_descendant_for_index_wasm(this.tree[0]),Et(this.tree)}descendantForPosition(e,t=e){if(!bt(e)||!bt(t))throw new Error("Arguments must be {row, column} objects");vt(this);let n=at+Qe;return jt(n,e),jt(n+et,t),Ze._ts_node_descendant_for_position_wasm(this.tree[0]),Et(this.tree)}namedDescendantForPosition(e,t=e){if(!bt(e)||!bt(t))throw new Error("Arguments must be {row, column} objects");vt(this);let n=at+Qe;return jt(n,e),jt(n+et,t),Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]),Et(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 n=F[e++>>0];if(!n)return t;t+=String.fromCharCode(n)}}(e);return Ze._free(e),t}}class mt{constructor(e,t){gt(e),this.tree=t,xt(this)}delete(){wt(this),Ze._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){vt(e),wt(this,at+Qe),Ze._ts_tree_cursor_reset_wasm(this.tree[0]),xt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return wt(this),Ze._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return wt(this),Ze._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return wt(this),1===Ze._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return wt(this),1===Ze._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){wt(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 wt(this),Ze._ts_tree_cursor_start_position_wasm(this.tree[0]),St(at)}get endPosition(){return wt(this),Ze._ts_tree_cursor_end_position_wasm(this.tree[0]),St(at)}get startIndex(){return wt(this),Ze._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return wt(this),Ze._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return wt(this),Ze._ts_tree_cursor_current_node_wasm(this.tree[0]),Et(this.tree)}currentFieldId(){return wt(this),Ze._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){wt(this);const e=Ze._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xt(this),1===e}gotoNextSibling(){wt(this);const e=Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xt(this),1===e}gotoParent(){wt(this);const e=Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xt(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 n=J(e),r=Ze._malloc(n+1);G(e,r,n+1);const s=Ze._ts_language_symbol_for_name(this[0],r,n,t);return Ze._free(r),s||null}get nodeTypeCount(){return Ze._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ze._ts_language_symbol_name(this[0],e);return t?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=J(e),n=Ze._malloc(t+1);G(e,n,t+1);const r=Ze._ts_query_new(this[0],n,t,at,at+Ye);if(!r){const t=M(at+Ye,"i32"),r=z(n,M(at,"i32")).length,s=e.substr(r,100).split("\n")[0];let i,o=s.match(rt)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${r}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${r}: '${s}'...`),o=""}throw i.index=r,i.length=o.length,Ze._free(n),i}const s=Ze._ts_query_string_count(r),i=Ze._ts_query_capture_count(r),o=Ze._ts_query_pattern_count(r),a=new Array(i),c=new Array(s);for(let e=0;e<i;e++){const t=Ze._ts_query_capture_name_for_id(r,e,at),n=M(at,"i32");a[e]=z(t,n)}for(let e=0;e<s;e++){const t=Ze._ts_query_string_value_for_id(r,e,at),n=M(at,"i32");c[e]=z(t,n)}const u=new Array(o),l=new Array(o),p=new Array(o),h=new Array(o),m=new Array(o);for(let e=0;e<o;e++){const t=Ze._ts_query_predicates_for_pattern(r,e,at),n=M(at,"i32");h[e]=[],m[e]=[];const s=[];let i=t;for(let t=0;t<n;t++){const t=M(i,"i32"),n=M(i+=Ye,"i32");if(i+=Ye,1===t)s.push({type:"capture",name:a[n]});else if(2===t)s.push({type:"string",value:c[n]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let n=!0;switch(t){case"not-eq?":n=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const t=s[1].name,r=s[2].name;m[e].push((function(e){let s,i;for(const n of e)n.name===t&&(s=n.node),n.name===r&&(i=n.node);return void 0===s||void 0===i||s.text===i.text===n}))}else{const t=s[1].name,r=s[2].value;m[e].push((function(e){for(const s of e)if(s.name===t)return s.node.text===r===n;return!0}))}break;case"not-match?":n=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const r=s[1].name,i=new RegExp(s[2].value);m[e].push((function(e){for(const t of e)if(t.name===r)return i.test(t.node.text)===n;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?l:p;o[e]||(o[e]={}),o[e][s[1].value]=s[2]?s[2].value:null;break;default:h[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return Ze._free(n),new dt(Xe,r,a,m,h,Object.freeze(u),Object.freeze(l),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=n(5530);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const n=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${n}`)}}))))}const r="function"==typeof loadSideModule?loadSideModule:Pe;return t.then((e=>r(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),n=t.find((e=>st.test(e)&&!e.includes("external_scanner_")));n||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[n]();return new ft(Xe,r)}))}}class dt{constructor(e,t,n,r,s,i,o,a){gt(e),this[0]=t,this.captureNames=n,this.textPredicates=r,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ze._ts_query_delete(this[0]),this[0]=0}matches(e,t,n,r){t||(t=nt),n||(n=nt),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");vt(e),Ze._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.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 n=M(l,"i32"),r=M(l+=Ye,"i32");l+=Ye;const s=new Array(r);if(l=yt(this,e.tree,l,s),this.textPredicates[n].every((e=>e(s)))){c[u++]={pattern:n,captures:s};const e=this.setProperties[n];e&&(c[t].setProperties=e);const r=this.assertedProperties[n];r&&(c[t].assertedProperties=r);const i=this.refutedProperties[n];i&&(c[t].refutedProperties=i)}}return c.length=u,Ze._free(o),c}captures(e,t,n,r){t||(t=nt),n||(n=nt),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");vt(e),Ze._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.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"),n=M(l+=Ye,"i32"),r=M(l+=Ye,"i32");if(l+=Ye,u.length=n,l=yt(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[r],n=this.setProperties[t];n&&(e.setProperties=n);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return Ze._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function _t(e,t,n){const r=n-t;let s=e.textCallback(t,null,n);for(t+=s.length;t<n;){const r=e.textCallback(t,null,n);if(!(r&&r.length>0))break;t+=r.length,s+=r}return t>n&&(s=s.slice(0,r)),s}function yt(e,t,n,r){for(let s=0,i=r.length;s<i;s++){const i=M(n,"i32"),o=Et(t,n+=Ye);n+=Qe,r[s]={name:e.captureNames[i],node:o}}return n}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 Et(e,t=at){const n=M(t,"i32");if(0===n)return null;const r=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=n,a.startIndex=r,a.startPosition={row:s,column:i},a[0]=o,a}function wt(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 xt(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 St(e){return{row:M(e,"i32"),column:M(e+Ye,"i32")}}function Ot(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=St(e),e+=et,t.endPosition=St(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,r.onRuntimeInitialized=()=>{lt.init(),t()}})))}}return i}();e.exports=s},5530:()=>{},6287:()=>{},1427:(e,t,n)=>{e.exports=n(6762)}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&!e;)e=r[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();var r={};return(()=>{"use strict";n.r(r),n.d(r,{detect:()=>Sh,detectionRegExp:()=>jh,mediaTypes:()=>xh,namespace:()=>Ph,parse:()=>Oh});var e={};n.r(e),n.d(e,{hasElementSourceMap:()=>Un,includesClasses:()=>Jn,includesSymbols:()=>Gn,isAnnotationElement:()=>Ln,isArrayElement:()=>Tn,isBooleanElement:()=>In,isCommentElement:()=>Dn,isElement:()=>kn,isLinkElement:()=>$n,isMemberElement:()=>Fn,isNullElement:()=>Rn,isNumberElement:()=>Mn,isObjectElement:()=>Cn,isParseResultElement:()=>Bn,isPrimitiveElement:()=>zn,isRefElement:()=>qn,isSourceMapElement:()=>Vn,isStringElement:()=>Nn});var t={};n.r(t),n.d(t,{isJSONReferenceElement:()=>Po,isJSONSchemaElement:()=>Oo,isLinkDescriptionElement:()=>ko,isMediaElement:()=>Ao});var s={};n.r(s),n.d(s,{isOpenApi3_0LikeElement:()=>Xo,isOpenApiExtension:()=>sa,isParameterLikeElement:()=>Yo,isReferenceLikeElement:()=>Qo,isRequestBodyLikeElement:()=>ea,isResponseLikeElement:()=>ta,isServerLikeElement:()=>na,isTagLikeElement:()=>ra});var i={};n.r(i),n.d(i,{isBooleanJsonSchemaElement:()=>_c,isCallbackElement:()=>Wa,isComponentsElement:()=>Ka,isContactElement:()=>Ha,isExampleElement:()=>Za,isExternalDocumentationElement:()=>Xa,isHeaderElement:()=>Ya,isInfoElement:()=>Qa,isLicenseElement:()=>ec,isLinkElement:()=>tc,isLinkElementExternal:()=>nc,isMediaTypeElement:()=>vc,isOpenApi3_0Element:()=>sc,isOpenapiElement:()=>rc,isOperationElement:()=>ic,isParameterElement:()=>oc,isPathItemElement:()=>ac,isPathItemElementExternal:()=>cc,isPathsElement:()=>uc,isReferenceElement:()=>lc,isReferenceElementExternal:()=>pc,isRequestBodyElement:()=>hc,isResponseElement:()=>mc,isResponsesElement:()=>fc,isSchemaElement:()=>dc,isSecurityRequirementElement:()=>yc,isServerElement:()=>gc,isServerVariableElement:()=>bc});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(n){return 0===arguments.length||c(n)?t:e.apply(this,arguments)}}function l(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return c(n)?t:u((function(t){return e(n,t)}));default:return c(n)&&c(r)?t:c(n)?u((function(t){return e(t,r)})):c(r)?u((function(t){return e(n,t)})):e(n,r)}}}const p=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function h(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!p(r)){for(var s=0;s<e.length;){if("function"==typeof r[e[s]])return r[e[s]].apply(r,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}function 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 n=0;n<t.length;){if(!e(t[n]))return!1;n+=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,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,s){return t.apply(this,arguments)};case 5:return function(e,n,r,s,i){return t.apply(this,arguments)};case 6:return function(e,n,r,s,i,o){return t.apply(this,arguments)};case 7:return function(e,n,r,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,n,r,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,n,r,s,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,n,r,s,i,o,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function v(e,t,n){return function(){for(var r=[],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),r[o]=a,c(a)||(i-=1),o+=1}return i<=0?n.apply(this,r):b(i,v(e,r,n))}}const E=l((function(e,t){return 1===e?u(t):b(e,v(e,[],t))}));function w(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function x(e,t,n){for(var r=0,s=n.length;r<s;){if(e(t,n[r]))return!0;r+=1}return!1}function j(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const S="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var O=Object.prototype.toString;const P=function(){return"[object Arguments]"===O.call(arguments)?function(e){return"[object Arguments]"===O.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 n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1};const R="function"!=typeof Object.keys||N?u((function(e){if(Object(e)!==e)return[];var t,n,r=[],s=N&&P(e);for(t in e)!j(t,e)||s&&"length"===t||(r[r.length]=t);if(A)for(n=k.length-1;n>=0;)j(t=k[n],e)&&!M(r,t)&&(r[r.length]=t),n-=1;return r})):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,n,r){var s=w(e);function i(e,t){return T(e,t,n.slice(),r.slice())}return!x((function(e,t){return!x(i,t,e)}),w(t),s)}function T(e,t,n,r){if(S(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||!S(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!S(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=n.length-1;a>=0;){if(n[a]===e)return r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&C(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&C(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=R(e);if(c.length!==R(t).length)return!1;var u=n.concat([e]),l=r.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!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,n){var r,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(s=e[n])&&1/s===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(s=e[n])&&s!=s)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(F(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function q(e,t){for(var n=0,r=t.length,s=Array(r);n<r;)s[n]=e(t[n]),n+=1;return s}function L(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 D=function(e){return(e<10?"0":"")+e};const B="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+D(e.getUTCMonth()+1)+"-"+D(e.getUTCDate())+"T"+D(e.getUTCHours())+":"+D(e.getUTCMinutes())+":"+D(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function V(e,t,n){for(var r=0,s=n.length;r<s;)t=e(t,n[r]),r+=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 J=l(h(["fantasy-land/filter","filter"],G,(function(e,t){return z(t)?V((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},R(t)):function(e,t){for(var n=0,r=t.length,s=[];n<r;)e(t[n])&&(s[s.length]=t[n]),n+=1;return s}(e,t)})));const W=l((function(e,t){return J((n=e,function(){return!n.apply(this,arguments)}),t);var n}));function K(e,t){var n=function(n){var r=t.concat([e]);return $(n,r)?"<Circular>":K(n,r)},r=function(e,t){return q((function(t){return L(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+q(n,e).join(", ")+"))";case"[object Array]":return"["+q(n,e).concat(r(e,W((function(e){return/^\d+$/.test(e)}),R(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):L(B(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":L(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+r(e,R(e)).join(", ")+"}"}}const H=u((function(e){return K(e,[])}));const Z=l((function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var s=n(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=H(e),o=n(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 E(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return V((function(n,r){return n[r]=e(t[r]),n}),{},R(t));default:return q(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 n=e<0?t.length+e:e;return ee(t)?t.charAt(n):t[n]}));const ne=l((function(e,t){if(null!=t)return Q(e)?te(e,t):t[e]}));const re=l((function(e,t){return Y(ne(e),t)}));function se(e){return function t(n,r,s){switch(arguments.length){case 0:return t;case 1:return c(n)?t:l((function(t,r){return e(n,t,r)}));case 2:return c(n)&&c(r)?t:c(n)?l((function(t,n){return e(t,r,n)})):c(r)?l((function(t,r){return e(n,t,r)})):u((function(t){return e(n,r,t)}));default:return c(n)&&c(r)&&c(s)?t:c(n)&&c(r)?l((function(t,n){return e(t,n,s)})):c(n)&&c(s)?l((function(t,n){return e(t,r,n)})):c(r)&&c(s)?l((function(t,r){return e(n,t,r)})):c(n)?u((function(t){return e(t,r,s)})):c(r)?u((function(t){return e(n,t,s)})):c(s)?u((function(t){return e(n,r,t)})):e(n,r,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,n){return function(r,s,i){if(ie(i))return e(r,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(r,s,i,"fantasy-land/reduce");if(null!=i[oe])return n(r,s,i[oe]());if("function"==typeof i.next)return n(r,s,i);if("function"==typeof i.reduce)return t(r,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ce(e,t,n){for(var r=0,s=n.length;r<s;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const ue=l((function(e,t){return b(e.length,(function(){return e.apply(t,arguments)}))}));function le(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function pe(e,t,n,r){return e["@@transducer/result"](n[r](ue(e["@@transducer/step"],e),t))}const he=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,n){return he("function"==typeof e?new me(e):e,t,n)}));const de=u((function(e){return E(fe(Z,0,re("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const _e=u((function(e){return function(){return e}}));const ye=u((function(e){return E(fe(Z,0,re("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function ge(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function be(e,t,n,r){return n[r](e,t)}const ve=ae(V,be,ge);const Ee=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(n){return e(n)(t(n))}:ve((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,s=t.length,i=[];for(n=0;n<r;)i[i.length]=e[n],n+=1;for(n=0;n<s;)i[i.length]=t[n],n+=1;return i}(e,Y(n,t))}),[],e)}));const we=l((function(e,t){return e.apply(this,t)}));function xe(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 Se=l((function(e,t){var n=E(e,t);return E(e,(function(){return V(Ee,Y(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Oe=u((function(e){return Se(e.length,e)}));const Pe=l((function(e,t){return xe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Oe(je)(e,t)}));const Ae=u((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}}));const ke=Oe(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 n=arguments.length;if(0===n)return t();var r=arguments[n-1];return p(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}const Re=se(Me("slice",(function(e,t,n){return Array.prototype.slice.call(n,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 E(e.length,e)}));const Fe=l((function(e,t){return null==t||t!=t?e:t}));function $e(e,t,n){var r,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?e in n._items[s]||(t&&(n._items[s][e]=!0),!1):(t&&(n._items[s]={},n._items[s][e]=!0),!1);case"boolean":if(s in n._items){var i=e?1:0;return!!n._items[s][i]||(t&&(n._items[s][i]=!0),!1)}return t&&(n._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?!!$(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1);case"undefined":return!!n._items[s]||(t&&(n._items[s]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in n._items?!!$(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1)}}const qe=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 Le=l((function(e,t){for(var n=[],r=0,s=e.length,i=t.length,o=new qe,a=0;a<i;a+=1)o.add(t[a]);for(;r<s;)o.add(e[r])&&(n[n.length]=e[r]),r+=1;return n}));var De=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 n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?m(n):n},e}();function Be(e){return function(t){return new De(e,t)}}const Ve=l(h(["take"],Be,(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 n=0,r=t.length;n<r&&e(t[n]);)n+=1;return Re(n,1/0,t)})));const Je=l((function(e,t){return e||t}));const We=l((function(e,t){return xe(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Oe(Je)(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 E(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))}));const Xe=u((function(e){return null==e}));const Ye=l((function(e,t){if(0===e.length||Xe(t))return!1;for(var n=t,r=0;r<e.length;){if(Xe(n)||!j(e[r],n))return!1;n=n[e[r]],r+=1}return!0}));const Qe=l((function(e,t){return Ye([e],t)}));const et=l((function(e,t){return!Xe(t)&&e in t}));const tt=te(0);var nt=function(e,t){switch(arguments.length){case 0:return nt;case 1:return function t(n){return 0===arguments.length?t:S(e,n)};default:return S(e,t)}};const rt=nt;const st=se((function(e,t,n){return E(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))}));const it=l($);const ot=Re(0,-1);"function"==typeof Object.assign&&Object.assign;const at=l((function(e,t){return E(e+1,(function(){var n=arguments[e];if(null!=n&&xe(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(H(n)+' does not have a method named "'+t+'"')}))}));const ct=u((function(e){return null!=e&&F(e,He(e))}));const ut=at(1,"join");const lt=te(-1);const pt=l((function(e,t){return e.map((function(e){for(var n,r=t,s=0;s<e.length;){if(null==r)return;n=e[s],r=Q(n)?te(n,r):r[n],s+=1}return r}))}));const ht=l((function(e,t){return pt([e],t)[0]}));const mt=l((function(e,t){return V((function(n,r){return n[r]=e(t[r],r,t),n}),{},R(t))}));const ft=l((function(e,t){for(var n={},r={},s=0,i=e.length;s<i;)r[e[s]]=1,s+=1;for(var o in t)r.hasOwnProperty(o)||(n[o]=t[o]);return n}));const dt=se((function(e,t,n){return e(ht(t,n))}));const _t=l((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n}));const yt=se((function(e,t,n){return Fe(e,ne(t,n))}));const gt=se((function(e,t,n){return e(ne(t,n))}));function bt(e){return"[object Number]"===Object.prototype.toString.call(e)}const vt=l((function(e,t){if(!bt(e)||!bt(t))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=e;r<t;)n.push(r),r+=1;return n}));const Et=u(m);var wt=l((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const xt=wt;const jt=at(1,"split");const St=l((function(e,t){return F(Ve(e.length,t),e)}));const Ot=l((function(e,t){if(n=e,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+H(e));var n;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 Pt="\t\n\v\f\r \u2028\u2029\ufeff";String.prototype.trim;const At=_e(void 0);const kt=F(At());const Nt=ke(kt);var Mt=n(7952);const Rt=F(null);const It=ke(Rt);function Ct(e){return Ct="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},Ct(e)}const Tt=function(e){return"object"===Ct(e)};const Ft=E(1,Pe(It,Tt));const $t=E(1,Ce(I,rt("GeneratorFunction")));const qt=E(1,Ce(I,rt("AsyncFunction")));const Lt=ye([Ce(I,rt("Function")),$t,qt]);var Dt=Ce(I,rt("Object")),Bt=Ce(H,F(H(Object))),Vt=dt(Pe(Lt,Bt),["constructor"]);const zt=E(1,(function(e){if(!Ft(e)||!Dt(e))return!1;var t=Object.getPrototypeOf(e);return!!Rt(t)||Vt(t)}));class Ut extends Mt.RP{constructor(e,t,n){super(e,t,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Gt=Ut;class Jt extends Mt.RP{constructor(e,t,n){super(e,t,n),this.element="comment"}}const Wt=Jt;class Kt extends Mt.ON{constructor(e,t,n){super(e,t,n),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(kt(t))return!1;const n=this.content.findIndex((e=>e===t));return-1!==n&&(this.content[n]=e,!0)}}const Ht=Kt;class Zt extends Mt.ON{constructor(e,t,n){super(e,t,n),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(null===e)return;const t=new Mt.ON([e.start.row,e.start.column,e.start.char]),n=new Mt.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),n.classes.push("position"),this.push(t).push(n)}}const Xt=Zt;class Yt extends Mt.lS{constructor(){super(),this.register("annotation",Gt),this.register("comment",Wt),this.register("parseResult",Ht),this.register("sourceMap",Xt)}}const Qt=new Yt,en=e=>{const t=new Yt;return zt(e)&&t.use(e),t},tn=Qt;const nn=E(1,Ce(I,rt("String"))),rn=n.p+"23aac571c96605dc25219087ad291441.wasm",sn=globalThis.fetch;Lt(sn)&&(globalThis.fetch=(...e)=>nn(e[0])&&e[0].endsWith("tree-sitter.wasm")?sn.apply(globalThis,[rn,Ie(e)]):sn.apply(globalThis,e));var on=n(9794),an=n(1427);const cn=class extends an{constructor(e,t,n){if(super(e,t,n),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,zt(n)&&et("cause",n)&&!et("cause",this)){const{cause:e}=n;this.cause=e,e instanceof Error&&et("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}};class un extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(cn,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,zt(t)&&et("cause",t)&&!et("cause",this)){const{cause:e}=t;this.cause=e,e instanceof Error&&et("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}}const ln=un,pn=n.p+"7c7ca323880d9fa6e48d1d1b2e78e140.wasm";let hn=null,mn=null;const fn=async e=>{if(null===hn&&null===mn)mn=on.init().then((()=>on.Language.load(pn))).then((e=>{const t=new on;return t.setLanguage(e),t})).finally((()=>{mn=null})),hn=await mn;else if(null===hn&&null!==mn)hn=await mn;else if(null===hn)throw new ln("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return hn.parse(e)},dn=(e,t,n)=>{const r=e[t];if(null!=r){if(!n&&"function"==typeof r)return r;const e=n?r.leave:r.enter;if("function"==typeof e)return e}else{const r=n?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},_n={},yn=e=>null==e?void 0:e.type,gn=e=>"string"==typeof yn(e),bn=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),vn=(e,t,{keyMap:n=null,state:r={},breakSymbol:s=_n,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=dn,nodeTypeGetter:c=yn,nodePredicate:u=gn,nodeCloneFn:l=bn,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),_=[e],y=-1,g=[],b=e;const v=[],E=[];do{y+=1;const e=y===_.length;let n;const x=e&&0!==g.length;if(e){if(n=0===E.length?void 0:v.pop(),b=f,f=E.pop(),x)if(d){b=b.slice();let e=0;for(const[t,n]of g){const r=t-e;n===i?(b.splice(r,1),e+=1):b[r]=n}}else{b=l(b);for(const[e,t]of g)b[e]=t}y=m.index,_=m.keys,g=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(n=d?y:_[y],b=f[n],b===i||void 0===b)continue;v.push(n)}if(E.includes(b))continue;let j;if(!Array.isArray(b)){if(!u(b))throw new ln(`Invalid AST Node: ${JSON.stringify(b)}`);if(p&&E.includes(b)){v.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;j=i.call(t,b,n,f,v,E)}if(j===s)break;if(j===o){if(!e){v.pop();continue}}else if(void 0!==j&&(g.push([n,j]),!e)){if(!u(j)){v.pop();continue}b=j}}var w;if(void 0===j&&x&&g.push([n,b]),!e)m={inArray:d,index:y,keys:_,edits:g,prev:m},d=Array.isArray(b),_=d?b:null!==(w=h[c(b)])&&void 0!==w?w:[],y=-1,g=[],f!==i&&void 0!==f&&E.push(f),f=b}while(void 0!==m);return 0!==g.length?g.at(-1)[1]:e};vn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:s=_n,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=dn,nodeTypeGetter:c=yn,nodePredicate:u=gn,nodeCloneFn:l=bn,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),_=[e],y=-1,g=[],b=e;const v=[],E=[];do{y+=1;const e=y===_.length;let n;const x=e&&0!==g.length;if(e){if(n=0===E.length?void 0:v.pop(),b=f,f=E.pop(),x)if(d){b=b.slice();let e=0;for(const[t,n]of g){const r=t-e;n===i?(b.splice(r,1),e+=1):b[r]=n}}else{b=l(b);for(const[e,t]of g)b[e]=t}y=m.index,_=m.keys,g=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(n=d?y:_[y],b=f[n],b===i||void 0===b)continue;v.push(n)}let j;if(!Array.isArray(b)){if(!u(b))throw new ln(`Invalid AST Node: ${JSON.stringify(b)}`);if(p&&E.includes(b)){v.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;j=await i.call(t,b,n,f,v,E)}if(j===s)break;if(j===o){if(!e){v.pop();continue}}else if(void 0!==j&&(g.push([n,j]),!e)){if(!u(j)){v.pop();continue}b=j}}var w;if(void 0===j&&x&&g.push([n,b]),!e)m={inArray:d,index:y,keys:_,edits:g,prev:m},d=Array.isArray(b),_=d?b:null!==(w=h[c(b)])&&void 0!==w?w:[],y=-1,g=[],f!==i&&void 0!==f&&E.push(f),f=b}while(void 0!==m);return 0!==g.length?g.at(-1)[1]:e};var En=n(6591);const wn=Ze(it),xn=(e,t)=>"function"==typeof(null==t?void 0:t[e]),jn=e=>null!=e&&Object.prototype.hasOwnProperty.call(e,"_storedElement")&&Object.prototype.hasOwnProperty.call(e,"_content"),Sn=(e,t)=>{var n;return(null==t||null===(n=t.primitive)||void 0===n?void 0:n.call(t))===e},On=(e,t)=>{var n,r;return(null==t||null===(n=t.classes)||void 0===n||null===(r=n.includes)||void 0===r?void 0:r.call(n,e))||!1},Pn=(e,t)=>(null==t?void 0:t.element)===e,An=e=>e({hasMethod:xn,hasBasicElementProps:jn,primitiveEq:Sn,isElementType:Pn,hasClass:On}),kn=An((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof Mt.W_||e(n)&&t(void 0,n))),Nn=An((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof Mt.RP||e(n)&&t("string",n))),Mn=An((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof Mt.VL||e(n)&&t("number",n))),Rn=An((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof Mt.zr||e(n)&&t("null",n))),In=An((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof Mt.hh||e(n)&&t("boolean",n))),Cn=An((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof Mt.Sb||e(r)&&t("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),Tn=An((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof Mt.ON&&!(r instanceof Mt.Sb)||e(r)&&t("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),Fn=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Mt.c6||e(r)&&t("member",r)&&n(void 0,r))),$n=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Mt.EA||e(r)&&t("link",r)&&n(void 0,r))),qn=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Mt.tK||e(r)&&t("ref",r)&&n(void 0,r))),Ln=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Gt||e(r)&&t("annotation",r)&&n("array",r))),Dn=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Wt||e(r)&&t("comment",r)&&n("string",r))),Bn=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ht||e(r)&&t("parseResult",r)&&n("array",r))),Vn=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Xt||e(r)&&t("sourceMap",r)&&n("array",r))),zn=e=>Pn("object",e)||Pn("array",e)||Pn("boolean",e)||Pn("number",e)||Pn("string",e)||Pn("null",e)||Pn("member",e),Un=e=>{var t,n;return Vn(null==e||null===(t=e.meta)||void 0===t||null===(n=t.get)||void 0===n?void 0:n.call(t,"sourceMap"))},Gn=(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!Tn(n)&&g(wn(n.toValue()),e)},Jn=(e,t)=>0===e.length||g(wn(t.classes.toValue()),e);const Wn=class extends ln{constructor(e,t){super(e,t),void 0!==t&&Object.assign(this,ft(["cause"],t))}};const Kn=class extends Wn{};const Hn=class extends Kn{};const Zn=class extends Kn{},Xn=e=>"function"==typeof(null==e?void 0:e.clone)?e.clone():e,Yn=e=>{if(e instanceof Mt.rm){const t=[...e].map(Xn);return new Mt.rm(t)}if(e instanceof Mt.O4){const t=[...e].map(Xn);return new Mt.O4(t)}if("function"==typeof(null==e?void 0:e.clone))return e.clone();throw new Hn("Value provided to cloneDeep function couldn't be cloned",{value:e})};Yn.safe=e=>{try{return Yn(e)}catch{return e}};const Qn=e=>{const{key:t,value:n}=e;return new Mt.KeyValuePair(t,n)},er=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Yn(e.meta)),e.attributes.length>0&&(t._attributes=Yn(e.attributes)),kn(e.content)){const n=e.content;t.content=er(n)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof Mt.KeyValuePair?t.content=Qn(e.content):t.content=e.content;return t},tr=e=>{if(e instanceof Mt.KeyValuePair)return Qn(e);if(e instanceof Mt.rm)return(e=>{const t=[...e];return new Mt.rm(t)})(e);if(e instanceof Mt.O4)return(e=>{const t=[...e];return new Mt.O4(t)})(e);if(kn(e))return er(e);throw new Zn("Value provided to cloneShallow function couldn't be cloned",{value:e})};tr.safe=e=>{try{return tr(e)}catch{return e}};const nr=e=>Cn(e)?"ObjectElement":Tn(e)?"ArrayElement":Fn(e)?"MemberElement":Nn(e)?"StringElement":In(e)?"BooleanElement":Mn(e)?"NumberElement":Rn(e)?"NullElement":$n(e)?"LinkElement":qn(e)?"RefElement":void 0,rr=e=>kn(e)?tr(e):bn(e),sr=Ce(nr,nn),ir={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},or=(En({props:{result:[],predicate:o,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:n=this.returnOnFalse}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=n},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),(e,t,{keyMap:n=ir,...r}={})=>vn(e,t,{keyMap:n,nodeTypeGetter:nr,nodePredicate:sr,nodeCloneFn:rr,...r}));or[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=ir,...r}={})=>vn[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:n,nodeTypeGetter:nr,nodePredicate:sr,nodeCloneFn:rr,...r});const ar=ke(Lt);const cr=E(1,Lt(Array.isArray)?Array.isArray:Ce(I,rt("Array")));const ur=Pe(cr,ct);const lr=E(3,(function(e,t,n){var r=ht(e,n),s=ht(ot(e),n);if(!ar(r)&&!ur(e)){var i=ue(r,s);return we(i,t)}})),pr=()=>({predicates:{...e},namespace:tn}),hr=(e,t,n={})=>{if(0===t.length)return e;const r=yt(pr,"toolboxCreator",n),s=yt({},"visitorOptions",n),i=yt(nr,"nodeTypeGetter",s),o=r(),a=t.map((e=>e(o))),c=((e,{visitFnGetter:t=dn,nodeTypeGetter:n=yn}={})=>{const r=new Array(e.length).fill(null);return{enter(s,...i){for(let o=0;o<e.length;o+=1)if(null===r[o]){const a=t(e[o],n(s),!1);if("function"==typeof a){const t=a.call(e[o],s,...i);if(!1===t)r[o]=s;else if(t===_n)r[o]=_n;else if(void 0!==t)return t}}},leave(s,...i){for(let o=0;o<e.length;o+=1)if(null===r[o]){const a=t(e[o],n(s),!0);if("function"==typeof a){const t=a.call(e[o],s,...i);if(t===_n)r[o]=_n;else if(void 0!==t&&!1!==t)return t}}else r[o]===s&&(r[o]=null)}}})(a.map(yt({},"visitor")),{nodeTypeGetter:i});a.forEach(lr(["pre"],[]));const u=or(e,c,s);return a.forEach(lr(["post"],[])),u},mr=(e,{Type:t,plugins:n=[]})=>{const r=new t(e);return hr(r,n,{toolboxCreator:pr,visitorOptions:{nodeTypeGetter:nr}})},fr=e=>(t,n={})=>mr(t,{...n,Type:e});Mt.Sb.refract=fr(Mt.Sb),Mt.ON.refract=fr(Mt.ON),Mt.RP.refract=fr(Mt.RP),Mt.hh.refract=fr(Mt.hh),Mt.zr.refract=fr(Mt.zr),Mt.VL.refract=fr(Mt.VL),Mt.EA.refract=fr(Mt.EA),Mt.tK.refract=fr(Mt.tK),Gt.refract=fr(Gt),Wt.refract=fr(Wt),Ht.refract=fr(Ht),Xt.refract=fr(Xt);const dr=class{hasError=!1;children=[];constructor(e){this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}setFieldName(e){return"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}pushChildren(...e){this.children.push(...e)}},_r=En({props:{sourceMap:!1,annotations:[]},init(){this.annotations=[];const e=(e,t)=>{if(!this.sourceMap)return;const n=new Xt,r=(e=>{const t=new Mt.ON([e.startPosition.row,e.startPosition.column,e.startIndex]),n=new Mt.ON([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),n.classes.push("position"),[t,n]})(e);if(null!==r){const[e,t]=r;n.push(e),n.push(t)}n.astNode=e,t.meta.set("sourceMap",n)};this.enter=function(t){if(t instanceof dr&&!t.isNamed&&t.isMissing){const n=t.type||t.text,r=new Gt(`(Missing ${n})`);r.classes.push("warning"),e(t,r),this.annotations.push(r)}return null},this.document=function(t){const n=new Ht;return n._content=t.children,e(t,n),n},this.ParseResultElement={leave(e){const t=e.findElements(zn);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}},this.object=function(t){const n=new Mt.Sb;return n._content=t.children,e(t,n),n},this.array=function(t){const n=new Mt.ON;return n._content=t.children,e(t,n),n},this.pair=function(t){const n=new Mt.c6;return n.content.key=t.keyNode,n.content.value=t.valueNode,e(t,n),t.children.length>3&&t.children.filter((e=>"ERROR"===e.type)).forEach((e=>{this.ERROR(e,t,[],[t])})),n},this.string=function(t){const n=new Mt.RP(JSON.parse(t.text));return e(t,n),n},this.number=function(t){const n=new Mt.VL(Number(t.text));return e(t,n),n},this.null=function(t){const n=new Mt.zr;return e(t,n),n},this.true=function(t){const n=new Mt.hh(!0);return e(t,n),n},this.false=function(t){const n=new Mt.hh(!1);return e(t,n),n},this.ERROR=function(t,n,r,s){const i=!t.hasError,o=t.text,a=new Gt(i?`(Unexpected ${o})`:`(Error ${o})`);if(a.classes.push("error"),e(t,a),0===s.length){const e=new Ht;return e.push(a),e}return this.annotations.push(a),null}}});class yr{constructor(e){this.cursor=e}document(){return new dr(this.cursor)}object(){return new dr(this.cursor).setFieldName(this.cursor)}array(){return new dr(this.cursor).setFieldName(this.cursor)}pair(){return new dr(this.cursor)}string(){return new dr(this.cursor).setFieldName(this.cursor)}number(){return new dr(this.cursor).setFieldName(this.cursor)}null(){return new dr(this.cursor).setFieldName(this.cursor)}true(){return new dr(this.cursor).setFieldName(this.cursor)}false(){return new dr(this.cursor).setFieldName(this.cursor)}ERROR(){return new dr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new dr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new yr(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new yr(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const gr=yr,br={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...ir},vr=e=>Bn(e)?"ParseResultElement":kn(e)?nr(e):yn(e),Er=e=>kn(e)||gn(e),wr=(e,{sourceMap:t=!1}={})=>{const n=_r(),r=e.walk(),s=[...new gr(r)].at(0);return vn(s,n,{keyMap:br,nodeTypeGetter:vr,nodePredicate:Er,state:{sourceMap:t}})},xr=En({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init({row:e=null,column:t=null,char:n=null}={}){this.row=e,this.column=t,this.char=n}}),jr=En({statics:{type:"position"},props:{type:"position",start:null,end:null},init({start:e=null,end:t=null}={}){this.start=e,this.end=t}}),Sr=En({props:{type:null,position:null,children:[]},init({children:e=[],position:t=null,isMissing:n=!1}={},{stamp:r={}}){this.type=r.type,this.isMissing=n,this.children=e,this.position=t},methods:{clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const n=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,n)})),e}}}),Or=En(Sr,{statics:{type:"literal"},props:{value:null},init({value:e=null}={}){this.value=e}}),Pr=En(Sr),Ar=En(Pr,{statics:{type:"document"},methods:{get child(){return tt(this.children)}}}),kr=En(Sr,{statics:{type:"parseResult"},methods:{get rootNode(){return tt(this.children)}}}),Nr=(e,t)=>(null==t?void 0:t.type)===e,Mr=(Nr.bind(void 0,"literal"),Nr.bind(void 0,"position"),Nr.bind(void 0,"point"),Nr.bind(void 0,"parseResult"),Nr.bind(void 0,"document"),Nr.bind(void 0,"string")),Rr=Nr.bind(void 0,"false"),Ir=Nr.bind(void 0,"true"),Cr=Nr.bind(void 0,"null"),Tr=Nr.bind(void 0,"number"),Fr=Nr.bind(void 0,"array"),$r=Nr.bind(void 0,"object"),qr=Nr.bind(void 0,"stringContent"),Lr=Nr.bind(void 0,"escapeSequence"),Dr=Nr.bind(void 0,"property"),Br=Nr.bind(void 0,"key"),Vr=En(Pr,{statics:{type:"object"},methods:{get properties(){return this.children.filter(Dr)}}}),zr=En(Pr,{statics:{type:"string"},methods:{get value(){return 1===this.children.length?this.children[0].value:this.children.filter((e=>qr(e)||Lr(e))).reduce(((e,t)=>e+t.value),"")}}}),Ur=En(zr,{statics:{type:"key"}}),Gr=En(Pr,{statics:{type:"property"},methods:{get key(){return this.children.find(Br)},get value(){return this.children.find((e=>Rr(e)||Ir(e)||Cr(e)||Tr(e)||Mr(e)||Fr(e)||$r(e)))}}}),Jr=En(Pr,{statics:{type:"array"},methods:{get items(){return this.children.filter((e=>Rr(e)||Ir(e)||Cr(e)||Tr(e)||Mr(e)||Fr(e)||$r))}}}),Wr=En(Pr,{statics:{type:"value"},props:{value:null},init({value:e=null}={}){this.value=e}}),Kr=En(Wr,{statics:{type:"stringContent"}}),Hr=En(Wr,{statics:{type:"number"}}),Zr=En(Wr,{statics:{type:"null"}}),Xr=En(Wr,{statics:{type:"true"}}),Yr=En(Wr,{statics:{type:"false"}}),Qr=En(Sr,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init({value:e=null,isUnexpected:t=!1}={}){this.value=e,this.isUnexpected=t}}),es={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},ts=En({init(){const e=e=>{const t=xr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),n=xr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return jr({start:t,end:n})};this.enter=function(t){if(t instanceof dr&&!t.isNamed){const n=e(t),r=t.type||t.text,{isMissing:s}=t;return Or({value:r,position:n,isMissing:s})}},this.document={enter(t){const n=e(t);return Ar({children:t.children,position:n,isMissing:t.isMissing})},leave:e=>kr({children:[e]})},this.object=function(t){const n=e(t);return Vr({children:t.children,position:n,isMissing:t.isMissing})},this.pair=function(t){const n=e(t),r=t.children.slice(1),{keyNode:s}=t,i=Ur({children:(null==s?void 0:s.children)||[],position:null!=s?e(s):null,isMissing:null!=s&&s.isMissing});return Gr({children:[i,...r],position:n,isMissing:t.isMissing})},this.array=function(t){const n=e(t);return Jr({children:t.children,position:n,isMissing:t.isMissing})},this.string=function(t){const n=e(t),r=Kr({value:JSON.parse(t.text)});return zr({children:[r],position:n,isMissing:t.isMissing})},this.number=function(t){const n=e(t),r=t.text;return Hr({value:r,position:n,isMissing:t.isMissing})},this.null=function(t){const n=e(t),r=t.text;return Zr({value:r,position:n,isMissing:t.isMissing})},this.true=function(t){const n=e(t),r=t.text;return Xr({value:r,position:n,isMissing:t.isMissing})},this.false=function(t){const n=e(t),r=t.text;return Yr({value:r,position:n,isMissing:t.isMissing})},this.ERROR=function(t,n,r,s){const i=e(t),o=Qr({children:t.children,position:i,isUnexpected:!t.hasError,isMissing:t.isMissing,value:t.text});return 0===s.length?kr({children:[o]}):o}}}),ns={[kr.type]:["children"],[Ar.type]:["children"],[Vr.type]:["children"],[Gr.type]:["children"],[Jr.type]:["children"],[Qr.type]:["children"],...ir},rs=e=>Bn(e)?"ParseResultElement":kn(e)?nr(e):yn(e),ss=e=>kn(e)||gn(e),is=En({props:{sourceMap:!1,annotations:[]},init(){this.annotation=[];const e=(e,t)=>{if(!this.sourceMap)return;const n=new Xt;n.position=e.position,n.astNode=e,t.meta.set("sourceMap",n)};this.document=function(e){const t=new Ht;return t._content=e.children,t},this.ParseResultElement={leave(e){const t=e.findElements(zn);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}},this.object=function(t){const n=new Mt.Sb;return n._content=t.children,e(t,n),n},this.property=function(t){const n=new Mt.c6;return n.content.key=t.key,n.content.value=t.value,e(t,n),t.children.length>3&&t.children.filter((e=>"error"===e.type)).forEach((e=>{this.error(e,t,[],[t])})),n},this.key=function(t){const n=new Mt.RP(t.value);return e(t,n),n},this.array=function(t){const n=new Mt.ON;return n._content=t.children,e(t,n),n},this.string=function(t){const n=new Mt.RP(t.value);return e(t,n),n},this.number=function(t){const n=new Mt.VL(Number(t.value));return e(t,n),n},this.null=function(t){const n=new Mt.zr;return e(t,n),n},this.true=function(t){const n=new Mt.hh(!0);return e(t,n),n},this.false=function(t){const n=new Mt.hh(!1);return e(t,n),n},this.literal=function(t){if(t.isMissing){const n=`(Missing ${t.value})`,r=new Gt(n);r.classes.push("warning"),e(t,r),this.annotations.push(r)}return null},this.error=function(t,n,r,s){const i=t.isUnexpected?`(Unexpected ${t.value})`:`(Error ${t.value})`,o=new Gt(i);if(o.classes.push("error"),e(t,o),0===s.length){const e=new Ht;return e.push(o),e}return this.annotations.push(o),null}}}),os=(e,{sourceMap:t=!1}={})=>{const n=e.walk(),r=[...new gr(n)].at(0),s=ts(),i=is(),o=vn(r,s,{keyMap:es,state:{sourceMap:t}});return vn(o.rootNode,i,{keyMap:ns,nodeTypeGetter:rs,nodePredicate:ss,state:{sourceMap:t}})},as=(en(),/(?<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 cs extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="callback"}}const us=cs;class ls extends Mt.Sb{constructor(e,t,n){super(e,t,n),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 ps=ls;class hs extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const ms=hs;class fs extends Mt.Sb{constructor(e,t,n){super(e,t,n),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 ds=fs;class _s extends Mt.Sb{constructor(e,t,n){super(e,t,n),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 ys=_s;class gs extends Mt.Sb{constructor(e,t,n){super(e,t,n),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 bs=gs;class vs extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Es=vs;class ws extends Mt.Sb{constructor(e,t,n){super(e,t,n),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(ws.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const xs=ws;class js extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const Ss=js;class Os extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Ps=Os;class As extends Mt.Sb{constructor(e,t,n){super(e,t,n),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 Nn(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Nn(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 ks=As;class Ns extends Mt.Sb{constructor(e,t,n){super(e,t,n),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 Ms=Ns;class Rs extends Mt.Sb{constructor(e,t,n){super(e,t,n),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 Is=Rs;class Cs extends Mt.Sb{constructor(e,t,n){super(e,t,n),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 Ts=Cs;class Fs extends Mt.RP{constructor(e,t,n){super(e,t,n),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const $s=Fs;class qs extends Mt.Sb{constructor(e,t,n){super(e,t,n),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 Ds extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get 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 Bs=Ds;class Vs extends Mt.Sb{constructor(e,t,n){super(e,t,n),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(Vs.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const zs=Vs;class Us extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get 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 Gs=Us;class Js extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="paths"}}const Ws=Js;class Ks extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Hs=Ks;class Zs extends Mt.Sb{constructor(e,t,n){super(e,t,n),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 Xs=Zs;class Ys extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get 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 Qs=Ys;class ei extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const ti=ei;class ni extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("idProp",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const ri=ni;class si extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const ii=si;class oi extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const ai=oi;class ci extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const ui=ci;const li=Te((function(e,t){return Ce(jt(""),Ge(wn(e)),ut(""))(t)})),pi=(e,t)=>{const n=Fe(e,t);return mt((e=>{if(zt(e)&&Qe("$ref",e)&>(nn,"$ref",e)){const t=ht(["$ref"],e),r=li("#/",t);return ht(r.split("/"),n)}return zt(e)?pi(e,n):e}),e)},hi=En({props:{element:null},methods:{copyMetaAndAttributes(e,t){Un(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),mi=En(hi,{methods:{enter(e){return this.element=Yn(e),_n}}});const fi=_e(At()),di=e=>"string"==typeof(null==e?void 0:e.type)?e.type:nr(e),_i={EphemeralObject:["content"],EphemeralArray:["content"],...ir},yi=(e,t,{keyMap:n=_i,...r}={})=>or(e,t,{keyMap:n,nodeTypeGetter:di,nodePredicate:a,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});yi[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=_i,...n}={})=>or[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:di,nodePredicate:a,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});const gi=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const bi=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}},vi=En.init((function(){const e=new WeakMap;this.BooleanElement=function(e){return e.toValue()},this.NumberElement=function(e){return e.toValue()},this.StringElement=function(e){return e.toValue()},this.NullElement=function(){return null},this.ObjectElement={enter(t){if(e.has(t))return e.get(t).toReference();const n=new bi(t.content);return e.set(t,n),n}},this.EphemeralObject={leave:e=>e.toObject()},this.MemberElement={enter:e=>[e.key,e.value]},this.ArrayElement={enter(t){if(e.has(t))return e.get(t).toReference();const n=new gi(t.content);return e.set(t,n),n}},this.EphemeralArray={leave:e=>e.toArray()}})),Ei=e=>kn(e)?Nn(e)||Mn(e)||In(e)||Rn(e)?e.toValue():yi(e,vi()):e,wi=e=>{if(kn(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},xi={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...ir},ji=En(hi,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return _t(this.passingOptionsNames,this)},retrieveFixedFields(e){return Ce(ht(["visitors",...e,"fixedFields"]),R)(this.specObj)},retrieveVisitor(e){return dt(Lt,["visitors",...e],this.specObj)?ht(["visitors",...e],this.specObj):ht(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return this.retrieveVisitor(e)({...n,...t})},toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n),s=Object.getPrototypeOf(r);return kt(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?Yn(t):(or(t,r,{keyMap:xi,nodeTypeGetter:wi,...n}),r.element)}}}),Si=En(ji,{props:{specPath:fi,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(Nn(r)&&n.includes(Ei(r))&&!this.ignoredFields.includes(Ei(r))){const n=this.toRefractedElement([...t,"fixedFields",Ei(r)],e),i=new Mt.c6(Yn(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ei(r))||this.element.content.push(Yn(s))})),this.copyMetaAndAttributes(e,this.element),_n}}}),Oi=En(Si,mi,{props:{specPath:_e(["document","objects","JSONSchema"])},init(){this.element=new ri}}),Pi=mi,Ai=mi,ki=mi,Ni=mi,Mi=mi,Ri=mi,Ii=mi,Ci=mi,Ti=mi,Fi=mi,$i=En({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),qi=e=>Cn(e)&&e.hasKey("$ref"),Li=En(ji,$i,mi,{methods:{ObjectElement(e){const t=qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),_n},ArrayElement(e){return this.element=new Mt.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),_n}}}),Di=mi,Bi=mi,Vi=mi,zi=mi,Ui=mi,Gi=En(mi,{methods:{ArrayElement(e){return this.element=Yn(e),this.element.classes.push("json-schema-required"),_n}}});const Ji=ke(E(1,Pe(It,We(Tt,Lt))));const Wi=ke(ct);const Ki=de([nn,Ji,Wi]),Hi=En(ji,{props:{fieldPatternPredicate:o,specPath:fi,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,n)=>{if(!this.ignoredFields.includes(Ei(t))&&this.fieldPatternPredicate(Ei(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new Mt.c6(Yn(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ei(t))||this.element.content.push(Yn(n))})),this.copyMetaAndAttributes(e,this.element),_n}}}),Zi=En(Hi,{props:{fieldPatternPredicate:Ki}}),Xi=En(Zi,$i,mi,{props:{specPath:e=>qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Mt.Sb,this.element.classes.push("json-schema-properties")}}),Yi=En(Zi,$i,mi,{props:{specPath:e=>qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Mt.Sb,this.element.classes.push("json-schema-patternProperties")}}),Qi=En(Zi,$i,mi,{props:{specPath:e=>qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Mt.Sb,this.element.classes.push("json-schema-dependencies")}}),eo=En(mi,{methods:{ArrayElement(e){return this.element=Yn(e),this.element.classes.push("json-schema-enum"),_n}}}),to=En(mi,{methods:{StringElement(e){return this.element=Yn(e),this.element.classes.push("json-schema-type"),_n},ArrayElement(e){return this.element=Yn(e),this.element.classes.push("json-schema-type"),_n}}}),no=En(ji,$i,mi,{init(){this.element=new Mt.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),_n}}}),ro=En(ji,$i,mi,{init(){this.element=new Mt.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),_n}}}),so=En(ji,$i,mi,{init(){this.element=new Mt.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),_n}}}),io=En(Zi,$i,mi,{props:{specPath:e=>qi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Mt.Sb,this.element.classes.push("json-schema-definitions")}}),oo=mi,ao=mi,co=mi,uo=mi,lo=mi,po=En(ji,$i,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),_n}}}),ho=mi,mo=En(Si,mi,{props:{specPath:_e(["document","objects","JSONReference"])},init(){this.element=new ii},methods:{ObjectElement(e){const t=Si.compose.methods.ObjectElement.call(this,e);return Nn(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),fo=En(mi,{methods:{StringElement(e){return this.element=Yn(e),this.element.classes.push("reference-value"),_n}}});const _o=ke(Xe);const yo=Pe(cr,Wi);function go(e){return function(e){if(Array.isArray(e))return bo(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 bo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bo(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 bo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vo=Ce(xt(Ae((function(e,t){return e.length>t.length}))),tt,ne("length")),Eo=Te((function(e,t,n){var r=n.apply(void 0,go(e));return _o(r)?Et(r):t}));const wo=st(yo,(function(e){var t=vo(e);return E(t,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return fe(Eo(n),void 0,e)}))}),At),xo=En(ji,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>st(e,_e(t),At))),n=wo(t)(e);return this.element=this.toRefractedElement(n,e),_n}}}),jo=En(xo,{props:{alternator:[{predicate:qi,specPath:["document","objects","JSONReference"]},{predicate:a,specPath:["document","objects","JSONSchema"]}]}}),So={visitors:{value:mi,JSONSchemaOrJSONReferenceVisitor:jo,document:{objects:{JSONSchema:{$visitor:Oi,fixedFields:{id:Pi,$schema:Ai,multipleOf:ki,maximum:Ni,exclusiveMaximum:Mi,minimum:Ri,exclusiveMinimum:Ii,maxLength:Ci,minLength:Ti,pattern:Fi,additionalItems:jo,items:Li,maxItems:Di,minItems:Bi,uniqueItems:Vi,maxProperties:zi,minProperties:Ui,required:Gi,properties:Xi,additionalProperties:jo,patternProperties:Yi,dependencies:Qi,enum:eo,type:to,allOf:no,anyOf:ro,oneOf:so,not:jo,definitions:io,title:oo,description:ao,default:co,format:uo,base:lo,links:po,media:{$ref:"#/visitors/document/objects/Media"},readOnly:ho}},JSONReference:{$visitor:mo,fixedFields:{$ref:fo}},Media:{$visitor:En(Si,mi,{props:{specPath:_e(["document","objects","Media"])},init(){this.element=new ai}}),fixedFields:{binaryEncoding:mi,type:mi}},LinkDescription:{$visitor:En(Si,mi,{props:{specPath:_e(["document","objects","LinkDescription"])},init(){this.element=new ui}}),fixedFields:{href:mi,rel:mi,title:mi,targetSchema:jo,mediaType:mi,method:mi,encType:mi,schema:jo}}}}}},Oo=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ri||e(r)&&t("JSONSchemaDraft4",r)&&n("object",r))),Po=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ii||e(r)&&t("JSONReference",r)&&n("object",r))),Ao=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ai||e(r)&&t("media",r)&&n("object",r))),ko=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ui||e(r)&&t("linkDescription",r)&&n("object",r))),No={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",ri),t.register("jSONReference",ii),t.register("media",ai),t.register("linkDescription",ui),t}},Mo=()=>{const e=en(No);return{predicates:{...t,isStringElement:Nn},namespace:e}},Ro=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=So}={})=>{const s=(0,Mt.Qc)(e),i=pi(r),o=lr(t,[],i);return or(s,o,{state:{specObj:i}}),hr(o.element,n,{toolboxCreator:Mo,visitorOptions:{keyMap:xi,nodeTypeGetter:wi}})},Io=e=>(t,n={})=>Ro(t,{specPath:e,...n});ri.refract=Io(["visitors","document","objects","JSONSchema","$visitor"]),ii.refract=Io(["visitors","document","objects","JSONReference","$visitor"]),ai.refract=Io(["visitors","document","objects","Media","$visitor"]),ui.refract=Io(["visitors","document","objects","LinkDescription","$visitor"]);const Co=class extends ri{constructor(e,t,n){super(e,t,n),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 Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="securityRequirement"}}const Fo=To;class $o extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get 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 qo=$o;class Lo extends Mt.Sb{constructor(e,t,n){super(e,t,n),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 Do=Lo;class Bo extends Mt.Sb{constructor(e,t,n){super(e,t,n),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 zo extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Uo=zo;class Go extends Mt.Sb{constructor(e,t,n){super(e,t,n),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const Jo=Go,Wo=En({props:{element:null},methods:{copyMetaAndAttributes(e,t){Un(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),Ko=e=>{if(kn(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ho={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"],...ir},Zo=En(Wo,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init({specObj:e=this.specObj,openApiGenericElement:t=this.openApiGenericElement,openApiSemanticElement:n=this.openApiSemanticElement}){this.specObj=e,this.openApiGenericElement=t,this.openApiSemanticElement=n},methods:{retrievePassingOptions(){return _t(this.passingOptionsNames,this)},retrieveFixedFields(e){return Ce(ht(["visitors",...e,"fixedFields"]),R)(this.specObj)},retrieveVisitor(e){return dt(Lt,["visitors",...e],this.specObj)?ht(["visitors",...e],this.specObj):ht(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return this.retrieveVisitor(e)({...n,...t})},toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n),s=Object.getPrototypeOf(r);return kt(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?Yn(t):(or(t,r,{keyMap:Ho,nodeTypeGetter:Ko,...n}),r.element)}}}),Xo=e=>Cn(e)&&e.hasKey("openapi")&&e.hasKey("info"),Yo=e=>Cn(e)&&e.hasKey("name")&&e.hasKey("in"),Qo=e=>Cn(e)&&e.hasKey("$ref"),ea=e=>Cn(e)&&e.hasKey("content"),ta=e=>Cn(e)&&e.hasKey("description"),na=Cn,ra=Cn,sa=e=>Nn(e.key)&&St("x-",Ei(e.key)),ia=En(Zo,{props:{specPath:fi,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:sa},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:n=this.canSupportSpecificationExtensions,specificationExtensionPredicate:r=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=n,this.specificationExtensionPredicate=r},methods:{ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(Nn(r)&&n.includes(Ei(r))&&!this.ignoredFields.includes(Ei(r))){const n=this.toRefractedElement([...t,"fixedFields",Ei(r)],e),i=new Mt.c6(Yn(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(Ei(r))||this.element.content.push(Yn(s))})),this.copyMetaAndAttributes(e,this.element),_n}}}),oa=En(Wo,{methods:{enter(e){return this.element=Yn(e),_n}}}),aa=En(ia,oa,{props:{specPath:_e(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ls},methods:{ObjectElement(e){return this.unrefractedElement=e,ia.compose.methods.ObjectElement.call(this,e)}}}),ca=En(Zo,oa,{methods:{StringElement(e){const t=new $s(Ei(e));return this.copyMetaAndAttributes(e,t),this.element=t,_n}}}),ua=En(Zo,{methods:{MemberElement(e){return this.element=Yn(e),this.element.classes.push("specification-extension"),_n}}}),la=En(ia,oa,{props:{specPath:_e(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ss}}),pa=oa,ha=oa,ma=oa,fa=En(oa,{methods:{StringElement(e){return this.element=Yn(e),this.element.classes.push("api-version"),this.element.classes.push("version"),_n}}}),da=En(ia,oa,{props:{specPath:_e(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new ms}}),_a=oa,ya=oa,ga=oa,ba=En(ia,oa,{props:{specPath:_e(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ps}}),va=oa,Ea=oa,wa=En(ia,oa,{props:{specPath:_e(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new ks},methods:{ObjectElement(e){const t=ia.compose.methods.ObjectElement.call(this,e);return(Nn(this.element.operationId)||Nn(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),xa=En(oa,{methods:{StringElement(e){return this.element=Yn(e),this.element.classes.push("reference-value"),_n}}}),ja=En(oa,{methods:{StringElement(e){return this.element=Yn(e),this.element.classes.push("reference-value"),_n}}}),Sa=En(Zo,{props:{fieldPatternPredicate:o,specPath:fi,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:sa},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:n=this.canSupportSpecificationExtensions,specificationExtensionPredicate:r=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=n,this.specificationExtensionPredicate=r},methods:{ObjectElement(e){return e.forEach(((e,t,n)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else if(!this.ignoredFields.includes(Ei(t))&&this.fieldPatternPredicate(Ei(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new Mt.c6(Yn(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ei(t))||this.element.content.push(Yn(n))})),this.copyMetaAndAttributes(e,this.element),_n}}}),Oa=En(Sa,{props:{fieldPatternPredicate:Ki}});class Pa extends Mt.Sb{static primaryClass="link-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(Pa.primaryClass)}}const Aa=Pa,ka=En(Oa,oa,{props:{specPath:_e(["value"])},init(){this.element=new Aa}}),Na=oa,Ma=oa,Ra=En(ia,oa,{props:{specPath:_e(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new Do}}),Ia=En(oa,{methods:{StringElement(e){return this.element=Yn(e),this.element.classes.push("server-url"),_n}}}),Ca=oa;class Ta extends Mt.ON{static primaryClass="servers";constructor(e,t,n){super(e,t,n),this.classes.push(Ta.primaryClass)}}const Fa=Ta,$a=En(Zo,oa,{init(){this.element=new Fa},methods:{ArrayElement(e){return e.forEach((e=>{const t=na(e)?["document","objects","Server"]:["value"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),_n}}}),qa=En(ia,oa,{props:{specPath:_e(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new Vo}}),La=oa,Da=oa,Ba=oa;class Va extends Mt.Sb{static primaryClass="server-variables";constructor(e,t,n){super(e,t,n),this.classes.push(Va.primaryClass)}}const za=Va,Ua=En(Oa,oa,{props:{specPath:_e(["document","objects","ServerVariable"])},init(){this.element=new za}}),Ga=En(ia,oa,{props:{specPath:_e(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ms}}),Ja=En(Zo,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>st(e,_e(t),At))),n=wo(t)(e);return this.element=this.toRefractedElement(n,e),_n}}}),Wa=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof us||e(r)&&t("callback",r)&&n("object",r))),Ka=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ps||e(r)&&t("components",r)&&n("object",r))),Ha=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ms||e(r)&&t("contact",r)&&n("object",r))),Za=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof bs||e(r)&&t("example",r)&&n("object",r))),Xa=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Es||e(r)&&t("externalDocumentation",r)&&n("object",r))),Ya=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof xs||e(r)&&t("header",r)&&n("object",r))),Qa=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ss||e(r)&&t("info",r)&&n("object",r))),ec=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ps||e(r)&&t("license",r)&&n("object",r))),tc=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ks||e(r)&&t("link",r)&&n("object",r))),nc=e=>{if(!tc(e))return!1;if(!Nn(e.operationRef))return!1;const t=Ei(e.operationRef);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},rc=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof $s||e(r)&&t("openapi",r)&&n("string",r))),sc=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n,hasClass:r})=>s=>s instanceof Ls||e(s)&&t("openApi3_0",s)&&n("object",s)&&r("api",s))),ic=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Bs||e(r)&&t("operation",r)&&n("object",r))),oc=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof zs||e(r)&&t("parameter",r)&&n("object",r))),ac=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Gs||e(r)&&t("pathItem",r)&&n("object",r))),cc=e=>{if(!ac(e))return!1;if(!Nn(e.$ref))return!1;const t=Ei(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},uc=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ws||e(r)&&t("paths",r)&&n("object",r))),lc=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Hs||e(r)&&t("reference",r)&&n("object",r))),pc=e=>{if(!lc(e))return!1;if(!Nn(e.$ref))return!1;const t=Ei(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},hc=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Xs||e(r)&&t("requestBody",r)&&n("object",r))),mc=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Qs||e(r)&&t("response",r)&&n("object",r))),fc=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ti||e(r)&&t("responses",r)&&n("object",r))),dc=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Co||e(r)&&t("schema",r)&&n("object",r))),_c=e=>In(e)&&e.classes.includes("boolean-json-schema"),yc=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Fo||e(r)&&t("securityRequirement",r)&&n("object",r))),gc=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Do||e(r)&&t("server",r)&&n("object",r))),bc=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Vo||e(r)&&t("serverVariable",r)&&n("object",r))),vc=An((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ms||e(r)&&t("mediaType",r)&&n("object",r))),Ec=En(Ja,oa,{props:{alternator:[{predicate:Qo,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Ja.compose.methods.enter.call(this,e);return lc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),wc=oa,xc=En(Oa,oa,{props:{specPath:e=>Qo(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=Oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class jc extends Mt.Sb{static primaryClass="media-type-examples";constructor(e,t,n){super(e,t,n),this.classes.push(jc.primaryClass),this.classes.push("examples")}}const Sc=jc,Oc=En(xc,{init(){this.element=new Sc}});class Pc extends Mt.Sb{static primaryClass="media-type-encoding";constructor(e,t,n){super(e,t,n),this.classes.push(Pc.primaryClass)}}const Ac=Pc,kc=En(Oa,oa,{props:{specPath:_e(["document","objects","Encoding"])},init(){this.element=new Ac}}),Nc=En(Oa,oa,{props:{specPath:_e(["value"])},init(){this.element=new Fo}});class Mc extends Mt.ON{static primaryClass="security";constructor(e,t,n){super(e,t,n),this.classes.push(Mc.primaryClass)}}const Rc=Mc,Ic=En(Zo,oa,{init(){this.element=new Rc},methods:{ArrayElement(e){return e.forEach((e=>{if(Cn(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Yn(e))})),this.copyMetaAndAttributes(e,this.element),_n}}}),Cc=En(ia,oa,{props:{specPath:_e(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new ps}}),Tc=En(ia,oa,{props:{specPath:_e(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new Uo}}),Fc=oa,$c=oa,qc=En(ia,oa,{props:{specPath:_e(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new Hs},methods:{ObjectElement(e){const t=ia.compose.methods.ObjectElement.call(this,e);return Nn(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Lc=En(oa,{methods:{StringElement(e){return this.element=Yn(e),this.element.classes.push("reference-value"),_n}}}),Dc=En(ia,oa,{props:{specPath:_e(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new zs},methods:{ObjectElement(e){const t=ia.compose.methods.ObjectElement.call(this,e);return Cn(this.element.contentProp)&&this.element.contentProp.filter(vc).forEach(((e,t)=>{e.setMetaProperty("media-type",Ei(t))})),t}}}),Bc=oa,Vc=oa,zc=oa,Uc=oa,Gc=oa,Jc=oa,Wc=oa,Kc=oa,Hc=oa,Zc=En(Ja,oa,{props:{alternator:[{predicate:Qo,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Ja.compose.methods.enter.call(this,e);return lc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Xc=En(ia,oa,{props:{specPath:_e(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new xs}}),Yc=oa,Qc=oa,eu=oa,tu=oa,nu=oa,ru=oa,su=oa,iu=En(Ja,oa,{props:{alternator:[{predicate:Qo,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Ja.compose.methods.enter.call(this,e);return lc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),ou=oa;class au extends Mt.Sb{static primaryClass="header-examples";constructor(e,t,n){super(e,t,n),this.classes.push(au.primaryClass),this.classes.push("examples")}}const cu=au,uu=En(xc,{init(){this.element=new cu}}),lu=En(Oa,oa,{props:{specPath:_e(["document","objects","MediaType"])},init(){this.element=new Mt.Sb,this.element.classes.push("content")}});class pu extends Mt.Sb{static primaryClass="header-content";constructor(e,t,n){super(e,t,n),this.classes.push(pu.primaryClass),this.classes.push("content")}}const hu=pu,mu=En(lu,{init(){this.element=new hu}}),fu=En(ia,oa,{props:{specPath:_e(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new Co}}),{allOf:du}=So.visitors.document.objects.JSONSchema.fixedFields,_u=En(du,{methods:{ArrayElement(e){const t=du.compose.methods.ArrayElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:yu}=So.visitors.document.objects.JSONSchema.fixedFields,gu=En(yu,{methods:{ArrayElement(e){const t=yu.compose.methods.ArrayElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:bu}=So.visitors.document.objects.JSONSchema.fixedFields,vu=En(bu,{methods:{ArrayElement(e){const t=bu.compose.methods.ArrayElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{definitions:Eu}=So.visitors.document.objects.JSONSchema.fixedFields,wu=En(Eu,{methods:{ObjectElement(e){const t=Eu.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{dependencies:xu}=So.visitors.document.objects.JSONSchema.fixedFields,ju=En(xu,{methods:{ObjectElement(e){const t=xu.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:Su}=So.visitors.document.objects.JSONSchema.fixedFields,Ou=En(Su,{methods:{ObjectElement(e){const t=Su.compose.methods.ObjectElement.call(this,e);return lc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=Yn(e),_n}}}),{properties:Pu}=So.visitors.document.objects.JSONSchema.fixedFields,Au=En(Pu,{methods:{ObjectElement(e){const t=Pu.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{patternProperties:ku}=So.visitors.document.objects.JSONSchema.fixedFields,Nu=En(ku,{methods:{ObjectElement(e){const t=ku.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:Mu}=So.visitors.document.objects.JSONSchema.fixedFields,Ru=En(Mu,{methods:{ArrayElement(e){return this.element=Yn(e),_n}}}),Iu=oa,Cu=oa,Tu=oa,Fu=oa,{JSONSchemaOrJSONReferenceVisitor:$u}=So.visitors,qu=En($u,{methods:{ObjectElement(e){const t=$u.compose.methods.enter.call(this,e);return lc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Lu=Object.fromEntries(Object.entries(So.visitors.document.objects.JSONSchema.fixedFields).map((([e,t])=>t===So.visitors.JSONSchemaOrJSONReferenceVisitor?[e,qu]:[e,t]))),Du=En(ia,oa,{props:{specPath:_e(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new ds}}),Bu=oa;class Vu extends Mt.Sb{static primaryClass="discriminator-mapping";constructor(e,t,n){super(e,t,n),this.classes.push(Vu.primaryClass)}}const zu=Vu,Uu=En(Oa,oa,{props:{specPath:_e(["value"])},init(){this.element=new zu}}),Gu=En(ia,oa,{props:{specPath:_e(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new Jo}}),Ju=oa,Wu=oa,Ku=oa,Hu=oa,Zu=oa,Xu=oa;class Yu extends Mt.Sb{static primaryClass="parameter-examples";constructor(e,t,n){super(e,t,n),this.classes.push(Yu.primaryClass),this.classes.push("examples")}}const Qu=Yu,el=En(xc,{init(){this.element=new Qu}});class tl extends Mt.Sb{static primaryClass="parameter-content";constructor(e,t,n){super(e,t,n),this.classes.push(tl.primaryClass),this.classes.push("content")}}const nl=tl,rl=En(lu,{init(){this.element=new nl}});class sl extends Mt.Sb{static primaryClass="components-schemas";constructor(e,t,n){super(e,t,n),this.classes.push(sl.primaryClass)}}const il=sl,ol=En(Oa,oa,{props:{specPath:e=>Qo(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new il},methods:{ObjectElement(e){const t=Oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}});class al extends Mt.Sb{static primaryClass="components-responses";constructor(e,t,n){super(e,t,n),this.classes.push(al.primaryClass)}}const cl=al,ul=En(Oa,oa,{props:{specPath:e=>Qo(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new cl},methods:{ObjectElement(e){const t=Oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(mc).forEach(((e,t)=>{e.setMetaProperty("http-status-code",Ei(t))})),t}}});class ll extends Mt.Sb{static primaryClass="components-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(ll.primaryClass),this.classes.push("parameters")}}const pl=ll,hl=En(Oa,oa,{props:{specPath:e=>Qo(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new pl},methods:{ObjectElement(e){const t=Oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}});class ml extends Mt.Sb{static primaryClass="components-examples";constructor(e,t,n){super(e,t,n),this.classes.push(ml.primaryClass),this.classes.push("examples")}}const fl=ml,dl=En(Oa,oa,{props:{specPath:e=>Qo(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new fl},methods:{ObjectElement(e){const t=Oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class _l extends Mt.Sb{static primaryClass="components-request-bodies";constructor(e,t,n){super(e,t,n),this.classes.push(_l.primaryClass)}}const yl=_l,gl=En(Oa,oa,{props:{specPath:e=>Qo(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new yl},methods:{ObjectElement(e){const t=Oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}});class bl extends Mt.Sb{static primaryClass="components-headers";constructor(e,t,n){super(e,t,n),this.classes.push(bl.primaryClass)}}const vl=bl,El=En(Oa,oa,{props:{specPath:e=>Qo(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new vl},methods:{ObjectElement(e){const t=Oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(Ya).forEach(((e,t)=>{e.setMetaProperty("header-name",Ei(t))})),t}}});class wl extends Mt.Sb{static primaryClass="components-security-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(wl.primaryClass)}}const xl=wl,jl=En(Oa,oa,{props:{specPath:e=>Qo(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new xl},methods:{ObjectElement(e){const t=Oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}});class Sl extends Mt.Sb{static primaryClass="components-links";constructor(e,t,n){super(e,t,n),this.classes.push(Sl.primaryClass)}}const Ol=Sl,Pl=En(Oa,oa,{props:{specPath:e=>Qo(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new Ol},methods:{ObjectElement(e){const t=Oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});class Al extends Mt.Sb{static primaryClass="components-callbacks";constructor(e,t,n){super(e,t,n),this.classes.push(Al.primaryClass)}}const kl=Al,Nl=En(Oa,oa,{props:{specPath:e=>Qo(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new kl},methods:{ObjectElement(e){const t=Oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Ml=En(ia,oa,{props:{specPath:_e(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new bs},methods:{ObjectElement(e){const t=ia.compose.methods.ObjectElement.call(this,e);return Nn(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),Rl=oa,Il=oa,Cl=oa,Tl=En(oa,{methods:{StringElement(e){return this.element=Yn(e),this.element.classes.push("reference-value"),_n}}}),Fl=En(ia,oa,{props:{specPath:_e(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new Es}}),$l=oa,ql=oa,Ll=En(ia,oa,{props:{specPath:_e(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new ys},methods:{ObjectElement(e){const t=ia.compose.methods.ObjectElement.call(this,e);return Cn(this.element.headers)&&this.element.headers.filter(Ya).forEach(((e,t)=>{e.setMetaProperty("header-name",Ei(t))})),t}}}),Dl=oa;class Bl extends Mt.Sb{static primaryClass="encoding-headers";constructor(e,t,n){super(e,t,n),this.classes.push(Bl.primaryClass)}}const Vl=Bl,zl=En(Oa,oa,{props:{specPath:e=>Qo(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Vl},methods:{ObjectElement(e){const t=Oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Ya(e))return;const n=Ei(t);e.setMetaProperty("headerName",n)})),t}}}),Ul=oa,Gl=oa,Jl=oa,Wl=En(Sa,oa,{props:{fieldPatternPredicate:Ot(/^\/(?<path>.*)$/),specPath:_e(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ws},methods:{ObjectElement(e){const t=Sa.compose.methods.ObjectElement.call(this,e);return this.element.filter(ac).forEach(((e,t)=>{e.setMetaProperty("path",Yn(t))})),t}}}),Kl=En(ia,oa,{props:{specPath:_e(["document","objects","RequestBody"])},init(){this.element=new Xs},methods:{ObjectElement(e){const t=ia.compose.methods.ObjectElement.call(this,e);return Cn(this.element.contentProp)&&this.element.contentProp.filter(vc).forEach(((e,t)=>{e.setMetaProperty("media-type",Ei(t))})),t}}}),Hl=oa;class Zl extends Mt.Sb{static primaryClass="request-body-content";constructor(e,t,n){super(e,t,n),this.classes.push(Zl.primaryClass),this.classes.push("content")}}const Xl=Zl,Yl=En(lu,{init(){this.element=new Xl}}),Ql=oa,ep=En(Sa,oa,{props:{fieldPatternPredicate:Ot(/{(?<expression>.*)}/),specPath:_e(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new us},methods:{ObjectElement(e){const t=Oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(ac).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",Ei(t))})),t}}}),tp=En(ia,oa,{props:{specPath:_e(["document","objects","Response"])},init(){this.element=new Qs},methods:{ObjectElement(e){const t=ia.compose.methods.ObjectElement.call(this,e);return Cn(this.element.contentProp)&&this.element.contentProp.filter(vc).forEach(((e,t)=>{e.setMetaProperty("media-type",Ei(t))})),Cn(this.element.headers)&&this.element.headers.filter(Ya).forEach(((e,t)=>{e.setMetaProperty("header-name",Ei(t))})),t}}}),np=oa;class rp extends Mt.Sb{static primaryClass="response-headers";constructor(e,t,n){super(e,t,n),this.classes.push(rp.primaryClass)}}const sp=rp,ip=En(Oa,oa,{props:{specPath:e=>Qo(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new sp},methods:{ObjectElement(e){const t=Oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Ya(e))return;const n=Ei(t);e.setMetaProperty("header-name",n)})),t}}});class op extends Mt.Sb{static primaryClass="response-content";constructor(e,t,n){super(e,t,n),this.classes.push(op.primaryClass),this.classes.push("content")}}const ap=op,cp=En(lu,{init(){this.element=new ap}});class up extends Mt.Sb{static primaryClass="response-links";constructor(e,t,n){super(e,t,n),this.classes.push(up.primaryClass)}}const lp=up,pp=En(Oa,oa,{props:{specPath:e=>Qo(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new lp},methods:{ObjectElement(e){const t=Oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),hp=En(ia,Sa,{props:{specPathFixedFields:fi,specPathPatternedFields:fi},methods:{ObjectElement(e){const{specPath:t,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...n,...Le(e.keys(),t)],ia.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Sa.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return _n}}}),mp=En(hp,oa,{props:{specPathFixedFields:_e(["document","objects","Responses"]),specPathPatternedFields:e=>Qo(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:Ot(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${vt(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new ti},methods:{ObjectElement(e){const t=hp.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(mc).forEach(((e,t)=>{const n=Yn(t);this.fieldPatternPredicate(Ei(n))&&e.setMetaProperty("http-status-code",n)})),t}}}),fp=En(Ja,oa,{props:{alternator:[{predicate:Qo,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=Ja.compose.methods.enter.call(this,e);return lc(this.element)?this.element.setMetaProperty("referenced-element","response"):mc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),dp=En(ia,oa,{props:{specPath:_e(["document","objects","Operation"])},init(){this.element=new Bs}});class _p extends Mt.ON{static primaryClass="operation-tags";constructor(e,t,n){super(e,t,n),this.classes.push(_p.primaryClass)}}const yp=_p,gp=En(oa,{init(){this.element=new yp},methods:{ArrayElement(e){return this.element=this.element.concat(Yn(e)),_n}}}),bp=oa,vp=oa,Ep=oa;class wp extends Mt.ON{static primaryClass="operation-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(wp.primaryClass),this.classes.push("parameters")}}const xp=wp,jp=En(Zo,oa,{init(){this.element=new Mt.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Qo(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);lc(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),_n}}}),Sp=En(jp,{init(){this.element=new xp}}),Op=En(Ja,{props:{alternator:[{predicate:Qo,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=Ja.compose.methods.enter.call(this,e);return lc(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}});class Pp extends Mt.Sb{static primaryClass="operation-callbacks";constructor(e,t,n){super(e,t,n),this.classes.push(Pp.primaryClass)}}const Ap=Pp,kp=En(Oa,oa,{props:{specPath:e=>Qo(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Ap},methods:{ObjectElement(e){const t=Oa.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Np=oa;class Mp extends Mt.ON{static primaryClass="operation-security";constructor(e,t,n){super(e,t,n),this.classes.push(Mp.primaryClass),this.classes.push("security")}}const Rp=Mp,Ip=En(Zo,oa,{init(){this.element=new Rp},methods:{ArrayElement(e){return e.forEach((e=>{const t=Cn(e)?["document","objects","SecurityRequirement"]:["value"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),_n}}});class Cp extends Mt.ON{static primaryClass="operation-servers";constructor(e,t,n){super(e,t,n),this.classes.push(Cp.primaryClass),this.classes.push("servers")}}const Tp=Cp,Fp=En($a,{init(){this.element=new Tp}}),$p=En(ia,oa,{props:{specPath:_e(["document","objects","PathItem"])},init(){this.element=new Gs},methods:{ObjectElement(e){const t=ia.compose.methods.ObjectElement.call(this,e);return this.element.filter(ic).forEach(((e,t)=>{const n=Yn(t);n.content=Ei(n).toUpperCase(),e.setMetaProperty("http-method",n)})),Nn(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),qp=En(oa,{methods:{StringElement(e){return this.element=Yn(e),this.element.classes.push("reference-value"),_n}}}),Lp=oa,Dp=oa;class Bp extends Mt.ON{static primaryClass="path-item-servers";constructor(e,t,n){super(e,t,n),this.classes.push(Bp.primaryClass),this.classes.push("servers")}}const Vp=Bp,zp=En($a,{init(){this.element=new Vp}});class Up extends Mt.ON{static primaryClass="path-item-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(Up.primaryClass),this.classes.push("parameters")}}const Gp=Up,Jp=En(jp,{init(){this.element=new Gp}}),Wp=En(ia,oa,{props:{specPath:_e(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new qo}}),Kp=oa,Hp=oa,Zp=oa,Xp=oa,Yp=oa,Qp=oa,eh=oa,th=En(ia,oa,{props:{specPath:_e(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ts}}),nh=En(ia,oa,{props:{specPath:_e(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new Is}}),rh=oa,sh=oa,ih=oa;class oh extends Mt.Sb{static primaryClass="oauth-flow-scopes";constructor(e,t,n){super(e,t,n),this.classes.push(oh.primaryClass)}}const ah=oh,ch=En(Oa,oa,{props:{specPath:_e(["value"])},init(){this.element=new ah}});class uh extends Mt.ON{static primaryClass="tags";constructor(e,t,n){super(e,t,n),this.classes.push(uh.primaryClass)}}const lh=uh,ph={$visitor:qc,fixedFields:{$ref:Lc}},hh={$visitor:fu,fixedFields:{...Lu,allOf:_u,anyOf:gu,oneOf:vu,definitions:wu,items:Ou,dependencies:ju,properties:Au,patternProperties:Nu,type:Ru,nullable:Iu,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:Cu,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:Tu,deprecated:Fu}},mh={visitors:{value:oa,document:{objects:{OpenApi:{$visitor:aa,fixedFields:{openapi:ca,info:{$ref:"#/visitors/document/objects/Info"},servers:$a,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Ic,tags:En(Zo,oa,{init(){this.element=new lh},methods:{ArrayElement(e){return e.forEach((e=>{const t=ra(e)?["document","objects","Tag"]:["value"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),_n}}}),externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:la,fixedFields:{title:pa,description:ha,termsOfService:ma,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:fa}},Contact:{$visitor:da,fixedFields:{name:_a,url:ya,email:ga}},License:{$visitor:ba,fixedFields:{name:va,url:Ea}},Server:{$visitor:Ra,fixedFields:{url:Ia,description:Ca,variables:Ua}},ServerVariable:{$visitor:qa,fixedFields:{enum:La,default:Da,description:Ba}},Components:{$visitor:Cc,fixedFields:{schemas:ol,responses:ul,parameters:hl,examples:dl,requestBodies:gl,headers:El,securitySchemes:jl,links:Pl,callbacks:Nl}},Paths:{$visitor:Wl},PathItem:{$visitor:$p,fixedFields:{$ref:qp,summary:Lp,description:Dp,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:zp,parameters:Jp}},Operation:{$visitor:dp,fixedFields:{tags:gp,summary:bp,description:vp,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Ep,parameters:Sp,requestBody:Op,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:kp,deprecated:Np,security:Ip,servers:Fp}},ExternalDocumentation:{$visitor:Fl,fixedFields:{description:$l,url:ql}},Parameter:{$visitor:Dc,fixedFields:{name:Bc,in:Vc,description:zc,required:Uc,deprecated:Gc,allowEmptyValue:Jc,style:Wc,explode:Kc,allowReserved:Hc,schema:Zc,example:Xu,examples:el,content:rl}},RequestBody:{$visitor:Kl,fixedFields:{description:Hl,content:Yl,required:Ql}},MediaType:{$visitor:Ga,fixedFields:{schema:Ec,example:wc,examples:Oc,encoding:kc}},Encoding:{$visitor:Ll,fixedFields:{contentType:Dl,headers:zl,style:Ul,explode:Gl,allowReserved:Jl}},Responses:{$visitor:mp,fixedFields:{default:fp}},Response:{$visitor:tp,fixedFields:{description:np,headers:ip,content:cp,links:pp}},Callback:{$visitor:ep},Example:{$visitor:Ml,fixedFields:{summary:Rl,description:Il,value:Cl,externalValue:Tl}},Link:{$visitor:wa,fixedFields:{operationRef:xa,operationId:ja,parameters:ka,requestBody:Na,description:Ma,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Xc,fixedFields:{description:Yc,required:Qc,deprecated:eu,allowEmptyValue:tu,style:nu,explode:ru,allowReserved:su,schema:iu,example:ou,examples:uu,content:mu}},Tag:{$visitor:Tc,fixedFields:{name:Fc,description:$c,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},JSONReference:ph,Reference:ph,JSONSchema:hh,Schema:hh,LinkDescription:So.visitors.document.objects.LinkDescription,Media:So.visitors.document.objects.Media,Discriminator:{$visitor:Du,fixedFields:{propertyName:Bu,mapping:Uu}},XML:{$visitor:Gu,fixedFields:{name:Ju,namespace:Wu,prefix:Ku,attribute:Hu,wrapped:Zu}},SecurityScheme:{$visitor:Wp,fixedFields:{type:Kp,description:Hp,name:Zp,in:Xp,scheme:Yp,bearerFormat:Qp,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:eh}},OAuthFlows:{$visitor:th,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:nh,fixedFields:{authorizationUrl:rh,tokenUrl:sh,refreshUrl:ih,scopes:ch}},SecurityRequirement:{$visitor:Nc}},extension:{$visitor:ua}}}},fh={namespace:e=>{const{base:t}=e;return t.register("callback",us),t.register("components",ps),t.register("contact",ms),t.register("discriminator",ds),t.register("encoding",ys),t.register("example",bs),t.register("externalDocumentation",Es),t.register("header",xs),t.register("info",Ss),t.register("license",Ps),t.register("link",ks),t.register("mediaType",Ms),t.register("oAuthFlow",Is),t.register("oAuthFlows",Ts),t.register("openapi",$s),t.register("openApi3_0",Ls),t.register("operation",Bs),t.register("parameter",zs),t.register("pathItem",Gs),t.register("paths",Ws),t.register("reference",Hs),t.register("requestBody",Xs),t.register("response",Qs),t.register("responses",ti),t.register("schema",Co),t.register("securityRequirement",Fo),t.register("securityScheme",qo),t.register("server",Do),t.register("serverVariable",Vo),t.register("tag",Uo),t.register("xml",Jo),t}},dh=()=>{const e=en(fh);return{predicates:{...s,...i,isStringElement:Nn},namespace:e}},_h=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:n=[]}={})=>{const r=(0,Mt.Qc)(e),s=pi(mh),i=lr(t,[],s);return or(r,i,{state:{specObj:s}}),hr(i.element,n,{toolboxCreator:dh,visitorOptions:{keyMap:Ho,nodeTypeGetter:Ko}})},yh=e=>(t,n={})=>_h(t,{specPath:e,...n});us.refract=yh(["visitors","document","objects","Callback","$visitor"]),ps.refract=yh(["visitors","document","objects","Components","$visitor"]),ms.refract=yh(["visitors","document","objects","Contact","$visitor"]),bs.refract=yh(["visitors","document","objects","Example","$visitor"]),ds.refract=yh(["visitors","document","objects","Discriminator","$visitor"]),ys.refract=yh(["visitors","document","objects","Encoding","$visitor"]),Es.refract=yh(["visitors","document","objects","ExternalDocumentation","$visitor"]),xs.refract=yh(["visitors","document","objects","Header","$visitor"]),Ss.refract=yh(["visitors","document","objects","Info","$visitor"]),Ps.refract=yh(["visitors","document","objects","License","$visitor"]),ks.refract=yh(["visitors","document","objects","Link","$visitor"]),Ms.refract=yh(["visitors","document","objects","MediaType","$visitor"]),Is.refract=yh(["visitors","document","objects","OAuthFlow","$visitor"]),Ts.refract=yh(["visitors","document","objects","OAuthFlows","$visitor"]),$s.refract=yh(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Ls.refract=yh(["visitors","document","objects","OpenApi","$visitor"]),Bs.refract=yh(["visitors","document","objects","Operation","$visitor"]),zs.refract=yh(["visitors","document","objects","Parameter","$visitor"]),Gs.refract=yh(["visitors","document","objects","PathItem","$visitor"]),Ws.refract=yh(["visitors","document","objects","Paths","$visitor"]),Hs.refract=yh(["visitors","document","objects","Reference","$visitor"]),Xs.refract=yh(["visitors","document","objects","RequestBody","$visitor"]),Qs.refract=yh(["visitors","document","objects","Response","$visitor"]),ti.refract=yh(["visitors","document","objects","Responses","$visitor"]),Co.refract=yh(["visitors","document","objects","Schema","$visitor"]),Fo.refract=yh(["visitors","document","objects","SecurityRequirement","$visitor"]),qo.refract=yh(["visitors","document","objects","SecurityScheme","$visitor"]),Do.refract=yh(["visitors","document","objects","Server","$visitor"]),Vo.refract=yh(["visitors","document","objects","ServerVariable","$visitor"]),Uo.refract=yh(["visitors","document","objects","Tag","$visitor"]),Jo.refract=yh(["visitors","document","objects","XML","$visitor"]);const gh=class extends ln{};const bh=class extends gh{};const vh=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new bh('"filterByFormat" method is not implemented.')}findBy(){throw new bh('"findBy" method is not implemented.')}latest(){throw new bh('"latest" method is not implemented.')}};class Eh extends vh{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.0.3",t="generic"){const n="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(n)))||this.unknownMediaType}latest(e="generic"){return lt(this.filterByFormat(e))}}const wh=new Eh("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"),xh=new Eh(...wh.filterByFormat("generic"),...wh.filterByFormat("json")),jh=/"openapi"\s*:\s*"(?<version_json>3\.0\.([0123])(?:-rc[012])?)"/,Sh=async e=>jh.test(e)&&await(async e=>{if(!as.test(e))return!1;try{return"ERROR"!==(await fn(e)).rootNode.type}catch{return!1}})(e),Oh=async(e,t={})=>{const n=yt({},"refractorOpts",t),r=ft(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1,syntacticAnalysis:n="direct"}={})=>{const r=await fn(e);let s;return s="indirect"===n?os(r,{sourceMap:t}):wr(r,{sourceMap:t}),s})(e,r),{result:i}=s;if(Nt(i)){const e=Ls.refract(i,n);e.classes.push("result"),s.replaceResult(e)}return s},Ph=en(fh)})(),r})()));
|