@shiplightai/sdk 0.1.1

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.
@@ -0,0 +1,197 @@
1
+ import{a as qs}from"./chunk-6H2NJBNL.js";import{a as O}from"./chunk-KFC5I6R5.js";import{a as Qe,b as g,c as To}from"./chunk-UFLZ3URR.js";var P=g(K=>{"use strict";var Jt=Symbol.for("yaml.alias"),Is=Symbol.for("yaml.document"),Ze=Symbol.for("yaml.map"),Ks=Symbol.for("yaml.pair"),Xt=Symbol.for("yaml.scalar"),et=Symbol.for("yaml.seq"),W=Symbol.for("yaml.node.type"),Po=i=>!!i&&typeof i=="object"&&i[W]===Jt,No=i=>!!i&&typeof i=="object"&&i[W]===Is,Lo=i=>!!i&&typeof i=="object"&&i[W]===Ze,Oo=i=>!!i&&typeof i=="object"&&i[W]===Ks,_s=i=>!!i&&typeof i=="object"&&i[W]===Xt,Eo=i=>!!i&&typeof i=="object"&&i[W]===et;function Bs(i){if(i&&typeof i=="object")switch(i[W]){case Ze:case et:return!0}return!1}function Co(i){if(i&&typeof i=="object")switch(i[W]){case Jt:case Ze:case Xt:case et:return!0}return!1}var qo=i=>(_s(i)||Bs(i))&&!!i.anchor;K.ALIAS=Jt;K.DOC=Is;K.MAP=Ze;K.NODE_TYPE=W;K.PAIR=Ks;K.SCALAR=Xt;K.SEQ=et;K.hasAnchor=qo;K.isAlias=Po;K.isCollection=Bs;K.isDocument=No;K.isMap=Lo;K.isNode=Co;K.isPair=Oo;K.isScalar=_s;K.isSeq=Eo});var Se=g(Qt=>{"use strict";var I=P(),_=Symbol("break visit"),Ds=Symbol("skip children"),x=Symbol("remove node");function tt(i,e){let t=$s(e);I.isDocument(i)?le(null,i.contents,t,Object.freeze([i]))===x&&(i.contents=null):le(null,i,t,Object.freeze([]))}tt.BREAK=_;tt.SKIP=Ds;tt.REMOVE=x;function le(i,e,t,s){let n=Fs(i,e,t,s);if(I.isNode(n)||I.isPair(n))return xs(i,s,n),le(i,n,t,s);if(typeof n!="symbol"){if(I.isCollection(e)){s=Object.freeze(s.concat(e));for(let r=0;r<e.items.length;++r){let o=le(r,e.items[r],t,s);if(typeof o=="number")r=o-1;else{if(o===_)return _;o===x&&(e.items.splice(r,1),r-=1)}}}else if(I.isPair(e)){s=Object.freeze(s.concat(e));let r=le("key",e.key,t,s);if(r===_)return _;r===x&&(e.key=null);let o=le("value",e.value,t,s);if(o===_)return _;o===x&&(e.value=null)}}return n}async function it(i,e){let t=$s(e);I.isDocument(i)?await ce(null,i.contents,t,Object.freeze([i]))===x&&(i.contents=null):await ce(null,i,t,Object.freeze([]))}it.BREAK=_;it.SKIP=Ds;it.REMOVE=x;async function ce(i,e,t,s){let n=await Fs(i,e,t,s);if(I.isNode(n)||I.isPair(n))return xs(i,s,n),ce(i,n,t,s);if(typeof n!="symbol"){if(I.isCollection(e)){s=Object.freeze(s.concat(e));for(let r=0;r<e.items.length;++r){let o=await ce(r,e.items[r],t,s);if(typeof o=="number")r=o-1;else{if(o===_)return _;o===x&&(e.items.splice(r,1),r-=1)}}}else if(I.isPair(e)){s=Object.freeze(s.concat(e));let r=await ce("key",e.key,t,s);if(r===_)return _;r===x&&(e.key=null);let o=await ce("value",e.value,t,s);if(o===_)return _;o===x&&(e.value=null)}}return n}function $s(i){return typeof i=="object"&&(i.Collection||i.Node||i.Value)?Object.assign({Alias:i.Node,Map:i.Node,Scalar:i.Node,Seq:i.Node},i.Value&&{Map:i.Value,Scalar:i.Value,Seq:i.Value},i.Collection&&{Map:i.Collection,Seq:i.Collection},i):i}function Fs(i,e,t,s){if(typeof t=="function")return t(i,e,s);if(I.isMap(e))return t.Map?.(i,e,s);if(I.isSeq(e))return t.Seq?.(i,e,s);if(I.isPair(e))return t.Pair?.(i,e,s);if(I.isScalar(e))return t.Scalar?.(i,e,s);if(I.isAlias(e))return t.Alias?.(i,e,s)}function xs(i,e,t){let s=e[e.length-1];if(I.isCollection(s))s.items[i]=t;else if(I.isPair(s))i==="key"?s.key=t:s.value=t;else if(I.isDocument(s))s.contents=t;else{let n=I.isAlias(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${n} parent`)}}Qt.visit=tt;Qt.visitAsync=it});var Zt=g(Ws=>{"use strict";var Gs=P(),Io=Se(),Ko={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},_o=i=>i.replace(/[!,[\]{}]/g,e=>Ko[e]),ve=class i{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},i.defaultYaml,e),this.tags=Object.assign({},i.defaultTags,t)}clone(){let e=new i(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new i(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:i.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},i.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:i.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},i.defaultTags),this.atNextDocument=!1);let s=e.trim().split(/[ \t]+/),n=s.shift();switch(n){case"%TAG":{if(s.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;let[r,o]=s;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;let[r]=s;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{let o=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,o),!1}}default:return t(0,`Unknown directive ${n}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}let[,s,n]=e.match(/^(.*!)([^!]*)$/s);n||t(`The ${e} tag has no suffix`);let r=this.tags[s];if(r)try{return r+decodeURIComponent(n)}catch(o){return t(String(o)),null}return s==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,s]of Object.entries(this.tags))if(e.startsWith(s))return t+_o(e.substring(s.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags),n;if(e&&s.length>0&&Gs.isNode(e.contents)){let r={};Io.visit(e.contents,(o,a)=>{Gs.isNode(a)&&a.tag&&(r[a.tag]=!0)}),n=Object.keys(r)}else n=[];for(let[r,o]of s)r==="!!"&&o==="tag:yaml.org,2002:"||(!e||n.some(a=>a.startsWith(o)))&&t.push(`%TAG ${r} ${o}`);return t.join(`
2
+ `)}};ve.defaultYaml={explicit:!1,version:"1.2"};ve.defaultTags={"!!":"tag:yaml.org,2002:"};Ws.Directives=ve});var st=g(ke=>{"use strict";var Rs=P(),Bo=Se();function Do(i){if(/[\x00-\x19\s,[\]{}]/.test(i)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(i)}`;throw new Error(t)}return!0}function js(i){let e=new Set;return Bo.visit(i,{Value(t,s){s.anchor&&e.add(s.anchor)}}),e}function Us(i,e){for(let t=1;;++t){let s=`${i}${t}`;if(!e.has(s))return s}}function $o(i,e){let t=[],s=new Map,n=null;return{onAnchor:r=>{t.push(r),n??(n=js(i));let o=Us(e,n);return n.add(o),o},setAnchors:()=>{for(let r of t){let o=s.get(r);if(typeof o=="object"&&o.anchor&&(Rs.isScalar(o.node)||Rs.isCollection(o.node)))o.node.anchor=o.anchor;else{let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=r,a}}},sourceObjects:s}}ke.anchorIsValid=Do;ke.anchorNames=js;ke.createNodeAnchors=$o;ke.findNewAnchor=Us});var ei=g(Vs=>{"use strict";function Me(i,e,t,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let n=0,r=s.length;n<r;++n){let o=s[n],a=Me(i,s,String(n),o);a===void 0?delete s[n]:a!==o&&(s[n]=a)}else if(s instanceof Map)for(let n of Array.from(s.keys())){let r=s.get(n),o=Me(i,s,n,r);o===void 0?s.delete(n):o!==r&&s.set(n,o)}else if(s instanceof Set)for(let n of Array.from(s)){let r=Me(i,s,n,n);r===void 0?s.delete(n):r!==n&&(s.delete(n),s.add(r))}else for(let[n,r]of Object.entries(s)){let o=Me(i,s,n,r);o===void 0?delete s[n]:o!==r&&(s[n]=o)}return i.call(e,t,s)}Vs.applyReviver=Me});var U=g(zs=>{"use strict";var Fo=P();function Hs(i,e,t){if(Array.isArray(i))return i.map((s,n)=>Hs(s,String(n),t));if(i&&typeof i.toJSON=="function"){if(!t||!Fo.hasAnchor(i))return i.toJSON(e,t);let s={aliasCount:0,count:1,res:void 0};t.anchors.set(i,s),t.onCreate=r=>{s.res=r,delete t.onCreate};let n=i.toJSON(e,t);return t.onCreate&&t.onCreate(n),n}return typeof i=="bigint"&&!t?.keep?Number(i):i}zs.toJS=Hs});var nt=g(Js=>{"use strict";var xo=ei(),Ys=P(),Go=U(),ti=class{constructor(e){Object.defineProperty(this,Ys.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:s,onAnchor:n,reviver:r}={}){if(!Ys.isDocument(e))throw new TypeError("A document argument is required");let o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},a=Go.toJS(this,"",o);if(typeof n=="function")for(let{count:l,res:c}of o.anchors.values())n(c,l);return typeof r=="function"?xo.applyReviver(r,{"":a},"",a):a}};Js.NodeBase=ti});var Ae=g(Xs=>{"use strict";var Wo=st(),Ro=Se(),ue=P(),jo=nt(),Uo=U(),ii=class extends jo.NodeBase{constructor(e){super(ue.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){let s;t?.aliasResolveCache?s=t.aliasResolveCache:(s=[],Ro.visit(e,{Node:(r,o)=>{(ue.isAlias(o)||ue.hasAnchor(o))&&s.push(o)}}),t&&(t.aliasResolveCache=s));let n;for(let r of s){if(r===this)break;r.anchor===this.source&&(n=r)}return n}toJSON(e,t){if(!t)return{source:this.source};let{anchors:s,doc:n,maxAliasCount:r}=t,o=this.resolve(n,t);if(!o){let l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=s.get(o);if(a||(Uo.toJS(o,null,t),a=s.get(o)),!a||a.res===void 0){let l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(r>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=rt(n,o,s)),a.count*a.aliasCount>r)){let l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,t,s){let n=`*${this.source}`;if(e){if(Wo.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${n} `}return n}};function rt(i,e,t){if(ue.isAlias(e)){let s=e.resolve(i),n=t&&s&&t.get(s);return n?n.count*n.aliasCount:0}else if(ue.isCollection(e)){let s=0;for(let n of e.items){let r=rt(i,n,t);r>s&&(s=r)}return s}else if(ue.isPair(e)){let s=rt(i,e.key,t),n=rt(i,e.value,t);return Math.max(s,n)}return 1}Xs.Alias=ii});var E=g(si=>{"use strict";var Vo=P(),Ho=nt(),zo=U(),Yo=i=>!i||typeof i!="function"&&typeof i!="object",V=class extends Ho.NodeBase{constructor(e){super(Vo.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:zo.toJS(this.value,e,t)}toString(){return String(this.value)}};V.BLOCK_FOLDED="BLOCK_FOLDED";V.BLOCK_LITERAL="BLOCK_LITERAL";V.PLAIN="PLAIN";V.QUOTE_DOUBLE="QUOTE_DOUBLE";V.QUOTE_SINGLE="QUOTE_SINGLE";si.Scalar=V;si.isScalarValue=Yo});var Te=g(Zs=>{"use strict";var Jo=Ae(),te=P(),Qs=E(),Xo="tag:yaml.org,2002:";function Qo(i,e,t){if(e){let s=t.filter(r=>r.tag===e),n=s.find(r=>!r.format)??s[0];if(!n)throw new Error(`Tag ${e} not found`);return n}return t.find(s=>s.identify?.(i)&&!s.format)}function Zo(i,e,t){if(te.isDocument(i)&&(i=i.contents),te.isNode(i))return i;if(te.isPair(i)){let u=t.schema[te.MAP].createNode?.(t.schema,null,t);return u.items.push(i),u}(i instanceof String||i instanceof Number||i instanceof Boolean||typeof BigInt<"u"&&i instanceof BigInt)&&(i=i.valueOf());let{aliasDuplicateObjects:s,onAnchor:n,onTagObj:r,schema:o,sourceObjects:a}=t,l;if(s&&i&&typeof i=="object"){if(l=a.get(i),l)return l.anchor??(l.anchor=n(i)),new Jo.Alias(l.anchor);l={anchor:null,node:null},a.set(i,l)}e?.startsWith("!!")&&(e=Xo+e.slice(2));let c=Qo(i,e,o.tags);if(!c){if(i&&typeof i.toJSON=="function"&&(i=i.toJSON()),!i||typeof i!="object"){let u=new Qs.Scalar(i);return l&&(l.node=u),u}c=i instanceof Map?o[te.MAP]:Symbol.iterator in Object(i)?o[te.SEQ]:o[te.MAP]}r&&(r(c),delete t.onTagObj);let d=c?.createNode?c.createNode(t.schema,i,t):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(t.schema,i,t):new Qs.Scalar(i);return e?d.tag=e:c.default||(d.tag=c.tag),l&&(l.node=d),d}Zs.createNode=Zo});var at=g(ot=>{"use strict";var ea=Te(),G=P(),ta=nt();function ni(i,e,t){let s=t;for(let n=e.length-1;n>=0;--n){let r=e[n];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){let o=[];o[r]=s,s=o}else s=new Map([[r,s]])}return ea.createNode(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:i,sourceObjects:new Map})}var en=i=>i==null||typeof i=="object"&&!!i[Symbol.iterator]().next().done,ri=class extends ta.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(s=>G.isNode(s)||G.isPair(s)?s.clone(e):s),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(en(e))this.add(t);else{let[s,...n]=e,r=this.get(s,!0);if(G.isCollection(r))r.addIn(n,t);else if(r===void 0&&this.schema)this.set(s,ni(this.schema,n,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${n}`)}}deleteIn(e){let[t,...s]=e;if(s.length===0)return this.delete(t);let n=this.get(t,!0);if(G.isCollection(n))return n.deleteIn(s);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${s}`)}getIn(e,t){let[s,...n]=e,r=this.get(s,!0);return n.length===0?!t&&G.isScalar(r)?r.value:r:G.isCollection(r)?r.getIn(n,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!G.isPair(t))return!1;let s=t.value;return s==null||e&&G.isScalar(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(e){let[t,...s]=e;if(s.length===0)return this.has(t);let n=this.get(t,!0);return G.isCollection(n)?n.hasIn(s):!1}setIn(e,t){let[s,...n]=e;if(n.length===0)this.set(s,t);else{let r=this.get(s,!0);if(G.isCollection(r))r.setIn(n,t);else if(r===void 0&&this.schema)this.set(s,ni(this.schema,n,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${n}`)}}};ot.Collection=ri;ot.collectionFromPath=ni;ot.isEmptyPath=en});var Pe=g(lt=>{"use strict";var ia=i=>i.replace(/^(?!$)(?: $)?/gm,"#");function oi(i,e){return/^\n+$/.test(i)?i.substring(1):e?i.replace(/^(?! *$)/gm,e):i}var sa=(i,e,t)=>i.endsWith(`
3
+ `)?oi(t,e):t.includes(`
4
+ `)?`
5
+ `+oi(t,e):(i.endsWith(" ")?"":" ")+t;lt.indentComment=oi;lt.lineComment=sa;lt.stringifyComment=ia});var sn=g(Ne=>{"use strict";var na="flow",ai="block",ct="quoted";function ra(i,e,t="flow",{indentAtStart:s,lineWidth:n=80,minContentWidth:r=20,onFold:o,onOverflow:a}={}){if(!n||n<0)return i;n<r&&(r=0);let l=Math.max(1+r,1+n-e.length);if(i.length<=l)return i;let c=[],d={},u=n-e.length;typeof s=="number"&&(s>n-Math.max(2,r)?c.push(0):u=n-s);let f,p,y=!1,h=-1,m=-1,S=-1;t===ai&&(h=tn(i,h,e.length),h!==-1&&(u=h+l));for(let k;k=i[h+=1];){if(t===ct&&k==="\\"){switch(m=h,i[h+1]){case"x":h+=3;break;case"u":h+=5;break;case"U":h+=9;break;default:h+=1}S=h}if(k===`
6
+ `)t===ai&&(h=tn(i,h,e.length)),u=h+e.length+l,f=void 0;else{if(k===" "&&p&&p!==" "&&p!==`
7
+ `&&p!==" "){let M=i[h+1];M&&M!==" "&&M!==`
8
+ `&&M!==" "&&(f=h)}if(h>=u)if(f)c.push(f),u=f+l,f=void 0;else if(t===ct){for(;p===" "||p===" ";)p=k,k=i[h+=1],y=!0;let M=h>S+1?h-2:m-1;if(d[M])return i;c.push(M),d[M]=!0,u=M+l,f=void 0}else y=!0}p=k}if(y&&a&&a(),c.length===0)return i;o&&o();let v=i.slice(0,c[0]);for(let k=0;k<c.length;++k){let M=c[k],A=c[k+1]||i.length;M===0?v=`
9
+ ${e}${i.slice(0,A)}`:(t===ct&&d[M]&&(v+=`${i[M]}\\`),v+=`
10
+ ${e}${i.slice(M+1,A)}`)}return v}function tn(i,e,t){let s=e,n=e+1,r=i[n];for(;r===" "||r===" ";)if(e<n+t)r=i[++e];else{do r=i[++e];while(r&&r!==`
11
+ `);s=e,n=e+1,r=i[n]}return s}Ne.FOLD_BLOCK=ai;Ne.FOLD_FLOW=na;Ne.FOLD_QUOTED=ct;Ne.foldFlowLines=ra});var Oe=g(nn=>{"use strict";var $=E(),H=sn(),ft=(i,e)=>({indentAtStart:e?i.indent.length:i.indentAtStart,lineWidth:i.options.lineWidth,minContentWidth:i.options.minContentWidth}),ht=i=>/^(%|---|\.\.\.)/m.test(i);function oa(i,e,t){if(!e||e<0)return!1;let s=e-t,n=i.length;if(n<=s)return!1;for(let r=0,o=0;r<n;++r)if(i[r]===`
12
+ `){if(r-o>s)return!0;if(o=r+1,n-o<=s)return!1}return!0}function Le(i,e){let t=JSON.stringify(i);if(e.options.doubleQuotedAsJSON)return t;let{implicitKey:s}=e,n=e.options.doubleQuotedMinMultiLineLength,r=e.indent||(ht(i)?" ":""),o="",a=0;for(let l=0,c=t[l];c;c=t[++l])if(c===" "&&t[l+1]==="\\"&&t[l+2]==="n"&&(o+=t.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),c==="\\")switch(t[l+1]){case"u":{o+=t.slice(a,l);let d=t.substr(l+2,4);switch(d){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:d.substr(0,2)==="00"?o+="\\x"+d.substr(2):o+=t.substr(l,6)}l+=5,a=l+1}break;case"n":if(s||t[l+2]==='"'||t.length<n)l+=1;else{for(o+=t.slice(a,l)+`
13
+
14
+ `;t[l+2]==="\\"&&t[l+3]==="n"&&t[l+4]!=='"';)o+=`
15
+ `,l+=2;o+=r,t[l+2]===" "&&(o+="\\"),l+=1,a=l+1}break;default:l+=1}return o=a?o+t.slice(a):t,s?o:H.foldFlowLines(o,r,H.FOLD_QUOTED,ft(e,!1))}function li(i,e){if(e.options.singleQuote===!1||e.implicitKey&&i.includes(`
16
+ `)||/[ \t]\n|\n[ \t]/.test(i))return Le(i,e);let t=e.indent||(ht(i)?" ":""),s="'"+i.replace(/'/g,"''").replace(/\n+/g,`$&
17
+ ${t}`)+"'";return e.implicitKey?s:H.foldFlowLines(s,t,H.FOLD_FLOW,ft(e,!1))}function fe(i,e){let{singleQuote:t}=e.options,s;if(t===!1)s=Le;else{let n=i.includes('"'),r=i.includes("'");n&&!r?s=li:r&&!n?s=Le:s=t?li:Le}return s(i,e)}var ci;try{ci=new RegExp(`(^|(?<!
18
+ ))
19
+ +(?!
20
+ |$)`,"g")}catch{ci=/\n+(?!\n|$)/g}function ut({comment:i,type:e,value:t},s,n,r){let{blockQuote:o,commentString:a,lineWidth:l}=s.options;if(!o||/\n[\t ]+$/.test(t)||/^\s*$/.test(t))return fe(t,s);let c=s.indent||(s.forceBlockIndent||ht(t)?" ":""),d=o==="literal"?!0:o==="folded"||e===$.Scalar.BLOCK_FOLDED?!1:e===$.Scalar.BLOCK_LITERAL?!0:!oa(t,l,c.length);if(!t)return d?`|
21
+ `:`>
22
+ `;let u,f;for(f=t.length;f>0;--f){let A=t[f-1];if(A!==`
23
+ `&&A!==" "&&A!==" ")break}let p=t.substring(f),y=p.indexOf(`
24
+ `);y===-1?u="-":t===p||y!==p.length-1?(u="+",r&&r()):u="",p&&(t=t.slice(0,-p.length),p[p.length-1]===`
25
+ `&&(p=p.slice(0,-1)),p=p.replace(ci,`$&${c}`));let h=!1,m,S=-1;for(m=0;m<t.length;++m){let A=t[m];if(A===" ")h=!0;else if(A===`
26
+ `)S=m;else break}let v=t.substring(0,S<m?S+1:m);v&&(t=t.substring(v.length),v=v.replace(/\n+/g,`$&${c}`));let M=(h?c?"2":"1":"")+u;if(i&&(M+=" "+a(i.replace(/ ?[\r\n]+/g," ")),n&&n()),!d){let A=t.replace(/\n+/g,`
27
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`),T=!1,L=ft(s,!0);o!=="folded"&&e!==$.Scalar.BLOCK_FOLDED&&(L.onOverflow=()=>{T=!0});let w=H.foldFlowLines(`${v}${A}${p}`,c,H.FOLD_BLOCK,L);if(!T)return`>${M}
28
+ ${c}${w}`}return t=t.replace(/\n+/g,`$&${c}`),`|${M}
29
+ ${c}${v}${t}${p}`}function aa(i,e,t,s){let{type:n,value:r}=i,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:d}=e;if(a&&r.includes(`
30
+ `)||d&&/[[\]{},]/.test(r))return fe(r,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return a||d||!r.includes(`
31
+ `)?fe(r,e):ut(i,e,t,s);if(!a&&!d&&n!==$.Scalar.PLAIN&&r.includes(`
32
+ `))return ut(i,e,t,s);if(ht(r)){if(l==="")return e.forceBlockIndent=!0,ut(i,e,t,s);if(a&&l===c)return fe(r,e)}let u=r.replace(/\n+/g,`$&
33
+ ${l}`);if(o){let f=h=>h.default&&h.tag!=="tag:yaml.org,2002:str"&&h.test?.test(u),{compat:p,tags:y}=e.doc.schema;if(y.some(f)||p?.some(f))return fe(r,e)}return a?u:H.foldFlowLines(u,l,H.FOLD_FLOW,ft(e,!1))}function la(i,e,t,s){let{implicitKey:n,inFlow:r}=e,o=typeof i.value=="string"?i:Object.assign({},i,{value:String(i.value)}),{type:a}=i;a!==$.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=$.Scalar.QUOTE_DOUBLE);let l=d=>{switch(d){case $.Scalar.BLOCK_FOLDED:case $.Scalar.BLOCK_LITERAL:return n||r?fe(o.value,e):ut(o,e,t,s);case $.Scalar.QUOTE_DOUBLE:return Le(o.value,e);case $.Scalar.QUOTE_SINGLE:return li(o.value,e);case $.Scalar.PLAIN:return aa(o,e,t,s);default:return null}},c=l(a);if(c===null){let{defaultKeyType:d,defaultStringType:u}=e.options,f=n&&d||u;if(c=l(f),c===null)throw new Error(`Unsupported default string type ${f}`)}return c}nn.stringifyString=la});var Ee=g(ui=>{"use strict";var ca=st(),z=P(),ua=Pe(),fa=Oe();function ha(i,e){let t=Object.assign({blockQuote:!0,commentString:ua.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},i.schema.toStringOptions,e),s;switch(t.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:i,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:s,options:t}}function da(i,e){if(e.tag){let n=i.filter(r=>r.tag===e.tag);if(n.length>0)return n.find(r=>r.format===e.format)??n[0]}let t,s;if(z.isScalar(e)){s=e.value;let n=i.filter(r=>r.identify?.(s));if(n.length>1){let r=n.filter(o=>o.test);r.length>0&&(n=r)}t=n.find(r=>r.format===e.format)??n.find(r=>!r.format)}else s=e,t=i.find(n=>n.nodeClass&&s instanceof n.nodeClass);if(!t){let n=s?.constructor?.name??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${n} value`)}return t}function pa(i,e,{anchors:t,doc:s}){if(!s.directives)return"";let n=[],r=(z.isScalar(i)||z.isCollection(i))&&i.anchor;r&&ca.anchorIsValid(r)&&(t.add(r),n.push(`&${r}`));let o=i.tag??(e.default?null:e.tag);return o&&n.push(s.directives.tagString(o)),n.join(" ")}function ma(i,e,t,s){if(z.isPair(i))return i.toString(e,t,s);if(z.isAlias(i)){if(e.doc.directives)return i.toString(e);if(e.resolvedAliases?.has(i))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(i):e.resolvedAliases=new Set([i]),i=i.resolve(e.doc)}let n,r=z.isNode(i)?i:e.doc.createNode(i,{onTagObj:l=>n=l});n??(n=da(e.doc.schema.tags,r));let o=pa(r,n,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);let a=typeof n.stringify=="function"?n.stringify(r,e,t,s):z.isScalar(r)?fa.stringifyString(r,e,t,s):r.toString(e,t,s);return o?z.isScalar(r)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
34
+ ${e.indent}${a}`:a}ui.createStringifyContext=ha;ui.stringify=ma});var ln=g(an=>{"use strict";var R=P(),rn=E(),on=Ee(),Ce=Pe();function ga({key:i,value:e},t,s,n){let{allNullValues:r,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:d,simpleKeys:u}}=t,f=R.isNode(i)&&i.comment||null;if(u){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(R.isCollection(i)||!R.isNode(i)&&typeof i=="object"){let L="With simple keys, collection cannot be used as a key value";throw new Error(L)}}let p=!u&&(!i||f&&e==null&&!t.inFlow||R.isCollection(i)||(R.isScalar(i)?i.type===rn.Scalar.BLOCK_FOLDED||i.type===rn.Scalar.BLOCK_LITERAL:typeof i=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!p&&(u||!r),indent:a+l});let y=!1,h=!1,m=on.stringify(i,t,()=>y=!0,()=>h=!0);if(!p&&!t.inFlow&&m.length>1024){if(u)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(t.inFlow){if(r||e==null)return y&&s&&s(),m===""?"?":p?`? ${m}`:m}else if(r&&!u||e==null&&p)return m=`? ${m}`,f&&!y?m+=Ce.lineComment(m,t.indent,c(f)):h&&n&&n(),m;y&&(f=null),p?(f&&(m+=Ce.lineComment(m,t.indent,c(f))),m=`? ${m}
35
+ ${a}:`):(m=`${m}:`,f&&(m+=Ce.lineComment(m,t.indent,c(f))));let S,v,k;R.isNode(e)?(S=!!e.spaceBefore,v=e.commentBefore,k=e.comment):(S=!1,v=null,k=null,e&&typeof e=="object"&&(e=o.createNode(e))),t.implicitKey=!1,!p&&!f&&R.isScalar(e)&&(t.indentAtStart=m.length+1),h=!1,!d&&l.length>=2&&!t.inFlow&&!p&&R.isSeq(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let M=!1,A=on.stringify(e,t,()=>M=!0,()=>h=!0),T=" ";if(f||S||v){if(T=S?`
36
+ `:"",v){let L=c(v);T+=`
37
+ ${Ce.indentComment(L,t.indent)}`}A===""&&!t.inFlow?T===`
38
+ `&&(T=`
39
+
40
+ `):T+=`
41
+ ${t.indent}`}else if(!p&&R.isCollection(e)){let L=A[0],w=A.indexOf(`
42
+ `),C=w!==-1,j=t.inFlow??e.flow??e.items.length===0;if(C||!j){let ae=!1;if(C&&(L==="&"||L==="!")){let q=A.indexOf(" ");L==="&"&&q!==-1&&q<w&&A[q+1]==="!"&&(q=A.indexOf(" ",q+1)),(q===-1||w<q)&&(ae=!0)}ae||(T=`
43
+ ${t.indent}`)}}else(A===""||A[0]===`
44
+ `)&&(T="");return m+=T+A,t.inFlow?M&&s&&s():k&&!M?m+=Ce.lineComment(m,t.indent,c(k)):h&&n&&n(),m}an.stringifyPair=ga});var hi=g(fi=>{"use strict";var cn=Qe("process");function ya(i,...e){i==="debug"&&console.log(...e)}function wa(i,e){(i==="debug"||i==="warn")&&(typeof cn.emitWarning=="function"?cn.emitWarning(e):console.warn(e))}fi.debug=ya;fi.warn=wa});var gt=g(mt=>{"use strict";var qe=P(),un=E(),dt="<<",pt={identify:i=>i===dt||typeof i=="symbol"&&i.description===dt,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new un.Scalar(Symbol(dt)),{addToJSMap:fn}),stringify:()=>dt},ba=(i,e)=>(pt.identify(e)||qe.isScalar(e)&&(!e.type||e.type===un.Scalar.PLAIN)&&pt.identify(e.value))&&i?.doc.schema.tags.some(t=>t.tag===pt.tag&&t.default);function fn(i,e,t){if(t=i&&qe.isAlias(t)?t.resolve(i.doc):t,qe.isSeq(t))for(let s of t.items)di(i,e,s);else if(Array.isArray(t))for(let s of t)di(i,e,s);else di(i,e,t)}function di(i,e,t){let s=i&&qe.isAlias(t)?t.resolve(i.doc):t;if(!qe.isMap(s))throw new Error("Merge sources must be maps or map aliases");let n=s.toJSON(null,i,Map);for(let[r,o]of n)e instanceof Map?e.has(r)||e.set(r,o):e instanceof Set?e.add(r):Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}mt.addMergeToJSMap=fn;mt.isMergeKey=ba;mt.merge=pt});var mi=g(pn=>{"use strict";var Sa=hi(),hn=gt(),va=Ee(),dn=P(),pi=U();function ka(i,e,{key:t,value:s}){if(dn.isNode(t)&&t.addToJSMap)t.addToJSMap(i,e,s);else if(hn.isMergeKey(i,t))hn.addMergeToJSMap(i,e,s);else{let n=pi.toJS(t,"",i);if(e instanceof Map)e.set(n,pi.toJS(s,n,i));else if(e instanceof Set)e.add(n);else{let r=Ma(t,n,i),o=pi.toJS(s,r,i);r in e?Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[r]=o}}return e}function Ma(i,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(dn.isNode(i)&&t?.doc){let s=va.createStringifyContext(t.doc,{});s.anchors=new Set;for(let r of t.anchors.keys())s.anchors.add(r.anchor);s.inFlow=!0,s.inStringifyKey=!0;let n=i.toString(s);if(!t.mapKeyWarned){let r=JSON.stringify(n);r.length>40&&(r=r.substring(0,36)+'..."'),Sa.warn(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return n}return JSON.stringify(e)}pn.addPairToJSMap=ka});var Y=g(gi=>{"use strict";var mn=Te(),Aa=ln(),Ta=mi(),yt=P();function Pa(i,e,t){let s=mn.createNode(i,void 0,t),n=mn.createNode(e,void 0,t);return new wt(s,n)}var wt=class i{constructor(e,t=null){Object.defineProperty(this,yt.NODE_TYPE,{value:yt.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:s}=this;return yt.isNode(t)&&(t=t.clone(e)),yt.isNode(s)&&(s=s.clone(e)),new i(t,s)}toJSON(e,t){let s=t?.mapAsMap?new Map:{};return Ta.addPairToJSMap(t,s,this)}toString(e,t,s){return e?.doc?Aa.stringifyPair(this,e,t,s):JSON.stringify(this)}};gi.Pair=wt;gi.createPair=Pa});var yi=g(yn=>{"use strict";var ie=P(),gn=Ee(),bt=Pe();function Na(i,e,t){return(e.inFlow??i.flow?Oa:La)(i,e,t)}function La({comment:i,items:e},t,{blockItemPrefix:s,flowChars:n,itemIndent:r,onChompKeep:o,onComment:a}){let{indent:l,options:{commentString:c}}=t,d=Object.assign({},t,{indent:r,type:null}),u=!1,f=[];for(let y=0;y<e.length;++y){let h=e[y],m=null;if(ie.isNode(h))!u&&h.spaceBefore&&f.push(""),St(t,f,h.commentBefore,u),h.comment&&(m=h.comment);else if(ie.isPair(h)){let v=ie.isNode(h.key)?h.key:null;v&&(!u&&v.spaceBefore&&f.push(""),St(t,f,v.commentBefore,u))}u=!1;let S=gn.stringify(h,d,()=>m=null,()=>u=!0);m&&(S+=bt.lineComment(S,r,c(m))),u&&m&&(u=!1),f.push(s+S)}let p;if(f.length===0)p=n.start+n.end;else{p=f[0];for(let y=1;y<f.length;++y){let h=f[y];p+=h?`
45
+ ${l}${h}`:`
46
+ `}}return i?(p+=`
47
+ `+bt.indentComment(c(i),l),a&&a()):u&&o&&o(),p}function Oa({items:i},e,{flowChars:t,itemIndent:s}){let{indent:n,indentStep:r,flowCollectionPadding:o,options:{commentString:a}}=e;s+=r;let l=Object.assign({},e,{indent:s,inFlow:!0,type:null}),c=!1,d=0,u=[];for(let y=0;y<i.length;++y){let h=i[y],m=null;if(ie.isNode(h))h.spaceBefore&&u.push(""),St(e,u,h.commentBefore,!1),h.comment&&(m=h.comment);else if(ie.isPair(h)){let v=ie.isNode(h.key)?h.key:null;v&&(v.spaceBefore&&u.push(""),St(e,u,v.commentBefore,!1),v.comment&&(c=!0));let k=ie.isNode(h.value)?h.value:null;k?(k.comment&&(m=k.comment),k.commentBefore&&(c=!0)):h.value==null&&v?.comment&&(m=v.comment)}m&&(c=!0);let S=gn.stringify(h,l,()=>m=null);y<i.length-1&&(S+=","),m&&(S+=bt.lineComment(S,s,a(m))),!c&&(u.length>d||S.includes(`
48
+ `))&&(c=!0),u.push(S),d=u.length}let{start:f,end:p}=t;if(u.length===0)return f+p;if(!c){let y=u.reduce((h,m)=>h+m.length+2,2);c=e.options.lineWidth>0&&y>e.options.lineWidth}if(c){let y=f;for(let h of u)y+=h?`
49
+ ${r}${n}${h}`:`
50
+ `;return`${y}
51
+ ${n}${p}`}else return`${f}${o}${u.join(" ")}${o}${p}`}function St({indent:i,options:{commentString:e}},t,s,n){if(s&&n&&(s=s.replace(/^\n+/,"")),s){let r=bt.indentComment(e(s),i);t.push(r.trimStart())}}yn.stringifyCollection=Na});var X=g(bi=>{"use strict";var Ea=yi(),Ca=mi(),qa=at(),J=P(),vt=Y(),Ia=E();function Ie(i,e){let t=J.isScalar(e)?e.value:e;for(let s of i)if(J.isPair(s)&&(s.key===e||s.key===t||J.isScalar(s.key)&&s.key.value===t))return s}var wi=class extends qa.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(J.MAP,e),this.items=[]}static from(e,t,s){let{keepUndefined:n,replacer:r}=s,o=new this(e),a=(l,c)=>{if(typeof r=="function")c=r.call(t,l,c);else if(Array.isArray(r)&&!r.includes(l))return;(c!==void 0||n)&&o.items.push(vt.createPair(l,c,s))};if(t instanceof Map)for(let[l,c]of t)a(l,c);else if(t&&typeof t=="object")for(let l of Object.keys(t))a(l,t[l]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,t){let s;J.isPair(e)?s=e:!e||typeof e!="object"||!("key"in e)?s=new vt.Pair(e,e?.value):s=new vt.Pair(e.key,e.value);let n=Ie(this.items,s.key),r=this.schema?.sortMapEntries;if(n){if(!t)throw new Error(`Key ${s.key} already set`);J.isScalar(n.value)&&Ia.isScalarValue(s.value)?n.value.value=s.value:n.value=s.value}else if(r){let o=this.items.findIndex(a=>r(s,a)<0);o===-1?this.items.push(s):this.items.splice(o,0,s)}else this.items.push(s)}delete(e){let t=Ie(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=Ie(this.items,e)?.value;return(!t&&J.isScalar(n)?n.value:n)??void 0}has(e){return!!Ie(this.items,e)}set(e,t){this.add(new vt.Pair(e,t),!0)}toJSON(e,t,s){let n=s?new s:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(n);for(let r of this.items)Ca.addPairToJSMap(t,n,r);return n}toString(e,t,s){if(!e)return JSON.stringify(this);for(let n of this.items)if(!J.isPair(n))throw new Error(`Map items must all be pairs; found ${JSON.stringify(n)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Ea.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:t})}};bi.YAMLMap=wi;bi.findPair=Ie});var he=g(bn=>{"use strict";var Ka=P(),wn=X(),_a={collection:"map",default:!0,nodeClass:wn.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(i,e){return Ka.isMap(i)||e("Expected a mapping for this tag"),i},createNode:(i,e,t)=>wn.YAMLMap.from(i,e,t)};bn.map=_a});var Q=g(Sn=>{"use strict";var Ba=Te(),Da=yi(),$a=at(),Mt=P(),Fa=E(),xa=U(),Si=class extends $a.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Mt.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=kt(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){let s=kt(e);if(typeof s!="number")return;let n=this.items[s];return!t&&Mt.isScalar(n)?n.value:n}has(e){let t=kt(e);return typeof t=="number"&&t<this.items.length}set(e,t){let s=kt(e);if(typeof s!="number")throw new Error(`Expected a valid index, not ${e}.`);let n=this.items[s];Mt.isScalar(n)&&Fa.isScalarValue(t)?n.value=t:this.items[s]=t}toJSON(e,t){let s=[];t?.onCreate&&t.onCreate(s);let n=0;for(let r of this.items)s.push(xa.toJS(r,String(n++),t));return s}toString(e,t,s){return e?Da.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:s,onComment:t}):JSON.stringify(this)}static from(e,t,s){let{replacer:n}=s,r=new this(e);if(t&&Symbol.iterator in Object(t)){let o=0;for(let a of t){if(typeof n=="function"){let l=t instanceof Set?a:String(o++);a=n.call(t,l,a)}r.items.push(Ba.createNode(a,void 0,s))}}return r}};function kt(i){let e=Mt.isScalar(i)?i.value:i;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}Sn.YAMLSeq=Si});var de=g(kn=>{"use strict";var Ga=P(),vn=Q(),Wa={collection:"seq",default:!0,nodeClass:vn.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(i,e){return Ga.isSeq(i)||e("Expected a sequence for this tag"),i},createNode:(i,e,t)=>vn.YAMLSeq.from(i,e,t)};kn.seq=Wa});var Ke=g(Mn=>{"use strict";var Ra=Oe(),ja={identify:i=>typeof i=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify(i,e,t,s){return e=Object.assign({actualString:!0},e),Ra.stringifyString(i,e,t,s)}};Mn.string=ja});var At=g(Pn=>{"use strict";var An=E(),Tn={identify:i=>i==null,createNode:()=>new An.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new An.Scalar(null),stringify:({source:i},e)=>typeof i=="string"&&Tn.test.test(i)?i:e.options.nullStr};Pn.nullTag=Tn});var vi=g(Ln=>{"use strict";var Ua=E(),Nn={identify:i=>typeof i=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:i=>new Ua.Scalar(i[0]==="t"||i[0]==="T"),stringify({source:i,value:e},t){if(i&&Nn.test.test(i)){let s=i[0]==="t"||i[0]==="T";if(e===s)return i}return e?t.options.trueStr:t.options.falseStr}};Ln.boolTag=Nn});var pe=g(On=>{"use strict";function Va({format:i,minFractionDigits:e,tag:t,value:s}){if(typeof s=="bigint")return String(s);let n=typeof s=="number"?s:Number(s);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let r=JSON.stringify(s);if(!i&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^\d/.test(r)){let o=r.indexOf(".");o<0&&(o=r.length,r+=".");let a=e-(r.length-o-1);for(;a-- >0;)r+="0"}return r}On.stringifyNumber=Va});var Mi=g(Tt=>{"use strict";var Ha=E(),ki=pe(),za={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ki.stringifyNumber},Ya={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i),stringify(i){let e=Number(i.value);return isFinite(e)?e.toExponential():ki.stringifyNumber(i)}},Ja={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(i){let e=new Ha.Scalar(parseFloat(i)),t=i.indexOf(".");return t!==-1&&i[i.length-1]==="0"&&(e.minFractionDigits=i.length-t-1),e},stringify:ki.stringifyNumber};Tt.float=Ja;Tt.floatExp=Ya;Tt.floatNaN=za});var Ti=g(Nt=>{"use strict";var En=pe(),Pt=i=>typeof i=="bigint"||Number.isInteger(i),Ai=(i,e,t,{intAsBigInt:s})=>s?BigInt(i):parseInt(i.substring(e),t);function Cn(i,e,t){let{value:s}=i;return Pt(s)&&s>=0?t+s.toString(e):En.stringifyNumber(i)}var Xa={identify:i=>Pt(i)&&i>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(i,e,t)=>Ai(i,2,8,t),stringify:i=>Cn(i,8,"0o")},Qa={identify:Pt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(i,e,t)=>Ai(i,0,10,t),stringify:En.stringifyNumber},Za={identify:i=>Pt(i)&&i>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(i,e,t)=>Ai(i,2,16,t),stringify:i=>Cn(i,16,"0x")};Nt.int=Qa;Nt.intHex=Za;Nt.intOct=Xa});var In=g(qn=>{"use strict";var el=he(),tl=At(),il=de(),sl=Ke(),nl=vi(),Pi=Mi(),Ni=Ti(),rl=[el.map,il.seq,sl.string,tl.nullTag,nl.boolTag,Ni.intOct,Ni.int,Ni.intHex,Pi.floatNaN,Pi.floatExp,Pi.float];qn.schema=rl});var Bn=g(_n=>{"use strict";var ol=E(),al=he(),ll=de();function Kn(i){return typeof i=="bigint"||Number.isInteger(i)}var Lt=({value:i})=>JSON.stringify(i),cl=[{identify:i=>typeof i=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify:Lt},{identify:i=>i==null,createNode:()=>new ol.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Lt},{identify:i=>typeof i=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:i=>i==="true",stringify:Lt},{identify:Kn,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(i,e,{intAsBigInt:t})=>t?BigInt(i):parseInt(i,10),stringify:({value:i})=>Kn(i)?i.toString():JSON.stringify(i)},{identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:i=>parseFloat(i),stringify:Lt}],ul={default:!0,tag:"",test:/^/,resolve(i,e){return e(`Unresolved plain scalar ${JSON.stringify(i)}`),i}},fl=[al.map,ll.seq].concat(cl,ul);_n.schema=fl});var Oi=g(Dn=>{"use strict";var _e=Qe("buffer"),Li=E(),hl=Oe(),dl={identify:i=>i instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(i,e){if(typeof _e.Buffer=="function")return _e.Buffer.from(i,"base64");if(typeof atob=="function"){let t=atob(i.replace(/[\n\r]/g,"")),s=new Uint8Array(t.length);for(let n=0;n<t.length;++n)s[n]=t.charCodeAt(n);return s}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),i},stringify({comment:i,type:e,value:t},s,n,r){if(!t)return"";let o=t,a;if(typeof _e.Buffer=="function")a=o instanceof _e.Buffer?o.toString("base64"):_e.Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let l="";for(let c=0;c<o.length;++c)l+=String.fromCharCode(o[c]);a=btoa(l)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=Li.Scalar.BLOCK_LITERAL),e!==Li.Scalar.QUOTE_DOUBLE){let l=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),c=Math.ceil(a.length/l),d=new Array(c);for(let u=0,f=0;u<c;++u,f+=l)d[u]=a.substr(f,l);a=d.join(e===Li.Scalar.BLOCK_LITERAL?`
52
+ `:" ")}return hl.stringifyString({comment:i,type:e,value:a},s,n,r)}};Dn.binary=dl});var Ct=g(Et=>{"use strict";var Ot=P(),Ei=Y(),pl=E(),ml=Q();function $n(i,e){if(Ot.isSeq(i))for(let t=0;t<i.items.length;++t){let s=i.items[t];if(!Ot.isPair(s)){if(Ot.isMap(s)){s.items.length>1&&e("Each pair must have its own sequence indicator");let n=s.items[0]||new Ei.Pair(new pl.Scalar(null));if(s.commentBefore&&(n.key.commentBefore=n.key.commentBefore?`${s.commentBefore}
53
+ ${n.key.commentBefore}`:s.commentBefore),s.comment){let r=n.value??n.key;r.comment=r.comment?`${s.comment}
54
+ ${r.comment}`:s.comment}s=n}i.items[t]=Ot.isPair(s)?s:new Ei.Pair(s)}}else e("Expected a sequence for this tag");return i}function Fn(i,e,t){let{replacer:s}=t,n=new ml.YAMLSeq(i);n.tag="tag:yaml.org,2002:pairs";let r=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof s=="function"&&(o=s.call(e,String(r++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){let c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=o;n.items.push(Ei.createPair(a,l,t))}return n}var gl={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:$n,createNode:Fn};Et.createPairs=Fn;Et.pairs=gl;Et.resolvePairs=$n});var Ii=g(qi=>{"use strict";var xn=P(),Ci=U(),Be=X(),yl=Q(),Gn=Ct(),se=class i extends yl.YAMLSeq{constructor(){super(),this.add=Be.YAMLMap.prototype.add.bind(this),this.delete=Be.YAMLMap.prototype.delete.bind(this),this.get=Be.YAMLMap.prototype.get.bind(this),this.has=Be.YAMLMap.prototype.has.bind(this),this.set=Be.YAMLMap.prototype.set.bind(this),this.tag=i.tag}toJSON(e,t){if(!t)return super.toJSON(e);let s=new Map;t?.onCreate&&t.onCreate(s);for(let n of this.items){let r,o;if(xn.isPair(n)?(r=Ci.toJS(n.key,"",t),o=Ci.toJS(n.value,r,t)):r=Ci.toJS(n,"",t),s.has(r))throw new Error("Ordered maps must not include duplicate keys");s.set(r,o)}return s}static from(e,t,s){let n=Gn.createPairs(e,t,s),r=new this;return r.items=n.items,r}};se.tag="tag:yaml.org,2002:omap";var wl={collection:"seq",identify:i=>i instanceof Map,nodeClass:se,default:!1,tag:"tag:yaml.org,2002:omap",resolve(i,e){let t=Gn.resolvePairs(i,e),s=[];for(let{key:n}of t.items)xn.isScalar(n)&&(s.includes(n.value)?e(`Ordered maps must not include duplicate keys: ${n.value}`):s.push(n.value));return Object.assign(new se,t)},createNode:(i,e,t)=>se.from(i,e,t)};qi.YAMLOMap=se;qi.omap=wl});var Vn=g(Ki=>{"use strict";var Wn=E();function Rn({value:i,source:e},t){return e&&(i?jn:Un).test.test(e)?e:i?t.options.trueStr:t.options.falseStr}var jn={identify:i=>i===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Wn.Scalar(!0),stringify:Rn},Un={identify:i=>i===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Wn.Scalar(!1),stringify:Rn};Ki.falseTag=Un;Ki.trueTag=jn});var Hn=g(qt=>{"use strict";var bl=E(),_i=pe(),Sl={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:_i.stringifyNumber},vl={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i.replace(/_/g,"")),stringify(i){let e=Number(i.value);return isFinite(e)?e.toExponential():_i.stringifyNumber(i)}},kl={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(i){let e=new bl.Scalar(parseFloat(i.replace(/_/g,""))),t=i.indexOf(".");if(t!==-1){let s=i.substring(t+1).replace(/_/g,"");s[s.length-1]==="0"&&(e.minFractionDigits=s.length)}return e},stringify:_i.stringifyNumber};qt.float=kl;qt.floatExp=vl;qt.floatNaN=Sl});var Yn=g($e=>{"use strict";var zn=pe(),De=i=>typeof i=="bigint"||Number.isInteger(i);function It(i,e,t,{intAsBigInt:s}){let n=i[0];if((n==="-"||n==="+")&&(e+=1),i=i.substring(e).replace(/_/g,""),s){switch(t){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`;break}let o=BigInt(i);return n==="-"?BigInt(-1)*o:o}let r=parseInt(i,t);return n==="-"?-1*r:r}function Bi(i,e,t){let{value:s}=i;if(De(s)){let n=s.toString(e);return s<0?"-"+t+n.substr(1):t+n}return zn.stringifyNumber(i)}var Ml={identify:De,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(i,e,t)=>It(i,2,2,t),stringify:i=>Bi(i,2,"0b")},Al={identify:De,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(i,e,t)=>It(i,1,8,t),stringify:i=>Bi(i,8,"0")},Tl={identify:De,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(i,e,t)=>It(i,0,10,t),stringify:zn.stringifyNumber},Pl={identify:De,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(i,e,t)=>It(i,2,16,t),stringify:i=>Bi(i,16,"0x")};$e.int=Tl;$e.intBin=Ml;$e.intHex=Pl;$e.intOct=Al});var $i=g(Di=>{"use strict";var Bt=P(),Kt=Y(),_t=X(),ne=class i extends _t.YAMLMap{constructor(e){super(e),this.tag=i.tag}add(e){let t;Bt.isPair(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new Kt.Pair(e.key,null):t=new Kt.Pair(e,null),_t.findPair(this.items,t.key)||this.items.push(t)}get(e,t){let s=_t.findPair(this.items,e);return!t&&Bt.isPair(s)?Bt.isScalar(s.key)?s.key.value:s.key:s}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let s=_t.findPair(this.items,e);s&&!t?this.items.splice(this.items.indexOf(s),1):!s&&t&&this.items.push(new Kt.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,s);throw new Error("Set items must all have null values")}static from(e,t,s){let{replacer:n}=s,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let o of t)typeof n=="function"&&(o=n.call(t,o,o)),r.items.push(Kt.createPair(o,null,s));return r}};ne.tag="tag:yaml.org,2002:set";var Nl={collection:"map",identify:i=>i instanceof Set,nodeClass:ne,default:!1,tag:"tag:yaml.org,2002:set",createNode:(i,e,t)=>ne.from(i,e,t),resolve(i,e){if(Bt.isMap(i)){if(i.hasAllNullValues(!0))return Object.assign(new ne,i);e("Set items must all have null values")}else e("Expected a mapping for this tag");return i}};Di.YAMLSet=ne;Di.set=Nl});var xi=g(Dt=>{"use strict";var Ll=pe();function Fi(i,e){let t=i[0],s=t==="-"||t==="+"?i.substring(1):i,n=o=>e?BigInt(o):Number(o),r=s.replace(/_/g,"").split(":").reduce((o,a)=>o*n(60)+n(a),n(0));return t==="-"?n(-1)*r:r}function Jn(i){let{value:e}=i,t=o=>o;if(typeof e=="bigint")t=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return Ll.stringifyNumber(i);let s="";e<0&&(s="-",e*=t(-1));let n=t(60),r=[e%n];return e<60?r.unshift(0):(e=(e-r[0])/n,r.unshift(e%n),e>=60&&(e=(e-r[0])/n,r.unshift(e))),s+r.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var Ol={identify:i=>typeof i=="bigint"||Number.isInteger(i),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(i,e,{intAsBigInt:t})=>Fi(i,t),stringify:Jn},El={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:i=>Fi(i,!1),stringify:Jn},Xn={identify:i=>i instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(i){let e=i.match(Xn.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,t,s,n,r,o,a]=e.map(Number),l=e[7]?Number((e[7]+"00").substr(1,3)):0,c=Date.UTC(t,s-1,n,r||0,o||0,a||0,l),d=e[8];if(d&&d!=="Z"){let u=Fi(d,!1);Math.abs(u)<30&&(u*=60),c-=6e4*u}return new Date(c)},stringify:({value:i})=>i?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};Dt.floatTime=El;Dt.intTime=Ol;Dt.timestamp=Xn});var er=g(Zn=>{"use strict";var Cl=he(),ql=At(),Il=de(),Kl=Ke(),_l=Oi(),Qn=Vn(),Gi=Hn(),$t=Yn(),Bl=gt(),Dl=Ii(),$l=Ct(),Fl=$i(),Wi=xi(),xl=[Cl.map,Il.seq,Kl.string,ql.nullTag,Qn.trueTag,Qn.falseTag,$t.intBin,$t.intOct,$t.int,$t.intHex,Gi.floatNaN,Gi.floatExp,Gi.float,_l.binary,Bl.merge,Dl.omap,$l.pairs,Fl.set,Wi.intTime,Wi.floatTime,Wi.timestamp];Zn.schema=xl});var ur=g(Ui=>{"use strict";var nr=he(),Gl=At(),rr=de(),Wl=Ke(),Rl=vi(),Ri=Mi(),ji=Ti(),jl=In(),Ul=Bn(),or=Oi(),Fe=gt(),ar=Ii(),lr=Ct(),tr=er(),cr=$i(),Ft=xi(),ir=new Map([["core",jl.schema],["failsafe",[nr.map,rr.seq,Wl.string]],["json",Ul.schema],["yaml11",tr.schema],["yaml-1.1",tr.schema]]),sr={binary:or.binary,bool:Rl.boolTag,float:Ri.float,floatExp:Ri.floatExp,floatNaN:Ri.floatNaN,floatTime:Ft.floatTime,int:ji.int,intHex:ji.intHex,intOct:ji.intOct,intTime:Ft.intTime,map:nr.map,merge:Fe.merge,null:Gl.nullTag,omap:ar.omap,pairs:lr.pairs,seq:rr.seq,set:cr.set,timestamp:Ft.timestamp},Vl={"tag:yaml.org,2002:binary":or.binary,"tag:yaml.org,2002:merge":Fe.merge,"tag:yaml.org,2002:omap":ar.omap,"tag:yaml.org,2002:pairs":lr.pairs,"tag:yaml.org,2002:set":cr.set,"tag:yaml.org,2002:timestamp":Ft.timestamp};function Hl(i,e,t){let s=ir.get(e);if(s&&!i)return t&&!s.includes(Fe.merge)?s.concat(Fe.merge):s.slice();let n=s;if(!n)if(Array.isArray(i))n=[];else{let r=Array.from(ir.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`)}if(Array.isArray(i))for(let r of i)n=n.concat(r);else typeof i=="function"&&(n=i(n.slice()));return t&&(n=n.concat(Fe.merge)),n.reduce((r,o)=>{let a=typeof o=="string"?sr[o]:o;if(!a){let l=JSON.stringify(o),c=Object.keys(sr).map(d=>JSON.stringify(d)).join(", ");throw new Error(`Unknown custom tag ${l}; use one of ${c}`)}return r.includes(a)||r.push(a),r},[])}Ui.coreKnownTags=Vl;Ui.getTags=Hl});var zi=g(fr=>{"use strict";var Vi=P(),zl=he(),Yl=de(),Jl=Ke(),xt=ur(),Xl=(i,e)=>i.key<e.key?-1:i.key>e.key?1:0,Hi=class i{constructor({compat:e,customTags:t,merge:s,resolveKnownTags:n,schema:r,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?xt.getTags(e,"compat"):e?xt.getTags(null,e):null,this.name=typeof r=="string"&&r||"core",this.knownTags=n?xt.coreKnownTags:{},this.tags=xt.getTags(t,this.name,s),this.toStringOptions=a??null,Object.defineProperty(this,Vi.MAP,{value:zl.map}),Object.defineProperty(this,Vi.SCALAR,{value:Jl.string}),Object.defineProperty(this,Vi.SEQ,{value:Yl.seq}),this.sortMapEntries=typeof o=="function"?o:o===!0?Xl:null}clone(){let e=Object.create(i.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};fr.Schema=Hi});var dr=g(hr=>{"use strict";var Ql=P(),Yi=Ee(),xe=Pe();function Zl(i,e){let t=[],s=e.directives===!0;if(e.directives!==!1&&i.directives){let l=i.directives.toString(i);l?(t.push(l),s=!0):i.directives.docStart&&(s=!0)}s&&t.push("---");let n=Yi.createStringifyContext(i,e),{commentString:r}=n.options;if(i.commentBefore){t.length!==1&&t.unshift("");let l=r(i.commentBefore);t.unshift(xe.indentComment(l,""))}let o=!1,a=null;if(i.contents){if(Ql.isNode(i.contents)){if(i.contents.spaceBefore&&s&&t.push(""),i.contents.commentBefore){let d=r(i.contents.commentBefore);t.push(xe.indentComment(d,""))}n.forceBlockIndent=!!i.comment,a=i.contents.comment}let l=a?void 0:()=>o=!0,c=Yi.stringify(i.contents,n,()=>a=null,l);a&&(c+=xe.lineComment(c,"",r(a))),(c[0]==="|"||c[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${c}`:t.push(c)}else t.push(Yi.stringify(i.contents,n));if(i.directives?.docEnd)if(i.comment){let l=r(i.comment);l.includes(`
55
+ `)?(t.push("..."),t.push(xe.indentComment(l,""))):t.push(`... ${l}`)}else t.push("...");else{let l=i.comment;l&&o&&(l=l.replace(/^\n+/,"")),l&&((!o||a)&&t[t.length-1]!==""&&t.push(""),t.push(xe.indentComment(r(l),"")))}return t.join(`
56
+ `)+`
57
+ `}hr.stringifyDocument=Zl});var Ge=g(pr=>{"use strict";var ec=Ae(),me=at(),D=P(),tc=Y(),ic=U(),sc=zi(),nc=dr(),Ji=st(),rc=ei(),oc=Te(),Xi=Zt(),Qi=class i{constructor(e,t,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,D.NODE_TYPE,{value:D.DOC});let n=null;typeof t=="function"||Array.isArray(t)?n=t:s===void 0&&t&&(s=t,t=void 0);let r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},s);this.options=r;let{version:o}=r;s?._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Xi.Directives({version:o}),this.setSchema(o,s),this.contents=e===void 0?null:this.createNode(e,n,s)}clone(){let e=Object.create(i.prototype,{[D.NODE_TYPE]:{value:D.DOC}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=D.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){ge(this.contents)&&this.contents.add(e)}addIn(e,t){ge(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let s=Ji.anchorNames(this);e.anchor=!t||s.has(t)?Ji.findNewAnchor(t||"a",s):t}return new ec.Alias(e.anchor)}createNode(e,t,s){let n;if(typeof t=="function")e=t.call({"":e},"",e),n=t;else if(Array.isArray(t)){let m=v=>typeof v=="number"||v instanceof String||v instanceof Number,S=t.filter(m).map(String);S.length>0&&(t=t.concat(S)),n=t}else s===void 0&&t&&(s=t,t=void 0);let{aliasDuplicateObjects:r,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:c,tag:d}=s??{},{onAnchor:u,setAnchors:f,sourceObjects:p}=Ji.createNodeAnchors(this,o||"a"),y={aliasDuplicateObjects:r??!0,keepUndefined:l??!1,onAnchor:u,onTagObj:c,replacer:n,schema:this.schema,sourceObjects:p},h=oc.createNode(e,d,y);return a&&D.isCollection(h)&&(h.flow=!0),f(),h}createPair(e,t,s={}){let n=this.createNode(e,null,s),r=this.createNode(t,null,s);return new tc.Pair(n,r)}delete(e){return ge(this.contents)?this.contents.delete(e):!1}deleteIn(e){return me.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):ge(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return D.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return me.isEmptyPath(e)?!t&&D.isScalar(this.contents)?this.contents.value:this.contents:D.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return D.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return me.isEmptyPath(e)?this.contents!==void 0:D.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=me.collectionFromPath(this.schema,[e],t):ge(this.contents)&&this.contents.set(e,t)}setIn(e,t){me.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=me.collectionFromPath(this.schema,Array.from(e),t):ge(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let s;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Xi.Directives({version:"1.1"}),s={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Xi.Directives({version:e}),s={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,s=null;break;default:{let n=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${n}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(s)this.schema=new sc.Schema(Object.assign(s,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:s,maxAliasCount:n,onAnchor:r,reviver:o}={}){let a={anchors:new Map,doc:this,keep:!e,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},l=ic.toJS(this.contents,t??"",a);if(typeof r=="function")for(let{count:c,res:d}of a.anchors.values())r(d,c);return typeof o=="function"?rc.applyReviver(o,{"":l},"",l):l}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return nc.stringifyDocument(this,e)}};function ge(i){if(D.isCollection(i))return!0;throw new Error("Expected a YAML collection as document contents")}pr.Document=Qi});var je=g(Re=>{"use strict";var We=class extends Error{constructor(e,t,s,n){super(),this.name=e,this.code=s,this.message=n,this.pos=t}},Zi=class extends We{constructor(e,t,s){super("YAMLParseError",e,t,s)}},es=class extends We{constructor(e,t,s){super("YAMLWarning",e,t,s)}},ac=(i,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(a=>e.linePos(a));let{line:s,col:n}=t.linePos[0];t.message+=` at line ${s}, column ${n}`;let r=n-1,o=i.substring(e.lineStarts[s-1],e.lineStarts[s]).replace(/[\n\r]+$/,"");if(r>=60&&o.length>80){let a=Math.min(r-39,o.length-79);o="\u2026"+o.substring(a),r-=a-1}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),s>1&&/^ *$/.test(o.substring(0,r))){let a=i.substring(e.lineStarts[s-2],e.lineStarts[s-1]);a.length>80&&(a=a.substring(0,79)+`\u2026
58
+ `),o=a+o}if(/[^ ]/.test(o)){let a=1,l=t.linePos[1];l&&l.line===s&&l.col>n&&(a=Math.max(1,Math.min(l.col-n,80-r)));let c=" ".repeat(r)+"^".repeat(a);t.message+=`:
59
+
60
+ ${o}
61
+ ${c}
62
+ `}};Re.YAMLError=We;Re.YAMLParseError=Zi;Re.YAMLWarning=es;Re.prettifyError=ac});var Ue=g(mr=>{"use strict";function lc(i,{flow:e,indicator:t,next:s,offset:n,onError:r,parentIndent:o,startOnNewline:a}){let l=!1,c=a,d=a,u="",f="",p=!1,y=!1,h=null,m=null,S=null,v=null,k=null,M=null,A=null;for(let w of i)switch(y&&(w.type!=="space"&&w.type!=="newline"&&w.type!=="comma"&&r(w.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),y=!1),h&&(c&&w.type!=="comment"&&w.type!=="newline"&&r(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),h=null),w.type){case"space":!e&&(t!=="doc-start"||s?.type!=="flow-collection")&&w.source.includes(" ")&&(h=w),d=!0;break;case"comment":{d||r(w,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let C=w.source.substring(1)||" ";u?u+=f+C:u=C,f="",c=!1;break}case"newline":c?u?u+=w.source:(!M||t!=="seq-item-ind")&&(l=!0):f+=w.source,c=!0,p=!0,(m||S)&&(v=w),d=!0;break;case"anchor":m&&r(w,"MULTIPLE_ANCHORS","A node can have at most one anchor"),w.source.endsWith(":")&&r(w.offset+w.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=w,A??(A=w.offset),c=!1,d=!1,y=!0;break;case"tag":{S&&r(w,"MULTIPLE_TAGS","A node can have at most one tag"),S=w,A??(A=w.offset),c=!1,d=!1,y=!0;break}case t:(m||S)&&r(w,"BAD_PROP_ORDER",`Anchors and tags must be after the ${w.source} indicator`),M&&r(w,"UNEXPECTED_TOKEN",`Unexpected ${w.source} in ${e??"collection"}`),M=w,c=t==="seq-item-ind"||t==="explicit-key-ind",d=!1;break;case"comma":if(e){k&&r(w,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),k=w,c=!1,d=!1;break}default:r(w,"UNEXPECTED_TOKEN",`Unexpected ${w.type} token`),c=!1,d=!1}let T=i[i.length-1],L=T?T.offset+T.source.length:n;return y&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")&&r(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),h&&(c&&h.indent<=o||s?.type==="block-map"||s?.type==="block-seq")&&r(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:k,found:M,spaceBefore:l,comment:u,hasNewline:p,anchor:m,tag:S,newlineAfterProp:v,end:L,start:A??L}}mr.resolveProps=lc});var Gt=g(gr=>{"use strict";function ts(i){if(!i)return null;switch(i.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(i.source.includes(`
63
+ `))return!0;if(i.end){for(let e of i.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(let e of i.items){for(let t of e.start)if(t.type==="newline")return!0;if(e.sep){for(let t of e.sep)if(t.type==="newline")return!0}if(ts(e.key)||ts(e.value))return!0}return!1;default:return!0}}gr.containsNewline=ts});var is=g(yr=>{"use strict";var cc=Gt();function uc(i,e,t){if(e?.type==="flow-collection"){let s=e.end[0];s.indent===i&&(s.source==="]"||s.source==="}")&&cc.containsNewline(e)&&t(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}yr.flowIndentCheck=uc});var ss=g(br=>{"use strict";var wr=P();function fc(i,e,t){let{uniqueKeys:s}=i.options;if(s===!1)return!1;let n=typeof s=="function"?s:(r,o)=>r===o||wr.isScalar(r)&&wr.isScalar(o)&&r.value===o.value;return e.some(r=>n(r.key,t))}br.mapIncludes=fc});var Tr=g(Ar=>{"use strict";var Sr=Y(),hc=X(),vr=Ue(),dc=Gt(),kr=is(),pc=ss(),Mr="All mapping items must start at the same column";function mc({composeNode:i,composeEmptyNode:e},t,s,n,r){let o=r?.nodeClass??hc.YAMLMap,a=new o(t.schema);t.atRoot&&(t.atRoot=!1);let l=s.offset,c=null;for(let d of s.items){let{start:u,key:f,sep:p,value:y}=d,h=vr.resolveProps(u,{indicator:"explicit-key-ind",next:f??p?.[0],offset:l,onError:n,parentIndent:s.indent,startOnNewline:!0}),m=!h.found;if(m){if(f&&(f.type==="block-seq"?n(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in f&&f.indent!==s.indent&&n(l,"BAD_INDENT",Mr)),!h.anchor&&!h.tag&&!p){c=h.end,h.comment&&(a.comment?a.comment+=`
64
+ `+h.comment:a.comment=h.comment);continue}(h.newlineAfterProp||dc.containsNewline(f))&&n(f??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else h.found?.indent!==s.indent&&n(l,"BAD_INDENT",Mr);t.atKey=!0;let S=h.end,v=f?i(t,f,h,n):e(t,S,u,null,h,n);t.schema.compat&&kr.flowIndentCheck(s.indent,f,n),t.atKey=!1,pc.mapIncludes(t,a.items,v)&&n(S,"DUPLICATE_KEY","Map keys must be unique");let k=vr.resolveProps(p??[],{indicator:"map-value-ind",next:y,offset:v.range[2],onError:n,parentIndent:s.indent,startOnNewline:!f||f.type==="block-scalar"});if(l=k.end,k.found){m&&(y?.type==="block-map"&&!k.hasNewline&&n(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&h.start<k.found.offset-1024&&n(v.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let M=y?i(t,y,k,n):e(t,l,p,null,k,n);t.schema.compat&&kr.flowIndentCheck(s.indent,y,n),l=M.range[2];let A=new Sr.Pair(v,M);t.options.keepSourceTokens&&(A.srcToken=d),a.items.push(A)}else{m&&n(v.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),k.comment&&(v.comment?v.comment+=`
65
+ `+k.comment:v.comment=k.comment);let M=new Sr.Pair(v);t.options.keepSourceTokens&&(M.srcToken=d),a.items.push(M)}}return c&&c<l&&n(c,"IMPOSSIBLE","Map comment with trailing content"),a.range=[s.offset,l,c??l],a}Ar.resolveBlockMap=mc});var Nr=g(Pr=>{"use strict";var gc=Q(),yc=Ue(),wc=is();function bc({composeNode:i,composeEmptyNode:e},t,s,n,r){let o=r?.nodeClass??gc.YAMLSeq,a=new o(t.schema);t.atRoot&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let l=s.offset,c=null;for(let{start:d,value:u}of s.items){let f=yc.resolveProps(d,{indicator:"seq-item-ind",next:u,offset:l,onError:n,parentIndent:s.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||u)u&&u.type==="block-seq"?n(f.end,"BAD_INDENT","All sequence items must start at the same column"):n(l,"MISSING_CHAR","Sequence item without - indicator");else{c=f.end,f.comment&&(a.comment=f.comment);continue}let p=u?i(t,u,f,n):e(t,f.end,d,null,f,n);t.schema.compat&&wc.flowIndentCheck(s.indent,u,n),l=p.range[2],a.items.push(p)}return a.range=[s.offset,l,c??l],a}Pr.resolveBlockSeq=bc});var ye=g(Lr=>{"use strict";function Sc(i,e,t,s){let n="";if(i){let r=!1,o="";for(let a of i){let{source:l,type:c}=a;switch(c){case"space":r=!0;break;case"comment":{t&&!r&&s(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let d=l.substring(1)||" ";n?n+=o+d:n=d,o="";break}case"newline":n&&(o+=l),r=!0;break;default:s(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=l.length}}return{comment:n,offset:e}}Lr.resolveEnd=Sc});var qr=g(Cr=>{"use strict";var vc=P(),kc=Y(),Or=X(),Mc=Q(),Ac=ye(),Er=Ue(),Tc=Gt(),Pc=ss(),ns="Block collections are not allowed within flow collections",rs=i=>i&&(i.type==="block-map"||i.type==="block-seq");function Nc({composeNode:i,composeEmptyNode:e},t,s,n,r){let o=s.start.source==="{",a=o?"flow map":"flow sequence",l=r?.nodeClass??(o?Or.YAMLMap:Mc.YAMLSeq),c=new l(t.schema);c.flow=!0;let d=t.atRoot;d&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let u=s.offset+s.start.source.length;for(let m=0;m<s.items.length;++m){let S=s.items[m],{start:v,key:k,sep:M,value:A}=S,T=Er.resolveProps(v,{flow:a,indicator:"explicit-key-ind",next:k??M?.[0],offset:u,onError:n,parentIndent:s.indent,startOnNewline:!1});if(!T.found){if(!T.anchor&&!T.tag&&!M&&!A){m===0&&T.comma?n(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):m<s.items.length-1&&n(T.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),T.comment&&(c.comment?c.comment+=`
66
+ `+T.comment:c.comment=T.comment),u=T.end;continue}!o&&t.options.strict&&Tc.containsNewline(k)&&n(k,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(m===0)T.comma&&n(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(T.comma||n(T.start,"MISSING_CHAR",`Missing , between ${a} items`),T.comment){let L="";e:for(let w of v)switch(w.type){case"comma":case"space":break;case"comment":L=w.source.substring(1);break e;default:break e}if(L){let w=c.items[c.items.length-1];vc.isPair(w)&&(w=w.value??w.key),w.comment?w.comment+=`
67
+ `+L:w.comment=L,T.comment=T.comment.substring(L.length+1)}}if(!o&&!M&&!T.found){let L=A?i(t,A,T,n):e(t,T.end,M,null,T,n);c.items.push(L),u=L.range[2],rs(A)&&n(L.range,"BLOCK_IN_FLOW",ns)}else{t.atKey=!0;let L=T.end,w=k?i(t,k,T,n):e(t,L,v,null,T,n);rs(k)&&n(w.range,"BLOCK_IN_FLOW",ns),t.atKey=!1;let C=Er.resolveProps(M??[],{flow:a,indicator:"map-value-ind",next:A,offset:w.range[2],onError:n,parentIndent:s.indent,startOnNewline:!1});if(C.found){if(!o&&!T.found&&t.options.strict){if(M)for(let q of M){if(q===C.found)break;if(q.type==="newline"){n(q,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}T.start<C.found.offset-1024&&n(C.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else A&&("source"in A&&A.source&&A.source[0]===":"?n(A,"MISSING_CHAR",`Missing space after : in ${a}`):n(C.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let j=A?i(t,A,C,n):C.found?e(t,C.end,M,null,C,n):null;j?rs(A)&&n(j.range,"BLOCK_IN_FLOW",ns):C.comment&&(w.comment?w.comment+=`
68
+ `+C.comment:w.comment=C.comment);let ae=new kc.Pair(w,j);if(t.options.keepSourceTokens&&(ae.srcToken=S),o){let q=c;Pc.mapIncludes(t,q.items,w)&&n(L,"DUPLICATE_KEY","Map keys must be unique"),q.items.push(ae)}else{let q=new Or.YAMLMap(t.schema);q.flow=!0,q.items.push(ae);let Cs=(j??w).range;q.range=[w.range[0],Cs[1],Cs[2]],c.items.push(q)}u=j?j.range[2]:C.end}}let f=o?"}":"]",[p,...y]=s.end,h=u;if(p&&p.source===f)h=p.offset+p.source.length;else{let m=a[0].toUpperCase()+a.substring(1),S=d?`${m} must end with a ${f}`:`${m} in block collection must be sufficiently indented and end with a ${f}`;n(u,d?"MISSING_CHAR":"BAD_INDENT",S),p&&p.source.length!==1&&y.unshift(p)}if(y.length>0){let m=Ac.resolveEnd(y,h,t.options.strict,n);m.comment&&(c.comment?c.comment+=`
69
+ `+m.comment:c.comment=m.comment),c.range=[s.offset,h,m.offset]}else c.range=[s.offset,h,h];return c}Cr.resolveFlowCollection=Nc});var Kr=g(Ir=>{"use strict";var Lc=P(),Oc=E(),Ec=X(),Cc=Q(),qc=Tr(),Ic=Nr(),Kc=qr();function os(i,e,t,s,n,r){let o=t.type==="block-map"?qc.resolveBlockMap(i,e,t,s,r):t.type==="block-seq"?Ic.resolveBlockSeq(i,e,t,s,r):Kc.resolveFlowCollection(i,e,t,s,r),a=o.constructor;return n==="!"||n===a.tagName?(o.tag=a.tagName,o):(n&&(o.tag=n),o)}function _c(i,e,t,s,n){let r=s.tag,o=r?e.directives.tagName(r.source,f=>n(r,"TAG_RESOLVE_FAILED",f)):null;if(t.type==="block-seq"){let{anchor:f,newlineAfterProp:p}=s,y=f&&r?f.offset>r.offset?f:r:f??r;y&&(!p||p.offset<y.offset)&&n(y,"MISSING_CHAR","Missing newline after block sequence props")}let a=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!r||!o||o==="!"||o===Ec.YAMLMap.tagName&&a==="map"||o===Cc.YAMLSeq.tagName&&a==="seq")return os(i,e,t,n,o);let l=e.schema.tags.find(f=>f.tag===o&&f.collection===a);if(!l){let f=e.schema.knownTags[o];if(f&&f.collection===a)e.schema.tags.push(Object.assign({},f,{default:!1})),l=f;else return f?n(r,"BAD_COLLECTION_TYPE",`${f.tag} used for ${a} collection, but expects ${f.collection??"scalar"}`,!0):n(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),os(i,e,t,n,o)}let c=os(i,e,t,n,o,l),d=l.resolve?.(c,f=>n(r,"TAG_RESOLVE_FAILED",f),e.options)??c,u=Lc.isNode(d)?d:new Oc.Scalar(d);return u.range=c.range,u.tag=o,l?.format&&(u.format=l.format),u}Ir.composeCollection=_c});var ls=g(_r=>{"use strict";var as=E();function Bc(i,e,t){let s=e.offset,n=Dc(e,i.options.strict,t);if(!n)return{value:"",type:null,comment:"",range:[s,s,s]};let r=n.mode===">"?as.Scalar.BLOCK_FOLDED:as.Scalar.BLOCK_LITERAL,o=e.source?$c(e.source):[],a=o.length;for(let h=o.length-1;h>=0;--h){let m=o[h][1];if(m===""||m==="\r")a=h;else break}if(a===0){let h=n.chomp==="+"&&o.length>0?`
70
+ `.repeat(Math.max(1,o.length-1)):"",m=s+n.length;return e.source&&(m+=e.source.length),{value:h,type:r,comment:n.comment,range:[s,m,m]}}let l=e.indent+n.indent,c=e.offset+n.length,d=0;for(let h=0;h<a;++h){let[m,S]=o[h];if(S===""||S==="\r")n.indent===0&&m.length>l&&(l=m.length);else{m.length<l&&t(c+m.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),n.indent===0&&(l=m.length),d=h,l===0&&!i.atRoot&&t(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=m.length+S.length+1}for(let h=o.length-1;h>=a;--h)o[h][0].length>l&&(a=h+1);let u="",f="",p=!1;for(let h=0;h<d;++h)u+=o[h][0].slice(l)+`
71
+ `;for(let h=d;h<a;++h){let[m,S]=o[h];c+=m.length+S.length+1;let v=S[S.length-1]==="\r";if(v&&(S=S.slice(0,-1)),S&&m.length<l){let M=`Block scalar lines must not be less indented than their ${n.indent?"explicit indentation indicator":"first line"}`;t(c-S.length-(v?2:1),"BAD_INDENT",M),m=""}r===as.Scalar.BLOCK_LITERAL?(u+=f+m.slice(l)+S,f=`
72
+ `):m.length>l||S[0]===" "?(f===" "?f=`
73
+ `:!p&&f===`
74
+ `&&(f=`
75
+
76
+ `),u+=f+m.slice(l)+S,f=`
77
+ `,p=!0):S===""?f===`
78
+ `?u+=`
79
+ `:f=`
80
+ `:(u+=f+S,f=" ",p=!1)}switch(n.chomp){case"-":break;case"+":for(let h=a;h<o.length;++h)u+=`
81
+ `+o[h][0].slice(l);u[u.length-1]!==`
82
+ `&&(u+=`
83
+ `);break;default:u+=`
84
+ `}let y=s+n.length+e.source.length;return{value:u,type:r,comment:n.comment,range:[s,y,y]}}function Dc({offset:i,props:e},t,s){if(e[0].type!=="block-scalar-header")return s(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:n}=e[0],r=n[0],o=0,a="",l=-1;for(let f=1;f<n.length;++f){let p=n[f];if(!a&&(p==="-"||p==="+"))a=p;else{let y=Number(p);!o&&y?o=y:l===-1&&(l=i+f)}}l!==-1&&s(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${n}`);let c=!1,d="",u=n.length;for(let f=1;f<e.length;++f){let p=e[f];switch(p.type){case"space":c=!0;case"newline":u+=p.source.length;break;case"comment":t&&!c&&s(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),u+=p.source.length,d=p.source.substring(1);break;case"error":s(p,"UNEXPECTED_TOKEN",p.message),u+=p.source.length;break;default:{let y=`Unexpected token in block scalar header: ${p.type}`;s(p,"UNEXPECTED_TOKEN",y);let h=p.source;h&&typeof h=="string"&&(u+=h.length)}}}return{mode:r,indent:o,chomp:a,comment:d,length:u}}function $c(i){let e=i.split(/\n( *)/),t=e[0],s=t.match(/^( *)/),r=[s?.[1]?[s[1],t.slice(s[1].length)]:["",t]];for(let o=1;o<e.length;o+=2)r.push([e[o],e[o+1]]);return r}_r.resolveBlockScalar=Bc});var us=g(Dr=>{"use strict";var cs=E(),Fc=ye();function xc(i,e,t){let{offset:s,type:n,source:r,end:o}=i,a,l,c=(f,p,y)=>t(s+f,p,y);switch(n){case"scalar":a=cs.Scalar.PLAIN,l=Gc(r,c);break;case"single-quoted-scalar":a=cs.Scalar.QUOTE_SINGLE,l=Wc(r,c);break;case"double-quoted-scalar":a=cs.Scalar.QUOTE_DOUBLE,l=Rc(r,c);break;default:return t(i,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${n}`),{value:"",type:null,comment:"",range:[s,s+r.length,s+r.length]}}let d=s+r.length,u=Fc.resolveEnd(o,d,e,t);return{value:l,type:a,comment:u.comment,range:[s,d,u.offset]}}function Gc(i,e){let t="";switch(i[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${i[0]}`;break}case"@":case"`":{t=`reserved character ${i[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),Br(i)}function Wc(i,e){return(i[i.length-1]!=="'"||i.length===1)&&e(i.length,"MISSING_CHAR","Missing closing 'quote"),Br(i.slice(1,-1)).replace(/''/g,"'")}function Br(i){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
85
+ `,"sy"),t=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
86
+ `,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,t=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=e.exec(i);if(!s)return i;let n=s[1],r=" ",o=e.lastIndex;for(t.lastIndex=o;s=t.exec(i);)s[1]===""?r===`
87
+ `?n+=r:r=`
88
+ `:(n+=r+s[1],r=" "),o=t.lastIndex;let a=/[ \t]*(.*)/sy;return a.lastIndex=o,s=a.exec(i),n+r+(s?.[1]??"")}function Rc(i,e){let t="";for(let s=1;s<i.length-1;++s){let n=i[s];if(!(n==="\r"&&i[s+1]===`
89
+ `))if(n===`
90
+ `){let{fold:r,offset:o}=jc(i,s);t+=r,s=o}else if(n==="\\"){let r=i[++s],o=Uc[r];if(o)t+=o;else if(r===`
91
+ `)for(r=i[s+1];r===" "||r===" ";)r=i[++s+1];else if(r==="\r"&&i[s+1]===`
92
+ `)for(r=i[++s+1];r===" "||r===" ";)r=i[++s+1];else if(r==="x"||r==="u"||r==="U"){let a={x:2,u:4,U:8}[r];t+=Vc(i,s+1,a,e),s+=a}else{let a=i.substr(s-1,2);e(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),t+=a}}else if(n===" "||n===" "){let r=s,o=i[s+1];for(;o===" "||o===" ";)o=i[++s+1];o!==`
93
+ `&&!(o==="\r"&&i[s+2]===`
94
+ `)&&(t+=s>r?i.slice(r,s+1):n)}else t+=n}return(i[i.length-1]!=='"'||i.length===1)&&e(i.length,"MISSING_CHAR",'Missing closing "quote'),t}function jc(i,e){let t="",s=i[e+1];for(;(s===" "||s===" "||s===`
95
+ `||s==="\r")&&!(s==="\r"&&i[e+2]!==`
96
+ `);)s===`
97
+ `&&(t+=`
98
+ `),e+=1,s=i[e+1];return t||(t=" "),{fold:t,offset:e}}var Uc={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
99
+ `,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Vc(i,e,t,s){let n=i.substr(e,t),o=n.length===t&&/^[0-9a-fA-F]+$/.test(n)?parseInt(n,16):NaN;if(isNaN(o)){let a=i.substr(e-2,t+2);return s(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(o)}Dr.resolveFlowScalar=xc});var xr=g(Fr=>{"use strict";var re=P(),$r=E(),Hc=ls(),zc=us();function Yc(i,e,t,s){let{value:n,type:r,comment:o,range:a}=e.type==="block-scalar"?Hc.resolveBlockScalar(i,e,s):zc.resolveFlowScalar(e,i.options.strict,s),l=t?i.directives.tagName(t.source,u=>s(t,"TAG_RESOLVE_FAILED",u)):null,c;i.options.stringKeys&&i.atKey?c=i.schema[re.SCALAR]:l?c=Jc(i.schema,n,l,t,s):e.type==="scalar"?c=Xc(i,n,e,s):c=i.schema[re.SCALAR];let d;try{let u=c.resolve(n,f=>s(t??e,"TAG_RESOLVE_FAILED",f),i.options);d=re.isScalar(u)?u:new $r.Scalar(u)}catch(u){let f=u instanceof Error?u.message:String(u);s(t??e,"TAG_RESOLVE_FAILED",f),d=new $r.Scalar(n)}return d.range=a,d.source=n,r&&(d.type=r),l&&(d.tag=l),c.format&&(d.format=c.format),o&&(d.comment=o),d}function Jc(i,e,t,s,n){if(t==="!")return i[re.SCALAR];let r=[];for(let a of i.tags)if(!a.collection&&a.tag===t)if(a.default&&a.test)r.push(a);else return a;for(let a of r)if(a.test?.test(e))return a;let o=i.knownTags[t];return o&&!o.collection?(i.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(n(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),i[re.SCALAR])}function Xc({atKey:i,directives:e,schema:t},s,n,r){let o=t.tags.find(a=>(a.default===!0||i&&a.default==="key")&&a.test?.test(s))||t[re.SCALAR];if(t.compat){let a=t.compat.find(l=>l.default&&l.test?.test(s))??t[re.SCALAR];if(o.tag!==a.tag){let l=e.tagString(o.tag),c=e.tagString(a.tag),d=`Value may be parsed as either ${l} or ${c}`;r(n,"TAG_RESOLVE_FAILED",d,!0)}}return o}Fr.composeScalar=Yc});var Wr=g(Gr=>{"use strict";function Qc(i,e,t){if(e){t??(t=e.length);for(let s=t-1;s>=0;--s){let n=e[s];switch(n.type){case"space":case"comment":case"newline":i-=n.source.length;continue}for(n=e[++s];n?.type==="space";)i+=n.source.length,n=e[++s];break}}return i}Gr.emptyScalarPosition=Qc});var Ur=g(hs=>{"use strict";var Zc=Ae(),eu=P(),tu=Kr(),Rr=xr(),iu=ye(),su=Wr(),nu={composeNode:jr,composeEmptyNode:fs};function jr(i,e,t,s){let n=i.atKey,{spaceBefore:r,comment:o,anchor:a,tag:l}=t,c,d=!0;switch(e.type){case"alias":c=ru(i,e,s),(a||l)&&s(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=Rr.composeScalar(i,e,l,s),a&&(c.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=tu.composeCollection(nu,i,e,t,s),a&&(c.anchor=a.source.substring(1));break;default:{let u=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;s(e,"UNEXPECTED_TOKEN",u),c=fs(i,e.offset,void 0,null,t,s),d=!1}}return a&&c.anchor===""&&s(a,"BAD_ALIAS","Anchor cannot be an empty string"),n&&i.options.stringKeys&&(!eu.isScalar(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&s(l??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),r&&(c.spaceBefore=!0),o&&(e.type==="scalar"&&e.source===""?c.comment=o:c.commentBefore=o),i.options.keepSourceTokens&&d&&(c.srcToken=e),c}function fs(i,e,t,s,{spaceBefore:n,comment:r,anchor:o,tag:a,end:l},c){let d={type:"scalar",offset:su.emptyScalarPosition(e,t,s),indent:-1,source:""},u=Rr.composeScalar(i,d,a,c);return o&&(u.anchor=o.source.substring(1),u.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),n&&(u.spaceBefore=!0),r&&(u.comment=r,u.range[2]=l),u}function ru({options:i},{offset:e,source:t,end:s},n){let r=new Zc.Alias(t.substring(1));r.source===""&&n(e,"BAD_ALIAS","Alias cannot be an empty string"),r.source.endsWith(":")&&n(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=e+t.length,a=iu.resolveEnd(s,o,i.strict,n);return r.range=[e,o,a.offset],a.comment&&(r.comment=a.comment),r}hs.composeEmptyNode=fs;hs.composeNode=jr});var zr=g(Hr=>{"use strict";var ou=Ge(),Vr=Ur(),au=ye(),lu=Ue();function cu(i,e,{offset:t,start:s,value:n,end:r},o){let a=Object.assign({_directives:e},i),l=new ou.Document(void 0,a),c={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},d=lu.resolveProps(s,{indicator:"doc-start",next:n??r?.[0],offset:t,onError:o,parentIndent:0,startOnNewline:!0});d.found&&(l.directives.docStart=!0,n&&(n.type==="block-map"||n.type==="block-seq")&&!d.hasNewline&&o(d.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=n?Vr.composeNode(c,n,d,o):Vr.composeEmptyNode(c,d.end,s,null,d,o);let u=l.contents.range[2],f=au.resolveEnd(r,u,!1,o);return f.comment&&(l.comment=f.comment),l.range=[t,u,f.offset],l}Hr.composeDoc=cu});var ps=g(Xr=>{"use strict";var uu=Qe("process"),fu=Zt(),hu=Ge(),Ve=je(),Yr=P(),du=zr(),pu=ye();function He(i){if(typeof i=="number")return[i,i+1];if(Array.isArray(i))return i.length===2?i:[i[0],i[1]];let{offset:e,source:t}=i;return[e,e+(typeof t=="string"?t.length:1)]}function Jr(i){let e="",t=!1,s=!1;for(let n=0;n<i.length;++n){let r=i[n];switch(r[0]){case"#":e+=(e===""?"":s?`
100
+
101
+ `:`
102
+ `)+(r.substring(1)||" "),t=!0,s=!1;break;case"%":i[n+1]?.[0]!=="#"&&(n+=1),t=!1;break;default:t||(s=!0),t=!1}}return{comment:e,afterEmptyLine:s}}var ds=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,s,n,r)=>{let o=He(t);r?this.warnings.push(new Ve.YAMLWarning(o,s,n)):this.errors.push(new Ve.YAMLParseError(o,s,n))},this.directives=new fu.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:s,afterEmptyLine:n}=Jr(this.prelude);if(s){let r=e.contents;if(t)e.comment=e.comment?`${e.comment}
103
+ ${s}`:s;else if(n||e.directives.docStart||!r)e.commentBefore=s;else if(Yr.isCollection(r)&&!r.flow&&r.items.length>0){let o=r.items[0];Yr.isPair(o)&&(o=o.key);let a=o.commentBefore;o.commentBefore=a?`${s}
104
+ ${a}`:s}else{let o=r.commentBefore;r.commentBefore=o?`${s}
105
+ ${o}`:s}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Jr(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,s=-1){for(let n of e)yield*this.next(n);yield*this.end(t,s)}*next(e){switch(uu.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,(t,s,n)=>{let r=He(e);r[0]+=t,this.onError(r,"BAD_DIRECTIVE",s,n)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=du.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,s=new Ve.YAMLParseError(He(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(s):this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){let s="Unexpected doc-end without preceding document";this.errors.push(new Ve.YAMLParseError(He(e),"UNEXPECTED_TOKEN",s));break}this.doc.directives.docEnd=!0;let t=pu.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let s=this.doc.comment;this.doc.comment=s?`${s}
106
+ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Ve.YAMLParseError(He(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let s=Object.assign({_directives:this.directives},this.options),n=new hu.Document(void 0,s);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}};Xr.Composer=ds});var eo=g(Wt=>{"use strict";var mu=ls(),gu=us(),yu=je(),Qr=Oe();function wu(i,e=!0,t){if(i){let s=(n,r,o)=>{let a=typeof n=="number"?n:Array.isArray(n)?n[0]:n.offset;if(t)t(a,r,o);else throw new yu.YAMLParseError([a,a+1],r,o)};switch(i.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return gu.resolveFlowScalar(i,e,s);case"block-scalar":return mu.resolveBlockScalar({options:{strict:e}},i,s)}}return null}function bu(i,e){let{implicitKey:t=!1,indent:s,inFlow:n=!1,offset:r=-1,type:o="PLAIN"}=e,a=Qr.stringifyString({type:o,value:i},{implicitKey:t,indent:s>0?" ".repeat(s):"",inFlow:n,options:{blockQuote:!0,lineWidth:-1}}),l=e.end??[{type:"newline",offset:-1,indent:s,source:`
107
+ `}];switch(a[0]){case"|":case">":{let c=a.indexOf(`
108
+ `),d=a.substring(0,c),u=a.substring(c+1)+`
109
+ `,f=[{type:"block-scalar-header",offset:r,indent:s,source:d}];return Zr(f,l)||f.push({type:"newline",offset:-1,indent:s,source:`
110
+ `}),{type:"block-scalar",offset:r,indent:s,props:f,source:u}}case'"':return{type:"double-quoted-scalar",offset:r,indent:s,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:r,indent:s,source:a,end:l};default:return{type:"scalar",offset:r,indent:s,source:a,end:l}}}function Su(i,e,t={}){let{afterKey:s=!1,implicitKey:n=!1,inFlow:r=!1,type:o}=t,a="indent"in i?i.indent:null;if(s&&typeof a=="number"&&(a+=2),!o)switch(i.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let c=i.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let l=Qr.stringifyString({type:o,value:e},{implicitKey:n||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":vu(i,l);break;case'"':ms(i,l,"double-quoted-scalar");break;case"'":ms(i,l,"single-quoted-scalar");break;default:ms(i,l,"scalar")}}function vu(i,e){let t=e.indexOf(`
111
+ `),s=e.substring(0,t),n=e.substring(t+1)+`
112
+ `;if(i.type==="block-scalar"){let r=i.props[0];if(r.type!=="block-scalar-header")throw new Error("Invalid block scalar header");r.source=s,i.source=n}else{let{offset:r}=i,o="indent"in i?i.indent:-1,a=[{type:"block-scalar-header",offset:r,indent:o,source:s}];Zr(a,"end"in i?i.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:`
113
+ `});for(let l of Object.keys(i))l!=="type"&&l!=="offset"&&delete i[l];Object.assign(i,{type:"block-scalar",indent:o,props:a,source:n})}}function Zr(i,e){if(e)for(let t of e)switch(t.type){case"space":case"comment":i.push(t);break;case"newline":return i.push(t),!0}return!1}function ms(i,e,t){switch(i.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":i.type=t,i.source=e;break;case"block-scalar":{let s=i.props.slice(1),n=e.length;i.props[0].type==="block-scalar-header"&&(n-=i.props[0].source.length);for(let r of s)r.offset+=n;delete i.props,Object.assign(i,{type:t,source:e,end:s});break}case"block-map":case"block-seq":{let n={type:"newline",offset:i.offset+e.length,indent:i.indent,source:`
114
+ `};delete i.items,Object.assign(i,{type:t,source:e,end:[n]});break}default:{let s="indent"in i?i.indent:-1,n="end"in i&&Array.isArray(i.end)?i.end.filter(r=>r.type==="space"||r.type==="comment"||r.type==="newline"):[];for(let r of Object.keys(i))r!=="type"&&r!=="offset"&&delete i[r];Object.assign(i,{type:t,indent:s,source:e,end:n})}}}Wt.createScalarToken=bu;Wt.resolveAsScalar=wu;Wt.setScalarValue=Su});var io=g(to=>{"use strict";var ku=i=>"type"in i?jt(i):Rt(i);function jt(i){switch(i.type){case"block-scalar":{let e="";for(let t of i.props)e+=jt(t);return e+i.source}case"block-map":case"block-seq":{let e="";for(let t of i.items)e+=Rt(t);return e}case"flow-collection":{let e=i.start.source;for(let t of i.items)e+=Rt(t);for(let t of i.end)e+=t.source;return e}case"document":{let e=Rt(i);if(i.end)for(let t of i.end)e+=t.source;return e}default:{let e=i.source;if("end"in i&&i.end)for(let t of i.end)e+=t.source;return e}}}function Rt({start:i,key:e,sep:t,value:s}){let n="";for(let r of i)n+=r.source;if(e&&(n+=jt(e)),t)for(let r of t)n+=r.source;return s&&(n+=jt(s)),n}to.stringify=ku});var oo=g(ro=>{"use strict";var gs=Symbol("break visit"),Mu=Symbol("skip children"),so=Symbol("remove item");function oe(i,e){"type"in i&&i.type==="document"&&(i={start:i.start,value:i.value}),no(Object.freeze([]),i,e)}oe.BREAK=gs;oe.SKIP=Mu;oe.REMOVE=so;oe.itemAtPath=(i,e)=>{let t=i;for(let[s,n]of e){let r=t?.[s];if(r&&"items"in r)t=r.items[n];else return}return t};oe.parentCollection=(i,e)=>{let t=oe.itemAtPath(i,e.slice(0,-1)),s=e[e.length-1][0],n=t?.[s];if(n&&"items"in n)return n;throw new Error("Parent collection not found")};function no(i,e,t){let s=t(e,i);if(typeof s=="symbol")return s;for(let n of["key","value"]){let r=e[n];if(r&&"items"in r){for(let o=0;o<r.items.length;++o){let a=no(Object.freeze(i.concat([[n,o]])),r.items[o],t);if(typeof a=="number")o=a-1;else{if(a===gs)return gs;a===so&&(r.items.splice(o,1),o-=1)}}typeof s=="function"&&n==="key"&&(s=s(e,i))}}return typeof s=="function"?s(e,i):s}ro.visit=oe});var Ut=g(B=>{"use strict";var ys=eo(),Au=io(),Tu=oo(),ws="\uFEFF",bs="",Ss="",vs="",Pu=i=>!!i&&"items"in i,Nu=i=>!!i&&(i.type==="scalar"||i.type==="single-quoted-scalar"||i.type==="double-quoted-scalar"||i.type==="block-scalar");function Lu(i){switch(i){case ws:return"<BOM>";case bs:return"<DOC>";case Ss:return"<FLOW_END>";case vs:return"<SCALAR>";default:return JSON.stringify(i)}}function Ou(i){switch(i){case ws:return"byte-order-mark";case bs:return"doc-mode";case Ss:return"flow-error-end";case vs:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
115
+ `:case`\r
116
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(i[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}B.createScalarToken=ys.createScalarToken;B.resolveAsScalar=ys.resolveAsScalar;B.setScalarValue=ys.setScalarValue;B.stringify=Au.stringify;B.visit=Tu.visit;B.BOM=ws;B.DOCUMENT=bs;B.FLOW_END=Ss;B.SCALAR=vs;B.isCollection=Pu;B.isScalar=Nu;B.prettyToken=Lu;B.tokenType=Ou});var As=g(lo=>{"use strict";var ze=Ut();function F(i){switch(i){case void 0:case" ":case`
117
+ `:case"\r":case" ":return!0;default:return!1}}var ao=new Set("0123456789ABCDEFabcdef"),Eu=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Vt=new Set(",[]{}"),Cu=new Set(` ,[]{}
118
+ \r `),ks=i=>!i||Cu.has(i),Ms=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let s=this.next??"stream";for(;s&&(t||this.hasChars(1));)s=yield*this.parseNext(s)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return!t||t==="#"||t===`
119
+ `?!0:t==="\r"?this.buffer[e+1]===`
120
+ `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let s=0;for(;t===" ";)t=this.buffer[++s+e];if(t==="\r"){let n=this.buffer[s+e+1];if(n===`
121
+ `||!n&&!this.atEnd)return e+s+1}return t===`
122
+ `||s>=this.indentNext||!t&&!this.atEnd?e+s:-1}if(t==="-"||t==="."){let s=this.buffer.substr(e,3);if((s==="---"||s==="...")&&F(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
123
+ `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===ze.BOM&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let t=e.length,s=e.indexOf("#");for(;s!==-1;){let r=e[s-1];if(r===" "||r===" "){t=s-1;break}else s=e.indexOf("#",s+1)}for(;;){let r=e[t-1];if(r===" "||r===" ")t-=1;else break}let n=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield ze.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let t=this.peek(3);if((t==="---"||t==="...")&&F(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,t==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!F(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&F(t)){let s=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=s,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(ks),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,s=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=s=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let n=this.getLine();if(n===null)return this.setNext("flow");if((s!==-1&&s<this.indentNext&&n[0]!=="#"||s===0&&(n.startsWith("---")||n.startsWith("..."))&&F(n[3]))&&!(s===this.indentNext-1&&this.flowLevel===1&&(n[0]==="]"||n[0]==="}")))return this.flowLevel=0,yield ze.FLOW_END,yield*this.parseLineStart();let r=0;for(;n[r]===",";)r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(r+=yield*this.pushIndicators(),n[r]){case void 0:return"flow";case"#":return yield*this.pushCount(n.length-r),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(ks),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let o=this.charAt(1);if(this.flowKey||F(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;t!==-1&&this.buffer[t+1]==="'";)t=this.buffer.indexOf("'",t+2);else for(;t!==-1;){let r=0;for(;this.buffer[t-1-r]==="\\";)r+=1;if(r%2===0)break;t=this.buffer.indexOf('"',t+1)}let s=this.buffer.substring(0,t),n=s.indexOf(`
124
+ `,this.pos);if(n!==-1){for(;n!==-1;){let r=this.continueScalar(n+1);if(r===-1)break;n=s.indexOf(`
125
+ `,r)}n!==-1&&(t=n-(s[n-1]==="\r"?2:1))}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t==="+")this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil(t=>F(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,s;e:for(let r=this.pos;s=this.buffer[r];++r)switch(s){case" ":t+=1;break;case`
126
+ `:e=r,t=0;break;case"\r":{let o=this.buffer[r+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
127
+ `)break}default:break e}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let r=this.continueScalar(e+1);if(r===-1)break;e=this.buffer.indexOf(`
128
+ `,r)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let n=e+1;for(s=this.buffer[n];s===" ";)s=this.buffer[++n];if(s===" "){for(;s===" "||s===" "||s==="\r"||s===`
129
+ `;)s=this.buffer[++n];e=n-1}else if(!this.blockScalarKeep)do{let r=e-1,o=this.buffer[r];o==="\r"&&(o=this.buffer[--r]);let a=r;for(;o===" ";)o=this.buffer[--r];if(o===`
130
+ `&&r>=this.pos&&r+1+t>a)e=r;else break}while(!0);return yield ze.SCALAR,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,s=this.pos-1,n;for(;n=this.buffer[++s];)if(n===":"){let r=this.buffer[s+1];if(F(r)||e&&Vt.has(r))break;t=s}else if(F(n)){let r=this.buffer[s+1];if(n==="\r"&&(r===`
131
+ `?(s+=1,n=`
132
+ `,r=this.buffer[s+1]):t=s),r==="#"||e&&Vt.has(r))break;if(n===`
133
+ `){let o=this.continueScalar(s+1);if(o===-1)break;s=Math.max(s,o-2)}}else{if(e&&Vt.has(n))break;t=s}return!n&&!this.atEnd?this.setNext("plain-scalar"):(yield ze.SCALAR,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let s=this.buffer.slice(this.pos,e);return s?(yield s,this.pos+=s.length,s.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(ks))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,t=this.charAt(1);if(F(t)||e&&Vt.has(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!F(t)&&t!==">";)t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Eu.has(t))t=this.buffer[++e];else if(t==="%"&&ao.has(this.buffer[e+1])&&ao.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
134
+ `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
135
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,s;do s=this.buffer[++t];while(s===" "||e&&s===" ");let n=t-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=t),n}*pushUntil(e){let t=this.pos,s=this.buffer[t];for(;!e(s);)s=this.buffer[++t];return yield*this.pushToIndex(t,!1)}};lo.Lexer=Ms});var Ps=g(co=>{"use strict";var Ts=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,s=this.lineStarts.length;for(;t<s;){let r=t+s>>1;this.lineStarts[r]<e?t=r+1:s=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let n=this.lineStarts[t-1];return{line:t,col:e-n+1}}}};co.LineCounter=Ts});var Ls=g(mo=>{"use strict";var qu=Qe("process"),uo=Ut(),Iu=As();function Z(i,e){for(let t=0;t<i.length;++t)if(i[t].type===e)return!0;return!1}function fo(i){for(let e=0;e<i.length;++e)switch(i[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function po(i){switch(i?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Ht(i){switch(i.type){case"document":return i.start;case"block-map":{let e=i.items[i.items.length-1];return e.sep??e.start}case"block-seq":return i.items[i.items.length-1].start;default:return[]}}function we(i){if(i.length===0)return[];let e=i.length;e:for(;--e>=0;)switch(i[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;i[++e]?.type==="space";);return i.splice(e,i.length)}function ho(i){if(i.start.type==="flow-seq-start")for(let e of i.items)e.sep&&!e.value&&!Z(e.start,"explicit-key-ind")&&!Z(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,po(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}var Ns=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Iu.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let s of this.lexer.lex(e,t))yield*this.next(s);t||(yield*this.end())}*next(e){if(this.source=e,qu.env.LOG_TOKENS&&console.log("|",uo.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=uo.tokenType(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let s=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else{let s=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in s?s.indent:0:t.type==="flow-collection"&&s.type==="document"&&(t.indent=0),t.type==="flow-collection"&&ho(t),s.type){case"document":s.value=t;break;case"block-scalar":s.props.push(t);break;case"block-map":{let n=s.items[s.items.length-1];if(n.value){s.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=s.items[s.items.length-1];n.value?s.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{let n=s.items[s.items.length-1];!n||n.value?s.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&fo(n.start)===-1&&(t.indent===0||n.start.every(r=>r.type!=="comment"||r.indent<t.indent))&&(s.type==="document"?s.end=n.start:s.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{fo(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){let t=Ht(this.peek(2)),s=we(t),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf(`
136
+ `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
137
+ `,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let s="end"in t.value?t.value.end:void 0;(Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment"?s?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let s=!this.onKeyLine&&this.indent===e.indent,n=s&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind",r=[];if(n&&t.sep&&!t.value){let o=[];for(let a=0;a<t.sep.length;++a){let l=t.sep[a];switch(l.type){case"newline":o.push(a);break;case"space":break;case"comment":l.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(r=t.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":n||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):n||t.value?(r.push(this.sourceToken),e.items.push({start:r,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Z(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(po(t.key)&&!Z(t.sep,"newline")){let o=we(t.start),a=t.key,l=t.sep;l.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:a,sep:l}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(Z(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let o=we(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||n?e.items.push({start:r,key:null,sep:[this.sourceToken]}):Z(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let o=this.flowScalar(this.type);n||t.value?(e.items.push({start:r,key:o,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(o):(Object.assign(t,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{let o=this.startBlockValue(e);if(o){if(o.type==="block-seq"){if(!t.explicitKey&&t.sep&&!Z(t.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else s&&e.items.push({start:r});this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let s="end"in t.value?t.value.end:void 0;(Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment"?s?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||Z(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let s=this.startBlockValue(e);if(s){this.stack.push(s);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while(s&&s.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let s=this.startBlockValue(e);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{let s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===e.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){let n=Ht(s),r=we(n);ho(e);let o=e.end.splice(1,e.end.length);o.push(this.sourceToken);let a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
138
+ `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
139
+ `,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=Ht(e),s=we(t);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=Ht(e),s=we(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};mo.Parser=Ns});var So=g(Je=>{"use strict";var go=ps(),Ku=Ge(),Ye=je(),_u=hi(),Bu=P(),Du=Ps(),yo=Ls();function wo(i){let e=i.prettyErrors!==!1;return{lineCounter:i.lineCounter||e&&new Du.LineCounter||null,prettyErrors:e}}function $u(i,e={}){let{lineCounter:t,prettyErrors:s}=wo(e),n=new yo.Parser(t?.addNewLine),r=new go.Composer(e),o=Array.from(r.compose(n.parse(i)));if(s&&t)for(let a of o)a.errors.forEach(Ye.prettifyError(i,t)),a.warnings.forEach(Ye.prettifyError(i,t));return o.length>0?o:Object.assign([],{empty:!0},r.streamInfo())}function bo(i,e={}){let{lineCounter:t,prettyErrors:s}=wo(e),n=new yo.Parser(t?.addNewLine),r=new go.Composer(e),o=null;for(let a of r.compose(n.parse(i),!0,i.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new Ye.YAMLParseError(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&t&&(o.errors.forEach(Ye.prettifyError(i,t)),o.warnings.forEach(Ye.prettifyError(i,t))),o}function Fu(i,e,t){let s;typeof e=="function"?s=e:t===void 0&&e&&typeof e=="object"&&(t=e);let n=bo(i,t);if(!n)return null;if(n.warnings.forEach(r=>_u.warn(n.options.logLevel,r)),n.errors.length>0){if(n.options.logLevel!=="silent")throw n.errors[0];n.errors=[]}return n.toJS(Object.assign({reviver:s},t))}function xu(i,e,t){let s=null;if(typeof e=="function"||Array.isArray(e)?s=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){let n=Math.round(t);t=n<1?void 0:n>8?{indent:8}:{indent:n}}if(i===void 0){let{keepUndefined:n}=t??e??{};if(!n)return}return Bu.isDocument(i)&&!s?i.toString(t):new Ku.Document(i,s,t).toString(t)}Je.parse=Fu;Je.parseAllDocuments=$u;Je.parseDocument=bo;Je.stringify=xu});var ko=g(N=>{"use strict";var Gu=ps(),Wu=Ge(),Ru=zi(),Os=je(),ju=Ae(),ee=P(),Uu=Y(),Vu=E(),Hu=X(),zu=Q(),Yu=Ut(),Ju=As(),Xu=Ps(),Qu=Ls(),zt=So(),vo=Se();N.Composer=Gu.Composer;N.Document=Wu.Document;N.Schema=Ru.Schema;N.YAMLError=Os.YAMLError;N.YAMLParseError=Os.YAMLParseError;N.YAMLWarning=Os.YAMLWarning;N.Alias=ju.Alias;N.isAlias=ee.isAlias;N.isCollection=ee.isCollection;N.isDocument=ee.isDocument;N.isMap=ee.isMap;N.isNode=ee.isNode;N.isPair=ee.isPair;N.isScalar=ee.isScalar;N.isSeq=ee.isSeq;N.Pair=Uu.Pair;N.Scalar=Vu.Scalar;N.YAMLMap=Hu.YAMLMap;N.YAMLSeq=zu.YAMLSeq;N.CST=Yu;N.Lexer=Ju.Lexer;N.LineCounter=Xu.LineCounter;N.Parser=Qu.Parser;N.parse=zt.parse;N.parseAllDocuments=zt.parseAllDocuments;N.parseDocument=zt.parseDocument;N.stringify=zt.stringify;N.visit=vo.visit;N.visitAsync=vo.visitAsync});var xh=To(ko(),1);import{z as b}from"zod";import"uuid";var Zu=112;var Kh=1080-Zu;var ef={"Blackberry PlayBook":{name:"Blackberry PlayBook",userAgent:"Mozilla/5.0 (PlayBook; U; RIM Tablet OS 2.1.0; en-US) AppleWebKit/536.2+ (KHTML like Gecko) Version/26.0 Safari/536.2+",screen:{width:600,height:1024},viewport:{width:600,height:1024},deviceScaleFactor:1,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"BlackBerry Z30":{name:"BlackBerry Z30",userAgent:"Mozilla/5.0 (BB10; Touch) AppleWebKit/537.10+ (KHTML, like Gecko) Version/26.0 Mobile Safari/537.10+",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"Galaxy Note 3":{name:"Galaxy Note 3",userAgent:"Mozilla/5.0 (Linux; U; Android 4.3; en-us; SM-N900T Build/JSS15J) AppleWebKit/534.30 (KHTML, like Gecko) Version/26.0 Mobile Safari/534.30",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"Galaxy Note II":{name:"Galaxy Note II",userAgent:"Mozilla/5.0 (Linux; U; Android 4.1; en-us; GT-N7100 Build/JRO03C) AppleWebKit/534.30 (KHTML, like Gecko) Version/26.0 Mobile Safari/534.30",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"Galaxy S III":{name:"Galaxy S III",userAgent:"Mozilla/5.0 (Linux; U; Android 4.0; en-us; GT-I9300 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/26.0 Mobile Safari/534.30",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"Galaxy S5":{name:"Galaxy S5",userAgent:"Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Galaxy S8":{name:"Galaxy S8",userAgent:"Mozilla/5.0 (Linux; Android 7.0; SM-G950U Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:360,height:740},viewport:{width:360,height:740},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Galaxy S9+":{name:"Galaxy S9+",userAgent:"Mozilla/5.0 (Linux; Android 8.0.0; SM-G965U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:320,height:658},viewport:{width:320,height:658},deviceScaleFactor:4.5,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Galaxy S24":{name:"Galaxy S24",userAgent:"Mozilla/5.0 (Linux; Android 14; SM-S921U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:360,height:780},viewport:{width:360,height:780},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Galaxy A55":{name:"Galaxy A55",userAgent:"Mozilla/5.0 (Linux; Android 14; SM-A556B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:480,height:1040},viewport:{width:480,height:1040},deviceScaleFactor:2.25,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Galaxy Tab S4":{name:"Galaxy Tab S4",userAgent:"Mozilla/5.0 (Linux; Android 8.1.0; SM-T837A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:712,height:1138},viewport:{width:712,height:1138},deviceScaleFactor:2.25,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Galaxy Tab S9":{name:"Galaxy Tab S9",userAgent:"Mozilla/5.0 (Linux; Android 14; SM-X710) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:640,height:1024},viewport:{width:640,height:1024},deviceScaleFactor:2.5,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"iPad (gen 5)":{name:"iPad (gen 5)",userAgent:"Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:768,height:1024},viewport:{width:768,height:1024},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPad (gen 6)":{name:"iPad (gen 6)",userAgent:"Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:768,height:1024},viewport:{width:768,height:1024},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPad (gen 7)":{name:"iPad (gen 7)",userAgent:"Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:810,height:1080},viewport:{width:810,height:1080},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPad (gen 11)":{name:"iPad (gen 11)",userAgent:"Mozilla/5.0 (iPad; CPU OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/19E241 Safari/604.1",screen:{width:656,height:944},viewport:{width:656,height:944},deviceScaleFactor:2.5,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPad Mini":{name:"iPad Mini",userAgent:"Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:768,height:1024},viewport:{width:768,height:1024},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPad Pro 11":{name:"iPad Pro 11",userAgent:"Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:834,height:1194},viewport:{width:834,height:1194},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 6":{name:"iPhone 6",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/26.0 Mobile/15A372 Safari/604.1",screen:{width:375,height:667},viewport:{width:375,height:667},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 6 Plus":{name:"iPhone 6 Plus",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/26.0 Mobile/15A372 Safari/604.1",screen:{width:414,height:736},viewport:{width:414,height:736},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 7":{name:"iPhone 7",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/26.0 Mobile/15A372 Safari/604.1",screen:{width:375,height:667},viewport:{width:375,height:667},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 7 Plus":{name:"iPhone 7 Plus",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/26.0 Mobile/15A372 Safari/604.1",screen:{width:414,height:736},viewport:{width:414,height:736},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 8":{name:"iPhone 8",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/26.0 Mobile/15A372 Safari/604.1",screen:{width:375,height:667},viewport:{width:375,height:667},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 8 Plus":{name:"iPhone 8 Plus",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/26.0 Mobile/15A372 Safari/604.1",screen:{width:414,height:736},viewport:{width:414,height:736},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone SE":{name:"iPhone SE",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/26.0 Mobile/14E304 Safari/602.1",screen:{width:320,height:568},viewport:{width:320,height:568},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone SE (3rd gen)":{name:"iPhone SE (3rd gen)",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/26.0 Mobile/19E241 Safari/602.1",screen:{width:375,height:667},viewport:{width:375,height:667},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone X":{name:"iPhone X",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/26.0 Mobile/15A372 Safari/604.1",screen:{width:375,height:812},viewport:{width:375,height:812},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone XR":{name:"iPhone XR",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:414,height:896},viewport:{width:414,height:896},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 11":{name:"iPhone 11",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:414,height:896},viewport:{width:414,height:715},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 11 Pro":{name:"iPhone 11 Pro",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:375,height:812},viewport:{width:375,height:635},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 11 Pro Max":{name:"iPhone 11 Pro Max",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:414,height:896},viewport:{width:414,height:715},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 12":{name:"iPhone 12",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:390,height:844},viewport:{width:390,height:664},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 12 Pro":{name:"iPhone 12 Pro",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:390,height:844},viewport:{width:390,height:664},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 12 Pro Max":{name:"iPhone 12 Pro Max",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:428,height:926},viewport:{width:428,height:746},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 12 Mini":{name:"iPhone 12 Mini",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:375,height:812},viewport:{width:375,height:629},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 13":{name:"iPhone 13",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:390,height:844},viewport:{width:390,height:664},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 13 Pro":{name:"iPhone 13 Pro",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:390,height:844},viewport:{width:390,height:664},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 13 Pro Max":{name:"iPhone 13 Pro Max",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:428,height:926},viewport:{width:428,height:746},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 13 Mini":{name:"iPhone 13 Mini",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:375,height:812},viewport:{width:375,height:629},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 14":{name:"iPhone 14",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:390,height:844},viewport:{width:390,height:664},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 14 Plus":{name:"iPhone 14 Plus",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:428,height:926},viewport:{width:428,height:746},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 14 Pro":{name:"iPhone 14 Pro",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:393,height:852},viewport:{width:393,height:660},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 14 Pro Max":{name:"iPhone 14 Pro Max",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:430,height:932},viewport:{width:430,height:740},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 15":{name:"iPhone 15",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:393,height:852},viewport:{width:393,height:659},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 15 Plus":{name:"iPhone 15 Plus",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:430,height:932},viewport:{width:430,height:739},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 15 Pro":{name:"iPhone 15 Pro",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:393,height:852},viewport:{width:393,height:659},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 15 Pro Max":{name:"iPhone 15 Pro Max",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:430,height:932},viewport:{width:430,height:739},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"Kindle Fire HDX":{name:"Kindle Fire HDX",userAgent:"Mozilla/5.0 (Linux; U; en-us; KFAPWI Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.13 Safari/535.19 Silk-Accelerated=true",screen:{width:800,height:1280},viewport:{width:800,height:1280},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"LG Optimus L70":{name:"LG Optimus L70",userAgent:"Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; LGMS323 Build/KOT49I.MS32310c) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:384,height:640},viewport:{width:384,height:640},deviceScaleFactor:1.25,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Microsoft Lumia 550":{name:"Microsoft Lumia 550",userAgent:"Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36 Edge/14.14263",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Microsoft Lumia 950":{name:"Microsoft Lumia 950",userAgent:"Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36 Edge/14.14263",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:4,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nexus 10":{name:"Nexus 10",userAgent:"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 10 Build/MOB31T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:800,height:1280},viewport:{width:800,height:1280},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nexus 4":{name:"Nexus 4",userAgent:"Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:384,height:640},viewport:{width:384,height:640},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nexus 5":{name:"Nexus 5",userAgent:"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nexus 5X":{name:"Nexus 5X",userAgent:"Mozilla/5.0 (Linux; Android 8.0.0; Nexus 5X Build/OPR4.170623.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:412,height:732},viewport:{width:412,height:732},deviceScaleFactor:2.625,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nexus 6":{name:"Nexus 6",userAgent:"Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6 Build/N6F26U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:412,height:732},viewport:{width:412,height:732},deviceScaleFactor:3.5,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nexus 6P":{name:"Nexus 6P",userAgent:"Mozilla/5.0 (Linux; Android 8.0.0; Nexus 6P Build/OPP3.170518.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:412,height:732},viewport:{width:412,height:732},deviceScaleFactor:3.5,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nexus 7":{name:"Nexus 7",userAgent:"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 7 Build/MOB30X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:600,height:960},viewport:{width:600,height:960},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nokia Lumia 520":{name:"Nokia Lumia 520",userAgent:"Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 520)",screen:{width:320,height:533},viewport:{width:320,height:533},deviceScaleFactor:1.5,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nokia N9":{name:"Nokia N9",userAgent:"Mozilla/5.0 (MeeGo; NokiaN9) AppleWebKit/534.13 (KHTML, like Gecko) NokiaBrowser/8.5.0 Mobile Safari/534.13",screen:{width:480,height:854},viewport:{width:480,height:854},deviceScaleFactor:1,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"Pixel 2":{name:"Pixel 2",userAgent:"Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:411,height:731},viewport:{width:411,height:731},deviceScaleFactor:2.625,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Pixel 2 XL":{name:"Pixel 2 XL",userAgent:"Mozilla/5.0 (Linux; Android 8.0.0; Pixel 2 XL Build/OPD1.170816.004) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:411,height:823},viewport:{width:411,height:823},deviceScaleFactor:3.5,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Pixel 3":{name:"Pixel 3",userAgent:"Mozilla/5.0 (Linux; Android 9; Pixel 3 Build/PQ1A.181105.017.A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:393,height:786},viewport:{width:393,height:786},deviceScaleFactor:2.75,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Pixel 4":{name:"Pixel 4",userAgent:"Mozilla/5.0 (Linux; Android 10; Pixel 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:353,height:745},viewport:{width:353,height:745},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Pixel 4a (5G)":{name:"Pixel 4a (5G)",userAgent:"Mozilla/5.0 (Linux; Android 11; Pixel 4a (5G)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:412,height:892},viewport:{width:412,height:765},deviceScaleFactor:2.63,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Pixel 5":{name:"Pixel 5",userAgent:"Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:393,height:851},viewport:{width:393,height:727},deviceScaleFactor:2.75,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Pixel 7":{name:"Pixel 7",userAgent:"Mozilla/5.0 (Linux; Android 14; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:412,height:915},viewport:{width:412,height:839},deviceScaleFactor:2.625,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Moto G4":{name:"Moto G4",userAgent:"Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Desktop Chrome HiDPI":{name:"Desktop Chrome HiDPI",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:1792,height:1120},viewport:{width:1280,height:720},deviceScaleFactor:2,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium"},"Desktop Edge HiDPI":{name:"Desktop Edge HiDPI",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36 Edg/141.0.7390.16",screen:{width:1792,height:1120},viewport:{width:1280,height:720},deviceScaleFactor:2,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium"},"Desktop Firefox HiDPI":{name:"Desktop Firefox HiDPI",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0.1) Gecko/20100101 Firefox/142.0.1",screen:{width:1792,height:1120},viewport:{width:1280,height:720},deviceScaleFactor:2,isMobile:!1,hasTouch:!1,defaultBrowserType:"firefox"},"Desktop Safari":{name:"Desktop Safari",userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Safari/605.1.15",screen:{width:1792,height:1120},viewport:{width:1280,height:720},deviceScaleFactor:2,isMobile:!1,hasTouch:!1,defaultBrowserType:"webkit"},"Desktop Chrome":{name:"Desktop Chrome",displayName:"Playwright Chromium",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:1920,height:1080},viewport:{width:1920,height:1080},deviceScaleFactor:1,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium"},"Desktop Chrome Medium Resolution":{name:"Desktop Chrome Medium Resolution",displayName:"Playwright Chromium",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:1280,height:720},viewport:{width:1280,height:720},deviceScaleFactor:1,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium"},"Desktop Chrome (Branded)":{name:"Desktop Chrome (Branded)",displayName:"Google Chrome",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:1920,height:1080},viewport:{width:1920,height:1080},deviceScaleFactor:1,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium",channel:"chrome"},"Desktop Chrome Medium Resolution (Branded)":{name:"Desktop Chrome Medium Resolution (Branded)",displayName:"Google Chrome",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:1280,height:720},viewport:{width:1280,height:720},deviceScaleFactor:1,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium",channel:"chrome"},"Desktop Edge":{name:"Desktop Edge",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36 Edg/141.0.7390.16",screen:{width:1920,height:1080},viewport:{width:1280,height:720},deviceScaleFactor:1,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium"},"Desktop Edge (Branded)":{name:"Desktop Edge (Branded)",displayName:"Microsoft Edge",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36 Edg/141.0.7390.16",screen:{width:1920,height:1080},viewport:{width:1920,height:1080},deviceScaleFactor:1,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium",channel:"msedge"},"Desktop Edge Medium Resolution (Branded)":{name:"Desktop Edge Medium Resolution (Branded)",displayName:"Microsoft Edge",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36 Edg/141.0.7390.16",screen:{width:1280,height:720},viewport:{width:1280,height:720},deviceScaleFactor:1,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium",channel:"msedge"},"Desktop Firefox":{name:"Desktop Firefox",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0.1) Gecko/20100101 Firefox/142.0.1",screen:{width:1920,height:1080},viewport:{width:1280,height:720},deviceScaleFactor:1,isMobile:!1,hasTouch:!1,defaultBrowserType:"firefox"}},tf={desktop:["Desktop Chrome","Desktop Chrome Medium Resolution","Desktop Chrome (Branded)","Desktop Chrome Medium Resolution (Branded)","Desktop Edge (Branded)","Desktop Edge Medium Resolution (Branded)","Desktop Safari"],mobile:["iPhone 15 Pro Max","iPhone 15 Pro","iPhone 15 Plus","iPhone 15","iPhone 14 Pro Max","iPhone 14 Pro","iPhone 14 Plus","iPhone 14","iPhone 13 Pro Max","iPhone 13 Pro","iPhone 13","iPhone 13 Mini","iPhone 12 Pro Max","iPhone 12 Pro","iPhone 12","iPhone 12 Mini","iPhone 11 Pro Max","iPhone 11 Pro","iPhone 11","iPhone XR","iPhone X","iPhone SE (3rd gen)","iPhone SE","iPhone 8 Plus","iPhone 8","iPhone 7 Plus","iPhone 7","iPhone 6 Plus","iPhone 6","Galaxy S24","Galaxy A55","Galaxy S9+","Galaxy S8","Galaxy S5","Galaxy Note 3","Galaxy Note II","Galaxy S III","Pixel 7","Pixel 5","Pixel 4a (5G)","Pixel 4","Pixel 3","Pixel 2 XL","Pixel 2","Nexus 6P","Nexus 6","Nexus 5X","Nexus 5","Nexus 4","Moto G4","LG Optimus L70","Microsoft Lumia 950","Microsoft Lumia 550","Nokia Lumia 520","Nokia N9","BlackBerry Z30"]},Yt=(i,e=!1)=>{let t=["chromium"];return e&&t.push("webkit"),tf[i].map(s=>ef[s]).filter(s=>s.defaultBrowserType&&t.includes(s.defaultBrowserType))};var _h={desktop:{label:"Desktop",type:"desktop",devices:Yt("desktop")},mobile:{label:"Mobile Web",type:"mobile",devices:Yt("mobile")}},Bh={desktop:{label:"Desktop",type:"desktop",devices:Yt("desktop",!0)},mobile:{label:"Mobile Web",type:"mobile",devices:Yt("mobile",!0)}};var sf=(i=>(i.PASSWORD="password",i.OAUTH2="oauth2",i.SSO="sso",i.API="api",i))(sf||{});function Dh(i,e){if(!i||typeof i!="string")return i;let t=e instanceof Map?Object.fromEntries(e):e,s=r=>{let o=r.startsWith("$")?r.slice(1):r,a=t[o]??t[`$${o}`];return a!=null?String(a):void 0},n=i;return n=n.replace(/\{\{\s*\$?([^}]+?)\s*\}\}/g,(r,o)=>{let a=s(o.trim());return a!==void 0?a:r}),n=n.replace(/<secret>\$?([\w-]+)<\/secret>/g,(r,o)=>{let a=s(o);return a!==void 0?a:r}),n=n.replace(/\$\{([^}]+)\}/g,(r,o)=>{let a=s(o.trim());return a!==void 0?a:r}),n=n.replace(/\$([a-zA-Z_]\w*)/g,(r,o)=>{let a=s(o);return a!==void 0?a:r}),n}var nf=b.enum(["JS_CODE","AI_MODE"]),Mo=b.object({type:nf,expression:b.string()}),rf=b.enum(["DRAFT","STEP","ACTION","IF_ELSE","WHILE_LOOP"]),Xe=b.object({uid:b.string(),type:rf}),of=b.object({action_data:b.object({action_name:b.string(),kwargs:b.record(b.any()).optional(),args:b.array(b.any()).optional()}),action_description:b.string().optional(),url:b.string().optional(),xpath:b.string().nullable().optional(),locator:b.string().nullable().optional(),css_selector:b.string().nullable().optional(),unique_selector:b.string().nullable().optional(),element_index:b.number().nullable().optional(),frame_path:b.array(b.any()).optional(),artifacts:b.record(b.any()).optional(),feedback:b.string().optional(),original_browser_use_action:b.any().optional()}).passthrough(),af=Xe.extend({type:b.literal("DRAFT"),description:b.string()}),lf=Xe.extend({type:b.literal("ACTION"),description:b.string(),action_entity:of.optional(),locator:b.string().optional(),use_pure_vision:b.boolean().optional()}),be=b.lazy(()=>b.union([af,lf,Xe.extend({type:b.literal("STEP"),description:b.string().optional().default(""),statements:b.array(be),reference_id:b.number().optional()}),Xe.extend({type:b.literal("IF_ELSE"),description:b.string().optional(),condition:Mo,then:b.array(be),else:b.array(be).optional()}),Xe.extend({type:b.literal("WHILE_LOOP"),description:b.string().optional(),condition:Mo,body:b.array(be),timeout_ms:b.number().optional()})])),Fh=b.object({version:b.string().optional(),goal:b.string(),url:b.string(),final_feedback:b.string().optional(),completed:b.boolean().optional(),success:b.boolean().optional(),statements:b.array(be),teardown:b.array(be).optional(),last_modified_at:b.string().optional()});var cf=5e3,uf=1e4;async function Ao(i,e){let t=Object.getPrototypeOf(async()=>{}).constructor,s=`
140
+ return await (${e});
141
+ `;return await new t("page",s)(i)}async function Es(i,e,t){let s=[],n=[];for(let r of e){let o=!1;try{let a=`page.${r}`;O.log(`Checking element existence: ${a}`),s.push(`Checking element existence: ${a}`);try{await Ao(i,`${a}.waitFor({ state: 'attached', timeout: ${cf} })`),O.log(`Element is attached: ${a}`),s.push(`Element is attached: ${a}`),o=!0}catch{await Ao(i,`${a}.count()`)>0?(O.log(`Element found (snapshot): ${a}`),s.push(`Element found (snapshot): ${a}`),o=!0):(O.log(`Element not found: ${a}`),s.push(`Element not found: ${a}`),o=!1)}}catch(a){O.log(`Error checking element: ${a.message}`),s.push(`Error checking element: ${a.message}`),o=!1}if(n.push(o),!o&&t)break}return{successResults:n,logs:s}}async function ff(i,e,t=!0){let{successResults:s,logs:n}=await Es(i,e,t);return{success:s.length===e.length&&s.every(o=>o),logs:n}}async function zh(i,e){if(!e||e.length===0)return O.log("No validation expressions provided, cannot validate login"),!1;O.log(`Validating login with ${e.length} expression(s)`);let{success:t,logs:s}=await ff(i,e,!0);return t?O.log("All validation expressions passed"):O.log(`Validation failed: ${s.join(", ")}`),t}async function hf(i,e){let t=i.context().browser();if(!t)throw new Error("Cannot create unsigned-in context: browser not available");let s=await t.newContext(),n=await s.newPage();return await n.goto(e),await qs(n,uf),{context:s,page:n,close:async()=>{await n.close(),await s.close()}}}async function df(i,e,t,s,n,r){let o=`
142
+ Based on the current page status, generate ${n} Playwright locators in JavaScript code that can
143
+ be used by a program to verify the page is signed in.
144
+ Each expression should yield a locator object that can be used for waiting and checking visibility.
145
+ `;e&&(o+=`
146
+ For your comparison, the DOM elements of the UNSIGNED IN page are:
147
+ """
148
+ ${e}
149
+ """
150
+ `),o+=`
151
+ Output the code in a code block with \`\`\`javascript\`\`\` at the beginning and \`\`\` at the end.
152
+
153
+ Here is an example of the right format:
154
+ \`\`\`javascript
155
+ getByRole("button", { name: "Logout" }).first()
156
+ \`\`\`
157
+
158
+ User name, id, email etc are great choices as a part of locators if they present.
159
+ They tend to be strong and stable indicators of signed in status.
160
+
161
+ Don't use locators that may change with page content, such as:
162
+ - time of day
163
+ - location
164
+ - language
165
+ - timezone
166
+ - device
167
+ - browser
168
+ - operating system
169
+ - numbers
170
+ - and other dynamic values
171
+
172
+ It is a good idea to add 'first()' to the locator to make it more stable for locators
173
+ that can result in multiple results.
174
+ `,t&&(o+=`
175
+ Previously generated expressions and their results:
176
+ """
177
+ ${t}
178
+ """
179
+ Avoid regenerating these failed ones, but can reuse the successful ones.`),s&&(o+=`
180
+ ${s}
181
+ `),o+=`
182
+ Remember, you must have the javascript code block in your final response.
183
+ `,O.log("Agent generating validation locators"),O.log(`Prompt:
184
+ ${o}`);let a=await r(i,o);if(!a.success)throw new Error(a.details||"Agent failed to generate verification code");let c=(a.details||"").match(/```javascript\n(.*)\n```/s);if(!c)throw new Error("Agent failed to generate verification code: no javascript code block found");return c[1].split(`
185
+ `).map(p=>p.trim()).filter(p=>p.length>0).map(p=>(p.startsWith("page.")&&(p=p.slice(5)),p))}async function Yh(i,e,t,s,n){let r=null;try{r=await hf(i,e);let o=await n(r.page),a=3,l="";for(let c=0;c<a;c++)try{let d=await df(i,o,l||null,t.verification_hint??null,t.num_verification_exprs??1,s);O.log(`Generated validation locators: ${JSON.stringify(d)}`);{let{successResults:u,logs:f}=await Es(i,d,!1);if(l+=`Test results on a SIGNED IN page. EXPECT ALL PASS:
186
+ ${f.join(`
187
+ `)}
188
+
189
+ `,!u.every(p=>p)){O.log(`Locator validation on signed-in page failed. Results: ${JSON.stringify(u)}`),O.log(`Validation logs:
190
+ ${f.join(`
191
+ `)}`);continue}}{O.log("Validating locators in unsigned-in context, EXPECT ALL TO FAIL");let{successResults:u,logs:f}=await Es(r.page,d,!1);if(l+=`Test results on an UNSIGNED IN page. EXPECT ALL FAIL:
192
+ ${f.join(`
193
+ `)}
194
+
195
+ `,u.some(p=>p)){O.log(`Locator validation on unsigned-in page failed (some passed when should fail). Results: ${JSON.stringify(u)}`),O.log(`Validation logs:
196
+ ${f.join(`
197
+ `)}`);continue}}return O.log("Generated validation locators passed dual validation"),d}catch(d){O.log(`Failed to generate validation expressions (attempt ${c+1}/${a}): ${d.message}`)}return O.log("Failed to generate valid locators after max retries"),null}finally{r&&await r.close()}}export{ko as a,sf as b,Dh as c,Es as d,ff as e,zh as f,hf as g,df as h,Yh as i};
@@ -0,0 +1,3 @@
1
+ import{e as u,h as f,i as p}from"./chunk-UFLZ3URR.js";var w=class{getLevel(){return u.get("logLevel")}debug(...t){this.getLevel()<=0&&console.debug("[DEBUG]",...t)}info(...t){this.getLevel()<=1&&console.log("[INFO]",...t)}log(...t){this.info(...t)}warn(...t){this.getLevel()<=2&&console.warn("[WARN]",...t)}error(...t){this.getLevel()<=3&&console.error("[ERROR]",...t)}setLevel(t){u.set("logLevel",t)}},$=new w,s=$;var b={};p(b,{ACTION_TIMEOUT:()=>h,GOTO_TIMEOUT:()=>m,LOCATOR_TIMEOUT:()=>l,getLocator:()=>x,getMinimalActionEntity:()=>_,getPageLocatorExpression:()=>g,sanitizeForComment:()=>v});function v(t){return t.replace(/\r\n/g," ").replace(/\n/g," ").replace(/\r/g," ").trim()}function x(t,e){let r=g(e);return r?new Function("page",`return ${r}`)(t):null}function _(t){let e={action_data:t.action_data};return t.locator&&(e.locator=t.locator),t.xpath&&(e.xpath=t.xpath),t.frame_path&&(e.frame_path=t.frame_path),e}function T(t){let e=t.frame_path;return!e||e.length===0?"page":`page.frameLocator('${e[0]}')`}function O(t){let e=t.xpath;return typeof e=="string"&&e.trim()?!e.startsWith("xpath=")&&!e.startsWith("/")&&!e.startsWith("//")?`xpath=//${e}`:e.startsWith("xpath=")?e:`xpath=${e}`:null}function g(t){let e=T(t),r=t.locator;if(typeof r=="string"&&r.trim())return r=r.trim(),r.endsWith("first()")?`${e}.${r}`:`${e}.${r}.first()`;let a=O(t);if(a){let n=JSON.stringify(a);return`${e}.locator(${n}).first()`}return null}var l,h,m,d=f({"src/actions/utils.ts"(){l=5e3,h=1e4,m=6e4}});d();async function L(t,e,r=[]){try{let a=t;for(let i of r)a=a.frameLocator(i);let n=await a.locator(`xpath=${e}`).elementHandle({timeout:l});if(!n)return s.warn(`Could not find element with xpath: ${e}`),null;let o=await t.evaluate(i=>typeof playwright<"u"&&playwright.generateLocator?playwright.generateLocator(i):null,n);return await n.dispose(),o?(s.debug(`Generated locator for ${e}: ${o}`),o):(s.debug("playwright.generateLocator is not available (PWDEBUG=console not set), using xpath fallback"),null)}catch(a){return s.error(`Error in pickBestLocator: ${a}`),null}}async function U(t,e){try{let r=await t.evaluate(a=>typeof playwright<"u"&&playwright.generateLocator?playwright.generateLocator(a):null,e);return await e.dispose(),r?(s.debug(`Generated locator: ${r}`),r):(s.debug("playwright.generateLocator is not available (PWDEBUG=console not set), using xpath fallback"),null)}catch(r){return s.error(`Error in pickBestLocator: ${r}`),null}}async function R(t,e){if(e<0)return;let{page:r,domService:a}=t;return(t.domState||await a.getClickableElements(r)).selectorMap.get(e)}function E(t){let e=t.split("/").filter(n=>n);if(e.length===0)return"*";let r=e[e.length-1],a=r.match(/^(\w+)(?:\[(\d+)\])?$/);if(a){let[,n,o]=a;return o?`${n}:nth-of-type(${o})`:n}return r}function A(t,e=!0){try{let r=E(t.xpath);if(t.attributes.class&&e){let n=/^[a-zA-Z_][a-zA-Z0-9_-]*$/,o=t.attributes.class.split(/\s+/);for(let i of o)i.trim()&&n.test(i)&&(r+=`.${i}`)}let a=new Set(["id","name","type","placeholder","aria-label","aria-labelledby","aria-describedby","role","for","autocomplete","required","readonly","alt","title","target"]);e&&["data-id","data-qa","data-cy","data-testid","data-handlepos"].forEach(o=>a.add(o));for(let[n,o]of Object.entries(t.attributes)){if(n==="class"||!n.trim()||!a.has(n))continue;let i=n.replace(/:/g,"\\:");if(o==="")r+=`[${i}]`;else if(/["'<>`\n\r\t]/.test(o)){let c=o;o.includes(`
2
+ `)&&(c=o.split(`
3
+ `)[0]),c=c.replace(/\s+/g," ").trim();let y=c.replace(/"/g,'\\"');r+=`[${i}*="${y}"]`}else r+=`[${i}="${o}"]`}return r}catch{return`${t.tagName||"*"}[highlight_index='${t.highlightIndex}']`}}function I(t){let e=[],r=t;for(;r&&r.parent!==null;){let o=r.parent;e.push(o),r=o}e.reverse();let a=[],n=e.filter(o=>o.tagName==="iframe");for(let o of n){let i=A(o,!0);a.push(i)}return a}async function W(t,e){let r=null,a=I(e);return e.xpath&&(r=await L(t,e.xpath)),{locator:r||void 0,xpath:e.xpath,frame_path:a}}export{s as a,b,x as c,h as d,m as e,d as f,U as g,R as h,W as i};
@@ -0,0 +1 @@
1
+ import{C as r,D as t}from"./chunk-QIBDXB3J.js";import"./chunk-YR4E7JSB.js";import"./chunk-UFLZ3URR.js";export{r as ActionHandler,t as default};