import{c as Je}from"./index-3157015c.js";function Cr(F,H){for(var W=0;Wk[M]})}}}return Object.freeze(Object.defineProperty(F,Symbol.toStringTag,{value:"Module"}))}var An={};(function(F){if(typeof F.window<"u"&&F.document||F.require&&F.define)return;F.console||(F.console=function(){var M=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:M})},F.console.error=F.console.warn=F.console.log=F.console.trace=F.console),F.window=F,F.ace=F,F.onerror=function(M,t,r,u,l){postMessage({type:"error",data:{message:M,data:l&&l.data,file:t,line:r,col:u,stack:l&&l.stack}})},F.normalizeModule=function(M,t){if(t.indexOf("!")!==-1){var r=t.split("!");return F.normalizeModule(M,r[0])+"!"+F.normalizeModule(M,r[1])}if(t.charAt(0)=="."){var u=M.split("/").slice(0,-1).join("/");for(t=(u?u+"/":"")+t;t.indexOf(".")!==-1&&l!=t;){var l=t;t=t.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return t},F.require=function(t,r){if(r||(r=t,t=null),!r.charAt)throw new Error("worker.js require() accepts only (parentId, id) as arguments");r=F.normalizeModule(t,r);var u=F.require.modules[r];if(u)return u.initialized||(u.initialized=!0,u.exports=u.factory().exports),u.exports;if(!F.require.tlns)return console.log("unable to load "+r);var l=H(r,F.require.tlns);return l.slice(-3)!=".js"&&(l+=".js"),F.require.id=r,F.require.modules[r]={},importScripts(l),F.require(t,r)};function H(M,t){for(var r=M,u="";r;){var l=t[r];if(typeof l=="string")return l+u;if(l)return l.location.replace(/\/*$/,"/")+(u||l.main||l.name);if(l===!1)return"";var a=r.lastIndexOf("/");if(a===-1)break;u=r.substr(a)+u,r=r.slice(0,a)}return M}F.require.modules={},F.require.tlns={},F.define=function(M,t,r){if(arguments.length==2?(r=t,typeof M!="string"&&(t=M,M=F.require.id)):arguments.length==1&&(r=M,t=[],M=F.require.id),typeof r!="function"){F.require.modules[M]={exports:r,initialized:!0};return}t.length||(t=["require","exports","module"]);var u=function(l){return F.require(M,l)};F.require.modules[M]={exports:{},factory:function(){var l=this,a=r.apply(this,t.slice(0,r.length).map(function(o){switch(o){case"require":return u;case"exports":return l.exports;case"module":return l;default:return u(o)}}));return a&&(l.exports=a),l}}},F.define.amd={},F.require.tlns={},F.initBaseUrls=function(t){for(var r in t)this.require.tlns[r]=t[r]},F.initSender=function(){var t=F.require("ace/lib/event_emitter").EventEmitter,r=F.require("ace/lib/oop"),u=function(){};return function(){r.implement(this,t),this.callback=function(l,a){postMessage({type:"call",id:a,data:l})},this.emit=function(l,a){postMessage({type:"event",name:l,data:a})}}.call(u.prototype),new u};var W=F.main=null,k=F.sender=null;F.onmessage=function(M){var t=M.data;if(t.event&&k)k._signal(t.event,t.data);else if(t.command)if(W[t.command])W[t.command].apply(W,t.args);else if(F[t.command])F[t.command].apply(F,t.args);else throw new Error("Unknown command:"+t.command);else if(t.init){F.initBaseUrls(t.tlns),k=F.sender=F.initSender();var r=this.require(t.module)[t.classname];W=F.main=new r(k)}}})(Je);ace.define("ace/lib/oop",[],function(F,H,W){H.inherits=function(k,M){k.super_=M,k.prototype=Object.create(M.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}})},H.mixin=function(k,M){for(var t in M)k[t]=M[t];return k},H.implement=function(k,M){H.mixin(k,M)}});ace.define("ace/apply_delta",[],function(F,H,W){H.applyDelta=function(k,M,t){var r=M.start.row,u=M.start.column,l=k[r]||"";switch(M.action){case"insert":var a=M.lines;if(a.length===1)k[r]=l.substring(0,u)+M.lines[0]+l.substring(u);else{var o=[r,1].concat(M.lines);k.splice.apply(k,o),k[r]=l.substring(0,u)+k[r],k[r+M.lines.length-1]+=l.substring(u)}break;case"remove":var s=M.end.column,h=M.end.row;r===h?k[r]=l.substring(0,u)+l.substring(s):k.splice(r,h-r+1,l.substring(0,u)+k[h].substring(s));break}}});ace.define("ace/lib/event_emitter",[],function(F,H,W){var k={},M=function(){this.propagationStopped=!0},t=function(){this.defaultPrevented=!0};k._emit=k._dispatchEvent=function(r,u){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var l=this._eventRegistry[r]||[],a=this._defaultHandlers[r];if(!(!l.length&&!a)){(typeof u!="object"||!u)&&(u={}),u.type||(u.type=r),u.stopPropagation||(u.stopPropagation=M),u.preventDefault||(u.preventDefault=t),l=l.slice();for(var o=0;o ["+this.end.row+"/"+this.end.column+"]"},t.prototype.contains=function(r,u){return this.compare(r,u)==0},t.prototype.compareRange=function(r){var u,l=r.end,a=r.start;return u=this.compare(l.row,l.column),u==1?(u=this.compare(a.row,a.column),u==1?2:u==0?1:0):u==-1?-2:(u=this.compare(a.row,a.column),u==-1?-1:u==1?42:0)},t.prototype.comparePoint=function(r){return this.compare(r.row,r.column)},t.prototype.containsRange=function(r){return this.comparePoint(r.start)==0&&this.comparePoint(r.end)==0},t.prototype.intersects=function(r){var u=this.compareRange(r);return u==-1||u==0||u==1},t.prototype.isEnd=function(r,u){return this.end.row==r&&this.end.column==u},t.prototype.isStart=function(r,u){return this.start.row==r&&this.start.column==u},t.prototype.setStart=function(r,u){typeof r=="object"?(this.start.column=r.column,this.start.row=r.row):(this.start.row=r,this.start.column=u)},t.prototype.setEnd=function(r,u){typeof r=="object"?(this.end.column=r.column,this.end.row=r.row):(this.end.row=r,this.end.column=u)},t.prototype.inside=function(r,u){return this.compare(r,u)==0?!(this.isEnd(r,u)||this.isStart(r,u)):!1},t.prototype.insideStart=function(r,u){return this.compare(r,u)==0?!this.isEnd(r,u):!1},t.prototype.insideEnd=function(r,u){return this.compare(r,u)==0?!this.isStart(r,u):!1},t.prototype.compare=function(r,u){return!this.isMultiLine()&&r===this.start.row?uthis.end.column?1:0:rthis.end.row?1:this.start.row===r?u>=this.start.column?0:-1:this.end.row===r?u<=this.end.column?0:1:0},t.prototype.compareStart=function(r,u){return this.start.row==r&&this.start.column==u?-1:this.compare(r,u)},t.prototype.compareEnd=function(r,u){return this.end.row==r&&this.end.column==u?1:this.compare(r,u)},t.prototype.compareInside=function(r,u){return this.end.row==r&&this.end.column==u?1:this.start.row==r&&this.start.column==u?-1:this.compare(r,u)},t.prototype.clipRows=function(r,u){if(this.end.row>u)var l={row:u+1,column:0};else if(this.end.rowu)var a={row:u+1,column:0};else if(this.start.row"u"?this.setPosition(o.row,o.column):this.setPosition(o,s)}return l.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},l.prototype.getDocument=function(){return this.document},l.prototype.onChange=function(a){if(!(a.start.row==a.end.row&&a.start.row!=this.row)&&!(a.start.row>this.row)){var o=u(a,{row:this.row,column:this.column},this.$insertRight);this.setPosition(o.row,o.column,!0)}},l.prototype.setPosition=function(a,o,s){var h;if(s?h={row:a,column:o}:h=this.$clipPositionToDocument(a,o),!(this.row==h.row&&this.column==h.column)){var v={row:this.row,column:this.column};this.row=h.row,this.column=h.column,this._signal("change",{old:v,value:h})}},l.prototype.detach=function(){this.document.off("change",this.$onChange)},l.prototype.attach=function(a){this.document=a||this.document,this.document.on("change",this.$onChange)},l.prototype.$clipPositionToDocument=function(a,o){var s={};return a>=this.document.getLength()?(s.row=Math.max(0,this.document.getLength()-1),s.column=this.document.getLine(s.row).length):a<0?(s.row=0,s.column=0):(s.row=a,s.column=Math.min(this.document.getLine(s.row).length,Math.max(0,o))),o<0&&(s.column=0),s},l}();t.prototype.$insertRight=!1,k.implement(t.prototype,M);function r(l,a,o){var s=o?l.column<=a.column:l.column=h&&(o=h-1,s=void 0);var v=this.getLine(o);return s==null&&(s=v.length),s=Math.min(Math.max(s,0),v.length),{row:o,column:s}},a.prototype.clonePos=function(o){return{row:o.row,column:o.column}},a.prototype.pos=function(o,s){return{row:o,column:s}},a.prototype.$clipPosition=function(o){var s=this.getLength();return o.row>=s?(o.row=Math.max(0,s-1),o.column=this.getLine(s-1).length):(o.row=Math.max(0,o.row),o.column=Math.min(Math.max(o.column,0),this.getLine(o.row).length)),o},a.prototype.insertFullLines=function(o,s){o=Math.min(Math.max(o,0),this.getLength());var h=0;o0,v=s=0&&this.applyDelta({start:this.pos(o,this.getLine(o).length),end:this.pos(o+1,0),action:"remove",lines:["",""]})},a.prototype.replace=function(o,s){if(o instanceof r||(o=r.fromPoints(o.start,o.end)),s.length===0&&o.isEmpty())return o.start;if(s==this.getTextRange(o))return o.end;this.remove(o);var h;return s?h=this.insert(o.start,s):h=o.start,h},a.prototype.applyDeltas=function(o){for(var s=0;s=0;s--)this.revertDelta(o[s])},a.prototype.applyDelta=function(o,s){var h=o.action=="insert";(h?o.lines.length<=1&&!o.lines[0]:!r.comparePoints(o.start,o.end))||(h&&o.lines.length>2e4?this.$splitAndapplyLargeDelta(o,2e4):(M(this.$lines,o,s),this._signal("change",o)))},a.prototype.$safeApplyDelta=function(o){var s=this.$lines.length;(o.action=="remove"&&o.start.row0;)r&1&&(u+=t),(r>>=1)&&(t+=t);return u};var k=/^\s\s*/,M=/\s\s*$/;H.stringTrimLeft=function(t){return t.replace(k,"")},H.stringTrimRight=function(t){return t.replace(M,"")},H.copyObject=function(t){var r={};for(var u in t)r[u]=t[u];return r},H.copyArray=function(t){for(var r=[],u=0,l=t.length;u=u.$lines.length)throw m=new Error("Invalid delta"),m.data={path:a.$path,linesLength:u.$lines.length,start:v.start,end:v.end},m;u.applyDelta(v,!0)}if(a.$timeout)return l.schedule(a.$timeout);a.onUpdate()})};(function(){this.$timeout=500,this.setTimeout=function(r){this.$timeout=r},this.setValue=function(r){this.doc.setValue(r),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(r){this.sender.callback(this.doc.getValue(),r)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(t.prototype)});ace.define("ace/mode/yaml/yaml-lint",[],function(F,H,W){var k={require:F,exports:H,module:W};H=void 0,W=void 0;function M(t,r,u){typeof t=="function"&&(u=t,r=["require","exports","module"],t=k.module.id),typeof t!="string"&&(u=r,r=t,t=k.module.id),u||(u=r,r=[]);var l=typeof u=="function"?u.apply(k.module,r.map(function(a){return k[a]||F(a)})):u;l!=null&&(k.module.exports=l)}M.amd=!0,function(t){if(typeof H=="object"&&typeof W<"u")W.exports=t();else if(typeof M=="function"&&M.amd)M([],t);else{var r;typeof window<"u"?r=window:typeof Je<"u"?r=Je:typeof self<"u"?r=self:r=this,r.lint=t()}}(function(){return function(){function t(r,u,l){function a(h,v){if(!u[h]){if(!r[h]){var m=typeof F=="function"&&F;if(!v&&m)return m(h,!0);if(o)return o(h,!0);var C=new Error("Cannot find module '"+h+"'");throw C.code="MODULE_NOT_FOUND",C}var f=u[h]={exports:{}};r[h][0].call(f.exports,function(y){var w=r[h][1][y];return a(w||y)},f,f.exports,t,r,u,l)}return u[h].exports}for(var o=typeof F=="function"&&F,s=0;s"u"||m===null}function a(m){return typeof m=="object"&&m!==null}function o(m){return Array.isArray(m)?m:l(m)?[]:[m]}function s(m,C){var f,y,w,P;if(C)for(P=Object.keys(C),f=0,y=P.length;f=32&&n<=126||n>=161&&n<=55295&&n!==8232&&n!==8233||n>=57344&&n<=65533&&n!==65279||n>=65536&&n<=1114111}function K(n){return re(n)&&n!==65279&&n!==se&&n!==Ie&&n!==Pe&&n!==Ae&&n!==we&&n!==ee&&n!==P}function V(n){return re(n)&&n!==65279&&!Ee(n)&&n!==ce&&n!==ne&&n!==ee&&n!==se&&n!==Ie&&n!==Pe&&n!==Ae&&n!==we&&n!==P&&n!==Z&&n!==J&&n!==y&&n!==Ye&&n!==ae&&n!==U&&n!==w&&n!==N&&n!==fe&&n!==$e}function ge(n){var p=/^\n* /;return p.test(n)}var le=1,be=2,Se=3,Te=4,he=5;function ke(n,p,d,A,_){var S,T,b=!1,D=!1,L=A!==-1,j=-1,G=V(n.charCodeAt(0))&&!Ee(n.charCodeAt(n.length-1));if(p)for(S=0;SA&&n[j+1]!==" ",j=S);else if(!re(T))return he;G=G&&K(T)}D=D||L&&S-j-1>A&&n[j+1]!==" "}return!b&&!D?G&&!_(n)?le:be:d>9&&ge(n)?he:D?Te:Se}function Fe(n,p,d,A){n.dump=function(){if(p.length===0)return"''";if(!n.noCompatMode&&pe.indexOf(p)!==-1)return"'"+p+"'";var _=n.indent*Math.max(1,d),S=n.lineWidth===-1?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-_),T=A||n.flowLevel>-1&&d>=n.flowLevel;function b(D){return oe(n,D)}switch(ke(p,T,n.indent,S,b)){case le:return p;case be:return"'"+p.replace(/'/g,"''")+"'";case Se:return"|"+Ne(p,n.indent)+Re(me(p,_));case Te:return">"+Ne(p,n.indent)+Re(me(Ge(p,S),_));case he:return'"'+de(p)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function Ne(n,p){var d=ge(n)?String(p):"",A=n[n.length-1]===` `,_=A&&(n[n.length-2]===` `||n===` `),S=_?"+":A?"":"-";return d+S+` `}function Re(n){return n[n.length-1]===` `?n.slice(0,-1):n}function Ge(n,p){for(var d=/(\n+)([^\n]*)/g,A=function(){var L=n.indexOf(` `);return L=L!==-1?L:n.length,d.lastIndex=L,je(n.slice(0,L),p)}(),_=n[0]===` `||n[0]===" ",S,T;T=d.exec(n);){var b=T[1],D=T[2];S=D[0]===" ",A+=b+(!_&&!S&&D!==""?` `:"")+je(D,p),_=S}return A}function je(n,p){if(n===""||n[0]===" ")return n;for(var d=/ [^ ]/g,A,_=0,S,T=0,b=0,D="";A=d.exec(n);)b=A.index,b-_>p&&(S=T>_?T:b,D+=` `+n.slice(_,S),_=S+1),T=b;return D+=` `,n.length-_>p&&T>_?D+=n.slice(_,T)+` `+n.slice(T+1):D+=n.slice(_),D.slice(1)}function de(n){for(var p="",d,A,_,S=0;S=55296&&d<=56319&&(A=n.charCodeAt(S+1),A>=56320&&A<=57343)){p+=Ce((d-55296)*1024+A-56320+65536),S++;continue}_=q[d],p+=!_&&re(d)?n[S]:_||Ce(d)}return p}function Le(n,p,d){var A="",_=n.tag,S,T;for(S=0,T=d.length;S1024&&(j+="? "),j+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),te(n,p,L,!1,!1)&&(j+=n.dump,A+=j));n.tag=_,n.dump="{"+A+"}"}function ye(n,p,d,A){var _="",S=n.tag,T=Object.keys(d),b,D,L,j,G,B;if(n.sortKeys===!0)T.sort();else if(typeof n.sortKeys=="function")T.sort(n.sortKeys);else if(n.sortKeys)throw new a("sortKeys must be a boolean or a function");for(b=0,D=T.length;b1024,G&&(n.dump&&C===n.dump.charCodeAt(0)?B+="?":B+="? "),B+=n.dump,G&&(B+=xe(n,p)),te(n,p+1,j,!0,G)&&(n.dump&&C===n.dump.charCodeAt(0)?B+=":":B+=": ",B+=n.dump,_+=B));n.tag=S,n.dump=_||"{}"}function _e(n,p,d){var A,_,S,T,b,D;for(_=d?n.explicitTypes:n.implicitTypes,S=0,T=_.length;S tag resolver accepts not "'+D+'" style');n.dump=A}return!0}return!1}function te(n,p,d,A,_,S){n.tag=null,n.dump=d,_e(n,d,!1)||_e(n,d,!0);var T=h.call(n.dump);A&&(A=n.flowLevel<0||n.flowLevel>p);var b=T==="[object Object]"||T==="[object Array]",D,L;if(b&&(D=n.duplicates.indexOf(d),L=D!==-1),(n.tag!==null&&n.tag!=="?"||L||n.indent!==2&&p>0)&&(_=!1),L&&n.usedDuplicates[D])n.dump="*ref_"+D;else{if(b&&L&&!n.usedDuplicates[D]&&(n.usedDuplicates[D]=!0),T==="[object Object]")A&&Object.keys(n.dump).length!==0?(ye(n,p,n.dump,_),L&&(n.dump="&ref_"+D+n.dump)):(Oe(n,p,n.dump),L&&(n.dump="&ref_"+D+" "+n.dump));else if(T==="[object Array]"){var j=n.noArrayIndent&&p>0?p-1:p;A&&n.dump.length!==0?(Ue(n,j,n.dump,_),L&&(n.dump="&ref_"+D+n.dump)):(Le(n,j,n.dump),L&&(n.dump="&ref_"+D+" "+n.dump))}else if(T==="[object String]")n.tag!=="?"&&Fe(n,n.dump,p,S);else{if(n.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+T)}n.tag!==null&&n.tag!=="?"&&(n.dump="!<"+n.tag+"> "+n.dump)}return!0}function e(n,p){var d=[],A=[],_,S;for(x(n,d,A),_=0,S=A.length;_=48&&e<=57?e-48:(x=e|32,x>=97&&x<=102?x-97+10:-1)}function Pe(e){return e===120?2:e===117?4:e===85?8:0}function $e(e){return e>=48&&e<=57?e-48:-1}function Ae(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?` `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function Ye(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var we=new Array(256),q=new Array(256),pe=0;pe<256;pe++)we[pe]=Ae(pe)?1:0,q[pe]=Ae(pe);function Ke(e,x){this.input=e,this.filename=x.filename||null,this.schema=x.schema||h,this.onWarning=x.onWarning||null,this.legacy=x.legacy||!1,this.json=x.json||!1,this.listener=x.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Ce(e,x){return new a(x,new o(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function R(e,x){throw Ce(e,x)}function me(e,x){e.onWarning&&e.onWarning.call(null,Ce(e,x))}var xe={YAML:function(x,E,O){var n,p,d;x.version!==null&&R(x,"duplication of %YAML directive"),O.length!==1&&R(x,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(O[0]),n===null&&R(x,"ill-formed argument of the YAML directive"),p=parseInt(n[1],10),d=parseInt(n[2],10),p!==1&&R(x,"unacceptable YAML version of the document"),x.version=O[0],x.checkLineBreaks=d<2,d!==1&&d!==2&&me(x,"unsupported YAML version of the document")},TAG:function(x,E,O){var n,p;O.length!==2&&R(x,"TAG directive accepts exactly two arguments"),n=O[0],p=O[1],se.test(n)||R(x,"ill-formed tag handle (first argument) of the TAG directive"),v.call(x.tagMap,n)&&R(x,'there is a previously declared suffix for "'+n+'" tag handle'),ce.test(p)||R(x,"ill-formed tag prefix (second argument) of the TAG directive"),x.tagMap[n]=p}};function oe(e,x,E,O){var n,p,d,A;if(x=32&&d<=1114111||R(e,"expected valid JSON character");else Z.test(A)&&R(e,"the stream contains non-printable characters");e.result+=A}}function Ee(e,x,E,O){var n,p,d,A;for(l.isObject(E)||R(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(E),d=0,A=n.length;d1&&(e.result+=l.repeat(` `,x-1))}function be(e,x,E){var O,n,p,d,A,_,S,T,b=e.kind,D=e.result,L;if(L=e.input.charCodeAt(e.position),ne(L)||fe(L)||L===35||L===38||L===42||L===33||L===124||L===62||L===39||L===34||L===37||L===64||L===96||(L===63||L===45)&&(n=e.input.charCodeAt(e.position+1),ne(n)||E&&fe(n)))return!1;for(e.kind="scalar",e.result="",p=d=e.position,A=!1;L!==0;){if(L===58){if(n=e.input.charCodeAt(e.position+1),ne(n)||E&&fe(n))break}else if(L===35){if(O=e.input.charCodeAt(e.position-1),ne(O))break}else{if(e.position===e.lineStart&&ge(e)||E&&fe(L))break;if(ee(L))if(_=e.line,S=e.lineStart,T=e.lineIndent,V(e,!1,-1),e.lineIndent>=x){A=!0,L=e.input.charCodeAt(e.position);continue}else{e.position=d,e.line=_,e.lineStart=S,e.lineIndent=T;break}}A&&(oe(e,p,d,!1),le(e,e.line-_),p=d=e.position,A=!1),ae(L)||(d=e.position+1),L=e.input.charCodeAt(++e.position)}return oe(e,p,d,!1),e.result?!0:(e.kind=b,e.result=D,!1)}function Se(e,x){var E,O,n;if(E=e.input.charCodeAt(e.position),E!==39)return!1;for(e.kind="scalar",e.result="",e.position++,O=n=e.position;(E=e.input.charCodeAt(e.position))!==0;)if(E===39)if(oe(e,O,e.position,!0),E=e.input.charCodeAt(++e.position),E===39)O=e.position,e.position++,n=e.position;else return!0;else ee(E)?(oe(e,O,n,!0),le(e,V(e,!1,x)),O=n=e.position):e.position===e.lineStart&&ge(e)?R(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);R(e,"unexpected end of the stream within a single quoted scalar")}function Te(e,x){var E,O,n,p,d,A;if(A=e.input.charCodeAt(e.position),A!==34)return!1;for(e.kind="scalar",e.result="",e.position++,E=O=e.position;(A=e.input.charCodeAt(e.position))!==0;){if(A===34)return oe(e,E,e.position,!0),e.position++,!0;if(A===92){if(oe(e,E,e.position,!0),A=e.input.charCodeAt(++e.position),ee(A))V(e,!1,x);else if(A<256&&we[A])e.result+=q[A],e.position++;else if((d=Pe(A))>0){for(n=d,p=0;n>0;n--)A=e.input.charCodeAt(++e.position),(d=Ie(A))>=0?p=(p<<4)+d:R(e,"expected hexadecimal character");e.result+=Ye(p),e.position++}else R(e,"unknown escape sequence");E=O=e.position}else ee(A)?(oe(e,E,O,!0),le(e,V(e,!1,x)),E=O=e.position):e.position===e.lineStart&&ge(e)?R(e,"unexpected end of the document within a double quoted scalar"):(e.position++,O=e.position)}R(e,"unexpected end of the stream within a double quoted scalar")}function he(e,x){var E=!0,O,n=e.tag,p,d=e.anchor,A,_,S,T,b,D={},L,j,G,B;if(B=e.input.charCodeAt(e.position),B===91)_=93,b=!1,p=[];else if(B===123)_=125,b=!0,p={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),B=e.input.charCodeAt(++e.position);B!==0;){if(V(e,!0,x),B=e.input.charCodeAt(e.position),B===_)return e.position++,e.tag=n,e.anchor=d,e.kind=b?"mapping":"sequence",e.result=p,!0;E||R(e,"missed comma between flow collection entries"),j=L=G=null,S=T=!1,B===63&&(A=e.input.charCodeAt(e.position+1),ne(A)&&(S=T=!0,e.position++,V(e,!0,x))),O=e.line,de(e,x,m,!1,!0),j=e.tag,L=e.result,V(e,!0,x),B=e.input.charCodeAt(e.position),(T||e.line===O)&&B===58&&(S=!0,B=e.input.charCodeAt(++e.position),V(e,!0,x),de(e,x,m,!1,!0),G=e.result),b?re(e,p,D,j,L,G):S?p.push(re(e,null,D,j,L,G)):p.push(L),V(e,!0,x),B=e.input.charCodeAt(e.position),B===44?(E=!0,B=e.input.charCodeAt(++e.position)):E=!1}R(e,"unexpected end of the stream within a flow collection")}function ke(e,x){var E,O,n=w,p=!1,d=!1,A=x,_=0,S=!1,T,b;if(b=e.input.charCodeAt(e.position),b===124)O=!1;else if(b===62)O=!0;else return!1;for(e.kind="scalar",e.result="";b!==0;)if(b=e.input.charCodeAt(++e.position),b===43||b===45)w===n?n=b===43?N:P:R(e,"repeat of a chomping mode identifier");else if((T=$e(b))>=0)T===0?R(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):d?R(e,"repeat of an indentation width identifier"):(A=x+T-1,d=!0);else break;if(ae(b)){do b=e.input.charCodeAt(++e.position);while(ae(b));if(b===35)do b=e.input.charCodeAt(++e.position);while(!ee(b)&&b!==0)}for(;b!==0;){for(K(e),e.lineIndent=0,b=e.input.charCodeAt(e.position);(!d||e.lineIndentA&&(A=e.lineIndent),ee(b)){_++;continue}if(e.lineIndentx)&&_!==0)R(e,"bad indentation of a sequence entry");else if(e.lineIndentx)&&(de(e,x,y,!0,n)&&(j?D=e.result:L=e.result),j||(re(e,S,T,b,D,L,p,d),b=D=L=null),V(e,!0,-1),B=e.input.charCodeAt(e.position)),e.lineIndent>x&&B!==0)R(e,"bad indentation of a mapping entry");else if(e.lineIndentx?_=1:e.lineIndent===x?_=0:e.lineIndentx?_=1:e.lineIndent===x?_=0:e.lineIndent tag; it should be "'+L.kind+'", not "'+e.kind+'"'),L.resolve(e.result)?(e.result=L.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):R(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):R(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||T}function Le(e){var x=e.position,E,O,n,p=!1,d;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(d=e.input.charCodeAt(e.position))!==0&&(V(e,!0,-1),d=e.input.charCodeAt(e.position),!(e.lineIndent>0||d!==37));){for(p=!0,d=e.input.charCodeAt(++e.position),E=e.position;d!==0&&!ne(d);)d=e.input.charCodeAt(++e.position);for(O=e.input.slice(E,e.position),n=[],O.length<1&&R(e,"directive name must not be less than one character in length");d!==0;){for(;ae(d);)d=e.input.charCodeAt(++e.position);if(d===35){do d=e.input.charCodeAt(++e.position);while(d!==0&&!ee(d));break}if(ee(d))break;for(E=e.position;d!==0&&!ne(d);)d=e.input.charCodeAt(++e.position);n.push(e.input.slice(E,e.position))}d!==0&&K(e),v.call(xe,O)?xe[O](e,O,n):me(e,'unknown document directive "'+O+'"')}if(V(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,V(e,!0,-1)):p&&R(e,"directives end mark is expected"),de(e,e.lineIndent-1,y,!1,!0),V(e,!0,-1),e.checkLineBreaks&&U.test(e.input.slice(x,e.position))&&me(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ge(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,V(e,!0,-1));return}if(e.position0&&`\0\r …\u2028\u2029`.indexOf(this.buffer.charAt(m-1))===-1;)if(m-=1,this.position-m>h/2-1){v=" ... ",m+=5;break}for(C="",f=this.position;fh/2-1){C=" ... ",f-=5;break}return y=this.buffer.slice(m,f),l.repeat(" ",s)+v+y+C+` `+l.repeat(" ",s+this.position-m+v.length)+"^"},a.prototype.toString=function(s){var h,v="";return this.name&&(v+='in "'+this.name+'" '),v+="at line "+(this.line+1)+", column "+(this.column+1),s||(h=this.getSnippet(),h&&(v+=`: `+h)),v},r.exports=a},{"./common":5}],10:[function(t,r,u){var l=t("./common"),a=t("./exception"),o=t("./type");function s(m,C,f){var y=[];return m.include.forEach(function(w){f=s(w,C,f)}),m[C].forEach(function(w){f.forEach(function(P,N){P.tag===w.tag&&P.kind===w.kind&&y.push(N)}),f.push(w)}),f.filter(function(w,P){return y.indexOf(P)===-1})}function h(){var m={scalar:{},sequence:{},mapping:{},fallback:{}},C,f;function y(w){m[w.kind][w.tag]=m.fallback[w.tag]=w}for(C=0,f=arguments.length;C64)){if(y<0)return!1;P+=6}return P%8===0}function v(f){var y,w,P=f.replace(/[\r\n=]/g,""),N=P.length,Z=s,U=0,J=[];for(y=0;y>16&255),J.push(U>>8&255),J.push(U&255)),U=U<<6|Z.indexOf(P.charAt(y));return w=N%4*6,w===0?(J.push(U>>16&255),J.push(U>>8&255),J.push(U&255)):w===18?(J.push(U>>10&255),J.push(U>>2&255)):w===12&&J.push(U>>4&255),l?l.from?l.from(J):new l(J):J}function m(f){var y="",w=0,P,N,Z=f.length,U=s;for(P=0;P>18&63],y+=U[w>>12&63],y+=U[w>>6&63],y+=U[w&63]),w=(w<<8)+f[P];return N=Z%3,N===0?(y+=U[w>>18&63],y+=U[w>>12&63],y+=U[w>>6&63],y+=U[w&63]):N===2?(y+=U[w>>10&63],y+=U[w>>4&63],y+=U[w<<2&63],y+=U[64]):N===1&&(y+=U[w>>2&63],y+=U[w<<4&63],y+=U[64],y+=U[64]),y}function C(f){return l&&l.isBuffer(f)}r.exports=new o("tag:yaml.org,2002:binary",{kind:"scalar",resolve:h,construct:v,predicate:C,represent:m})},{"../type":16}],18:[function(t,r,u){var l=t("../type");function a(h){if(h===null)return!1;var v=h.length;return v===4&&(h==="true"||h==="True"||h==="TRUE")||v===5&&(h==="false"||h==="False"||h==="FALSE")}function o(h){return h==="true"||h==="True"||h==="TRUE"}function s(h){return Object.prototype.toString.call(h)==="[object Boolean]"}r.exports=new l("tag:yaml.org,2002:bool",{kind:"scalar",resolve:a,construct:o,predicate:s,represent:{lowercase:function(h){return h?"true":"false"},uppercase:function(h){return h?"TRUE":"FALSE"},camelcase:function(h){return h?"True":"False"}},defaultStyle:"lowercase"})},{"../type":16}],19:[function(t,r,u){var l=t("../common"),a=t("../type"),o=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function s(f){return!(f===null||!o.test(f)||f[f.length-1]==="_")}function h(f){var y,w,P,N;return y=f.replace(/_/g,"").toLowerCase(),w=y[0]==="-"?-1:1,N=[],"+-".indexOf(y[0])>=0&&(y=y.slice(1)),y===".inf"?w===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:y===".nan"?NaN:y.indexOf(":")>=0?(y.split(":").forEach(function(Z){N.unshift(parseFloat(Z,10))}),y=0,P=1,N.forEach(function(Z){y+=Z*P,P*=60}),w*y):w*parseFloat(y,10)}var v=/^[-+]?[0-9]+e/;function m(f,y){var w;if(isNaN(f))switch(y){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===f)switch(y){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===f)switch(y){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(l.isNegativeZero(f))return"-0.0";return w=f.toString(10),v.test(w)?w.replace("e",".e"):w}function C(f){return Object.prototype.toString.call(f)==="[object Number]"&&(f%1!==0||l.isNegativeZero(f))}r.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:s,construct:h,predicate:C,represent:m,defaultStyle:"lowercase"})},{"../common":5,"../type":16}],20:[function(t,r,u){var l=t("../common"),a=t("../type");function o(f){return f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102}function s(f){return f>=48&&f<=55}function h(f){return f>=48&&f<=57}function v(f){if(f===null)return!1;var y=f.length,w=0,P=!1,N;if(!y)return!1;if(N=f[w],(N==="-"||N==="+")&&(N=f[++w]),N==="0"){if(w+1===y)return!0;if(N=f[++w],N==="b"){for(w++;w=0?"0b"+f.toString(2):"-0b"+f.toString(2).slice(1)},octal:function(f){return f>=0?"0"+f.toString(8):"-0"+f.toString(8).slice(1)},decimal:function(f){return f.toString(10)},hexadecimal:function(f){return f>=0?"0x"+f.toString(16).toUpperCase():"-0x"+f.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},{"../common":5,"../type":16}],21:[function(t,r,u){var l;try{var a=t;l=a("esprima")}catch{typeof window<"u"&&(l=window.esprima)}var o=t("../../type");function s(C){if(C===null)return!1;try{var f="("+C+")",y=l.parse(f,{range:!0});return!(y.type!=="Program"||y.body.length!==1||y.body[0].type!=="ExpressionStatement"||y.body[0].expression.type!=="ArrowFunctionExpression"&&y.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function h(C){var f="("+C+")",y=l.parse(f,{range:!0}),w=[],P;if(y.type!=="Program"||y.body.length!==1||y.body[0].type!=="ExpressionStatement"||y.body[0].expression.type!=="ArrowFunctionExpression"&&y.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return y.body[0].expression.params.forEach(function(N){w.push(N.name)}),P=y.body[0].expression.body.range,y.body[0].expression.body.type==="BlockStatement"?new Function(w,f.slice(P[0]+1,P[1]-1)):new Function(w,"return "+f.slice(P[0],P[1]))}function v(C){return C.toString()}function m(C){return Object.prototype.toString.call(C)==="[object Function]"}r.exports=new o("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:s,construct:h,predicate:m,represent:v})},{"../../type":16}],22:[function(t,r,u){var l=t("../../type");function a(v){if(v===null||v.length===0)return!1;var m=v,C=/\/([gim]*)$/.exec(v),f="";return!(m[0]==="/"&&(C&&(f=C[1]),f.length>3||m[m.length-f.length-1]!=="/"))}function o(v){var m=v,C=/\/([gim]*)$/.exec(v),f="";return m[0]==="/"&&(C&&(f=C[1]),m=m.slice(1,m.length-f.length-1)),new RegExp(m,f)}function s(v){var m="/"+v.source+"/";return v.global&&(m+="g"),v.multiline&&(m+="m"),v.ignoreCase&&(m+="i"),m}function h(v){return Object.prototype.toString.call(v)==="[object RegExp]"}r.exports=new l("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:a,construct:o,predicate:h,represent:s})},{"../../type":16}],23:[function(t,r,u){var l=t("../../type");function a(){return!0}function o(){}function s(){return""}function h(v){return typeof v>"u"}r.exports=new l("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:a,construct:o,predicate:h,represent:s})},{"../../type":16}],24:[function(t,r,u){var l=t("../type");r.exports=new l("tag:yaml.org,2002:map",{kind:"mapping",construct:function(a){return a!==null?a:{}}})},{"../type":16}],25:[function(t,r,u){var l=t("../type");function a(o){return o==="<<"||o===null}r.exports=new l("tag:yaml.org,2002:merge",{kind:"scalar",resolve:a})},{"../type":16}],26:[function(t,r,u){var l=t("../type");function a(h){if(h===null)return!0;var v=h.length;return v===1&&h==="~"||v===4&&(h==="null"||h==="Null"||h==="NULL")}function o(){return null}function s(h){return h===null}r.exports=new l("tag:yaml.org,2002:null",{kind:"scalar",resolve:a,construct:o,predicate:s,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},{"../type":16}],27:[function(t,r,u){var l=t("../type"),a=Object.prototype.hasOwnProperty,o=Object.prototype.toString;function s(v){if(v===null)return!0;var m=[],C,f,y,w,P,N=v;for(C=0,f=N.length;C-1}function In(i,c){var g=this.__data__,I=Qe(g,i);return I<0?(++this.size,g.push([i,c])):g[I][1]=c,this}ve.prototype.clear=Ln,ve.prototype.delete=On,ve.prototype.get=Mn,ve.prototype.has=Dn,ve.prototype.set=In;function He(i){var c=-1,g=i==null?0:i.length;for(this.clear();++c1?g[Y-1]:void 0,Q=Y>2?g[2]:void 0;for(z=i.length>3&&typeof z=="function"?(Y--,z):void 0,Q&&ar(g[0],g[1],Q)&&(z=Y<3?void 0:z,Y=1),c=Object(c);++I-1&&i%1==0&&i0){if(++c>=s)return arguments[0]}else c=0;return i.apply(void 0,arguments)}}function gr(i){if(i!=null){try{return te.call(i)}catch{}try{return i+""}catch{}}return""}function qe(i,c){return i===c||i!==i&&c!==c}var tn=fn(function(){return arguments}())?fn:function(i){return Ve(i)&&e.call(i,"callee")&&!b.call(i,"callee")},on=Array.isArray;function ln(i){return i!=null&&gn(i.length)&&!un(i)}function yr(i){return Ve(i)&&ln(i)}var mn=G||wr;function un(i){if(!De(i))return!1;var c=Xe(i);return c==N||c==Z||c==f||c==ee}function gn(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=v}function De(i){var c=typeof i;return i!=null&&(c=="object"||c=="function")}function Ve(i){return i!=null&&typeof i=="object"}function vr(i){if(!Ve(i)||Xe(i)!=ce)return!1;var c=S(i);if(c===null)return!0;var g=e.call(c,"constructor")&&c.constructor;return typeof g=="function"&&g instanceof g&&te.call(g)==O}var yn=Fe?Ge(Fe):Wn;function xr(i){return tr(i,vn(i))}function vn(i){return ln(i)?Kn(i,!0):Jn(i)}var _r=ir(function(i,c,g){pn(i,c,g)});function Ar(i){return function(){return i}}function xn(i){return i}function wr(){return!1}r.exports=_r}).call(this,typeof Je<"u"?Je:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[2])(2)})});ace.define("ace/mode/yaml_worker",[],function(F,H){var W=F("../lib/oop"),k=F("../worker/mirror").Mirror,M=F("./yaml/yaml-lint").lint,t=H.YamlWorker=function(r){k.call(this,r),this.setTimeout(500),this.setOptions()};W.inherits(t,k),function(){this.setOptions=function(){this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.changeOptions=function(r){W.mixin(this.options,r),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.onUpdate=function(){var r=this,u=this.doc.getValue(),l=[];M(u,{},function(a){if(!a){r.sender.emit("annotate",l);return}l.push({row:a.mark.line,column:a.mark.column,text:a.reason,type:"error",raw:a}),r.sender.emit("annotate",l)})}}.call(t.prototype)});const br=Cr({__proto__:null,default:An},[An]);export{br as w};