From c7874a9a16133ec408d63f13f1c8fa7650957b6e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 2 Sep 2024 23:52:50 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20swagger-?= =?UTF-8?q?api/apidom@75bb31b4d3d137c86f2ba967af4f061474c76bae=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asset-manifest.json | 14 +++++++------- index.html | 2 +- ...506.4908474e.chunk.js => 506.2aa22bc8.chunk.js} | 4 ++-- ...474e.chunk.js.map => 506.2aa22bc8.chunk.js.map} | 2 +- ...859.9d7c9aec.chunk.js => 859.524169aa.chunk.js} | 6 +++--- ...CENSE.txt => 859.524169aa.chunk.js.LICENSE.txt} | 0 static/js/859.524169aa.chunk.js.map | 1 + static/js/859.9d7c9aec.chunk.js.map | 1 - static/js/{main.e5be7d47.js => main.01e5c48a.js} | 6 +++--- ...js.LICENSE.txt => main.01e5c48a.js.LICENSE.txt} | 0 .../{main.e5be7d47.js.map => main.01e5c48a.js.map} | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) rename static/js/{506.4908474e.chunk.js => 506.2aa22bc8.chunk.js} (99%) rename static/js/{506.4908474e.chunk.js.map => 506.2aa22bc8.chunk.js.map} (99%) rename static/js/{859.9d7c9aec.chunk.js => 859.524169aa.chunk.js} (72%) rename static/js/{859.9d7c9aec.chunk.js.LICENSE.txt => 859.524169aa.chunk.js.LICENSE.txt} (100%) create mode 100644 static/js/859.524169aa.chunk.js.map delete mode 100644 static/js/859.9d7c9aec.chunk.js.map rename static/js/{main.e5be7d47.js => main.01e5c48a.js} (99%) rename static/js/{main.e5be7d47.js.LICENSE.txt => main.01e5c48a.js.LICENSE.txt} (100%) rename static/js/{main.e5be7d47.js.map => main.01e5c48a.js.map} (99%) diff --git a/asset-manifest.json b/asset-manifest.json index ef4a5445f4..74922a2b56 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,22 +1,22 @@ { "files": { "main.css": "/apidom/static/css/main.e6c13ad2.css", - "main.js": "/apidom/static/js/main.e5be7d47.js", - "static/js/506.4908474e.chunk.js": "/apidom/static/js/506.4908474e.chunk.js", + "main.js": "/apidom/static/js/main.01e5c48a.js", + "static/js/506.2aa22bc8.chunk.js": "/apidom/static/js/506.2aa22bc8.chunk.js", "static/js/878.f7f3c6fe.chunk.js": "/apidom/static/js/878.f7f3c6fe.chunk.js", - "static/js/859.9d7c9aec.chunk.js": "/apidom/static/js/859.9d7c9aec.chunk.js", + "static/js/859.524169aa.chunk.js": "/apidom/static/js/859.524169aa.chunk.js", "static/media/tree-sitter-yaml.wasm": "/apidom/static/media/tree-sitter-yaml.d396281e11774e0afa7a.wasm", "static/media/tree-sitter.wasm": "/apidom/static/media/tree-sitter.23aac571c96605dc2521.wasm", "static/media/tree-sitter-json.wasm": "/apidom/static/media/tree-sitter-json.64a30dfa8a51b6a090eb.wasm", "index.html": "/apidom/index.html", "main.e6c13ad2.css.map": "/apidom/static/css/main.e6c13ad2.css.map", - "main.e5be7d47.js.map": "/apidom/static/js/main.e5be7d47.js.map", - "506.4908474e.chunk.js.map": "/apidom/static/js/506.4908474e.chunk.js.map", + "main.01e5c48a.js.map": "/apidom/static/js/main.01e5c48a.js.map", + "506.2aa22bc8.chunk.js.map": "/apidom/static/js/506.2aa22bc8.chunk.js.map", "878.f7f3c6fe.chunk.js.map": "/apidom/static/js/878.f7f3c6fe.chunk.js.map", - "859.9d7c9aec.chunk.js.map": "/apidom/static/js/859.9d7c9aec.chunk.js.map" + "859.524169aa.chunk.js.map": "/apidom/static/js/859.524169aa.chunk.js.map" }, "entrypoints": [ "static/css/main.e6c13ad2.css", - "static/js/main.e5be7d47.js" + "static/js/main.01e5c48a.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 5c32d257cc..8c248ade4e 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -ApiDOM playground
\ No newline at end of file +ApiDOM playground
\ No newline at end of file diff --git a/static/js/506.4908474e.chunk.js b/static/js/506.2aa22bc8.chunk.js similarity index 99% rename from static/js/506.4908474e.chunk.js rename to static/js/506.2aa22bc8.chunk.js index dad7ff45ad..301cc46b7e 100644 --- a/static/js/506.4908474e.chunk.js +++ b/static/js/506.2aa22bc8.chunk.js @@ -1,2 +1,2 @@ -(()=>{var e={79795:(e,t,s)=>{"use strict";var n={};s.r(n),s.d(n,{hasElementSourceMap:()=>Me,includesClasses:()=>Ce,includesSymbols:()=>qe,isAnnotationElement:()=>$e,isArrayElement:()=>Ee,isBooleanElement:()=>be,isCommentElement:()=>Pe,isElement:()=>fe,isLinkElement:()=>Se,isMemberElement:()=>we,isNullElement:()=>ye,isNumberElement:()=>ve,isObjectElement:()=>xe,isParseResultElement:()=>Ae,isPrimitiveElement:()=>Be,isRefElement:()=>je,isSourceMapElement:()=>Oe,isStringElement:()=>ge});var i={};s.r(i),s.d(i,{detect:()=>ws,detectionRegExp:()=>xs,lexicalAnalysis:()=>vt,mediaTypes:()=>Es,namespace:()=>bs,parse:()=>Ss,syntacticAnalysis:()=>Rt,syntacticAnalysisDirect:()=>Rt,syntacticAnalysisIndirect:()=>ys});var r={};s.r(r),s.d(r,{detect:()=>oi,lexicalAnalysis:()=>Os,mediaTypes:()=>ri,namespace:()=>ii,parse:()=>ci,syntacticAnalysis:()=>ni});var o={};s.r(o),s.d(o,{isJSONReferenceElement:()=>Ur,isJSONSchemaElement:()=>Jr,isLinkDescriptionElement:()=>Wr,isMediaElement:()=>Hr});var c={};s.r(c),s.d(c,{isReferenceLikeElement:()=>Fo,isSwaggerExtension:()=>Ro});var a={};s.r(a),s.d(a,{isContactElement:()=>yc,isDefinitionsElement:()=>kc,isExampleElement:()=>Oc,isExternalDocumentationElement:()=>wc,isHeaderElement:()=>Bc,isHeadersElement:()=>Ac,isInfoElement:()=>gc,isItemsElement:()=>jc,isLicenseElement:()=>vc,isOperationElement:()=>Ec,isParameterElement:()=>Sc,isParametersDefinitionsElement:()=>Ic,isPathItemElement:()=>xc,isPathsElement:()=>bc,isReferenceElement:()=>qc,isResponseElement:()=>Pc,isResponsesDefinitionsElement:()=>Rc,isResponsesElement:()=>$c,isSchemaElement:()=>Cc,isScopesElement:()=>Dc,isSecurityDefinitionsElement:()=>Fc,isSecurityRequirementElement:()=>Nc,isSecuritySchemeElement:()=>_c,isSwaggerElement:()=>mc,isSwaggerVersionElement:()=>fc,isTagElement:()=>Mc,isXmlElement:()=>Tc});var l={};s.r(l),s.d(l,{detect:()=>Rl,detectionRegExp:()=>Tl,mediaTypes:()=>Cl,namespace:()=>kl,parse:()=>Fl});var u={};s.r(u),s.d(u,{detect:()=>Dl,detectionRegExp:()=>_l,mediaTypes:()=>Il,namespace:()=>Vl,parse:()=>Nl});var p={};s.r(p),s.d(p,{isBooleanJsonSchemaElement:()=>ch,isCallbackElement:()=>Vp,isComponentsElement:()=>Lp,isContactElement:()=>Jp,isExampleElement:()=>Up,isExternalDocumentationElement:()=>Hp,isHeaderElement:()=>Wp,isInfoElement:()=>Gp,isLicenseElement:()=>Kp,isLinkElement:()=>Xp,isMediaTypeElement:()=>hh,isOpenApi3_0Element:()=>Yp,isOpenapiElement:()=>zp,isOperationElement:()=>Qp,isParameterElement:()=>Zp,isPathItemElement:()=>eh,isPathsElement:()=>th,isReferenceElement:()=>sh,isRequestBodyElement:()=>nh,isResponseElement:()=>ih,isResponsesElement:()=>rh,isSchemaElement:()=>oh,isSecurityRequirementElement:()=>ah,isSecuritySchemeElement:()=>lh,isServerElement:()=>uh,isServerVariableElement:()=>ph,isServersElement:()=>dh});var h={};s.r(h),s.d(h,{detect:()=>tg,detectionRegExp:()=>eg,mediaTypes:()=>Zf,namespace:()=>ng,parse:()=>sg});var d={};s.r(d),s.d(d,{detect:()=>og,detectionRegExp:()=>rg,mediaTypes:()=>ig,namespace:()=>ag,parse:()=>cg});var m={};s.r(m),s.d(m,{isBooleanJsonSchemaElement:()=>Uv,isCallbackElement:()=>Ev,isComponentsElement:()=>wv,isContactElement:()=>Sv,isExampleElement:()=>jv,isExternalDocumentationElement:()=>$v,isHeaderElement:()=>Pv,isInfoElement:()=>Av,isJsonSchemaDialectElement:()=>Ov,isLicenseElement:()=>Bv,isLinkElement:()=>Mv,isMediaTypeElement:()=>Xv,isOpenApi3_1Element:()=>Cv,isOpenapiElement:()=>qv,isOperationElement:()=>Tv,isParameterElement:()=>Rv,isPathItemElement:()=>Fv,isPathItemElementExternal:()=>kv,isPathsElement:()=>Iv,isReferenceElement:()=>_v,isReferenceElementExternal:()=>Dv,isRequestBodyElement:()=>Nv,isResponseElement:()=>Vv,isResponsesElement:()=>Lv,isSchemaElement:()=>Jv,isSecurityRequirementElement:()=>Hv,isSecuritySchemeElement:()=>Wv,isServerElement:()=>Gv,isServerVariableElement:()=>Kv});var f={};s.r(f),s.d(f,{detect:()=>jb,detectionRegExp:()=>Sb,mediaTypes:()=>wb,namespace:()=>Pb,parse:()=>$b});var g={};s.r(g),s.d(g,{detect:()=>Bb,detectionRegExp:()=>Ob,mediaTypes:()=>Ab,namespace:()=>qb,parse:()=>Mb});var v={};s.r(v),s.d(v,{isJSONReferenceElement:()=>Ur,isJSONSchemaElement:()=>Wb,isLinkDescriptionElement:()=>Gb,isMediaElement:()=>Hr});var y={};s.r(y),s.d(y,{isJSONReferenceElement:()=>Ur,isJSONSchemaElement:()=>$E,isLinkDescriptionElement:()=>PE});var b={};s.r(b),s.d(b,{isAsyncApi2Element:()=>NE,isAsyncApiVersionElement:()=>VE,isBooleanJsonSchemaElement:()=>tw,isChannelBindingsElement:()=>LE,isChannelItemElement:()=>JE,isChannelsElement:()=>UE,isComponentsElement:()=>HE,isContactElement:()=>WE,isIdentifierElement:()=>GE,isInfoElement:()=>KE,isLicenseElement:()=>XE,isOperationElement:()=>zE,isParameterElement:()=>YE,isParametersElement:()=>QE,isReferenceElement:()=>ZE,isSchemaElement:()=>ew,isSecurityRequirementElement:()=>sw,isServerBindingsElement:()=>iw,isServerElement:()=>nw,isServerVariableElement:()=>ow,isServersElement:()=>rw});var x={};s.r(x),s.d(x,{detect:()=>Xq,detectionRegExp:()=>Kq,mediaTypes:()=>Gq,namespace:()=>Yq,parse:()=>zq});var E={};s.r(E),s.d(E,{detect:()=>eC,detectionRegExp:()=>Zq,mediaTypes:()=>Qq,namespace:()=>sC,parse:()=>tC});var w={};s.r(w),s.d(w,{isReferenceLikeElement:()=>CC,isWorkflowsSpecificationExtension:()=>qC});var S={};s.r(S),s.d(S,{isComponentsElement:()=>UT,isCriterionElement:()=>HT,isFailureActionCriteriaElement:()=>XT,isFailureActionElement:()=>KT,isInfoElement:()=>OT,isJSONSchemaElement:()=>zT,isParameterElement:()=>LT,isReferenceElement:()=>WT,isSourceDescriptionElement:()=>BT,isSourceDescriptionsElement:()=>MT,isStepDependsOnElement:()=>NT,isStepElement:()=>_T,isStepOnFailureElement:()=>kT,isStepOnSuccessElement:()=>FT,isStepOutputsElement:()=>IT,isStepParametersElement:()=>DT,isStepSuccessCriteriaElement:()=>VT,isSuccessActionCriteriaElement:()=>GT,isSuccessActionElement:()=>JT,isWorkflowElement:()=>RT,isWorkflowOutputsElement:()=>TT,isWorkflowStepsElement:()=>CT,isWorkflowsElement:()=>qT,isWorkflowsSpecElement:()=>PT,isWorkflowsSpecification1Element:()=>AT});var j={};s.r(j),s.d(j,{detect:()=>YR,detectionRegExp:()=>zR,mediaTypes:()=>XR,namespace:()=>ZR,parse:()=>QR});var $={};s.r($),s.d($,{detect:()=>sF,detectionRegExp:()=>tF,mediaTypes:()=>eF,namespace:()=>iF,parse:()=>nF});var P={};s.r(P),s.d(P,{isInfoElement:()=>Fk,isMainElement:()=>Rk,isPrincipleElement:()=>kk,isRequirementElement:()=>Ik,isRequirementLevelElement:()=>_k,isScenarioElement:()=>Dk,isStandardElement:()=>Nk,isStandardIdentifierElement:()=>Vk});var A=s(65959),O=s(85618),B=s(32457);class M extends O.Om{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const q=M;class C extends O.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const T=C;var R=s(84335);class F extends O.wE{constructor(e,t,s){super(e,t,s),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((0,R.A)(t))return!1;const s=this.content.findIndex((e=>e===t));return-1!==s&&(this.content[s]=e,!0)}}const k=F;class I extends O.wE{constructor(e,t,s){super(e,t,s),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("undefined"===typeof e)return;const t=new O.wE([e.start.row,e.start.column,e.start.char]),s=new O.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),s.classes.push("position"),this.push(t).push(s)}}const _=I;class D extends O.g${constructor(){super(),this.register("annotation",q),this.register("comment",T),this.register("parseResult",k),this.register("sourceMap",_)}}const N=new D,V=e=>{const t=new D;return(0,B.A)(e)&&t.use(e),t},L=N,J=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:L).toRefract(e)};var U=s(52315),H=s(98806);const W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L;if((0,H.A)(e))try{return t.fromRefract(JSON.parse(e))}catch{}return(0,B.A)(e)&&(0,U.A)("element",e)?t.fromRefract(e):t.toElement(e)};var G=s(41870),K=s(58009),X=s(21212);const z=class extends X{constructor(e,t,s){if(super(e,t,s),this.name=this.constructor.name,"string"===typeof t&&(this.message=t),"function"===typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=s&&"object"===typeof s&&Object.hasOwn(s,"cause")&&!("cause"in this)){const{cause:e}=s;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class Y extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(z,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"===typeof e&&(this.message=e),"function"===typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"===typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const Q=Y;const Z=class extends Q{constructor(e,t){if(super(e,t),null!=t&&"object"===typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}},ee=(e,t,s)=>{const n=e[t];if(null!=n){if(!s&&"function"===typeof n)return n;const e=s?n.leave:n.enter;if("function"===typeof e)return e}else{const n=s?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},te={},se=e=>null===e||void 0===e?void 0:e.type,ne=e=>"string"===typeof se(e),ie=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),re=function(e){let{visitFnGetter:t=ee,nodeTypeGetter:s=se,breakSymbol:n=te,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:r=!1,exposeEdits:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(l,u,p,h,d,m){let f=l,g=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),f=e}};for(let y=0;y1&&void 0!==arguments[1]?arguments[1]:{};const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(l,u,p,h,d,m){let f=l,g=!1;const v={...m,replaceWith(e,t){m.replaceWith(e,t),f=e}};for(let y=0;y2&&void 0!==arguments[2]?arguments[2]:{};const h=s||{};let d,m,f=Array.isArray(e),g=[e],v=-1,y=[],b=e;const x=[],E=[];do{v+=1;const e=v===g.length;let s;const j=e&&0!==y.length;if(e){if(s=0===E.length?void 0:x.pop(),b=m,m=E.pop(),j)if(f){b=b.slice();let e=0;for(const[t,s]of y){const n=t-e;s===r?(b.splice(n,1),e+=1):b[n]=s}}else{b=u(b);for(const[e,t]of y)b[e]=t}v=d.index,g=d.keys,y=d.edits,f=d.inArray,d=d.prev}else if(m!==r&&void 0!==m){if(s=f?v:g[v],b=m[s],b===r||void 0===b)continue;x.push(s)}let $;if(!Array.isArray(b)){var w;if(!l(b))throw new Z(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&E.includes(b)){x.pop();continue}const r=c(t,a(b),e);if(r){for(const[e,s]of Object.entries(n))t[e]=s;const i={replaceWith(t,n){"function"===typeof n?n(t,b,s,m,x,E):m&&(m[s]=t),e||(b=t)}};$=r.call(t,b,s,m,x,E,i)}if("function"===typeof(null===(w=$)||void 0===w?void 0:w.then))throw new Z("Async visitor not supported in sync mode",{visitor:t,visitFn:r});if($===i)break;if($===o){if(!e){x.pop();continue}}else if(void 0!==$&&(y.push([s,$]),!e)){if(!l($)){x.pop();continue}b=$}}var S;if(void 0===$&&j&&y.push([s,b]),!e)d={inArray:f,index:v,keys:g,edits:y,prev:d},f=Array.isArray(b),g=f?b:null!==(S=h[a(b)])&&void 0!==S?S:[],v=-1,y=[],m!==r&&void 0!==m&&E.push(m),m=b}while(void 0!==d);return 0!==y.length?y[y.length-1][1]:e};oe[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let{keyMap:s=null,state:n={},breakSymbol:i=te,deleteNodeSymbol:r=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=ee,nodeTypeGetter:a=se,nodePredicate:l=ne,nodeCloneFn:u=ie,detectCycles:p=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const h=s||{};let d,m,f=Array.isArray(e),g=[e],v=-1,y=[],b=e;const x=[],E=[];do{v+=1;const e=v===g.length;let s;const S=e&&0!==y.length;if(e){if(s=0===E.length?void 0:x.pop(),b=m,m=E.pop(),S)if(f){b=b.slice();let e=0;for(const[t,s]of y){const n=t-e;s===r?(b.splice(n,1),e+=1):b[n]=s}}else{b=u(b);for(const[e,t]of y)b[e]=t}v=d.index,g=d.keys,y=d.edits,f=d.inArray,d=d.prev}else if(m!==r&&void 0!==m){if(s=f?v:g[v],b=m[s],b===r||void 0===b)continue;x.push(s)}let j;if(!Array.isArray(b)){if(!l(b))throw new Z(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&E.includes(b)){x.pop();continue}const r=c(t,a(b),e);if(r){for(const[e,s]of Object.entries(n))t[e]=s;const i={replaceWith(t,n){"function"===typeof n?n(t,b,s,m,x,E):m&&(m[s]=t),e||(b=t)}};j=await r.call(t,b,s,m,x,E,i)}if(j===i)break;if(j===o){if(!e){x.pop();continue}}else if(void 0!==j&&(y.push([s,j]),!e)){if(!l(j)){x.pop();continue}b=j}}var w;if(void 0===j&&S&&y.push([s,b]),!e)d={inArray:f,index:v,keys:g,edits:y,prev:d},f=Array.isArray(b),g=f?b:null!==(w=h[a(b)])&&void 0!==w?w:[],v=-1,y=[],m!==r&&void 0!==m&&E.push(m),m=b}while(void 0!==d);return 0!==y.length?y[y.length-1][1]:e};var ce=s(25384),ae=s(80642);const le=(e,t)=>"object"===typeof t&&null!==t&&e in t&&"function"===typeof t[e],ue=e=>"object"===typeof e&&null!=e&&"_storedElement"in e&&"string"===typeof e._storedElement&&"_content"in e,pe=(e,t)=>"object"===typeof t&&null!==t&&"primitive"in t&&("function"===typeof t.primitive&&t.primitive()===e),he=(e,t)=>"object"===typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof O.wE)&&t.classes.includes(e),de=(e,t)=>"object"===typeof t&&null!==t&&"element"in t&&t.element===e,me=e=>e({hasMethod:le,hasBasicElementProps:ue,primitiveEq:pe,isElementType:de,hasClass:he}),fe=me((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.Hg||t(e)&&s(void 0,e)})),ge=me((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.Om||t(e)&&s("string",e)})),ve=me((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.kT||t(e)&&s("number",e)})),ye=me((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.Os||t(e)&&s("null",e)})),be=me((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.bd||t(e)&&s("boolean",e)})),xe=me((e=>{let{hasBasicElementProps:t,primitiveEq:s,hasMethod:n}=e;return e=>e instanceof O.Sh||t(e)&&s("object",e)&&n("keys",e)&&n("values",e)&&n("items",e)})),Ee=me((e=>{let{hasBasicElementProps:t,primitiveEq:s,hasMethod:n}=e;return e=>e instanceof O.wE&&!(e instanceof O.Sh)||t(e)&&s("array",e)&&n("push",e)&&n("unshift",e)&&n("map",e)&&n("reduce",e)})),we=me((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof O.Pr||t(e)&&s("member",e)&&n(void 0,e)})),Se=me((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof O.Ft||t(e)&&s("link",e)&&n(void 0,e)})),je=me((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof O.sI||t(e)&&s("ref",e)&&n(void 0,e)})),$e=me((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof q||t(e)&&s("annotation",e)&&n("array",e)})),Pe=me((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof T||t(e)&&s("comment",e)&&n("string",e)})),Ae=me((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof k||t(e)&&s("parseResult",e)&&n("array",e)})),Oe=me((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof _||t(e)&&s("sourceMap",e)&&n("array",e)})),Be=e=>de("object",e)||de("array",e)||de("boolean",e)||de("number",e)||de("string",e)||de("null",e)||de("member",e),Me=e=>Oe(e.meta.get("sourceMap")),qe=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!Ee(s)&&(0,ce.A)((0,ae.A)(s.toValue()),e)},Ce=(e,t)=>0===e.length||(0,ce.A)((0,ae.A)(t.classes.toValue()),e);const Te=class extends Z{value;constructor(e,t){super(e,t),"undefined"!==typeof t&&(this.value=t.value)}};const Re=class extends Te{};const Fe=class extends Te{},ke=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);if(e instanceof O.KeyValuePair){const{key:t,value:i}=e,r=fe(t)?ke(t,n):t,o=fe(i)?ke(i,n):i,c=new O.KeyValuePair(r,o);return s.set(e,c),c}if(e instanceof O.ot){const t=e=>ke(e,n),i=[...e].map(t),r=new O.ot(i);return s.set(e,r),r}if(e instanceof O.G6){const t=e=>ke(e,n),i=[...e].map(t),r=new O.G6(i);return s.set(e,r),r}if(fe(e)){const t=De(e);if(s.set(e,t),e.content)if(fe(e.content))t.content=ke(e.content,n);else if(e.content instanceof O.KeyValuePair)t.content=ke(e.content,n);else if(Array.isArray(e.content)){const s=e=>ke(e,n);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new Re("Value provided to cloneDeep function couldn't be cloned",{value:e})};ke.safe=e=>{try{return ke(e)}catch{return e}};const Ie=e=>{const{key:t,value:s}=e;return new O.KeyValuePair(t,s)},_e=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=ke(e.meta)),e.attributes.length>0&&(t._attributes=ke(e.attributes)),fe(e.content)){const s=e.content;t.content=_e(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof O.KeyValuePair?t.content=Ie(e.content):t.content=e.content;return t},De=e=>{if(e instanceof O.KeyValuePair)return Ie(e);if(e instanceof O.ot)return(e=>{const t=[...e];return new O.ot(t)})(e);if(e instanceof O.G6)return(e=>{const t=[...e];return new O.G6(t)})(e);if(fe(e))return _e(e);throw new Fe("Value provided to cloneShallow function couldn't be cloned",{value:e})};De.safe=e=>{try{return De(e)}catch{return e}};const Ne=e=>xe(e)?"ObjectElement":Ee(e)?"ArrayElement":we(e)?"MemberElement":ge(e)?"StringElement":be(e)?"BooleanElement":ve(e)?"NumberElement":ye(e)?"NullElement":Se(e)?"LinkElement":je(e)?"RefElement":void 0,Ve=e=>fe(e)?De(e):ie(e),Le=(0,G.A)(Ne,H.A),Je={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class Ue{result;predicate;returnOnTrue;returnOnFalse;constructor(){let{predicate:e=K.A,returnOnTrue:t,returnOnFalse:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=s}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}const He=function(e,t){let{keyMap:s=Je,...n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return oe(e,t,{keyMap:s,nodeTypeGetter:Ne,nodePredicate:Le,nodeCloneFn:Ve,...n})};He[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let{keyMap:s=Je,...n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return oe[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:Ne,nodePredicate:Le,nodeCloneFn:Ve,...n})};class We{result="";nestingLevel=0;enter(e){const{element:t}=e,s=t.charAt(0).toUpperCase()+t.slice(1),n=" ".repeat(this.nestingLevel);this.result+=this.nestingLevel>0?"\n":"",this.result+=`${n}(${s}Element`,this.nestingLevel+=1}leave(){this.nestingLevel-=1,this.result+=")"}}const Ge=e=>{const t=new We;return He(e,t),t.result};var Ke=s(34887);const Xe=e=>"string"===typeof(null===e||void 0===e?void 0:e.type)?e.type:Ne(e),ze={EphemeralObject:["content"],EphemeralArray:["content"],...Je},Ye=function(e,t){let{keyMap:s=ze,...n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return He(e,t,{keyMap:s,nodeTypeGetter:Xe,nodePredicate:Ke.A,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n})};Ye[Symbol.for("nodejs.util.promisify.custom")]=async function(e){let{keyMap:t=ze,...s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return He[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Xe,nodePredicate:Ke.A,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s})};const Qe=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 Ze=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class et{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Ze(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Qe(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=(()=>new WeakMap)();BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e){var t;const s=arguments.length<=4?void 0:arguments[4];return"EphemeralObject"===(null===(t=s[s.length-1])||void 0===t?void 0:t.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return ge(e.href)?e.href.toValue():""}}const tt=e=>fe(e)?ge(e)||ve(e)||be(e)||ye(e)?e.toValue():Ye(e,new et):e;var st=s(13225),nt=s(74442),it=s(83346);const rt=class extends Q{};const ot=class extends rt{};const ct=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new ot("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new ot("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new ot("latest method in MediaTypes class is not yet implemented.")}};const at=class extends Z{source;parserOptions;constructor(e,t){super(e,t),"undefined"!==typeof t&&(this.source=t.source,this.parserOptions=t.parserOptions)}};const lt=class{adapters=[];async detectAdapterCandidates(e){const t=[];for(const s of this.adapters)(0,nt.A)(s.detect)&&await s.detect(e)&&t.push(s);return t}async findAdapter(e,t){if((0,H.A)(t))return this.adapters.find((e=>!!(0,it.A)(e.mediaTypes)&&e.mediaTypes.includes(t)));const s=await this.detectAdapterCandidates(e);return(0,st.A)(s)}use(e){return this.adapters.push(e),this}async findNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=await this.findAdapter(e,t.mediaType);return null===s||void 0===s?void 0:s.namespace}async findMediaType(e){const t=await this.findAdapter(e,void 0);if("undefined"===typeof t)return(new ct).unknownMediaType;if("undefined"===typeof t.mediaTypes)return(new ct).unknownMediaType;if("undefined"===typeof t.detectionRegExp)return t.mediaTypes.latest();const{detectionRegExp:s}=t,n=e.match(s);if(null===n)return(new ct).unknownMediaType;const{groups:i}=n,r=(null===i||void 0===i?void 0:i.version)||(null===i||void 0===i?void 0:i.version_json)||(null===i||void 0===i?void 0:i.version_yaml),o=null!==i&&void 0!==i&&i.version_json?"json":null!==i&&void 0!==i&&i.version_yaml?"yaml":"generic";return"undefined"===typeof r?t.mediaTypes.latest():t.mediaTypes.findBy(r,o)}async parse(e){let t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{t=await this.findAdapter(e,s.mediaType)}catch(n){throw new at("Encountered an unexpected error while matching parser adapters against the source.",{source:e,parserOptions:s,cause:n})}if((0,R.A)(t))throw new at("Source did not match any registered parsers",{source:e,parserOptions:s});try{return t.parse(e,s)}catch(n){throw new at("Parsing encountered an unexpected error.",{source:e,parserOptions:s,cause:n})}}};var ut=s(98921),pt=s(74921);const ht=globalThis.fetch;(0,nt.A)(ht)&&(globalThis.fetch=function(){for(var e=arguments.length,t=new Array(e),s=0;s{if(null===ft&&null===gt)gt=dt.init().then((()=>dt.Language.load(mt))).then((e=>{const t=new dt;return t.setLanguage(e),t})).finally((()=>{gt=null})),ft=await gt;else if(null===ft&&null!==gt)ft=await gt;else if(null===ft)throw new Q("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return ft.parse(e)};var yt=s(27317),bt=s(53163),xt=s(56146);const Et=()=>({predicates:{...n},namespace:L}),wt={toolboxCreator:Et,visitorOptions:{nodeTypeGetter:Ne,exposeEdits:!0}},St=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===t.length)return e;const n=(0,yt.A)(wt,s),{toolboxCreator:i,visitorOptions:r}=n,o=i(),c=t.map((e=>e(o))),a=re(c.map((0,bt.A)({},"visitor")),{...r});c.forEach((0,xt.A)(["pre"],[]));const l=He(e,a,r);return c.forEach((0,xt.A)(["post"],[])),l};St[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===t.length)return e;const n=(0,yt.A)(wt,s),{toolboxCreator:i,visitorOptions:r}=n,o=i(),c=t.map((e=>e(o))),a=re[Symbol.for("nodejs.util.promisify.custom")],l=He[Symbol.for("nodejs.util.promisify.custom")],u=a(c.map((0,bt.A)({},"visitor")),{...r});await Promise.allSettled(c.map((0,xt.A)(["pre"],[])));const p=await l(e,u,r);return await Promise.allSettled(c.map((0,xt.A)(["post"],[]))),p};const jt=(e,t)=>{let{Type:s,plugins:n=[]}=t;const i=new s(e);return fe(e)&&(e.meta.length>0&&(i.meta=ke(e.meta)),e.attributes.length>0&&(i.attributes=ke(e.attributes))),St(i,n,{toolboxCreator:Et,visitorOptions:{nodeTypeGetter:Ne}})},$t=e=>function(t){return jt(t,{...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Type:e})};O.Sh.refract=$t(O.Sh),O.wE.refract=$t(O.wE),O.Om.refract=$t(O.Om),O.bd.refract=$t(O.bd),O.Os.refract=$t(O.Os),O.kT.refract=$t(O.kT),O.Ft.refract=$t(O.Ft),O.sI.refract=$t(O.sI),q.refract=$t(q),T.refract=$t(T),k.refract=$t(k),_.refract=$t(_);const Pt=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;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(){this.children.push(...arguments)}};class At{static toPosition(e){const t=new O.wE([e.startPosition.row,e.startPosition.column,e.startIndex]),s=new O.wE([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),s.classes.push("position"),[t,s]}sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(Be);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}enter(e){if(e instanceof Pt&&!e.isNamed&&e.isMissing){const t=e.type||e.text,s=new q(`(Missing ${t})`);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}document(e){const t=new k;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new O.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new O.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new O.Pr;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new O.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new O.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new O.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new O.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new O.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,s,n){const i=!e.hasError,r=e.text,o=new q(i?`(Unexpected ${r})`:`(Error ${r})`);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===n.length){const e=new k;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new _,n=At.toPosition(e);if(null!==n){const[e,t]=n;s.push(e),s.push(t)}s.astNode=e,t.meta.set("sourceMap",s)}}const Ot=At;class Bt{cursor;constructor(e){this.cursor=e}document(){return new Pt(this.cursor)}object(){return new Pt(this.cursor).setFieldName(this.cursor)}array(){return new Pt(this.cursor).setFieldName(this.cursor)}pair(){return new Pt(this.cursor)}string(){return new Pt(this.cursor).setFieldName(this.cursor)}number(){return new Pt(this.cursor).setFieldName(this.cursor)}null(){return new Pt(this.cursor).setFieldName(this.cursor)}true(){return new Pt(this.cursor).setFieldName(this.cursor)}false(){return new Pt(this.cursor).setFieldName(this.cursor)}ERROR(){return new Pt(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Pt(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Bt(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Bt(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const Mt=Bt,qt={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...Je},Ct=e=>Ae(e)?"ParseResultElement":fe(e)?Ne(e):se(e),Tt=e=>fe(e)||ne(e),Rt=function(e){let{sourceMap:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=new Ot,n=e.walk(),i=new Mt(n),[r]=Array.from(i);return oe(r,s,{keyMap:qt,nodeTypeGetter:Ct,nodePredicate:Tt,state:{sourceMap:t}})};class Ft{static type="point";type=(()=>Ft.type)();row;column;char;constructor(e){let{row:t,column:s,char:n}=e;this.row=t,this.column=s,this.char=n}}class kt{static type="position";type=(()=>kt.type)();start;end;constructor(e){let{start:t,end:s}=e;this.start=t,this.end=s}}const It=kt;const _t=class{static type="node";type="node";isMissing;children;position;constructor(){let{children:e=[],position:t,isMissing:s=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type=this.constructor.type,this.isMissing=s,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const s=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,s)})),e}};const Dt=class extends _t{};const Nt=class extends Dt{static type="document";get child(){return(0,st.A)(this.children)}};const Vt=class extends _t{static type="parseResult";get rootNode(){return(0,st.A)(this.children)}};const Lt=class extends _t{static type="literal";value;constructor(){let{value:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({...t}),this.value=e}},Jt=(e,t)=>null!=t&&"object"===typeof t&&"type"in t&&t.type===e,Ut=e=>Jt("string",e),Ht=e=>Jt("false",e),Wt=e=>Jt("true",e),Gt=e=>Jt("null",e),Kt=e=>Jt("number",e),Xt=e=>Jt("array",e),zt=e=>Jt("object",e),Yt=e=>Jt("property",e),Qt=e=>Jt("key",e);const Zt=class extends Dt{static type="object";get properties(){return this.children.filter(Yt)}};const es=class extends Dt{static type="string";get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>Jt("stringContent",e))(e)||(e=>Jt("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}};const ts=class extends es{static type="key"};const ss=class extends Dt{static type="property";get key(){return this.children.find(Qt)}get value(){return this.children.find((e=>Ht(e)||Wt(e)||Gt(e)||Kt(e)||Ut(e)||Xt(e)||zt(e)))}};const ns=class extends Dt{static type="array";get items(){return this.children.filter((e=>Ht(e)||Wt(e)||Gt(e)||Kt(e)||Ut(e)||Xt(e)||zt))}};const is=class extends Dt{static type="value";value;constructor(e){let{value:t,...s}=e;super({...s}),this.value=t}};const rs=class extends is{static type="stringContent"};const os=class extends is{static type="number"};const cs=class extends is{static type="null"};const as=class extends is{static type="true"};const ls=class extends is{static type="false"};const us=class extends _t{static type="error";value;isUnexpected;constructor(){let{value:e,isUnexpected:t=!1,...s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({...s}),this.value=e,this.isUnexpected=t}},ps={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};class hs{static toPosition(e){const t=new Ft({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),s=new Ft({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new It({start:t,end:s})}document={enter:e=>{const t=hs.toPosition(e);return new Nt({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new Vt({children:[e]})};enter(e){if(e instanceof Pt&&!e.isNamed){const t=hs.toPosition(e),s=e.type||e.text,{isMissing:n}=e;return new Lt({value:s,position:t,isMissing:n})}}object(e){const t=hs.toPosition(e);return new Zt({children:e.children,position:t,isMissing:e.isMissing})}pair(e){const t=hs.toPosition(e),s=e.children.slice(1),{keyNode:n}=e,i=new ts({children:(null===n||void 0===n?void 0:n.children)||[],position:null!=n?hs.toPosition(n):void 0,isMissing:null!=n&&n.isMissing});return new ss({children:[i,...s],position:t,isMissing:e.isMissing})}array(e){const t=hs.toPosition(e);return new ns({children:e.children,position:t,isMissing:e.isMissing})}string(e){const t=hs.toPosition(e),s=new rs({value:JSON.parse(e.text)});return new es({children:[s],position:t,isMissing:e.isMissing})}number(e){const t=hs.toPosition(e),s=e.text;return new os({value:s,position:t,isMissing:e.isMissing})}null(e){const t=hs.toPosition(e),s=e.text;return new cs({value:s,position:t,isMissing:e.isMissing})}true(e){const t=hs.toPosition(e),s=e.text;return new as({value:s,position:t,isMissing:e.isMissing})}false(e){const t=hs.toPosition(e),s=e.text;return new ls({value:s,position:t,isMissing:e.isMissing})}ERROR(e,t,s,n){const i=hs.toPosition(e),r=new us({children:e.children,position:i,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===n.length?new Vt({children:[r]}):r}}const ds=hs,ms={[Vt.type]:["children"],[Nt.type]:["children"],[Zt.type]:["children"],[ss.type]:["children"],[ns.type]:["children"],[us.type]:["children"],...Je},fs=e=>Ae(e)?"ParseResultElement":fe(e)?Ne(e):se(e),gs=e=>fe(e)||ne(e);const vs=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(Be);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}document(e){const t=new k;return t._content=e.children,t}object(e){const t=new O.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new O.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new O.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new O.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new O.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new O.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new O.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new O.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new O.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,s=new q(t);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}error(e,t,s,n){const i=e.isUnexpected?`(Unexpected ${e.value})`:`(Error ${e.value})`,r=new q(i);if(r.classes.push("error"),this.maybeAddSourceMap(e,r),0===n.length){const e=new k;return e.push(r),e}return this.annotations.push(r),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new _;s.position=e.position,s.astNode=e,t.meta.set("sourceMap",s)}},ys=function(e){let{sourceMap:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=e.walk(),n=new Mt(s),[i]=Array.from(n),r=new ds,o=new vs,c=oe(i,r,{keyMap:ps,state:{sourceMap:t}});return oe(c.rootNode,o,{keyMap:ms,nodeTypeGetter:fs,nodePredicate:gs,state:{sourceMap:t}})},bs=V(),xs=/(?^\s*true\s*$)|(?^\s*false\s*$)|(?^\s*null\s*$)|(?^\s*\d+\s*$)|(?^\s*{\s*)|(?^\s*\[\s*)|(?^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/;const Es=new class extends ct{latest(){return this[0]}}("application/json"),ws=async e=>{if(!xs.test(e))return!1;try{return"ERROR"!==(await vt(e)).rootNode.type}catch{return!1}},Ss=async function(e){let{sourceMap:t=!1,syntacticAnalysis:s="direct"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await vt(e);let i;return i="indirect"===s?ys(n,{sourceMap:t}):Rt(n,{sourceMap:t}),i},js=globalThis.fetch;(0,nt.A)(js)&&(globalThis.fetch=function(){for(var e=arguments.length,t=new Array(e),s=0;s{if(null===Ps&&null===As)As=dt.init().then((()=>dt.Language.load($s))).then((e=>{const t=new dt;return t.setLanguage(e),t})).finally((()=>{As=null})),Ps=await As;else if(null===Ps&&null!==As)Ps=await As;else if(null===Ps)throw new Q("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return Ps.parse(e)};var Bs=s(33178);const Ms=class extends Z{};const qs=class extends Ms{};const Cs=class extends qs{specificTagName;explicitTagName;tagKind;tagPosition;nodeCanonicalContent;node;constructor(e,t){super(e,t),"undefined"!==typeof t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagPosition=t.tagPosition,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};let Ts=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const Rs=class extends _t{static type="tag";explicitName;kind;constructor(e){let{explicitName:t,kind:s,...n}=e;super({...n}),this.explicitName=t,this.kind=s}};const Fs=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const ks=class extends Fs{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===Ts.Mapping}};const Is=class extends Fs{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===Ts.Sequence}};const _s=class extends Fs{static uri="tag:yaml.org,2002:str"};var Ds=s(60029),Ns=s(26836),Vs=s(37879),Ls=s(38579),Js=s(74818),Us=s(70515),Hs=s(30439),Ws=s(62658),Gs=s(31179),Ks=s(34967),Xs=s(23738),zs=s(84711),Ys=s(29288),Qs=s(6977),Zs=s(26500),en=s(89129),tn=s(96323);const sn=/^(?