faf-cli 7.7.0 → 7.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,146 +1,146 @@
1
- import{createRequire as VZ}from"node:module";var YZ=Object.defineProperty;var M=($,Z)=>()=>(Z||$((Z={exports:{}}).exports,Z),Z.exports);var _Z=($)=>$;function BZ($,Z){this[$]=_Z.bind(null,Z)}var GZ=($,Z)=>{for(var Q in Z)YZ($,Q,{get:Z[Q],enumerable:!0,configurable:!0,set:BZ.bind(Z,Q)})};var s0=VZ(import.meta.url);var b=M((gZ)=>{var r2=Symbol.for("yaml.alias"),g8=Symbol.for("yaml.document"),m1=Symbol.for("yaml.map"),x8=Symbol.for("yaml.pair"),s2=Symbol.for("yaml.scalar"),p1=Symbol.for("yaml.seq"),Z0=Symbol.for("yaml.node.type"),TZ=($)=>!!$&&typeof $==="object"&&$[Z0]===r2,wZ=($)=>!!$&&typeof $==="object"&&$[Z0]===g8,CZ=($)=>!!$&&typeof $==="object"&&$[Z0]===m1,bZ=($)=>!!$&&typeof $==="object"&&$[Z0]===x8,h8=($)=>!!$&&typeof $==="object"&&$[Z0]===s2,EZ=($)=>!!$&&typeof $==="object"&&$[Z0]===p1;function y8($){if($&&typeof $==="object")switch($[Z0]){case m1:case p1:return!0}return!1}function SZ($){if($&&typeof $==="object")switch($[Z0]){case r2:case m1:case s2:case p1:return!0}return!1}var jZ=($)=>(h8($)||y8($))&&!!$.anchor;gZ.ALIAS=r2;gZ.DOC=g8;gZ.MAP=m1;gZ.NODE_TYPE=Z0;gZ.PAIR=x8;gZ.SCALAR=s2;gZ.SEQ=p1;gZ.hasAnchor=jZ;gZ.isAlias=TZ;gZ.isCollection=y8;gZ.isDocument=wZ;gZ.isMap=CZ;gZ.isNode=SZ;gZ.isPair=bZ;gZ.isScalar=h8;gZ.isSeq=EZ});var $1=M((nZ)=>{var h=b(),k=Symbol("break visit"),f8=Symbol("skip children"),n=Symbol("remove node");function l1($,Z){let Q=u8(Z);if(h.isDocument($)){if(j0(null,$.contents,Q,Object.freeze([$]))===n)$.contents=null}else j0(null,$,Q,Object.freeze([]))}l1.BREAK=k;l1.SKIP=f8;l1.REMOVE=n;function j0($,Z,Q,X){let z=k8($,Z,Q,X);if(h.isNode(z)||h.isPair(z))return v8($,X,z),j0($,z,Q,X);if(typeof z!=="symbol"){if(h.isCollection(Z)){X=Object.freeze(X.concat(Z));for(let J=0;J<Z.items.length;++J){let H=j0(J,Z.items[J],Q,X);if(typeof H==="number")J=H-1;else if(H===k)return k;else if(H===n)Z.items.splice(J,1),J-=1}}else if(h.isPair(Z)){X=Object.freeze(X.concat(Z));let J=j0("key",Z.key,Q,X);if(J===k)return k;else if(J===n)Z.key=null;let H=j0("value",Z.value,Q,X);if(H===k)return k;else if(H===n)Z.value=null}}return z}async function d1($,Z){let Q=u8(Z);if(h.isDocument($)){if(await g0(null,$.contents,Q,Object.freeze([$]))===n)$.contents=null}else await g0(null,$,Q,Object.freeze([]))}d1.BREAK=k;d1.SKIP=f8;d1.REMOVE=n;async function g0($,Z,Q,X){let z=await k8($,Z,Q,X);if(h.isNode(z)||h.isPair(z))return v8($,X,z),g0($,z,Q,X);if(typeof z!=="symbol"){if(h.isCollection(Z)){X=Object.freeze(X.concat(Z));for(let J=0;J<Z.items.length;++J){let H=await g0(J,Z.items[J],Q,X);if(typeof H==="number")J=H-1;else if(H===k)return k;else if(H===n)Z.items.splice(J,1),J-=1}}else if(h.isPair(Z)){X=Object.freeze(X.concat(Z));let J=await g0("key",Z.key,Q,X);if(J===k)return k;else if(J===n)Z.key=null;let H=await g0("value",Z.value,Q,X);if(H===k)return k;else if(H===n)Z.value=null}}return z}function u8($){if(typeof $==="object"&&($.Collection||$.Node||$.Value))return Object.assign({Alias:$.Node,Map:$.Node,Scalar:$.Node,Seq:$.Node},$.Value&&{Map:$.Value,Scalar:$.Value,Seq:$.Value},$.Collection&&{Map:$.Collection,Seq:$.Collection},$);return $}function k8($,Z,Q,X){if(typeof Q==="function")return Q($,Z,X);if(h.isMap(Z))return Q.Map?.($,Z,X);if(h.isSeq(Z))return Q.Seq?.($,Z,X);if(h.isPair(Z))return Q.Pair?.($,Z,X);if(h.isScalar(Z))return Q.Scalar?.($,Z,X);if(h.isAlias(Z))return Q.Alias?.($,Z,X);return}function v8($,Z,Q){let X=Z[Z.length-1];if(h.isCollection(X))X.items[$]=Q;else if(h.isPair(X))if($==="key")X.key=Q;else X.value=Q;else if(h.isDocument(X))X.contents=Q;else{let z=h.isAlias(X)?"alias":"scalar";throw Error(`Cannot replace node with ${z} parent`)}}nZ.visit=l1;nZ.visitAsync=d1});var n2=M((Q4)=>{var m8=b(),eZ=$1(),$4={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Z4=($)=>$.replace(/[!,[\]{}]/g,(Z)=>$4[Z]);class p{constructor($,Z){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},p.defaultYaml,$),this.tags=Object.assign({},p.defaultTags,Z)}clone(){let $=new p(this.yaml,this.tags);return $.docStart=this.docStart,$}atDocument(){let $=new p(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:p.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},p.defaultTags);break}return $}add($,Z){if(this.atNextDocument)this.yaml={explicit:p.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},p.defaultTags),this.atNextDocument=!1;let Q=$.trim().split(/[ \t]+/),X=Q.shift();switch(X){case"%TAG":{if(Q.length!==2){if(Z(0,"%TAG directive should contain exactly two parts"),Q.length<2)return!1}let[z,J]=Q;return this.tags[z]=J,!0}case"%YAML":{if(this.yaml.explicit=!0,Q.length!==1)return Z(0,"%YAML directive should contain exactly one part"),!1;let[z]=Q;if(z==="1.1"||z==="1.2")return this.yaml.version=z,!0;else{let J=/^\d+\.\d+$/.test(z);return Z(6,`Unsupported YAML version ${z}`,J),!1}}default:return Z(0,`Unknown directive ${X}`,!0),!1}}tagName($,Z){if($==="!")return"!";if($[0]!=="!")return Z(`Not a valid tag: ${$}`),null;if($[1]==="<"){let J=$.slice(2,-1);if(J==="!"||J==="!!")return Z(`Verbatim tags aren't resolved, so ${$} is invalid.`),null;if($[$.length-1]!==">")Z("Verbatim tags must end with a >");return J}let[,Q,X]=$.match(/^(.*!)([^!]*)$/s);if(!X)Z(`The ${$} tag has no suffix`);let z=this.tags[Q];if(z)try{return z+decodeURIComponent(X)}catch(J){return Z(String(J)),null}if(Q==="!")return $;return Z(`Could not resolve tag: ${$}`),null}tagString($){for(let[Z,Q]of Object.entries(this.tags))if($.startsWith(Q))return Z+Z4($.substring(Q.length));return $[0]==="!"?$:`!<${$}>`}toString($){let Z=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],Q=Object.entries(this.tags),X;if($&&Q.length>0&&m8.isNode($.contents)){let z={};eZ.visit($.contents,(J,H)=>{if(m8.isNode(H)&&H.tag)z[H.tag]=!0}),X=Object.keys(z)}else X=[];for(let[z,J]of Q){if(z==="!!"&&J==="tag:yaml.org,2002:")continue;if(!$||X.some((H)=>H.startsWith(J)))Z.push(`%TAG ${z} ${J}`)}return Z.join(`
2
- `)}}p.defaultYaml={explicit:!1,version:"1.2"};p.defaultTags={"!!":"tag:yaml.org,2002:"};Q4.Directives=p});var c1=M((U4)=>{var p8=b(),z4=$1();function J4($){if(/[\x00-\x19\s,[\]{}]/.test($)){let Q=`Anchor must not contain whitespace or control characters: ${JSON.stringify($)}`;throw Error(Q)}return!0}function l8($){let Z=new Set;return z4.visit($,{Value(Q,X){if(X.anchor)Z.add(X.anchor)}}),Z}function d8($,Z){for(let Q=1;;++Q){let X=`${$}${Q}`;if(!Z.has(X))return X}}function H4($,Z){let Q=[],X=new Map,z=null;return{onAnchor:(J)=>{Q.push(J),z??(z=l8($));let H=d8(Z,z);return z.add(H),H},setAnchors:()=>{for(let J of Q){let H=X.get(J);if(typeof H==="object"&&H.anchor&&(p8.isScalar(H.node)||p8.isCollection(H.node)))H.node.anchor=H.anchor;else{let U=Error("Failed to resolve repeated object (this should not happen)");throw U.source=J,U}}},sourceObjects:X}}U4.anchorIsValid=J4;U4.anchorNames=l8;U4.createNodeAnchors=H4;U4.findNewAnchor=d8});var o2=M((G4)=>{function Z1($,Z,Q,X){if(X&&typeof X==="object")if(Array.isArray(X))for(let z=0,J=X.length;z<J;++z){let H=X[z],U=Z1($,X,String(z),H);if(U===void 0)delete X[z];else if(U!==H)X[z]=U}else if(X instanceof Map)for(let z of Array.from(X.keys())){let J=X.get(z),H=Z1($,X,z,J);if(H===void 0)X.delete(z);else if(H!==J)X.set(z,H)}else if(X instanceof Set)for(let z of Array.from(X)){let J=Z1($,X,z,z);if(J===void 0)X.delete(z);else if(J!==z)X.delete(z),X.add(J)}else for(let[z,J]of Object.entries(X)){let H=Z1($,X,z,J);if(H===void 0)delete X[z];else if(H!==J)X[z]=H}return $.call(Z,Q,X)}G4.applyReviver=Z1});var H0=M((W4)=>{var O4=b();function c8($,Z,Q){if(Array.isArray($))return $.map((X,z)=>c8(X,String(z),Q));if($&&typeof $.toJSON==="function"){if(!Q||!O4.hasAnchor($))return $.toJSON(Z,Q);let X={aliasCount:0,count:1,res:void 0};Q.anchors.set($,X),Q.onCreate=(J)=>{X.res=J,delete Q.onCreate};let z=$.toJSON(Z,Q);if(Q.onCreate)Q.onCreate(z);return z}if(typeof $==="bigint"&&!Q?.keep)return Number($);return $}W4.toJS=c8});var i1=M((L4)=>{var I4=o2(),i8=b(),K4=H0();class a8{constructor($){Object.defineProperty(this,i8.NODE_TYPE,{value:$})}clone(){let $=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)$.range=this.range.slice();return $}toJS($,{mapAsMap:Z,maxAliasCount:Q,onAnchor:X,reviver:z}={}){if(!i8.isDocument($))throw TypeError("A document argument is required");let J={anchors:new Map,doc:$,keep:!0,mapAsMap:Z===!0,mapKeyWarned:!1,maxAliasCount:typeof Q==="number"?Q:100},H=K4.toJS(this,"",J);if(typeof X==="function")for(let{count:U,res:q}of J.anchors.values())X(q,U);return typeof z==="function"?I4.applyReviver(z,{"":H},"",H):H}}L4.NodeBase=a8});var Q1=M((P4)=>{var R4=c1(),F4=$1(),x0=b(),A4=i1(),N4=H0();class r8 extends A4.NodeBase{constructor($){super(x0.ALIAS);this.source=$,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve($,Z){let Q;if(Z?.aliasResolveCache)Q=Z.aliasResolveCache;else if(Q=[],F4.visit($,{Node:(z,J)=>{if(x0.isAlias(J)||x0.hasAnchor(J))Q.push(J)}}),Z)Z.aliasResolveCache=Q;let X=void 0;for(let z of Q){if(z===this)break;if(z.anchor===this.source)X=z}return X}toJSON($,Z){if(!Z)return{source:this.source};let{anchors:Q,doc:X,maxAliasCount:z}=Z,J=this.resolve(X,Z);if(!J){let U=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(U)}let H=Q.get(J);if(!H)N4.toJS(J,null,Z),H=Q.get(J);if(H?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(z>=0){if(H.count+=1,H.aliasCount===0)H.aliasCount=a1(X,J,Q);if(H.count*H.aliasCount>z)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return H.res}toString($,Z,Q){let X=`*${this.source}`;if($){if(R4.anchorIsValid(this.source),$.options.verifyAliasOrder&&!$.anchors.has(this.source)){let z=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(z)}if($.implicitKey)return`${X} `}return X}}function a1($,Z,Q){if(x0.isAlias(Z)){let X=Z.resolve($),z=Q&&X&&Q.get(X);return z?z.count*z.aliasCount:0}else if(x0.isCollection(Z)){let X=0;for(let z of Z.items){let J=a1($,z,Q);if(J>X)X=J}return X}else if(x0.isPair(Z)){let X=a1($,Z.key,Q),z=a1($,Z.value,Q);return Math.max(X,z)}return 1}P4.Alias=r8});var x=M((S4)=>{var w4=b(),C4=i1(),b4=H0(),E4=($)=>!$||typeof $!=="function"&&typeof $!=="object";class I0 extends C4.NodeBase{constructor($){super(w4.SCALAR);this.value=$}toJSON($,Z){return Z?.keep?this.value:b4.toJS(this.value,$,Z)}toString(){return String(this.value)}}I0.BLOCK_FOLDED="BLOCK_FOLDED";I0.BLOCK_LITERAL="BLOCK_LITERAL";I0.PLAIN="PLAIN";I0.QUOTE_DOUBLE="QUOTE_DOUBLE";I0.QUOTE_SINGLE="QUOTE_SINGLE";S4.Scalar=I0;S4.isScalarValue=E4});var X1=M((u4)=>{var x4=Q1(),K0=b(),s8=x(),h4="tag:yaml.org,2002:";function y4($,Z,Q){if(Z){let X=Q.filter((J)=>J.tag===Z),z=X.find((J)=>!J.format)??X[0];if(!z)throw Error(`Tag ${Z} not found`);return z}return Q.find((X)=>X.identify?.($)&&!X.format)}function f4($,Z,Q){if(K0.isDocument($))$=$.contents;if(K0.isNode($))return $;if(K0.isPair($)){let B=Q.schema[K0.MAP].createNode?.(Q.schema,null,Q);return B.items.push($),B}if($ instanceof String||$ instanceof Number||$ instanceof Boolean||typeof BigInt<"u"&&$ instanceof BigInt)$=$.valueOf();let{aliasDuplicateObjects:X,onAnchor:z,onTagObj:J,schema:H,sourceObjects:U}=Q,q=void 0;if(X&&$&&typeof $==="object")if(q=U.get($),q)return q.anchor??(q.anchor=z($)),new x4.Alias(q.anchor);else q={anchor:null,node:null},U.set($,q);if(Z?.startsWith("!!"))Z=h4+Z.slice(2);let Y=y4($,Z,H.tags);if(!Y){if($&&typeof $.toJSON==="function")$=$.toJSON();if(!$||typeof $!=="object"){let B=new s8.Scalar($);if(q)q.node=B;return B}Y=$ instanceof Map?H[K0.MAP]:(Symbol.iterator in Object($))?H[K0.SEQ]:H[K0.MAP]}if(J)J(Y),delete Q.onTagObj;let _=Y?.createNode?Y.createNode(Q.schema,$,Q):typeof Y?.nodeClass?.from==="function"?Y.nodeClass.from(Q.schema,$,Q):new s8.Scalar($);if(Z)_.tag=Z;else if(!Y.default)_.tag=Y.tag;if(q)q.node=_;return _}u4.createNode=f4});var r1=M((p4)=>{var v4=X1(),o=b(),m4=i1();function t2($,Z,Q){let X=Q;for(let z=Z.length-1;z>=0;--z){let J=Z[z];if(typeof J==="number"&&Number.isInteger(J)&&J>=0){let H=[];H[J]=X,X=H}else X=new Map([[J,X]])}return v4.createNode(X,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:$,sourceObjects:new Map})}var n8=($)=>$==null||typeof $==="object"&&!!$[Symbol.iterator]().next().done;class o8 extends m4.NodeBase{constructor($,Z){super($);Object.defineProperty(this,"schema",{value:Z,configurable:!0,enumerable:!1,writable:!0})}clone($){let Z=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if($)Z.schema=$;if(Z.items=Z.items.map((Q)=>o.isNode(Q)||o.isPair(Q)?Q.clone($):Q),this.range)Z.range=this.range.slice();return Z}addIn($,Z){if(n8($))this.add(Z);else{let[Q,...X]=$,z=this.get(Q,!0);if(o.isCollection(z))z.addIn(X,Z);else if(z===void 0&&this.schema)this.set(Q,t2(this.schema,X,Z));else throw Error(`Expected YAML collection at ${Q}. Remaining path: ${X}`)}}deleteIn($){let[Z,...Q]=$;if(Q.length===0)return this.delete(Z);let X=this.get(Z,!0);if(o.isCollection(X))return X.deleteIn(Q);else throw Error(`Expected YAML collection at ${Z}. Remaining path: ${Q}`)}getIn($,Z){let[Q,...X]=$,z=this.get(Q,!0);if(X.length===0)return!Z&&o.isScalar(z)?z.value:z;else return o.isCollection(z)?z.getIn(X,Z):void 0}hasAllNullValues($){return this.items.every((Z)=>{if(!o.isPair(Z))return!1;let Q=Z.value;return Q==null||$&&o.isScalar(Q)&&Q.value==null&&!Q.commentBefore&&!Q.comment&&!Q.tag})}hasIn($){let[Z,...Q]=$;if(Q.length===0)return this.has(Z);let X=this.get(Z,!0);return o.isCollection(X)?X.hasIn(Q):!1}setIn($,Z){let[Q,...X]=$;if(X.length===0)this.set(Q,Z);else{let z=this.get(Q,!0);if(o.isCollection(z))z.setIn(X,Z);else if(z===void 0&&this.schema)this.set(Q,t2(this.schema,X,Z));else throw Error(`Expected YAML collection at ${Q}. Remaining path: ${X}`)}}}p4.Collection=o8;p4.collectionFromPath=t2;p4.isEmptyPath=n8});var z1=M((r4)=>{var i4=($)=>$.replace(/^(?!$)(?: $)?/gm,"#");function e2($,Z){if(/^\n+$/.test($))return $.substring(1);return Z?$.replace(/^(?! *$)/gm,Z):$}var a4=($,Z,Q)=>$.endsWith(`
3
- `)?e2(Q,Z):Q.includes(`
1
+ import{createRequire as C4}from"node:module";var N4=Object.defineProperty;var M=($,Z)=>()=>(Z||$((Z={exports:{}}).exports,Z),Z.exports);var A4=($)=>$;function P4($,Z){this[$]=A4.bind(null,Z)}var T4=($,Z)=>{for(var Q in Z)N4($,Q,{get:Z[Q],enumerable:!0,configurable:!0,set:P4.bind(Z,Q)})};var n0=C4(import.meta.url);var b=M((r4)=>{var o2=Symbol.for("yaml.alias"),l8=Symbol.for("yaml.document"),m1=Symbol.for("yaml.map"),p8=Symbol.for("yaml.pair"),t2=Symbol.for("yaml.scalar"),l1=Symbol.for("yaml.seq"),Q0=Symbol.for("yaml.node.type"),u4=($)=>!!$&&typeof $==="object"&&$[Q0]===o2,m4=($)=>!!$&&typeof $==="object"&&$[Q0]===l8,l4=($)=>!!$&&typeof $==="object"&&$[Q0]===m1,p4=($)=>!!$&&typeof $==="object"&&$[Q0]===p8,d8=($)=>!!$&&typeof $==="object"&&$[Q0]===t2,d4=($)=>!!$&&typeof $==="object"&&$[Q0]===l1;function c8($){if($&&typeof $==="object")switch($[Q0]){case m1:case l1:return!0}return!1}function c4($){if($&&typeof $==="object")switch($[Q0]){case o2:case m1:case t2:case l1:return!0}return!1}var i4=($)=>(d8($)||c8($))&&!!$.anchor;r4.ALIAS=o2;r4.DOC=l8;r4.MAP=m1;r4.NODE_TYPE=Q0;r4.PAIR=p8;r4.SCALAR=t2;r4.SEQ=l1;r4.hasAnchor=i4;r4.isAlias=u4;r4.isCollection=c8;r4.isDocument=m4;r4.isMap=l4;r4.isNode=c4;r4.isPair=p4;r4.isScalar=d8;r4.isSeq=d4});var Z1=M((B5)=>{var h=b(),v=Symbol("break visit"),i8=Symbol("skip children"),o=Symbol("remove node");function p1($,Z){let Q=r8(Z);if(h.isDocument($)){if(j0(null,$.contents,Q,Object.freeze([$]))===o)$.contents=null}else j0(null,$,Q,Object.freeze([]))}p1.BREAK=v;p1.SKIP=i8;p1.REMOVE=o;function j0($,Z,Q,X){let z=a8($,Z,Q,X);if(h.isNode(z)||h.isPair(z))return s8($,X,z),j0($,z,Q,X);if(typeof z!=="symbol"){if(h.isCollection(Z)){X=Object.freeze(X.concat(Z));for(let J=0;J<Z.items.length;++J){let H=j0(J,Z.items[J],Q,X);if(typeof H==="number")J=H-1;else if(H===v)return v;else if(H===o)Z.items.splice(J,1),J-=1}}else if(h.isPair(Z)){X=Object.freeze(X.concat(Z));let J=j0("key",Z.key,Q,X);if(J===v)return v;else if(J===o)Z.key=null;let H=j0("value",Z.value,Q,X);if(H===v)return v;else if(H===o)Z.value=null}}return z}async function d1($,Z){let Q=r8(Z);if(h.isDocument($)){if(await g0(null,$.contents,Q,Object.freeze([$]))===o)$.contents=null}else await g0(null,$,Q,Object.freeze([]))}d1.BREAK=v;d1.SKIP=i8;d1.REMOVE=o;async function g0($,Z,Q,X){let z=await a8($,Z,Q,X);if(h.isNode(z)||h.isPair(z))return s8($,X,z),g0($,z,Q,X);if(typeof z!=="symbol"){if(h.isCollection(Z)){X=Object.freeze(X.concat(Z));for(let J=0;J<Z.items.length;++J){let H=await g0(J,Z.items[J],Q,X);if(typeof H==="number")J=H-1;else if(H===v)return v;else if(H===o)Z.items.splice(J,1),J-=1}}else if(h.isPair(Z)){X=Object.freeze(X.concat(Z));let J=await g0("key",Z.key,Q,X);if(J===v)return v;else if(J===o)Z.key=null;let H=await g0("value",Z.value,Q,X);if(H===v)return v;else if(H===o)Z.value=null}}return z}function r8($){if(typeof $==="object"&&($.Collection||$.Node||$.Value))return Object.assign({Alias:$.Node,Map:$.Node,Scalar:$.Node,Seq:$.Node},$.Value&&{Map:$.Value,Scalar:$.Value,Seq:$.Value},$.Collection&&{Map:$.Collection,Seq:$.Collection},$);return $}function a8($,Z,Q,X){if(typeof Q==="function")return Q($,Z,X);if(h.isMap(Z))return Q.Map?.($,Z,X);if(h.isSeq(Z))return Q.Seq?.($,Z,X);if(h.isPair(Z))return Q.Pair?.($,Z,X);if(h.isScalar(Z))return Q.Scalar?.($,Z,X);if(h.isAlias(Z))return Q.Alias?.($,Z,X);return}function s8($,Z,Q){let X=Z[Z.length-1];if(h.isCollection(X))X.items[$]=Q;else if(h.isPair(X))if($==="key")X.key=Q;else X.value=Q;else if(h.isDocument(X))X.contents=Q;else{let z=h.isAlias(X)?"alias":"scalar";throw Error(`Cannot replace node with ${z} parent`)}}B5.visit=p1;B5.visitAsync=d1});var e2=M((D5)=>{var n8=b(),_5=Z1(),W5={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},O5=($)=>$.replace(/[!,[\]{}]/g,(Z)=>W5[Z]);class l{constructor($,Z){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},l.defaultYaml,$),this.tags=Object.assign({},l.defaultTags,Z)}clone(){let $=new l(this.yaml,this.tags);return $.docStart=this.docStart,$}atDocument(){let $=new l(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:l.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},l.defaultTags);break}return $}add($,Z){if(this.atNextDocument)this.yaml={explicit:l.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},l.defaultTags),this.atNextDocument=!1;let Q=$.trim().split(/[ \t]+/),X=Q.shift();switch(X){case"%TAG":{if(Q.length!==2){if(Z(0,"%TAG directive should contain exactly two parts"),Q.length<2)return!1}let[z,J]=Q;return this.tags[z]=J,!0}case"%YAML":{if(this.yaml.explicit=!0,Q.length!==1)return Z(0,"%YAML directive should contain exactly one part"),!1;let[z]=Q;if(z==="1.1"||z==="1.2")return this.yaml.version=z,!0;else{let J=/^\d+\.\d+$/.test(z);return Z(6,`Unsupported YAML version ${z}`,J),!1}}default:return Z(0,`Unknown directive ${X}`,!0),!1}}tagName($,Z){if($==="!")return"!";if($[0]!=="!")return Z(`Not a valid tag: ${$}`),null;if($[1]==="<"){let J=$.slice(2,-1);if(J==="!"||J==="!!")return Z(`Verbatim tags aren't resolved, so ${$} is invalid.`),null;if($[$.length-1]!==">")Z("Verbatim tags must end with a >");return J}let[,Q,X]=$.match(/^(.*!)([^!]*)$/s);if(!X)Z(`The ${$} tag has no suffix`);let z=this.tags[Q];if(z)try{return z+decodeURIComponent(X)}catch(J){return Z(String(J)),null}if(Q==="!")return $;return Z(`Could not resolve tag: ${$}`),null}tagString($){for(let[Z,Q]of Object.entries(this.tags))if($.startsWith(Q))return Z+O5($.substring(Q.length));return $[0]==="!"?$:`!<${$}>`}toString($){let Z=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],Q=Object.entries(this.tags),X;if($&&Q.length>0&&n8.isNode($.contents)){let z={};_5.visit($.contents,(J,H)=>{if(n8.isNode(H)&&H.tag)z[H.tag]=!0}),X=Object.keys(z)}else X=[];for(let[z,J]of Q){if(z==="!!"&&J==="tag:yaml.org,2002:")continue;if(!$||X.some((H)=>H.startsWith(J)))Z.push(`%TAG ${z} ${J}`)}return Z.join(`
2
+ `)}}l.defaultYaml={explicit:!1,version:"1.2"};l.defaultTags={"!!":"tag:yaml.org,2002:"};D5.Directives=l});var c1=M((R5)=>{var o8=b(),K5=Z1();function L5($){if(/[\x00-\x19\s,[\]{}]/.test($)){let Q=`Anchor must not contain whitespace or control characters: ${JSON.stringify($)}`;throw Error(Q)}return!0}function t8($){let Z=new Set;return K5.visit($,{Value(Q,X){if(X.anchor)Z.add(X.anchor)}}),Z}function e8($,Z){for(let Q=1;;++Q){let X=`${$}${Q}`;if(!Z.has(X))return X}}function M5($,Z){let Q=[],X=new Map,z=null;return{onAnchor:(J)=>{Q.push(J),z??(z=t8($));let H=e8(Z,z);return z.add(H),H},setAnchors:()=>{for(let J of Q){let H=X.get(J);if(typeof H==="object"&&H.anchor&&(o8.isScalar(H.node)||o8.isCollection(H.node)))H.node.anchor=H.anchor;else{let U=Error("Failed to resolve repeated object (this should not happen)");throw U.source=J,U}}},sourceObjects:X}}R5.anchorIsValid=L5;R5.anchorNames=t8;R5.createNodeAnchors=M5;R5.findNewAnchor=e8});var $$=M((T5)=>{function Q1($,Z,Q,X){if(X&&typeof X==="object")if(Array.isArray(X))for(let z=0,J=X.length;z<J;++z){let H=X[z],U=Q1($,X,String(z),H);if(U===void 0)delete X[z];else if(U!==H)X[z]=U}else if(X instanceof Map)for(let z of Array.from(X.keys())){let J=X.get(z),H=Q1($,X,z,J);if(H===void 0)X.delete(z);else if(H!==J)X.set(z,H)}else if(X instanceof Set)for(let z of Array.from(X)){let J=Q1($,X,z,z);if(J===void 0)X.delete(z);else if(J!==z)X.delete(z),X.add(J)}else for(let[z,J]of Object.entries(X)){let H=Q1($,X,z,J);if(H===void 0)delete X[z];else if(H!==J)X[z]=H}return $.call(Z,Q,X)}T5.applyReviver=Q1});var H0=M((b5)=>{var w5=b();function $6($,Z,Q){if(Array.isArray($))return $.map((X,z)=>$6(X,String(z),Q));if($&&typeof $.toJSON==="function"){if(!Q||!w5.hasAnchor($))return $.toJSON(Z,Q);let X={aliasCount:0,count:1,res:void 0};Q.anchors.set($,X),Q.onCreate=(J)=>{X.res=J,delete Q.onCreate};let z=$.toJSON(Z,Q);if(Q.onCreate)Q.onCreate(z);return z}if(typeof $==="bigint"&&!Q?.keep)return Number($);return $}b5.toJS=$6});var i1=M((g5)=>{var S5=$$(),Z6=b(),j5=H0();class Q6{constructor($){Object.defineProperty(this,Z6.NODE_TYPE,{value:$})}clone(){let $=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)$.range=this.range.slice();return $}toJS($,{mapAsMap:Z,maxAliasCount:Q,onAnchor:X,reviver:z}={}){if(!Z6.isDocument($))throw TypeError("A document argument is required");let J={anchors:new Map,doc:$,keep:!0,mapAsMap:Z===!0,mapKeyWarned:!1,maxAliasCount:typeof Q==="number"?Q:100},H=j5.toJS(this,"",J);if(typeof X==="function")for(let{count:U,res:q}of J.anchors.values())X(q,U);return typeof z==="function"?S5.applyReviver(z,{"":H},"",H):H}}g5.NodeBase=Q6});var X1=M((v5)=>{var h5=c1(),y5=Z1(),x0=b(),f5=i1(),k5=H0();class X6 extends f5.NodeBase{constructor($){super(x0.ALIAS);this.source=$,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve($,Z){if(Z?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");let Q;if(Z?.aliasResolveCache)Q=Z.aliasResolveCache;else if(Q=[],y5.visit($,{Node:(z,J)=>{if(x0.isAlias(J)||x0.hasAnchor(J))Q.push(J)}}),Z)Z.aliasResolveCache=Q;let X=void 0;for(let z of Q){if(z===this)break;if(z.anchor===this.source)X=z}return X}toJSON($,Z){if(!Z)return{source:this.source};let{anchors:Q,doc:X,maxAliasCount:z}=Z,J=this.resolve(X,Z);if(!J){let U=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(U)}let H=Q.get(J);if(!H)k5.toJS(J,null,Z),H=Q.get(J);if(H?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(z>=0){if(H.count+=1,H.aliasCount===0)H.aliasCount=r1(X,J,Q);if(H.count*H.aliasCount>z)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return H.res}toString($,Z,Q){let X=`*${this.source}`;if($){if(h5.anchorIsValid(this.source),$.options.verifyAliasOrder&&!$.anchors.has(this.source)){let z=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(z)}if($.implicitKey)return`${X} `}return X}}function r1($,Z,Q){if(x0.isAlias(Z)){let X=Z.resolve($),z=Q&&X&&Q.get(X);return z?z.count*z.aliasCount:0}else if(x0.isCollection(Z)){let X=0;for(let z of Z.items){let J=r1($,z,Q);if(J>X)X=J}return X}else if(x0.isPair(Z)){let X=r1($,Z.key,Q),z=r1($,Z.value,Q);return Math.max(X,z)}return 1}v5.Alias=X6});var x=M((c5)=>{var m5=b(),l5=i1(),p5=H0(),d5=($)=>!$||typeof $!=="function"&&typeof $!=="object";class I0 extends l5.NodeBase{constructor($){super(m5.SCALAR);this.value=$}toJSON($,Z){return Z?.keep?this.value:p5.toJS(this.value,$,Z)}toString(){return String(this.value)}}I0.BLOCK_FOLDED="BLOCK_FOLDED";I0.BLOCK_LITERAL="BLOCK_LITERAL";I0.PLAIN="PLAIN";I0.QUOTE_DOUBLE="QUOTE_DOUBLE";I0.QUOTE_SINGLE="QUOTE_SINGLE";c5.Scalar=I0;c5.isScalarValue=d5});var z1=M((t5)=>{var a5=X1(),K0=b(),z6=x(),s5="tag:yaml.org,2002:";function n5($,Z,Q){if(Z){let X=Q.filter((J)=>J.tag===Z),z=X.find((J)=>!J.format)??X[0];if(!z)throw Error(`Tag ${Z} not found`);return z}return Q.find((X)=>X.identify?.($)&&!X.format)}function o5($,Z,Q){if(K0.isDocument($))$=$.contents;if(K0.isNode($))return $;if(K0.isPair($)){let G=Q.schema[K0.MAP].createNode?.(Q.schema,null,Q);return G.items.push($),G}if($ instanceof String||$ instanceof Number||$ instanceof Boolean||typeof BigInt<"u"&&$ instanceof BigInt)$=$.valueOf();let{aliasDuplicateObjects:X,onAnchor:z,onTagObj:J,schema:H,sourceObjects:U}=Q,q=void 0;if(X&&$&&typeof $==="object")if(q=U.get($),q)return q.anchor??(q.anchor=z($)),new a5.Alias(q.anchor);else q={anchor:null,node:null},U.set($,q);if(Z?.startsWith("!!"))Z=s5+Z.slice(2);let Y=n5($,Z,H.tags);if(!Y){if($&&typeof $.toJSON==="function")$=$.toJSON();if(!$||typeof $!=="object"){let G=new z6.Scalar($);if(q)q.node=G;return G}Y=$ instanceof Map?H[K0.MAP]:(Symbol.iterator in Object($))?H[K0.SEQ]:H[K0.MAP]}if(J)J(Y),delete Q.onTagObj;let B=Y?.createNode?Y.createNode(Q.schema,$,Q):typeof Y?.nodeClass?.from==="function"?Y.nodeClass.from(Q.schema,$,Q):new z6.Scalar($);if(Z)B.tag=Z;else if(!Y.default)B.tag=Y.tag;if(q)q.node=B;return B}t5.createNode=o5});var a1=M((Q3)=>{var $3=z1(),t=b(),Z3=i1();function Z$($,Z,Q){let X=Q;for(let z=Z.length-1;z>=0;--z){let J=Z[z];if(typeof J==="number"&&Number.isInteger(J)&&J>=0){let H=[];H[J]=X,X=H}else X=new Map([[J,X]])}return $3.createNode(X,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:$,sourceObjects:new Map})}var J6=($)=>$==null||typeof $==="object"&&!!$[Symbol.iterator]().next().done;class H6 extends Z3.NodeBase{constructor($,Z){super($);Object.defineProperty(this,"schema",{value:Z,configurable:!0,enumerable:!1,writable:!0})}clone($){let Z=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if($)Z.schema=$;if(Z.items=Z.items.map((Q)=>t.isNode(Q)||t.isPair(Q)?Q.clone($):Q),this.range)Z.range=this.range.slice();return Z}addIn($,Z){if(J6($))this.add(Z);else{let[Q,...X]=$,z=this.get(Q,!0);if(t.isCollection(z))z.addIn(X,Z);else if(z===void 0&&this.schema)this.set(Q,Z$(this.schema,X,Z));else throw Error(`Expected YAML collection at ${Q}. Remaining path: ${X}`)}}deleteIn($){let[Z,...Q]=$;if(Q.length===0)return this.delete(Z);let X=this.get(Z,!0);if(t.isCollection(X))return X.deleteIn(Q);else throw Error(`Expected YAML collection at ${Z}. Remaining path: ${Q}`)}getIn($,Z){let[Q,...X]=$,z=this.get(Q,!0);if(X.length===0)return!Z&&t.isScalar(z)?z.value:z;else return t.isCollection(z)?z.getIn(X,Z):void 0}hasAllNullValues($){return this.items.every((Z)=>{if(!t.isPair(Z))return!1;let Q=Z.value;return Q==null||$&&t.isScalar(Q)&&Q.value==null&&!Q.commentBefore&&!Q.comment&&!Q.tag})}hasIn($){let[Z,...Q]=$;if(Q.length===0)return this.has(Z);let X=this.get(Z,!0);return t.isCollection(X)?X.hasIn(Q):!1}setIn($,Z){let[Q,...X]=$;if(X.length===0)this.set(Q,Z);else{let z=this.get(Q,!0);if(t.isCollection(z))z.setIn(X,Z);else if(z===void 0&&this.schema)this.set(Q,Z$(this.schema,X,Z));else throw Error(`Expected YAML collection at ${Q}. Remaining path: ${X}`)}}}Q3.Collection=H6;Q3.collectionFromPath=Z$;Q3.isEmptyPath=J6});var J1=M((q3)=>{var H3=($)=>$.replace(/^(?!$)(?: $)?/gm,"#");function Q$($,Z){if(/^\n+$/.test($))return $.substring(1);return Z?$.replace(/^(?! *$)/gm,Z):$}var U3=($,Z,Q)=>$.endsWith(`
3
+ `)?Q$(Q,Z):Q.includes(`
4
4
  `)?`
5
- `+e2(Q,Z):($.endsWith(" ")?"":" ")+Q;r4.indentComment=e2;r4.lineComment=a4;r4.stringifyComment=i4});var e8=M((e4)=>{function t4($,Z,Q="flow",{indentAtStart:X,lineWidth:z=80,minContentWidth:J=20,onFold:H,onOverflow:U}={}){if(!z||z<0)return $;if(z<J)J=0;let q=Math.max(1+J,1+z-Z.length);if($.length<=q)return $;let Y=[],_={},B=z-Z.length;if(typeof X==="number")if(X>z-Math.max(2,J))Y.push(0);else B=z-X;let G=void 0,O=void 0,D=!1,V=-1,W=-1,I=-1;if(Q==="block"){if(V=t8($,V,Z.length),V!==-1)B=V+q}for(let A;A=$[V+=1];){if(Q==="quoted"&&A==="\\"){switch(W=V,$[V+1]){case"x":V+=3;break;case"u":V+=5;break;case"U":V+=9;break;default:V+=1}I=V}if(A===`
6
- `){if(Q==="block")V=t8($,V,Z.length);B=V+Z.length+q,G=void 0}else{if(A===" "&&O&&O!==" "&&O!==`
7
- `&&O!=="\t"){let N=$[V+1];if(N&&N!==" "&&N!==`
8
- `&&N!=="\t")G=V}if(V>=B)if(G)Y.push(G),B=G+q,G=void 0;else if(Q==="quoted"){while(O===" "||O==="\t")O=A,A=$[V+=1],D=!0;let N=V>I+1?V-2:W-1;if(_[N])return $;Y.push(N),_[N]=!0,B=N+q,G=void 0}else D=!0}O=A}if(D&&U)U();if(Y.length===0)return $;if(H)H();let L=$.slice(0,Y[0]);for(let A=0;A<Y.length;++A){let N=Y[A],T=Y[A+1]||$.length;if(N===0)L=`
9
- ${Z}${$.slice(0,T)}`;else{if(Q==="quoted"&&_[N])L+=`${$[N]}\\`;L+=`
10
- ${Z}${$.slice(N+1,T)}`}}return L}function t8($,Z,Q){let X=Z,z=Z+1,J=$[z];while(J===" "||J==="\t")if(Z<z+Q)J=$[++Z];else{do J=$[++Z];while(J&&J!==`
11
- `);X=Z,z=Z+1,J=$[z]}return X}e4.FOLD_BLOCK="block";e4.FOLD_FLOW="flow";e4.FOLD_QUOTED="quoted";e4.foldFlowLines=t4});var H1=M((U5)=>{var c=x(),U0=e8(),n1=($,Z)=>({indentAtStart:Z?$.indent.length:$.indentAtStart,lineWidth:$.options.lineWidth,minContentWidth:$.options.minContentWidth}),o1=($)=>/^(%|---|\.\.\.)/m.test($);function z5($,Z,Q){if(!Z||Z<0)return!1;let X=Z-Q,z=$.length;if(z<=X)return!1;for(let J=0,H=0;J<z;++J)if($[J]===`
12
- `){if(J-H>X)return!0;if(H=J+1,z-H<=X)return!1}return!0}function J1($,Z){let Q=JSON.stringify($);if(Z.options.doubleQuotedAsJSON)return Q;let{implicitKey:X}=Z,z=Z.options.doubleQuotedMinMultiLineLength,J=Z.indent||(o1($)?" ":""),H="",U=0;for(let q=0,Y=Q[q];Y;Y=Q[++q]){if(Y===" "&&Q[q+1]==="\\"&&Q[q+2]==="n")H+=Q.slice(U,q)+"\\ ",q+=1,U=q,Y="\\";if(Y==="\\")switch(Q[q+1]){case"u":{H+=Q.slice(U,q);let _=Q.substr(q+2,4);switch(_){case"0000":H+="\\0";break;case"0007":H+="\\a";break;case"000b":H+="\\v";break;case"001b":H+="\\e";break;case"0085":H+="\\N";break;case"00a0":H+="\\_";break;case"2028":H+="\\L";break;case"2029":H+="\\P";break;default:if(_.substr(0,2)==="00")H+="\\x"+_.substr(2);else H+=Q.substr(q,6)}q+=5,U=q+1}break;case"n":if(X||Q[q+2]==='"'||Q.length<z)q+=1;else{H+=Q.slice(U,q)+`
5
+ `+Q$(Q,Z):($.endsWith(" ")?"":" ")+Q;q3.indentComment=Q$;q3.lineComment=U3;q3.stringifyComment=H3});var q6=M((_3)=>{function V3($,Z,Q="flow",{indentAtStart:X,lineWidth:z=80,minContentWidth:J=20,onFold:H,onOverflow:U}={}){if(!z||z<0)return $;if(z<J)J=0;let q=Math.max(1+J,1+z-Z.length);if($.length<=q)return $;let Y=[],B={},G=z-Z.length;if(typeof X==="number")if(X>z-Math.max(2,J))Y.push(0);else G=z-X;let V=void 0,W=void 0,D=!1,_=-1,O=-1,I=-1;if(Q==="block"){if(_=U6($,_,Z.length),_!==-1)G=_+q}for(let N;N=$[_+=1];){if(Q==="quoted"&&N==="\\"){switch(O=_,$[_+1]){case"x":_+=3;break;case"u":_+=5;break;case"U":_+=9;break;default:_+=1}I=_}if(N===`
6
+ `){if(Q==="block")_=U6($,_,Z.length);G=_+Z.length+q,V=void 0}else{if(N===" "&&W&&W!==" "&&W!==`
7
+ `&&W!=="\t"){let A=$[_+1];if(A&&A!==" "&&A!==`
8
+ `&&A!=="\t")V=_}if(_>=G)if(V)Y.push(V),G=V+q,V=void 0;else if(Q==="quoted"){while(W===" "||W==="\t")W=N,N=$[_+=1],D=!0;let A=_>I+1?_-2:O-1;if(B[A])return $;Y.push(A),B[A]=!0,G=A+q,V=void 0}else D=!0}W=N}if(D&&U)U();if(Y.length===0)return $;if(H)H();let L=$.slice(0,Y[0]);for(let N=0;N<Y.length;++N){let A=Y[N],T=Y[N+1]||$.length;if(A===0)L=`
9
+ ${Z}${$.slice(0,T)}`;else{if(Q==="quoted"&&B[A])L+=`${$[A]}\\`;L+=`
10
+ ${Z}${$.slice(A+1,T)}`}}return L}function U6($,Z,Q){let X=Z,z=Z+1,J=$[z];while(J===" "||J==="\t")if(Z<z+Q)J=$[++Z];else{do J=$[++Z];while(J&&J!==`
11
+ `);X=Z,z=Z+1,J=$[z]}return X}_3.FOLD_BLOCK="block";_3.FOLD_FLOW="flow";_3.FOLD_QUOTED="quoted";_3.foldFlowLines=V3});var U1=M((R3)=>{var c=x(),U0=q6(),n1=($,Z)=>({indentAtStart:Z?$.indent.length:$.indentAtStart,lineWidth:$.options.lineWidth,minContentWidth:$.options.minContentWidth}),o1=($)=>/^(%|---|\.\.\.)/m.test($);function K3($,Z,Q){if(!Z||Z<0)return!1;let X=Z-Q,z=$.length;if(z<=X)return!1;for(let J=0,H=0;J<z;++J)if($[J]===`
12
+ `){if(J-H>X)return!0;if(H=J+1,z-H<=X)return!1}return!0}function H1($,Z){let Q=JSON.stringify($);if(Z.options.doubleQuotedAsJSON)return Q;let{implicitKey:X}=Z,z=Z.options.doubleQuotedMinMultiLineLength,J=Z.indent||(o1($)?" ":""),H="",U=0;for(let q=0,Y=Q[q];Y;Y=Q[++q]){if(Y===" "&&Q[q+1]==="\\"&&Q[q+2]==="n")H+=Q.slice(U,q)+"\\ ",q+=1,U=q,Y="\\";if(Y==="\\")switch(Q[q+1]){case"u":{H+=Q.slice(U,q);let B=Q.substr(q+2,4);switch(B){case"0000":H+="\\0";break;case"0007":H+="\\a";break;case"000b":H+="\\v";break;case"001b":H+="\\e";break;case"0085":H+="\\N";break;case"00a0":H+="\\_";break;case"2028":H+="\\L";break;case"2029":H+="\\P";break;default:if(B.substr(0,2)==="00")H+="\\x"+B.substr(2);else H+=Q.substr(q,6)}q+=5,U=q+1}break;case"n":if(X||Q[q+2]==='"'||Q.length<z)q+=1;else{H+=Q.slice(U,q)+`
13
13
 
14
14
  `;while(Q[q+2]==="\\"&&Q[q+3]==="n"&&Q[q+4]!=='"')H+=`
15
- `,q+=2;if(H+=J,Q[q+2]===" ")H+="\\";q+=1,U=q+1}break;default:q+=1}}return H=U?H+Q.slice(U):Q,X?H:U0.foldFlowLines(H,J,U0.FOLD_QUOTED,n1(Z,!1))}function $$($,Z){if(Z.options.singleQuote===!1||Z.implicitKey&&$.includes(`
16
- `)||/[ \t]\n|\n[ \t]/.test($))return J1($,Z);let Q=Z.indent||(o1($)?" ":""),X="'"+$.replace(/'/g,"''").replace(/\n+/g,`$&
17
- ${Q}`)+"'";return Z.implicitKey?X:U0.foldFlowLines(X,Q,U0.FOLD_FLOW,n1(Z,!1))}function h0($,Z){let{singleQuote:Q}=Z.options,X;if(Q===!1)X=J1;else{let z=$.includes('"'),J=$.includes("'");if(z&&!J)X=$$;else if(J&&!z)X=J1;else X=Q?$$:J1}return X($,Z)}var Z$;try{Z$=new RegExp(`(^|(?<!
15
+ `,q+=2;if(H+=J,Q[q+2]===" ")H+="\\";q+=1,U=q+1}break;default:q+=1}}return H=U?H+Q.slice(U):Q,X?H:U0.foldFlowLines(H,J,U0.FOLD_QUOTED,n1(Z,!1))}function X$($,Z){if(Z.options.singleQuote===!1||Z.implicitKey&&$.includes(`
16
+ `)||/[ \t]\n|\n[ \t]/.test($))return H1($,Z);let Q=Z.indent||(o1($)?" ":""),X="'"+$.replace(/'/g,"''").replace(/\n+/g,`$&
17
+ ${Q}`)+"'";return Z.implicitKey?X:U0.foldFlowLines(X,Q,U0.FOLD_FLOW,n1(Z,!1))}function h0($,Z){let{singleQuote:Q}=Z.options,X;if(Q===!1)X=H1;else{let z=$.includes('"'),J=$.includes("'");if(z&&!J)X=X$;else if(J&&!z)X=H1;else X=Q?X$:H1}return X($,Z)}var z$;try{z$=new RegExp(`(^|(?<!
18
18
  ))
19
19
  +(?!
20
- |$)`,"g")}catch{Z$=/\n+(?!\n|$)/g}function s1({comment:$,type:Z,value:Q},X,z,J){let{blockQuote:H,commentString:U,lineWidth:q}=X.options;if(!H||/\n[\t ]+$/.test(Q))return h0(Q,X);let Y=X.indent||(X.forceBlockIndent||o1(Q)?" ":""),_=H==="literal"?!0:H==="folded"||Z===c.Scalar.BLOCK_FOLDED?!1:Z===c.Scalar.BLOCK_LITERAL?!0:!z5(Q,q,Y.length);if(!Q)return _?`|
20
+ |$)`,"g")}catch{z$=/\n+(?!\n|$)/g}function s1({comment:$,type:Z,value:Q},X,z,J){let{blockQuote:H,commentString:U,lineWidth:q}=X.options;if(!H||/\n[\t ]+$/.test(Q))return h0(Q,X);let Y=X.indent||(X.forceBlockIndent||o1(Q)?" ":""),B=H==="literal"?!0:H==="folded"||Z===c.Scalar.BLOCK_FOLDED?!1:Z===c.Scalar.BLOCK_LITERAL?!0:!K3(Q,q,Y.length);if(!Q)return B?`|
21
21
  `:`>
22
- `;let B,G;for(G=Q.length;G>0;--G){let T=Q[G-1];if(T!==`
23
- `&&T!=="\t"&&T!==" ")break}let O=Q.substring(G),D=O.indexOf(`
24
- `);if(D===-1)B="-";else if(Q===O||D!==O.length-1){if(B="+",J)J()}else B="";if(O){if(Q=Q.slice(0,-O.length),O[O.length-1]===`
25
- `)O=O.slice(0,-1);O=O.replace(Z$,`$&${Y}`)}let V=!1,W,I=-1;for(W=0;W<Q.length;++W){let T=Q[W];if(T===" ")V=!0;else if(T===`
26
- `)I=W;else break}let L=Q.substring(0,I<W?I+1:W);if(L)Q=Q.substring(L.length),L=L.replace(/\n+/g,`$&${Y}`);let N=(V?Y?"2":"1":"")+B;if($){if(N+=" "+U($.replace(/ ?[\r\n]+/g," ")),z)z()}if(!_){let T=Q.replace(/\n+/g,`
27
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${Y}`),P=!1,C=n1(X,!0);if(H!=="folded"&&Z!==c.Scalar.BLOCK_FOLDED)C.onOverflow=()=>{P=!0};let K=U0.foldFlowLines(`${L}${T}${O}`,Y,U0.FOLD_BLOCK,C);if(!P)return`>${N}
28
- ${Y}${K}`}return Q=Q.replace(/\n+/g,`$&${Y}`),`|${N}
29
- ${Y}${L}${Q}${O}`}function J5($,Z,Q,X){let{type:z,value:J}=$,{actualString:H,implicitKey:U,indent:q,indentStep:Y,inFlow:_}=Z;if(U&&J.includes(`
30
- `)||_&&/[[\]{},]/.test(J))return h0(J,Z);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(J))return U||_||!J.includes(`
31
- `)?h0(J,Z):s1($,Z,Q,X);if(!U&&!_&&z!==c.Scalar.PLAIN&&J.includes(`
32
- `))return s1($,Z,Q,X);if(o1(J)){if(q==="")return Z.forceBlockIndent=!0,s1($,Z,Q,X);else if(U&&q===Y)return h0(J,Z)}let B=J.replace(/\n+/g,`$&
33
- ${q}`);if(H){let G=(V)=>V.default&&V.tag!=="tag:yaml.org,2002:str"&&V.test?.test(B),{compat:O,tags:D}=Z.doc.schema;if(D.some(G)||O?.some(G))return h0(J,Z)}return U?B:U0.foldFlowLines(B,q,U0.FOLD_FLOW,n1(Z,!1))}function H5($,Z,Q,X){let{implicitKey:z,inFlow:J}=Z,H=typeof $.value==="string"?$:Object.assign({},$,{value:String($.value)}),{type:U}=$;if(U!==c.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(H.value))U=c.Scalar.QUOTE_DOUBLE}let q=(_)=>{switch(_){case c.Scalar.BLOCK_FOLDED:case c.Scalar.BLOCK_LITERAL:return z||J?h0(H.value,Z):s1(H,Z,Q,X);case c.Scalar.QUOTE_DOUBLE:return J1(H.value,Z);case c.Scalar.QUOTE_SINGLE:return $$(H.value,Z);case c.Scalar.PLAIN:return J5(H,Z,Q,X);default:return null}},Y=q(U);if(Y===null){let{defaultKeyType:_,defaultStringType:B}=Z.options,G=z&&_||B;if(Y=q(G),Y===null)throw Error(`Unsupported default string type ${G}`)}return Y}U5.stringifyString=H5});var U1=M((D5)=>{var Y5=c1(),q0=b(),_5=z1(),B5=H1();function G5($,Z){let Q=Object.assign({blockQuote:!0,commentString:_5.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,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},$.schema.toStringOptions,Z),X;switch(Q.collectionStyle){case"block":X=!1;break;case"flow":X=!0;break;default:X=null}return{anchors:new Set,doc:$,flowCollectionPadding:Q.flowCollectionPadding?" ":"",indent:"",indentStep:typeof Q.indent==="number"?" ".repeat(Q.indent):" ",inFlow:X,options:Q}}function V5($,Z){if(Z.tag){let z=$.filter((J)=>J.tag===Z.tag);if(z.length>0)return z.find((J)=>J.format===Z.format)??z[0]}let Q=void 0,X;if(q0.isScalar(Z)){X=Z.value;let z=$.filter((J)=>J.identify?.(X));if(z.length>1){let J=z.filter((H)=>H.test);if(J.length>0)z=J}Q=z.find((J)=>J.format===Z.format)??z.find((J)=>!J.format)}else X=Z,Q=$.find((z)=>z.nodeClass&&X instanceof z.nodeClass);if(!Q){let z=X?.constructor?.name??(X===null?"null":typeof X);throw Error(`Tag not resolved for ${z} value`)}return Q}function O5($,Z,{anchors:Q,doc:X}){if(!X.directives)return"";let z=[],J=(q0.isScalar($)||q0.isCollection($))&&$.anchor;if(J&&Y5.anchorIsValid(J))Q.add(J),z.push(`&${J}`);let H=$.tag??(Z.default?null:Z.tag);if(H)z.push(X.directives.tagString(H));return z.join(" ")}function W5($,Z,Q,X){if(q0.isPair($))return $.toString(Z,Q,X);if(q0.isAlias($)){if(Z.doc.directives)return $.toString(Z);if(Z.resolvedAliases?.has($))throw TypeError("Cannot stringify circular structure without alias nodes");else{if(Z.resolvedAliases)Z.resolvedAliases.add($);else Z.resolvedAliases=new Set([$]);$=$.resolve(Z.doc)}}let z=void 0,J=q0.isNode($)?$:Z.doc.createNode($,{onTagObj:(q)=>z=q});z??(z=V5(Z.doc.schema.tags,J));let H=O5(J,z,Z);if(H.length>0)Z.indentAtStart=(Z.indentAtStart??0)+H.length+1;let U=typeof z.stringify==="function"?z.stringify(J,Z,Q,X):q0.isScalar(J)?B5.stringifyString(J,Z,Q,X):J.toString(Z,Q,X);if(!H)return U;return q0.isScalar(J)||U[0]==="{"||U[0]==="["?`${H} ${U}`:`${H}
34
- ${Z.indent}${U}`}D5.createStringifyContext=G5;D5.stringify=W5});var Q3=M((M5)=>{var Q0=b(),$3=x(),Z3=U1(),q1=z1();function L5({key:$,value:Z},Q,X,z){let{allNullValues:J,doc:H,indent:U,indentStep:q,options:{commentString:Y,indentSeq:_,simpleKeys:B}}=Q,G=Q0.isNode($)&&$.comment||null;if(B){if(G)throw Error("With simple keys, key nodes cannot have comments");if(Q0.isCollection($)||!Q0.isNode($)&&typeof $==="object")throw Error("With simple keys, collection cannot be used as a key value")}let O=!B&&(!$||G&&Z==null&&!Q.inFlow||Q0.isCollection($)||(Q0.isScalar($)?$.type===$3.Scalar.BLOCK_FOLDED||$.type===$3.Scalar.BLOCK_LITERAL:typeof $==="object"));Q=Object.assign({},Q,{allNullValues:!1,implicitKey:!O&&(B||!J),indent:U+q});let D=!1,V=!1,W=Z3.stringify($,Q,()=>D=!0,()=>V=!0);if(!O&&!Q.inFlow&&W.length>1024){if(B)throw Error("With simple keys, single line scalar must not span more than 1024 characters");O=!0}if(Q.inFlow){if(J||Z==null){if(D&&X)X();return W===""?"?":O?`? ${W}`:W}}else if(J&&!B||Z==null&&O){if(W=`? ${W}`,G&&!D)W+=q1.lineComment(W,Q.indent,Y(G));else if(V&&z)z();return W}if(D)G=null;if(O){if(G)W+=q1.lineComment(W,Q.indent,Y(G));W=`? ${W}
35
- ${U}:`}else if(W=`${W}:`,G)W+=q1.lineComment(W,Q.indent,Y(G));let I,L,A;if(Q0.isNode(Z))I=!!Z.spaceBefore,L=Z.commentBefore,A=Z.comment;else if(I=!1,L=null,A=null,Z&&typeof Z==="object")Z=H.createNode(Z);if(Q.implicitKey=!1,!O&&!G&&Q0.isScalar(Z))Q.indentAtStart=W.length+1;if(V=!1,!_&&q.length>=2&&!Q.inFlow&&!O&&Q0.isSeq(Z)&&!Z.flow&&!Z.tag&&!Z.anchor)Q.indent=Q.indent.substring(2);let N=!1,T=Z3.stringify(Z,Q,()=>N=!0,()=>V=!0),P=" ";if(G||I||L){if(P=I?`
36
- `:"",L){let C=Y(L);P+=`
37
- ${q1.indentComment(C,Q.indent)}`}if(T===""&&!Q.inFlow){if(P===`
38
- `&&A)P=`
22
+ `;let G,V;for(V=Q.length;V>0;--V){let T=Q[V-1];if(T!==`
23
+ `&&T!=="\t"&&T!==" ")break}let W=Q.substring(V),D=W.indexOf(`
24
+ `);if(D===-1)G="-";else if(Q===W||D!==W.length-1){if(G="+",J)J()}else G="";if(W){if(Q=Q.slice(0,-W.length),W[W.length-1]===`
25
+ `)W=W.slice(0,-1);W=W.replace(z$,`$&${Y}`)}let _=!1,O,I=-1;for(O=0;O<Q.length;++O){let T=Q[O];if(T===" ")_=!0;else if(T===`
26
+ `)I=O;else break}let L=Q.substring(0,I<O?I+1:O);if(L)Q=Q.substring(L.length),L=L.replace(/\n+/g,`$&${Y}`);let A=(_?Y?"2":"1":"")+G;if($){if(A+=" "+U($.replace(/ ?[\r\n]+/g," ")),z)z()}if(!B){let T=Q.replace(/\n+/g,`
27
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${Y}`),P=!1,w=n1(X,!0);if(H!=="folded"&&Z!==c.Scalar.BLOCK_FOLDED)w.onOverflow=()=>{P=!0};let K=U0.foldFlowLines(`${L}${T}${W}`,Y,U0.FOLD_BLOCK,w);if(!P)return`>${A}
28
+ ${Y}${K}`}return Q=Q.replace(/\n+/g,`$&${Y}`),`|${A}
29
+ ${Y}${L}${Q}${W}`}function L3($,Z,Q,X){let{type:z,value:J}=$,{actualString:H,implicitKey:U,indent:q,indentStep:Y,inFlow:B}=Z;if(U&&J.includes(`
30
+ `)||B&&/[[\]{},]/.test(J))return h0(J,Z);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(J))return U||B||!J.includes(`
31
+ `)?h0(J,Z):s1($,Z,Q,X);if(!U&&!B&&z!==c.Scalar.PLAIN&&J.includes(`
32
+ `))return s1($,Z,Q,X);if(o1(J)){if(q==="")return Z.forceBlockIndent=!0,s1($,Z,Q,X);else if(U&&q===Y)return h0(J,Z)}let G=J.replace(/\n+/g,`$&
33
+ ${q}`);if(H){let V=(_)=>_.default&&_.tag!=="tag:yaml.org,2002:str"&&_.test?.test(G),{compat:W,tags:D}=Z.doc.schema;if(D.some(V)||W?.some(V))return h0(J,Z)}return U?G:U0.foldFlowLines(G,q,U0.FOLD_FLOW,n1(Z,!1))}function M3($,Z,Q,X){let{implicitKey:z,inFlow:J}=Z,H=typeof $.value==="string"?$:Object.assign({},$,{value:String($.value)}),{type:U}=$;if(U!==c.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(H.value))U=c.Scalar.QUOTE_DOUBLE}let q=(B)=>{switch(B){case c.Scalar.BLOCK_FOLDED:case c.Scalar.BLOCK_LITERAL:return z||J?h0(H.value,Z):s1(H,Z,Q,X);case c.Scalar.QUOTE_DOUBLE:return H1(H.value,Z);case c.Scalar.QUOTE_SINGLE:return X$(H.value,Z);case c.Scalar.PLAIN:return L3(H,Z,Q,X);default:return null}},Y=q(U);if(Y===null){let{defaultKeyType:B,defaultStringType:G}=Z.options,V=z&&B||G;if(Y=q(V),Y===null)throw Error(`Unsupported default string type ${V}`)}return Y}R3.stringifyString=M3});var q1=M((E3)=>{var N3=c1(),q0=b(),A3=J1(),P3=U1();function T3($,Z){let Q=Object.assign({blockQuote:!0,commentString:A3.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,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},$.schema.toStringOptions,Z),X;switch(Q.collectionStyle){case"block":X=!1;break;case"flow":X=!0;break;default:X=null}return{anchors:new Set,doc:$,flowCollectionPadding:Q.flowCollectionPadding?" ":"",indent:"",indentStep:typeof Q.indent==="number"?" ".repeat(Q.indent):" ",inFlow:X,options:Q}}function C3($,Z){if(Z.tag){let z=$.filter((J)=>J.tag===Z.tag);if(z.length>0)return z.find((J)=>J.format===Z.format)??z[0]}let Q=void 0,X;if(q0.isScalar(Z)){X=Z.value;let z=$.filter((J)=>J.identify?.(X));if(z.length>1){let J=z.filter((H)=>H.test);if(J.length>0)z=J}Q=z.find((J)=>J.format===Z.format)??z.find((J)=>!J.format)}else X=Z,Q=$.find((z)=>z.nodeClass&&X instanceof z.nodeClass);if(!Q){let z=X?.constructor?.name??(X===null?"null":typeof X);throw Error(`Tag not resolved for ${z} value`)}return Q}function w3($,Z,{anchors:Q,doc:X}){if(!X.directives)return"";let z=[],J=(q0.isScalar($)||q0.isCollection($))&&$.anchor;if(J&&N3.anchorIsValid(J))Q.add(J),z.push(`&${J}`);let H=$.tag??(Z.default?null:Z.tag);if(H)z.push(X.directives.tagString(H));return z.join(" ")}function b3($,Z,Q,X){if(q0.isPair($))return $.toString(Z,Q,X);if(q0.isAlias($)){if(Z.doc.directives)return $.toString(Z);if(Z.resolvedAliases?.has($))throw TypeError("Cannot stringify circular structure without alias nodes");else{if(Z.resolvedAliases)Z.resolvedAliases.add($);else Z.resolvedAliases=new Set([$]);$=$.resolve(Z.doc)}}let z=void 0,J=q0.isNode($)?$:Z.doc.createNode($,{onTagObj:(q)=>z=q});z??(z=C3(Z.doc.schema.tags,J));let H=w3(J,z,Z);if(H.length>0)Z.indentAtStart=(Z.indentAtStart??0)+H.length+1;let U=typeof z.stringify==="function"?z.stringify(J,Z,Q,X):q0.isScalar(J)?P3.stringifyString(J,Z,Q,X):J.toString(Z,Q,X);if(!H)return U;return q0.isScalar(J)||U[0]==="{"||U[0]==="["?`${H} ${U}`:`${H}
34
+ ${Z.indent}${U}`}E3.createStringifyContext=T3;E3.stringify=b3});var G6=M((x3)=>{var X0=b(),Y6=x(),B6=q1(),Y1=J1();function g3({key:$,value:Z},Q,X,z){let{allNullValues:J,doc:H,indent:U,indentStep:q,options:{commentString:Y,indentSeq:B,simpleKeys:G}}=Q,V=X0.isNode($)&&$.comment||null;if(G){if(V)throw Error("With simple keys, key nodes cannot have comments");if(X0.isCollection($)||!X0.isNode($)&&typeof $==="object")throw Error("With simple keys, collection cannot be used as a key value")}let W=!G&&(!$||V&&Z==null&&!Q.inFlow||X0.isCollection($)||(X0.isScalar($)?$.type===Y6.Scalar.BLOCK_FOLDED||$.type===Y6.Scalar.BLOCK_LITERAL:typeof $==="object"));Q=Object.assign({},Q,{allNullValues:!1,implicitKey:!W&&(G||!J),indent:U+q});let D=!1,_=!1,O=B6.stringify($,Q,()=>D=!0,()=>_=!0);if(!W&&!Q.inFlow&&O.length>1024){if(G)throw Error("With simple keys, single line scalar must not span more than 1024 characters");W=!0}if(Q.inFlow){if(J||Z==null){if(D&&X)X();return O===""?"?":W?`? ${O}`:O}}else if(J&&!G||Z==null&&W){if(O=`? ${O}`,V&&!D)O+=Y1.lineComment(O,Q.indent,Y(V));else if(_&&z)z();return O}if(D)V=null;if(W){if(V)O+=Y1.lineComment(O,Q.indent,Y(V));O=`? ${O}
35
+ ${U}:`}else if(O=`${O}:`,V)O+=Y1.lineComment(O,Q.indent,Y(V));let I,L,N;if(X0.isNode(Z))I=!!Z.spaceBefore,L=Z.commentBefore,N=Z.comment;else if(I=!1,L=null,N=null,Z&&typeof Z==="object")Z=H.createNode(Z);if(Q.implicitKey=!1,!W&&!V&&X0.isScalar(Z))Q.indentAtStart=O.length+1;if(_=!1,!B&&q.length>=2&&!Q.inFlow&&!W&&X0.isSeq(Z)&&!Z.flow&&!Z.tag&&!Z.anchor)Q.indent=Q.indent.substring(2);let A=!1,T=B6.stringify(Z,Q,()=>A=!0,()=>_=!0),P=" ";if(V||I||L){if(P=I?`
36
+ `:"",L){let w=Y(L);P+=`
37
+ ${Y1.indentComment(w,Q.indent)}`}if(T===""&&!Q.inFlow){if(P===`
38
+ `&&N)P=`
39
39
 
40
40
  `}else P+=`
41
- ${Q.indent}`}else if(!O&&Q0.isCollection(Z)){let C=T[0],K=T.indexOf(`
42
- `),w=K!==-1,v=Q.inFlow??Z.flow??Z.items.length===0;if(w||!v){let m=!1;if(w&&(C==="&"||C==="!")){let S=T.indexOf(" ");if(C==="&"&&S!==-1&&S<K&&T[S+1]==="!")S=T.indexOf(" ",S+1);if(S===-1||K<S)m=!0}if(!m)P=`
41
+ ${Q.indent}`}else if(!W&&X0.isCollection(Z)){let w=T[0],K=T.indexOf(`
42
+ `),C=K!==-1,u=Q.inFlow??Z.flow??Z.items.length===0;if(C||!u){let m=!1;if(C&&(w==="&"||w==="!")){let S=T.indexOf(" ");if(w==="&"&&S!==-1&&S<K&&T[S+1]==="!")S=T.indexOf(" ",S+1);if(S===-1||K<S)m=!0}if(!m)P=`
43
43
  ${Q.indent}`}}else if(T===""||T[0]===`
44
- `)P="";if(W+=P+T,Q.inFlow){if(N&&X)X()}else if(A&&!N)W+=q1.lineComment(W,Q.indent,Y(A));else if(V&&z)z();return W}M5.stringifyPair=L5});var Q$=M((N5)=>{var X3=s0("process");function F5($,...Z){if($==="debug")console.log(...Z)}function A5($,Z){if($==="debug"||$==="warn")if(typeof X3.emitWarning==="function")X3.emitWarning(Z);else console.warn(Z)}N5.debug=F5;N5.warn=A5});var $2=M((C5)=>{var Y1=b(),z3=x(),t1="<<",e1={identify:($)=>$===t1||typeof $==="symbol"&&$.description===t1,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new z3.Scalar(Symbol(t1)),{addToJSMap:J3}),stringify:()=>t1},w5=($,Z)=>(e1.identify(Z)||Y1.isScalar(Z)&&(!Z.type||Z.type===z3.Scalar.PLAIN)&&e1.identify(Z.value))&&$?.doc.schema.tags.some((Q)=>Q.tag===e1.tag&&Q.default);function J3($,Z,Q){if(Q=$&&Y1.isAlias(Q)?Q.resolve($.doc):Q,Y1.isSeq(Q))for(let X of Q.items)X$($,Z,X);else if(Array.isArray(Q))for(let X of Q)X$($,Z,X);else X$($,Z,Q)}function X$($,Z,Q){let X=$&&Y1.isAlias(Q)?Q.resolve($.doc):Q;if(!Y1.isMap(X))throw Error("Merge sources must be maps or map aliases");let z=X.toJSON(null,$,Map);for(let[J,H]of z)if(Z instanceof Map){if(!Z.has(J))Z.set(J,H)}else if(Z instanceof Set)Z.add(J);else if(!Object.prototype.hasOwnProperty.call(Z,J))Object.defineProperty(Z,J,{value:H,writable:!0,enumerable:!0,configurable:!0});return Z}C5.addMergeToJSMap=J3;C5.isMergeKey=w5;C5.merge=e1});var J$=M((y5)=>{var j5=Q$(),H3=$2(),g5=U1(),U3=b(),z$=H0();function x5($,Z,{key:Q,value:X}){if(U3.isNode(Q)&&Q.addToJSMap)Q.addToJSMap($,Z,X);else if(H3.isMergeKey($,Q))H3.addMergeToJSMap($,Z,X);else{let z=z$.toJS(Q,"",$);if(Z instanceof Map)Z.set(z,z$.toJS(X,z,$));else if(Z instanceof Set)Z.add(z);else{let J=h5(Q,z,$),H=z$.toJS(X,J,$);if(J in Z)Object.defineProperty(Z,J,{value:H,writable:!0,enumerable:!0,configurable:!0});else Z[J]=H}}return Z}function h5($,Z,Q){if(Z===null)return"";if(typeof Z!=="object")return String(Z);if(U3.isNode($)&&Q?.doc){let X=g5.createStringifyContext(Q.doc,{});X.anchors=new Set;for(let J of Q.anchors.keys())X.anchors.add(J.anchor);X.inFlow=!0,X.inStringifyKey=!0;let z=$.toString(X);if(!Q.mapKeyWarned){let J=JSON.stringify(z);if(J.length>40)J=J.substring(0,36)+'..."';j5.warn(Q.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${J}. Set mapAsMap: true to use object keys.`),Q.mapKeyWarned=!0}return z}return JSON.stringify(Z)}y5.addPairToJSMap=x5});var Y0=M((m5)=>{var q3=X1(),u5=Q3(),k5=J$(),Z2=b();function v5($,Z,Q){let X=q3.createNode($,void 0,Q),z=q3.createNode(Z,void 0,Q);return new Q2(X,z)}class Q2{constructor($,Z=null){Object.defineProperty(this,Z2.NODE_TYPE,{value:Z2.PAIR}),this.key=$,this.value=Z}clone($){let{key:Z,value:Q}=this;if(Z2.isNode(Z))Z=Z.clone($);if(Z2.isNode(Q))Q=Q.clone($);return new Q2(Z,Q)}toJSON($,Z){let Q=Z?.mapAsMap?new Map:{};return k5.addPairToJSMap(Z,Q,this)}toString($,Z,Q){return $?.doc?u5.stringifyPair(this,$,Z,Q):JSON.stringify(this)}}m5.Pair=Q2;m5.createPair=v5});var H$=M((a5)=>{var L0=b(),Y3=U1(),X2=z1();function d5($,Z,Q){return(Z.inFlow??$.flow?i5:c5)($,Z,Q)}function c5({comment:$,items:Z},Q,{blockItemPrefix:X,flowChars:z,itemIndent:J,onChompKeep:H,onComment:U}){let{indent:q,options:{commentString:Y}}=Q,_=Object.assign({},Q,{indent:J,type:null}),B=!1,G=[];for(let D=0;D<Z.length;++D){let V=Z[D],W=null;if(L0.isNode(V)){if(!B&&V.spaceBefore)G.push("");if(z2(Q,G,V.commentBefore,B),V.comment)W=V.comment}else if(L0.isPair(V)){let L=L0.isNode(V.key)?V.key:null;if(L){if(!B&&L.spaceBefore)G.push("");z2(Q,G,L.commentBefore,B)}}B=!1;let I=Y3.stringify(V,_,()=>W=null,()=>B=!0);if(W)I+=X2.lineComment(I,J,Y(W));if(B&&W)B=!1;G.push(X+I)}let O;if(G.length===0)O=z.start+z.end;else{O=G[0];for(let D=1;D<G.length;++D){let V=G[D];O+=V?`
45
- ${q}${V}`:`
46
- `}}if($){if(O+=`
47
- `+X2.indentComment(Y($),q),U)U()}else if(B&&H)H();return O}function i5({items:$},Z,{flowChars:Q,itemIndent:X}){let{indent:z,indentStep:J,flowCollectionPadding:H,options:{commentString:U}}=Z;X+=J;let q=Object.assign({},Z,{indent:X,inFlow:!0,type:null}),Y=!1,_=0,B=[];for(let D=0;D<$.length;++D){let V=$[D],W=null;if(L0.isNode(V)){if(V.spaceBefore)B.push("");if(z2(Z,B,V.commentBefore,!1),V.comment)W=V.comment}else if(L0.isPair(V)){let L=L0.isNode(V.key)?V.key:null;if(L){if(L.spaceBefore)B.push("");if(z2(Z,B,L.commentBefore,!1),L.comment)Y=!0}let A=L0.isNode(V.value)?V.value:null;if(A){if(A.comment)W=A.comment;if(A.commentBefore)Y=!0}else if(V.value==null&&L?.comment)W=L.comment}if(W)Y=!0;let I=Y3.stringify(V,q,()=>W=null);if(Y||(Y=B.length>_||I.includes(`
48
- `)),D<$.length-1)I+=",";else if(Z.options.trailingComma){if(Z.options.lineWidth>0)Y||(Y=B.reduce((L,A)=>L+A.length+2,2)+(I.length+2)>Z.options.lineWidth);if(Y)I+=","}if(W)I+=X2.lineComment(I,X,U(W));B.push(I),_=B.length}let{start:G,end:O}=Q;if(B.length===0)return G+O;else{if(!Y){let D=B.reduce((V,W)=>V+W.length+2,2);Y=Z.options.lineWidth>0&&D>Z.options.lineWidth}if(Y){let D=G;for(let V of B)D+=V?`
49
- ${J}${z}${V}`:`
44
+ `)P="";if(O+=P+T,Q.inFlow){if(A&&X)X()}else if(N&&!A)O+=Y1.lineComment(O,Q.indent,Y(N));else if(_&&z)z();return O}x3.stringifyPair=g3});var J$=M((k3)=>{var V6=n0("process");function y3($,...Z){if($==="debug")console.log(...Z)}function f3($,Z){if($==="debug"||$==="warn")if(typeof V6.emitWarning==="function")V6.emitWarning(Z);else console.warn(Z)}k3.debug=y3;k3.warn=f3});var Z2=M((l3)=>{var $2=b(),_6=x(),t1="<<",e1={identify:($)=>$===t1||typeof $==="symbol"&&$.description===t1,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new _6.Scalar(Symbol(t1)),{addToJSMap:W6}),stringify:()=>t1},m3=($,Z)=>(e1.identify(Z)||$2.isScalar(Z)&&(!Z.type||Z.type===_6.Scalar.PLAIN)&&e1.identify(Z.value))&&$?.doc.schema.tags.some((Q)=>Q.tag===e1.tag&&Q.default);function W6($,Z,Q){let X=O6($,Q);if($2.isSeq(X))for(let z of X.items)H$($,Z,z);else if(Array.isArray(X))for(let z of X)H$($,Z,z);else H$($,Z,X)}function H$($,Z,Q){let X=O6($,Q);if(!$2.isMap(X))throw Error("Merge sources must be maps or map aliases");let z=X.toJSON(null,$,Map);for(let[J,H]of z)if(Z instanceof Map){if(!Z.has(J))Z.set(J,H)}else if(Z instanceof Set)Z.add(J);else if(!Object.prototype.hasOwnProperty.call(Z,J))Object.defineProperty(Z,J,{value:H,writable:!0,enumerable:!0,configurable:!0});return Z}function O6($,Z){return $&&$2.isAlias(Z)?Z.resolve($.doc,$):Z}l3.addMergeToJSMap=W6;l3.isMergeKey=m3;l3.merge=e1});var q$=M((n3)=>{var i3=J$(),D6=Z2(),r3=q1(),I6=b(),U$=H0();function a3($,Z,{key:Q,value:X}){if(I6.isNode(Q)&&Q.addToJSMap)Q.addToJSMap($,Z,X);else if(D6.isMergeKey($,Q))D6.addMergeToJSMap($,Z,X);else{let z=U$.toJS(Q,"",$);if(Z instanceof Map)Z.set(z,U$.toJS(X,z,$));else if(Z instanceof Set)Z.add(z);else{let J=s3(Q,z,$),H=U$.toJS(X,J,$);if(J in Z)Object.defineProperty(Z,J,{value:H,writable:!0,enumerable:!0,configurable:!0});else Z[J]=H}}return Z}function s3($,Z,Q){if(Z===null)return"";if(typeof Z!=="object")return String(Z);if(I6.isNode($)&&Q?.doc){let X=r3.createStringifyContext(Q.doc,{});X.anchors=new Set;for(let J of Q.anchors.keys())X.anchors.add(J.anchor);X.inFlow=!0,X.inStringifyKey=!0;let z=$.toString(X);if(!Q.mapKeyWarned){let J=JSON.stringify(z);if(J.length>40)J=J.substring(0,36)+'..."';i3.warn(Q.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${J}. Set mapAsMap: true to use object keys.`),Q.mapKeyWarned=!0}return z}return JSON.stringify(Z)}n3.addPairToJSMap=a3});var Y0=M((Z7)=>{var K6=z1(),t3=G6(),e3=q$(),Q2=b();function $7($,Z,Q){let X=K6.createNode($,void 0,Q),z=K6.createNode(Z,void 0,Q);return new X2(X,z)}class X2{constructor($,Z=null){Object.defineProperty(this,Q2.NODE_TYPE,{value:Q2.PAIR}),this.key=$,this.value=Z}clone($){let{key:Z,value:Q}=this;if(Q2.isNode(Z))Z=Z.clone($);if(Q2.isNode(Q))Q=Q.clone($);return new X2(Z,Q)}toJSON($,Z){let Q=Z?.mapAsMap?new Map:{};return e3.addPairToJSMap(Z,Q,this)}toString($,Z,Q){return $?.doc?t3.stringifyPair(this,$,Z,Q):JSON.stringify(this)}}Z7.Pair=X2;Z7.createPair=$7});var Y$=M((U7)=>{var L0=b(),L6=q1(),z2=J1();function z7($,Z,Q){return(Z.inFlow??$.flow?H7:J7)($,Z,Q)}function J7({comment:$,items:Z},Q,{blockItemPrefix:X,flowChars:z,itemIndent:J,onChompKeep:H,onComment:U}){let{indent:q,options:{commentString:Y}}=Q,B=Object.assign({},Q,{indent:J,type:null}),G=!1,V=[];for(let D=0;D<Z.length;++D){let _=Z[D],O=null;if(L0.isNode(_)){if(!G&&_.spaceBefore)V.push("");if(J2(Q,V,_.commentBefore,G),_.comment)O=_.comment}else if(L0.isPair(_)){let L=L0.isNode(_.key)?_.key:null;if(L){if(!G&&L.spaceBefore)V.push("");J2(Q,V,L.commentBefore,G)}}G=!1;let I=L6.stringify(_,B,()=>O=null,()=>G=!0);if(O)I+=z2.lineComment(I,J,Y(O));if(G&&O)G=!1;V.push(X+I)}let W;if(V.length===0)W=z.start+z.end;else{W=V[0];for(let D=1;D<V.length;++D){let _=V[D];W+=_?`
45
+ ${q}${_}`:`
46
+ `}}if($){if(W+=`
47
+ `+z2.indentComment(Y($),q),U)U()}else if(G&&H)H();return W}function H7({items:$},Z,{flowChars:Q,itemIndent:X}){let{indent:z,indentStep:J,flowCollectionPadding:H,options:{commentString:U}}=Z;X+=J;let q=Object.assign({},Z,{indent:X,inFlow:!0,type:null}),Y=!1,B=0,G=[];for(let D=0;D<$.length;++D){let _=$[D],O=null;if(L0.isNode(_)){if(_.spaceBefore)G.push("");if(J2(Z,G,_.commentBefore,!1),_.comment)O=_.comment}else if(L0.isPair(_)){let L=L0.isNode(_.key)?_.key:null;if(L){if(L.spaceBefore)G.push("");if(J2(Z,G,L.commentBefore,!1),L.comment)Y=!0}let N=L0.isNode(_.value)?_.value:null;if(N){if(N.comment)O=N.comment;if(N.commentBefore)Y=!0}else if(_.value==null&&L?.comment)O=L.comment}if(O)Y=!0;let I=L6.stringify(_,q,()=>O=null);if(Y||(Y=G.length>B||I.includes(`
48
+ `)),D<$.length-1)I+=",";else if(Z.options.trailingComma){if(Z.options.lineWidth>0)Y||(Y=G.reduce((L,N)=>L+N.length+2,2)+(I.length+2)>Z.options.lineWidth);if(Y)I+=","}if(O)I+=z2.lineComment(I,X,U(O));G.push(I),B=G.length}let{start:V,end:W}=Q;if(G.length===0)return V+W;else{if(!Y){let D=G.reduce((_,O)=>_+O.length+2,2);Y=Z.options.lineWidth>0&&D>Z.options.lineWidth}if(Y){let D=V;for(let _ of G)D+=_?`
49
+ ${J}${z}${_}`:`
50
50
  `;return`${D}
51
- ${z}${O}`}else return`${G}${H}${B.join(" ")}${H}${O}`}}function z2({indent:$,options:{commentString:Z}},Q,X,z){if(X&&z)X=X.replace(/^\n+/,"");if(X){let J=X2.indentComment(Z(X),$);Q.push(J.trimStart())}}a5.stringifyCollection=d5});var B0=M((e5)=>{var s5=H$(),n5=J$(),o5=r1(),_0=b(),J2=Y0(),t5=x();function _1($,Z){let Q=_0.isScalar(Z)?Z.value:Z;for(let X of $)if(_0.isPair(X)){if(X.key===Z||X.key===Q)return X;if(_0.isScalar(X.key)&&X.key.value===Q)return X}return}class _3 extends o5.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor($){super(_0.MAP,$);this.items=[]}static from($,Z,Q){let{keepUndefined:X,replacer:z}=Q,J=new this($),H=(U,q)=>{if(typeof z==="function")q=z.call(Z,U,q);else if(Array.isArray(z)&&!z.includes(U))return;if(q!==void 0||X)J.items.push(J2.createPair(U,q,Q))};if(Z instanceof Map)for(let[U,q]of Z)H(U,q);else if(Z&&typeof Z==="object")for(let U of Object.keys(Z))H(U,Z[U]);if(typeof $.sortMapEntries==="function")J.items.sort($.sortMapEntries);return J}add($,Z){let Q;if(_0.isPair($))Q=$;else if(!$||typeof $!=="object"||!("key"in $))Q=new J2.Pair($,$?.value);else Q=new J2.Pair($.key,$.value);let X=_1(this.items,Q.key),z=this.schema?.sortMapEntries;if(X){if(!Z)throw Error(`Key ${Q.key} already set`);if(_0.isScalar(X.value)&&t5.isScalarValue(Q.value))X.value.value=Q.value;else X.value=Q.value}else if(z){let J=this.items.findIndex((H)=>z(Q,H)<0);if(J===-1)this.items.push(Q);else this.items.splice(J,0,Q)}else this.items.push(Q)}delete($){let Z=_1(this.items,$);if(!Z)return!1;return this.items.splice(this.items.indexOf(Z),1).length>0}get($,Z){let X=_1(this.items,$)?.value;return(!Z&&_0.isScalar(X)?X.value:X)??void 0}has($){return!!_1(this.items,$)}set($,Z){this.add(new J2.Pair($,Z),!0)}toJSON($,Z,Q){let X=Q?new Q:Z?.mapAsMap?new Map:{};if(Z?.onCreate)Z.onCreate(X);for(let z of this.items)n5.addPairToJSMap(Z,X,z);return X}toString($,Z,Q){if(!$)return JSON.stringify(this);for(let X of this.items)if(!_0.isPair(X))throw Error(`Map items must all be pairs; found ${JSON.stringify(X)} instead`);if(!$.allNullValues&&this.hasAllNullValues(!1))$=Object.assign({},$,{allNullValues:!0});return s5.stringifyCollection(this,$,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:$.indent||"",onChompKeep:Q,onComment:Z})}}e5.YAMLMap=_3;e5.findPair=_1});var y0=M((z7)=>{var Q7=b(),B3=B0(),X7={collection:"map",default:!0,nodeClass:B3.YAMLMap,tag:"tag:yaml.org,2002:map",resolve($,Z){if(!Q7.isMap($))Z("Expected a mapping for this tag");return $},createNode:($,Z,Q)=>B3.YAMLMap.from($,Z,Q)};z7.map=X7});var G0=M((B7)=>{var H7=X1(),U7=H$(),q7=r1(),U2=b(),Y7=x(),_7=H0();class G3 extends q7.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor($){super(U2.SEQ,$);this.items=[]}add($){this.items.push($)}delete($){let Z=H2($);if(typeof Z!=="number")return!1;return this.items.splice(Z,1).length>0}get($,Z){let Q=H2($);if(typeof Q!=="number")return;let X=this.items[Q];return!Z&&U2.isScalar(X)?X.value:X}has($){let Z=H2($);return typeof Z==="number"&&Z<this.items.length}set($,Z){let Q=H2($);if(typeof Q!=="number")throw Error(`Expected a valid index, not ${$}.`);let X=this.items[Q];if(U2.isScalar(X)&&Y7.isScalarValue(Z))X.value=Z;else this.items[Q]=Z}toJSON($,Z){let Q=[];if(Z?.onCreate)Z.onCreate(Q);let X=0;for(let z of this.items)Q.push(_7.toJS(z,String(X++),Z));return Q}toString($,Z,Q){if(!$)return JSON.stringify(this);return U7.stringifyCollection(this,$,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:($.indent||"")+" ",onChompKeep:Q,onComment:Z})}static from($,Z,Q){let{replacer:X}=Q,z=new this($);if(Z&&Symbol.iterator in Object(Z)){let J=0;for(let H of Z){if(typeof X==="function"){let U=Z instanceof Set?H:String(J++);H=X.call(Z,U,H)}z.items.push(H7.createNode(H,void 0,Q))}}return z}}function H2($){let Z=U2.isScalar($)?$.value:$;if(Z&&typeof Z==="string")Z=Number(Z);return typeof Z==="number"&&Number.isInteger(Z)&&Z>=0?Z:null}B7.YAMLSeq=G3});var f0=M((W7)=>{var V7=b(),V3=G0(),O7={collection:"seq",default:!0,nodeClass:V3.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve($,Z){if(!V7.isSeq($))Z("Expected a sequence for this tag");return $},createNode:($,Z,Q)=>V3.YAMLSeq.from($,Z,Q)};W7.seq=O7});var B1=M((L7)=>{var I7=H1(),K7={identify:($)=>typeof $==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:($)=>$,stringify($,Z,Q,X){return Z=Object.assign({actualString:!0},Z),I7.stringifyString($,Z,Q,X)}};L7.string=K7});var q2=M((R7)=>{var O3=x(),W3={identify:($)=>$==null,createNode:()=>new O3.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new O3.Scalar(null),stringify:({source:$},Z)=>typeof $==="string"&&W3.test.test($)?$:Z.options.nullStr};R7.nullTag=W3});var U$=M((N7)=>{var A7=x(),D3={identify:($)=>typeof $==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:($)=>new A7.Scalar($[0]==="t"||$[0]==="T"),stringify({source:$,value:Z},Q){if($&&D3.test.test($)){let X=$[0]==="t"||$[0]==="T";if(Z===X)return $}return Z?Q.options.trueStr:Q.options.falseStr}};N7.boolTag=D3});var u0=M((w7)=>{function T7({format:$,minFractionDigits:Z,tag:Q,value:X}){if(typeof X==="bigint")return String(X);let z=typeof X==="number"?X:Number(X);if(!isFinite(z))return isNaN(z)?".nan":z<0?"-.inf":".inf";let J=Object.is(X,-0)?"-0":JSON.stringify(X);if(!$&&Z&&(!Q||Q==="tag:yaml.org,2002:float")&&/^\d/.test(J)){let H=J.indexOf(".");if(H<0)H=J.length,J+=".";let U=Z-(J.length-H-1);while(U-- >0)J+="0"}return J}w7.stringifyNumber=T7});var Y$=M((g7)=>{var b7=x(),q$=u0(),E7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:($)=>$.slice(-3).toLowerCase()==="nan"?NaN:$[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:q$.stringifyNumber},S7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:($)=>parseFloat($),stringify($){let Z=Number($.value);return isFinite(Z)?Z.toExponential():q$.stringifyNumber($)}},j7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve($){let Z=new b7.Scalar(parseFloat($)),Q=$.indexOf(".");if(Q!==-1&&$[$.length-1]==="0")Z.minFractionDigits=$.length-Q-1;return Z},stringify:q$.stringifyNumber};g7.float=j7;g7.floatExp=S7;g7.floatNaN=E7});var B$=M((v7)=>{var I3=u0(),Y2=($)=>typeof $==="bigint"||Number.isInteger($),_$=($,Z,Q,{intAsBigInt:X})=>X?BigInt($):parseInt($.substring(Z),Q);function K3($,Z,Q){let{value:X}=$;if(Y2(X)&&X>=0)return Q+X.toString(Z);return I3.stringifyNumber($)}var f7={identify:($)=>Y2($)&&$>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:($,Z,Q)=>_$($,2,8,Q),stringify:($)=>K3($,8,"0o")},u7={identify:Y2,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:($,Z,Q)=>_$($,0,10,Q),stringify:I3.stringifyNumber},k7={identify:($)=>Y2($)&&$>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:($,Z,Q)=>_$($,2,16,Q),stringify:($)=>K3($,16,"0x")};v7.int=u7;v7.intHex=k7;v7.intOct=f7});var L3=M((n7)=>{var d7=y0(),c7=q2(),i7=f0(),a7=B1(),r7=U$(),G$=Y$(),V$=B$(),s7=[d7.map,i7.seq,a7.string,c7.nullTag,r7.boolTag,V$.intOct,V$.int,V$.intHex,G$.floatNaN,G$.floatExp,G$.float];n7.schema=s7});var R3=M((zQ)=>{var t7=x(),e7=y0(),$Q=f0();function M3($){return typeof $==="bigint"||Number.isInteger($)}var _2=({value:$})=>JSON.stringify($),ZQ=[{identify:($)=>typeof $==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:($)=>$,stringify:_2},{identify:($)=>$==null,createNode:()=>new t7.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:_2},{identify:($)=>typeof $==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:($)=>$==="true",stringify:_2},{identify:M3,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:($,Z,{intAsBigInt:Q})=>Q?BigInt($):parseInt($,10),stringify:({value:$})=>M3($)?$.toString():JSON.stringify($)},{identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:($)=>parseFloat($),stringify:_2}],QQ={default:!0,tag:"",test:/^/,resolve($,Z){return Z(`Unresolved plain scalar ${JSON.stringify($)}`),$}},XQ=[e7.map,$Q.seq].concat(ZQ,QQ);zQ.schema=XQ});var W$=M((qQ)=>{var G1=s0("buffer"),O$=x(),HQ=H1(),UQ={identify:($)=>$ instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve($,Z){if(typeof G1.Buffer==="function")return G1.Buffer.from($,"base64");else if(typeof atob==="function"){let Q=atob($.replace(/[\n\r]/g,"")),X=new Uint8Array(Q.length);for(let z=0;z<Q.length;++z)X[z]=Q.charCodeAt(z);return X}else return Z("This environment does not support reading binary tags; either Buffer or atob is required"),$},stringify({comment:$,type:Z,value:Q},X,z,J){if(!Q)return"";let H=Q,U;if(typeof G1.Buffer==="function")U=H instanceof G1.Buffer?H.toString("base64"):G1.Buffer.from(H.buffer).toString("base64");else if(typeof btoa==="function"){let q="";for(let Y=0;Y<H.length;++Y)q+=String.fromCharCode(H[Y]);U=btoa(q)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(Z??(Z=O$.Scalar.BLOCK_LITERAL),Z!==O$.Scalar.QUOTE_DOUBLE){let q=Math.max(X.options.lineWidth-X.indent.length,X.options.minContentWidth),Y=Math.ceil(U.length/q),_=Array(Y);for(let B=0,G=0;B<Y;++B,G+=q)_[B]=U.substr(G,q);U=_.join(Z===O$.Scalar.BLOCK_LITERAL?`
52
- `:" ")}return HQ.stringifyString({comment:$,type:Z,value:U},X,z,J)}};qQ.binary=UQ});var G2=M((VQ)=>{var B2=b(),D$=Y0(),_Q=x(),BQ=G0();function F3($,Z){if(B2.isSeq($))for(let Q=0;Q<$.items.length;++Q){let X=$.items[Q];if(B2.isPair(X))continue;else if(B2.isMap(X)){if(X.items.length>1)Z("Each pair must have its own sequence indicator");let z=X.items[0]||new D$.Pair(new _Q.Scalar(null));if(X.commentBefore)z.key.commentBefore=z.key.commentBefore?`${X.commentBefore}
51
+ ${z}${W}`}else return`${V}${H}${G.join(" ")}${H}${W}`}}function J2({indent:$,options:{commentString:Z}},Q,X,z){if(X&&z)X=X.replace(/^\n+/,"");if(X){let J=z2.indentComment(Z(X),$);Q.push(J.trimStart())}}U7.stringifyCollection=z7});var G0=M((_7)=>{var Y7=Y$(),B7=q$(),G7=a1(),B0=b(),H2=Y0(),V7=x();function B1($,Z){let Q=B0.isScalar(Z)?Z.value:Z;for(let X of $)if(B0.isPair(X)){if(X.key===Z||X.key===Q)return X;if(B0.isScalar(X.key)&&X.key.value===Q)return X}return}class M6 extends G7.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor($){super(B0.MAP,$);this.items=[]}static from($,Z,Q){let{keepUndefined:X,replacer:z}=Q,J=new this($),H=(U,q)=>{if(typeof z==="function")q=z.call(Z,U,q);else if(Array.isArray(z)&&!z.includes(U))return;if(q!==void 0||X)J.items.push(H2.createPair(U,q,Q))};if(Z instanceof Map)for(let[U,q]of Z)H(U,q);else if(Z&&typeof Z==="object")for(let U of Object.keys(Z))H(U,Z[U]);if(typeof $.sortMapEntries==="function")J.items.sort($.sortMapEntries);return J}add($,Z){let Q;if(B0.isPair($))Q=$;else if(!$||typeof $!=="object"||!("key"in $))Q=new H2.Pair($,$?.value);else Q=new H2.Pair($.key,$.value);let X=B1(this.items,Q.key),z=this.schema?.sortMapEntries;if(X){if(!Z)throw Error(`Key ${Q.key} already set`);if(B0.isScalar(X.value)&&V7.isScalarValue(Q.value))X.value.value=Q.value;else X.value=Q.value}else if(z){let J=this.items.findIndex((H)=>z(Q,H)<0);if(J===-1)this.items.push(Q);else this.items.splice(J,0,Q)}else this.items.push(Q)}delete($){let Z=B1(this.items,$);if(!Z)return!1;return this.items.splice(this.items.indexOf(Z),1).length>0}get($,Z){let X=B1(this.items,$)?.value;return(!Z&&B0.isScalar(X)?X.value:X)??void 0}has($){return!!B1(this.items,$)}set($,Z){this.add(new H2.Pair($,Z),!0)}toJSON($,Z,Q){let X=Q?new Q:Z?.mapAsMap?new Map:{};if(Z?.onCreate)Z.onCreate(X);for(let z of this.items)B7.addPairToJSMap(Z,X,z);return X}toString($,Z,Q){if(!$)return JSON.stringify(this);for(let X of this.items)if(!B0.isPair(X))throw Error(`Map items must all be pairs; found ${JSON.stringify(X)} instead`);if(!$.allNullValues&&this.hasAllNullValues(!1))$=Object.assign({},$,{allNullValues:!0});return Y7.stringifyCollection(this,$,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:$.indent||"",onChompKeep:Q,onComment:Z})}}_7.YAMLMap=M6;_7.findPair=B1});var y0=M((K7)=>{var D7=b(),R6=G0(),I7={collection:"map",default:!0,nodeClass:R6.YAMLMap,tag:"tag:yaml.org,2002:map",resolve($,Z){if(!D7.isMap($))Z("Expected a mapping for this tag");return $},createNode:($,Z,Q)=>R6.YAMLMap.from($,Z,Q)};K7.map=I7});var V0=M((P7)=>{var M7=z1(),R7=Y$(),F7=a1(),q2=b(),N7=x(),A7=H0();class F6 extends F7.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor($){super(q2.SEQ,$);this.items=[]}add($){this.items.push($)}delete($){let Z=U2($);if(typeof Z!=="number")return!1;return this.items.splice(Z,1).length>0}get($,Z){let Q=U2($);if(typeof Q!=="number")return;let X=this.items[Q];return!Z&&q2.isScalar(X)?X.value:X}has($){let Z=U2($);return typeof Z==="number"&&Z<this.items.length}set($,Z){let Q=U2($);if(typeof Q!=="number")throw Error(`Expected a valid index, not ${$}.`);let X=this.items[Q];if(q2.isScalar(X)&&N7.isScalarValue(Z))X.value=Z;else this.items[Q]=Z}toJSON($,Z){let Q=[];if(Z?.onCreate)Z.onCreate(Q);let X=0;for(let z of this.items)Q.push(A7.toJS(z,String(X++),Z));return Q}toString($,Z,Q){if(!$)return JSON.stringify(this);return R7.stringifyCollection(this,$,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:($.indent||"")+" ",onChompKeep:Q,onComment:Z})}static from($,Z,Q){let{replacer:X}=Q,z=new this($);if(Z&&Symbol.iterator in Object(Z)){let J=0;for(let H of Z){if(typeof X==="function"){let U=Z instanceof Set?H:String(J++);H=X.call(Z,U,H)}z.items.push(M7.createNode(H,void 0,Q))}}return z}}function U2($){let Z=q2.isScalar($)?$.value:$;if(Z&&typeof Z==="string")Z=Number(Z);return typeof Z==="number"&&Number.isInteger(Z)&&Z>=0?Z:null}P7.YAMLSeq=F6});var f0=M((b7)=>{var C7=b(),N6=V0(),w7={collection:"seq",default:!0,nodeClass:N6.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve($,Z){if(!C7.isSeq($))Z("Expected a sequence for this tag");return $},createNode:($,Z,Q)=>N6.YAMLSeq.from($,Z,Q)};b7.seq=w7});var G1=M((g7)=>{var S7=U1(),j7={identify:($)=>typeof $==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:($)=>$,stringify($,Z,Q,X){return Z=Object.assign({actualString:!0},Z),S7.stringifyString($,Z,Q,X)}};g7.string=j7});var Y2=M((h7)=>{var A6=x(),P6={identify:($)=>$==null,createNode:()=>new A6.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new A6.Scalar(null),stringify:({source:$},Z)=>typeof $==="string"&&P6.test.test($)?$:Z.options.nullStr};h7.nullTag=P6});var B$=M((k7)=>{var f7=x(),T6={identify:($)=>typeof $==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:($)=>new f7.Scalar($[0]==="t"||$[0]==="T"),stringify({source:$,value:Z},Q){if($&&T6.test.test($)){let X=$[0]==="t"||$[0]==="T";if(Z===X)return $}return Z?Q.options.trueStr:Q.options.falseStr}};k7.boolTag=T6});var k0=M((m7)=>{function u7({format:$,minFractionDigits:Z,tag:Q,value:X}){if(typeof X==="bigint")return String(X);let z=typeof X==="number"?X:Number(X);if(!isFinite(z))return isNaN(z)?".nan":z<0?"-.inf":".inf";let J=Object.is(X,-0)?"-0":JSON.stringify(X);if(!$&&Z&&(!Q||Q==="tag:yaml.org,2002:float")&&/^-?\d/.test(J)&&!J.includes("e")){let H=J.indexOf(".");if(H<0)H=J.length,J+=".";let U=Z-(J.length-H-1);while(U-- >0)J+="0"}return J}m7.stringifyNumber=u7});var V$=M((r7)=>{var p7=x(),G$=k0(),d7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:($)=>$.slice(-3).toLowerCase()==="nan"?NaN:$[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:G$.stringifyNumber},c7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:($)=>parseFloat($),stringify($){let Z=Number($.value);return isFinite(Z)?Z.toExponential():G$.stringifyNumber($)}},i7={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve($){let Z=new p7.Scalar(parseFloat($)),Q=$.indexOf(".");if(Q!==-1&&$[$.length-1]==="0")Z.minFractionDigits=$.length-Q-1;return Z},stringify:G$.stringifyNumber};r7.float=i7;r7.floatExp=c7;r7.floatNaN=d7});var W$=M(($Q)=>{var C6=k0(),B2=($)=>typeof $==="bigint"||Number.isInteger($),_$=($,Z,Q,{intAsBigInt:X})=>X?BigInt($):parseInt($.substring(Z),Q);function w6($,Z,Q){let{value:X}=$;if(B2(X)&&X>=0)return Q+X.toString(Z);return C6.stringifyNumber($)}var o7={identify:($)=>B2($)&&$>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:($,Z,Q)=>_$($,2,8,Q),stringify:($)=>w6($,8,"0o")},t7={identify:B2,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:($,Z,Q)=>_$($,0,10,Q),stringify:C6.stringifyNumber},e7={identify:($)=>B2($)&&$>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:($,Z,Q)=>_$($,2,16,Q),stringify:($)=>w6($,16,"0x")};$Q.int=t7;$Q.intHex=e7;$Q.intOct=o7});var b6=M((BQ)=>{var zQ=y0(),JQ=Y2(),HQ=f0(),UQ=G1(),qQ=B$(),O$=V$(),D$=W$(),YQ=[zQ.map,HQ.seq,UQ.string,JQ.nullTag,qQ.boolTag,D$.intOct,D$.int,D$.intHex,O$.floatNaN,O$.floatExp,O$.float];BQ.schema=YQ});var S6=M((KQ)=>{var VQ=x(),_Q=y0(),WQ=f0();function E6($){return typeof $==="bigint"||Number.isInteger($)}var G2=({value:$})=>JSON.stringify($),OQ=[{identify:($)=>typeof $==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:($)=>$,stringify:G2},{identify:($)=>$==null,createNode:()=>new VQ.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:G2},{identify:($)=>typeof $==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:($)=>$==="true",stringify:G2},{identify:E6,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:($,Z,{intAsBigInt:Q})=>Q?BigInt($):parseInt($,10),stringify:({value:$})=>E6($)?$.toString():JSON.stringify($)},{identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:($)=>parseFloat($),stringify:G2}],DQ={default:!0,tag:"",test:/^/,resolve($,Z){return Z(`Unresolved plain scalar ${JSON.stringify($)}`),$}},IQ=[_Q.map,WQ.seq].concat(OQ,DQ);KQ.schema=IQ});var K$=M((FQ)=>{var V1=n0("buffer"),I$=x(),MQ=U1(),RQ={identify:($)=>$ instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve($,Z){if(typeof V1.Buffer==="function")return V1.Buffer.from($,"base64");else if(typeof atob==="function"){let Q=atob($.replace(/[\n\r]/g,"")),X=new Uint8Array(Q.length);for(let z=0;z<Q.length;++z)X[z]=Q.charCodeAt(z);return X}else return Z("This environment does not support reading binary tags; either Buffer or atob is required"),$},stringify({comment:$,type:Z,value:Q},X,z,J){if(!Q)return"";let H=Q,U;if(typeof V1.Buffer==="function")U=H instanceof V1.Buffer?H.toString("base64"):V1.Buffer.from(H.buffer).toString("base64");else if(typeof btoa==="function"){let q="";for(let Y=0;Y<H.length;++Y)q+=String.fromCharCode(H[Y]);U=btoa(q)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(Z??(Z=I$.Scalar.BLOCK_LITERAL),Z!==I$.Scalar.QUOTE_DOUBLE){let q=Math.max(X.options.lineWidth-X.indent.length,X.options.minContentWidth),Y=Math.ceil(U.length/q),B=Array(Y);for(let G=0,V=0;G<Y;++G,V+=q)B[G]=U.substr(V,q);U=B.join(Z===I$.Scalar.BLOCK_LITERAL?`
52
+ `:" ")}return MQ.stringifyString({comment:$,type:Z,value:U},X,z,J)}};FQ.binary=RQ});var _2=M((CQ)=>{var V2=b(),L$=Y0(),AQ=x(),PQ=V0();function j6($,Z){if(V2.isSeq($))for(let Q=0;Q<$.items.length;++Q){let X=$.items[Q];if(V2.isPair(X))continue;else if(V2.isMap(X)){if(X.items.length>1)Z("Each pair must have its own sequence indicator");let z=X.items[0]||new L$.Pair(new AQ.Scalar(null));if(X.commentBefore)z.key.commentBefore=z.key.commentBefore?`${X.commentBefore}
53
53
  ${z.key.commentBefore}`:X.commentBefore;if(X.comment){let J=z.value??z.key;J.comment=J.comment?`${X.comment}
54
- ${J.comment}`:X.comment}X=z}$.items[Q]=B2.isPair(X)?X:new D$.Pair(X)}else Z("Expected a sequence for this tag");return $}function A3($,Z,Q){let{replacer:X}=Q,z=new BQ.YAMLSeq($);z.tag="tag:yaml.org,2002:pairs";let J=0;if(Z&&Symbol.iterator in Object(Z))for(let H of Z){if(typeof X==="function")H=X.call(Z,String(J++),H);let U,q;if(Array.isArray(H))if(H.length===2)U=H[0],q=H[1];else throw TypeError(`Expected [key, value] tuple: ${H}`);else if(H&&H instanceof Object){let Y=Object.keys(H);if(Y.length===1)U=Y[0],q=H[U];else throw TypeError(`Expected tuple with one key, not ${Y.length} keys`)}else U=H;z.items.push(D$.createPair(U,q,Q))}return z}var GQ={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:F3,createNode:A3};VQ.createPairs=A3;VQ.pairs=GQ;VQ.resolvePairs=F3});var K$=M((LQ)=>{var N3=b(),I$=H0(),V1=B0(),IQ=G0(),P3=G2();class M0 extends IQ.YAMLSeq{constructor(){super();this.add=V1.YAMLMap.prototype.add.bind(this),this.delete=V1.YAMLMap.prototype.delete.bind(this),this.get=V1.YAMLMap.prototype.get.bind(this),this.has=V1.YAMLMap.prototype.has.bind(this),this.set=V1.YAMLMap.prototype.set.bind(this),this.tag=M0.tag}toJSON($,Z){if(!Z)return super.toJSON($);let Q=new Map;if(Z?.onCreate)Z.onCreate(Q);for(let X of this.items){let z,J;if(N3.isPair(X))z=I$.toJS(X.key,"",Z),J=I$.toJS(X.value,z,Z);else z=I$.toJS(X,"",Z);if(Q.has(z))throw Error("Ordered maps must not include duplicate keys");Q.set(z,J)}return Q}static from($,Z,Q){let X=P3.createPairs($,Z,Q),z=new this;return z.items=X.items,z}}M0.tag="tag:yaml.org,2002:omap";var KQ={collection:"seq",identify:($)=>$ instanceof Map,nodeClass:M0,default:!1,tag:"tag:yaml.org,2002:omap",resolve($,Z){let Q=P3.resolvePairs($,Z),X=[];for(let{key:z}of Q.items)if(N3.isScalar(z))if(X.includes(z.value))Z(`Ordered maps must not include duplicate keys: ${z.value}`);else X.push(z.value);return Object.assign(new M0,Q)},createNode:($,Z,Q)=>M0.from($,Z,Q)};LQ.YAMLOMap=M0;LQ.omap=KQ});var E3=M((FQ)=>{var T3=x();function w3({value:$,source:Z},Q){if(Z&&($?C3:b3).test.test(Z))return Z;return $?Q.options.trueStr:Q.options.falseStr}var C3={identify:($)=>$===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new T3.Scalar(!0),stringify:w3},b3={identify:($)=>$===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new T3.Scalar(!1),stringify:w3};FQ.falseTag=b3;FQ.trueTag=C3});var S3=M((bQ)=>{var PQ=x(),L$=u0(),TQ={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:($)=>$.slice(-3).toLowerCase()==="nan"?NaN:$[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:L$.stringifyNumber},wQ={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:($)=>parseFloat($.replace(/_/g,"")),stringify($){let Z=Number($.value);return isFinite(Z)?Z.toExponential():L$.stringifyNumber($)}},CQ={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve($){let Z=new PQ.Scalar(parseFloat($.replace(/_/g,""))),Q=$.indexOf(".");if(Q!==-1){let X=$.substring(Q+1).replace(/_/g,"");if(X[X.length-1]==="0")Z.minFractionDigits=X.length}return Z},stringify:L$.stringifyNumber};bQ.float=CQ;bQ.floatExp=wQ;bQ.floatNaN=TQ});var g3=M((fQ)=>{var j3=u0(),O1=($)=>typeof $==="bigint"||Number.isInteger($);function V2($,Z,Q,{intAsBigInt:X}){let z=$[0];if(z==="-"||z==="+")Z+=1;if($=$.substring(Z).replace(/_/g,""),X){switch(Q){case 2:$=`0b${$}`;break;case 8:$=`0o${$}`;break;case 16:$=`0x${$}`;break}let H=BigInt($);return z==="-"?BigInt(-1)*H:H}let J=parseInt($,Q);return z==="-"?-1*J:J}function M$($,Z,Q){let{value:X}=$;if(O1(X)){let z=X.toString(Z);return X<0?"-"+Q+z.substr(1):Q+z}return j3.stringifyNumber($)}var gQ={identify:O1,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:($,Z,Q)=>V2($,2,2,Q),stringify:($)=>M$($,2,"0b")},xQ={identify:O1,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:($,Z,Q)=>V2($,1,8,Q),stringify:($)=>M$($,8,"0")},hQ={identify:O1,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:($,Z,Q)=>V2($,0,10,Q),stringify:j3.stringifyNumber},yQ={identify:O1,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:($,Z,Q)=>V2($,2,16,Q),stringify:($)=>M$($,16,"0x")};fQ.int=hQ;fQ.intBin=gQ;fQ.intHex=yQ;fQ.intOct=xQ});var R$=M((lQ)=>{var D2=b(),O2=Y0(),W2=B0();class R0 extends W2.YAMLMap{constructor($){super($);this.tag=R0.tag}add($){let Z;if(D2.isPair($))Z=$;else if($&&typeof $==="object"&&"key"in $&&"value"in $&&$.value===null)Z=new O2.Pair($.key,null);else Z=new O2.Pair($,null);if(!W2.findPair(this.items,Z.key))this.items.push(Z)}get($,Z){let Q=W2.findPair(this.items,$);return!Z&&D2.isPair(Q)?D2.isScalar(Q.key)?Q.key.value:Q.key:Q}set($,Z){if(typeof Z!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof Z}`);let Q=W2.findPair(this.items,$);if(Q&&!Z)this.items.splice(this.items.indexOf(Q),1);else if(!Q&&Z)this.items.push(new O2.Pair($))}toJSON($,Z){return super.toJSON($,Z,Set)}toString($,Z,Q){if(!$)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},$,{allNullValues:!0}),Z,Q);else throw Error("Set items must all have null values")}static from($,Z,Q){let{replacer:X}=Q,z=new this($);if(Z&&Symbol.iterator in Object(Z))for(let J of Z){if(typeof X==="function")J=X.call(Z,J,J);z.items.push(O2.createPair(J,null,Q))}return z}}R0.tag="tag:yaml.org,2002:set";var pQ={collection:"map",identify:($)=>$ instanceof Set,nodeClass:R0,default:!1,tag:"tag:yaml.org,2002:set",createNode:($,Z,Q)=>R0.from($,Z,Q),resolve($,Z){if(D2.isMap($))if($.hasAllNullValues(!0))return Object.assign(new R0,$);else Z("Set items must all have null values");else Z("Expected a mapping for this tag");return $}};lQ.YAMLSet=R0;lQ.set=pQ});var A$=M((sQ)=>{var iQ=u0();function F$($,Z){let Q=$[0],X=Q==="-"||Q==="+"?$.substring(1):$,z=(H)=>Z?BigInt(H):Number(H),J=X.replace(/_/g,"").split(":").reduce((H,U)=>H*z(60)+z(U),z(0));return Q==="-"?z(-1)*J:J}function x3($){let{value:Z}=$,Q=(H)=>H;if(typeof Z==="bigint")Q=(H)=>BigInt(H);else if(isNaN(Z)||!isFinite(Z))return iQ.stringifyNumber($);let X="";if(Z<0)X="-",Z*=Q(-1);let z=Q(60),J=[Z%z];if(Z<60)J.unshift(0);else if(Z=(Z-J[0])/z,J.unshift(Z%z),Z>=60)Z=(Z-J[0])/z,J.unshift(Z);return X+J.map((H)=>String(H).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var aQ={identify:($)=>typeof $==="bigint"||Number.isInteger($),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:($,Z,{intAsBigInt:Q})=>F$($,Q),stringify:x3},rQ={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:($)=>F$($,!1),stringify:x3},h3={identify:($)=>$ 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($){let Z=$.match(h3.test);if(!Z)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,Q,X,z,J,H,U]=Z.map(Number),q=Z[7]?Number((Z[7]+"00").substr(1,3)):0,Y=Date.UTC(Q,X-1,z,J||0,H||0,U||0,q),_=Z[8];if(_&&_!=="Z"){let B=F$(_,!1);if(Math.abs(B)<30)B*=60;Y-=60000*B}return new Date(Y)},stringify:({value:$})=>$?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};sQ.floatTime=rQ;sQ.intTime=aQ;sQ.timestamp=h3});var f3=M((YX)=>{var eQ=y0(),$X=q2(),ZX=f0(),QX=B1(),XX=W$(),y3=E3(),N$=S3(),I2=g3(),zX=$2(),JX=K$(),HX=G2(),UX=R$(),P$=A$(),qX=[eQ.map,ZX.seq,QX.string,$X.nullTag,y3.trueTag,y3.falseTag,I2.intBin,I2.intOct,I2.int,I2.intHex,N$.floatNaN,N$.floatExp,N$.float,XX.binary,zX.merge,JX.omap,HX.pairs,UX.set,P$.intTime,P$.floatTime,P$.timestamp];YX.schema=qX});var a3=M((KX)=>{var m3=y0(),BX=q2(),p3=f0(),GX=B1(),VX=U$(),T$=Y$(),w$=B$(),OX=L3(),WX=R3(),l3=W$(),W1=$2(),d3=K$(),c3=G2(),u3=f3(),i3=R$(),K2=A$(),k3=new Map([["core",OX.schema],["failsafe",[m3.map,p3.seq,GX.string]],["json",WX.schema],["yaml11",u3.schema],["yaml-1.1",u3.schema]]),v3={binary:l3.binary,bool:VX.boolTag,float:T$.float,floatExp:T$.floatExp,floatNaN:T$.floatNaN,floatTime:K2.floatTime,int:w$.int,intHex:w$.intHex,intOct:w$.intOct,intTime:K2.intTime,map:m3.map,merge:W1.merge,null:BX.nullTag,omap:d3.omap,pairs:c3.pairs,seq:p3.seq,set:i3.set,timestamp:K2.timestamp},DX={"tag:yaml.org,2002:binary":l3.binary,"tag:yaml.org,2002:merge":W1.merge,"tag:yaml.org,2002:omap":d3.omap,"tag:yaml.org,2002:pairs":c3.pairs,"tag:yaml.org,2002:set":i3.set,"tag:yaml.org,2002:timestamp":K2.timestamp};function IX($,Z,Q){let X=k3.get(Z);if(X&&!$)return Q&&!X.includes(W1.merge)?X.concat(W1.merge):X.slice();let z=X;if(!z)if(Array.isArray($))z=[];else{let J=Array.from(k3.keys()).filter((H)=>H!=="yaml11").map((H)=>JSON.stringify(H)).join(", ");throw Error(`Unknown schema "${Z}"; use one of ${J} or define customTags array`)}if(Array.isArray($))for(let J of $)z=z.concat(J);else if(typeof $==="function")z=$(z.slice());if(Q)z=z.concat(W1.merge);return z.reduce((J,H)=>{let U=typeof H==="string"?v3[H]:H;if(!U){let q=JSON.stringify(H),Y=Object.keys(v3).map((_)=>JSON.stringify(_)).join(", ");throw Error(`Unknown custom tag ${q}; use one of ${Y}`)}if(!J.includes(U))J.push(U);return J},[])}KX.coreKnownTags=DX;KX.getTags=IX});var E$=M((PX)=>{var C$=b(),RX=y0(),FX=f0(),AX=B1(),L2=a3(),NX=($,Z)=>$.key<Z.key?-1:$.key>Z.key?1:0;class b${constructor({compat:$,customTags:Z,merge:Q,resolveKnownTags:X,schema:z,sortMapEntries:J,toStringDefaults:H}){this.compat=Array.isArray($)?L2.getTags($,"compat"):$?L2.getTags(null,$):null,this.name=typeof z==="string"&&z||"core",this.knownTags=X?L2.coreKnownTags:{},this.tags=L2.getTags(Z,this.name,Q),this.toStringOptions=H??null,Object.defineProperty(this,C$.MAP,{value:RX.map}),Object.defineProperty(this,C$.SCALAR,{value:AX.string}),Object.defineProperty(this,C$.SEQ,{value:FX.seq}),this.sortMapEntries=typeof J==="function"?J:J===!0?NX:null}clone(){let $=Object.create(b$.prototype,Object.getOwnPropertyDescriptors(this));return $.tags=this.tags.slice(),$}}PX.Schema=b$});var r3=M((bX)=>{var wX=b(),S$=U1(),D1=z1();function CX($,Z){let Q=[],X=Z.directives===!0;if(Z.directives!==!1&&$.directives){let q=$.directives.toString($);if(q)Q.push(q),X=!0;else if($.directives.docStart)X=!0}if(X)Q.push("---");let z=S$.createStringifyContext($,Z),{commentString:J}=z.options;if($.commentBefore){if(Q.length!==1)Q.unshift("");let q=J($.commentBefore);Q.unshift(D1.indentComment(q,""))}let H=!1,U=null;if($.contents){if(wX.isNode($.contents)){if($.contents.spaceBefore&&X)Q.push("");if($.contents.commentBefore){let _=J($.contents.commentBefore);Q.push(D1.indentComment(_,""))}z.forceBlockIndent=!!$.comment,U=$.contents.comment}let q=U?void 0:()=>H=!0,Y=S$.stringify($.contents,z,()=>U=null,q);if(U)Y+=D1.lineComment(Y,"",J(U));if((Y[0]==="|"||Y[0]===">")&&Q[Q.length-1]==="---")Q[Q.length-1]=`--- ${Y}`;else Q.push(Y)}else Q.push(S$.stringify($.contents,z));if($.directives?.docEnd)if($.comment){let q=J($.comment);if(q.includes(`
54
+ ${J.comment}`:X.comment}X=z}$.items[Q]=V2.isPair(X)?X:new L$.Pair(X)}else Z("Expected a sequence for this tag");return $}function g6($,Z,Q){let{replacer:X}=Q,z=new PQ.YAMLSeq($);z.tag="tag:yaml.org,2002:pairs";let J=0;if(Z&&Symbol.iterator in Object(Z))for(let H of Z){if(typeof X==="function")H=X.call(Z,String(J++),H);let U,q;if(Array.isArray(H))if(H.length===2)U=H[0],q=H[1];else throw TypeError(`Expected [key, value] tuple: ${H}`);else if(H&&H instanceof Object){let Y=Object.keys(H);if(Y.length===1)U=Y[0],q=H[U];else throw TypeError(`Expected tuple with one key, not ${Y.length} keys`)}else U=H;z.items.push(L$.createPair(U,q,Q))}return z}var TQ={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:j6,createNode:g6};CQ.createPairs=g6;CQ.pairs=TQ;CQ.resolvePairs=j6});var R$=M((gQ)=>{var x6=b(),M$=H0(),_1=G0(),SQ=V0(),h6=_2();class M0 extends SQ.YAMLSeq{constructor(){super();this.add=_1.YAMLMap.prototype.add.bind(this),this.delete=_1.YAMLMap.prototype.delete.bind(this),this.get=_1.YAMLMap.prototype.get.bind(this),this.has=_1.YAMLMap.prototype.has.bind(this),this.set=_1.YAMLMap.prototype.set.bind(this),this.tag=M0.tag}toJSON($,Z){if(!Z)return super.toJSON($);let Q=new Map;if(Z?.onCreate)Z.onCreate(Q);for(let X of this.items){let z,J;if(x6.isPair(X))z=M$.toJS(X.key,"",Z),J=M$.toJS(X.value,z,Z);else z=M$.toJS(X,"",Z);if(Q.has(z))throw Error("Ordered maps must not include duplicate keys");Q.set(z,J)}return Q}static from($,Z,Q){let X=h6.createPairs($,Z,Q),z=new this;return z.items=X.items,z}}M0.tag="tag:yaml.org,2002:omap";var jQ={collection:"seq",identify:($)=>$ instanceof Map,nodeClass:M0,default:!1,tag:"tag:yaml.org,2002:omap",resolve($,Z){let Q=h6.resolvePairs($,Z),X=[];for(let{key:z}of Q.items)if(x6.isScalar(z))if(X.includes(z.value))Z(`Ordered maps must not include duplicate keys: ${z.value}`);else X.push(z.value);return Object.assign(new M0,Q)},createNode:($,Z,Q)=>M0.from($,Z,Q)};gQ.YAMLOMap=M0;gQ.omap=jQ});var u6=M((yQ)=>{var y6=x();function f6({value:$,source:Z},Q){if(Z&&($?k6:v6).test.test(Z))return Z;return $?Q.options.trueStr:Q.options.falseStr}var k6={identify:($)=>$===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new y6.Scalar(!0),stringify:f6},v6={identify:($)=>$===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new y6.Scalar(!1),stringify:f6};yQ.falseTag=v6;yQ.trueTag=k6});var m6=M((pQ)=>{var vQ=x(),F$=k0(),uQ={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:($)=>$.slice(-3).toLowerCase()==="nan"?NaN:$[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:F$.stringifyNumber},mQ={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:($)=>parseFloat($.replace(/_/g,"")),stringify($){let Z=Number($.value);return isFinite(Z)?Z.toExponential():F$.stringifyNumber($)}},lQ={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve($){let Z=new vQ.Scalar(parseFloat($.replace(/_/g,""))),Q=$.indexOf(".");if(Q!==-1){let X=$.substring(Q+1).replace(/_/g,"");if(X[X.length-1]==="0")Z.minFractionDigits=X.length}return Z},stringify:F$.stringifyNumber};pQ.float=lQ;pQ.floatExp=mQ;pQ.floatNaN=uQ});var p6=M((oQ)=>{var l6=k0(),W1=($)=>typeof $==="bigint"||Number.isInteger($);function W2($,Z,Q,{intAsBigInt:X}){let z=$[0];if(z==="-"||z==="+")Z+=1;if($=$.substring(Z).replace(/_/g,""),X){switch(Q){case 2:$=`0b${$}`;break;case 8:$=`0o${$}`;break;case 16:$=`0x${$}`;break}let H=BigInt($);return z==="-"?BigInt(-1)*H:H}let J=parseInt($,Q);return z==="-"?-1*J:J}function N$($,Z,Q){let{value:X}=$;if(W1(X)){let z=X.toString(Z);return X<0?"-"+Q+z.substr(1):Q+z}return l6.stringifyNumber($)}var rQ={identify:W1,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:($,Z,Q)=>W2($,2,2,Q),stringify:($)=>N$($,2,"0b")},aQ={identify:W1,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:($,Z,Q)=>W2($,1,8,Q),stringify:($)=>N$($,8,"0")},sQ={identify:W1,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:($,Z,Q)=>W2($,0,10,Q),stringify:l6.stringifyNumber},nQ={identify:W1,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:($,Z,Q)=>W2($,2,16,Q),stringify:($)=>N$($,16,"0x")};oQ.int=sQ;oQ.intBin=rQ;oQ.intHex=nQ;oQ.intOct=aQ});var A$=M((XX)=>{var I2=b(),O2=Y0(),D2=G0();class R0 extends D2.YAMLMap{constructor($){super($);this.tag=R0.tag}add($){let Z;if(I2.isPair($))Z=$;else if($&&typeof $==="object"&&"key"in $&&"value"in $&&$.value===null)Z=new O2.Pair($.key,null);else Z=new O2.Pair($,null);if(!D2.findPair(this.items,Z.key))this.items.push(Z)}get($,Z){let Q=D2.findPair(this.items,$);return!Z&&I2.isPair(Q)?I2.isScalar(Q.key)?Q.key.value:Q.key:Q}set($,Z){if(typeof Z!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof Z}`);let Q=D2.findPair(this.items,$);if(Q&&!Z)this.items.splice(this.items.indexOf(Q),1);else if(!Q&&Z)this.items.push(new O2.Pair($))}toJSON($,Z){return super.toJSON($,Z,Set)}toString($,Z,Q){if(!$)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},$,{allNullValues:!0}),Z,Q);else throw Error("Set items must all have null values")}static from($,Z,Q){let{replacer:X}=Q,z=new this($);if(Z&&Symbol.iterator in Object(Z))for(let J of Z){if(typeof X==="function")J=X.call(Z,J,J);z.items.push(O2.createPair(J,null,Q))}return z}}R0.tag="tag:yaml.org,2002:set";var QX={collection:"map",identify:($)=>$ instanceof Set,nodeClass:R0,default:!1,tag:"tag:yaml.org,2002:set",createNode:($,Z,Q)=>R0.from($,Z,Q),resolve($,Z){if(I2.isMap($))if($.hasAllNullValues(!0))return Object.assign(new R0,$);else Z("Set items must all have null values");else Z("Expected a mapping for this tag");return $}};XX.YAMLSet=R0;XX.set=QX});var T$=M((YX)=>{var HX=k0();function P$($,Z){let Q=$[0],X=Q==="-"||Q==="+"?$.substring(1):$,z=(H)=>Z?BigInt(H):Number(H),J=X.replace(/_/g,"").split(":").reduce((H,U)=>H*z(60)+z(U),z(0));return Q==="-"?z(-1)*J:J}function d6($){let{value:Z}=$,Q=(H)=>H;if(typeof Z==="bigint")Q=(H)=>BigInt(H);else if(isNaN(Z)||!isFinite(Z))return HX.stringifyNumber($);let X="";if(Z<0)X="-",Z*=Q(-1);let z=Q(60),J=[Z%z];if(Z<60)J.unshift(0);else if(Z=(Z-J[0])/z,J.unshift(Z%z),Z>=60)Z=(Z-J[0])/z,J.unshift(Z);return X+J.map((H)=>String(H).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var UX={identify:($)=>typeof $==="bigint"||Number.isInteger($),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:($,Z,{intAsBigInt:Q})=>P$($,Q),stringify:d6},qX={identify:($)=>typeof $==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:($)=>P$($,!1),stringify:d6},c6={identify:($)=>$ 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($){let Z=$.match(c6.test);if(!Z)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,Q,X,z,J,H,U]=Z.map(Number),q=Z[7]?Number((Z[7]+"00").substr(1,3)):0,Y=Date.UTC(Q,X-1,z,J||0,H||0,U||0,q),B=Z[8];if(B&&B!=="Z"){let G=P$(B,!1);if(Math.abs(G)<30)G*=60;Y-=60000*G}return new Date(Y)},stringify:({value:$})=>$?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};YX.floatTime=qX;YX.intTime=UX;YX.timestamp=c6});var r6=M((NX)=>{var _X=y0(),WX=Y2(),OX=f0(),DX=G1(),IX=K$(),i6=u6(),C$=m6(),K2=p6(),KX=Z2(),LX=R$(),MX=_2(),RX=A$(),w$=T$(),FX=[_X.map,OX.seq,DX.string,WX.nullTag,i6.trueTag,i6.falseTag,K2.intBin,K2.intOct,K2.int,K2.intHex,C$.floatNaN,C$.floatExp,C$.float,IX.binary,KX.merge,LX.omap,MX.pairs,RX.set,w$.intTime,w$.floatTime,w$.timestamp];NX.schema=FX});var X9=M((jX)=>{var o6=y0(),PX=Y2(),t6=f0(),TX=G1(),CX=B$(),b$=V$(),E$=W$(),wX=b6(),bX=S6(),e6=K$(),O1=Z2(),$9=R$(),Z9=_2(),a6=r6(),Q9=A$(),L2=T$(),s6=new Map([["core",wX.schema],["failsafe",[o6.map,t6.seq,TX.string]],["json",bX.schema],["yaml11",a6.schema],["yaml-1.1",a6.schema]]),n6={binary:e6.binary,bool:CX.boolTag,float:b$.float,floatExp:b$.floatExp,floatNaN:b$.floatNaN,floatTime:L2.floatTime,int:E$.int,intHex:E$.intHex,intOct:E$.intOct,intTime:L2.intTime,map:o6.map,merge:O1.merge,null:PX.nullTag,omap:$9.omap,pairs:Z9.pairs,seq:t6.seq,set:Q9.set,timestamp:L2.timestamp},EX={"tag:yaml.org,2002:binary":e6.binary,"tag:yaml.org,2002:merge":O1.merge,"tag:yaml.org,2002:omap":$9.omap,"tag:yaml.org,2002:pairs":Z9.pairs,"tag:yaml.org,2002:set":Q9.set,"tag:yaml.org,2002:timestamp":L2.timestamp};function SX($,Z,Q){let X=s6.get(Z);if(X&&!$)return Q&&!X.includes(O1.merge)?X.concat(O1.merge):X.slice();let z=X;if(!z)if(Array.isArray($))z=[];else{let J=Array.from(s6.keys()).filter((H)=>H!=="yaml11").map((H)=>JSON.stringify(H)).join(", ");throw Error(`Unknown schema "${Z}"; use one of ${J} or define customTags array`)}if(Array.isArray($))for(let J of $)z=z.concat(J);else if(typeof $==="function")z=$(z.slice());if(Q)z=z.concat(O1.merge);return z.reduce((J,H)=>{let U=typeof H==="string"?n6[H]:H;if(!U){let q=JSON.stringify(H),Y=Object.keys(n6).map((B)=>JSON.stringify(B)).join(", ");throw Error(`Unknown custom tag ${q}; use one of ${Y}`)}if(!J.includes(U))J.push(U);return J},[])}jX.coreKnownTags=EX;jX.getTags=SX});var g$=M((vX)=>{var S$=b(),hX=y0(),yX=f0(),fX=G1(),M2=X9(),kX=($,Z)=>$.key<Z.key?-1:$.key>Z.key?1:0;class j${constructor({compat:$,customTags:Z,merge:Q,resolveKnownTags:X,schema:z,sortMapEntries:J,toStringDefaults:H}){this.compat=Array.isArray($)?M2.getTags($,"compat"):$?M2.getTags(null,$):null,this.name=typeof z==="string"&&z||"core",this.knownTags=X?M2.coreKnownTags:{},this.tags=M2.getTags(Z,this.name,Q),this.toStringOptions=H??null,Object.defineProperty(this,S$.MAP,{value:hX.map}),Object.defineProperty(this,S$.SCALAR,{value:fX.string}),Object.defineProperty(this,S$.SEQ,{value:yX.seq}),this.sortMapEntries=typeof J==="function"?J:J===!0?kX:null}clone(){let $=Object.create(j$.prototype,Object.getOwnPropertyDescriptors(this));return $.tags=this.tags.slice(),$}}vX.Schema=j$});var z9=M((pX)=>{var mX=b(),x$=q1(),D1=J1();function lX($,Z){let Q=[],X=Z.directives===!0;if(Z.directives!==!1&&$.directives){let q=$.directives.toString($);if(q)Q.push(q),X=!0;else if($.directives.docStart)X=!0}if(X)Q.push("---");let z=x$.createStringifyContext($,Z),{commentString:J}=z.options;if($.commentBefore){if(Q.length!==1)Q.unshift("");let q=J($.commentBefore);Q.unshift(D1.indentComment(q,""))}let H=!1,U=null;if($.contents){if(mX.isNode($.contents)){if($.contents.spaceBefore&&X)Q.push("");if($.contents.commentBefore){let B=J($.contents.commentBefore);Q.push(D1.indentComment(B,""))}z.forceBlockIndent=!!$.comment,U=$.contents.comment}let q=U?void 0:()=>H=!0,Y=x$.stringify($.contents,z,()=>U=null,q);if(U)Y+=D1.lineComment(Y,"",J(U));if((Y[0]==="|"||Y[0]===">")&&Q[Q.length-1]==="---")Q[Q.length-1]=`--- ${Y}`;else Q.push(Y)}else Q.push(x$.stringify($.contents,z));if($.directives?.docEnd)if($.comment){let q=J($.comment);if(q.includes(`
55
55
  `))Q.push("..."),Q.push(D1.indentComment(q,""));else Q.push(`... ${q}`)}else Q.push("...");else{let q=$.comment;if(q&&H)q=q.replace(/^\n+/,"");if(q){if((!H||U)&&Q[Q.length-1]!=="")Q.push("");Q.push(D1.indentComment(J(q),""))}}return Q.join(`
56
56
  `)+`
57
- `}bX.stringifyDocument=CX});var I1=M((uX)=>{var SX=Q1(),k0=r1(),l=b(),jX=Y0(),gX=H0(),xX=E$(),hX=r3(),j$=c1(),yX=o2(),fX=X1(),g$=n2();class x${constructor($,Z,Q){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,l.NODE_TYPE,{value:l.DOC});let X=null;if(typeof Z==="function"||Array.isArray(Z))X=Z;else if(Q===void 0&&Z)Q=Z,Z=void 0;let z=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},Q);this.options=z;let{version:J}=z;if(Q?._directives){if(this.directives=Q._directives.atDocument(),this.directives.yaml.explicit)J=this.directives.yaml.version}else this.directives=new g$.Directives({version:J});this.setSchema(J,Q),this.contents=$===void 0?null:this.createNode($,X,Q)}clone(){let $=Object.create(x$.prototype,{[l.NODE_TYPE]:{value:l.DOC}});if($.commentBefore=this.commentBefore,$.comment=this.comment,$.errors=this.errors.slice(),$.warnings=this.warnings.slice(),$.options=Object.assign({},this.options),this.directives)$.directives=this.directives.clone();if($.schema=this.schema.clone(),$.contents=l.isNode(this.contents)?this.contents.clone($.schema):this.contents,this.range)$.range=this.range.slice();return $}add($){if(v0(this.contents))this.contents.add($)}addIn($,Z){if(v0(this.contents))this.contents.addIn($,Z)}createAlias($,Z){if(!$.anchor){let Q=j$.anchorNames(this);$.anchor=!Z||Q.has(Z)?j$.findNewAnchor(Z||"a",Q):Z}return new SX.Alias($.anchor)}createNode($,Z,Q){let X=void 0;if(typeof Z==="function")$=Z.call({"":$},"",$),X=Z;else if(Array.isArray(Z)){let V=(I)=>typeof I==="number"||I instanceof String||I instanceof Number,W=Z.filter(V).map(String);if(W.length>0)Z=Z.concat(W);X=Z}else if(Q===void 0&&Z)Q=Z,Z=void 0;let{aliasDuplicateObjects:z,anchorPrefix:J,flow:H,keepUndefined:U,onTagObj:q,tag:Y}=Q??{},{onAnchor:_,setAnchors:B,sourceObjects:G}=j$.createNodeAnchors(this,J||"a"),O={aliasDuplicateObjects:z??!0,keepUndefined:U??!1,onAnchor:_,onTagObj:q,replacer:X,schema:this.schema,sourceObjects:G},D=fX.createNode($,Y,O);if(H&&l.isCollection(D))D.flow=!0;return B(),D}createPair($,Z,Q={}){let X=this.createNode($,null,Q),z=this.createNode(Z,null,Q);return new jX.Pair(X,z)}delete($){return v0(this.contents)?this.contents.delete($):!1}deleteIn($){if(k0.isEmptyPath($)){if(this.contents==null)return!1;return this.contents=null,!0}return v0(this.contents)?this.contents.deleteIn($):!1}get($,Z){return l.isCollection(this.contents)?this.contents.get($,Z):void 0}getIn($,Z){if(k0.isEmptyPath($))return!Z&&l.isScalar(this.contents)?this.contents.value:this.contents;return l.isCollection(this.contents)?this.contents.getIn($,Z):void 0}has($){return l.isCollection(this.contents)?this.contents.has($):!1}hasIn($){if(k0.isEmptyPath($))return this.contents!==void 0;return l.isCollection(this.contents)?this.contents.hasIn($):!1}set($,Z){if(this.contents==null)this.contents=k0.collectionFromPath(this.schema,[$],Z);else if(v0(this.contents))this.contents.set($,Z)}setIn($,Z){if(k0.isEmptyPath($))this.contents=Z;else if(this.contents==null)this.contents=k0.collectionFromPath(this.schema,Array.from($),Z);else if(v0(this.contents))this.contents.setIn($,Z)}setSchema($,Z={}){if(typeof $==="number")$=String($);let Q;switch($){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new g$.Directives({version:"1.1"});Q={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=$;else this.directives=new g$.Directives({version:$});Q={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;Q=null;break;default:{let X=JSON.stringify($);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${X}`)}}if(Z.schema instanceof Object)this.schema=Z.schema;else if(Q)this.schema=new xX.Schema(Object.assign(Q,Z));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:$,jsonArg:Z,mapAsMap:Q,maxAliasCount:X,onAnchor:z,reviver:J}={}){let H={anchors:new Map,doc:this,keep:!$,mapAsMap:Q===!0,mapKeyWarned:!1,maxAliasCount:typeof X==="number"?X:100},U=gX.toJS(this.contents,Z??"",H);if(typeof z==="function")for(let{count:q,res:Y}of H.anchors.values())z(Y,q);return typeof J==="function"?yX.applyReviver(J,{"":U},"",U):U}toJSON($,Z){return this.toJS({json:!0,jsonArg:$,mapAsMap:!1,onAnchor:Z})}toString($={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in $&&(!Number.isInteger($.indent)||Number($.indent)<=0)){let Z=JSON.stringify($.indent);throw Error(`"indent" option must be a positive integer, not ${Z}`)}return hX.stringifyDocument(this,$)}}function v0($){if(l.isCollection($))return!0;throw Error("Expected a YAML collection as document contents")}uX.Document=x$});var K1=M((mX)=>{class M2 extends Error{constructor($,Z,Q,X){super();this.name=$,this.code=Q,this.message=X,this.pos=Z}}class s3 extends M2{constructor($,Z,Q){super("YAMLParseError",$,Z,Q)}}class n3 extends M2{constructor($,Z,Q){super("YAMLWarning",$,Z,Q)}}var vX=($,Z)=>(Q)=>{if(Q.pos[0]===-1)return;Q.linePos=Q.pos.map((U)=>Z.linePos(U));let{line:X,col:z}=Q.linePos[0];Q.message+=` at line ${X}, column ${z}`;let J=z-1,H=$.substring(Z.lineStarts[X-1],Z.lineStarts[X]).replace(/[\n\r]+$/,"");if(J>=60&&H.length>80){let U=Math.min(J-39,H.length-79);H="…"+H.substring(U),J-=U-1}if(H.length>80)H=H.substring(0,79)+"…";if(X>1&&/^ *$/.test(H.substring(0,J))){let U=$.substring(Z.lineStarts[X-2],Z.lineStarts[X-1]);if(U.length>80)U=U.substring(0,79)+`…
57
+ `}pX.stringifyDocument=lX});var I1=M((tX)=>{var cX=X1(),v0=a1(),p=b(),iX=Y0(),rX=H0(),aX=g$(),sX=z9(),h$=c1(),nX=$$(),oX=z1(),y$=e2();class f${constructor($,Z,Q){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,p.NODE_TYPE,{value:p.DOC});let X=null;if(typeof Z==="function"||Array.isArray(Z))X=Z;else if(Q===void 0&&Z)Q=Z,Z=void 0;let z=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},Q);this.options=z;let{version:J}=z;if(Q?._directives){if(this.directives=Q._directives.atDocument(),this.directives.yaml.explicit)J=this.directives.yaml.version}else this.directives=new y$.Directives({version:J});this.setSchema(J,Q),this.contents=$===void 0?null:this.createNode($,X,Q)}clone(){let $=Object.create(f$.prototype,{[p.NODE_TYPE]:{value:p.DOC}});if($.commentBefore=this.commentBefore,$.comment=this.comment,$.errors=this.errors.slice(),$.warnings=this.warnings.slice(),$.options=Object.assign({},this.options),this.directives)$.directives=this.directives.clone();if($.schema=this.schema.clone(),$.contents=p.isNode(this.contents)?this.contents.clone($.schema):this.contents,this.range)$.range=this.range.slice();return $}add($){if(u0(this.contents))this.contents.add($)}addIn($,Z){if(u0(this.contents))this.contents.addIn($,Z)}createAlias($,Z){if(!$.anchor){let Q=h$.anchorNames(this);$.anchor=!Z||Q.has(Z)?h$.findNewAnchor(Z||"a",Q):Z}return new cX.Alias($.anchor)}createNode($,Z,Q){let X=void 0;if(typeof Z==="function")$=Z.call({"":$},"",$),X=Z;else if(Array.isArray(Z)){let _=(I)=>typeof I==="number"||I instanceof String||I instanceof Number,O=Z.filter(_).map(String);if(O.length>0)Z=Z.concat(O);X=Z}else if(Q===void 0&&Z)Q=Z,Z=void 0;let{aliasDuplicateObjects:z,anchorPrefix:J,flow:H,keepUndefined:U,onTagObj:q,tag:Y}=Q??{},{onAnchor:B,setAnchors:G,sourceObjects:V}=h$.createNodeAnchors(this,J||"a"),W={aliasDuplicateObjects:z??!0,keepUndefined:U??!1,onAnchor:B,onTagObj:q,replacer:X,schema:this.schema,sourceObjects:V},D=oX.createNode($,Y,W);if(H&&p.isCollection(D))D.flow=!0;return G(),D}createPair($,Z,Q={}){let X=this.createNode($,null,Q),z=this.createNode(Z,null,Q);return new iX.Pair(X,z)}delete($){return u0(this.contents)?this.contents.delete($):!1}deleteIn($){if(v0.isEmptyPath($)){if(this.contents==null)return!1;return this.contents=null,!0}return u0(this.contents)?this.contents.deleteIn($):!1}get($,Z){return p.isCollection(this.contents)?this.contents.get($,Z):void 0}getIn($,Z){if(v0.isEmptyPath($))return!Z&&p.isScalar(this.contents)?this.contents.value:this.contents;return p.isCollection(this.contents)?this.contents.getIn($,Z):void 0}has($){return p.isCollection(this.contents)?this.contents.has($):!1}hasIn($){if(v0.isEmptyPath($))return this.contents!==void 0;return p.isCollection(this.contents)?this.contents.hasIn($):!1}set($,Z){if(this.contents==null)this.contents=v0.collectionFromPath(this.schema,[$],Z);else if(u0(this.contents))this.contents.set($,Z)}setIn($,Z){if(v0.isEmptyPath($))this.contents=Z;else if(this.contents==null)this.contents=v0.collectionFromPath(this.schema,Array.from($),Z);else if(u0(this.contents))this.contents.setIn($,Z)}setSchema($,Z={}){if(typeof $==="number")$=String($);let Q;switch($){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new y$.Directives({version:"1.1"});Q={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=$;else this.directives=new y$.Directives({version:$});Q={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;Q=null;break;default:{let X=JSON.stringify($);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${X}`)}}if(Z.schema instanceof Object)this.schema=Z.schema;else if(Q)this.schema=new aX.Schema(Object.assign(Q,Z));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:$,jsonArg:Z,mapAsMap:Q,maxAliasCount:X,onAnchor:z,reviver:J}={}){let H={anchors:new Map,doc:this,keep:!$,mapAsMap:Q===!0,mapKeyWarned:!1,maxAliasCount:typeof X==="number"?X:100},U=rX.toJS(this.contents,Z??"",H);if(typeof z==="function")for(let{count:q,res:Y}of H.anchors.values())z(Y,q);return typeof J==="function"?nX.applyReviver(J,{"":U},"",U):U}toJSON($,Z){return this.toJS({json:!0,jsonArg:$,mapAsMap:!1,onAnchor:Z})}toString($={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in $&&(!Number.isInteger($.indent)||Number($.indent)<=0)){let Z=JSON.stringify($.indent);throw Error(`"indent" option must be a positive integer, not ${Z}`)}return sX.stringifyDocument(this,$)}}function u0($){if(p.isCollection($))return!0;throw Error("Expected a YAML collection as document contents")}tX.Document=f$});var K1=M((Zz)=>{class R2 extends Error{constructor($,Z,Q,X){super();this.name=$,this.code=Q,this.message=X,this.pos=Z}}class J9 extends R2{constructor($,Z,Q){super("YAMLParseError",$,Z,Q)}}class H9 extends R2{constructor($,Z,Q){super("YAMLWarning",$,Z,Q)}}var $z=($,Z)=>(Q)=>{if(Q.pos[0]===-1)return;Q.linePos=Q.pos.map((U)=>Z.linePos(U));let{line:X,col:z}=Q.linePos[0];Q.message+=` at line ${X}, column ${z}`;let J=z-1,H=$.substring(Z.lineStarts[X-1],Z.lineStarts[X]).replace(/[\n\r]+$/,"");if(J>=60&&H.length>80){let U=Math.min(J-39,H.length-79);H="…"+H.substring(U),J-=U-1}if(H.length>80)H=H.substring(0,79)+"…";if(X>1&&/^ *$/.test(H.substring(0,J))){let U=$.substring(Z.lineStarts[X-2],Z.lineStarts[X-1]);if(U.length>80)U=U.substring(0,79)+`…
58
58
  `;H=U+H}if(/[^ ]/.test(H)){let U=1,q=Q.linePos[1];if(q?.line===X&&q.col>z)U=Math.max(1,Math.min(q.col-z,80-J));let Y=" ".repeat(J)+"^".repeat(U);Q.message+=`:
59
59
 
60
60
  ${H}
61
61
  ${Y}
62
- `}};mX.YAMLError=M2;mX.YAMLParseError=s3;mX.YAMLWarning=n3;mX.prettifyError=vX});var L1=M((aX)=>{function iX($,{flow:Z,indicator:Q,next:X,offset:z,onError:J,parentIndent:H,startOnNewline:U}){let q=!1,Y=U,_=U,B="",G="",O=!1,D=!1,V=null,W=null,I=null,L=null,A=null,N=null,T=null;for(let K of $){if(D){if(K.type!=="space"&&K.type!=="newline"&&K.type!=="comma")J(K.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");D=!1}if(V){if(Y&&K.type!=="comment"&&K.type!=="newline")J(V,"TAB_AS_INDENT","Tabs are not allowed as indentation");V=null}switch(K.type){case"space":if(!Z&&(Q!=="doc-start"||X?.type!=="flow-collection")&&K.source.includes("\t"))V=K;_=!0;break;case"comment":{if(!_)J(K,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let w=K.source.substring(1)||" ";if(!B)B=w;else B+=G+w;G="",Y=!1;break}case"newline":if(Y){if(B)B+=K.source;else if(!N||Q!=="seq-item-ind")q=!0}else G+=K.source;if(Y=!0,O=!0,W||I)L=K;_=!0;break;case"anchor":if(W)J(K,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(K.source.endsWith(":"))J(K.offset+K.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);W=K,T??(T=K.offset),Y=!1,_=!1,D=!0;break;case"tag":{if(I)J(K,"MULTIPLE_TAGS","A node can have at most one tag");I=K,T??(T=K.offset),Y=!1,_=!1,D=!0;break}case Q:if(W||I)J(K,"BAD_PROP_ORDER",`Anchors and tags must be after the ${K.source} indicator`);if(N)J(K,"UNEXPECTED_TOKEN",`Unexpected ${K.source} in ${Z??"collection"}`);N=K,Y=Q==="seq-item-ind"||Q==="explicit-key-ind",_=!1;break;case"comma":if(Z){if(A)J(K,"UNEXPECTED_TOKEN",`Unexpected , in ${Z}`);A=K,Y=!1,_=!1;break}default:J(K,"UNEXPECTED_TOKEN",`Unexpected ${K.type} token`),Y=!1,_=!1}}let P=$[$.length-1],C=P?P.offset+P.source.length:z;if(D&&X&&X.type!=="space"&&X.type!=="newline"&&X.type!=="comma"&&(X.type!=="scalar"||X.source!==""))J(X.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(V&&(Y&&V.indent<=H||X?.type==="block-map"||X?.type==="block-seq"))J(V,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:A,found:N,spaceBefore:q,comment:B,hasNewline:O,anchor:W,tag:I,newlineAfterProp:L,end:C,start:T??C}}aX.resolveProps=iX});var R2=M((sX)=>{function h$($){if(!$)return null;switch($.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if($.source.includes(`
63
- `))return!0;if($.end){for(let Z of $.end)if(Z.type==="newline")return!0}return!1;case"flow-collection":for(let Z of $.items){for(let Q of Z.start)if(Q.type==="newline")return!0;if(Z.sep){for(let Q of Z.sep)if(Q.type==="newline")return!0}if(h$(Z.key)||h$(Z.value))return!0}return!1;default:return!0}}sX.containsNewline=h$});var y$=M((eX)=>{var oX=R2();function tX($,Z,Q){if(Z?.type==="flow-collection"){let X=Z.end[0];if(X.indent===$&&(X.source==="]"||X.source==="}")&&oX.containsNewline(Z))Q(X,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}eX.flowIndentCheck=tX});var f$=M((Qz)=>{var o3=b();function Zz($,Z,Q){let{uniqueKeys:X}=$.options;if(X===!1)return!1;let z=typeof X==="function"?X:(J,H)=>J===H||o3.isScalar(J)&&o3.isScalar(H)&&J.value===H.value;return Z.some((J)=>z(J.key,Q))}Qz.mapIncludes=Zz});var Q6=M((qz)=>{var t3=Y0(),zz=B0(),e3=L1(),Jz=R2(),$6=y$(),Hz=f$(),Z6="All mapping items must start at the same column";function Uz({composeNode:$,composeEmptyNode:Z},Q,X,z,J){let U=new(J?.nodeClass??zz.YAMLMap)(Q.schema);if(Q.atRoot)Q.atRoot=!1;let q=X.offset,Y=null;for(let _ of X.items){let{start:B,key:G,sep:O,value:D}=_,V=e3.resolveProps(B,{indicator:"explicit-key-ind",next:G??O?.[0],offset:q,onError:z,parentIndent:X.indent,startOnNewline:!0}),W=!V.found;if(W){if(G){if(G.type==="block-seq")z(q,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in G&&G.indent!==X.indent)z(q,"BAD_INDENT",Z6)}if(!V.anchor&&!V.tag&&!O){if(Y=V.end,V.comment)if(U.comment)U.comment+=`
64
- `+V.comment;else U.comment=V.comment;continue}if(V.newlineAfterProp||Jz.containsNewline(G))z(G??B[B.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(V.found?.indent!==X.indent)z(q,"BAD_INDENT",Z6);Q.atKey=!0;let I=V.end,L=G?$(Q,G,V,z):Z(Q,I,B,null,V,z);if(Q.schema.compat)$6.flowIndentCheck(X.indent,G,z);if(Q.atKey=!1,Hz.mapIncludes(Q,U.items,L))z(I,"DUPLICATE_KEY","Map keys must be unique");let A=e3.resolveProps(O??[],{indicator:"map-value-ind",next:D,offset:L.range[2],onError:z,parentIndent:X.indent,startOnNewline:!G||G.type==="block-scalar"});if(q=A.end,A.found){if(W){if(D?.type==="block-map"&&!A.hasNewline)z(q,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(Q.options.strict&&V.start<A.found.offset-1024)z(L.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let N=D?$(Q,D,A,z):Z(Q,q,O,null,A,z);if(Q.schema.compat)$6.flowIndentCheck(X.indent,D,z);q=N.range[2];let T=new t3.Pair(L,N);if(Q.options.keepSourceTokens)T.srcToken=_;U.items.push(T)}else{if(W)z(L.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(A.comment)if(L.comment)L.comment+=`
65
- `+A.comment;else L.comment=A.comment;let N=new t3.Pair(L);if(Q.options.keepSourceTokens)N.srcToken=_;U.items.push(N)}}if(Y&&Y<q)z(Y,"IMPOSSIBLE","Map comment with trailing content");return U.range=[X.offset,q,Y??q],U}qz.resolveBlockMap=Uz});var X6=M((Oz)=>{var _z=G0(),Bz=L1(),Gz=y$();function Vz({composeNode:$,composeEmptyNode:Z},Q,X,z,J){let U=new(J?.nodeClass??_z.YAMLSeq)(Q.schema);if(Q.atRoot)Q.atRoot=!1;if(Q.atKey)Q.atKey=!1;let q=X.offset,Y=null;for(let{start:_,value:B}of X.items){let G=Bz.resolveProps(_,{indicator:"seq-item-ind",next:B,offset:q,onError:z,parentIndent:X.indent,startOnNewline:!0});if(!G.found)if(G.anchor||G.tag||B)if(B?.type==="block-seq")z(G.end,"BAD_INDENT","All sequence items must start at the same column");else z(q,"MISSING_CHAR","Sequence item without - indicator");else{if(Y=G.end,G.comment)U.comment=G.comment;continue}let O=B?$(Q,B,G,z):Z(Q,G.end,_,null,G,z);if(Q.schema.compat)Gz.flowIndentCheck(X.indent,B,z);q=O.range[2],U.items.push(O)}return U.range=[X.offset,q,Y??q],U}Oz.resolveBlockSeq=Vz});var m0=M((Iz)=>{function Dz($,Z,Q,X){let z="";if($){let J=!1,H="";for(let U of $){let{source:q,type:Y}=U;switch(Y){case"space":J=!0;break;case"comment":{if(Q&&!J)X(U,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let _=q.substring(1)||" ";if(!z)z=_;else z+=H+_;H="";break}case"newline":if(z)H+=q;J=!0;break;default:X(U,"UNEXPECTED_TOKEN",`Unexpected ${Y} at node end`)}Z+=q.length}}return{comment:z,offset:Z}}Iz.resolveEnd=Dz});var H6=M((Tz)=>{var Lz=b(),Mz=Y0(),z6=B0(),Rz=G0(),Fz=m0(),J6=L1(),Az=R2(),Nz=f$(),u$="Block collections are not allowed within flow collections",k$=($)=>$&&($.type==="block-map"||$.type==="block-seq");function Pz({composeNode:$,composeEmptyNode:Z},Q,X,z,J){let H=X.start.source==="{",U=H?"flow map":"flow sequence",Y=new(J?.nodeClass??(H?z6.YAMLMap:Rz.YAMLSeq))(Q.schema);Y.flow=!0;let _=Q.atRoot;if(_)Q.atRoot=!1;if(Q.atKey)Q.atKey=!1;let B=X.offset+X.start.source.length;for(let W=0;W<X.items.length;++W){let I=X.items[W],{start:L,key:A,sep:N,value:T}=I,P=J6.resolveProps(L,{flow:U,indicator:"explicit-key-ind",next:A??N?.[0],offset:B,onError:z,parentIndent:X.indent,startOnNewline:!1});if(!P.found){if(!P.anchor&&!P.tag&&!N&&!T){if(W===0&&P.comma)z(P.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${U}`);else if(W<X.items.length-1)z(P.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${U}`);if(P.comment)if(Y.comment)Y.comment+=`
66
- `+P.comment;else Y.comment=P.comment;B=P.end;continue}if(!H&&Q.options.strict&&Az.containsNewline(A))z(A,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(W===0){if(P.comma)z(P.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${U}`)}else{if(!P.comma)z(P.start,"MISSING_CHAR",`Missing , between ${U} items`);if(P.comment){let C="";$:for(let K of L)switch(K.type){case"comma":case"space":break;case"comment":C=K.source.substring(1);break $;default:break $}if(C){let K=Y.items[Y.items.length-1];if(Lz.isPair(K))K=K.value??K.key;if(K.comment)K.comment+=`
67
- `+C;else K.comment=C;P.comment=P.comment.substring(C.length+1)}}}if(!H&&!N&&!P.found){let C=T?$(Q,T,P,z):Z(Q,P.end,N,null,P,z);if(Y.items.push(C),B=C.range[2],k$(T))z(C.range,"BLOCK_IN_FLOW",u$)}else{Q.atKey=!0;let C=P.end,K=A?$(Q,A,P,z):Z(Q,C,L,null,P,z);if(k$(A))z(K.range,"BLOCK_IN_FLOW",u$);Q.atKey=!1;let w=J6.resolveProps(N??[],{flow:U,indicator:"map-value-ind",next:T,offset:K.range[2],onError:z,parentIndent:X.indent,startOnNewline:!1});if(w.found){if(!H&&!P.found&&Q.options.strict){if(N)for(let S of N){if(S===w.found)break;if(S.type==="newline"){z(S,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(P.start<w.found.offset-1024)z(w.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(T)if("source"in T&&T.source?.[0]===":")z(T,"MISSING_CHAR",`Missing space after : in ${U}`);else z(w.start,"MISSING_CHAR",`Missing , or : between ${U} items`);let v=T?$(Q,T,w,z):w.found?Z(Q,w.end,N,null,w,z):null;if(v){if(k$(T))z(v.range,"BLOCK_IN_FLOW",u$)}else if(w.comment)if(K.comment)K.comment+=`
68
- `+w.comment;else K.comment=w.comment;let m=new Mz.Pair(K,v);if(Q.options.keepSourceTokens)m.srcToken=I;if(H){let S=Y;if(Nz.mapIncludes(Q,S.items,K))z(C,"DUPLICATE_KEY","Map keys must be unique");S.items.push(m)}else{let S=new z6.YAMLMap(Q.schema);S.flow=!0,S.items.push(m);let j=(v??K).range;S.range=[K.range[0],j[1],j[2]],Y.items.push(S)}B=v?v.range[2]:w.end}}let G=H?"}":"]",[O,...D]=X.end,V=B;if(O?.source===G)V=O.offset+O.source.length;else{let W=U[0].toUpperCase()+U.substring(1),I=_?`${W} must end with a ${G}`:`${W} in block collection must be sufficiently indented and end with a ${G}`;if(z(B,_?"MISSING_CHAR":"BAD_INDENT",I),O&&O.source.length!==1)D.unshift(O)}if(D.length>0){let W=Fz.resolveEnd(D,V,Q.options.strict,z);if(W.comment)if(Y.comment)Y.comment+=`
69
- `+W.comment;else Y.comment=W.comment;Y.range=[X.offset,V,W.offset]}else Y.range=[X.offset,V,V];return Y}Tz.resolveFlowCollection=Pz});var U6=M((yz)=>{var Cz=b(),bz=x(),Ez=B0(),Sz=G0(),jz=Q6(),gz=X6(),xz=H6();function v$($,Z,Q,X,z,J){let H=Q.type==="block-map"?jz.resolveBlockMap($,Z,Q,X,J):Q.type==="block-seq"?gz.resolveBlockSeq($,Z,Q,X,J):xz.resolveFlowCollection($,Z,Q,X,J),U=H.constructor;if(z==="!"||z===U.tagName)return H.tag=U.tagName,H;if(z)H.tag=z;return H}function hz($,Z,Q,X,z){let J=X.tag,H=!J?null:Z.directives.tagName(J.source,(G)=>z(J,"TAG_RESOLVE_FAILED",G));if(Q.type==="block-seq"){let{anchor:G,newlineAfterProp:O}=X,D=G&&J?G.offset>J.offset?G:J:G??J;if(D&&(!O||O.offset<D.offset))z(D,"MISSING_CHAR","Missing newline after block sequence props")}let U=Q.type==="block-map"?"map":Q.type==="block-seq"?"seq":Q.start.source==="{"?"map":"seq";if(!J||!H||H==="!"||H===Ez.YAMLMap.tagName&&U==="map"||H===Sz.YAMLSeq.tagName&&U==="seq")return v$($,Z,Q,z,H);let q=Z.schema.tags.find((G)=>G.tag===H&&G.collection===U);if(!q){let G=Z.schema.knownTags[H];if(G?.collection===U)Z.schema.tags.push(Object.assign({},G,{default:!1})),q=G;else{if(G)z(J,"BAD_COLLECTION_TYPE",`${G.tag} used for ${U} collection, but expects ${G.collection??"scalar"}`,!0);else z(J,"TAG_RESOLVE_FAILED",`Unresolved tag: ${H}`,!0);return v$($,Z,Q,z,H)}}let Y=v$($,Z,Q,z,H,q),_=q.resolve?.(Y,(G)=>z(J,"TAG_RESOLVE_FAILED",G),Z.options)??Y,B=Cz.isNode(_)?_:new bz.Scalar(_);if(B.range=Y.range,B.tag=H,q?.format)B.format=q.format;return B}yz.composeCollection=hz});var p$=M((mz)=>{var m$=x();function uz($,Z,Q){let X=Z.offset,z=kz(Z,$.options.strict,Q);if(!z)return{value:"",type:null,comment:"",range:[X,X,X]};let J=z.mode===">"?m$.Scalar.BLOCK_FOLDED:m$.Scalar.BLOCK_LITERAL,H=Z.source?vz(Z.source):[],U=H.length;for(let V=H.length-1;V>=0;--V){let W=H[V][1];if(W===""||W==="\r")U=V;else break}if(U===0){let V=z.chomp==="+"&&H.length>0?`
70
- `.repeat(Math.max(1,H.length-1)):"",W=X+z.length;if(Z.source)W+=Z.source.length;return{value:V,type:J,comment:z.comment,range:[X,W,W]}}let q=Z.indent+z.indent,Y=Z.offset+z.length,_=0;for(let V=0;V<U;++V){let[W,I]=H[V];if(I===""||I==="\r"){if(z.indent===0&&W.length>q)q=W.length}else{if(W.length<q)Q(Y+W.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(z.indent===0)q=W.length;if(_=V,q===0&&!$.atRoot)Q(Y,"BAD_INDENT","Block scalar values in collections must be indented");break}Y+=W.length+I.length+1}for(let V=H.length-1;V>=U;--V)if(H[V][0].length>q)U=V+1;let B="",G="",O=!1;for(let V=0;V<_;++V)B+=H[V][0].slice(q)+`
71
- `;for(let V=_;V<U;++V){let[W,I]=H[V];Y+=W.length+I.length+1;let L=I[I.length-1]==="\r";if(L)I=I.slice(0,-1);if(I&&W.length<q){let N=`Block scalar lines must not be less indented than their ${z.indent?"explicit indentation indicator":"first line"}`;Q(Y-I.length-(L?2:1),"BAD_INDENT",N),W=""}if(J===m$.Scalar.BLOCK_LITERAL)B+=G+W.slice(q)+I,G=`
72
- `;else if(W.length>q||I[0]==="\t"){if(G===" ")G=`
73
- `;else if(!O&&G===`
74
- `)G=`
62
+ `}};Zz.YAMLError=R2;Zz.YAMLParseError=J9;Zz.YAMLWarning=H9;Zz.prettifyError=$z});var L1=M((Uz)=>{function Hz($,{flow:Z,indicator:Q,next:X,offset:z,onError:J,parentIndent:H,startOnNewline:U}){let q=!1,Y=U,B=U,G="",V="",W=!1,D=!1,_=null,O=null,I=null,L=null,N=null,A=null,T=null;for(let K of $){if(D){if(K.type!=="space"&&K.type!=="newline"&&K.type!=="comma")J(K.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");D=!1}if(_){if(Y&&K.type!=="comment"&&K.type!=="newline")J(_,"TAB_AS_INDENT","Tabs are not allowed as indentation");_=null}switch(K.type){case"space":if(!Z&&(Q!=="doc-start"||X?.type!=="flow-collection")&&K.source.includes("\t"))_=K;B=!0;break;case"comment":{if(!B)J(K,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let C=K.source.substring(1)||" ";if(!G)G=C;else G+=V+C;V="",Y=!1;break}case"newline":if(Y){if(G)G+=K.source;else if(!A||Q!=="seq-item-ind")q=!0}else V+=K.source;if(Y=!0,W=!0,O||I)L=K;B=!0;break;case"anchor":if(O)J(K,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(K.source.endsWith(":"))J(K.offset+K.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);O=K,T??(T=K.offset),Y=!1,B=!1,D=!0;break;case"tag":{if(I)J(K,"MULTIPLE_TAGS","A node can have at most one tag");I=K,T??(T=K.offset),Y=!1,B=!1,D=!0;break}case Q:if(O||I)J(K,"BAD_PROP_ORDER",`Anchors and tags must be after the ${K.source} indicator`);if(A)J(K,"UNEXPECTED_TOKEN",`Unexpected ${K.source} in ${Z??"collection"}`);A=K,Y=Q==="seq-item-ind"||Q==="explicit-key-ind",B=!1;break;case"comma":if(Z){if(N)J(K,"UNEXPECTED_TOKEN",`Unexpected , in ${Z}`);N=K,Y=!1,B=!1;break}default:J(K,"UNEXPECTED_TOKEN",`Unexpected ${K.type} token`),Y=!1,B=!1}}let P=$[$.length-1],w=P?P.offset+P.source.length:z;if(D&&X&&X.type!=="space"&&X.type!=="newline"&&X.type!=="comma"&&(X.type!=="scalar"||X.source!==""))J(X.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(_&&(Y&&_.indent<=H||X?.type==="block-map"||X?.type==="block-seq"))J(_,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:N,found:A,spaceBefore:q,comment:G,hasNewline:W,anchor:O,tag:I,newlineAfterProp:L,end:w,start:T??w}}Uz.resolveProps=Hz});var F2=M((Yz)=>{function k$($){if(!$)return null;switch($.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if($.source.includes(`
63
+ `))return!0;if($.end){for(let Z of $.end)if(Z.type==="newline")return!0}return!1;case"flow-collection":for(let Z of $.items){for(let Q of Z.start)if(Q.type==="newline")return!0;if(Z.sep){for(let Q of Z.sep)if(Q.type==="newline")return!0}if(k$(Z.key)||k$(Z.value))return!0}return!1;default:return!0}}Yz.containsNewline=k$});var v$=M((_z)=>{var Gz=F2();function Vz($,Z,Q){if(Z?.type==="flow-collection"){let X=Z.end[0];if(X.indent===$&&(X.source==="]"||X.source==="}")&&Gz.containsNewline(Z))Q(X,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}_z.flowIndentCheck=Vz});var u$=M((Dz)=>{var U9=b();function Oz($,Z,Q){let{uniqueKeys:X}=$.options;if(X===!1)return!1;let z=typeof X==="function"?X:(J,H)=>J===H||U9.isScalar(J)&&U9.isScalar(H)&&J.value===H.value;return Z.some((J)=>z(J.key,Q))}Dz.mapIncludes=Oz});var V9=M((Fz)=>{var q9=Y0(),Kz=G0(),Y9=L1(),Lz=F2(),B9=v$(),Mz=u$(),G9="All mapping items must start at the same column";function Rz({composeNode:$,composeEmptyNode:Z},Q,X,z,J){let U=new(J?.nodeClass??Kz.YAMLMap)(Q.schema);if(Q.atRoot)Q.atRoot=!1;let q=X.offset,Y=null;for(let B of X.items){let{start:G,key:V,sep:W,value:D}=B,_=Y9.resolveProps(G,{indicator:"explicit-key-ind",next:V??W?.[0],offset:q,onError:z,parentIndent:X.indent,startOnNewline:!0}),O=!_.found;if(O){if(V){if(V.type==="block-seq")z(q,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in V&&V.indent!==X.indent)z(q,"BAD_INDENT",G9)}if(!_.anchor&&!_.tag&&!W){if(Y=_.end,_.comment)if(U.comment)U.comment+=`
64
+ `+_.comment;else U.comment=_.comment;continue}if(_.newlineAfterProp||Lz.containsNewline(V))z(V??G[G.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(_.found?.indent!==X.indent)z(q,"BAD_INDENT",G9);Q.atKey=!0;let I=_.end,L=V?$(Q,V,_,z):Z(Q,I,G,null,_,z);if(Q.schema.compat)B9.flowIndentCheck(X.indent,V,z);if(Q.atKey=!1,Mz.mapIncludes(Q,U.items,L))z(I,"DUPLICATE_KEY","Map keys must be unique");let N=Y9.resolveProps(W??[],{indicator:"map-value-ind",next:D,offset:L.range[2],onError:z,parentIndent:X.indent,startOnNewline:!V||V.type==="block-scalar"});if(q=N.end,N.found){if(O){if(D?.type==="block-map"&&!N.hasNewline)z(q,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(Q.options.strict&&_.start<N.found.offset-1024)z(L.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let A=D?$(Q,D,N,z):Z(Q,q,W,null,N,z);if(Q.schema.compat)B9.flowIndentCheck(X.indent,D,z);q=A.range[2];let T=new q9.Pair(L,A);if(Q.options.keepSourceTokens)T.srcToken=B;U.items.push(T)}else{if(O)z(L.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(N.comment)if(L.comment)L.comment+=`
65
+ `+N.comment;else L.comment=N.comment;let A=new q9.Pair(L);if(Q.options.keepSourceTokens)A.srcToken=B;U.items.push(A)}}if(Y&&Y<q)z(Y,"IMPOSSIBLE","Map comment with trailing content");return U.range=[X.offset,q,Y??q],U}Fz.resolveBlockMap=Rz});var _9=M((wz)=>{var Az=V0(),Pz=L1(),Tz=v$();function Cz({composeNode:$,composeEmptyNode:Z},Q,X,z,J){let U=new(J?.nodeClass??Az.YAMLSeq)(Q.schema);if(Q.atRoot)Q.atRoot=!1;if(Q.atKey)Q.atKey=!1;let q=X.offset,Y=null;for(let{start:B,value:G}of X.items){let V=Pz.resolveProps(B,{indicator:"seq-item-ind",next:G,offset:q,onError:z,parentIndent:X.indent,startOnNewline:!0});if(!V.found)if(V.anchor||V.tag||G)if(G?.type==="block-seq")z(V.end,"BAD_INDENT","All sequence items must start at the same column");else z(q,"MISSING_CHAR","Sequence item without - indicator");else{if(Y=V.end,V.comment)U.comment=V.comment;continue}let W=G?$(Q,G,V,z):Z(Q,V.end,B,null,V,z);if(Q.schema.compat)Tz.flowIndentCheck(X.indent,G,z);q=W.range[2],U.items.push(W)}return U.range=[X.offset,q,Y??q],U}wz.resolveBlockSeq=Cz});var m0=M((Sz)=>{function Ez($,Z,Q,X){let z="";if($){let J=!1,H="";for(let U of $){let{source:q,type:Y}=U;switch(Y){case"space":J=!0;break;case"comment":{if(Q&&!J)X(U,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let B=q.substring(1)||" ";if(!z)z=B;else z+=H+B;H="";break}case"newline":if(z)H+=q;J=!0;break;default:X(U,"UNEXPECTED_TOKEN",`Unexpected ${Y} at node end`)}Z+=q.length}}return{comment:z,offset:Z}}Sz.resolveEnd=Ez});var D9=M((uz)=>{var gz=b(),xz=Y0(),W9=G0(),hz=V0(),yz=m0(),O9=L1(),fz=F2(),kz=u$(),m$="Block collections are not allowed within flow collections",l$=($)=>$&&($.type==="block-map"||$.type==="block-seq");function vz({composeNode:$,composeEmptyNode:Z},Q,X,z,J){let H=X.start.source==="{",U=H?"flow map":"flow sequence",Y=new(J?.nodeClass??(H?W9.YAMLMap:hz.YAMLSeq))(Q.schema);Y.flow=!0;let B=Q.atRoot;if(B)Q.atRoot=!1;if(Q.atKey)Q.atKey=!1;let G=X.offset+X.start.source.length;for(let O=0;O<X.items.length;++O){let I=X.items[O],{start:L,key:N,sep:A,value:T}=I,P=O9.resolveProps(L,{flow:U,indicator:"explicit-key-ind",next:N??A?.[0],offset:G,onError:z,parentIndent:X.indent,startOnNewline:!1});if(!P.found){if(!P.anchor&&!P.tag&&!A&&!T){if(O===0&&P.comma)z(P.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${U}`);else if(O<X.items.length-1)z(P.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${U}`);if(P.comment)if(Y.comment)Y.comment+=`
66
+ `+P.comment;else Y.comment=P.comment;G=P.end;continue}if(!H&&Q.options.strict&&fz.containsNewline(N))z(N,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(O===0){if(P.comma)z(P.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${U}`)}else{if(!P.comma)z(P.start,"MISSING_CHAR",`Missing , between ${U} items`);if(P.comment){let w="";$:for(let K of L)switch(K.type){case"comma":case"space":break;case"comment":w=K.source.substring(1);break $;default:break $}if(w){let K=Y.items[Y.items.length-1];if(gz.isPair(K))K=K.value??K.key;if(K.comment)K.comment+=`
67
+ `+w;else K.comment=w;P.comment=P.comment.substring(w.length+1)}}}if(!H&&!A&&!P.found){let w=T?$(Q,T,P,z):Z(Q,P.end,A,null,P,z);if(Y.items.push(w),G=w.range[2],l$(T))z(w.range,"BLOCK_IN_FLOW",m$)}else{Q.atKey=!0;let w=P.end,K=N?$(Q,N,P,z):Z(Q,w,L,null,P,z);if(l$(N))z(K.range,"BLOCK_IN_FLOW",m$);Q.atKey=!1;let C=O9.resolveProps(A??[],{flow:U,indicator:"map-value-ind",next:T,offset:K.range[2],onError:z,parentIndent:X.indent,startOnNewline:!1});if(C.found){if(!H&&!P.found&&Q.options.strict){if(A)for(let S of A){if(S===C.found)break;if(S.type==="newline"){z(S,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(P.start<C.found.offset-1024)z(C.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(T)if("source"in T&&T.source?.[0]===":")z(T,"MISSING_CHAR",`Missing space after : in ${U}`);else z(C.start,"MISSING_CHAR",`Missing , or : between ${U} items`);let u=T?$(Q,T,C,z):C.found?Z(Q,C.end,A,null,C,z):null;if(u){if(l$(T))z(u.range,"BLOCK_IN_FLOW",m$)}else if(C.comment)if(K.comment)K.comment+=`
68
+ `+C.comment;else K.comment=C.comment;let m=new xz.Pair(K,u);if(Q.options.keepSourceTokens)m.srcToken=I;if(H){let S=Y;if(kz.mapIncludes(Q,S.items,K))z(w,"DUPLICATE_KEY","Map keys must be unique");S.items.push(m)}else{let S=new W9.YAMLMap(Q.schema);S.flow=!0,S.items.push(m);let j=(u??K).range;S.range=[K.range[0],j[1],j[2]],Y.items.push(S)}G=u?u.range[2]:C.end}}let V=H?"}":"]",[W,...D]=X.end,_=G;if(W?.source===V)_=W.offset+W.source.length;else{let O=U[0].toUpperCase()+U.substring(1),I=B?`${O} must end with a ${V}`:`${O} in block collection must be sufficiently indented and end with a ${V}`;if(z(G,B?"MISSING_CHAR":"BAD_INDENT",I),W&&W.source.length!==1)D.unshift(W)}if(D.length>0){let O=yz.resolveEnd(D,_,Q.options.strict,z);if(O.comment)if(Y.comment)Y.comment+=`
69
+ `+O.comment;else Y.comment=O.comment;Y.range=[X.offset,_,O.offset]}else Y.range=[X.offset,_,_];return Y}uz.resolveFlowCollection=vz});var I9=M((nz)=>{var lz=b(),pz=x(),dz=G0(),cz=V0(),iz=V9(),rz=_9(),az=D9();function p$($,Z,Q,X,z,J){let H=Q.type==="block-map"?iz.resolveBlockMap($,Z,Q,X,J):Q.type==="block-seq"?rz.resolveBlockSeq($,Z,Q,X,J):az.resolveFlowCollection($,Z,Q,X,J),U=H.constructor;if(z==="!"||z===U.tagName)return H.tag=U.tagName,H;if(z)H.tag=z;return H}function sz($,Z,Q,X,z){let J=X.tag,H=!J?null:Z.directives.tagName(J.source,(V)=>z(J,"TAG_RESOLVE_FAILED",V));if(Q.type==="block-seq"){let{anchor:V,newlineAfterProp:W}=X,D=V&&J?V.offset>J.offset?V:J:V??J;if(D&&(!W||W.offset<D.offset))z(D,"MISSING_CHAR","Missing newline after block sequence props")}let U=Q.type==="block-map"?"map":Q.type==="block-seq"?"seq":Q.start.source==="{"?"map":"seq";if(!J||!H||H==="!"||H===dz.YAMLMap.tagName&&U==="map"||H===cz.YAMLSeq.tagName&&U==="seq")return p$($,Z,Q,z,H);let q=Z.schema.tags.find((V)=>V.tag===H&&V.collection===U);if(!q){let V=Z.schema.knownTags[H];if(V?.collection===U)Z.schema.tags.push(Object.assign({},V,{default:!1})),q=V;else{if(V)z(J,"BAD_COLLECTION_TYPE",`${V.tag} used for ${U} collection, but expects ${V.collection??"scalar"}`,!0);else z(J,"TAG_RESOLVE_FAILED",`Unresolved tag: ${H}`,!0);return p$($,Z,Q,z,H)}}let Y=p$($,Z,Q,z,H,q),B=q.resolve?.(Y,(V)=>z(J,"TAG_RESOLVE_FAILED",V),Z.options)??Y,G=lz.isNode(B)?B:new pz.Scalar(B);if(G.range=Y.range,G.tag=H,q?.format)G.format=q.format;return G}nz.composeCollection=sz});var c$=M((ZJ)=>{var d$=x();function tz($,Z,Q){let X=Z.offset,z=ez(Z,$.options.strict,Q);if(!z)return{value:"",type:null,comment:"",range:[X,X,X]};let J=z.mode===">"?d$.Scalar.BLOCK_FOLDED:d$.Scalar.BLOCK_LITERAL,H=Z.source?$J(Z.source):[],U=H.length;for(let _=H.length-1;_>=0;--_){let O=H[_][1];if(O===""||O==="\r")U=_;else break}if(U===0){let _=z.chomp==="+"&&H.length>0?`
70
+ `.repeat(Math.max(1,H.length-1)):"",O=X+z.length;if(Z.source)O+=Z.source.length;return{value:_,type:J,comment:z.comment,range:[X,O,O]}}let q=Z.indent+z.indent,Y=Z.offset+z.length,B=0;for(let _=0;_<U;++_){let[O,I]=H[_];if(I===""||I==="\r"){if(z.indent===0&&O.length>q)q=O.length}else{if(O.length<q)Q(Y+O.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(z.indent===0)q=O.length;if(B=_,q===0&&!$.atRoot)Q(Y,"BAD_INDENT","Block scalar values in collections must be indented");break}Y+=O.length+I.length+1}for(let _=H.length-1;_>=U;--_)if(H[_][0].length>q)U=_+1;let G="",V="",W=!1;for(let _=0;_<B;++_)G+=H[_][0].slice(q)+`
71
+ `;for(let _=B;_<U;++_){let[O,I]=H[_];Y+=O.length+I.length+1;let L=I[I.length-1]==="\r";if(L)I=I.slice(0,-1);if(I&&O.length<q){let A=`Block scalar lines must not be less indented than their ${z.indent?"explicit indentation indicator":"first line"}`;Q(Y-I.length-(L?2:1),"BAD_INDENT",A),O=""}if(J===d$.Scalar.BLOCK_LITERAL)G+=V+O.slice(q)+I,V=`
72
+ `;else if(O.length>q||I[0]==="\t"){if(V===" ")V=`
73
+ `;else if(!W&&V===`
74
+ `)V=`
75
75
 
76
- `;B+=G+W.slice(q)+I,G=`
77
- `,O=!0}else if(I==="")if(G===`
78
- `)B+=`
79
- `;else G=`
80
- `;else B+=G+I,G=" ",O=!1}switch(z.chomp){case"-":break;case"+":for(let V=U;V<H.length;++V)B+=`
81
- `+H[V][0].slice(q);if(B[B.length-1]!==`
82
- `)B+=`
83
- `;break;default:B+=`
84
- `}let D=X+z.length+Z.source.length;return{value:B,type:J,comment:z.comment,range:[X,D,D]}}function kz({offset:$,props:Z},Q,X){if(Z[0].type!=="block-scalar-header")return X(Z[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:z}=Z[0],J=z[0],H=0,U="",q=-1;for(let G=1;G<z.length;++G){let O=z[G];if(!U&&(O==="-"||O==="+"))U=O;else{let D=Number(O);if(!H&&D)H=D;else if(q===-1)q=$+G}}if(q!==-1)X(q,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${z}`);let Y=!1,_="",B=z.length;for(let G=1;G<Z.length;++G){let O=Z[G];switch(O.type){case"space":Y=!0;case"newline":B+=O.source.length;break;case"comment":if(Q&&!Y)X(O,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");B+=O.source.length,_=O.source.substring(1);break;case"error":X(O,"UNEXPECTED_TOKEN",O.message),B+=O.source.length;break;default:{let D=`Unexpected token in block scalar header: ${O.type}`;X(O,"UNEXPECTED_TOKEN",D);let V=O.source;if(V&&typeof V==="string")B+=V.length}}}return{mode:J,indent:H,chomp:U,comment:_,length:B}}function vz($){let Z=$.split(/\n( *)/),Q=Z[0],X=Q.match(/^( *)/),J=[X?.[1]?[X[1],Q.slice(X[1].length)]:["",Q]];for(let H=1;H<Z.length;H+=2)J.push([Z[H],Z[H+1]]);return J}mz.resolveBlockScalar=uz});var d$=M((oz)=>{var l$=x(),lz=m0();function dz($,Z,Q){let{offset:X,type:z,source:J,end:H}=$,U,q,Y=(G,O,D)=>Q(X+G,O,D);switch(z){case"scalar":U=l$.Scalar.PLAIN,q=cz(J,Y);break;case"single-quoted-scalar":U=l$.Scalar.QUOTE_SINGLE,q=iz(J,Y);break;case"double-quoted-scalar":U=l$.Scalar.QUOTE_DOUBLE,q=az(J,Y);break;default:return Q($,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${z}`),{value:"",type:null,comment:"",range:[X,X+J.length,X+J.length]}}let _=X+J.length,B=lz.resolveEnd(H,_,Z,Q);return{value:q,type:U,comment:B.comment,range:[X,_,B.offset]}}function cz($,Z){let Q="";switch($[0]){case"\t":Q="a tab character";break;case",":Q="flow indicator character ,";break;case"%":Q="directive indicator character %";break;case"|":case">":{Q=`block scalar indicator ${$[0]}`;break}case"@":case"`":{Q=`reserved character ${$[0]}`;break}}if(Q)Z(0,"BAD_SCALAR_START",`Plain value cannot start with ${Q}`);return q6($)}function iz($,Z){if($[$.length-1]!=="'"||$.length===1)Z($.length,"MISSING_CHAR","Missing closing 'quote");return q6($.slice(1,-1)).replace(/''/g,"'")}function q6($){let Z,Q;try{Z=new RegExp(`(.*?)(?<![ ])[ ]*\r?
76
+ `;G+=V+O.slice(q)+I,V=`
77
+ `,W=!0}else if(I==="")if(V===`
78
+ `)G+=`
79
+ `;else V=`
80
+ `;else G+=V+I,V=" ",W=!1}switch(z.chomp){case"-":break;case"+":for(let _=U;_<H.length;++_)G+=`
81
+ `+H[_][0].slice(q);if(G[G.length-1]!==`
82
+ `)G+=`
83
+ `;break;default:G+=`
84
+ `}let D=X+z.length+Z.source.length;return{value:G,type:J,comment:z.comment,range:[X,D,D]}}function ez({offset:$,props:Z},Q,X){if(Z[0].type!=="block-scalar-header")return X(Z[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:z}=Z[0],J=z[0],H=0,U="",q=-1;for(let V=1;V<z.length;++V){let W=z[V];if(!U&&(W==="-"||W==="+"))U=W;else{let D=Number(W);if(!H&&D)H=D;else if(q===-1)q=$+V}}if(q!==-1)X(q,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${z}`);let Y=!1,B="",G=z.length;for(let V=1;V<Z.length;++V){let W=Z[V];switch(W.type){case"space":Y=!0;case"newline":G+=W.source.length;break;case"comment":if(Q&&!Y)X(W,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");G+=W.source.length,B=W.source.substring(1);break;case"error":X(W,"UNEXPECTED_TOKEN",W.message),G+=W.source.length;break;default:{let D=`Unexpected token in block scalar header: ${W.type}`;X(W,"UNEXPECTED_TOKEN",D);let _=W.source;if(_&&typeof _==="string")G+=_.length}}}return{mode:J,indent:H,chomp:U,comment:B,length:G}}function $J($){let Z=$.split(/\n( *)/),Q=Z[0],X=Q.match(/^( *)/),J=[X?.[1]?[X[1],Q.slice(X[1].length)]:["",Q]];for(let H=1;H<Z.length;H+=2)J.push([Z[H],Z[H+1]]);return J}ZJ.resolveBlockScalar=tz});var r$=M((GJ)=>{var i$=x(),XJ=m0();function zJ($,Z,Q){let{offset:X,type:z,source:J,end:H}=$,U,q,Y=(V,W,D)=>Q(X+V,W,D);switch(z){case"scalar":U=i$.Scalar.PLAIN,q=JJ(J,Y);break;case"single-quoted-scalar":U=i$.Scalar.QUOTE_SINGLE,q=HJ(J,Y);break;case"double-quoted-scalar":U=i$.Scalar.QUOTE_DOUBLE,q=UJ(J,Y);break;default:return Q($,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${z}`),{value:"",type:null,comment:"",range:[X,X+J.length,X+J.length]}}let B=X+J.length,G=XJ.resolveEnd(H,B,Z,Q);return{value:q,type:U,comment:G.comment,range:[X,B,G.offset]}}function JJ($,Z){let Q="";switch($[0]){case"\t":Q="a tab character";break;case",":Q="flow indicator character ,";break;case"%":Q="directive indicator character %";break;case"|":case">":{Q=`block scalar indicator ${$[0]}`;break}case"@":case"`":{Q=`reserved character ${$[0]}`;break}}if(Q)Z(0,"BAD_SCALAR_START",`Plain value cannot start with ${Q}`);return K9($)}function HJ($,Z){if($[$.length-1]!=="'"||$.length===1)Z($.length,"MISSING_CHAR","Missing closing 'quote");return K9($.slice(1,-1)).replace(/''/g,"'")}function K9($){let Z,Q;try{Z=new RegExp(`(.*?)(?<![ ])[ ]*\r?
85
85
  `,"sy"),Q=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
86
86
  `,"sy")}catch{Z=/(.*?)[ \t]*\r?\n/sy,Q=/[ \t]*(.*?)[ \t]*\r?\n/sy}let X=Z.exec($);if(!X)return $;let z=X[1],J=" ",H=Z.lastIndex;Q.lastIndex=H;while(X=Q.exec($)){if(X[1]==="")if(J===`
87
87
  `)z+=J;else J=`
88
- `;else z+=J+X[1],J=" ";H=Q.lastIndex}let U=/[ \t]*(.*)/sy;return U.lastIndex=H,X=U.exec($),z+J+(X?.[1]??"")}function az($,Z){let Q="";for(let X=1;X<$.length-1;++X){let z=$[X];if(z==="\r"&&$[X+1]===`
88
+ `;else z+=J+X[1],J=" ";H=Q.lastIndex}let U=/[ \t]*(.*)/sy;return U.lastIndex=H,X=U.exec($),z+J+(X?.[1]??"")}function UJ($,Z){let Q="";for(let X=1;X<$.length-1;++X){let z=$[X];if(z==="\r"&&$[X+1]===`
89
89
  `)continue;if(z===`
90
- `){let{fold:J,offset:H}=rz($,X);Q+=J,X=H}else if(z==="\\"){let J=$[++X],H=sz[J];if(H)Q+=H;else if(J===`
90
+ `){let{fold:J,offset:H}=qJ($,X);Q+=J,X=H}else if(z==="\\"){let J=$[++X],H=YJ[J];if(H)Q+=H;else if(J===`
91
91
  `){J=$[X+1];while(J===" "||J==="\t")J=$[++X+1]}else if(J==="\r"&&$[X+1]===`
92
- `){J=$[++X+1];while(J===" "||J==="\t")J=$[++X+1]}else if(J==="x"||J==="u"||J==="U"){let U={x:2,u:4,U:8}[J];Q+=nz($,X+1,U,Z),X+=U}else{let U=$.substr(X-1,2);Z(X-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${U}`),Q+=U}}else if(z===" "||z==="\t"){let J=X,H=$[X+1];while(H===" "||H==="\t")H=$[++X+1];if(H!==`
92
+ `){J=$[++X+1];while(J===" "||J==="\t")J=$[++X+1]}else if(J==="x"||J==="u"||J==="U"){let U=J==="x"?2:J==="u"?4:8;Q+=BJ($,X+1,U,Z),X+=U}else{let U=$.substr(X-1,2);Z(X-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${U}`),Q+=U}}else if(z===" "||z==="\t"){let J=X,H=$[X+1];while(H===" "||H==="\t")H=$[++X+1];if(H!==`
93
93
  `&&!(H==="\r"&&$[X+2]===`
94
- `))Q+=X>J?$.slice(J,X+1):z}else Q+=z}if($[$.length-1]!=='"'||$.length===1)Z($.length,"MISSING_CHAR",'Missing closing "quote');return Q}function rz($,Z){let Q="",X=$[Z+1];while(X===" "||X==="\t"||X===`
94
+ `))Q+=X>J?$.slice(J,X+1):z}else Q+=z}if($[$.length-1]!=='"'||$.length===1)Z($.length,"MISSING_CHAR",'Missing closing "quote');return Q}function qJ($,Z){let Q="",X=$[Z+1];while(X===" "||X==="\t"||X===`
95
95
  `||X==="\r"){if(X==="\r"&&$[Z+2]!==`
96
96
  `)break;if(X===`
97
97
  `)Q+=`
98
- `;Z+=1,X=$[Z+1]}if(!Q)Q=" ";return{fold:Q,offset:Z}}var sz={"0":"\x00",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
99
- `,r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function nz($,Z,Q,X){let z=$.substr(Z,Q),H=z.length===Q&&/^[0-9a-fA-F]+$/.test(z)?parseInt(z,16):NaN;if(isNaN(H)){let U=$.substr(Z-2,Q+2);return X(Z-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${U}`),U}return String.fromCodePoint(H)}oz.resolveFlowScalar=dz});var _6=M((zJ)=>{var F0=b(),Y6=x(),ez=p$(),$J=d$();function ZJ($,Z,Q,X){let{value:z,type:J,comment:H,range:U}=Z.type==="block-scalar"?ez.resolveBlockScalar($,Z,X):$J.resolveFlowScalar(Z,$.options.strict,X),q=Q?$.directives.tagName(Q.source,(B)=>X(Q,"TAG_RESOLVE_FAILED",B)):null,Y;if($.options.stringKeys&&$.atKey)Y=$.schema[F0.SCALAR];else if(q)Y=QJ($.schema,z,q,Q,X);else if(Z.type==="scalar")Y=XJ($,z,Z,X);else Y=$.schema[F0.SCALAR];let _;try{let B=Y.resolve(z,(G)=>X(Q??Z,"TAG_RESOLVE_FAILED",G),$.options);_=F0.isScalar(B)?B:new Y6.Scalar(B)}catch(B){let G=B instanceof Error?B.message:String(B);X(Q??Z,"TAG_RESOLVE_FAILED",G),_=new Y6.Scalar(z)}if(_.range=U,_.source=z,J)_.type=J;if(q)_.tag=q;if(Y.format)_.format=Y.format;if(H)_.comment=H;return _}function QJ($,Z,Q,X,z){if(Q==="!")return $[F0.SCALAR];let J=[];for(let U of $.tags)if(!U.collection&&U.tag===Q)if(U.default&&U.test)J.push(U);else return U;for(let U of J)if(U.test?.test(Z))return U;let H=$.knownTags[Q];if(H&&!H.collection)return $.tags.push(Object.assign({},H,{default:!1,test:void 0})),H;return z(X,"TAG_RESOLVE_FAILED",`Unresolved tag: ${Q}`,Q!=="tag:yaml.org,2002:str"),$[F0.SCALAR]}function XJ({atKey:$,directives:Z,schema:Q},X,z,J){let H=Q.tags.find((U)=>(U.default===!0||$&&U.default==="key")&&U.test?.test(X))||Q[F0.SCALAR];if(Q.compat){let U=Q.compat.find((q)=>q.default&&q.test?.test(X))??Q[F0.SCALAR];if(H.tag!==U.tag){let q=Z.tagString(H.tag),Y=Z.tagString(U.tag),_=`Value may be parsed as either ${q} or ${Y}`;J(z,"TAG_RESOLVE_FAILED",_,!0)}}return H}zJ.composeScalar=ZJ});var B6=M((UJ)=>{function HJ($,Z,Q){if(Z){Q??(Q=Z.length);for(let X=Q-1;X>=0;--X){let z=Z[X];switch(z.type){case"space":case"comment":case"newline":$-=z.source.length;continue}z=Z[++X];while(z?.type==="space")$+=z.source.length,z=Z[++X];break}}return $}UJ.emptyScalarPosition=HJ});var O6=M((DJ)=>{var YJ=Q1(),_J=b(),BJ=U6(),G6=_6(),GJ=m0(),VJ=B6(),OJ={composeNode:V6,composeEmptyNode:c$};function V6($,Z,Q,X){let z=$.atKey,{spaceBefore:J,comment:H,anchor:U,tag:q}=Q,Y,_=!0;switch(Z.type){case"alias":if(Y=WJ($,Z,X),U||q)X(Z,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":if(Y=G6.composeScalar($,Z,q,X),U)Y.anchor=U.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":try{if(Y=BJ.composeCollection(OJ,$,Z,Q,X),U)Y.anchor=U.source.substring(1)}catch(B){let G=B instanceof Error?B.message:String(B);X(Z,"RESOURCE_EXHAUSTION",G)}break;default:{let B=Z.type==="error"?Z.message:`Unsupported token (type: ${Z.type})`;X(Z,"UNEXPECTED_TOKEN",B),_=!1}}if(Y??(Y=c$($,Z.offset,void 0,null,Q,X)),U&&Y.anchor==="")X(U,"BAD_ALIAS","Anchor cannot be an empty string");if(z&&$.options.stringKeys&&(!_J.isScalar(Y)||typeof Y.value!=="string"||Y.tag&&Y.tag!=="tag:yaml.org,2002:str"))X(q??Z,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(J)Y.spaceBefore=!0;if(H)if(Z.type==="scalar"&&Z.source==="")Y.comment=H;else Y.commentBefore=H;if($.options.keepSourceTokens&&_)Y.srcToken=Z;return Y}function c$($,Z,Q,X,{spaceBefore:z,comment:J,anchor:H,tag:U,end:q},Y){let _={type:"scalar",offset:VJ.emptyScalarPosition(Z,Q,X),indent:-1,source:""},B=G6.composeScalar($,_,U,Y);if(H){if(B.anchor=H.source.substring(1),B.anchor==="")Y(H,"BAD_ALIAS","Anchor cannot be an empty string")}if(z)B.spaceBefore=!0;if(J)B.comment=J,B.range[2]=q;return B}function WJ({options:$},{offset:Z,source:Q,end:X},z){let J=new YJ.Alias(Q.substring(1));if(J.source==="")z(Z,"BAD_ALIAS","Alias cannot be an empty string");if(J.source.endsWith(":"))z(Z+Q.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let H=Z+Q.length,U=GJ.resolveEnd(X,H,$.strict,z);if(J.range=[Z,H,U.offset],U.comment)J.comment=U.comment;return J}DJ.composeEmptyNode=c$;DJ.composeNode=V6});var D6=M((AJ)=>{var LJ=I1(),W6=O6(),MJ=m0(),RJ=L1();function FJ($,Z,{offset:Q,start:X,value:z,end:J},H){let U=Object.assign({_directives:Z},$),q=new LJ.Document(void 0,U),Y={atKey:!1,atRoot:!0,directives:q.directives,options:q.options,schema:q.schema},_=RJ.resolveProps(X,{indicator:"doc-start",next:z??J?.[0],offset:Q,onError:H,parentIndent:0,startOnNewline:!0});if(_.found){if(q.directives.docStart=!0,z&&(z.type==="block-map"||z.type==="block-seq")&&!_.hasNewline)H(_.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}q.contents=z?W6.composeNode(Y,z,_,H):W6.composeEmptyNode(Y,_.end,X,null,_,H);let B=q.contents.range[2],G=MJ.resolveEnd(J,B,!1,H);if(G.comment)q.comment=G.comment;return q.range=[Q,B,G.offset],q}AJ.composeDoc=FJ});var i$=M((EJ)=>{var PJ=s0("process"),TJ=n2(),wJ=I1(),M1=K1(),I6=b(),CJ=D6(),bJ=m0();function R1($){if(typeof $==="number")return[$,$+1];if(Array.isArray($))return $.length===2?$:[$[0],$[1]];let{offset:Z,source:Q}=$;return[Z,Z+(typeof Q==="string"?Q.length:1)]}function K6($){let Z="",Q=!1,X=!1;for(let z=0;z<$.length;++z){let J=$[z];switch(J[0]){case"#":Z+=(Z===""?"":X?`
98
+ `;Z+=1,X=$[Z+1]}if(!Q)Q=" ";return{fold:Q,offset:Z}}var YJ={"0":"\x00",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
99
+ `,r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function BJ($,Z,Q,X){let z=$.substr(Z,Q),H=z.length===Q&&/^[0-9a-fA-F]+$/.test(z)?parseInt(z,16):NaN;try{return String.fromCodePoint(H)}catch{let U=$.substr(Z-2,Q+2);return X(Z-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${U}`),U}}GJ.resolveFlowScalar=zJ});var M9=M((KJ)=>{var F0=b(),L9=x(),_J=c$(),WJ=r$();function OJ($,Z,Q,X){let{value:z,type:J,comment:H,range:U}=Z.type==="block-scalar"?_J.resolveBlockScalar($,Z,X):WJ.resolveFlowScalar(Z,$.options.strict,X),q=Q?$.directives.tagName(Q.source,(G)=>X(Q,"TAG_RESOLVE_FAILED",G)):null,Y;if($.options.stringKeys&&$.atKey)Y=$.schema[F0.SCALAR];else if(q)Y=DJ($.schema,z,q,Q,X);else if(Z.type==="scalar")Y=IJ($,z,Z,X);else Y=$.schema[F0.SCALAR];let B;try{let G=Y.resolve(z,(V)=>X(Q??Z,"TAG_RESOLVE_FAILED",V),$.options);B=F0.isScalar(G)?G:new L9.Scalar(G)}catch(G){let V=G instanceof Error?G.message:String(G);X(Q??Z,"TAG_RESOLVE_FAILED",V),B=new L9.Scalar(z)}if(B.range=U,B.source=z,J)B.type=J;if(q)B.tag=q;if(Y.format)B.format=Y.format;if(H)B.comment=H;return B}function DJ($,Z,Q,X,z){if(Q==="!")return $[F0.SCALAR];let J=[];for(let U of $.tags)if(!U.collection&&U.tag===Q)if(U.default&&U.test)J.push(U);else return U;for(let U of J)if(U.test?.test(Z))return U;let H=$.knownTags[Q];if(H&&!H.collection)return $.tags.push(Object.assign({},H,{default:!1,test:void 0})),H;return z(X,"TAG_RESOLVE_FAILED",`Unresolved tag: ${Q}`,Q!=="tag:yaml.org,2002:str"),$[F0.SCALAR]}function IJ({atKey:$,directives:Z,schema:Q},X,z,J){let H=Q.tags.find((U)=>(U.default===!0||$&&U.default==="key")&&U.test?.test(X))||Q[F0.SCALAR];if(Q.compat){let U=Q.compat.find((q)=>q.default&&q.test?.test(X))??Q[F0.SCALAR];if(H.tag!==U.tag){let q=Z.tagString(H.tag),Y=Z.tagString(U.tag),B=`Value may be parsed as either ${q} or ${Y}`;J(z,"TAG_RESOLVE_FAILED",B,!0)}}return H}KJ.composeScalar=OJ});var R9=M((RJ)=>{function MJ($,Z,Q){if(Z){Q??(Q=Z.length);for(let X=Q-1;X>=0;--X){let z=Z[X];switch(z.type){case"space":case"comment":case"newline":$-=z.source.length;continue}z=Z[++X];while(z?.type==="space")$+=z.source.length,z=Z[++X];break}}return $}RJ.emptyScalarPosition=MJ});var A9=M((EJ)=>{var NJ=X1(),AJ=b(),PJ=I9(),F9=M9(),TJ=m0(),CJ=R9(),wJ={composeNode:N9,composeEmptyNode:a$};function N9($,Z,Q,X){let z=$.atKey,{spaceBefore:J,comment:H,anchor:U,tag:q}=Q,Y,B=!0;switch(Z.type){case"alias":if(Y=bJ($,Z,X),U||q)X(Z,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":if(Y=F9.composeScalar($,Z,q,X),U)Y.anchor=U.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":try{if(Y=PJ.composeCollection(wJ,$,Z,Q,X),U)Y.anchor=U.source.substring(1)}catch(G){let V=G instanceof Error?G.message:String(G);X(Z,"RESOURCE_EXHAUSTION",V)}break;default:{let G=Z.type==="error"?Z.message:`Unsupported token (type: ${Z.type})`;X(Z,"UNEXPECTED_TOKEN",G),B=!1}}if(Y??(Y=a$($,Z.offset,void 0,null,Q,X)),U&&Y.anchor==="")X(U,"BAD_ALIAS","Anchor cannot be an empty string");if(z&&$.options.stringKeys&&(!AJ.isScalar(Y)||typeof Y.value!=="string"||Y.tag&&Y.tag!=="tag:yaml.org,2002:str"))X(q??Z,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(J)Y.spaceBefore=!0;if(H)if(Z.type==="scalar"&&Z.source==="")Y.comment=H;else Y.commentBefore=H;if($.options.keepSourceTokens&&B)Y.srcToken=Z;return Y}function a$($,Z,Q,X,{spaceBefore:z,comment:J,anchor:H,tag:U,end:q},Y){let B={type:"scalar",offset:CJ.emptyScalarPosition(Z,Q,X),indent:-1,source:""},G=F9.composeScalar($,B,U,Y);if(H){if(G.anchor=H.source.substring(1),G.anchor==="")Y(H,"BAD_ALIAS","Anchor cannot be an empty string")}if(z)G.spaceBefore=!0;if(J)G.comment=J,G.range[2]=q;return G}function bJ({options:$},{offset:Z,source:Q,end:X},z){let J=new NJ.Alias(Q.substring(1));if(J.source==="")z(Z,"BAD_ALIAS","Alias cannot be an empty string");if(J.source.endsWith(":"))z(Z+Q.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let H=Z+Q.length,U=TJ.resolveEnd(X,H,$.strict,z);if(J.range=[Z,H,U.offset],U.comment)J.comment=U.comment;return J}EJ.composeEmptyNode=a$;EJ.composeNode=N9});var T9=M((fJ)=>{var gJ=I1(),P9=A9(),xJ=m0(),hJ=L1();function yJ($,Z,{offset:Q,start:X,value:z,end:J},H){let U=Object.assign({_directives:Z},$),q=new gJ.Document(void 0,U),Y={atKey:!1,atRoot:!0,directives:q.directives,options:q.options,schema:q.schema},B=hJ.resolveProps(X,{indicator:"doc-start",next:z??J?.[0],offset:Q,onError:H,parentIndent:0,startOnNewline:!0});if(B.found){if(q.directives.docStart=!0,z&&(z.type==="block-map"||z.type==="block-seq")&&!B.hasNewline)H(B.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}q.contents=z?P9.composeNode(Y,z,B,H):P9.composeEmptyNode(Y,B.end,X,null,B,H);let G=q.contents.range[2],V=xJ.resolveEnd(J,G,!1,H);if(V.comment)q.comment=V.comment;return q.range=[Q,G,V.offset],q}fJ.composeDoc=yJ});var s$=M((dJ)=>{var vJ=n0("process"),uJ=e2(),mJ=I1(),M1=K1(),C9=b(),lJ=T9(),pJ=m0();function R1($){if(typeof $==="number")return[$,$+1];if(Array.isArray($))return $.length===2?$:[$[0],$[1]];let{offset:Z,source:Q}=$;return[Z,Z+(typeof Q==="string"?Q.length:1)]}function w9($){let Z="",Q=!1,X=!1;for(let z=0;z<$.length;++z){let J=$[z];switch(J[0]){case"#":Z+=(Z===""?"":X?`
100
100
 
101
101
  `:`
102
- `)+(J.substring(1)||" "),Q=!0,X=!1;break;case"%":if($[z+1]?.[0]!=="#")z+=1;Q=!1;break;default:if(!Q)X=!0;Q=!1}}return{comment:Z,afterEmptyLine:X}}class L6{constructor($={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(Z,Q,X,z)=>{let J=R1(Z);if(z)this.warnings.push(new M1.YAMLWarning(J,Q,X));else this.errors.push(new M1.YAMLParseError(J,Q,X))},this.directives=new TJ.Directives({version:$.version||"1.2"}),this.options=$}decorate($,Z){let{comment:Q,afterEmptyLine:X}=K6(this.prelude);if(Q){let z=$.contents;if(Z)$.comment=$.comment?`${$.comment}
103
- ${Q}`:Q;else if(X||$.directives.docStart||!z)$.commentBefore=Q;else if(I6.isCollection(z)&&!z.flow&&z.items.length>0){let J=z.items[0];if(I6.isPair(J))J=J.key;let H=J.commentBefore;J.commentBefore=H?`${Q}
102
+ `)+(J.substring(1)||" "),Q=!0,X=!1;break;case"%":if($[z+1]?.[0]!=="#")z+=1;Q=!1;break;default:if(!Q)X=!0;Q=!1}}return{comment:Z,afterEmptyLine:X}}class b9{constructor($={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(Z,Q,X,z)=>{let J=R1(Z);if(z)this.warnings.push(new M1.YAMLWarning(J,Q,X));else this.errors.push(new M1.YAMLParseError(J,Q,X))},this.directives=new uJ.Directives({version:$.version||"1.2"}),this.options=$}decorate($,Z){let{comment:Q,afterEmptyLine:X}=w9(this.prelude);if(Q){let z=$.contents;if(Z)$.comment=$.comment?`${$.comment}
103
+ ${Q}`:Q;else if(X||$.directives.docStart||!z)$.commentBefore=Q;else if(C9.isCollection(z)&&!z.flow&&z.items.length>0){let J=z.items[0];if(C9.isPair(J))J=J.key;let H=J.commentBefore;J.commentBefore=H?`${Q}
104
104
  ${H}`:Q}else{let J=z.commentBefore;z.commentBefore=J?`${Q}
105
- ${J}`:Q}}if(Z)Array.prototype.push.apply($.errors,this.errors),Array.prototype.push.apply($.warnings,this.warnings);else $.errors=this.errors,$.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:K6(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose($,Z=!1,Q=-1){for(let X of $)yield*this.next(X);yield*this.end(Z,Q)}*next($){if(PJ.env.LOG_STREAM)console.dir($,{depth:null});switch($.type){case"directive":this.directives.add($.source,(Z,Q,X)=>{let z=R1($);z[0]+=Z,this.onError(z,"BAD_DIRECTIVE",Q,X)}),this.prelude.push($.source),this.atDirectives=!0;break;case"document":{let Z=CJ.composeDoc(this.options,this.directives,$,this.onError);if(this.atDirectives&&!Z.directives.docStart)this.onError($,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate(Z,!1),this.doc)yield this.doc;this.doc=Z,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push($.source);break;case"error":{let Z=$.source?`${$.message}: ${JSON.stringify($.source)}`:$.message,Q=new M1.YAMLParseError(R1($),"UNEXPECTED_TOKEN",Z);if(this.atDirectives||!this.doc)this.errors.push(Q);else this.doc.errors.push(Q);break}case"doc-end":{if(!this.doc){this.errors.push(new M1.YAMLParseError(R1($),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let Z=bJ.resolveEnd($.end,$.offset+$.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),Z.comment){let Q=this.doc.comment;this.doc.comment=Q?`${Q}
106
- ${Z.comment}`:Z.comment}this.doc.range[2]=Z.offset;break}default:this.errors.push(new M1.YAMLParseError(R1($),"UNEXPECTED_TOKEN",`Unsupported token ${$.type}`))}}*end($=!1,Z=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if($){let Q=Object.assign({_directives:this.directives},this.options),X=new wJ.Document(void 0,Q);if(this.atDirectives)this.onError(Z,"MISSING_CHAR","Missing directives-end indicator line");X.range=[0,Z,Z],this.decorate(X,!1),yield X}}}EJ.Composer=L6});var F6=M((kJ)=>{var jJ=p$(),gJ=d$(),xJ=K1(),M6=H1();function hJ($,Z=!0,Q){if($){let X=(z,J,H)=>{let U=typeof z==="number"?z:Array.isArray(z)?z[0]:z.offset;if(Q)Q(U,J,H);else throw new xJ.YAMLParseError([U,U+1],J,H)};switch($.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return gJ.resolveFlowScalar($,Z,X);case"block-scalar":return jJ.resolveBlockScalar({options:{strict:Z}},$,X)}}return null}function yJ($,Z){let{implicitKey:Q=!1,indent:X,inFlow:z=!1,offset:J=-1,type:H="PLAIN"}=Z,U=M6.stringifyString({type:H,value:$},{implicitKey:Q,indent:X>0?" ".repeat(X):"",inFlow:z,options:{blockQuote:!0,lineWidth:-1}}),q=Z.end??[{type:"newline",offset:-1,indent:X,source:`
105
+ ${J}`:Q}}if(Z){for(let z=0;z<this.errors.length;++z)$.errors.push(this.errors[z]);for(let z=0;z<this.warnings.length;++z)$.warnings.push(this.warnings[z])}else $.errors=this.errors,$.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:w9(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose($,Z=!1,Q=-1){for(let X of $)yield*this.next(X);yield*this.end(Z,Q)}*next($){if(vJ.env.LOG_STREAM)console.dir($,{depth:null});switch($.type){case"directive":this.directives.add($.source,(Z,Q,X)=>{let z=R1($);z[0]+=Z,this.onError(z,"BAD_DIRECTIVE",Q,X)}),this.prelude.push($.source),this.atDirectives=!0;break;case"document":{let Z=lJ.composeDoc(this.options,this.directives,$,this.onError);if(this.atDirectives&&!Z.directives.docStart)this.onError($,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate(Z,!1),this.doc)yield this.doc;this.doc=Z,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push($.source);break;case"error":{let Z=$.source?`${$.message}: ${JSON.stringify($.source)}`:$.message,Q=new M1.YAMLParseError(R1($),"UNEXPECTED_TOKEN",Z);if(this.atDirectives||!this.doc)this.errors.push(Q);else this.doc.errors.push(Q);break}case"doc-end":{if(!this.doc){this.errors.push(new M1.YAMLParseError(R1($),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let Z=pJ.resolveEnd($.end,$.offset+$.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),Z.comment){let Q=this.doc.comment;this.doc.comment=Q?`${Q}
106
+ ${Z.comment}`:Z.comment}this.doc.range[2]=Z.offset;break}default:this.errors.push(new M1.YAMLParseError(R1($),"UNEXPECTED_TOKEN",`Unsupported token ${$.type}`))}}*end($=!1,Z=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if($){let Q=Object.assign({_directives:this.directives},this.options),X=new mJ.Document(void 0,Q);if(this.atDirectives)this.onError(Z,"MISSING_CHAR","Missing directives-end indicator line");X.range=[0,Z,Z],this.decorate(X,!1),yield X}}}dJ.Composer=b9});var j9=M((eJ)=>{var iJ=c$(),rJ=r$(),aJ=K1(),E9=U1();function sJ($,Z=!0,Q){if($){let X=(z,J,H)=>{let U=typeof z==="number"?z:Array.isArray(z)?z[0]:z.offset;if(Q)Q(U,J,H);else throw new aJ.YAMLParseError([U,U+1],J,H)};switch($.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return rJ.resolveFlowScalar($,Z,X);case"block-scalar":return iJ.resolveBlockScalar({options:{strict:Z}},$,X)}}return null}function nJ($,Z){let{implicitKey:Q=!1,indent:X,inFlow:z=!1,offset:J=-1,type:H="PLAIN"}=Z,U=E9.stringifyString({type:H,value:$},{implicitKey:Q,indent:X>0?" ".repeat(X):"",inFlow:z,options:{blockQuote:!0,lineWidth:-1}}),q=Z.end??[{type:"newline",offset:-1,indent:X,source:`
107
107
  `}];switch(U[0]){case"|":case">":{let Y=U.indexOf(`
108
- `),_=U.substring(0,Y),B=U.substring(Y+1)+`
109
- `,G=[{type:"block-scalar-header",offset:J,indent:X,source:_}];if(!R6(G,q))G.push({type:"newline",offset:-1,indent:X,source:`
110
- `});return{type:"block-scalar",offset:J,indent:X,props:G,source:B}}case'"':return{type:"double-quoted-scalar",offset:J,indent:X,source:U,end:q};case"'":return{type:"single-quoted-scalar",offset:J,indent:X,source:U,end:q};default:return{type:"scalar",offset:J,indent:X,source:U,end:q}}}function fJ($,Z,Q={}){let{afterKey:X=!1,implicitKey:z=!1,inFlow:J=!1,type:H}=Q,U="indent"in $?$.indent:null;if(X&&typeof U==="number")U+=2;if(!H)switch($.type){case"single-quoted-scalar":H="QUOTE_SINGLE";break;case"double-quoted-scalar":H="QUOTE_DOUBLE";break;case"block-scalar":{let Y=$.props[0];if(Y.type!=="block-scalar-header")throw Error("Invalid block scalar header");H=Y.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:H="PLAIN"}let q=M6.stringifyString({type:H,value:Z},{implicitKey:z||U===null,indent:U!==null&&U>0?" ".repeat(U):"",inFlow:J,options:{blockQuote:!0,lineWidth:-1}});switch(q[0]){case"|":case">":uJ($,q);break;case'"':a$($,q,"double-quoted-scalar");break;case"'":a$($,q,"single-quoted-scalar");break;default:a$($,q,"scalar")}}function uJ($,Z){let Q=Z.indexOf(`
108
+ `),B=U.substring(0,Y),G=U.substring(Y+1)+`
109
+ `,V=[{type:"block-scalar-header",offset:J,indent:X,source:B}];if(!S9(V,q))V.push({type:"newline",offset:-1,indent:X,source:`
110
+ `});return{type:"block-scalar",offset:J,indent:X,props:V,source:G}}case'"':return{type:"double-quoted-scalar",offset:J,indent:X,source:U,end:q};case"'":return{type:"single-quoted-scalar",offset:J,indent:X,source:U,end:q};default:return{type:"scalar",offset:J,indent:X,source:U,end:q}}}function oJ($,Z,Q={}){let{afterKey:X=!1,implicitKey:z=!1,inFlow:J=!1,type:H}=Q,U="indent"in $?$.indent:null;if(X&&typeof U==="number")U+=2;if(!H)switch($.type){case"single-quoted-scalar":H="QUOTE_SINGLE";break;case"double-quoted-scalar":H="QUOTE_DOUBLE";break;case"block-scalar":{let Y=$.props[0];if(Y.type!=="block-scalar-header")throw Error("Invalid block scalar header");H=Y.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:H="PLAIN"}let q=E9.stringifyString({type:H,value:Z},{implicitKey:z||U===null,indent:U!==null&&U>0?" ".repeat(U):"",inFlow:J,options:{blockQuote:!0,lineWidth:-1}});switch(q[0]){case"|":case">":tJ($,q);break;case'"':n$($,q,"double-quoted-scalar");break;case"'":n$($,q,"single-quoted-scalar");break;default:n$($,q,"scalar")}}function tJ($,Z){let Q=Z.indexOf(`
111
111
  `),X=Z.substring(0,Q),z=Z.substring(Q+1)+`
112
- `;if($.type==="block-scalar"){let J=$.props[0];if(J.type!=="block-scalar-header")throw Error("Invalid block scalar header");J.source=X,$.source=z}else{let{offset:J}=$,H="indent"in $?$.indent:-1,U=[{type:"block-scalar-header",offset:J,indent:H,source:X}];if(!R6(U,"end"in $?$.end:void 0))U.push({type:"newline",offset:-1,indent:H,source:`
113
- `});for(let q of Object.keys($))if(q!=="type"&&q!=="offset")delete $[q];Object.assign($,{type:"block-scalar",indent:H,props:U,source:z})}}function R6($,Z){if(Z)for(let Q of Z)switch(Q.type){case"space":case"comment":$.push(Q);break;case"newline":return $.push(Q),!0}return!1}function a$($,Z,Q){switch($.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":$.type=Q,$.source=Z;break;case"block-scalar":{let X=$.props.slice(1),z=Z.length;if($.props[0].type==="block-scalar-header")z-=$.props[0].source.length;for(let J of X)J.offset+=z;delete $.props,Object.assign($,{type:Q,source:Z,end:X});break}case"block-map":case"block-seq":{let z={type:"newline",offset:$.offset+Z.length,indent:$.indent,source:`
114
- `};delete $.items,Object.assign($,{type:Q,source:Z,end:[z]});break}default:{let X="indent"in $?$.indent:-1,z="end"in $&&Array.isArray($.end)?$.end.filter((J)=>J.type==="space"||J.type==="comment"||J.type==="newline"):[];for(let J of Object.keys($))if(J!=="type"&&J!=="offset")delete $[J];Object.assign($,{type:Q,indent:X,source:Z,end:z})}}}kJ.createScalarToken=yJ;kJ.resolveAsScalar=hJ;kJ.setScalarValue=fJ});var A6=M((dJ)=>{var lJ=($)=>("type"in $)?A2($):F2($);function A2($){switch($.type){case"block-scalar":{let Z="";for(let Q of $.props)Z+=A2(Q);return Z+$.source}case"block-map":case"block-seq":{let Z="";for(let Q of $.items)Z+=F2(Q);return Z}case"flow-collection":{let Z=$.start.source;for(let Q of $.items)Z+=F2(Q);for(let Q of $.end)Z+=Q.source;return Z}case"document":{let Z=F2($);if($.end)for(let Q of $.end)Z+=Q.source;return Z}default:{let Z=$.source;if("end"in $&&$.end)for(let Q of $.end)Z+=Q.source;return Z}}}function F2({start:$,key:Z,sep:Q,value:X}){let z="";for(let J of $)z+=J.source;if(Z)z+=A2(Z);if(Q)for(let J of Q)z+=J.source;if(X)z+=A2(X);return z}dJ.stringify=lJ});var T6=M((aJ)=>{var r$=Symbol("break visit"),iJ=Symbol("skip children"),N6=Symbol("remove item");function A0($,Z){if("type"in $&&$.type==="document")$={start:$.start,value:$.value};P6(Object.freeze([]),$,Z)}A0.BREAK=r$;A0.SKIP=iJ;A0.REMOVE=N6;A0.itemAtPath=($,Z)=>{let Q=$;for(let[X,z]of Z){let J=Q?.[X];if(J&&"items"in J)Q=J.items[z];else return}return Q};A0.parentCollection=($,Z)=>{let Q=A0.itemAtPath($,Z.slice(0,-1)),X=Z[Z.length-1][0],z=Q?.[X];if(z&&"items"in z)return z;throw Error("Parent collection not found")};function P6($,Z,Q){let X=Q(Z,$);if(typeof X==="symbol")return X;for(let z of["key","value"]){let J=Z[z];if(J&&"items"in J){for(let H=0;H<J.items.length;++H){let U=P6(Object.freeze($.concat([[z,H]])),J.items[H],Q);if(typeof U==="number")H=U-1;else if(U===r$)return r$;else if(U===N6)J.items.splice(H,1),H-=1}if(typeof X==="function"&&z==="key")X=X(Z,$)}}return typeof X==="function"?X(Z,$):X}aJ.visit=A0});var N2=M((ZH)=>{var s$=F6(),sJ=A6(),nJ=T6(),n$="\uFEFF",o$="\x02",t$="\x18",e$="\x1F",oJ=($)=>!!$&&("items"in $),tJ=($)=>!!$&&($.type==="scalar"||$.type==="single-quoted-scalar"||$.type==="double-quoted-scalar"||$.type==="block-scalar");function eJ($){switch($){case n$:return"<BOM>";case o$:return"<DOC>";case t$:return"<FLOW_END>";case e$:return"<SCALAR>";default:return JSON.stringify($)}}function $H($){switch($){case n$:return"byte-order-mark";case o$:return"doc-mode";case t$:return"flow-error-end";case e$:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
112
+ `;if($.type==="block-scalar"){let J=$.props[0];if(J.type!=="block-scalar-header")throw Error("Invalid block scalar header");J.source=X,$.source=z}else{let{offset:J}=$,H="indent"in $?$.indent:-1,U=[{type:"block-scalar-header",offset:J,indent:H,source:X}];if(!S9(U,"end"in $?$.end:void 0))U.push({type:"newline",offset:-1,indent:H,source:`
113
+ `});for(let q of Object.keys($))if(q!=="type"&&q!=="offset")delete $[q];Object.assign($,{type:"block-scalar",indent:H,props:U,source:z})}}function S9($,Z){if(Z)for(let Q of Z)switch(Q.type){case"space":case"comment":$.push(Q);break;case"newline":return $.push(Q),!0}return!1}function n$($,Z,Q){switch($.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":$.type=Q,$.source=Z;break;case"block-scalar":{let X=$.props.slice(1),z=Z.length;if($.props[0].type==="block-scalar-header")z-=$.props[0].source.length;for(let J of X)J.offset+=z;delete $.props,Object.assign($,{type:Q,source:Z,end:X});break}case"block-map":case"block-seq":{let z={type:"newline",offset:$.offset+Z.length,indent:$.indent,source:`
114
+ `};delete $.items,Object.assign($,{type:Q,source:Z,end:[z]});break}default:{let X="indent"in $?$.indent:-1,z="end"in $&&Array.isArray($.end)?$.end.filter((J)=>J.type==="space"||J.type==="comment"||J.type==="newline"):[];for(let J of Object.keys($))if(J!=="type"&&J!=="offset")delete $[J];Object.assign($,{type:Q,indent:X,source:Z,end:z})}}}eJ.createScalarToken=nJ;eJ.resolveAsScalar=sJ;eJ.setScalarValue=oJ});var g9=M((zH)=>{var XH=($)=>("type"in $)?A2($):N2($);function A2($){switch($.type){case"block-scalar":{let Z="";for(let Q of $.props)Z+=A2(Q);return Z+$.source}case"block-map":case"block-seq":{let Z="";for(let Q of $.items)Z+=N2(Q);return Z}case"flow-collection":{let Z=$.start.source;for(let Q of $.items)Z+=N2(Q);for(let Q of $.end)Z+=Q.source;return Z}case"document":{let Z=N2($);if($.end)for(let Q of $.end)Z+=Q.source;return Z}default:{let Z=$.source;if("end"in $&&$.end)for(let Q of $.end)Z+=Q.source;return Z}}}function N2({start:$,key:Z,sep:Q,value:X}){let z="";for(let J of $)z+=J.source;if(Z)z+=A2(Z);if(Q)for(let J of Q)z+=J.source;if(X)z+=A2(X);return z}zH.stringify=XH});var y9=M((UH)=>{var o$=Symbol("break visit"),HH=Symbol("skip children"),x9=Symbol("remove item");function N0($,Z){if("type"in $&&$.type==="document")$={start:$.start,value:$.value};h9(Object.freeze([]),$,Z)}N0.BREAK=o$;N0.SKIP=HH;N0.REMOVE=x9;N0.itemAtPath=($,Z)=>{let Q=$;for(let[X,z]of Z){let J=Q?.[X];if(J&&"items"in J)Q=J.items[z];else return}return Q};N0.parentCollection=($,Z)=>{let Q=N0.itemAtPath($,Z.slice(0,-1)),X=Z[Z.length-1][0],z=Q?.[X];if(z&&"items"in z)return z;throw Error("Parent collection not found")};function h9($,Z,Q){let X=Q(Z,$);if(typeof X==="symbol")return X;for(let z of["key","value"]){let J=Z[z];if(J&&"items"in J){for(let H=0;H<J.items.length;++H){let U=h9(Object.freeze($.concat([[z,H]])),J.items[H],Q);if(typeof U==="number")H=U-1;else if(U===o$)return o$;else if(U===x9)J.items.splice(H,1),H-=1}if(typeof X==="function"&&z==="key")X=X(Z,$)}}return typeof X==="function"?X(Z,$):X}UH.visit=N0});var P2=M((OH)=>{var t$=j9(),YH=g9(),BH=y9(),e$="\uFEFF",$8="\x02",Z8="\x18",Q8="\x1F",GH=($)=>!!$&&("items"in $),VH=($)=>!!$&&($.type==="scalar"||$.type==="single-quoted-scalar"||$.type==="double-quoted-scalar"||$.type==="block-scalar");function _H($){switch($){case e$:return"<BOM>";case $8:return"<DOC>";case Z8:return"<FLOW_END>";case Q8:return"<SCALAR>";default:return JSON.stringify($)}}function WH($){switch($){case e$:return"byte-order-mark";case $8:return"doc-mode";case Z8:return"flow-error-end";case Q8:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
115
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($[0]){case" ":case"\t":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}ZH.createScalarToken=s$.createScalarToken;ZH.resolveAsScalar=s$.resolveAsScalar;ZH.setScalarValue=s$.setScalarValue;ZH.stringify=sJ.stringify;ZH.visit=nJ.visit;ZH.BOM=n$;ZH.DOCUMENT=o$;ZH.FLOW_END=t$;ZH.SCALAR=e$;ZH.isCollection=oJ;ZH.isScalar=tJ;ZH.prettyToken=eJ;ZH.tokenType=$H});var Z8=M((IH)=>{var F1=N2();function i($){switch($){case void 0:case" ":case`
117
- `:case"\r":case"\t":return!0;default:return!1}}var w6=new Set("0123456789ABCDEFabcdef"),WH=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),P2=new Set(",[]{}"),DH=new Set(` ,[]{}
118
- \r `),$8=($)=>!$||DH.has($);class C6{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($,Z=!1){if($){if(typeof $!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+$:$,this.lineEndPos=null}this.atEnd=!Z;let Q=this.next??"stream";while(Q&&(Z||this.hasChars(1)))Q=yield*this.parseNext(Q)}atLineEnd(){let $=this.pos,Z=this.buffer[$];while(Z===" "||Z==="\t")Z=this.buffer[++$];if(!Z||Z==="#"||Z===`
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($[0]){case" ":case"\t":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}OH.createScalarToken=t$.createScalarToken;OH.resolveAsScalar=t$.resolveAsScalar;OH.setScalarValue=t$.setScalarValue;OH.stringify=YH.stringify;OH.visit=BH.visit;OH.BOM=e$;OH.DOCUMENT=$8;OH.FLOW_END=Z8;OH.SCALAR=Q8;OH.isCollection=GH;OH.isScalar=VH;OH.prettyToken=_H;OH.tokenType=WH});var z8=M((SH)=>{var F1=P2();function i($){switch($){case void 0:case" ":case`
117
+ `:case"\r":case"\t":return!0;default:return!1}}var f9=new Set("0123456789ABCDEFabcdef"),bH=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),T2=new Set(",[]{}"),EH=new Set(` ,[]{}
118
+ \r `),X8=($)=>!$||EH.has($);class k9{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($,Z=!1){if($){if(typeof $!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+$:$,this.lineEndPos=null}this.atEnd=!Z;let Q=this.next??"stream";while(Q&&(Z||this.hasChars(1)))Q=yield*this.parseNext(Q)}atLineEnd(){let $=this.pos,Z=this.buffer[$];while(Z===" "||Z==="\t")Z=this.buffer[++$];if(!Z||Z==="#"||Z===`
119
119
  `)return!0;if(Z==="\r")return this.buffer[$+1]===`
120
120
  `;return!1}charAt($){return this.buffer[this.pos+$]}continueScalar($){let Z=this.buffer[$];if(this.indentNext>0){let Q=0;while(Z===" ")Z=this.buffer[++Q+$];if(Z==="\r"){let X=this.buffer[Q+$+1];if(X===`
121
121
  `||!X&&!this.atEnd)return $+Q+1}return Z===`
122
122
  `||Q>=this.indentNext||!Z&&!this.atEnd?$+Q:-1}if(Z==="-"||Z==="."){let Q=this.buffer.substr($,3);if((Q==="---"||Q==="...")&&i(this.buffer[$+3]))return-1}return $}getLine(){let $=this.lineEndPos;if(typeof $!=="number"||$!==-1&&$<this.pos)$=this.buffer.indexOf(`
123
- `,this.pos),this.lineEndPos=$;if($===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[$-1]==="\r")$-=1;return this.buffer.substring(this.pos,$)}hasChars($){return this.pos+$<=this.buffer.length}setNext($){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=$,null}peek($){return this.buffer.substr(this.pos,$)}*parseNext($){switch($){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 $=this.getLine();if($===null)return this.setNext("stream");if($[0]===F1.BOM)yield*this.pushCount(1),$=$.substring(1);if($[0]==="%"){let Z=$.length,Q=$.indexOf("#");while(Q!==-1){let z=$[Q-1];if(z===" "||z==="\t"){Z=Q-1;break}else Q=$.indexOf("#",Q+1)}while(!0){let z=$[Z-1];if(z===" "||z==="\t")Z-=1;else break}let X=(yield*this.pushCount(Z))+(yield*this.pushSpaces(!0));return yield*this.pushCount($.length-X),this.pushNewline(),"stream"}if(this.atLineEnd()){let Z=yield*this.pushSpaces(!0);return yield*this.pushCount($.length-Z),yield*this.pushNewline(),"stream"}return yield F1.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let $=this.charAt(0);if(!$&&!this.atEnd)return this.setNext("line-start");if($==="-"||$==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let Z=this.peek(3);if((Z==="---"||Z==="...")&&i(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,Z==="---"?"doc":"stream"}if(this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!i(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){let[$,Z]=this.peek(2);if(!Z&&!this.atEnd)return this.setNext("block-start");if(($==="-"||$==="?"||$===":")&&i(Z)){let Q=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=Q,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let $=this.getLine();if($===null)return this.setNext("doc");let Z=yield*this.pushIndicators();switch($[Z]){case"#":yield*this.pushCount($.length-Z);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($8),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return Z+=yield*this.parseBlockScalarHeader(),Z+=yield*this.pushSpaces(!0),yield*this.pushCount($.length-Z),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let $,Z,Q=-1;do{if($=yield*this.pushNewline(),$>0)Z=yield*this.pushSpaces(!1),this.indentValue=Q=Z;else Z=0;Z+=yield*this.pushSpaces(!0)}while($+Z>0);let X=this.getLine();if(X===null)return this.setNext("flow");if(Q!==-1&&Q<this.indentNext&&X[0]!=="#"||Q===0&&(X.startsWith("---")||X.startsWith("..."))&&i(X[3])){if(!(Q===this.indentNext-1&&this.flowLevel===1&&(X[0]==="]"||X[0]==="}")))return this.flowLevel=0,yield F1.FLOW_END,yield*this.parseLineStart()}let z=0;while(X[z]===",")z+=yield*this.pushCount(1),z+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(z+=yield*this.pushIndicators(),X[z]){case void 0:return"flow";case"#":return yield*this.pushCount(X.length-z),"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($8),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let J=this.charAt(1);if(this.flowKey||i(J)||J===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let $=this.charAt(0),Z=this.buffer.indexOf($,this.pos+1);if($==="'")while(Z!==-1&&this.buffer[Z+1]==="'")Z=this.buffer.indexOf("'",Z+2);else while(Z!==-1){let z=0;while(this.buffer[Z-1-z]==="\\")z+=1;if(z%2===0)break;Z=this.buffer.indexOf('"',Z+1)}let Q=this.buffer.substring(0,Z),X=Q.indexOf(`
123
+ `,this.pos),this.lineEndPos=$;if($===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[$-1]==="\r")$-=1;return this.buffer.substring(this.pos,$)}hasChars($){return this.pos+$<=this.buffer.length}setNext($){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=$,null}peek($){return this.buffer.substr(this.pos,$)}*parseNext($){switch($){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 $=this.getLine();if($===null)return this.setNext("stream");if($[0]===F1.BOM)yield*this.pushCount(1),$=$.substring(1);if($[0]==="%"){let Z=$.length,Q=$.indexOf("#");while(Q!==-1){let z=$[Q-1];if(z===" "||z==="\t"){Z=Q-1;break}else Q=$.indexOf("#",Q+1)}while(!0){let z=$[Z-1];if(z===" "||z==="\t")Z-=1;else break}let X=(yield*this.pushCount(Z))+(yield*this.pushSpaces(!0));return yield*this.pushCount($.length-X),this.pushNewline(),"stream"}if(this.atLineEnd()){let Z=yield*this.pushSpaces(!0);return yield*this.pushCount($.length-Z),yield*this.pushNewline(),"stream"}return yield F1.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let $=this.charAt(0);if(!$&&!this.atEnd)return this.setNext("line-start");if($==="-"||$==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let Z=this.peek(3);if((Z==="---"||Z==="...")&&i(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,Z==="---"?"doc":"stream"}if(this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!i(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){let[$,Z]=this.peek(2);if(!Z&&!this.atEnd)return this.setNext("block-start");if(($==="-"||$==="?"||$===":")&&i(Z)){let Q=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=Q,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let $=this.getLine();if($===null)return this.setNext("doc");let Z=yield*this.pushIndicators();switch($[Z]){case"#":yield*this.pushCount($.length-Z);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(X8),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return Z+=yield*this.parseBlockScalarHeader(),Z+=yield*this.pushSpaces(!0),yield*this.pushCount($.length-Z),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let $,Z,Q=-1;do{if($=yield*this.pushNewline(),$>0)Z=yield*this.pushSpaces(!1),this.indentValue=Q=Z;else Z=0;Z+=yield*this.pushSpaces(!0)}while($+Z>0);let X=this.getLine();if(X===null)return this.setNext("flow");if(Q!==-1&&Q<this.indentNext&&X[0]!=="#"||Q===0&&(X.startsWith("---")||X.startsWith("..."))&&i(X[3])){if(!(Q===this.indentNext-1&&this.flowLevel===1&&(X[0]==="]"||X[0]==="}")))return this.flowLevel=0,yield F1.FLOW_END,yield*this.parseLineStart()}let z=0;while(X[z]===",")z+=yield*this.pushCount(1),z+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(z+=yield*this.pushIndicators(),X[z]){case void 0:return"flow";case"#":return yield*this.pushCount(X.length-z),"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(X8),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let J=this.charAt(1);if(this.flowKey||i(J)||J===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let $=this.charAt(0),Z=this.buffer.indexOf($,this.pos+1);if($==="'")while(Z!==-1&&this.buffer[Z+1]==="'")Z=this.buffer.indexOf("'",Z+2);else while(Z!==-1){let z=0;while(this.buffer[Z-1-z]==="\\")z+=1;if(z%2===0)break;Z=this.buffer.indexOf('"',Z+1)}let Q=this.buffer.substring(0,Z),X=Q.indexOf(`
124
124
  `,this.pos);if(X!==-1){while(X!==-1){let z=this.continueScalar(X+1);if(z===-1)break;X=Q.indexOf(`
125
125
  `,z)}if(X!==-1)Z=X-(Q[X-1]==="\r"?2:1)}if(Z===-1){if(!this.atEnd)return this.setNext("quoted-scalar");Z=this.buffer.length}return yield*this.pushToIndex(Z+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let $=this.pos;while(!0){let Z=this.buffer[++$];if(Z==="+")this.blockScalarKeep=!0;else if(Z>"0"&&Z<="9")this.blockScalarIndent=Number(Z)-1;else if(Z!=="-")break}return yield*this.pushUntil((Z)=>i(Z)||Z==="#")}*parseBlockScalar(){let $=this.pos-1,Z=0,Q;$:for(let z=this.pos;Q=this.buffer[z];++z)switch(Q){case" ":Z+=1;break;case`
126
126
  `:$=z,Z=0;break;case"\r":{let J=this.buffer[z+1];if(!J&&!this.atEnd)return this.setNext("block-scalar");if(J===`
127
127
  `)break}default:break $}if(!Q&&!this.atEnd)return this.setNext("block-scalar");if(Z>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=Z;else this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let z=this.continueScalar($+1);if(z===-1)break;$=this.buffer.indexOf(`
128
128
  `,z)}while($!==-1);if($===-1){if(!this.atEnd)return this.setNext("block-scalar");$=this.buffer.length}}let X=$+1;Q=this.buffer[X];while(Q===" ")Q=this.buffer[++X];if(Q==="\t"){while(Q==="\t"||Q===" "||Q==="\r"||Q===`
129
129
  `)Q=this.buffer[++X];$=X-1}else if(!this.blockScalarKeep)do{let z=$-1,J=this.buffer[z];if(J==="\r")J=this.buffer[--z];let H=z;while(J===" ")J=this.buffer[--z];if(J===`
130
- `&&z>=this.pos&&z+1+Z>H)$=z;else break}while(!0);return yield F1.SCALAR,yield*this.pushToIndex($+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let $=this.flowLevel>0,Z=this.pos-1,Q=this.pos-1,X;while(X=this.buffer[++Q])if(X===":"){let z=this.buffer[Q+1];if(i(z)||$&&P2.has(z))break;Z=Q}else if(i(X)){let z=this.buffer[Q+1];if(X==="\r")if(z===`
130
+ `&&z>=this.pos&&z+1+Z>H)$=z;else break}while(!0);return yield F1.SCALAR,yield*this.pushToIndex($+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let $=this.flowLevel>0,Z=this.pos-1,Q=this.pos-1,X;while(X=this.buffer[++Q])if(X===":"){let z=this.buffer[Q+1];if(i(z)||$&&T2.has(z))break;Z=Q}else if(i(X)){let z=this.buffer[Q+1];if(X==="\r")if(z===`
131
131
  `)Q+=1,X=`
132
- `,z=this.buffer[Q+1];else Z=Q;if(z==="#"||$&&P2.has(z))break;if(X===`
133
- `){let J=this.continueScalar(Q+1);if(J===-1)break;Q=Math.max(Q,J-2)}}else{if($&&P2.has(X))break;Z=Q}if(!X&&!this.atEnd)return this.setNext("plain-scalar");return yield F1.SCALAR,yield*this.pushToIndex(Z+1,!0),$?"flow":"doc"}*pushCount($){if($>0)return yield this.buffer.substr(this.pos,$),this.pos+=$,$;return 0}*pushToIndex($,Z){let Q=this.buffer.slice(this.pos,$);if(Q)return yield Q,this.pos+=Q.length,Q.length;else if(Z)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil($8))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let $=this.flowLevel>0,Z=this.charAt(1);if(i(Z)||$&&P2.has(Z)){if(!$)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=!1;return(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let $=this.pos+2,Z=this.buffer[$];while(!i(Z)&&Z!==">")Z=this.buffer[++$];return yield*this.pushToIndex(Z===">"?$+1:$,!1)}else{let $=this.pos+1,Z=this.buffer[$];while(Z)if(WH.has(Z))Z=this.buffer[++$];else if(Z==="%"&&w6.has(this.buffer[$+1])&&w6.has(this.buffer[$+2]))Z=this.buffer[$+=3];else break;return yield*this.pushToIndex($,!1)}}*pushNewline(){let $=this.buffer[this.pos];if($===`
132
+ `,z=this.buffer[Q+1];else Z=Q;if(z==="#"||$&&T2.has(z))break;if(X===`
133
+ `){let J=this.continueScalar(Q+1);if(J===-1)break;Q=Math.max(Q,J-2)}}else{if($&&T2.has(X))break;Z=Q}if(!X&&!this.atEnd)return this.setNext("plain-scalar");return yield F1.SCALAR,yield*this.pushToIndex(Z+1,!0),$?"flow":"doc"}*pushCount($){if($>0)return yield this.buffer.substr(this.pos,$),this.pos+=$,$;return 0}*pushToIndex($,Z){let Q=this.buffer.slice(this.pos,$);if(Q)return yield Q,this.pos+=Q.length,Q.length;else if(Z)yield"";return 0}*pushIndicators(){let $=0;$:while(!0){switch(this.charAt(0)){case"!":$+=yield*this.pushTag(),$+=yield*this.pushSpaces(!0);continue $;case"&":$+=yield*this.pushUntil(X8),$+=yield*this.pushSpaces(!0);continue $;case"-":case"?":case":":{let Z=this.flowLevel>0,Q=this.charAt(1);if(i(Q)||Z&&T2.has(Q)){if(!Z)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=!1;$+=yield*this.pushCount(1),$+=yield*this.pushSpaces(!0);continue $}}}break $}return $}*pushTag(){if(this.charAt(1)==="<"){let $=this.pos+2,Z=this.buffer[$];while(!i(Z)&&Z!==">")Z=this.buffer[++$];return yield*this.pushToIndex(Z===">"?$+1:$,!1)}else{let $=this.pos+1,Z=this.buffer[$];while(Z)if(bH.has(Z))Z=this.buffer[++$];else if(Z==="%"&&f9.has(this.buffer[$+1])&&f9.has(this.buffer[$+2]))Z=this.buffer[$+=3];else break;return yield*this.pushToIndex($,!1)}}*pushNewline(){let $=this.buffer[this.pos];if($===`
134
134
  `)return yield*this.pushCount(1);else if($==="\r"&&this.charAt(1)===`
135
- `)return yield*this.pushCount(2);else return 0}*pushSpaces($){let Z=this.pos-1,Q;do Q=this.buffer[++Z];while(Q===" "||$&&Q==="\t");let X=Z-this.pos;if(X>0)yield this.buffer.substr(this.pos,X),this.pos=Z;return X}*pushUntil($){let Z=this.pos,Q=this.buffer[Z];while(!$(Q))Q=this.buffer[++Z];return yield*this.pushToIndex(Z,!1)}}IH.Lexer=C6});var Q8=M((LH)=>{class b6{constructor(){this.lineStarts=[],this.addNewLine=($)=>this.lineStarts.push($),this.linePos=($)=>{let Z=0,Q=this.lineStarts.length;while(Z<Q){let z=Z+Q>>1;if(this.lineStarts[z]<$)Z=z+1;else Q=z}if(this.lineStarts[Z]===$)return{line:Z+1,col:1};if(Z===0)return{line:0,col:$};let X=this.lineStarts[Z-1];return{line:Z,col:$-X+1}}}}LH.LineCounter=b6});var X8=M((AH)=>{var RH=s0("process"),E6=N2(),FH=Z8();function V0($,Z){for(let Q=0;Q<$.length;++Q)if($[Q].type===Z)return!0;return!1}function S6($){for(let Z=0;Z<$.length;++Z)switch($[Z].type){case"space":case"comment":case"newline":break;default:return Z}return-1}function g6($){switch($?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function T2($){switch($.type){case"document":return $.start;case"block-map":{let Z=$.items[$.items.length-1];return Z.sep??Z.start}case"block-seq":return $.items[$.items.length-1].start;default:return[]}}function p0($){if($.length===0)return[];let Z=$.length;$:while(--Z>=0)switch($[Z].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break $}while($[++Z]?.type==="space");return $.splice(Z,$.length)}function j6($){if($.start.type==="flow-seq-start"){for(let Z of $.items)if(Z.sep&&!Z.value&&!V0(Z.start,"explicit-key-ind")&&!V0(Z.sep,"map-value-ind")){if(Z.key)Z.value=Z.key;if(delete Z.key,g6(Z.value))if(Z.value.end)Array.prototype.push.apply(Z.value.end,Z.sep);else Z.value.end=Z.sep;else Array.prototype.push.apply(Z.start,Z.sep);delete Z.sep}}}class x6{constructor($){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new FH.Lexer,this.onNewLine=$}*parse($,Z=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let Q of this.lexer.lex($,Z))yield*this.next(Q);if(!Z)yield*this.end()}*next($){if(this.source=$,RH.env.LOG_TOKENS)console.log("|",E6.prettyToken($));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=$.length;return}let Z=E6.tokenType($);if(!Z){let Q=`Not a YAML token: ${$}`;yield*this.pop({type:"error",offset:this.offset,message:Q,source:$}),this.offset+=$.length}else if(Z==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=Z,yield*this.step(),Z){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+$.length);break;case"space":if(this.atNewLine&&$[0]===" ")this.indent+=$.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=$.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=$.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let $=this.peek(1);if(this.type==="doc-end"&&$?.type!=="doc-end"){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!$)return yield*this.stream();switch($.type){case"document":return yield*this.document($);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar($);case"block-scalar":return yield*this.blockScalar($);case"block-map":return yield*this.blockMap($);case"block-seq":return yield*this.blockSequence($);case"flow-collection":return yield*this.flowCollection($);case"doc-end":return yield*this.documentEnd($)}yield*this.pop()}peek($){return this.stack[this.stack.length-$]}*pop($){let Z=$??this.stack.pop();if(!Z)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield Z;else{let Q=this.peek(1);if(Z.type==="block-scalar")Z.indent="indent"in Q?Q.indent:0;else if(Z.type==="flow-collection"&&Q.type==="document")Z.indent=0;if(Z.type==="flow-collection")j6(Z);switch(Q.type){case"document":Q.value=Z;break;case"block-scalar":Q.props.push(Z);break;case"block-map":{let X=Q.items[Q.items.length-1];if(X.value){Q.items.push({start:[],key:Z,sep:[]}),this.onKeyLine=!0;return}else if(X.sep)X.value=Z;else{Object.assign(X,{key:Z,sep:[]}),this.onKeyLine=!X.explicitKey;return}break}case"block-seq":{let X=Q.items[Q.items.length-1];if(X.value)Q.items.push({start:[],value:Z});else X.value=Z;break}case"flow-collection":{let X=Q.items[Q.items.length-1];if(!X||X.value)Q.items.push({start:[],key:Z,sep:[]});else if(X.sep)X.value=Z;else Object.assign(X,{key:Z,sep:[]});return}default:yield*this.pop(),yield*this.pop(Z)}if((Q.type==="document"||Q.type==="block-map"||Q.type==="block-seq")&&(Z.type==="block-map"||Z.type==="block-seq")){let X=Z.items[Z.items.length-1];if(X&&!X.sep&&!X.value&&X.start.length>0&&S6(X.start)===-1&&(Z.indent===0||X.start.every((z)=>z.type!=="comment"||z.indent<Z.indent))){if(Q.type==="document")Q.end=X.start;else Q.items.push({start:X.start});Z.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 $={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")$.start.push(this.sourceToken);this.stack.push($);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document($){if($.value)return yield*this.lineEnd($);switch(this.type){case"doc-start":{if(S6($.start)!==-1)yield*this.pop(),yield*this.step();else $.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":$.start.push(this.sourceToken);return}let Z=this.startBlockValue($);if(Z)this.stack.push(Z);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar($){if(this.type==="map-value-ind"){let Z=T2(this.peek(2)),Q=p0(Z),X;if($.end)X=$.end,X.push(this.sourceToken),delete $.end;else X=[this.sourceToken];let z={type:"block-map",offset:$.offset,indent:$.indent,items:[{start:Q,key:$,sep:X}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=z}else yield*this.lineEnd($)}*blockScalar($){switch(this.type){case"space":case"comment":case"newline":$.props.push(this.sourceToken);return;case"scalar":if($.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let Z=this.source.indexOf(`
135
+ `)return yield*this.pushCount(2);else return 0}*pushSpaces($){let Z=this.pos-1,Q;do Q=this.buffer[++Z];while(Q===" "||$&&Q==="\t");let X=Z-this.pos;if(X>0)yield this.buffer.substr(this.pos,X),this.pos=Z;return X}*pushUntil($){let Z=this.pos,Q=this.buffer[Z];while(!$(Q))Q=this.buffer[++Z];return yield*this.pushToIndex(Z,!1)}}SH.Lexer=k9});var J8=M((gH)=>{class v9{constructor(){this.lineStarts=[],this.addNewLine=($)=>this.lineStarts.push($),this.linePos=($)=>{let Z=0,Q=this.lineStarts.length;while(Z<Q){let z=Z+Q>>1;if(this.lineStarts[z]<$)Z=z+1;else Q=z}if(this.lineStarts[Z]===$)return{line:Z+1,col:1};if(Z===0)return{line:0,col:$};let X=this.lineStarts[Z-1];return{line:Z,col:$-X+1}}}}gH.LineCounter=v9});var H8=M((fH)=>{var hH=n0("process"),u9=P2(),yH=z8();function _0($,Z){for(let Q=0;Q<$.length;++Q)if($[Q].type===Z)return!0;return!1}function m9($){for(let Z=0;Z<$.length;++Z)switch($[Z].type){case"space":case"comment":case"newline":break;default:return Z}return-1}function p9($){switch($?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function C2($){switch($.type){case"document":return $.start;case"block-map":{let Z=$.items[$.items.length-1];return Z.sep??Z.start}case"block-seq":return $.items[$.items.length-1].start;default:return[]}}function l0($){if($.length===0)return[];let Z=$.length;$:while(--Z>=0)switch($[Z].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break $}while($[++Z]?.type==="space");return $.splice(Z,$.length)}function w2($,Z){if(Z.length<1e5)Array.prototype.push.apply($,Z);else for(let Q=0;Q<Z.length;++Q)$.push(Z[Q])}function l9($){if($.start.type==="flow-seq-start"){for(let Z of $.items)if(Z.sep&&!Z.value&&!_0(Z.start,"explicit-key-ind")&&!_0(Z.sep,"map-value-ind")){if(Z.key)Z.value=Z.key;if(delete Z.key,p9(Z.value))if(Z.value.end)w2(Z.value.end,Z.sep);else Z.value.end=Z.sep;else w2(Z.start,Z.sep);delete Z.sep}}}class d9{constructor($){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new yH.Lexer,this.onNewLine=$}*parse($,Z=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let Q of this.lexer.lex($,Z))yield*this.next(Q);if(!Z)yield*this.end()}*next($){if(this.source=$,hH.env.LOG_TOKENS)console.log("|",u9.prettyToken($));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=$.length;return}let Z=u9.tokenType($);if(!Z){let Q=`Not a YAML token: ${$}`;yield*this.pop({type:"error",offset:this.offset,message:Q,source:$}),this.offset+=$.length}else if(Z==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=Z,yield*this.step(),Z){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+$.length);break;case"space":if(this.atNewLine&&$[0]===" ")this.indent+=$.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=$.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=$.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let $=this.peek(1);if(this.type==="doc-end"&&$?.type!=="doc-end"){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!$)return yield*this.stream();switch($.type){case"document":return yield*this.document($);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar($);case"block-scalar":return yield*this.blockScalar($);case"block-map":return yield*this.blockMap($);case"block-seq":return yield*this.blockSequence($);case"flow-collection":return yield*this.flowCollection($);case"doc-end":return yield*this.documentEnd($)}yield*this.pop()}peek($){return this.stack[this.stack.length-$]}*pop($){let Z=$??this.stack.pop();if(!Z)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield Z;else{let Q=this.peek(1);if(Z.type==="block-scalar")Z.indent="indent"in Q?Q.indent:0;else if(Z.type==="flow-collection"&&Q.type==="document")Z.indent=0;if(Z.type==="flow-collection")l9(Z);switch(Q.type){case"document":Q.value=Z;break;case"block-scalar":Q.props.push(Z);break;case"block-map":{let X=Q.items[Q.items.length-1];if(X.value){Q.items.push({start:[],key:Z,sep:[]}),this.onKeyLine=!0;return}else if(X.sep)X.value=Z;else{Object.assign(X,{key:Z,sep:[]}),this.onKeyLine=!X.explicitKey;return}break}case"block-seq":{let X=Q.items[Q.items.length-1];if(X.value)Q.items.push({start:[],value:Z});else X.value=Z;break}case"flow-collection":{let X=Q.items[Q.items.length-1];if(!X||X.value)Q.items.push({start:[],key:Z,sep:[]});else if(X.sep)X.value=Z;else Object.assign(X,{key:Z,sep:[]});return}default:yield*this.pop(),yield*this.pop(Z)}if((Q.type==="document"||Q.type==="block-map"||Q.type==="block-seq")&&(Z.type==="block-map"||Z.type==="block-seq")){let X=Z.items[Z.items.length-1];if(X&&!X.sep&&!X.value&&X.start.length>0&&m9(X.start)===-1&&(Z.indent===0||X.start.every((z)=>z.type!=="comment"||z.indent<Z.indent))){if(Q.type==="document")Q.end=X.start;else Q.items.push({start:X.start});Z.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 $={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")$.start.push(this.sourceToken);this.stack.push($);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document($){if($.value)return yield*this.lineEnd($);switch(this.type){case"doc-start":{if(m9($.start)!==-1)yield*this.pop(),yield*this.step();else $.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":$.start.push(this.sourceToken);return}let Z=this.startBlockValue($);if(Z)this.stack.push(Z);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar($){if(this.type==="map-value-ind"){let Z=C2(this.peek(2)),Q=l0(Z),X;if($.end)X=$.end,X.push(this.sourceToken),delete $.end;else X=[this.sourceToken];let z={type:"block-map",offset:$.offset,indent:$.indent,items:[{start:Q,key:$,sep:X}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=z}else yield*this.lineEnd($)}*blockScalar($){switch(this.type){case"space":case"comment":case"newline":$.props.push(this.sourceToken);return;case"scalar":if($.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let Z=this.source.indexOf(`
136
136
  `)+1;while(Z!==0)this.onNewLine(this.offset+Z),Z=this.source.indexOf(`
137
- `,Z)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap($){let Z=$.items[$.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,Z.value){let Q="end"in Z.value?Z.value.end:void 0;if((Array.isArray(Q)?Q[Q.length-1]:void 0)?.type==="comment")Q?.push(this.sourceToken);else $.items.push({start:[this.sourceToken]})}else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"space":case"comment":if(Z.value)$.items.push({start:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else{if(this.atIndentedComment(Z.start,$.indent)){let X=$.items[$.items.length-2]?.value?.end;if(Array.isArray(X)){Array.prototype.push.apply(X,Z.start),X.push(this.sourceToken),$.items.pop();return}}Z.start.push(this.sourceToken)}return}if(this.indent>=$.indent){let Q=!this.onKeyLine&&this.indent===$.indent,X=Q&&(Z.sep||Z.explicitKey)&&this.type!=="seq-item-ind",z=[];if(X&&Z.sep&&!Z.value){let J=[];for(let H=0;H<Z.sep.length;++H){let U=Z.sep[H];switch(U.type){case"newline":J.push(H);break;case"space":break;case"comment":if(U.indent>$.indent)J.length=0;break;default:J.length=0}}if(J.length>=2)z=Z.sep.splice(J[1])}switch(this.type){case"anchor":case"tag":if(X||Z.value)z.push(this.sourceToken),$.items.push({start:z}),this.onKeyLine=!0;else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"explicit-key-ind":if(!Z.sep&&!Z.explicitKey)Z.start.push(this.sourceToken),Z.explicitKey=!0;else if(X||Z.value)z.push(this.sourceToken),$.items.push({start:z,explicitKey:!0});else 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(Z.explicitKey)if(!Z.sep)if(V0(Z.start,"newline"))Object.assign(Z,{key:null,sep:[this.sourceToken]});else{let J=p0(Z.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:J,key:null,sep:[this.sourceToken]}]})}else if(Z.value)$.items.push({start:[],key:null,sep:[this.sourceToken]});else if(V0(Z.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:z,key:null,sep:[this.sourceToken]}]});else if(g6(Z.key)&&!V0(Z.sep,"newline")){let J=p0(Z.start),H=Z.key,U=Z.sep;U.push(this.sourceToken),delete Z.key,delete Z.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:J,key:H,sep:U}]})}else if(z.length>0)Z.sep=Z.sep.concat(z,this.sourceToken);else Z.sep.push(this.sourceToken);else if(!Z.sep)Object.assign(Z,{key:null,sep:[this.sourceToken]});else if(Z.value||X)$.items.push({start:z,key:null,sep:[this.sourceToken]});else if(V0(Z.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else Z.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let J=this.flowScalar(this.type);if(X||Z.value)$.items.push({start:z,key:J,sep:[]}),this.onKeyLine=!0;else if(Z.sep)this.stack.push(J);else Object.assign(Z,{key:J,sep:[]}),this.onKeyLine=!0;return}default:{let J=this.startBlockValue($);if(J){if(J.type==="block-seq"){if(!Z.explicitKey&&Z.sep&&!V0(Z.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 if(Q)$.items.push({start:z});this.stack.push(J);return}}}}yield*this.pop(),yield*this.step()}*blockSequence($){let Z=$.items[$.items.length-1];switch(this.type){case"newline":if(Z.value){let Q="end"in Z.value?Z.value.end:void 0;if((Array.isArray(Q)?Q[Q.length-1]:void 0)?.type==="comment")Q?.push(this.sourceToken);else $.items.push({start:[this.sourceToken]})}else Z.start.push(this.sourceToken);return;case"space":case"comment":if(Z.value)$.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(Z.start,$.indent)){let X=$.items[$.items.length-2]?.value?.end;if(Array.isArray(X)){Array.prototype.push.apply(X,Z.start),X.push(this.sourceToken),$.items.pop();return}}Z.start.push(this.sourceToken)}return;case"anchor":case"tag":if(Z.value||this.indent<=$.indent)break;Z.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==$.indent)break;if(Z.value||V0(Z.start,"seq-item-ind"))$.items.push({start:[this.sourceToken]});else Z.start.push(this.sourceToken);return}if(this.indent>$.indent){let Q=this.startBlockValue($);if(Q){this.stack.push(Q);return}}yield*this.pop(),yield*this.step()}*flowCollection($){let Z=$.items[$.items.length-1];if(this.type==="flow-error-end"){let Q;do yield*this.pop(),Q=this.peek(1);while(Q?.type==="flow-collection")}else if($.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!Z||Z.sep)$.items.push({start:[this.sourceToken]});else Z.start.push(this.sourceToken);return;case"map-value-ind":if(!Z||Z.value)$.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else Object.assign(Z,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!Z||Z.value)$.items.push({start:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let X=this.flowScalar(this.type);if(!Z||Z.value)$.items.push({start:[],key:X,sep:[]});else if(Z.sep)this.stack.push(X);else Object.assign(Z,{key:X,sep:[]});return}case"flow-map-end":case"flow-seq-end":$.end.push(this.sourceToken);return}let Q=this.startBlockValue($);if(Q)this.stack.push(Q);else yield*this.pop(),yield*this.step()}else{let Q=this.peek(2);if(Q.type==="block-map"&&(this.type==="map-value-ind"&&Q.indent===$.indent||this.type==="newline"&&!Q.items[Q.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&Q.type!=="flow-collection"){let X=T2(Q),z=p0(X);j6($);let J=$.end.splice(1,$.end.length);J.push(this.sourceToken);let H={type:"block-map",offset:$.offset,indent:$.indent,items:[{start:z,key:$,sep:J}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=H}else yield*this.lineEnd($)}}flowScalar($){if(this.onNewLine){let Z=this.source.indexOf(`
137
+ `,Z)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap($){let Z=$.items[$.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,Z.value){let Q="end"in Z.value?Z.value.end:void 0;if((Array.isArray(Q)?Q[Q.length-1]:void 0)?.type==="comment")Q?.push(this.sourceToken);else $.items.push({start:[this.sourceToken]})}else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"space":case"comment":if(Z.value)$.items.push({start:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else{if(this.atIndentedComment(Z.start,$.indent)){let X=$.items[$.items.length-2]?.value?.end;if(Array.isArray(X)){w2(X,Z.start),X.push(this.sourceToken),$.items.pop();return}}Z.start.push(this.sourceToken)}return}if(this.indent>=$.indent){let Q=!this.onKeyLine&&this.indent===$.indent,X=Q&&(Z.sep||Z.explicitKey)&&this.type!=="seq-item-ind",z=[];if(X&&Z.sep&&!Z.value){let J=[];for(let H=0;H<Z.sep.length;++H){let U=Z.sep[H];switch(U.type){case"newline":J.push(H);break;case"space":break;case"comment":if(U.indent>$.indent)J.length=0;break;default:J.length=0}}if(J.length>=2)z=Z.sep.splice(J[1])}switch(this.type){case"anchor":case"tag":if(X||Z.value)z.push(this.sourceToken),$.items.push({start:z}),this.onKeyLine=!0;else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"explicit-key-ind":if(!Z.sep&&!Z.explicitKey)Z.start.push(this.sourceToken),Z.explicitKey=!0;else if(X||Z.value)z.push(this.sourceToken),$.items.push({start:z,explicitKey:!0});else 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(Z.explicitKey)if(!Z.sep)if(_0(Z.start,"newline"))Object.assign(Z,{key:null,sep:[this.sourceToken]});else{let J=l0(Z.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:J,key:null,sep:[this.sourceToken]}]})}else if(Z.value)$.items.push({start:[],key:null,sep:[this.sourceToken]});else if(_0(Z.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:z,key:null,sep:[this.sourceToken]}]});else if(p9(Z.key)&&!_0(Z.sep,"newline")){let J=l0(Z.start),H=Z.key,U=Z.sep;U.push(this.sourceToken),delete Z.key,delete Z.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:J,key:H,sep:U}]})}else if(z.length>0)Z.sep=Z.sep.concat(z,this.sourceToken);else Z.sep.push(this.sourceToken);else if(!Z.sep)Object.assign(Z,{key:null,sep:[this.sourceToken]});else if(Z.value||X)$.items.push({start:z,key:null,sep:[this.sourceToken]});else if(_0(Z.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else Z.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let J=this.flowScalar(this.type);if(X||Z.value)$.items.push({start:z,key:J,sep:[]}),this.onKeyLine=!0;else if(Z.sep)this.stack.push(J);else Object.assign(Z,{key:J,sep:[]}),this.onKeyLine=!0;return}default:{let J=this.startBlockValue($);if(J){if(J.type==="block-seq"){if(!Z.explicitKey&&Z.sep&&!_0(Z.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 if(Q)$.items.push({start:z});this.stack.push(J);return}}}}yield*this.pop(),yield*this.step()}*blockSequence($){let Z=$.items[$.items.length-1];switch(this.type){case"newline":if(Z.value){let Q="end"in Z.value?Z.value.end:void 0;if((Array.isArray(Q)?Q[Q.length-1]:void 0)?.type==="comment")Q?.push(this.sourceToken);else $.items.push({start:[this.sourceToken]})}else Z.start.push(this.sourceToken);return;case"space":case"comment":if(Z.value)$.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(Z.start,$.indent)){let X=$.items[$.items.length-2]?.value?.end;if(Array.isArray(X)){w2(X,Z.start),X.push(this.sourceToken),$.items.pop();return}}Z.start.push(this.sourceToken)}return;case"anchor":case"tag":if(Z.value||this.indent<=$.indent)break;Z.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==$.indent)break;if(Z.value||_0(Z.start,"seq-item-ind"))$.items.push({start:[this.sourceToken]});else Z.start.push(this.sourceToken);return}if(this.indent>$.indent){let Q=this.startBlockValue($);if(Q){this.stack.push(Q);return}}yield*this.pop(),yield*this.step()}*flowCollection($){let Z=$.items[$.items.length-1];if(this.type==="flow-error-end"){let Q;do yield*this.pop(),Q=this.peek(1);while(Q?.type==="flow-collection")}else if($.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!Z||Z.sep)$.items.push({start:[this.sourceToken]});else Z.start.push(this.sourceToken);return;case"map-value-ind":if(!Z||Z.value)$.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else Object.assign(Z,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!Z||Z.value)$.items.push({start:[this.sourceToken]});else if(Z.sep)Z.sep.push(this.sourceToken);else Z.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let X=this.flowScalar(this.type);if(!Z||Z.value)$.items.push({start:[],key:X,sep:[]});else if(Z.sep)this.stack.push(X);else Object.assign(Z,{key:X,sep:[]});return}case"flow-map-end":case"flow-seq-end":$.end.push(this.sourceToken);return}let Q=this.startBlockValue($);if(Q)this.stack.push(Q);else yield*this.pop(),yield*this.step()}else{let Q=this.peek(2);if(Q.type==="block-map"&&(this.type==="map-value-ind"&&Q.indent===$.indent||this.type==="newline"&&!Q.items[Q.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&Q.type!=="flow-collection"){let X=C2(Q),z=l0(X);l9($);let J=$.end.splice(1,$.end.length);J.push(this.sourceToken);let H={type:"block-map",offset:$.offset,indent:$.indent,items:[{start:z,key:$,sep:J}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=H}else yield*this.lineEnd($)}}flowScalar($){if(this.onNewLine){let Z=this.source.indexOf(`
138
138
  `)+1;while(Z!==0)this.onNewLine(this.offset+Z),Z=this.source.indexOf(`
139
- `,Z)+1}return{type:$,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue($){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 Z=T2($),Q=p0(Z);return Q.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Q,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let Z=T2($),Q=p0(Z);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Q,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment($,Z){if(this.type!=="comment")return!1;if(this.indent<=Z)return!1;return $.every((Q)=>Q.type==="newline"||Q.type==="space")}*documentEnd($){if(this.type!=="doc-mode"){if($.end)$.end.push(this.sourceToken);else $.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd($){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:if($.end)$.end.push(this.sourceToken);else $.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}AH.Parser=x6});var k6=M((jH)=>{var h6=i$(),PH=I1(),A1=K1(),TH=Q$(),wH=b(),CH=Q8(),y6=X8();function f6($){let Z=$.prettyErrors!==!1;return{lineCounter:$.lineCounter||Z&&new CH.LineCounter||null,prettyErrors:Z}}function bH($,Z={}){let{lineCounter:Q,prettyErrors:X}=f6(Z),z=new y6.Parser(Q?.addNewLine),J=new h6.Composer(Z),H=Array.from(J.compose(z.parse($)));if(X&&Q)for(let U of H)U.errors.forEach(A1.prettifyError($,Q)),U.warnings.forEach(A1.prettifyError($,Q));if(H.length>0)return H;return Object.assign([],{empty:!0},J.streamInfo())}function u6($,Z={}){let{lineCounter:Q,prettyErrors:X}=f6(Z),z=new y6.Parser(Q?.addNewLine),J=new h6.Composer(Z),H=null;for(let U of J.compose(z.parse($),!0,$.length))if(!H)H=U;else if(H.options.logLevel!=="silent"){H.errors.push(new A1.YAMLParseError(U.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(X&&Q)H.errors.forEach(A1.prettifyError($,Q)),H.warnings.forEach(A1.prettifyError($,Q));return H}function EH($,Z,Q){let X=void 0;if(typeof Z==="function")X=Z;else if(Q===void 0&&Z&&typeof Z==="object")Q=Z;let z=u6($,Q);if(!z)return null;if(z.warnings.forEach((J)=>TH.warn(z.options.logLevel,J)),z.errors.length>0)if(z.options.logLevel!=="silent")throw z.errors[0];else z.errors=[];return z.toJS(Object.assign({reviver:X},Q))}function SH($,Z,Q){let X=null;if(typeof Z==="function"||Array.isArray(Z))X=Z;else if(Q===void 0&&Z)Q=Z;if(typeof Q==="string")Q=Q.length;if(typeof Q==="number"){let z=Math.round(Q);Q=z<1?void 0:z>8?{indent:8}:{indent:z}}if($===void 0){let{keepUndefined:z}=Q??Z??{};if(!z)return}if(wH.isDocument($)&&!X)return $.toString(Q);return new PH.Document($,X,Q).toString(Q)}jH.parse=EH;jH.parseAllDocuments=bH;jH.parseDocument=u6;jH.stringify=SH});var y=[{index:1,path:"project.name",label:"Name",description:"Project name",category:"project"},{index:2,path:"project.goal",label:"Goal",description:"Goal (use case)",category:"project"},{index:3,path:"project.main_language",label:"Language",description:"Primary language",category:"project"},{index:4,path:"human_context.who",label:"Who",description:"Who is this for?",category:"human"},{index:5,path:"human_context.what",label:"What",description:"What are they building",category:"human"},{index:6,path:"human_context.why",label:"Why",description:"Why does it exist",category:"human"},{index:7,path:"human_context.where",label:"Where",description:"Where does it run",category:"human"},{index:8,path:"human_context.when",label:"When",description:"When was it started / timeline",category:"human"},{index:9,path:"human_context.how",label:"How",description:"How is it built",category:"human"},{index:10,path:"stack.frontend",canonical:"stack.framework",label:"Framework",description:"Framework (React, Svelte, etc.)",category:"frontend"},{index:11,path:"stack.css_framework",canonical:"stack.css",label:"CSS",description:"CSS framework",category:"frontend"},{index:12,path:"stack.ui_library",label:"UI Library",description:"UI component library",category:"frontend"},{index:13,path:"stack.state_management",canonical:"stack.state",label:"State",description:"State management",category:"frontend"},{index:14,path:"stack.backend",label:"Backend",description:"Backend framework",category:"backend"},{index:15,path:"stack.api_type",canonical:"stack.api",label:"API",description:"API style (REST, GraphQL, etc.)",category:"backend"},{index:16,path:"stack.runtime",label:"Runtime",description:"Runtime (Node, Bun, Python, etc.)",category:"backend"},{index:17,path:"stack.database",canonical:"stack.db",label:"Database",description:"Database",category:"backend"},{index:18,path:"stack.connection",label:"Connection",description:"Connection method (Prisma, etc.)",category:"backend"},{index:19,path:"stack.hosting",label:"Hosting",description:"Hosting platform",category:"universal"},{index:20,path:"stack.build",label:"Build",description:"Build tool",category:"universal"},{index:21,path:"stack.cicd",label:"CI/CD",description:"CI/CD",category:"universal"},{index:22,path:"stack.monorepo_tool",label:"Monorepo",description:"Monorepo tool",category:"enterprise_infra"},{index:23,path:"stack.package_manager",canonical:"stack.pkg_manager",label:"Package Manager",description:"Package manager",category:"enterprise_infra"},{index:24,path:"stack.workspaces",label:"Workspaces",description:"Workspace configuration",category:"enterprise_infra"},{index:25,path:"monorepo.packages_count",label:"Packages",description:"Number of packages",category:"enterprise_infra"},{index:26,path:"monorepo.build_orchestrator",label:"Build Orchestrator",description:"Build orchestration tool",category:"enterprise_infra"},{index:27,path:"stack.admin",label:"Admin",description:"Admin panel",category:"enterprise_app"},{index:28,path:"stack.cache",label:"Cache",description:"Caching layer",category:"enterprise_app"},{index:29,path:"stack.search",label:"Search",description:"Search engine",category:"enterprise_app"},{index:30,path:"stack.storage",label:"Storage",description:"Object storage",category:"enterprise_app"},{index:31,path:"monorepo.versioning_strategy",label:"Versioning",description:"Version strategy",category:"enterprise_ops"},{index:32,path:"monorepo.shared_configs",label:"Shared Configs",description:"Shared configs",category:"enterprise_ops"},{index:33,path:"monorepo.remote_cache",label:"Remote Cache",description:"Remote build cache",category:"enterprise_ops"}],n0=new Map(y.flatMap(($)=>$.canonical?[[$.path,$],[$.canonical,$]]:[[$.path,$]])),e_=new Map(y.filter(($)=>$.canonical).map(($)=>[$.canonical,$.path])),$B=new Map(y.filter(($)=>$.canonical).map(($)=>[$.path,$.canonical]));function S8($,Z){let Q=(z)=>{let J=z.split("."),H=$;for(let U of J)if(H&&typeof H==="object"&&U in H)H=H[U];else return;return H},X=Q(Z.path);if(X!==void 0)return X;if(Z.canonical)return Q(Z.canonical);return}function OZ($){return y.filter((Z)=>Z.category===$)}var WZ=y.filter(($)=>$.index<=21),DZ=y,u1=new Set(["describe your project goal","development teams","cloud platform","null","none","unknown","n/a","not applicable"]);function D0($){if($===null||$===void 0||$==="")return!0;if(typeof $==="string")return u1.has($.toLowerCase().trim());if(Array.isArray($)&&$.length===0)return!0;if(typeof $==="object"&&Object.keys($).length===0)return!0;return!1}var E0={about:[],documentation:["project","human"],intent:["project","human"],encyclopedia:["project","human"],cli:["project","human","universal"],library:["project","human","universal"],sdk:["project","human","universal"],wasm:["project","human","universal"],html:["project","human","universal"],"server-card":["project","human","universal"],frontend:["project","frontend","human","universal"],website:["project","frontend","human","universal"],mobile:["project","frontend","human","universal"],app:["project","frontend","human","universal"],extension:["project","frontend","human","universal"],mcp:["project","backend","human","universal"],backend:["project","backend","universal","human"],"data-science":["project","backend","human","universal"],fullstack:["project","frontend","backend","universal","human"],svelte:["project","frontend","backend","universal","human"],framework:["project","frontend","backend","universal","human"],"monorepo-root":["project","human","enterprise_infra","enterprise_app","enterprise_ops"],mcpaas:["project","backend","universal","human","enterprise_app","enterprise_ops"],saas:["project","frontend","backend","universal","human","enterprise_app"],enterprise:["project","frontend","backend","universal","human","enterprise_infra","enterprise_app","enterprise_ops"]};var p2=($)=>(Z)=>`\x1B[${$}m${Z}\x1B[0m`,k1=p2("1"),o0=p2("2"),QB=p2("3"),t0={cyan:"#00D4D4",cyanDeep:"#0E8C8C",orange:"#FF6B35"},v1=($)=>`\x1B[38;2;0;212;212m${$}\x1B[0m`,l2=($)=>`\x1B[38;2;14;140;140m${$}\x1B[0m`,S0=($)=>`\x1B[38;5;208m${$}\x1B[0m`;var $0=[{name:"TROPHY",indicator:`${S0("✪")} ${S0("TROPHY")}`,threshold:100},{name:"GOLD",indicator:`${S0(k1("★"))} ${S0("GOLD")}`,threshold:99},{name:"SILVER",indicator:`${v1("◆")} ${v1("SILVER")}`,threshold:95},{name:"BRONZE",indicator:`${l2("◇")} ${l2("BRONZE")}`,threshold:85},{name:"GREEN",indicator:`${k1("●")} GREEN`,threshold:70},{name:"YELLOW",indicator:`${o0("●")} YELLOW`,threshold:55},{name:"RED",indicator:`${o0("○")} RED`,threshold:1},{name:"WHITE",indicator:`${o0("♡")}`,threshold:0}];function e0($){for(let Z of $0)if($>=Z.threshold)return Z;return $0[$0.length-1]}function IZ($){let Z=e0($),Q=$0.indexOf(Z);return Q>0?$0[Q-1]:null}var i2={};GZ(i2,{validate:()=>LZ,sdkVersion:()=>NZ,scoreFafb:()=>AZ,scoreEnterprise:()=>KZ,score:()=>c2,fafbInfo:()=>FZ,decompile:()=>RZ,compile:()=>MZ});var d2=null;function J0(){if(d2)return d2;try{let $=s0("faf-scoring-kernel");return d2=$,$}catch{throw Error(`faf-scoring-kernel not installed.
139
+ `,Z)+1}return{type:$,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue($){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 Z=C2($),Q=l0(Z);return Q.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Q,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let Z=C2($),Q=l0(Z);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Q,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment($,Z){if(this.type!=="comment")return!1;if(this.indent<=Z)return!1;return $.every((Q)=>Q.type==="newline"||Q.type==="space")}*documentEnd($){if(this.type!=="doc-mode"){if($.end)$.end.push(this.sourceToken);else $.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd($){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:if($.end)$.end.push(this.sourceToken);else $.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}fH.Parser=d9});var s9=M((iH)=>{var c9=s$(),vH=I1(),N1=K1(),uH=J$(),mH=b(),lH=J8(),i9=H8();function r9($){let Z=$.prettyErrors!==!1;return{lineCounter:$.lineCounter||Z&&new lH.LineCounter||null,prettyErrors:Z}}function pH($,Z={}){let{lineCounter:Q,prettyErrors:X}=r9(Z),z=new i9.Parser(Q?.addNewLine),J=new c9.Composer(Z),H=Array.from(J.compose(z.parse($)));if(X&&Q)for(let U of H)U.errors.forEach(N1.prettifyError($,Q)),U.warnings.forEach(N1.prettifyError($,Q));if(H.length>0)return H;return Object.assign([],{empty:!0},J.streamInfo())}function a9($,Z={}){let{lineCounter:Q,prettyErrors:X}=r9(Z),z=new i9.Parser(Q?.addNewLine),J=new c9.Composer(Z),H=null;for(let U of J.compose(z.parse($),!0,$.length))if(!H)H=U;else if(H.options.logLevel!=="silent"){H.errors.push(new N1.YAMLParseError(U.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(X&&Q)H.errors.forEach(N1.prettifyError($,Q)),H.warnings.forEach(N1.prettifyError($,Q));return H}function dH($,Z,Q){let X=void 0;if(typeof Z==="function")X=Z;else if(Q===void 0&&Z&&typeof Z==="object")Q=Z;let z=a9($,Q);if(!z)return null;if(z.warnings.forEach((J)=>uH.warn(z.options.logLevel,J)),z.errors.length>0)if(z.options.logLevel!=="silent")throw z.errors[0];else z.errors=[];return z.toJS(Object.assign({reviver:X},Q))}function cH($,Z,Q){let X=null;if(typeof Z==="function"||Array.isArray(Z))X=Z;else if(Q===void 0&&Z)Q=Z;if(typeof Q==="string")Q=Q.length;if(typeof Q==="number"){let z=Math.round(Q);Q=z<1?void 0:z>8?{indent:8}:{indent:z}}if($===void 0){let{keepUndefined:z}=Q??Z??{};if(!z)return}if(mH.isDocument($)&&!X)return $.toString(Q);return new vH.Document($,X,Q).toString(Q)}iH.parse=dH;iH.parseAllDocuments=pH;iH.parseDocument=a9;iH.stringify=cH});var y=[{index:1,path:"project.name",label:"Name",description:"Project name",category:"project"},{index:2,path:"project.goal",label:"Goal",description:"Goal (use case)",category:"project"},{index:3,path:"project.main_language",label:"Language",description:"Primary language",category:"project"},{index:4,path:"human_context.who",label:"Who",description:"Who is this for?",category:"human"},{index:5,path:"human_context.what",label:"What",description:"What are they building",category:"human"},{index:6,path:"human_context.why",label:"Why",description:"Why does it exist",category:"human"},{index:7,path:"human_context.where",label:"Where",description:"Where does it run",category:"human"},{index:8,path:"human_context.when",label:"When",description:"When was it started / timeline",category:"human"},{index:9,path:"human_context.how",label:"How",description:"How is it built",category:"human"},{index:10,path:"stack.frontend",canonical:"stack.framework",label:"Framework",description:"Framework (React, Svelte, etc.)",category:"frontend"},{index:11,path:"stack.css_framework",canonical:"stack.css",label:"CSS",description:"CSS framework",category:"frontend"},{index:12,path:"stack.ui_library",label:"UI Library",description:"UI component library",category:"frontend"},{index:13,path:"stack.state_management",canonical:"stack.state",label:"State",description:"State management",category:"frontend"},{index:14,path:"stack.backend",label:"Backend",description:"Backend framework",category:"backend"},{index:15,path:"stack.api_type",canonical:"stack.api",label:"API",description:"API style (REST, GraphQL, etc.)",category:"backend"},{index:16,path:"stack.runtime",label:"Runtime",description:"Runtime (Node, Bun, Python, etc.)",category:"backend"},{index:17,path:"stack.database",canonical:"stack.db",label:"Database",description:"Database",category:"backend"},{index:18,path:"stack.connection",label:"Connection",description:"Connection method (Prisma, etc.)",category:"backend"},{index:19,path:"stack.hosting",label:"Hosting",description:"Hosting platform",category:"universal"},{index:20,path:"stack.build",label:"Build",description:"Build tool",category:"universal"},{index:21,path:"stack.cicd",label:"CI/CD",description:"CI/CD",category:"universal"},{index:22,path:"stack.monorepo_tool",label:"Monorepo",description:"Monorepo tool",category:"enterprise_infra"},{index:23,path:"stack.package_manager",canonical:"stack.pkg_manager",label:"Package Manager",description:"Package manager",category:"enterprise_infra"},{index:24,path:"stack.workspaces",label:"Workspaces",description:"Workspace configuration",category:"enterprise_infra"},{index:25,path:"monorepo.packages_count",label:"Packages",description:"Number of packages",category:"enterprise_infra"},{index:26,path:"monorepo.build_orchestrator",label:"Build Orchestrator",description:"Build orchestration tool",category:"enterprise_infra"},{index:27,path:"stack.admin",label:"Admin",description:"Admin panel",category:"enterprise_app"},{index:28,path:"stack.cache",label:"Cache",description:"Caching layer",category:"enterprise_app"},{index:29,path:"stack.search",label:"Search",description:"Search engine",category:"enterprise_app"},{index:30,path:"stack.storage",label:"Storage",description:"Object storage",category:"enterprise_app"},{index:31,path:"monorepo.versioning_strategy",label:"Versioning",description:"Version strategy",category:"enterprise_ops"},{index:32,path:"monorepo.shared_configs",label:"Shared Configs",description:"Shared configs",category:"enterprise_ops"},{index:33,path:"monorepo.remote_cache",label:"Remote Cache",description:"Remote build cache",category:"enterprise_ops"}],o0=new Map(y.flatMap(($)=>$.canonical?[[$.path,$],[$.canonical,$]]:[[$.path,$]])),PG=new Map(y.filter(($)=>$.canonical).map(($)=>[$.canonical,$.path])),TG=new Map(y.filter(($)=>$.canonical).map(($)=>[$.path,$.canonical]));function f8($,Z){let Q=(z)=>{let J=z.split("."),H=$;for(let U of J)if(H&&typeof H==="object"&&U in H)H=H[U];else return;return H},X=Q(Z.path);if(X!==void 0)return X;if(Z.canonical)return Q(Z.canonical);return}function w4($){return y.filter((Z)=>Z.category===$)}var b4=y.filter(($)=>$.index<=21),E4=y,k1=new Set(["describe your project goal","development teams","cloud platform","null","none","unknown","n/a","not applicable"]);function D0($){if($===null||$===void 0||$==="")return!0;if(typeof $==="string")return k1.has($.toLowerCase().trim());if(Array.isArray($)&&$.length===0)return!0;if(typeof $==="object"&&Object.keys($).length===0)return!0;return!1}var E0={documentation:["project","human"],intent:["project","human"],encyclopedia:["project","human"],cli:["project","human","universal"],library:["project","human","universal"],sdk:["project","human","universal"],wasm:["project","human","universal"],html:["project","human","universal"],"server-card":["project","human","universal"],frontend:["project","frontend","human","universal"],website:["project","frontend","human","universal"],mobile:["project","frontend","human","universal"],app:["project","frontend","human","universal"],extension:["project","frontend","human","universal"],mcp:["project","backend","human","universal"],backend:["project","backend","universal","human"],"data-science":["project","backend","human","universal"],fullstack:["project","frontend","backend","universal","human"],svelte:["project","frontend","backend","universal","human"],framework:["project","frontend","backend","universal","human"],"monorepo-root":["project","human","enterprise_infra","enterprise_app","enterprise_ops"],mcpaas:["project","backend","universal","human","enterprise_app","enterprise_ops"],saas:["project","frontend","backend","universal","human","enterprise_app"],enterprise:["project","frontend","backend","universal","human","enterprise_infra","enterprise_app","enterprise_ops"]};var c2=($)=>(Z)=>`\x1B[${$}m${Z}\x1B[0m`,v1=c2("1"),t0=c2("2"),wG=c2("3"),e0={cyan:"#00D4D4",cyanDeep:"#0E8C8C",orange:"#FF6B35"},u1=($)=>`\x1B[38;2;0;212;212m${$}\x1B[0m`,i2=($)=>`\x1B[38;2;14;140;140m${$}\x1B[0m`,S0=($)=>`\x1B[38;5;208m${$}\x1B[0m`;var Z0=[{name:"TROPHY",indicator:`${S0("✪")} ${S0("TROPHY")}`,threshold:100},{name:"GOLD",indicator:`${S0(v1("★"))} ${S0("GOLD")}`,threshold:99},{name:"SILVER",indicator:`${u1("◆")} ${u1("SILVER")}`,threshold:95},{name:"BRONZE",indicator:`${i2("◇")} ${i2("BRONZE")}`,threshold:85},{name:"GREEN",indicator:`${v1("●")} GREEN`,threshold:70},{name:"YELLOW",indicator:`${t0("●")} YELLOW`,threshold:55},{name:"RED",indicator:`${t0("○")} RED`,threshold:1},{name:"WHITE",indicator:`${t0("♡")}`,threshold:0}];function $1($){for(let Z of Z0)if($>=Z.threshold)return Z;return Z0[Z0.length-1]}function S4($){let Z=$1($),Q=Z0.indexOf(Z);return Q>0?Z0[Q-1]:null}var s2={};T4(s2,{validate:()=>g4,sdkVersion:()=>k4,scoreFafb:()=>f4,scoreEnterprise:()=>j4,score:()=>a2,fafbInfo:()=>y4,decompile:()=>h4,compile:()=>x4});var r2=null;function J0(){if(r2)return r2;try{let $=n0("faf-scoring-kernel");return r2=$,$}catch{throw Error(`faf-scoring-kernel not installed.
140
140
 
141
141
  Run: npm install faf-scoring-kernel
142
- `)}}function c2($){return JSON.parse(J0().score_faf($))}function KZ($){return JSON.parse(J0().score_faf_enterprise($))}function LZ($){return J0().validate_faf($)}function MZ($){return J0().compile_fafb($)}function RZ($){return JSON.parse(J0().decompile_fafb($))}function FZ($){return JSON.parse(J0().fafb_info($))}function AZ($){return JSON.parse(J0().score_fafb($))}function NZ(){return J0().sdk_version()}function j8($){return{score:$.score,tier:e0($.score),populated:$.populated,empty:$.empty,ignored:$.ignored,active:$.active,total:$.total,slots:$.slots}}function a2($){if(/^\s*app_type:\s*about\s*$/m.test($)){let Q=$.match(/^\s+source_score:\s*(\d+)\s*$/m),X=Q?parseInt(Q[1],10):-1,z=X>=0&&X<=100?X:-1,J=$.match(/^\s+represents:\s*(\S+)\s*$/m),H=J?J[1]:void 0;return{score:z,tier:z>=0?e0(z):$0[$0.length-1],populated:0,empty:0,ignored:0,active:0,total:0,slots:{},inherited:!0,represents:H}}return j8(c2($))}function PZ($){let Z=[];if(!$||typeof $!=="object")return Z.push("File is not a valid YAML mapping"),{valid:!1,errors:Z};let Q=$;if(!Q.faf_version)Z.push("Missing required field: faf_version");if(!Q.project?.name)Z.push("Missing required field: project.name");if(Q.app_type==="about"){if(!Q.about?.represents)Z.push("app_type 'about' requires about.represents (owner/repo of the source codebase)");else if(!/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(Q.about.represents))Z.push(`about.represents must be "owner/repo" format (got: ${Q.about.represents})`);if(Q.about?.source_score!==void 0){let X=Q.about.source_score;if(typeof X!=="number"||X<0||X>100)Z.push(`about.source_score must be a number 0-100 (got: ${X})`)}}return{valid:Z.length===0,errors:Z}}import{readFileSync as l6,writeFileSync as bG,existsSync as m6}from"fs";import{join as p6,dirname as MU,basename as SG}from"path";var fH=i$(),uH=I1(),kH=E$(),z8=K1(),vH=Q1(),O0=b(),mH=Y0(),pH=x(),lH=B0(),dH=G0(),TG=N2(),cH=Z8(),iH=Q8(),aH=X8(),w2=k6(),v6=$1();var rH=fH.Composer,sH=uH.Document,nH=kH.Schema,oH=z8.YAMLError,tH=z8.YAMLParseError,eH=z8.YAMLWarning,$U=vH.Alias,ZU=O0.isAlias,QU=O0.isCollection,XU=O0.isDocument,zU=O0.isMap,JU=O0.isNode,HU=O0.isPair,UU=O0.isScalar,qU=O0.isSeq,YU=mH.Pair,_U=pH.Scalar,BU=lH.YAMLMap,GU=dH.YAMLSeq;var VU=cH.Lexer,OU=iH.LineCounter,WU=aH.Parser,X0=w2.parse,DU=w2.parseAllDocuments,IU=w2.parseDocument,C2=w2.stringify,KU=v6.visit,LU=v6.visitAsync;function RU($){let Z=l6($,"utf-8");return X0(Z)}function d6($){return l6($,"utf-8")}function c6($=process.cwd()){let Z=["project.faf",".faf"];for(let X of Z){let z=p6($,X);if(m6(z))return z}let Q=MU($);if(Q!==$)for(let X of Z){let z=p6(Q,X);if(m6(z))return z}return null}import{writeFileSync as FU}from"fs";import{join as AU}from"path";var i6=t0.orange,NU=t0.cyan,PU=t0.cyanDeep,TU="#FF9500",wU="#FF3B30",CU="#E6EDF3",bU="#6E7681",a6={TROPHY:{glyph:"✪",color:i6},GOLD:{glyph:"★",color:i6},SILVER:{glyph:"◆",color:NU},BRONZE:{glyph:"◇",color:PU},GREEN:{glyph:"●",color:CU},YELLOW:{glyph:"●",color:TU},RED:{glyph:"○",color:wU},WHITE:{glyph:"♡",color:bU}};function l0($){return String($??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}var r6=["who","what","why","where","when","how"];function b2($){return $.filter(([,Z])=>Z!==void 0&&Z!==null&&String(Z).trim()!=="").map(([Z,Q])=>`<div class="row"><div class="k">${l0(Z)}</div><div class="v">${l0(Q)}</div></div>`).join(`
143
- `)}function s6($,Z,Q="project.faf"){let X=l0($.project?.name??"Project"),z=Z.tier?.name??"WHITE",J=a6[z]??a6.WHITE,H=Z.inherited?Z.represents?`inherited from ${l0(Z.represents)}`:"inherited":`${Z.score}%`,U=z==="TROPHY"&&!Z.inherited,q=$.human_context??{},Y=r6.map((V)=>[V,q[V]]),_=Object.entries(q).filter(([V])=>!r6.includes(V)),B=[["goal",$.project?.goal],["main_language",$.project?.main_language],["type",$.project?.type],["framework",$.project?.framework],["faf_version",$.faf_version]],G=Object.entries($.stack??{}),O=G.filter(([,V])=>V&&V!=="slotignored"&&String(V).trim()!==""),D=G.filter(([,V])=>V==="slotignored").length;return`<!DOCTYPE html>
142
+ `)}}function a2($){return JSON.parse(J0().score_faf($))}function j4($){return JSON.parse(J0().score_faf_enterprise($))}function g4($){return J0().validate_faf($)}function x4($){return J0().compile_fafb($)}function h4($){return JSON.parse(J0().decompile_fafb($))}function y4($){return JSON.parse(J0().fafb_info($))}function f4($){return JSON.parse(J0().score_fafb($))}function k4(){return J0().sdk_version()}var k8=/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/;function v8($){let Z=$?.about?.represents;return typeof Z==="string"&&Z.length>0}function u8($){let Z=$.match(/^about:\s*\n((?:[ \t]+.*\n?)*)/m);if(!Z)return null;let Q=Z[1]??"",X=Q.match(/^[ \t]+represents:\s*(\S+)\s*$/m);if(!X)return null;let z=X[1],J=Q.match(/^[ \t]+source_score:\s*(\d+)\s*$/m),H=-1;if(J){let U=parseInt(J[1],10);if(U>=0&&U<=100)H=U}return{represents:z,sourceScore:H}}function m8($){return{score:$.score,tier:$1($.score),populated:$.populated,empty:$.empty,ignored:$.ignored,active:$.active,total:$.total,slots:$.slots}}function n2($){let Z=u8($);if(Z){let Q=Z.sourceScore;return{score:Q,tier:Q>=0?$1(Q):Z0[Z0.length-1],populated:0,empty:0,ignored:0,active:0,total:0,slots:{},inherited:!0,represents:Z.represents}}return m8(a2($))}function v4($){let Z=[];if(!$||typeof $!=="object")return Z.push("File is not a valid YAML mapping"),{valid:!1,errors:Z};let Q=$;if(!Q.faf_version)Z.push("Missing required field: faf_version");if(!Q.project?.name)Z.push("Missing required field: project.name");if(Q.app_type==="about")Z.push("about is not an app_type — declare about.represents (owner/repo) instead");if(Q.about!==void 0){if(!v8(Q)||typeof Q.about.represents!=="string")Z.push("about.represents is required (owner/repo of the source codebase)");else if(!k8.test(Q.about.represents))Z.push(`about.represents must be "owner/repo" format (got: ${Q.about.represents})`);if(Q.about.source_score!==void 0){let X=Q.about.source_score;if(typeof X!=="number"||X<0||X>100)Z.push(`about.source_score must be a number 0-100 (got: ${X})`)}}return{valid:Z.length===0,errors:Z}}import{readFileSync as e9,writeFileSync as z_,existsSync as o9}from"fs";import{join as t9,dirname as xU,basename as H_}from"path";var oH=s$(),tH=I1(),eH=g$(),U8=K1(),$U=X1(),W0=b(),ZU=Y0(),QU=x(),XU=G0(),zU=V0(),Z_=P2(),JU=z8(),HU=J8(),UU=H8(),b2=s9(),n9=Z1();var qU=oH.Composer,YU=tH.Document,BU=eH.Schema,GU=U8.YAMLError,VU=U8.YAMLParseError,_U=U8.YAMLWarning,WU=$U.Alias,OU=W0.isAlias,DU=W0.isCollection,IU=W0.isDocument,KU=W0.isMap,LU=W0.isNode,MU=W0.isPair,RU=W0.isScalar,FU=W0.isSeq,NU=ZU.Pair,AU=QU.Scalar,PU=XU.YAMLMap,TU=zU.YAMLSeq;var CU=JU.Lexer,wU=HU.LineCounter,bU=UU.Parser,r=b2.parse,EU=b2.parseAllDocuments,SU=b2.parseDocument,E2=b2.stringify,jU=n9.visit,gU=n9.visitAsync;function hU($){let Z=e9($,"utf-8");return r(Z)}function $Z($){return e9($,"utf-8")}function ZZ($=process.cwd()){let Z=["project.faf",".faf"];for(let X of Z){let z=t9($,X);if(o9(z))return z}let Q=xU($);if(Q!==$)for(let X of Z){let z=t9(Q,X);if(o9(z))return z}return null}import{writeFileSync as yU}from"fs";import{join as fU}from"path";var QZ=e0.orange,kU=e0.cyan,vU=e0.cyanDeep,uU="#FF9500",mU="#FF3B30",lU="#E6EDF3",pU="#6E7681",XZ={TROPHY:{glyph:"✪",color:QZ},GOLD:{glyph:"★",color:QZ},SILVER:{glyph:"◆",color:kU},BRONZE:{glyph:"◇",color:vU},GREEN:{glyph:"●",color:lU},YELLOW:{glyph:"●",color:uU},RED:{glyph:"○",color:mU},WHITE:{glyph:"♡",color:pU}};function p0($){return String($??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}var zZ=["who","what","why","where","when","how"];function S2($){return $.filter(([,Z])=>Z!==void 0&&Z!==null&&String(Z).trim()!=="").map(([Z,Q])=>`<div class="row"><div class="k">${p0(Z)}</div><div class="v">${p0(Q)}</div></div>`).join(`
143
+ `)}function JZ($,Z,Q="project.faf"){let X=p0($.project?.name??"Project"),z=Z.tier?.name??"WHITE",J=XZ[z]??XZ.WHITE,H=Z.inherited?Z.represents?`inherited from ${p0(Z.represents)}`:"inherited":`${Z.score}%`,U=z==="TROPHY"&&!Z.inherited,q=$.human_context??{},Y=zZ.map((_)=>[_,q[_]]),B=Object.entries(q).filter(([_])=>!zZ.includes(_)),G=[["goal",$.project?.goal],["main_language",$.project?.main_language],["type",$.project?.type],["framework",$.project?.framework],["faf_version",$.faf_version]],V=Object.entries($.stack??{}),W=V.filter(([,_])=>_&&_!=="slotignored"&&String(_).trim()!==""),D=V.filter(([,_])=>_==="slotignored").length;return`<!DOCTYPE html>
144
144
  <html lang="en">
145
145
  <head>
146
146
  <meta charset="UTF-8">
@@ -181,7 +181,7 @@ footer strong{color:#e6edf3}
181
181
  <div class="eyebrow">project.faf · visual render</div>
182
182
  <header>
183
183
  <h1>${X}</h1>
184
- <span class="badge">${J.glyph} ${l0(z)}</span>
184
+ <span class="badge">${J.glyph} ${p0(z)}</span>
185
185
  <span class="score">${H}</span>
186
186
  </header>
187
187
  <div class="meter"><span></span></div>
@@ -189,44 +189,44 @@ ${U?'<p class="award statline"><span class="awd-pre">✅ All Required slots fill
189
189
 
190
190
  <section>
191
191
  <h2>The 6 W's</h2>
192
- ${b2(Y)||'<p class="muted">No human_context yet.</p>'}
193
- ${_.length?b2(_):""}
192
+ ${S2(Y)||'<p class="muted">No human_context yet.</p>'}
193
+ ${B.length?S2(B):""}
194
194
  </section>
195
195
 
196
196
  <section>
197
197
  <h2>Project</h2>
198
- ${b2(B)||'<p class="muted">—</p>'}
198
+ ${S2(G)||'<p class="muted">—</p>'}
199
199
  </section>
200
200
 
201
201
  <section>
202
202
  <h2>Stack</h2>
203
- ${O.length?b2(O):'<p class="muted">No active stack slots.</p>'}
203
+ ${W.length?S2(W):'<p class="muted">No active stack slots.</p>'}
204
204
  </section>
205
205
 
206
206
  <footer>
207
- Rendered on-demand from your current <strong>${l0(Q)}</strong><br>
207
+ Rendered on-demand from your current <strong>${p0(Q)}</strong><br>
208
208
  <strong>Humans like visuals. <span style="color:#00D4D4">We gave them one.</span></strong>
209
209
  </footer>
210
210
  </div>
211
211
  </body>
212
212
  </html>
213
- `}function EU($,Z,Q,X="project.faf"){FU(AU($,"project.html"),s6(Z,Q,X),"utf-8")}import{writeFileSync as SU}from"fs";import{join as jU}from"path";var n6="application/vnd.faf+yaml",gU="https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json",xU=/^[a-zA-Z0-9.-]+\/[a-zA-Z0-9._-]+$/;function t6($){let Z=String($.project?.name??"project").trim();if(Z.includes("/")&&xU.test(Z))return Z;let Q=$.project?.homepage??$.project?.website??$.project?.url,X="local";if(Q)try{X=new URL(Q).hostname.replace(/^www\./,"").split(".").reverse().join(".")}catch{}let z=Z.replace(/[^a-zA-Z0-9._-]/g,"-").replace(/^-+|-+$/g,"")||"project";return`${X}/${z}`}function hU($){let Z=String($.project?.goal??$.context??$.project?.name??"MCP server").replace(/\s+/g," ").trim();if(!Z)return"MCP server";return Z.length<=100?Z:`${Z.slice(0,97).trimEnd()}...`}function J8($,Z={}){return{faf:Z.fafPointer??"./project.faf",mediaType:n6,iana:`https://www.iana.org/assignments/media-types/${n6}`,deterministic:!0,...Z.scoreEndpoint?{scoreEndpoint:Z.scoreEndpoint}:{},generated:$.generated??Z.now??new Date().toISOString()}}function e6($,Z={}){let Q={$schema:gU,name:t6($),version:String($.project?.version??"0.1.0"),description:hU($)},X=uU($)??$.project?.name;if(X&&X.length<=100)Q.title=X;let z=$.project?.homepage??$.project?.website??$.project?.url;if(z)Q.websiteUrl=z;if(Z.remoteUrl)Q.remotes=[{type:"streamable-http",url:Z.remoteUrl}];return Q._meta={"one.faf/context":J8($,Z)},Q}var $9="io.modelcontextprotocol.registry/publisher-provided",o6=4096;function yU($,Z={}){let Q={"one.faf/context":J8($,Z)},X=new TextEncoder().encode(JSON.stringify(Q)).length;if(X>o6)throw Error(`publisher-provided _meta is ${X}B — exceeds the registry ${o6}B cap`);return{[$9]:Q}}function fU($){return t6($)}function uU($){let Z=$.project?.title;if(typeof Z==="string"){let Q=Z.trim();if(Q&&Q.length<=100)return Q}return}function kU($,Z,Q={}){let X=e6(Z,Q),z=jU($,"server-card");return SU(z,`${JSON.stringify(X,null,2)}
214
- `,"utf-8"),z}var H8=["ephemeral","standard","high","critical"],W0=Object.fromEntries(H8.map(($,Z)=>[$,Z])),E2=new Set(["user","feedback","project","reference"]),U8=new Set(["version","profile","namepoint","created","last_etched","retention","index","memory"]),q8=new Set(["facts","sessions","preferences","custom"]),Y8={low:"ephemeral",medium:"standard"};import{readFileSync as vU,writeFileSync as mU,existsSync as pU}from"fs";function d0(){return new Date().toISOString().replace(/\.\d{3}Z$/,"Z")}function u($){return $===null||$===void 0}function N1($){if(u($))return"standard";if(Y8[$])return Y8[$];if($ in W0)return $;return"standard"}var lU=new Set(["text","id","type","priority","tags","links","timestamp","source"]);function Z9($){if(typeof $==="string")return{text:$,id:null,type:null,priority:"standard",tags:[],links:[],timestamp:null,source:null,extra:{}};if(!$||typeof $!=="object"||!("text"in $))throw Error(`fact must be a string or a mapping with 'text': ${JSON.stringify($)}`);let Z=$,Q={};for(let[X,z]of Object.entries(Z))if(!lU.has(X))Q[X]=z;return{text:String(Z.text),id:Z.id??null,type:Z.type??null,priority:N1(Z.priority),tags:Array.isArray(Z.tags)?Z.tags.slice():[],links:Array.isArray(Z.links)?Z.links.slice():[],timestamp:Z.timestamp??null,source:Z.source??null,extra:Q}}function Q9($){if(u($.id)&&u($.type)&&$.tags.length===0&&$.links.length===0&&u($.timestamp)&&u($.source)&&Object.keys($.extra).length===0&&$.priority==="standard")return $.text;let Q={text:$.text};if(!u($.id))Q.id=$.id;if(!u($.type))Q.type=$.type;if(Q.priority=$.priority,$.tags.length)Q.tags=$.tags;if($.links.length)Q.links=$.links;if(!u($.timestamp))Q.timestamp=$.timestamp;if(!u($.source))Q.source=$.source;return Object.assign(Q,$.extra),Q}class N0{namepoint;profile;retention;created;last_etched;_facts;_byId;_index;_sessions;_preferences;_custom;_extra;_memoryExtra;constructor($,Z={}){this.namepoint=$,this.profile=Z.profile??"knowledge",this.retention=Z.retention??"forever",this.created=Z.created??d0(),this.last_etched=this.created,this._facts=Z.facts?Z.facts.slice():[],this._byId=new Map,this._facts.forEach((Q,X)=>{if(!u(Q.id))this._byId.set(Q.id,X)}),this._index=Z.index?Z.index.slice():[],this._sessions=Z.sessions?structuredClone(Z.sessions):[],this._preferences=Z.preferences?{...Z.preferences}:{},this._custom=Z.custom?{...Z.custom}:{},this._extra=Z.extra?{...Z.extra}:{},this._memoryExtra=Z.memoryExtra?{...Z.memoryExtra}:{}}get facts(){return this._facts}get index(){return this._index}get sessions(){return this._sessions}get preferences(){return this._preferences}get custom(){return this._custom}get extra(){return this._extra}get memoryExtra(){return this._memoryExtra}static load($){if(!pU($))throw Error(`soul file not found: ${$}`);let Z=vU($,"utf-8"),Q=X0(Z);if(!Q||typeof Q!=="object")throw Error("soul is not a YAML mapping");let X=Q.memory&&typeof Q.memory==="object"?Q.memory:{},z=Array.isArray(X.facts)?X.facts:[],J={};for(let[q,Y]of Object.entries(Q))if(!U8.has(q))J[q]=structuredClone(Y);let H={};for(let[q,Y]of Object.entries(X))if(!q8.has(q))H[q]=structuredClone(Y);let U=new N0(String(Q.namepoint??$.replace(/.*\//,"").replace(/\.fafm$/,"")),{profile:String(Q.profile??"voice"),facts:z.map(Z9),retention:String(Q.retention??"forever"),created:Q.created??null,index:Array.isArray(Q.index)?Q.index.slice():[],sessions:Array.isArray(X.sessions)?structuredClone(X.sessions):[],preferences:X.preferences&&typeof X.preferences==="object"?structuredClone(X.preferences):{},custom:X.custom&&typeof X.custom==="object"?structuredClone(X.custom):{},extra:J,memoryExtra:H});return U.last_etched=String(Q.last_etched??U.created),U}static fromFile($){return N0.load($)}toDoc(){let $={facts:this._facts.map(Q9),sessions:structuredClone(this._sessions),preferences:structuredClone(this._preferences),custom:structuredClone(this._custom)};for(let[Q,X]of Object.entries(this._memoryExtra))if(!q8.has(Q))$[Q]=structuredClone(X);let Z={version:"1.1",profile:this.profile,namepoint:this.namepoint,created:this.created,last_etched:this.last_etched,retention:this.retention,index:this._index.slice(),memory:$};for(let[Q,X]of Object.entries(this._extra))if(!U8.has(Q))Z[Q]=structuredClone(X);return Z}toYaml(){return C2(this.toDoc(),{lineWidth:100})}rebuildIndex($=80){return this._index=this._facts.map((Z)=>`${Z.id??"?"} — ${Z.text.slice(0,$)}`),this._index}save($,Z={}){if(Z.reindex!==!1)this.rebuildIndex();return mU($,this.toYaml(),"utf-8"),$}toFile($,Z={}){return this.save($,Z)}add($){if(!u($.id)&&this._byId.has($.id)){let Z=this._byId.get($.id);if(Z!==void 0)this._facts[Z]=$}else if(this._facts.push($),!u($.id))this._byId.set($.id,this._facts.length-1);if($.timestamp&&$.timestamp>(this.last_etched||""))this.last_etched=$.timestamp;return $}etch($,Z={}){return this.add({text:$,id:Z.id??null,type:Z.type??null,priority:N1(Z.priority),tags:Z.tags?Z.tags.slice():[],links:Z.links?Z.links.slice():[],timestamp:d0(),source:Z.source??null,extra:{}})}recall($,Z={}){let Q=W0[N1(Z.minPriority??"ephemeral")]??0,X=($??"").toLowerCase(),z=new Set(Z.tags??[]),J=[];this._facts.forEach((U,q)=>{if(X&&!U.text.toLowerCase().includes(X))return;if(z.size>0&&![...z].some((Y)=>U.tags.includes(Y)))return;if(!u(Z.type)&&U.type!==Z.type)return;if((W0[U.priority]??1)<Q)return;J.push([q,U])}),J.sort((U,q)=>{let Y=W0[U[1].priority]??1,_=W0[q[1].priority]??1;if(_!==Y)return _-Y;let B=U[1].timestamp??"",G=q[1].timestamp??"";if(G!==B)return G<B?-1:G>B?1:0;return q[0]-U[0]});let H=J.map(([,U])=>U);if(!u(Z.limit))return H.slice(0,Z.limit);return H}getFact($){let Z=this._byId.get($);return Z===void 0?null:this._facts[Z]}deleteFact($){let Z=this._byId.get($);if(Z===void 0)return!1;return this._facts.splice(Z,1),this._byId.clear(),this._facts.forEach((Q,X)=>{if(!u(Q.id))this._byId.set(Q.id,X)}),!0}}import{readdirSync as dU,readFileSync as cU,statSync as X9,existsSync as iU}from"fs";import{join as aU,basename as z9,resolve as rU}from"path";var J9=new Set(["MEMORY.md","MEMORY-FULL.md","README.md"]),sU=/\[\[([^\]]+)\]\]/g;function nU($){let Z=X9($).mtimeMs;return new Date(Z).toISOString().replace(/\.\d{3}Z$/,"Z")}function oU($){if(!$.startsWith("---"))return{fm:null,body:$};let Z=$.split("---");if(Z.length<3)return{fm:null,body:$};try{let Q=X0(Z[1]);if(!Q||typeof Q!=="object")return{fm:null,body:Z.slice(2).join("---").trim()};return{fm:Q,body:Z.slice(2).join("---").trim()}}catch{return{fm:null,body:$}}}function tU($,Z,Q){if(!Q.name)return null;let X=Q.metadata&&typeof Q.metadata==="object"?Q.metadata:{},z=X.type;if(typeof z!=="string"||!E2.has(z))return null;let J=String(Q.name).trim(),U=(Q.description!==void 0&&Q.description!==null&&String(Q.description).trim()?String(Q.description).trim():"")||J,q={};if(X.originSessionId)q.provenance=[`session:${X.originSessionId}`];let Y=[...new Set([...Z.matchAll(sU)].map((_)=>_[1]))].sort();return{text:U,id:J,type:z,priority:"standard",tags:[],links:Y,timestamp:nU($),source:`claude-code memory: ${z9($)}`,extra:q}}function H9($,Z={}){let Q=rU($);if(!iU(Q))throw Error(`Claude memory directory not found: ${Q}`);if(!X9(Q).isDirectory())throw Error(`Claude memory path is not a directory: ${Q}`);let X=Z.skip??J9,z=Z.namepoint??`@claude-code:${z9(Q)}`,J=[],H=dU(Q).filter((B)=>B.endsWith(".md")).sort();for(let B of H){if(X.has(B))continue;let G=aU(Q,B),O;try{O=cU(G,"utf-8")}catch{continue}let{fm:D,body:V}=oU(O);if(!D)continue;let W=tU(G,V,D);if(W)J.push(W)}let U=J.map((B)=>B.timestamp).filter(Boolean),q=U.length?U.reduce((B,G)=>B<G?B:G):d0(),Y=U.length?U.reduce((B,G)=>B>G?B:G):q,_=new N0(z,{profile:"knowledge",facts:J,created:q});return _.last_etched=Y,_.rebuildIndex(),_}var B9="faf-interview/1",c0="(terse — 3-4 words)",_8=[{path:"project.name",question:"What is the name of this project?",header:"Name",type:"text",required:!0},{path:"project.goal",question:"What does this project do? (one sentence)",header:"Goal",type:"text",required:!0},{path:"human_context.who",question:`Who is this for? ${c0}`,header:"Who",type:"text",required:!0},{path:"human_context.what",question:`What are they building? ${c0}`,header:"What",type:"text",required:!0},{path:"human_context.why",question:`Why does it exist? ${c0}`,header:"Why",type:"text",required:!0},{path:"human_context.where",question:`Where does it run or ship? ${c0}`,header:"Where",type:"text",required:!0},{path:"human_context.when",question:`When — timeline or stage? ${c0}`,header:"When",type:"text",required:!0},{path:"human_context.how",question:`How is it built or used? ${c0}`,header:"How",type:"text",required:!0}],G9=[{path:"project.main_language",question:"What is the primary programming language?",header:"Language",type:"select",required:!0,options:[{label:"TypeScript",value:"TypeScript",description:"JavaScript with types"},{label:"JavaScript",value:"JavaScript",description:"Vanilla JS or Node.js"},{label:"Python",value:"Python",description:"Python 3.x"},{label:"Rust",value:"Rust",description:"Systems programming"},{label:"Go",value:"Go",description:"Golang"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.frontend",question:"What frontend framework does it use?",header:"Frontend",type:"select",required:!1,options:[{label:"React",value:"React",description:"React.js"},{label:"Vue",value:"Vue",description:"Vue.js"},{label:"Svelte",value:"Svelte",description:"Svelte/SvelteKit"},{label:"Next.js",value:"Next.js",description:"React framework"},{label:"None",value:"None",description:"No frontend"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.backend",question:"What backend framework does it use?",header:"Backend",type:"select",required:!1,options:[{label:"Express",value:"Express",description:"Node.js Express"},{label:"Fastify",value:"Fastify",description:"Node.js Fastify"},{label:"Django",value:"Django",description:"Python Django"},{label:"FastAPI",value:"FastAPI",description:"Python FastAPI"},{label:"None",value:"None",description:"No backend"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.database",question:"What database does it use?",header:"Database",type:"select",required:!1,options:[{label:"PostgreSQL",value:"PostgreSQL",description:"Postgres"},{label:"MySQL",value:"MySQL",description:"MySQL/MariaDB"},{label:"SQLite",value:"SQLite",description:"Embedded SQL"},{label:"MongoDB",value:"MongoDB",description:"Document store"},{label:"None",value:"None",description:"No database"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.runtime",question:"What runtime does it run on?",header:"Runtime",type:"text",required:!1},{path:"stack.hosting",question:"Where is it hosted or distributed?",header:"Hosting",type:"text",required:!1},{path:"stack.build",question:"What is the build tool?",header:"Build",type:"text",required:!1},{path:"stack.cicd",question:"What CI/CD does it use?",header:"CI/CD",type:"text",required:!1}],i0=[..._8,...G9],V9=new Map(i0.map(($)=>[$.path,$])),eU=Object.fromEntries(i0.map(($)=>[$.path,$]));function B8($){let Z=V9.get($);if(Z)return Z.question;let Q=n0.get($)??y.find((X)=>X.canonical===$);return Q?`${Q.description}?`.replace(/\?\?$/,"?"):`${$}?`}function $q($,Z){return i0.filter((Q)=>{let X=Q.path.split("."),z=$;for(let J of X)if(z&&typeof z==="object"&&J in z)z=z[J];else{z=void 0;break}if(z==="slotignored")return!1;return Z(z)})}var Zq=new Set(["developers","development teams","development team","teams","development","cloud platform","web platform","platform","best practices","improve development efficiency","development efficiency","modern development practices","modern development","test-driven development","production/stable","production","stable","app","project","tool"]),Qq=[["npm",/\bnpm\b/i],["PyPI",/\bpypi\b/i],["crates.io",/\bcrates\.io\b/i],["Homebrew",/\bhomebrew\b/i],["Docker",/\bdocker\b/i],["Cloudflare",/\bcloudflare\b/i],["Vercel",/\bvercel\b/i],["Netlify",/\bnetlify\b/i],["AWS",/\baws\b/i],["Cloud Run",/\bcloud run\b/i],["edge",/\bedge\b/i],["browser",/\bbrowser\b/i],["WASM",/\bwasm\b/i],["GitHub",/\bgithub\b/i],["MCP Registry",/\bmcp registry\b/i],["Chrome Web Store",/\bchrome web store\b/i],["Smithery",/\bsmithery\b/i]],U9=($)=>Zq.has($.toLowerCase().trim()),Xq=/^(?:with|and|or|using|for|to|that|who|whom|whose|the|a|an|in|on|of|via|by|&)$/i;function q9($,Z=5){let Q=$.trim().split(/\s+/).filter(Boolean).slice(0,Z);while(Q.length&&Xq.test(Q[Q.length-1].replace(/[.,;:]+$/,"")))Q.pop();return Q.join(" ")}function O9($){let Z={};if(!$||typeof $!=="string")return Z;let Q=$.trim(),X=Q.replace(/^[^A-Za-z0-9]+/,"").split(/\s+(?:for|that|which|to)\s+|\s+[—–]\s+|\s-\s|:\s|\.\s|,\s/)[0].trim(),z=q9(X);if(z.split(/\s+/).filter(Boolean).length>=2&&!U9(z))Z.what=z;let J=Qq.filter(([,q])=>q.test(Q)).map(([q])=>q);if(J.length)Z.where=J.slice(0,4).join(", ");let H=Q.match(/\bfor ((?:[A-Za-z][\w./+-]* )?(?:any |all )?(?:developers?|teams?|engineers?|builders?|users?|integrators?)\b[^.,;:—]*)/i),U=q9((H?.[1]||"").trim().replace(/\s+/g," "));if(U&&!U9(U))Z.who=U;return Z}function Y9($,Z){let Q=$;for(let X of Z.split("."))if(Q&&typeof Q==="object"&&X in Q)Q=Q[X];else return;return Q}function _9($){if(typeof $!=="string")return!1;let Z=$.trim();if(!Z||Z==="slotignored")return!1;return!D0(Z)}function zq($,Z={}){let Q=$&&typeof $==="object"?$:{},X=Y9(Q,"project.goal"),z=(_9(X)?String(X).trim():"")||(Z.goal??"").trim(),J=O9(z),H=Z.detailed??{},U={"project.goal":z||void 0,"human_context.what":J.what,"human_context.where":J.where,"human_context.who":J.who},q=(O)=>{let D=U[O];if(D)return{value:D,source:"project goal",confidence:0.9};let V=O.startsWith("human_context.")?O.slice(14):"",W=V?H[V]:void 0;return W?{value:W.value,source:W.source,confidence:W.confidence}:void 0},Y=_8.map((O,D)=>{let V={n:D+1,path:O.path,header:O.header,question:O.question},W=Y9(Q,O.path);if(_9(W))return{...V,value:String(W).trim(),status:"filled",seeded:!1};let I=q(O.path);if(I)return{...V,value:I.value,status:"seeded",seeded:!0,source:I.source,confidence:I.confidence};return{...V,value:"",status:"empty",seeded:!1}}),_=Y.filter((O)=>O.status==="filled").length,B=Y.filter((O)=>O.status==="seeded").length,G=Y.filter((O)=>O.status==="empty").length;return{version:B9,rows:Y,filledCount:_,seededCount:B,emptyCount:G,complete:G===0}}function S2($){if($===null||$===void 0)return!0;if(typeof $==="string"){let Z=$.trim();return Z===""||D0(Z)}return!1}function Jq($,Z){let Q=$;for(let X of Z.split("."))if(Q&&typeof Q==="object"&&X in Q)Q=Q[X];else return;return Q}function W9($){if($==="project.goal")return!0;return n0.get($)?.category==="human"}function D9($,Z=S2){let Q=[],X=[];for(let z of i0){let J=Jq($,z.path);if(J==="slotignored")continue;if(!Z(J))continue;(W9(z.path)?Q:X).push(z.path)}return{human:Q,sourceable:X}}function I9($,Z,Q=S2){let X=D9(Z,Q),z;if($>=100||X.human.length===0&&X.sourceable.length===0)z="done";else if(X.sourceable.length>0)z="can-source";else z="needs-human";let J=z==="needs-human"?G8(X):[];return{status:z,score:$,gaps:X,ask:J}}function G8($){return $.human.map((Z)=>({path:Z,question:B8(Z)}))}function Hq($,Z={}){let Q=Math.max(1,Z.maxRounds??5),X=Z.isEmpty??S2,z=[],J=0;for(let U=0;U<=Q;U++){let q=$.read();if(!q)return{status:"no-faf",score:0,rounds:J,history:z,ask:[]};let Y=$.score(q.yaml);z.push(Y);let _=I9(Y,q.data,X);if(_.status==="done")return{status:"done",score:Y,rounds:J,history:z,ask:[]};if(_.status==="needs-human")return{status:"needs-human",score:Y,rounds:J,history:z,ask:_.ask};if(z.length>=2&&Y<=z[z.length-2])return _.gaps.human.length?{status:"needs-human",score:Y,rounds:J,history:z,ask:G8(_.gaps)}:{status:"stuck",score:Y,rounds:J,history:z,ask:[]};if(J>=Q)return{status:"capped",score:Y,rounds:J,history:z,ask:G8(_.gaps)};$.runAuto(),J++}return{status:"capped",score:z[z.length-1]??0,rounds:J,history:z,ask:[]}}import{createHash as L9}from"crypto";var V8="faf-bench/1",Uq={"project.name":"What is the project's name?","project.goal":"What is the project's goal — what is it for?","project.main_language":"What is the primary programming language?","human_context.who":"Who is this project for?","human_context.what":"What are they building?","human_context.why":"Why does this project exist?","human_context.where":"Where does it run or get distributed?","human_context.when":"When — what is the project's timeline or stage?","human_context.how":"How is it built or used?"};function qq($,Z){return Uq[$]??`What is the project's ${Z.replace(/\s*\(.*\)$/,"").toLowerCase()}?`}var M9=[["typescript","ts"],["javascript","js"],["python","py","python3"],["node","nodejs","node js","node.js"],["github actions","gh actions","actions"],["postgresql","postgres","pg"],["kubernetes","k8s"],["npm","npm registry"],["cloudflare workers","cf workers","workers"],["google cloud run","cloud run","gcp cloud run"]],P1=new Map;M9.forEach(($,Z)=>$.forEach((Q)=>P1.set(Q,Z)));var Yq=new Set(["a","an","the","and","or","of","for","to","in","on","with","is","it","its","their","your","via","by","using","use","used"]);function j2($){return $.toLowerCase().replace(/[^a-z0-9\s.+#-]/g," ").replace(/\.(?=\s|$)/g," ").replace(/\s+/g," ").trim()}function K9($){return j2($).split(" ").filter((Z)=>Z&&!Yq.has(Z))}function R9($,Z){let Q=j2($),X=j2(Z);if(!Q||!X)return!1;if(Q===X)return!0;let z=P1.get(Q);if(z!==void 0&&P1.get(X)===z)return!0;let J=K9($);if(J.length===0)return!1;let H=new Set(K9(Z));return J.every((U)=>{if(H.has(U))return!0;let q=P1.get(U);return q!==void 0&&[...H].some((Y)=>P1.get(Y)===q)})}function _q($){let Z=a2($),Q=X0($),X=[],z={},J=0;for(let q of y){if(Z.slots[q.path]!=="populated")continue;let Y=S8(Q,q);if(typeof Y!=="string")continue;let _=Y.trim();if(!_||u1.has(_.toLowerCase()))continue;J+=1,X.push({n:J,path:q.path,question:qq(q.path,q.description)}),z[J]=_}let H=JSON.stringify({v:V8,q:X.map((q)=>[q.path,q.question])}),U=L9("sha256").update(H).digest("hex").slice(0,12);return{version:V8,qsetHash:U,questions:X,answers:z}}function Bq($){return{version:$.version,qsetHash:$.qsetHash,questions:$.questions}}function Gq($,Z){let Q=$.questions.map((z)=>{let J=Z[String(z.n)]??Z[z.path]??"";return{n:z.n,path:z.path,ok:typeof J==="string"&&J.trim()!==""&&R9($.answers[z.n],J)}}),X=$.questions.filter((z)=>!Q[z.n-1].ok);return{correct:Q.filter((z)=>z.ok).length,total:$.questions.length,misses:X,perQuestion:Q}}function Vq($,Z){let Q=JSON.stringify({v:$.version,repo:Z??null,qset:$.qsetHash,protocol:$.protocol,cold:$.cold??null,faf:$.faf??null});return{projection:Q,hash:L9("sha256").update(Q).digest("hex")}}import{existsSync as nY,readdirSync as u9,readFileSync as oY}from"fs";import{join as F8,dirname as tY,extname as eY,resolve as $_}from"path";var O8={"package.json":{frameworks:["Node.js","JavaScript","TypeScript"],slots:{packageManager:"npm/yarn/pnpm",mainLanguage:"JavaScript/TypeScript"},priority:35,intelligence:"ultra-high"},"README.md":{frameworks:[],slots:{targetUser:"developers",coreProblem:"understanding project",missionPurpose:"project documentation"},priority:25,intelligence:"high"},"requirements.txt":{frameworks:["Python"],slots:{packageManager:"pip",mainLanguage:"Python"},priority:35,intelligence:"ultra-high"},Pipfile:{frameworks:["Python"],slots:{packageManager:"pipenv",mainLanguage:"Python"},priority:35,intelligence:"ultra-high"},"pyproject.toml":{frameworks:["Python"],slots:{mainLanguage:"Python",runtime:"Python",backend:"Python"},priority:36,intelligence:"ultra-high"},Gemfile:{frameworks:["Ruby"],slots:{packageManager:"bundler",mainLanguage:"Ruby"},priority:35,intelligence:"ultra-high"},"Gemfile.lock":{frameworks:["Ruby"],slots:{packageManager:"bundler",mainLanguage:"Ruby"},priority:34,intelligence:"high"},"composer.json":{frameworks:["PHP","Laravel","Symfony"],slots:{packageManager:"composer",mainLanguage:"PHP"},priority:35,intelligence:"ultra-high"},"Cargo.toml":{frameworks:["Rust"],slots:{packageManager:"cargo",mainLanguage:"Rust",buildTool:"cargo"},priority:36,intelligence:"ultra-high"},"go.mod":{frameworks:["Go"],slots:{packageManager:"go modules",mainLanguage:"Go",buildTool:"go build"},priority:36,intelligence:"ultra-high"},"Package.swift":{frameworks:["Swift"],slots:{packageManager:"spm",mainLanguage:"Swift",buildTool:"swift build"},priority:36,intelligence:"ultra-high"},"*.csproj":{frameworks:["C#",".NET"],slots:{packageManager:"NuGet",mainLanguage:"C#",buildTool:"dotnet"},priority:36,intelligence:"ultra-high"},"pubspec.yaml":{frameworks:["Dart"],slots:{packageManager:"pub",mainLanguage:"Dart"},priority:35,intelligence:"ultra-high"},"pom.xml":{frameworks:["Java"],slots:{packageManager:"maven",mainLanguage:"Java",buildTool:"maven"},priority:35,intelligence:"ultra-high"},"build.gradle":{frameworks:["Java","Gradle"],slots:{packageManager:"gradle",mainLanguage:"Java",buildTool:"gradle"},priority:35,intelligence:"ultra-high"},"settings.gradle":{frameworks:["Java","Gradle"],slots:{packageManager:"gradle",mainLanguage:"Java",buildTool:"gradle"},priority:34,intelligence:"high"},"settings.gradle.kts":{frameworks:["Kotlin","Gradle"],slots:{packageManager:"gradle",mainLanguage:"Kotlin",buildTool:"gradle"},priority:34,intelligence:"high"},"next.config.js":{frameworks:["Next.js"],slots:{framework:"Next.js",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"next.config.mjs":{frameworks:["Next.js"],slots:{framework:"Next.js",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"next.config.ts":{frameworks:["Next.js 13+"],slots:{framework:"Next.js 13+",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"nuxt.config.js":{frameworks:["Nuxt 2"],slots:{framework:"Nuxt 2",runtime:"Node.js",buildTool:"Nuxt",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"nuxt.config.ts":{frameworks:["Nuxt 3"],slots:{framework:"Nuxt 3",runtime:"Node.js",buildTool:"Nuxt",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"svelte.config.js":{frameworks:["SvelteKit"],slots:{framework:"SvelteKit",buildTool:"Vite",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"angular.json":{frameworks:["Angular"],slots:{framework:"Angular",buildTool:"Angular CLI",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"manifest.json":{frameworks:["Chrome Extension","Browser Extension"],slots:{framework:"Chrome Extension",runtime:"Chrome/Browser",mainLanguage:"JavaScript",hosting:"Chrome Web Store",apiType:"Chrome APIs"},priority:35,intelligence:"ultra-high",confirmWith:["popup.html","background.js","content.js"]},"vue.config.js":{frameworks:["Vue"],slots:{framework:"Vue",buildTool:"Vue CLI",mainLanguage:"JavaScript"},priority:30,intelligence:"high"},"remix.config.js":{frameworks:["Remix"],slots:{framework:"Remix",runtime:"Node.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"gatsby-config.js":{frameworks:["Gatsby"],slots:{framework:"Gatsby",buildTool:"Gatsby",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"gatsby-config.ts":{frameworks:["Gatsby"],slots:{framework:"Gatsby",buildTool:"Gatsby",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"astro.config.mjs":{frameworks:["Astro"],slots:{framework:"Astro",buildTool:"Vite",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"redwood.toml":{frameworks:["RedwoodJS"],slots:{framework:"RedwoodJS",buildTool:"Webpack",mainLanguage:"JavaScript/TypeScript",server:"Node.js",database:"Prisma"},priority:30,intelligence:"high"},"blitz.config.ts":{frameworks:["Blitz.js"],slots:{framework:"Blitz.js",buildTool:"Next.js",mainLanguage:"TypeScript",server:"Node.js",database:"Prisma"},priority:30,intelligence:"high"},"qwik.config.ts":{frameworks:["Qwik"],slots:{framework:"Qwik",buildTool:"Vite",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"manage.py":{frameworks:["Django"],slots:{framework:"Django",backend:"Django",mainLanguage:"Python",server:"Django",apiType:"Django Views"},priority:30,intelligence:"high"},artisan:{frameworks:["Laravel"],slots:{framework:"Laravel",backend:"Laravel",mainLanguage:"PHP",server:"PHP",apiType:"Laravel Routes"},priority:30,intelligence:"high"},"mix.exs":{frameworks:["Phoenix","Elixir"],slots:{framework:"Phoenix",backend:"Phoenix",mainLanguage:"Elixir",server:"BEAM"},priority:30,intelligence:"high"},"nest-cli.json":{frameworks:["NestJS"],slots:{framework:"NestJS",backend:"NestJS",mainLanguage:"TypeScript",server:"Node.js",apiType:"REST API"},priority:30,intelligence:"high"},"strapi.config.js":{frameworks:["Strapi"],slots:{backend:"Strapi",apiType:"REST API",database:"Required",server:"Node.js"},priority:30,intelligence:"high"},Dockerfile:{frameworks:["Docker"],slots:{hosting:"Docker",connection:"Containerized"},priority:30,intelligence:"high"},"docker-compose.yml":{frameworks:["Docker Compose"],slots:{hosting:"Docker",connection:"Multi-container"},priority:30,intelligence:"high"},"docker-compose.yaml":{frameworks:["Docker Compose"],slots:{hosting:"Docker",connection:"Multi-container"},priority:30,intelligence:"high"},"kubernetes.yml":{frameworks:["Kubernetes"],slots:{hosting:"Kubernetes",connection:"Orchestrated"},priority:30,intelligence:"high"},"k8s.yaml":{frameworks:["Kubernetes"],slots:{hosting:"Kubernetes",connection:"Orchestrated"},priority:30,intelligence:"high"},"vercel.json":{frameworks:["Vercel"],slots:{hosting:"Vercel",cicd:"Vercel"},priority:30,intelligence:"high"},"netlify.toml":{frameworks:["Netlify"],slots:{hosting:"Netlify",cicd:"Netlify"},priority:30,intelligence:"high"},"render.yaml":{frameworks:["Render"],slots:{hosting:"Render",cicd:"Render"},priority:30,intelligence:"high"},"fly.toml":{frameworks:["Fly.io"],slots:{hosting:"Fly.io",cicd:"Fly.io"},priority:30,intelligence:"high"},"railway.json":{frameworks:["Railway"],slots:{hosting:"Railway",cicd:"Railway"},priority:30,intelligence:"high"},"railway.toml":{frameworks:["Railway"],slots:{hosting:"Railway",cicd:"Railway"},priority:30,intelligence:"high"},"app.yaml":{frameworks:["Google App Engine"],slots:{hosting:"Google Cloud",cicd:"Google Cloud"},priority:30,intelligence:"high"},Procfile:{frameworks:["Heroku"],slots:{hosting:"Heroku",cicd:"Heroku"},priority:30,intelligence:"high"},"vite.config.js":{frameworks:["Vite"],slots:{buildTool:"Vite"},priority:25,intelligence:"medium"},"vite.config.ts":{frameworks:["Vite"],slots:{buildTool:"Vite",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"webpack.config.js":{frameworks:["Webpack"],slots:{buildTool:"Webpack"},priority:25,intelligence:"medium"},"rollup.config.js":{frameworks:["Rollup"],slots:{buildTool:"Rollup"},priority:25,intelligence:"medium"},"esbuild.config.js":{frameworks:["esbuild"],slots:{buildTool:"esbuild"},priority:25,intelligence:"medium"},"parcel.config.js":{frameworks:["Parcel"],slots:{buildTool:"Parcel"},priority:25,intelligence:"medium"},"snowpack.config.js":{frameworks:["Snowpack"],slots:{buildTool:"Snowpack"},priority:25,intelligence:"medium"},"tsconfig.json":{frameworks:["TypeScript"],slots:{mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"jsconfig.json":{frameworks:["JavaScript"],slots:{mainLanguage:"JavaScript"},priority:20,intelligence:"medium"},"babel.config.js":{frameworks:["Babel"],slots:{buildTool:"Babel"},priority:20,intelligence:"medium"},".babelrc":{frameworks:["Babel"],slots:{buildTool:"Babel"},priority:20,intelligence:"medium"},"jest.config.js":{frameworks:["Jest"],slots:{cicd:"Jest"},priority:25,intelligence:"medium"},"jest.config.ts":{frameworks:["Jest"],slots:{cicd:"Jest",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"vitest.config.ts":{frameworks:["Vitest"],slots:{cicd:"Vitest",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"cypress.config.js":{frameworks:["Cypress"],slots:{cicd:"Cypress"},priority:25,intelligence:"medium"},"playwright.config.ts":{frameworks:["Playwright"],slots:{cicd:"Playwright",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"karma.conf.js":{frameworks:["Karma"],slots:{cicd:"Karma"},priority:20,intelligence:"medium"},"mocha.opts":{frameworks:["Mocha"],slots:{cicd:"Mocha"},priority:20,intelligence:"medium"},".rspec":{frameworks:["RSpec"],slots:{cicd:"RSpec",mainLanguage:"Ruby"},priority:25,intelligence:"medium"},"pytest.ini":{frameworks:["Pytest"],slots:{cicd:"Pytest",mainLanguage:"Python"},priority:25,intelligence:"medium"},"phpunit.xml":{frameworks:["PHPUnit"],slots:{cicd:"PHPUnit",mainLanguage:"PHP"},priority:25,intelligence:"medium"},"schema.prisma":{frameworks:["Prisma"],slots:{database:"Prisma ORM",connection:"Prisma"},priority:25,intelligence:"medium"},"drizzle.config.ts":{frameworks:["Drizzle"],slots:{database:"Drizzle ORM",connection:"Drizzle",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"ormconfig.js":{frameworks:["TypeORM"],slots:{database:"TypeORM",connection:"TypeORM"},priority:25,intelligence:"medium"},"knexfile.js":{frameworks:["Knex.js"],slots:{database:"Knex.js",connection:"Knex.js"},priority:25,intelligence:"medium"},"sequelize.config.js":{frameworks:["Sequelize"],slots:{database:"Sequelize",connection:"Sequelize"},priority:25,intelligence:"medium"},"alembic.ini":{frameworks:["Alembic"],slots:{database:"Alembic",mainLanguage:"Python"},priority:25,intelligence:"medium"},".github/workflows":{frameworks:["GitHub Actions"],slots:{cicd:"GitHub Actions"},priority:25,intelligence:"medium"},".gitlab-ci.yml":{frameworks:["GitLab CI"],slots:{cicd:"GitLab CI"},priority:25,intelligence:"medium"},Jenkinsfile:{frameworks:["Jenkins"],slots:{cicd:"Jenkins"},priority:25,intelligence:"medium"},".circleci/config.yml":{frameworks:["CircleCI"],slots:{cicd:"CircleCI"},priority:25,intelligence:"medium"},".travis.yml":{frameworks:["Travis CI"],slots:{cicd:"Travis CI"},priority:25,intelligence:"medium"},"azure-pipelines.yml":{frameworks:["Azure DevOps"],slots:{cicd:"Azure DevOps"},priority:25,intelligence:"medium"},"bitbucket-pipelines.yml":{frameworks:["Bitbucket Pipelines"],slots:{cicd:"Bitbucket Pipelines"},priority:25,intelligence:"medium"},"tailwind.config.js":{frameworks:["Tailwind CSS"],slots:{cssFramework:"Tailwind CSS"},priority:20,intelligence:"medium"},"tailwind.config.ts":{frameworks:["Tailwind CSS"],slots:{cssFramework:"Tailwind CSS",mainLanguage:"TypeScript"},priority:20,intelligence:"medium"},"postcss.config.js":{frameworks:["PostCSS"],slots:{cssFramework:"PostCSS"},priority:20,intelligence:"medium"},"uno.config.ts":{frameworks:["UnoCSS"],slots:{cssFramework:"UnoCSS",mainLanguage:"TypeScript"},priority:20,intelligence:"medium"},"styled-components.config.js":{frameworks:["styled-components"],slots:{cssFramework:"styled-components",uiLibrary:"styled-components"},priority:20,intelligence:"medium"},"emotion.config.js":{frameworks:["Emotion"],slots:{cssFramework:"Emotion",uiLibrary:"Emotion"},priority:20,intelligence:"medium"},"metro.config.js":{frameworks:["React Native"],slots:{framework:"React Native",mainLanguage:"JavaScript"},priority:25,intelligence:"medium"},"expo.config.js":{frameworks:["Expo"],slots:{framework:"React Native",buildTool:"Expo"},priority:25,intelligence:"medium"},"app.json":{frameworks:["React Native","Expo"],slots:{framework:"React Native"},priority:20,intelligence:"medium",confirmWith:["expo"]},"capacitor.config.ts":{frameworks:["Capacitor"],slots:{framework:"Capacitor",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"ionic.config.json":{frameworks:["Ionic"],slots:{framework:"Ionic",uiLibrary:"Ionic"},priority:25,intelligence:"medium"},"nx.json":{frameworks:["Nx"],slots:{buildTool:"Nx"},priority:25,intelligence:"medium"},"turbo.json":{frameworks:["Turborepo"],slots:{buildTool:"Turborepo"},priority:25,intelligence:"medium"},"lerna.json":{frameworks:["Lerna"],slots:{buildTool:"Lerna"},priority:25,intelligence:"medium"},"rush.json":{frameworks:["Rush"],slots:{buildTool:"Rush"},priority:25,intelligence:"medium"},"pnpm-workspace.yaml":{frameworks:["pnpm workspaces"],slots:{packageManager:"pnpm",buildTool:"pnpm workspaces"},priority:25,intelligence:"medium"},"*.svelte":{frameworks:["Svelte","SvelteKit"],slots:{framework:"Svelte"},priority:15,intelligence:"low"},"*.vue":{frameworks:["Vue"],slots:{framework:"Vue"},priority:15,intelligence:"low"},"*.jsx":{frameworks:["React"],slots:{framework:"React",mainLanguage:"JavaScript"},priority:15,intelligence:"low"},"*.ts":{frameworks:["TypeScript"],slots:{mainLanguage:"TypeScript"},priority:15,intelligence:"low"},"*.tsx":{frameworks:["React","TypeScript"],slots:{framework:"React",mainLanguage:"TypeScript"},priority:15,intelligence:"low"},"*.py":{frameworks:["Python"],slots:{mainLanguage:"Python"},priority:15,intelligence:"low"},"*.rb":{frameworks:["Ruby"],slots:{mainLanguage:"Ruby"},priority:15,intelligence:"low"},"*.php":{frameworks:["PHP"],slots:{mainLanguage:"PHP"},priority:15,intelligence:"low"},"*.java":{frameworks:["Java"],slots:{mainLanguage:"Java"},priority:15,intelligence:"low"},"*.kt":{frameworks:["Kotlin"],slots:{mainLanguage:"Kotlin"},priority:15,intelligence:"low"},"*.swift":{frameworks:["Swift"],slots:{mainLanguage:"Swift"},priority:15,intelligence:"low"},"*.go":{frameworks:["Go"],slots:{mainLanguage:"Go"},priority:15,intelligence:"low"},"*.rs":{frameworks:["Rust"],slots:{mainLanguage:"Rust"},priority:15,intelligence:"low"},"*.dart":{frameworks:["Flutter","Dart"],slots:{mainLanguage:"Dart"},priority:15,intelligence:"low"},"*.ex":{frameworks:["Elixir"],slots:{mainLanguage:"Elixir"},priority:15,intelligence:"low"},"*.exs":{frameworks:["Elixir"],slots:{mainLanguage:"Elixir"},priority:15,intelligence:"low"},"*.scala":{frameworks:["Scala"],slots:{mainLanguage:"Scala"},priority:15,intelligence:"low"},"*.clj":{frameworks:["Clojure"],slots:{mainLanguage:"Clojure"},priority:15,intelligence:"low"},"*.lua":{frameworks:["Lua"],slots:{mainLanguage:"Lua"},priority:15,intelligence:"low"},"*.r":{frameworks:["R"],slots:{mainLanguage:"R"},priority:15,intelligence:"low"},"*.R":{frameworks:["R"],slots:{mainLanguage:"R"},priority:15,intelligence:"low"},"*.jl":{frameworks:["Julia"],slots:{mainLanguage:"Julia"},priority:15,intelligence:"low"},"*.nim":{frameworks:["Nim"],slots:{mainLanguage:"Nim"},priority:15,intelligence:"low"},"*.zig":{frameworks:["Zig"],slots:{mainLanguage:"Zig"},priority:15,intelligence:"low"},"build.zig":{frameworks:["Zig"],slots:{packageManager:"Zig Package Manager",mainLanguage:"Zig",buildTool:"zig build",framework:"Zig",build:"zig build"},priority:35,intelligence:"ultra-high"},"openapi.json":{frameworks:["OpenAPI"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"openapi.yaml":{frameworks:["OpenAPI"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"swagger.json":{frameworks:["Swagger"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"graphql.schema":{frameworks:["GraphQL"],slots:{apiType:"GraphQL",backend:"GraphQL Server"},priority:30,intelligence:"high"},"schema.graphql":{frameworks:["GraphQL"],slots:{apiType:"GraphQL",backend:"GraphQL Server"},priority:30,intelligence:"high"},".graphqlconfig":{frameworks:["GraphQL"],slots:{apiType:"GraphQL"},priority:25,intelligence:"medium"},"redux.config.js":{frameworks:["Redux"],slots:{stateManagement:"Redux"},priority:20,intelligence:"medium"},"mobx.config.js":{frameworks:["MobX"],slots:{stateManagement:"MobX"},priority:20,intelligence:"medium"},"vuex.config.js":{frameworks:["Vuex"],slots:{stateManagement:"Vuex",framework:"Vue"},priority:20,intelligence:"medium"},"pinia.config.js":{frameworks:["Pinia"],slots:{stateManagement:"Pinia",framework:"Vue"},priority:20,intelligence:"medium"},"zustand.config.js":{frameworks:["Zustand"],slots:{stateManagement:"Zustand"},priority:20,intelligence:"medium"},".eslintrc.js":{frameworks:["ESLint"],slots:{},priority:15,intelligence:"low"},".eslintrc.json":{frameworks:["ESLint"],slots:{},priority:15,intelligence:"low"},".prettierrc":{frameworks:["Prettier"],slots:{},priority:15,intelligence:"low"},".prettierrc.json":{frameworks:["Prettier"],slots:{},priority:15,intelligence:"low"},"biome.json":{frameworks:["Biome"],slots:{},priority:15,intelligence:"low"},".editorconfig":{frameworks:["EditorConfig"],slots:{},priority:10,intelligence:"low"},"serverless.yml":{frameworks:["Serverless Framework"],slots:{hosting:"AWS Lambda/Azure/GCP",backend:"Serverless",apiType:"API Gateway"},priority:30,intelligence:"high"},"serverless.yaml":{frameworks:["Serverless Framework"],slots:{hosting:"AWS Lambda/Azure/GCP",backend:"Serverless",apiType:"API Gateway"},priority:30,intelligence:"high"},"sam.yaml":{frameworks:["AWS SAM"],slots:{hosting:"AWS Lambda",backend:"AWS SAM",cicd:"AWS SAM CLI"},priority:30,intelligence:"high"},"template.yaml":{frameworks:["AWS SAM","CloudFormation"],slots:{hosting:"AWS",backend:"AWS SAM/CloudFormation",cicd:"AWS"},priority:25,intelligence:"medium",confirmWith:["samconfig.toml"]},"amplify.yml":{frameworks:["AWS Amplify"],slots:{hosting:"AWS Amplify",backend:"AWS Amplify",cicd:"AWS Amplify"},priority:30,intelligence:"high"},Podfile:{frameworks:["CocoaPods","Swift"],slots:{packageManager:"CocoaPods",mainLanguage:"Swift/Objective-C"},priority:30,intelligence:"high"},"build.gradle.kts":{frameworks:["Kotlin","Gradle"],slots:{packageManager:"gradle",mainLanguage:"Kotlin",buildTool:"gradle"},priority:35,intelligence:"ultra-high"},"*.ipynb":{frameworks:["Jupyter","Python"],slots:{mainLanguage:"Python",framework:"Jupyter Notebook"},priority:30,intelligence:"high"},MLproject:{frameworks:["MLflow"],slots:{mainLanguage:"Python",framework:"MLflow",backend:"MLflow",cicd:"MLflow"},priority:30,intelligence:"high"},"dvc.yaml":{frameworks:["DVC","Data Version Control"],slots:{mainLanguage:"Python",framework:"DVC",cicd:"DVC Pipelines"},priority:30,intelligence:"high"},"dvc.lock":{frameworks:["DVC"],slots:{framework:"DVC"},priority:20,intelligence:"medium"},"wrangler.toml":{frameworks:["Cloudflare Workers","Cloudflare"],slots:{hosting:"Cloudflare Workers",backend:"Cloudflare Workers",runtime:"V8 Isolates"},priority:30,intelligence:"high"},"deno.json":{frameworks:["Deno"],slots:{runtime:"Deno",mainLanguage:"TypeScript",packageManager:"Deno"},priority:30,intelligence:"high"},"bun.lockb":{frameworks:["Bun"],slots:{runtime:"Bun",packageManager:"Bun",mainLanguage:"TypeScript/JavaScript"},priority:30,intelligence:"high"},"codecov.yml":{frameworks:["Codecov"],slots:{cicd:"Codecov"},priority:25,intelligence:"high"},"dependabot.yml":{frameworks:["Dependabot","GitHub"],slots:{cicd:"Dependabot"},priority:25,intelligence:"high"},"renovate.json":{frameworks:["Renovate"],slots:{cicd:"Renovate"},priority:25,intelligence:"high"},Makefile:{frameworks:["Make","GNU Make"],slots:{buildTool:"Make"},priority:30,intelligence:"high"},"CMakeLists.txt":{frameworks:["CMake","C","C++"],slots:{buildTool:"CMake",mainLanguage:"C/C++"},priority:30,intelligence:"high"},"meson.build":{frameworks:["Meson","C","C++"],slots:{buildTool:"Meson",mainLanguage:"C/C++"},priority:30,intelligence:"high"},"*.c":{frameworks:["C"],slots:{mainLanguage:"C"},priority:30,intelligence:"high"},"*.cpp":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:30,intelligence:"high"},"*.cc":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:30,intelligence:"high"},"*.cxx":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:25,intelligence:"high"},"*.h":{frameworks:["C","C++"],slots:{mainLanguage:"C/C++"},priority:25,intelligence:"high"},"*.hpp":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:25,intelligence:"high"},"*.hxx":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:20,intelligence:"medium"},".env":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.example":{frameworks:[],slots:{},priority:25,intelligence:"high"},".env.local":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.development":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.production":{frameworks:[],slots:{},priority:20,intelligence:"medium"},"skaffold.yaml":{frameworks:["Skaffold","Kubernetes"],slots:{hosting:"Kubernetes",cicd:"Skaffold"},priority:30,intelligence:"high"},"Chart.yaml":{frameworks:["Helm","Kubernetes"],slots:{hosting:"Kubernetes",backend:"Helm"},priority:30,intelligence:"high"},"values.yaml":{frameworks:["Helm","Kubernetes"],slots:{hosting:"Kubernetes"},priority:25,intelligence:"high",confirmWith:["Chart.yaml"]},"pulumi.yaml":{frameworks:["Pulumi"],slots:{hosting:"Cloud",cicd:"Pulumi"},priority:30,intelligence:"high"},"Pulumi.yaml":{frameworks:["Pulumi"],slots:{hosting:"Cloud",cicd:"Pulumi"},priority:30,intelligence:"high"},"terragrunt.hcl":{frameworks:["Terragrunt","Terraform"],slots:{hosting:"Cloud",cicd:"Terragrunt"},priority:30,intelligence:"high"},"ansible.yml":{frameworks:["Ansible"],slots:{cicd:"Ansible"},priority:30,intelligence:"high"},"playbook.yml":{frameworks:["Ansible"],slots:{cicd:"Ansible"},priority:25,intelligence:"high"},"*.cs":{frameworks:["C#",".NET","Unity"],slots:{mainLanguage:"C#"},priority:30,intelligence:"high"},"*.m":{frameworks:["Objective-C","iOS"],slots:{mainLanguage:"Objective-C"},priority:25,intelligence:"high"},".nvmrc":{frameworks:["Node.js","nvm"],slots:{runtime:"Node.js"},priority:25,intelligence:"high"},".tool-versions":{frameworks:["asdf"],slots:{},priority:25,intelligence:"high"},".ruby-version":{frameworks:["Ruby","rbenv"],slots:{mainLanguage:"Ruby",runtime:"Ruby"},priority:25,intelligence:"high"},".python-version":{frameworks:["Python","pyenv"],slots:{mainLanguage:"Python",runtime:"Python"},priority:25,intelligence:"high"},".dockerignore":{frameworks:["Docker"],slots:{},priority:20,intelligence:"medium"},".gitattributes":{frameworks:["Git"],slots:{},priority:15,intelligence:"low"},".npmrc":{frameworks:["npm","Node.js"],slots:{packageManager:"npm"},priority:20,intelligence:"medium"},"sonar-project.properties":{frameworks:["SonarQube","SonarCloud"],slots:{cicd:"SonarQube"},priority:25,intelligence:"high"},"*.fs":{frameworks:["F#",".NET"],slots:{mainLanguage:"F#"},priority:25,intelligence:"high"},"*.mm":{frameworks:["Objective-C++","iOS","macOS"],slots:{mainLanguage:"Objective-C++"},priority:25,intelligence:"high"},"build.zig.zon":{frameworks:["Zig"],slots:{mainLanguage:"Zig",packageManager:"Zig Package Manager",buildTool:"zig build"},priority:35,intelligence:"ultra-high"},"gleam.toml":{frameworks:["Gleam","BEAM","Erlang"],slots:{mainLanguage:"Gleam",runtime:"BEAM",packageManager:"Gleam"},priority:30,intelligence:"high"},"bunfig.toml":{frameworks:["Bun"],slots:{runtime:"Bun",packageManager:"Bun",buildTool:"Bun"},priority:30,intelligence:"high"},"mise.toml":{frameworks:["mise"],slots:{},priority:25,intelligence:"high"},".mise.toml":{frameworks:["mise"],slots:{},priority:25,intelligence:"high"},"manifest.toml":{frameworks:["Flox","Nix"],slots:{},priority:25,intelligence:"high",confirmWith:[".flox"]},justfile:{frameworks:["Just"],slots:{buildTool:"Just"},priority:25,intelligence:"high"},".pre-commit-config.yaml":{frameworks:["pre-commit"],slots:{cicd:"pre-commit"},priority:25,intelligence:"high"},"CLAUDE.md":{frameworks:["Claude Code"],slots:{},priority:30,intelligence:"high",confirmWith:[".claude"]}};import{existsSync as F9,readFileSync as Wq,readdirSync as Dq}from"fs";import{join as W8}from"path";var a0={version:2,_doc:"SINGLE SOURCE of Dart/Flutter detection KNOWLEDGE (A+B hybrid, the Truth-is-faf-cli spec). faf-cli imports this directly; faf-python-sdk vendors a synced copy (phase 2); MCPs compose it. Bolster Dart/Flutter by editing THIS file. Logic stays in dart.ts. Refreshed 2026-08-01 (knowledge v2) — community receipt on top of 6.13.0 Dart Edition.",flutterDeps:["flutter"],mcpDeps:["dart_mcp","mcp_server","mcp_dart","dart_mcp_server","mcp","dart_mcpserver"],serverFrameworks:[["serverpod","Serverpod"],["dart_frog","Dart Frog"],["conduit","Conduit"],["angel3_framework","Angel3"],["alfred","Alfred"],["shelf","Shelf"],["jaspr","Jaspr"],["relic","Relic"]],stateManagement:[["flutter_riverpod","Riverpod"],["hooks_riverpod","Riverpod"],["riverpod_annotation","Riverpod"],["riverpod","Riverpod"],["flutter_bloc","Bloc"],["bloc","Bloc"],["provider","Provider"],["get","GetX"],["flutter_mobx","MobX"],["mobx","MobX"],["signals","Signals"],["flutter_hooks","Hooks"]],routing:[["go_router","go_router"],["auto_route","auto_route"],["beamer","Beamer"],["routemaster","Routemaster"]]};var Iq=a0.flutterDeps,Kq=a0.mcpDeps,Lq=a0.serverFrameworks,Mq=a0.stateManagement,Rq=a0.routing;function Fq($){let Z=new Set,Q=!1;for(let X of $.split(`
215
- `)){if(/^(dependencies|dev_dependencies|dependency_overrides):\s*$/.test(X)){Q=!0;continue}if(/^\S/.test(X))Q=!1;if(Q){let z=X.match(/^\s{2}([a-zA-Z0-9_]+):/);if(z)Z.add(z[1].toLowerCase())}}return Z}function g2($){let Z=W8($,"pubspec.yaml");if(!F9(Z))return null;let Q;try{Q=Wq(Z,"utf-8")}catch{return null}let X=Fq(Q),z=(A)=>X.has(A.toLowerCase()),J=Iq.some(z)||/^flutter:\s*$/m.test(Q)||/\bsdk:\s*flutter\b/.test(Q),H=Kq.find(z),U=Lq.find(([A])=>z(A)),q=Mq.find(([A])=>z(A)),Y=q?q[1]:"",_=Rq.find(([A])=>z(A)),B=_?_[1]:"",G=z("flutter_test")?"flutter_test":z("test")?"test":"",O=/^executables:\s*$/m.test(Q),D=!1;try{D=Dq(W8($,"bin")).some((A)=>A.endsWith(".dart"))}catch{}let V=O||D,W,I="",L;if(J)if(I="Flutter",F9(W8($,"lib","main.dart"))||/^publish_to:\s*['"]?none\b/m.test(Q))W="mobile",L="pubspec.yaml (Flutter app)";else W="library",L="pubspec.yaml (Flutter package)";else if(H)W="mcp",L=`pubspec.yaml + ${H} (Dart MCP server)`;else if(U)W="backend",I=U[1],L=`pubspec.yaml + ${U[0]} (Dart backend)`;else if(V)W="cli",L=O?"pubspec.yaml executables: (Dart CLI)":"pubspec.yaml + bin/*.dart (Dart CLI)";else W="library",L="pubspec.yaml (Dart package)";return{appType:W,isFlutter:J,framework:I,stateManagement:Y,routing:B,testing:G,found:L}}import{existsSync as D8,readFileSync as P9,readdirSync as A9,statSync as Nq}from"fs";import{join as h2}from"path";var x2={version:1,_doc:"SINGLE SOURCE of Go detection KNOWLEDGE (A+B hybrid, Truth-is-faf-cli). faf-cli imports this directly; SDKs/MCPs compose it. Bolster Go by editing THIS file. Logic stays in go.ts. Content-aware: go.mod ≠ one bucket — backend · CLI · MCP · library. 2026-08-01 initial (Dart composition pattern).",mcpModules:["github.com/mark3labs/mcp-go","github.com/modelcontextprotocol/go-sdk","github.com/metoro-io/mcp-golang","github.com/ThinkInAIXYZ/go-mcp"],serverFrameworks:[["github.com/gin-gonic/gin","Gin"],["github.com/labstack/echo","Echo"],["github.com/labstack/echo/v4","Echo"],["github.com/gofiber/fiber","Fiber"],["github.com/gofiber/fiber/v2","Fiber"],["github.com/go-chi/chi","Chi"],["github.com/go-chi/chi/v5","Chi"],["github.com/gorilla/mux","Gorilla Mux"],["github.com/gofiber/fiber/v3","Fiber"],["google.golang.org/grpc","gRPC"],["connectrpc.com/connect","Connect"],["github.com/go-kratos/kratos","Kratos"],["github.com/go-kratos/kratos/v2","Kratos"],["github.com/zeromicro/go-zero","go-zero"],["github.com/cloudwego/hertz","Hertz"]],cliFrameworks:[["github.com/spf13/cobra","Cobra"],["github.com/urfave/cli","urfave/cli"],["github.com/urfave/cli/v2","urfave/cli"],["github.com/alecthomas/kingpin","Kingpin"],["github.com/alecthomas/kong","Kong"]]};var Pq=x2.mcpModules,Tq=x2.serverFrameworks,wq=x2.cliFrameworks;function Cq($){let Z=new Set,Q=!1;for(let X of $.split(`
216
- `)){let z=X.replace(/\/\/.*$/,"").trim();if(!z)continue;if(/^require\s*\(\s*$/.test(z)){Q=!0;continue}if(Q){if(z===")"){Q=!1;continue}let H=z.match(/^(\S+)/);if(H)Z.add(H[1].toLowerCase());continue}let J=z.match(/^require\s+(\S+)/);if(J&&J[1]!=="(")Z.add(J[1].toLowerCase())}return Z}function T9($,Z){let Q=Z.toLowerCase();for(let X of $)if(X===Q||X.startsWith(`${Q}/`))return!0;return!1}function N9($,Z){let Q;for(let X of Z){if(!T9($,X[0]))continue;if(!Q||X[0].length>Q[0].length)Q=X}return Q}function bq($,Z){let Q;for(let X of Z){if(!T9($,X))continue;if(!Q||X.length>Q.length)Q=X}return Q}function Eq($){let Z=$.match(/^module\s+(\S+)/m);return Z?Z[1]:""}function Sq($){let Z=h2($,"cmd");if(!D8(Z))return!1;try{for(let Q of A9(Z)){let X=h2(Z,Q);try{if(Nq(X).isDirectory()){if(A9(X).some((J)=>J.endsWith(".go")))return!0}else if(Q.endsWith(".go"))return!0}catch{}}}catch{}return!1}function jq($){let Z=h2($,"main.go");if(!D8(Z))return!1;try{let Q=P9(Z,"utf-8");return/^package\s+main\b/m.test(Q)}catch{return!1}}function y2($){let Z=h2($,"go.mod");if(!D8(Z))return null;let Q;try{Q=P9(Z,"utf-8")}catch{return null}let X=Eq(Q),z=Cq(Q),J=bq(z,Pq),H=N9(z,Tq),U=N9(z,wq),q=Sq($),Y=jq($),_,B="",G;if(J)_="mcp",G=`go.mod + ${J} (Go MCP server)`;else if(H)_="backend",B=H[1],G=`go.mod + ${H[0]} (Go backend)`;else if(U)_="cli",B=U[1],G=`go.mod + ${U[0]} (Go CLI)`;else if(q)_="cli",G="go.mod + cmd/ (Go CLI layout)";else if(Y&&!H)_="cli",G="go.mod + main.go package main (Go CLI)";else _="library",G="go.mod (Go module)";return{appType:_,modulePath:X,framework:B,found:G}}import{existsSync as xq,readFileSync as hq,readdirSync as yq}from"fs";import{join as fq}from"path";var P0={version:1,_doc:"SINGLE SOURCE of C# /.NET detection KNOWLEDGE (Truth-is-faf-cli). faf-cli imports this; SDKs/MCPs compose it. Bolster C# by editing THIS file. Logic stays in csharp.ts. Content-aware: .csproj alone ≠ type — Sdk first, then props/packages. Kill line: .csproj alone ≠ type. 2026-08-01 initial.",mcpPackages:["ModelContextProtocol","ModelContextProtocol.AspNetCore","ModelContextProtocol.Core","ModelContextProtocol.Extensions.Tasks","ModelContextProtocol.Extensions.Apps"],cliPackages:[["System.CommandLine","System.CommandLine"],["Spectre.Console.Cli","Spectre.Console"],["Spectre.Console","Spectre.Console"],["McMaster.Extensions.CommandLineUtils","McMaster"]],testPackages:[["Microsoft.NET.Test.Sdk","VSTest"],["xunit.v3","xUnit"],["xunit","xUnit"],["NUnit","NUnit"],["MSTest.TestFramework","MSTest"],["MSTest","MSTest"]],grpcServerPackages:["Grpc.AspNetCore"],specializedSdks:[["Microsoft.NET.Sdk.Web","web","ASP.NET Core"],["Microsoft.NET.Sdk.Worker","worker","Worker"],["Microsoft.NET.Sdk.BlazorWebAssembly","blazor-wasm","Blazor WebAssembly"],["Microsoft.NET.Sdk.Razor","razor-lib","Razor Class Library"],["MSTest.Sdk","test","MSTest"],["Aspire.AppHost.Sdk","aspire","Aspire AppHost"]],baseSdk:"Microsoft.NET.Sdk"};var uq=P0.mcpPackages.map(($)=>$.toLowerCase()),kq=P0.cliPackages.map(([$,Z])=>[$.toLowerCase(),Z]),vq=P0.testPackages.map(([$,Z])=>[$.toLowerCase(),Z]),mq=P0.grpcServerPackages.map(($)=>$.toLowerCase()),pq=P0.specializedSdks,w9=P0.baseSdk.toLowerCase();function lq($){let Z=$.match(/<Project\b[^>]*\bSdk\s*=\s*"([^"/]+)(?:\/[^"]*)?"/i),Q=$.match(/<Sdk\b[^>]*\bName\s*=\s*"([^"]+)"/i),X=(Z?.[1]||Q?.[1]||"").trim(),z=($.match(/<OutputType>\s*([^<]+?)\s*<\/OutputType>/i)?.[1]||"").trim(),J=$.match(/<TargetFramework>\s*([^<]+?)\s*<\/TargetFramework>/i)?.[1],U=($.match(/<TargetFrameworks>\s*([^<]+?)\s*<\/TargetFrameworks>/i)?.[1]||J||"").trim(),q=/<IsTestProject>\s*true\s*<\/IsTestProject>/i.test($),Y=/<UseMaui>\s*true\s*<\/UseMaui>/i.test($),_=/<UseWPF>\s*true\s*<\/UseWPF>/i.test($),B=/<UseWindowsForms>\s*true\s*<\/UseWindowsForms>/i.test($),G=new Set;for(let D of $.matchAll(/<PackageReference\b[^>]*\bInclude\s*=\s*"([^"]+)"/gi))G.add(D[1].toLowerCase());for(let D of $.matchAll(/<PackageReference\s+Include\s*=\s*"([^"]+)"/gi))G.add(D[1].toLowerCase());let O=new Set;for(let D of $.matchAll(/<FrameworkReference\b[^>]*\bInclude\s*=\s*"([^"]+)"/gi))O.add(D[1].toLowerCase());return{sdk:X,outputType:z,targetFramework:U,isTestProject:q,useMaui:Y,useWpf:_,useWindowsForms:B,packages:G,frameworkRefs:O}}function I8($,Z){let Q=Z.toLowerCase();if($.has(Q))return!0;for(let X of $)if(X===Q||X.startsWith(`${Q}.`))return!0;return!1}function C9($,Z){let Q;for(let[X,z]of Z){if(!I8($,X))continue;if(!Q||X.length>Q[0].length)Q=[X,z]}return Q}function dq($){let Z;for(let Q of uq){if(!I8($,Q))continue;if(!Z||Q.length>Z.length)Z=Q}for(let Q of $)if(Q==="modelcontextprotocol"||Q.startsWith("modelcontextprotocol.")){if(!Z||Q.length>Z.length)Z=Q}return Z}function cq($){let Z=$.toLowerCase();if(!Z)return;let Q;for(let X of pq){let z=X[0].toLowerCase();if(Z===z||Z.startsWith(`${z}/`)){if(!Q||z.length>Q[0].length)Q=X}}return Q}function f2($){let Z=$.toLowerCase();return Z==="exe"||Z==="winexe"}function iq($,Z){if($==="mcp")return 0;if($==="mobile")return 1;if($==="backend")return 2;if($==="cli")return 3;if(Z&&Z!=="")return 4;return 5}function aq($,Z){let Q=Z.replace(/\.csproj$/i,""),{sdk:X,packages:z,frameworkRefs:J,outputType:H}=$,U,q="",Y,_=dq(z),B=cq(X),G=C9(z,vq),O=C9(z,kq),D=mq.some((W)=>I8(z,W)),V=J.has("microsoft.aspnetcore.app");if(_)U="mcp",q="MCP",Y=`${Z} + ${_} (C# MCP server)`;else if($.isTestProject||B?.[1]==="test"||G)U="library",q=G?.[1]||(B?.[1]==="test"?B[2]:"Test"),Y=`${Z} + test (${q})`;else if($.useMaui)U="mobile",q="MAUI",Y=`${Z} + UseMaui (MAUI)`;else if($.useWpf||$.useWindowsForms)U="backend",q=$.useWpf&&$.useWindowsForms?"WPF+WinForms":$.useWpf?"WPF":"Windows Forms",Y=`${Z} + ${q}`;else if(B?.[1]==="web")U="backend",q=D?"gRPC":B[2],Y=`${Z} + Sdk=${B[0]}${D?" + Grpc.AspNetCore":""} (ASP.NET Core)`;else if(B?.[1]==="worker")U="backend",q=B[2],Y=`${Z} + Sdk=${B[0]} (Worker)`;else if(B?.[1]==="blazor-wasm")U="backend",q=B[2],Y=`${Z} + Sdk=${B[0]} (Blazor WASM)`;else if(B?.[1]==="aspire")U="backend",q=B[2],Y=`${Z} + Sdk=${B[0]} (Aspire)`;else if(B?.[1]==="razor-lib")U="library",q=B[2],Y=`${Z} + Sdk=${B[0]} (Razor class library)`;else if(V&&f2(H))U="backend",q="ASP.NET Core",Y=`${Z} + FrameworkReference Microsoft.AspNetCore.App (host)`;else if(V&&!f2(H))U="library",q="ASP.NET Core",Y=`${Z} + FrameworkReference Microsoft.AspNetCore.App (web library)`;else if(O&&(f2(H)||!H))U="cli",q=O[1],Y=`${Z} + ${O[0]} (C# CLI)`;else if(f2(H))U="cli",Y=`${Z} + OutputType=Exe (C# console)`;else{U="library";let W=X?` Sdk=${X}`:"";if(Y=`${Z}${W} (C# class library)`.replace(" Sdk=Microsoft.NET.Sdk",""),!X||X.toLowerCase()===w9||X.toLowerCase().startsWith(`${w9}/`))Y=`${Z} (C# class library)`}return{appType:U,projectName:Q,targetFramework:$.targetFramework,sdk:X||"Microsoft.NET.Sdk",framework:q,found:Y}}function T1($){if(!xq($))return[];try{return yq($).filter((Z)=>Z.toLowerCase().endsWith(".csproj")).sort()}catch{return[]}}function u2($){let Z=T1($);if(Z.length===0)return null;let Q=null,X=999;for(let z of Z){let J=fq($,z),H;try{H=hq(J,"utf-8")}catch{continue}let U=lq(H),q=aq(U,z),Y=iq(q.appType,q.framework);if(!Q||Y<X)Q=q,X=Y}return Q}import{existsSync as T0,readFileSync as sq,readdirSync as nq,statSync as oq}from"fs";import{join as d}from"path";var a={version:1,_doc:"SINGLE SOURCE of JVM (Java/Kotlin) detection KNOWLEDGE (Truth-is-faf-cli). faf-cli imports this; SDKs/MCPs compose it. Bolster JVM by editing THIS file. Logic stays in jvm.ts. Kill line: pom / gradle alone ≠ type. Content-aware: plugins · parents · packaging · deps · version catalogs. One brand JVM — Android/KMP are facets, not a second Kotlin Edition. 2026-08-03 initial (post-intel).",mcpArtifacts:["io.modelcontextprotocol.sdk:mcp","io.modelcontextprotocol.sdk:mcp-core","io.modelcontextprotocol.sdk:mcp-spring-webflux","io.modelcontextprotocol.sdk:mcp-spring-webmvc","org.springframework.ai:spring-ai-starter-mcp-server","org.springframework.ai:spring-ai-starter-mcp-server-webmvc","org.springframework.ai:spring-ai-starter-mcp-server-webflux","org.springframework.ai:spring-ai-starter-mcp-client","org.springframework.ai:spring-ai-mcp-server-spring-boot-starter","org.springframework.ai:spring-ai-mcp-client-spring-boot-starter","io.modelcontextprotocol:kotlin-sdk","io.modelcontextprotocol.kotlin:mcp"],webPlugins:[["org.springframework.boot","Spring Boot"],["io.quarkus","Quarkus"],["io.quarkus.gradle.plugin","Quarkus"],["io.micronaut.application","Micronaut"],["io.micronaut.library","Micronaut"]],webParents:[["org.springframework.boot:spring-boot-starter-parent","Spring Boot"],["io.quarkus.platform:quarkus-bom","Quarkus"],["io.micronaut.platform:micronaut-parent","Micronaut"]],webArtifacts:[["org.springframework.boot:spring-boot-starter-web","Spring Boot"],["org.springframework.boot:spring-boot-starter-webflux","Spring Boot"],["org.springframework.boot:spring-boot-starter","Spring Boot"],["io.quarkus:quarkus-core","Quarkus"],["io.micronaut:micronaut-http-server-netty","Micronaut"],["io.ktor:ktor-server-core","Ktor"],["io.ktor:ktor-server-netty","Ktor"],["io.ktor:ktor-server-cio","Ktor"]],androidPlugins:["com.android.application","com.android.library","com.android.kotlin.multiplatform.library"],kmpPlugins:["org.jetbrains.kotlin.multiplatform","kotlin-multiplatform"],jvmKotlinPlugins:["org.jetbrains.kotlin.jvm","kotlin-jvm","org.jetbrains.kotlin.android","kotlin-android"],cliPlugins:[["org.gradle.application","application"],["application","application"]],cliArtifacts:[["info.picocli:picocli","Picocli"],["com.github.ajalt.clikt:clikt","Clikt"],["com.github.ajalt.clikt:clikt-jvm","Clikt"]],libraryPlugins:["java-library","org.gradle.java-library"]};var tq=a.mcpArtifacts.map(($)=>$.toLowerCase()),eq=a.webPlugins.map(([$,Z])=>[$.toLowerCase(),Z]),$Y=a.webParents.map(([$,Z])=>[$.toLowerCase(),Z]),ZY=a.webArtifacts.map(([$,Z])=>[$.toLowerCase(),Z]),xV=a.androidPlugins.map(($)=>$.toLowerCase()),QY=a.kmpPlugins.map(($)=>$.toLowerCase()),XY=a.jvmKotlinPlugins.map(($)=>$.toLowerCase()),zY=a.cliPlugins.map(([$,Z])=>[$.toLowerCase(),Z]),JY=a.cliArtifacts.map(([$,Z])=>[$.toLowerCase(),Z]),HY=a.libraryPlugins.map(($)=>$.toLowerCase()),UY=["pom.xml","build.gradle","build.gradle.kts","settings.gradle","settings.gradle.kts"];function K8($){return UY.some((Z)=>T0(d($,Z)))}function C1($){try{return sq($,"utf-8")}catch{return null}}function qY($){let Z=new Map,Q=new Map,X="";for(let z of $.split(`
217
- `)){let J=z.replace(/#.*$/,"").trim();if(!J)continue;let H=J.match(/^\[([^\]]+)\]$/);if(H){X=H[1].trim().toLowerCase();continue}let U=J.match(/^([A-Za-z0-9_.-]+)\s*=\s*\{[^}]*\bid\s*=\s*"([^"]+)"/);if(U&&(X==="plugins"||X.endsWith(".plugins"))){Z.set(U[1].replace(/-/g,".").toLowerCase(),U[2].toLowerCase()),Z.set(U[1].toLowerCase(),U[2].toLowerCase());continue}let q=J.match(/^([A-Za-z0-9_.-]+)\s*=\s*\{[^}]*\bmodule\s*=\s*"([^"]+)"/);if(q&&(X==="libraries"||X.endsWith(".libraries"))){let B=q[1].toLowerCase();Q.set(B,q[2].toLowerCase()),Q.set(B.replace(/-/g,"."),q[2].toLowerCase());continue}let Y=J.match(/^([A-Za-z0-9_.-]+)\s*=\s*\{[^}]*\bgroup\s*=\s*"([^"]+)"[^}]*\bname\s*=\s*"([^"]+)"/);if(Y&&(X==="libraries"||X.endsWith(".libraries"))){let B=`${Y[2]}:${Y[3]}`.toLowerCase(),G=Y[1].toLowerCase();Q.set(G,B),Q.set(G.replace(/-/g,"."),B);continue}let _=J.match(/^([A-Za-z0-9_.-]+)\s*=\s*"([^"]+)"/);if(_){let B=_[1].toLowerCase(),G=_[2];if(X==="plugins"||X.endsWith(".plugins")){let O=G.split(":")[0].toLowerCase();Z.set(B,O),Z.set(B.replace(/-/g,"."),O)}else if(X==="libraries"||X.endsWith(".libraries")){let O=G.split(":");if(O.length>=2){let D=`${O[0]}:${O[1]}`.toLowerCase();Q.set(B,D),Q.set(B.replace(/-/g,"."),D)}}}}return{plugins:Z,libraries:Q}}function YY($){let Z=d($,"gradle","libs.versions.toml");if(!T0(Z))return{plugins:new Map,libraries:new Map};let Q=C1(Z);if(!Q)return{plugins:new Map,libraries:new Map};return qY(Q)}function _Y($){let Z=[];for(let Q of $.matchAll(/include\s*\(\s*([^)]+)\)/g))for(let X of Q[1].split(",")){let z=X.replace(/['":\s]/g,"").replace(/^:/,"");if(z)Z.push(z.replace(/:/g,"/"))}for(let Q of $.matchAll(/include\s+((?:['"][^'"]+['"]\s*,?\s*)+)/g))for(let X of Q[1].split(",")){let z=X.replace(/['":\s]/g,"").replace(/^:/,"");if(z)Z.push(z.replace(/:/g,"/"))}for(let Q of $.matchAll(/project\s*\(\s*["']:([^"']+)["']\s*\)\s*\.projectDir\s*=\s*file\s*\(\s*["']([^"']+)["']\s*\)/g))Z.push(Q[2].replace(/^\.\//,""));return[...new Set(Z)]}function BY($,Z){let Q=new Set;for(let X of $.matchAll(/\bid\s*\(\s*["']([^"']+)["']\s*\)/g))Q.add(X[1].toLowerCase());for(let X of $.matchAll(/\bid\s+['"]([^'"]+)['"]/g))Q.add(X[1].toLowerCase());for(let X of $.matchAll(/plugins\s*\{([\s\S]*?)\}/g))for(let z of X[1].split(/[\n;]/)){let J=z.replace(/\/\/.*$/,"").trim();if(!J||J.startsWith("id")||J.startsWith("kotlin")||J.startsWith("alias"))continue;let H=J.match(/^`([a-zA-Z0-9.-]+)`$/)||J.match(/^([a-zA-Z][a-zA-Z0-9.-]*)$/);if(H)Q.add(H[1].toLowerCase())}for(let X of $.matchAll(/\bkotlin\s*\(\s*["']([^"']+)["']\s*\)/g)){let z=X[1].toLowerCase();if(z==="jvm")Q.add("org.jetbrains.kotlin.jvm");else if(z==="multiplatform")Q.add("org.jetbrains.kotlin.multiplatform");else if(z==="android")Q.add("org.jetbrains.kotlin.android");else Q.add(`org.jetbrains.kotlin.${z}`)}for(let X of $.matchAll(/libs\.plugins\.([A-Za-z0-9_.]+)/g)){let z=X[1].toLowerCase(),J=Z.plugins.get(z)||Z.plugins.get(z.replace(/\./g,"-"))||Z.plugins.get(z.replace(/-/g,"."));if(J)Q.add(J);else if(z.includes("spring")&&z.includes("boot"))Q.add("org.springframework.boot")}for(let X of $.matchAll(/apply\s+plugin\s*:\s*['"]([^'"]+)['"]/g))Q.add(X[1].toLowerCase());return Q}function GY($,Z){let Q=new Set;for(let X of $.matchAll(/["']([A-Za-z0-9_.-]+:[A-Za-z0-9_.-]+)(?::[^"']+)?["']/g))Q.add(X[1].toLowerCase());for(let X of $.matchAll(/libs\.([A-Za-z0-9_.]+)/g)){let z=X[1].toLowerCase();if(z.startsWith("plugins."))continue;let J=[z,z.replace(/\./g,"-"),z.replace(/-/g,".")];for(let H of J){let U=Z.libraries.get(H);if(U){Q.add(U.includes(":")?U.split(":").slice(0,2).join(":"):U);break}}}return Q}function S9($){let Z=($.match(/<packaging>\s*([^<]+?)\s*<\/packaging>/i)?.[1]||"jar").trim().toLowerCase(),Q=new Set,X=$.match(/<parent>([\s\S]*?)<\/parent>/i);if(X){let H=X[1].match(/<groupId>\s*([^<]+?)\s*<\/groupId>/i)?.[1]?.trim(),U=X[1].match(/<artifactId>\s*([^<]+?)\s*<\/artifactId>/i)?.[1]?.trim();if(H&&U)Q.add(`${H}:${U}`.toLowerCase())}let z=new Set;for(let H of $.matchAll(/<dependency>([\s\S]*?)<\/dependency>/gi)){let U=H[1].match(/<groupId>\s*([^<]+?)\s*<\/groupId>/i)?.[1]?.trim(),q=H[1].match(/<artifactId>\s*([^<]+?)\s*<\/artifactId>/i)?.[1]?.trim();if(U&&q)z.add(`${U}:${q}`.toLowerCase())}let J=[];for(let H of $.matchAll(/<module>\s*([^<]+?)\s*<\/module>/gi))J.push(H[1].trim());return{packaging:Z,parents:Q,artifacts:z,modules:J}}function z0($,Z){let Q=Z.toLowerCase();if($.has(Q))return!0;for(let X of $)if(X===Q||X.endsWith(`.${Q}`)||X===Q.replace(/^org\.gradle\./,""))return!0;return!1}function w1($,Z,Q){let X;for(let[z,J]of Z){let H=!1;if(Q==="plugin")H=z0($,z);else if(H=$.has(z)||[...$].some((U)=>U===z||U.startsWith(`${z}:`)||U.startsWith(`${z}.`)),!H&&Q==="artifact")H=[...$].some((U)=>U===z||U.startsWith(`${z}`));if(!H)continue;if(!X||z.length>X[0].length)X=[z,J]}return X}function VY($){let Z;for(let Q of tq)for(let X of $){if(X===Q||X.startsWith(`${Q}:`)||X.startsWith(Q.replace(/:mcp$/,":"))){if(!Z||Q.length>Z.length)Z=Q}if(X.startsWith("io.modelcontextprotocol")||X.includes("spring-ai-starter-mcp")||X.includes("spring-ai-mcp")){if(!Z||X.length>Z.length)Z=X}}return Z}function j9($){let Z=new Set,Q=!1,X=!1,z=[d($,"src"),d($,"src","main")],J=(H,U)=>{if(U>4||!T0(H))return;let q;try{q=nq(H)}catch{return}for(let Y of q){if(Y==="androidMain"||Y==="commonMain"||Y==="jvmMain"||Y==="iosMain")Z.add(Y);let _=d(H,Y);try{if(oq(_).isDirectory())J(_,U+1);else if(Y.endsWith(".kt")||Y.endsWith(".kts"))Q=!0;else if(Y.endsWith(".java"))X=!0}catch{}}};for(let H of z)J(H,0);return{kotlin:Q,java:X,hints:Z}}function OY($){let Z=[],Q=$.plugins,X=$.artifacts,z=QY.some((N)=>z0(Q,N))||$.sourceHints.has("commonMain"),J=z0(Q,"com.android.application"),H=z0(Q,"com.android.library")||z0(Q,"com.android.kotlin.multiplatform.library");if(J||H)Z.push("android");if(z)Z.push("multiplatform");let U=VY(X),q=w1(Q,eq,"plugin"),Y=w1($.parents,$Y,"parent"),_=w1(X,ZY,"artifact"),B=w1(Q,zY,"plugin"),G=w1(X,JY,"artifact"),O=HY.some((N)=>z0(Q,N)),D=$.packaging==="pom",V,W="",I;if(J)V="mobile",W=z?"Android+KMP":"Android",I=`${$.path||"root"} + com.android.application (${W})`;else if(U)V="mcp",W="MCP",Z.push("mcp"),I=`${$.path||"root"} + ${U} (JVM MCP server)`;else if(q||Y||_){V="backend",W=q?.[1]||Y?.[1]||_?.[1]||"JVM";let N=q?.[0]||Y?.[0]||_?.[0]||"web";I=`${$.path||"root"} + ${N} (JVM backend)`}else if(z&&!H)V="library",W="Kotlin Multiplatform",I=`${$.path||"root"} + kotlin multiplatform (KMP library)`;else if(H)V="library",W=z?"Android+KMP":"Android",I=`${$.path||"root"} + android library (${W})`;else if(G||$.hasApplicationPlugin&&($.hasMainClass||B)||B&&$.hasMainClass)V="cli",W=G?.[1]||"application",I=G?`${$.path||"root"} + ${G[0]} (JVM CLI)`:`${$.path||"root"} + application plugin (JVM CLI)`;else if($.hasApplicationPlugin&&!O)V="cli",W="application",I=`${$.path||"root"} + application plugin (JVM CLI)`;else if(D)V="library",I=`${$.path||"root"} + packaging=pom (Maven aggregator/BOM)`;else{V="library";let N=$.kotlinSources&&!$.javaSources?"Kotlin":"JVM";if(I=`${$.path||"root"} (${N} library)`,O)I=`${$.path||"root"} + java-library (JVM library)`}let L="Java";if($.kotlinSources&&$.javaSources)L="Java/Kotlin";else if($.kotlinSources||XY.some((N)=>z0(Q,N))||z)L="Kotlin";let A=[...new Set(Z)];return{appType:V,framework:W,facets:A,found:I,buildTool:$.buildTool,mainLanguage:L}}function WY($,Z){if($==="mcp")return 0;if($==="mobile")return 1;if(Z.includes("multiplatform")&&$==="backend")return 2;if($==="backend")return 3;if($==="cli")return 4;if(Z.includes("multiplatform"))return 5;if(Z.includes("android"))return 6;return 7}function b9($,Z,Q){let X=Z?d($,Z):$,z=d(X,"build.gradle.kts"),J=d(X,"build.gradle"),H=T0(z)?z:T0(J)?J:null;if(!H)return null;let U=C1(H);if(!U)return null;let q=BY(U,Q),Y=GY(U,Q),_=j9(X),B=/mainClass\s*[.=]/.test(U)||/mainClassName\s*=/.test(U)||/Main-Class/.test(U),G=z0(q,"application")||z0(q,"org.gradle.application");return{path:Z||"build.gradle",plugins:q,artifacts:Y,packaging:"jar",parents:new Set,hasMainClass:B,hasApplicationPlugin:G,sourceHints:_.hints,kotlinSources:_.kotlin||H.endsWith(".kts"),javaSources:_.java,buildTool:"gradle"}}function E9($,Z){let Q=Z?d($,Z):$,X=d(Q,"pom.xml");if(!T0(X))return null;let z=C1(X);if(!z)return null;let{packaging:J,parents:H,artifacts:U}=S9(z),q=j9(Q);return{path:Z?`${Z}/pom.xml`:"pom.xml",plugins:new Set,artifacts:U,packaging:J,parents:H,hasMainClass:/<mainClass>/.test(z),hasApplicationPlugin:!1,sourceHints:q.hints,kotlinSources:q.kotlin,javaSources:q.java,buildTool:"maven"}}function b1($){if(!K8($))return null;let Z=YY($),Q=[],X=null;for(let Y of["settings.gradle.kts","settings.gradle"]){let _=d($,Y);if(T0(_)){X=C1(_);break}}let z=X?_Y(X):[],J=b9($,"",Z);if(J)Q.push(J);for(let Y of z){let _=b9($,Y,Z);if(_)Q.push(_)}let H=E9($,"");if(H){Q.push(H);let Y=C1(d($,"pom.xml"));if(Y){let{modules:_}=S9(Y);for(let B of _){let G=E9($,B);if(G)Q.push(G)}}}if(Q.length===0&&X)return{appType:"library",framework:"",buildTool:"gradle",mainLanguage:"Java/Kotlin",facets:[],found:"settings.gradle (Gradle multi-project root)"};if(Q.length===0)return null;let U=null,q=999;for(let Y of Q){let _=OY(Y),B=WY(_.appType,_.facets);if(!U||B<q)U={appType:_.appType,framework:_.framework,buildTool:_.buildTool,mainLanguage:_.mainLanguage,facets:_.facets,found:_.found},q=B}if(U&&z.length>0&&!U.found.includes("multi-project"));return U}import{existsSync as j1,readFileSync as IY,readdirSync as k2,statSync as KY}from"fs";import{join as r}from"path";var E1={version:1,_doc:"SINGLE SOURCE of Ruby detection KNOWLEDGE (Truth-is-faf-cli). faf-cli imports this; SDKs/MCPs compose it. Kill line: Gemfile alone ≠ Rails. Content-aware: gem names + light layout. 2026-08-03 initial (post-intel ruby-edition).",mcpGems:["mcp","fast-mcp","fast_mcp","rails-mcp-server","rails_mcp_server","ruby-mcp-client","ruby_mcp_client","ruby_llm-mcp","ruby_llm_mcp"],webGems:[["rails","Rails"],["railties","Rails"],["sinatra","Sinatra"],["sinatra-contrib","Sinatra"],["roda","Roda"],["grape","Grape"],["hanami","Hanami"],["hanami-controller","Hanami"],["rack","Rack"]],cliGems:[["thor","Thor"],["gli","GLI"],["commander","Commander"],["slop","Slop"]],railsLayoutFiles:["config/application.rb","config/routes.rb","bin/rails","config/environment.rb"]};var LY=E1.mcpGems.map(($)=>$.toLowerCase()),MY=E1.webGems.map(([$,Z])=>[$.toLowerCase(),Z]),g9=E1.cliGems.map(([$,Z])=>[$.toLowerCase(),Z]),RY=E1.railsLayoutFiles;function FY($){return j1(r($,"Gemfile"))||j1(r($,"gems.rb"))||AY($)}function AY($){try{return k2($).some((Z)=>Z.endsWith(".gemspec"))}catch{return!1}}function S1($){try{return IY($,"utf-8")}catch{return null}}function NY($){let Z=new Set;for(let Q of $.split(`
218
- `)){let X=Q.replace(/#.*$/,"").trim();if(!X)continue;let z=X.match(/^\s*gem\s+['"]([^'"]+)['"]/i)||X.match(/^\s*gem\s+:([A-Za-z0-9_.-]+)/i);if(z)Z.add(z[1].toLowerCase())}return Z}function PY($){let Z=new Set,Q=!1;for(let X of $.split(`
219
- `)){let z=X.replace(/\r$/,"");if(/^\s*specs:\s*$/.test(z)){Q=!0;continue}if(Q){if(/^[A-Z]/.test(z)||z.startsWith("PLATFORMS")||z.startsWith("DEPENDENCIES")||z.startsWith("BUNDLED")||z.startsWith("RUBY VERSION")||z.startsWith("CHECKSUMS")){Q=!1;continue}let J=z.match(/^\s{2,}([a-zA-Z0-9_.-]+)\s*\(/);if(J)Z.add(J[1].toLowerCase())}}return Z}function TY($){let Z=new Set;for(let Q of $.split(`
220
- `)){let z=Q.replace(/#.*$/,"").match(/add_(?:runtime_|development_)?dependency\s*\(?\s*['"]([^'"]+)['"]/i);if(z)Z.add(z[1].toLowerCase())}return Z}function wY($){let Z=new Set,Q=[];for(let z of["Gemfile","gems.rb"]){let J=r($,z),H=S1(J);if(H){for(let U of NY(H))Z.add(U);Q.push(z)}}let X=S1(r($,"Gemfile.lock"))||S1(r($,"gems.locked"));if(X){for(let z of PY(X))Z.add(z);Q.push("Gemfile.lock")}try{for(let z of k2($)){if(!z.endsWith(".gemspec"))continue;let J=S1(r($,z));if(J){for(let H of TY(J))Z.add(H);Q.push(z)}}}catch{}return{gems:Z,sources:Q}}function g1($,Z){let Q=Z.toLowerCase();if($.has(Q))return!0;return!1}function L8($,Z){let Q;for(let[X,z]of Z){if(!g1($,X))continue;if(!Q||X.length>Q[0].length)Q=[X,z]}return Q}function CY($){let Z;for(let Q of LY)if(g1($,Q)&&(!Z||Q.length>Z.length))Z=Q;return Z}function x9($){for(let Z of RY)if(j1(r($,Z)))return Z;return}function bY($,Z){let Q=L8(Z,g9);if(Q)return{hit:!0,why:Q[0]};try{for(let z of k2($)){if(!z.endsWith(".gemspec"))continue;let J=S1(r($,z));if(J&&/executables\s*=/.test(J)&&!/executables\s*=\s*\[\s*\]/.test(J))return{hit:!0,why:`${z} executables`}}}catch{}let X=r($,"bin");if(j1(X))try{let J=k2(X).filter((H)=>{if(H==="setup"||H==="console"||H==="rake")return!1;try{return KY(r(X,H)).isFile()}catch{return!1}}).filter((H)=>H!=="rails");if(J.length>0&&!g1(Z,"rails")&&!x9($))return{hit:!0,why:`bin/${J[0]}`}}catch{}return{hit:!1,why:""}}function v2($){if(!FY($))return null;let{gems:Z,sources:Q}=wY($),X=Q[0]||"Gemfile",z=Q.some((W)=>W==="Gemfile"||W==="gems.rb"||W.includes("lock"))?"bundler":"rubygems",J=CY(Z),H=L8(Z,MY),U=x9($),q=g1(Z,"rails")||g1(Z,"railties"),Y=bY($,Z),_=j1(r($,"config.ru")),B=q||!!U,G=H&&H[1]!=="Rails"&&!(H[0]==="rack"&&!_)?H:void 0,O,D="",V;if(J)O="mcp",D="MCP",V=`${X} + gem ${J} (Ruby MCP)`;else if(B)if(O="backend",D="Rails",q&&U)V=`${X} + rails + ${U} (Rails)`;else if(q)V=`${X} + gem rails (Rails)`;else V=`${U} (Rails layout)`;else if(G)O="backend",D=G[1],V=`${X} + gem ${G[0]} (Ruby backend)`;else if(Y.hit)O="cli",D=L8(Z,g9)?.[1]||"",V=`${X} + ${Y.why} (Ruby CLI)`;else O="library",V=`${X} (Ruby library)`;return{appType:O,framework:D,packageManager:z,found:V}}import{existsSync as M8,readFileSync as SY,readdirSync as jY,statSync as gY}from"fs";import{join as x1}from"path";var t={version:1,_doc:"SINGLE SOURCE of Swift detection KNOWLEDGE (Truth-is-faf-cli). Kill line: Package.swift alone ≠ app. Static parse of products + package URLs + product names + light xcodeproj productType. Never execute Package.swift / swift build. 2026-08-03 post-intel swift-edition.",mcpPackageUrls:["modelcontextprotocol/swift-sdk","github.com/modelcontextprotocol/swift-sdk"],mcpProducts:["MCP"],serverPackageUrls:[["vapor/vapor","Vapor"],["github.com/vapor/vapor","Vapor"],["hummingbird-project/hummingbird","Hummingbird"],["github.com/hummingbird-project/hummingbird","Hummingbird"]],serverProducts:[["Vapor","Vapor"],["Hummingbird","Hummingbird"]],cliPackageUrls:[["apple/swift-argument-parser","ArgumentParser"],["github.com/apple/swift-argument-parser","ArgumentParser"]],cliProducts:[["ArgumentParser","ArgumentParser"]],appProductTypes:["com.apple.product-type.application"],cliProductTypes:["com.apple.product-type.tool"],vaporLayoutFiles:["Sources/App/configure.swift","Sources/App/routes.swift","Sources/App/entrypoint.swift"]};var xY=t.mcpPackageUrls.map(($)=>$.toLowerCase()),hY=t.mcpProducts.map(($)=>$.toLowerCase()),yY=t.serverPackageUrls.map(([$,Z])=>[$.toLowerCase(),Z]),fY=t.serverProducts.map(([$,Z])=>[$.toLowerCase(),Z]),uY=t.cliPackageUrls.map(([$,Z])=>[$.toLowerCase(),Z]),kY=t.cliProducts.map(([$,Z])=>[$.toLowerCase(),Z]),vY=t.appProductTypes,mY=t.cliProductTypes,pY=t.vaporLayoutFiles;function lY($){return M8(x1($,"Package.swift"))||R8($).length>0}function R8($){try{return jY($).filter((Z)=>{if(!Z.endsWith(".xcodeproj"))return!1;try{return gY(x1($,Z)).isDirectory()}catch{return!1}})}catch{return[]}}function f9($){try{return SY($,"utf-8")}catch{return null}}function dY($){let Z=cY($),Q=Z.toLowerCase(),X=[],z=/\.package\s*\(\s*url\s*:\s*"([^"]+)"/gi,J;while((J=z.exec(Z))!==null)X.push(J[1]);let H=/\.package\s*\(\s*url\s*:\s*'([^']+)'/gi;while((J=H.exec(Z))!==null)X.push(J[1]);let U=[],q=/\.product\s*\(\s*name\s*:\s*"([^"]+)"/gi;while((J=q.exec(Z))!==null)U.push(J[1]);let Y=/\.product\s*\(\s*name\s*:\s*'([^']+)'/gi;while((J=Y.exec(Z))!==null)U.push(J[1]);let _=/\.library\s*\(/.test(Q),B=/\.executable\s*\(/.test(Q),G=/\.plugin\s*\(/.test(Q)&&!_&&!B?!0:/\bproducts\s*:\s*\[[\s\S]*?\.plugin\s*\(/.test(Q),O=/\.executabletarget\s*\(/.test(Q),D=/\.target\s*\(/.test(Q)&&!O?!0:(Q.match(/\.target\s*\(/g)||[]).length>(Q.match(/\.executabletarget\s*\(/g)||[]).length+(Q.match(/\.testtarget\s*\(/g)||[]).length;return{packageUrls:X,productNames:U,hasLibraryProduct:_,hasExecutableProduct:B,hasPluginProduct:!!G,hasExecutableTarget:O,hasLibraryTarget:D}}function cY($){let Z="",Q=0;while(Q<$.length){if($[Q]==='"'||$[Q]==="'"){let X=$[Q];Z+=X,Q++;while(Q<$.length){if($[Q]==="\\"&&Q+1<$.length){Z+=$[Q]+$[Q+1],Q+=2;continue}if(Z+=$[Q],$[Q]===X){Q++;break}Q++}continue}if($[Q]==="/"&&$[Q+1]==="/"){Q+=2;while(Q<$.length&&$[Q]!==`
221
- `)Q++;continue}if($[Q]==="/"&&$[Q+1]==="*"){Q+=2;while(Q<$.length&&!($[Q]==="*"&&$[Q+1]==="/"))Q++;Q+=2;continue}Z+=$[Q],Q++}return Z}function iY($,Z){let Q=$.map((z)=>z.toLowerCase()),X;for(let z of Z)for(let J of Q)if(J.includes(z)&&(!X||z.length>X.length))X=z;return X}function h9($,Z){let Q=$.map((z)=>z.toLowerCase()),X;for(let[z,J]of Z)for(let H of Q)if(H.includes(z)&&(!X||z.length>X[0].length))X=[z,J];return X}function y9($,Z){let Q=$.map((z)=>z.toLowerCase()),X;for(let[z,J]of Z)if(Q.includes(z)&&(!X||z.length>X[0].length))X=[z,J];return X}function aY($){let Z=$.map((Q)=>Q.toLowerCase());return hY.some((Q)=>Z.includes(Q))}function rY($){let Z=!1,Q=!1,X;for(let z of R8($)){let J=x1($,z,"project.pbxproj"),H=f9(J);if(!H)continue;for(let U of vY)if(H.includes(U))Z=!0,X=U;for(let U of mY)if(H.includes(U)){if(Q=!0,!X)X=U}}return{hasApplication:Z,hasTool:Q,hit:X}}function sY($){for(let Z of pY)if(M8(x1($,Z)))return Z;return}function h1($){if(!lY($))return null;let Z=x1($,"Package.swift"),Q=M8(Z),X=R8($),z=X.length>0,J=null;if(Q){let w=f9(Z);if(w)J=dY(w)}let H=z?rY($):{hasApplication:!1,hasTool:!1},U=sY($),q=J?.packageUrls??[],Y=J?.productNames??[],_=iY(q,xY),B=aY(Y),G=h9(q,yY),O=y9(Y,fY),D=h9(q,uY),V=y9(Y,kY),W=!!(_||B),I=!!(G||O||U),L=!!(J?.hasExecutableProduct||J?.hasExecutableTarget),A=!!(D||V),N=H.hasApplication,T=Q&&z?"spm+xcode":Q?"spm":"xcode",P,C="",K;if(W)if(P="mcp",C="MCP",B)K="Package.swift + product MCP (Swift MCP)";else K=`Package.swift + ${_} (Swift MCP)`;else if(I)if(P="backend",C=O?.[1]||G?.[1]||(U?"Vapor":""),O)K=`Package.swift + product ${O[1]} (Swift backend)`;else if(G)K=`Package.swift + ${G[1]} (Swift backend)`;else K=`${U} (Swift backend layout)`;else if(N)P="app",C="",K=`${X[0]} + ${H.hit||"application"} (Swift app)`;else if(A||L&&!I&&!W)if(P="cli",C=V?.[1]||D?.[1]||"",V)K=`Package.swift + product ${V[1]} (Swift CLI)`;else if(D)K=`Package.swift + ${D[1]} (Swift CLI)`;else if(J?.hasExecutableProduct)K="Package.swift + .executable product (Swift CLI)";else K="Package.swift + .executableTarget (Swift CLI)";else if(H.hasTool&&!Q)P="cli",K=`${X[0]} + tool productType (Swift CLI)`;else if(Q)if(P="library",J?.hasLibraryProduct)K="Package.swift + .library product (Swift library)";else K="Package.swift (Swift library)";else P="library",K=`${X[0]||"xcodeproj"} (Swift — no classifying productType)`;return{appType:P,framework:C,packageManager:T,found:K}}var Z_=new Set(["node_modules",".git","dist","build","venv",".venv","__pycache__","target","coverage",".next",".svelte-kit","vendor"]),Q_=new Set([".py",".ts",".tsx",".js",".jsx",".svelte",".vue",".rb",".go",".rs",".php",".java",".kt",".swift"]),X_={mainLanguage:["project","main_language"],main_language:["project","main_language"],framework:["stack","frontend"],cssFramework:["stack","css_framework"],css:["stack","css_framework"],uiLibrary:["stack","ui_library"],ui_library:["stack","ui_library"],stateManagement:["stack","state_management"],state:["stack","state_management"],backend:["stack","backend"],apiType:["stack","api_type"],api:["stack","api_type"],runtime:["stack","runtime"],database:["stack","database"],db:["stack","database"],connection:["stack","connection"],hosting:["stack","hosting"],buildTool:["stack","build"],build_tool:["stack","build"],build:["stack","build"],packageManager:["stack","package_manager"],pkg_manager:["stack","package_manager"],cicd:["stack","cicd"]},z_=[["packageManager","package-manager"],["pkg_manager","package-manager"],["mainLanguage","language"],["main_language","language"],["framework","framework"],["backend","backend"],["database","database"],["db","database"],["cicd","ci-cd"],["hosting","hosting"],["buildTool","build"],["build_tool","build"],["build","build"],["runtime","runtime"],["cssFramework","css"],["css","css"],["uiLibrary","ui-library"],["stateManagement","state-management"],["apiType","api"],["api","api"]];function J_($,Z){for(let[Q,X]of z_)if(Q in $)return X;return Z.length>0?"framework":"config"}function H_($){try{let Z=JSON.parse(oY($,"utf-8")),Q=["background","content_scripts","action","browser_action","permissions"].some((X)=>(X in Z));if(typeof Z.manifest_version==="number"&&Q)return"chrome";return"other"}catch{return"other"}}function U_($){let Z=[],Q=$_($),X=nY(F8($,".git")),z=new Set;for(let J=0;J<10;J++){let H;try{H=u9(Q)}catch{break}for(let q of H){if(q.toLowerCase().endsWith(".csproj")){let _=u2(Q);if(_){let B={mainLanguage:"C#",packageManager:"NuGet",buildTool:"dotnet"};if(_.appType==="backend"&&_.framework)B.backend=_.framework;else if(_.appType==="cli"&&_.framework)B.framework=_.framework;else if(_.appType==="mcp")B.apiType="MCP";else if(_.appType==="mobile"&&_.framework)B.framework=_.framework;if(_.targetFramework)B.runtime=_.targetFramework;let G=_.framework?[_.framework,"C#",".NET"]:["C#",".NET"];Z.push({slots:B,priority:36,frameworks:G,fileName:q})}continue}if(q.endsWith(".xcodeproj")){let _=h1(Q);if(_){let B={mainLanguage:"Swift",packageManager:_.packageManager==="spm"?"spm":"Xcode",buildTool:_.packageManager.includes("spm")?"swift build":"xcodebuild"};if(_.appType==="backend"&&_.framework)B.backend=_.framework;else if(_.appType==="cli"&&_.framework)B.framework=_.framework;else if(_.appType==="mcp")B.apiType="MCP";else if(_.appType==="app")B.framework=_.framework||"Swift App";let G=_.framework?[_.framework,"Swift"]:["Swift"];Z.push({slots:B,priority:36,frameworks:G,fileName:q})}continue}let Y=O8[q];if(!Y)continue;if(q==="manifest.json"&&H_(F8(Q,q))!=="chrome")continue;if(q==="pubspec.yaml"){let _=g2(Q);if(_){let B={mainLanguage:"Dart",packageManager:"pub"};if(_.isFlutter){if(B.framework="Flutter",_.stateManagement)B.stateManagement=_.stateManagement}else if(_.appType==="backend"&&_.framework)B.backend=_.framework;else if(_.appType==="mcp")B.apiType="MCP";Z.push({slots:B,priority:Y.priority,frameworks:_.isFlutter?["Flutter","Dart"]:["Dart"],fileName:q});continue}}if(q==="go.mod"){let _=y2(Q);if(_){let B={mainLanguage:"Go",packageManager:"go modules",buildTool:"go build"};if(_.appType==="backend"&&_.framework)B.backend=_.framework;else if(_.appType==="cli"&&_.framework)B.framework=_.framework;else if(_.appType==="mcp")B.apiType="MCP";let G=_.framework?[_.framework,"Go"]:["Go"];Z.push({slots:B,priority:Y.priority,frameworks:G,fileName:q});continue}}if(q==="Gemfile"||q==="Gemfile.lock"||q==="gems.rb"){let _=v2(Q);if(_){let B={mainLanguage:"Ruby",packageManager:_.packageManager};if(_.appType==="backend"&&_.framework)B.backend=_.framework;else if(_.appType==="cli"&&_.framework)B.framework=_.framework;else if(_.appType==="mcp")B.apiType="MCP";let G=_.framework?[_.framework,"Ruby"]:["Ruby"];Z.push({slots:B,priority:Y.priority??35,frameworks:G,fileName:q});continue}}if(q==="Package.swift"){let _=h1(Q);if(_){let B={mainLanguage:"Swift",packageManager:_.packageManager==="xcode"?"Xcode":"spm",buildTool:"swift build"};if(_.appType==="backend"&&_.framework)B.backend=_.framework;else if(_.appType==="cli"&&_.framework)B.framework=_.framework;else if(_.appType==="mcp")B.apiType="MCP";else if(_.appType==="app")B.framework=_.framework||"SwiftUI/App";let G=_.framework?[_.framework,"Swift"]:["Swift"];Z.push({slots:B,priority:Y.priority??36,frameworks:G,fileName:q});continue}}if(q==="pom.xml"||q==="build.gradle"||q==="build.gradle.kts"||q==="settings.gradle"||q==="settings.gradle.kts"){if(z.has(Q))continue;z.add(Q);let _=b1(Q);if(_){let B={mainLanguage:_.mainLanguage==="Java/Kotlin"?"Kotlin":_.mainLanguage,packageManager:_.buildTool==="maven"?"maven":"gradle",buildTool:_.buildTool};if(_.appType==="backend"&&_.framework)B.backend=_.framework;else if(_.appType==="cli"&&_.framework)B.framework=_.framework;else if(_.appType==="mcp")B.apiType="MCP";else if(_.appType==="mobile")B.framework=_.framework||"Android";if(_.facets.includes("multiplatform"))B.framework=_.framework||"Kotlin Multiplatform";let G=_.framework?[_.framework,"JVM",_.mainLanguage==="Kotlin"?"Kotlin":"Java"]:["JVM",_.mainLanguage==="Kotlin"?"Kotlin":"Java"];Z.push({slots:B,priority:Y.priority??35,frameworks:G,fileName:q});continue}}Z.push({slots:Y.slots||{},priority:Y.priority,frameworks:Y.frameworks,fileName:q})}if(X&&J===0)break;let U=tY(Q);if(U===Q)break;Q=U}return Z}function q_($){let Z=[];for(let Q of v9($,2,{count:0})){let X=O8[`*${Q}`],z=X?.slots?.mainLanguage;if(z)Z.push({slots:{mainLanguage:z},priority:X.priority,frameworks:X.frameworks})}return Z}function k9($){let Z=[...U_($),...q_($)],Q={},X={},z=new Set;for(let Y of Z){Y.frameworks.forEach((_)=>z.add(_));for(let[_,B]of Object.entries(Y.slots))if(B&&!B.includes("/")&&(!(_ in Q)||Y.priority>X[_]))Q[_]=B,X[_]=Y.priority}let J=new Map;for(let Y of Z){if(!Y.fileName)continue;if(!J.has(Y.fileName))J.set(Y.fileName,{fileName:Y.fileName,category:J_(Y.slots,Y.frameworks),priority:Y.priority})}let H=[...J.values()].sort((Y,_)=>_.priority-Y.priority||Y.fileName.localeCompare(_.fileName)),U=[];if(Q.mainLanguage)U.push(Q.mainLanguage.toLowerCase());if(Q.framework)U.push(Q.framework.toLowerCase());let q=U.length>0?U.join("-"):"unknown-stack";return{slotFills:Q,frameworks:[...z],confirmedCount:Z.length,discoveredFormats:H,stackSignature:q}}function A8($){let{slotFills:Z}=k9($),Q={};for(let[X,z]of Object.entries(Z)){let J=X_[X];if(!J||!z)continue;let[H,U]=J;if(H==="project")(Q.project??={})[U]=z;else(Q.stack??={})[U]=z}return Q}function v9($,Z,Q){let X=new Set;if(Z<0||Q.count>400)return X;let z;try{z=u9($,{withFileTypes:!0})}catch{return X}for(let J of z){if(Q.count++>400)break;if(!J.isDirectory()){let H=eY(J.name);if(Q_.has(H))X.add(H);continue}if(Z_.has(J.name)||J.name.startsWith("."))continue;for(let H of v9(F8($,J.name),Z-1,Q))X.add(H)}return X}import{existsSync as m9,readFileSync as p9}from"fs";import{join as l9}from"path";var f=($,Z,Q)=>({value:$,source:Z,confidence:Q});function d9($){let Z=Y_($),Q=__($),X={},z=(J,H)=>{if(H)X[J]=H};return z("what",B_(Z,Q)),z("who",G_(Q)),z("why",V_(Q)),z("where",O_(Z,Q)),z("when",W_(Q)),z("how",D_(Z,Q)),X}function N8($){let Z=d9($),Q={};return Object.keys(Z).forEach((X)=>{let z=Z[X];if(z)Q[X]=z.value}),Q}function Y_($){let Z=l9($,"package.json");if(!m9(Z))return null;try{return JSON.parse(p9(Z,"utf-8"))}catch{return null}}function __($){let Z=l9($,"README.md");if(!m9(Z))return"";let Q;try{Q=p9(Z,"utf-8")}catch{return""}return Q.split(`
213
+ `}function dU($,Z,Q,X="project.faf"){yU(fU($,"project.html"),JZ(Z,Q,X),"utf-8")}import{writeFileSync as cU}from"fs";import{join as iU}from"path";var HZ="application/vnd.faf+yaml",rU="https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json",aU=/^[a-zA-Z0-9.-]+\/[a-zA-Z0-9._-]+$/;function qZ($){let Z=String($.project?.name??"project").trim();if(Z.includes("/")&&aU.test(Z))return Z;let Q=$.project?.homepage??$.project?.website??$.project?.url,X="local";if(Q)try{X=new URL(Q).hostname.replace(/^www\./,"").split(".").reverse().join(".")}catch{}let z=Z.replace(/[^a-zA-Z0-9._-]/g,"-").replace(/^-+|-+$/g,"")||"project";return`${X}/${z}`}function sU($){let Z=String($.project?.goal??$.context??$.project?.name??"MCP server").replace(/\s+/g," ").trim();if(!Z)return"MCP server";return Z.length<=100?Z:`${Z.slice(0,97).trimEnd()}...`}function d0($,Z={}){return{faf:Z.fafPointer??"./project.faf",mediaType:HZ,iana:`https://www.iana.org/assignments/media-types/${HZ}`,deterministic:!0,...Z.scoreEndpoint?{scoreEndpoint:Z.scoreEndpoint}:{},generated:$.generated??Z.now??new Date().toISOString()}}function j2($,Z={}){let Q={$schema:rU,name:qZ($),version:String($.project?.version??"0.1.0"),description:sU($)},X=B8($)??$.project?.name;if(X&&X.length<=100)Q.title=X;let z=$.project?.homepage??$.project?.website??$.project?.url;if(z)Q.websiteUrl=z;if(Z.remoteUrl)Q.remotes=[{type:"streamable-http",url:Z.remoteUrl}];return Q._meta={"one.faf/context":d0($,Z)},Q}var YZ="io.modelcontextprotocol.registry/publisher-provided",UZ=4096;function q8($,Z={}){let Q={"one.faf/context":d0($,Z)},X=new TextEncoder().encode(JSON.stringify(Q)).length;if(X>UZ)throw Error(`publisher-provided _meta is ${X}B — exceeds the registry ${UZ}B cap`);return{[YZ]:Q}}function Y8($){return qZ($)}function B8($){let Z=$.project?.title;if(typeof Z==="string"){let Q=Z.trim();if(Q&&Q.length<=100)return Q}return}function nU($,Z,Q={}){let X=j2(Z,Q),z=iU($,"server-card");return cU(z,`${JSON.stringify(X,null,2)}
214
+ `,"utf-8"),z}import{existsSync as BZ,mkdirSync as I_,readFileSync as oU,writeFileSync as K_}from"fs";import{dirname as tU,join as GZ}from"path";var VZ="https://faf.one/context",eU="JSONRPC",_Z="1.0",$q=["a2a","mcp","registry","catalog"];function Zq($){return r(oU($,"utf-8"))}function Qq($=process.cwd()){let Z=["agent.fafa",".fafa"];for(let X of Z){let z=GZ($,X);if(BZ(z))return z}let Q=tU($);if(Q!==$)for(let X of Z){let z=GZ(Q,X);if(BZ(z))return z}return null}function Xq($){return($.endpoints??[]).filter((Z)=>String(Z.protocol??"").toLowerCase()==="a2a"&&Z.location)}function G8($,Z={}){let Q=Xq($);if(Q.length>0)return Q;let X=Z.doorUrl?.trim();if(X)return[{protocol:"a2a",location:X,version:_Z}];return[]}function WZ($,Z,Q={}){let X=$.agent??{},z=G8($,Q);if(z.length===0)throw Error("No A2A endpoint in .fafa (need endpoints[].protocol: a2a + location). Will not invent a door.");let J=String(X.displayName??$.metadata?.persona??X.name??"").trim(),H=String(X.description??"").trim(),U=String(X.version??"").trim(),q=String(X.vendor??"").trim(),Y=String(X.homepage??"").trim();if(!J||!H||!U||!q||!Y)throw Error("A2A card needs agent.displayName|name, description, version, vendor, homepage in .fafa");let B=d0(Z,Q),G=($.capabilities??[]).map((V)=>{let W=String(V.name??"").trim();if(!W)throw Error("A2A skill missing capabilities[].name");let D=Array.isArray(V.tags)?V.tags.map(String):[];return{id:W,name:W,description:String(V.description??"").trim()||W,tags:D}});return{name:J,description:H,supportedInterfaces:z.map((V)=>({url:String(V.location),protocolBinding:eU,protocolVersion:String(V.version??_Z)})),provider:{organization:q,url:Y},version:U,capabilities:{streaming:!1,pushNotifications:!1,extendedAgentCard:!1,extensions:[{uri:VZ,description:"FAF context provenance — the durable context block (one context, every door).",required:!1,params:B}]},defaultInputModes:["text/plain","application/json"],defaultOutputModes:["text/plain","application/json"],skills:G}}function zq($){let Z=$.agent?.homepage;if(!Z)return"local";try{return new URL(Z).hostname.replace(/^www\./,"")}catch{return"local"}}function Jq($,Z){if(Z.a2aCardUrl)return Z.a2aCardUrl;let Q=$.agent?.homepage;if(Q)try{return new URL("/.well-known/agent-card.json",Q).href}catch{}return"/.well-known/agent-card.json"}function Hq($,Z,Q={}){let X=zq($),z=$.agent??{},J=String(z.name??"agent"),H=Q.now??Z.generated??new Date().toISOString(),U=[];if(G8($,Q).length>0)U.push({identifier:`urn:air:${X}:a2a:${J}`,displayName:String(z.displayName??z.name??"A2A Agent Card"),type:"application/json",description:"A2A v1.0 Agent Card. Projected from .fafa.",url:Jq($,Q),updatedAt:H});let q=Uq($,"fafa");if(q)U.push({identifier:`urn:air:${X}:agent:${J}`,displayName:String(z.displayName??z.name??".fafa"),type:"application/vnd.fafa+yaml",description:"FAF agent passport (.fafa).",url:q,updatedAt:H});return U}function Uq($,Z){let Q=$.agent?.homepage;if(!Q)return;try{return new URL(`/.well-known/${Z}`,Q).href}catch{return}}function qq($,Z){let Q=$.findIndex((X)=>X.identifier===Z.identifier);if(Q>=0)return Q;if(Z.type==="application/json"||Z.identifier.includes(":a2a:"))return $.findIndex((X)=>X.identifier.includes(":a2a:")||String(X.url??"").includes("agent-card.json"));if(Z.type==="application/vnd.fafa+yaml")return $.findIndex((X)=>X.type==="application/vnd.fafa+yaml");return-1}function Yq($,Z){let Q=$?{...$,entries:[...$.entries??[]]}:{specVersion:"1.0",entries:[]};for(let X of Z){let z=qq(Q.entries,X);if(z>=0)Q.entries[z]={...Q.entries[z],url:X.url,type:X.type,...X.updatedAt?{updatedAt:X.updatedAt}:{}};else Q.entries.push(X)}return Q}function Bq($){let Z=$.opts??{},Q=new Set($.targets?.length?$.targets:$q),z={block:d0($.faf,Z)};if(Q.has("mcp"))z.mcp=j2($.faf,Z);if(Q.has("registry")){let J=B8($.faf);z.registry={name:Y8($.faf),...J?{title:J}:{},_meta:q8($.faf,Z)}}if(Q.has("a2a")||Q.has("catalog")){if(!$.fafa){if($.targets?.includes("a2a")||$.targets?.includes("catalog"))throw Error("A2A/catalog require a .fafa (agent.fafa). Will not invent an agent.")}}if(Q.has("a2a")&&$.fafa)if(G8($.fafa,Z).length===0){if($.targets?.includes("a2a"))throw Error("No A2A endpoint in .fafa (need endpoints[].protocol: a2a + location). Will not invent a door.")}else z.a2a=WZ($.fafa,$.faf,Z);if(Q.has("catalog")&&$.fafa)z.catalog=Hq($.fafa,$.faf,Z);return Gq(z),z}function Gq($){let Z=JSON.stringify($.block),Q=[];if($.a2a)Q.push(JSON.stringify($.a2a.capabilities.extensions[0].params));if($.mcp){let X=$.mcp._meta;Q.push(JSON.stringify(X["one.faf/context"]))}if($.registry){let X=$.registry._meta["io.modelcontextprotocol.registry/publisher-provided"];Q.push(JSON.stringify(X["one.faf/context"]))}for(let X of Q)if(X!==Z)throw Error("context block drifted across card targets — one projector, one block")}var V8=["ephemeral","standard","high","critical"],O0=Object.fromEntries(V8.map(($,Z)=>[$,Z])),g2=new Set(["user","feedback","project","reference"]),_8=new Set(["version","profile","namepoint","created","last_etched","retention","index","memory"]),W8=new Set(["facts","sessions","preferences","custom"]),O8={low:"ephemeral",medium:"standard"};import{readFileSync as Vq,writeFileSync as _q,existsSync as Wq}from"fs";function c0(){return new Date().toISOString().replace(/\.\d{3}Z$/,"Z")}function k($){return $===null||$===void 0}function A1($){if(k($))return"standard";if(O8[$])return O8[$];if($ in O0)return $;return"standard"}var Oq=new Set(["text","id","type","priority","tags","links","timestamp","source"]);function OZ($){if(typeof $==="string")return{text:$,id:null,type:null,priority:"standard",tags:[],links:[],timestamp:null,source:null,extra:{}};if(!$||typeof $!=="object"||!("text"in $))throw Error(`fact must be a string or a mapping with 'text': ${JSON.stringify($)}`);let Z=$,Q={};for(let[X,z]of Object.entries(Z))if(!Oq.has(X))Q[X]=z;return{text:String(Z.text),id:Z.id??null,type:Z.type??null,priority:A1(Z.priority),tags:Array.isArray(Z.tags)?Z.tags.slice():[],links:Array.isArray(Z.links)?Z.links.slice():[],timestamp:Z.timestamp??null,source:Z.source??null,extra:Q}}function DZ($){if(k($.id)&&k($.type)&&$.tags.length===0&&$.links.length===0&&k($.timestamp)&&k($.source)&&Object.keys($.extra).length===0&&$.priority==="standard")return $.text;let Q={text:$.text};if(!k($.id))Q.id=$.id;if(!k($.type))Q.type=$.type;if(Q.priority=$.priority,$.tags.length)Q.tags=$.tags;if($.links.length)Q.links=$.links;if(!k($.timestamp))Q.timestamp=$.timestamp;if(!k($.source))Q.source=$.source;return Object.assign(Q,$.extra),Q}class A0{namepoint;profile;retention;created;last_etched;_facts;_byId;_index;_sessions;_preferences;_custom;_extra;_memoryExtra;constructor($,Z={}){this.namepoint=$,this.profile=Z.profile??"knowledge",this.retention=Z.retention??"forever",this.created=Z.created??c0(),this.last_etched=this.created,this._facts=Z.facts?Z.facts.slice():[],this._byId=new Map,this._facts.forEach((Q,X)=>{if(!k(Q.id))this._byId.set(Q.id,X)}),this._index=Z.index?Z.index.slice():[],this._sessions=Z.sessions?structuredClone(Z.sessions):[],this._preferences=Z.preferences?{...Z.preferences}:{},this._custom=Z.custom?{...Z.custom}:{},this._extra=Z.extra?{...Z.extra}:{},this._memoryExtra=Z.memoryExtra?{...Z.memoryExtra}:{}}get facts(){return this._facts}get index(){return this._index}get sessions(){return this._sessions}get preferences(){return this._preferences}get custom(){return this._custom}get extra(){return this._extra}get memoryExtra(){return this._memoryExtra}static load($){if(!Wq($))throw Error(`soul file not found: ${$}`);let Z=Vq($,"utf-8"),Q=r(Z);if(!Q||typeof Q!=="object")throw Error("soul is not a YAML mapping");let X=Q.memory&&typeof Q.memory==="object"?Q.memory:{},z=Array.isArray(X.facts)?X.facts:[],J={};for(let[q,Y]of Object.entries(Q))if(!_8.has(q))J[q]=structuredClone(Y);let H={};for(let[q,Y]of Object.entries(X))if(!W8.has(q))H[q]=structuredClone(Y);let U=new A0(String(Q.namepoint??$.replace(/.*\//,"").replace(/\.fafm$/,"")),{profile:String(Q.profile??"voice"),facts:z.map(OZ),retention:String(Q.retention??"forever"),created:Q.created??null,index:Array.isArray(Q.index)?Q.index.slice():[],sessions:Array.isArray(X.sessions)?structuredClone(X.sessions):[],preferences:X.preferences&&typeof X.preferences==="object"?structuredClone(X.preferences):{},custom:X.custom&&typeof X.custom==="object"?structuredClone(X.custom):{},extra:J,memoryExtra:H});return U.last_etched=String(Q.last_etched??U.created),U}static fromFile($){return A0.load($)}toDoc(){let $={facts:this._facts.map(DZ),sessions:structuredClone(this._sessions),preferences:structuredClone(this._preferences),custom:structuredClone(this._custom)};for(let[Q,X]of Object.entries(this._memoryExtra))if(!W8.has(Q))$[Q]=structuredClone(X);let Z={version:"1.1",profile:this.profile,namepoint:this.namepoint,created:this.created,last_etched:this.last_etched,retention:this.retention,index:this._index.slice(),memory:$};for(let[Q,X]of Object.entries(this._extra))if(!_8.has(Q))Z[Q]=structuredClone(X);return Z}toYaml(){return E2(this.toDoc(),{lineWidth:100})}rebuildIndex($=80){return this._index=this._facts.map((Z)=>`${Z.id??"?"} — ${Z.text.slice(0,$)}`),this._index}save($,Z={}){if(Z.reindex!==!1)this.rebuildIndex();return _q($,this.toYaml(),"utf-8"),$}toFile($,Z={}){return this.save($,Z)}add($){if(!k($.id)&&this._byId.has($.id)){let Z=this._byId.get($.id);if(Z!==void 0)this._facts[Z]=$}else if(this._facts.push($),!k($.id))this._byId.set($.id,this._facts.length-1);if($.timestamp&&$.timestamp>(this.last_etched||""))this.last_etched=$.timestamp;return $}etch($,Z={}){return this.add({text:$,id:Z.id??null,type:Z.type??null,priority:A1(Z.priority),tags:Z.tags?Z.tags.slice():[],links:Z.links?Z.links.slice():[],timestamp:c0(),source:Z.source??null,extra:{}})}recall($,Z={}){let Q=O0[A1(Z.minPriority??"ephemeral")]??0,X=($??"").toLowerCase(),z=new Set(Z.tags??[]),J=[];this._facts.forEach((U,q)=>{if(X&&!U.text.toLowerCase().includes(X))return;if(z.size>0&&![...z].some((Y)=>U.tags.includes(Y)))return;if(!k(Z.type)&&U.type!==Z.type)return;if((O0[U.priority]??1)<Q)return;J.push([q,U])}),J.sort((U,q)=>{let Y=O0[U[1].priority]??1,B=O0[q[1].priority]??1;if(B!==Y)return B-Y;let G=U[1].timestamp??"",V=q[1].timestamp??"";if(V!==G)return V<G?-1:V>G?1:0;return q[0]-U[0]});let H=J.map(([,U])=>U);if(!k(Z.limit))return H.slice(0,Z.limit);return H}getFact($){let Z=this._byId.get($);return Z===void 0?null:this._facts[Z]}deleteFact($){let Z=this._byId.get($);if(Z===void 0)return!1;return this._facts.splice(Z,1),this._byId.clear(),this._facts.forEach((Q,X)=>{if(!k(Q.id))this._byId.set(Q.id,X)}),!0}}import{readdirSync as Dq,readFileSync as Iq,statSync as IZ,existsSync as Kq}from"fs";import{join as Lq,basename as KZ,resolve as Mq}from"path";var LZ=new Set(["MEMORY.md","MEMORY-FULL.md","README.md"]),Rq=/\[\[([^\]]+)\]\]/g;function Fq($){let Z=IZ($).mtimeMs;return new Date(Z).toISOString().replace(/\.\d{3}Z$/,"Z")}function Nq($){if(!$.startsWith("---"))return{fm:null,body:$};let Z=$.split("---");if(Z.length<3)return{fm:null,body:$};try{let Q=r(Z[1]);if(!Q||typeof Q!=="object")return{fm:null,body:Z.slice(2).join("---").trim()};return{fm:Q,body:Z.slice(2).join("---").trim()}}catch{return{fm:null,body:$}}}function Aq($,Z,Q){if(!Q.name)return null;let X=Q.metadata&&typeof Q.metadata==="object"?Q.metadata:{},z=X.type;if(typeof z!=="string"||!g2.has(z))return null;let J=String(Q.name).trim(),U=(Q.description!==void 0&&Q.description!==null&&String(Q.description).trim()?String(Q.description).trim():"")||J,q={};if(X.originSessionId)q.provenance=[`session:${X.originSessionId}`];let Y=[...new Set([...Z.matchAll(Rq)].map((B)=>B[1]))].sort();return{text:U,id:J,type:z,priority:"standard",tags:[],links:Y,timestamp:Fq($),source:`claude-code memory: ${KZ($)}`,extra:q}}function MZ($,Z={}){let Q=Mq($);if(!Kq(Q))throw Error(`Claude memory directory not found: ${Q}`);if(!IZ(Q).isDirectory())throw Error(`Claude memory path is not a directory: ${Q}`);let X=Z.skip??LZ,z=Z.namepoint??`@claude-code:${KZ(Q)}`,J=[],H=Dq(Q).filter((G)=>G.endsWith(".md")).sort();for(let G of H){if(X.has(G))continue;let V=Lq(Q,G),W;try{W=Iq(V,"utf-8")}catch{continue}let{fm:D,body:_}=Nq(W);if(!D)continue;let O=Aq(V,_,D);if(O)J.push(O)}let U=J.map((G)=>G.timestamp).filter(Boolean),q=U.length?U.reduce((G,V)=>G<V?G:V):c0(),Y=U.length?U.reduce((G,V)=>G>V?G:V):q,B=new A0(z,{profile:"knowledge",facts:J,created:q});return B.last_etched=Y,B.rebuildIndex(),B}var PZ="faf-interview/1",i0="(terse — 3-4 words)",D8=[{path:"project.name",question:"What is the name of this project?",header:"Name",type:"text",required:!0},{path:"project.goal",question:"What does this project do? (one sentence)",header:"Goal",type:"text",required:!0},{path:"human_context.who",question:`Who is this for? ${i0}`,header:"Who",type:"text",required:!0},{path:"human_context.what",question:`What are they building? ${i0}`,header:"What",type:"text",required:!0},{path:"human_context.why",question:`Why does it exist? ${i0}`,header:"Why",type:"text",required:!0},{path:"human_context.where",question:`Where does it run or ship? ${i0}`,header:"Where",type:"text",required:!0},{path:"human_context.when",question:`When — timeline or stage? ${i0}`,header:"When",type:"text",required:!0},{path:"human_context.how",question:`How is it built or used? ${i0}`,header:"How",type:"text",required:!0}],TZ=[{path:"project.main_language",question:"What is the primary programming language?",header:"Language",type:"select",required:!0,options:[{label:"TypeScript",value:"TypeScript",description:"JavaScript with types"},{label:"JavaScript",value:"JavaScript",description:"Vanilla JS or Node.js"},{label:"Python",value:"Python",description:"Python 3.x"},{label:"Rust",value:"Rust",description:"Systems programming"},{label:"Go",value:"Go",description:"Golang"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.frontend",question:"What frontend framework does it use?",header:"Frontend",type:"select",required:!1,options:[{label:"React",value:"React",description:"React.js"},{label:"Vue",value:"Vue",description:"Vue.js"},{label:"Svelte",value:"Svelte",description:"Svelte/SvelteKit"},{label:"Next.js",value:"Next.js",description:"React framework"},{label:"None",value:"None",description:"No frontend"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.backend",question:"What backend framework does it use?",header:"Backend",type:"select",required:!1,options:[{label:"Express",value:"Express",description:"Node.js Express"},{label:"Fastify",value:"Fastify",description:"Node.js Fastify"},{label:"Django",value:"Django",description:"Python Django"},{label:"FastAPI",value:"FastAPI",description:"Python FastAPI"},{label:"None",value:"None",description:"No backend"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.database",question:"What database does it use?",header:"Database",type:"select",required:!1,options:[{label:"PostgreSQL",value:"PostgreSQL",description:"Postgres"},{label:"MySQL",value:"MySQL",description:"MySQL/MariaDB"},{label:"SQLite",value:"SQLite",description:"Embedded SQL"},{label:"MongoDB",value:"MongoDB",description:"Document store"},{label:"None",value:"None",description:"No database"},{label:"Other",value:"Other",description:"Specify manually"}]},{path:"stack.runtime",question:"What runtime does it run on?",header:"Runtime",type:"text",required:!1},{path:"stack.hosting",question:"Where is it hosted or distributed?",header:"Hosting",type:"text",required:!1},{path:"stack.build",question:"What is the build tool?",header:"Build",type:"text",required:!1},{path:"stack.cicd",question:"What CI/CD does it use?",header:"CI/CD",type:"text",required:!1}],r0=[...D8,...TZ],CZ=new Map(r0.map(($)=>[$.path,$])),Pq=Object.fromEntries(r0.map(($)=>[$.path,$]));function I8($){let Z=CZ.get($);if(Z)return Z.question;let Q=o0.get($)??y.find((X)=>X.canonical===$);return Q?`${Q.description}?`.replace(/\?\?$/,"?"):`${$}?`}function Tq($,Z){return r0.filter((Q)=>{let X=Q.path.split("."),z=$;for(let J of X)if(z&&typeof z==="object"&&J in z)z=z[J];else{z=void 0;break}if(z==="slotignored")return!1;return Z(z)})}var Cq=new Set(["developers","development teams","development team","teams","development","cloud platform","web platform","platform","best practices","improve development efficiency","development efficiency","modern development practices","modern development","test-driven development","production/stable","production","stable","app","project","tool"]),wq=[["npm",/\bnpm\b/i],["PyPI",/\bpypi\b/i],["crates.io",/\bcrates\.io\b/i],["Homebrew",/\bhomebrew\b/i],["Docker",/\bdocker\b/i],["Cloudflare",/\bcloudflare\b/i],["Vercel",/\bvercel\b/i],["Netlify",/\bnetlify\b/i],["AWS",/\baws\b/i],["Cloud Run",/\bcloud run\b/i],["edge",/\bedge\b/i],["browser",/\bbrowser\b/i],["WASM",/\bwasm\b/i],["GitHub",/\bgithub\b/i],["MCP Registry",/\bmcp registry\b/i],["Chrome Web Store",/\bchrome web store\b/i],["Smithery",/\bsmithery\b/i]],RZ=($)=>Cq.has($.toLowerCase().trim()),bq=/^(?:with|and|or|using|for|to|that|who|whom|whose|the|a|an|in|on|of|via|by|&)$/i;function FZ($,Z=5){let Q=$.trim().split(/\s+/).filter(Boolean).slice(0,Z);while(Q.length&&bq.test(Q[Q.length-1].replace(/[.,;:]+$/,"")))Q.pop();return Q.join(" ")}function wZ($){let Z={};if(!$||typeof $!=="string")return Z;let Q=$.trim(),X=Q.replace(/^[^A-Za-z0-9]+/,"").split(/\s+(?:for|that|which|to)\s+|\s+[—–]\s+|\s-\s|:\s|\.\s|,\s/)[0].trim(),z=FZ(X);if(z.split(/\s+/).filter(Boolean).length>=2&&!RZ(z))Z.what=z;let J=wq.filter(([,q])=>q.test(Q)).map(([q])=>q);if(J.length)Z.where=J.slice(0,4).join(", ");let H=Q.match(/\bfor ((?:[A-Za-z][\w./+-]* )?(?:any |all )?(?:developers?|teams?|engineers?|builders?|users?|integrators?)\b[^.,;:—]*)/i),U=FZ((H?.[1]||"").trim().replace(/\s+/g," "));if(U&&!RZ(U))Z.who=U;return Z}function NZ($,Z){let Q=$;for(let X of Z.split("."))if(Q&&typeof Q==="object"&&X in Q)Q=Q[X];else return;return Q}function AZ($){if(typeof $!=="string")return!1;let Z=$.trim();if(!Z||Z==="slotignored")return!1;return!D0(Z)}function Eq($,Z={}){let Q=$&&typeof $==="object"?$:{},X=NZ(Q,"project.goal"),z=(AZ(X)?String(X).trim():"")||(Z.goal??"").trim(),J=wZ(z),H=Z.detailed??{},U={"project.goal":z||void 0,"human_context.what":J.what,"human_context.where":J.where,"human_context.who":J.who},q=(W)=>{let D=U[W];if(D)return{value:D,source:"project goal",confidence:0.9};let _=W.startsWith("human_context.")?W.slice(14):"",O=_?H[_]:void 0;return O?{value:O.value,source:O.source,confidence:O.confidence}:void 0},Y=D8.map((W,D)=>{let _={n:D+1,path:W.path,header:W.header,question:W.question},O=NZ(Q,W.path);if(AZ(O))return{..._,value:String(O).trim(),status:"filled",seeded:!1};let I=q(W.path);if(I)return{..._,value:I.value,status:"seeded",seeded:!0,source:I.source,confidence:I.confidence};return{..._,value:"",status:"empty",seeded:!1}}),B=Y.filter((W)=>W.status==="filled").length,G=Y.filter((W)=>W.status==="seeded").length,V=Y.filter((W)=>W.status==="empty").length;return{version:PZ,rows:Y,filledCount:B,seededCount:G,emptyCount:V,complete:V===0}}function x2($){if($===null||$===void 0)return!0;if(typeof $==="string"){let Z=$.trim();return Z===""||D0(Z)}return!1}function Sq($,Z){let Q=$;for(let X of Z.split("."))if(Q&&typeof Q==="object"&&X in Q)Q=Q[X];else return;return Q}function bZ($){if($==="project.goal")return!0;return o0.get($)?.category==="human"}function EZ($,Z=x2){let Q=[],X=[];for(let z of r0){let J=Sq($,z.path);if(J==="slotignored")continue;if(!Z(J))continue;(bZ(z.path)?Q:X).push(z.path)}return{human:Q,sourceable:X}}function SZ($,Z,Q=x2){let X=EZ(Z,Q),z;if($>=100||X.human.length===0&&X.sourceable.length===0)z="done";else if(X.sourceable.length>0)z="can-source";else z="needs-human";let J=z==="needs-human"?K8(X):[];return{status:z,score:$,gaps:X,ask:J}}function K8($){return $.human.map((Z)=>({path:Z,question:I8(Z)}))}function jq($,Z={}){let Q=Math.max(1,Z.maxRounds??5),X=Z.isEmpty??x2,z=[],J=0;for(let U=0;U<=Q;U++){let q=$.read();if(!q)return{status:"no-faf",score:0,rounds:J,history:z,ask:[]};let Y=$.score(q.yaml);z.push(Y);let B=SZ(Y,q.data,X);if(B.status==="done")return{status:"done",score:Y,rounds:J,history:z,ask:[]};if(B.status==="needs-human")return{status:"needs-human",score:Y,rounds:J,history:z,ask:B.ask};if(z.length>=2&&Y<=z[z.length-2])return B.gaps.human.length?{status:"needs-human",score:Y,rounds:J,history:z,ask:K8(B.gaps)}:{status:"stuck",score:Y,rounds:J,history:z,ask:[]};if(J>=Q)return{status:"capped",score:Y,rounds:J,history:z,ask:K8(B.gaps)};$.runAuto(),J++}return{status:"capped",score:z[z.length-1]??0,rounds:J,history:z,ask:[]}}import{createHash as gZ}from"crypto";var L8="faf-bench/1",gq={"project.name":"What is the project's name?","project.goal":"What is the project's goal — what is it for?","project.main_language":"What is the primary programming language?","human_context.who":"Who is this project for?","human_context.what":"What are they building?","human_context.why":"Why does this project exist?","human_context.where":"Where does it run or get distributed?","human_context.when":"When — what is the project's timeline or stage?","human_context.how":"How is it built or used?"};function xq($,Z){return gq[$]??`What is the project's ${Z.replace(/\s*\(.*\)$/,"").toLowerCase()}?`}var xZ=[["typescript","ts"],["javascript","js"],["python","py","python3"],["node","nodejs","node js","node.js"],["github actions","gh actions","actions"],["postgresql","postgres","pg"],["kubernetes","k8s"],["npm","npm registry"],["cloudflare workers","cf workers","workers"],["google cloud run","cloud run","gcp cloud run"]],P1=new Map;xZ.forEach(($,Z)=>$.forEach((Q)=>P1.set(Q,Z)));var hq=new Set(["a","an","the","and","or","of","for","to","in","on","with","is","it","its","their","your","via","by","using","use","used"]);function h2($){return $.toLowerCase().replace(/[^a-z0-9\s.+#-]/g," ").replace(/\.(?=\s|$)/g," ").replace(/\s+/g," ").trim()}function jZ($){return h2($).split(" ").filter((Z)=>Z&&!hq.has(Z))}function hZ($,Z){let Q=h2($),X=h2(Z);if(!Q||!X)return!1;if(Q===X)return!0;let z=P1.get(Q);if(z!==void 0&&P1.get(X)===z)return!0;let J=jZ($);if(J.length===0)return!1;let H=new Set(jZ(Z));return J.every((U)=>{if(H.has(U))return!0;let q=P1.get(U);return q!==void 0&&[...H].some((Y)=>P1.get(Y)===q)})}function yq($){let Z=n2($),Q=r($),X=[],z={},J=0;for(let q of y){if(Z.slots[q.path]!=="populated")continue;let Y=f8(Q,q);if(typeof Y!=="string")continue;let B=Y.trim();if(!B||k1.has(B.toLowerCase()))continue;J+=1,X.push({n:J,path:q.path,question:xq(q.path,q.description)}),z[J]=B}let H=JSON.stringify({v:L8,q:X.map((q)=>[q.path,q.question])}),U=gZ("sha256").update(H).digest("hex").slice(0,12);return{version:L8,qsetHash:U,questions:X,answers:z}}function fq($){return{version:$.version,qsetHash:$.qsetHash,questions:$.questions}}function kq($,Z){let Q=$.questions.map((z)=>{let J=Z[String(z.n)]??Z[z.path]??"";return{n:z.n,path:z.path,ok:typeof J==="string"&&J.trim()!==""&&hZ($.answers[z.n],J)}}),X=$.questions.filter((z)=>!Q[z.n-1].ok);return{correct:Q.filter((z)=>z.ok).length,total:$.questions.length,misses:X,perQuestion:Q}}function vq($,Z){let Q=JSON.stringify({v:$.version,repo:Z??null,qset:$.qsetHash,protocol:$.protocol,cold:$.cold??null,faf:$.faf??null});return{projection:Q,hash:gZ("sha256").update(Q).digest("hex")}}import{existsSync as FB,readdirSync as tZ,readFileSync as NB}from"fs";import{join as w8,dirname as AB,extname as PB,resolve as TB}from"path";var M8={"package.json":{frameworks:["Node.js","JavaScript","TypeScript"],slots:{packageManager:"npm/yarn/pnpm",mainLanguage:"JavaScript/TypeScript"},priority:35,intelligence:"ultra-high"},"README.md":{frameworks:[],slots:{targetUser:"developers",coreProblem:"understanding project",missionPurpose:"project documentation"},priority:25,intelligence:"high"},"requirements.txt":{frameworks:["Python"],slots:{packageManager:"pip",mainLanguage:"Python"},priority:35,intelligence:"ultra-high"},Pipfile:{frameworks:["Python"],slots:{packageManager:"pipenv",mainLanguage:"Python"},priority:35,intelligence:"ultra-high"},"pyproject.toml":{frameworks:["Python"],slots:{mainLanguage:"Python",runtime:"Python",backend:"Python"},priority:36,intelligence:"ultra-high"},Gemfile:{frameworks:["Ruby"],slots:{packageManager:"bundler",mainLanguage:"Ruby"},priority:35,intelligence:"ultra-high"},"Gemfile.lock":{frameworks:["Ruby"],slots:{packageManager:"bundler",mainLanguage:"Ruby"},priority:34,intelligence:"high"},"composer.json":{frameworks:["PHP","Laravel","Symfony"],slots:{packageManager:"composer",mainLanguage:"PHP"},priority:35,intelligence:"ultra-high"},"Cargo.toml":{frameworks:["Rust"],slots:{packageManager:"cargo",mainLanguage:"Rust",buildTool:"cargo"},priority:36,intelligence:"ultra-high"},"go.mod":{frameworks:["Go"],slots:{packageManager:"go modules",mainLanguage:"Go",buildTool:"go build"},priority:36,intelligence:"ultra-high"},"Package.swift":{frameworks:["Swift"],slots:{packageManager:"spm",mainLanguage:"Swift",buildTool:"swift build"},priority:36,intelligence:"ultra-high"},"*.csproj":{frameworks:["C#",".NET"],slots:{packageManager:"NuGet",mainLanguage:"C#",buildTool:"dotnet"},priority:36,intelligence:"ultra-high"},"pubspec.yaml":{frameworks:["Dart"],slots:{packageManager:"pub",mainLanguage:"Dart"},priority:35,intelligence:"ultra-high"},"pom.xml":{frameworks:["Java"],slots:{packageManager:"maven",mainLanguage:"Java",buildTool:"maven"},priority:35,intelligence:"ultra-high"},"build.gradle":{frameworks:["Java","Gradle"],slots:{packageManager:"gradle",mainLanguage:"Java",buildTool:"gradle"},priority:35,intelligence:"ultra-high"},"settings.gradle":{frameworks:["Java","Gradle"],slots:{packageManager:"gradle",mainLanguage:"Java",buildTool:"gradle"},priority:34,intelligence:"high"},"settings.gradle.kts":{frameworks:["Kotlin","Gradle"],slots:{packageManager:"gradle",mainLanguage:"Kotlin",buildTool:"gradle"},priority:34,intelligence:"high"},"next.config.js":{frameworks:["Next.js"],slots:{framework:"Next.js",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"next.config.mjs":{frameworks:["Next.js"],slots:{framework:"Next.js",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"next.config.ts":{frameworks:["Next.js 13+"],slots:{framework:"Next.js 13+",runtime:"Node.js",buildTool:"Next.js",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"nuxt.config.js":{frameworks:["Nuxt 2"],slots:{framework:"Nuxt 2",runtime:"Node.js",buildTool:"Nuxt",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"nuxt.config.ts":{frameworks:["Nuxt 3"],slots:{framework:"Nuxt 3",runtime:"Node.js",buildTool:"Nuxt",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"svelte.config.js":{frameworks:["SvelteKit"],slots:{framework:"SvelteKit",buildTool:"Vite",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"angular.json":{frameworks:["Angular"],slots:{framework:"Angular",buildTool:"Angular CLI",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"manifest.json":{frameworks:["Chrome Extension","Browser Extension"],slots:{framework:"Chrome Extension",runtime:"Chrome/Browser",mainLanguage:"JavaScript",hosting:"Chrome Web Store",apiType:"Chrome APIs"},priority:35,intelligence:"ultra-high",confirmWith:["popup.html","background.js","content.js"]},"vue.config.js":{frameworks:["Vue"],slots:{framework:"Vue",buildTool:"Vue CLI",mainLanguage:"JavaScript"},priority:30,intelligence:"high"},"remix.config.js":{frameworks:["Remix"],slots:{framework:"Remix",runtime:"Node.js",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"gatsby-config.js":{frameworks:["Gatsby"],slots:{framework:"Gatsby",buildTool:"Gatsby",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"gatsby-config.ts":{frameworks:["Gatsby"],slots:{framework:"Gatsby",buildTool:"Gatsby",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"astro.config.mjs":{frameworks:["Astro"],slots:{framework:"Astro",buildTool:"Vite",mainLanguage:"JavaScript",server:"Node.js"},priority:30,intelligence:"high"},"redwood.toml":{frameworks:["RedwoodJS"],slots:{framework:"RedwoodJS",buildTool:"Webpack",mainLanguage:"JavaScript/TypeScript",server:"Node.js",database:"Prisma"},priority:30,intelligence:"high"},"blitz.config.ts":{frameworks:["Blitz.js"],slots:{framework:"Blitz.js",buildTool:"Next.js",mainLanguage:"TypeScript",server:"Node.js",database:"Prisma"},priority:30,intelligence:"high"},"qwik.config.ts":{frameworks:["Qwik"],slots:{framework:"Qwik",buildTool:"Vite",mainLanguage:"TypeScript",server:"Node.js"},priority:30,intelligence:"high"},"manage.py":{frameworks:["Django"],slots:{framework:"Django",backend:"Django",mainLanguage:"Python",server:"Django",apiType:"Django Views"},priority:30,intelligence:"high"},artisan:{frameworks:["Laravel"],slots:{framework:"Laravel",backend:"Laravel",mainLanguage:"PHP",server:"PHP",apiType:"Laravel Routes"},priority:30,intelligence:"high"},"mix.exs":{frameworks:["Phoenix","Elixir"],slots:{framework:"Phoenix",backend:"Phoenix",mainLanguage:"Elixir",server:"BEAM"},priority:30,intelligence:"high"},"nest-cli.json":{frameworks:["NestJS"],slots:{framework:"NestJS",backend:"NestJS",mainLanguage:"TypeScript",server:"Node.js",apiType:"REST API"},priority:30,intelligence:"high"},"strapi.config.js":{frameworks:["Strapi"],slots:{backend:"Strapi",apiType:"REST API",database:"Required",server:"Node.js"},priority:30,intelligence:"high"},Dockerfile:{frameworks:["Docker"],slots:{hosting:"Docker",connection:"Containerized"},priority:30,intelligence:"high"},"docker-compose.yml":{frameworks:["Docker Compose"],slots:{hosting:"Docker",connection:"Multi-container"},priority:30,intelligence:"high"},"docker-compose.yaml":{frameworks:["Docker Compose"],slots:{hosting:"Docker",connection:"Multi-container"},priority:30,intelligence:"high"},"kubernetes.yml":{frameworks:["Kubernetes"],slots:{hosting:"Kubernetes",connection:"Orchestrated"},priority:30,intelligence:"high"},"k8s.yaml":{frameworks:["Kubernetes"],slots:{hosting:"Kubernetes",connection:"Orchestrated"},priority:30,intelligence:"high"},"vercel.json":{frameworks:["Vercel"],slots:{hosting:"Vercel",cicd:"Vercel"},priority:30,intelligence:"high"},"netlify.toml":{frameworks:["Netlify"],slots:{hosting:"Netlify",cicd:"Netlify"},priority:30,intelligence:"high"},"render.yaml":{frameworks:["Render"],slots:{hosting:"Render",cicd:"Render"},priority:30,intelligence:"high"},"fly.toml":{frameworks:["Fly.io"],slots:{hosting:"Fly.io",cicd:"Fly.io"},priority:30,intelligence:"high"},"railway.json":{frameworks:["Railway"],slots:{hosting:"Railway",cicd:"Railway"},priority:30,intelligence:"high"},"railway.toml":{frameworks:["Railway"],slots:{hosting:"Railway",cicd:"Railway"},priority:30,intelligence:"high"},"app.yaml":{frameworks:["Google App Engine"],slots:{hosting:"Google Cloud",cicd:"Google Cloud"},priority:30,intelligence:"high"},Procfile:{frameworks:["Heroku"],slots:{hosting:"Heroku",cicd:"Heroku"},priority:30,intelligence:"high"},"vite.config.js":{frameworks:["Vite"],slots:{buildTool:"Vite"},priority:25,intelligence:"medium"},"vite.config.ts":{frameworks:["Vite"],slots:{buildTool:"Vite",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"webpack.config.js":{frameworks:["Webpack"],slots:{buildTool:"Webpack"},priority:25,intelligence:"medium"},"rollup.config.js":{frameworks:["Rollup"],slots:{buildTool:"Rollup"},priority:25,intelligence:"medium"},"esbuild.config.js":{frameworks:["esbuild"],slots:{buildTool:"esbuild"},priority:25,intelligence:"medium"},"parcel.config.js":{frameworks:["Parcel"],slots:{buildTool:"Parcel"},priority:25,intelligence:"medium"},"snowpack.config.js":{frameworks:["Snowpack"],slots:{buildTool:"Snowpack"},priority:25,intelligence:"medium"},"tsconfig.json":{frameworks:["TypeScript"],slots:{mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"jsconfig.json":{frameworks:["JavaScript"],slots:{mainLanguage:"JavaScript"},priority:20,intelligence:"medium"},"babel.config.js":{frameworks:["Babel"],slots:{buildTool:"Babel"},priority:20,intelligence:"medium"},".babelrc":{frameworks:["Babel"],slots:{buildTool:"Babel"},priority:20,intelligence:"medium"},"jest.config.js":{frameworks:["Jest"],slots:{cicd:"Jest"},priority:25,intelligence:"medium"},"jest.config.ts":{frameworks:["Jest"],slots:{cicd:"Jest",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"vitest.config.ts":{frameworks:["Vitest"],slots:{cicd:"Vitest",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"cypress.config.js":{frameworks:["Cypress"],slots:{cicd:"Cypress"},priority:25,intelligence:"medium"},"playwright.config.ts":{frameworks:["Playwright"],slots:{cicd:"Playwright",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"karma.conf.js":{frameworks:["Karma"],slots:{cicd:"Karma"},priority:20,intelligence:"medium"},"mocha.opts":{frameworks:["Mocha"],slots:{cicd:"Mocha"},priority:20,intelligence:"medium"},".rspec":{frameworks:["RSpec"],slots:{cicd:"RSpec",mainLanguage:"Ruby"},priority:25,intelligence:"medium"},"pytest.ini":{frameworks:["Pytest"],slots:{cicd:"Pytest",mainLanguage:"Python"},priority:25,intelligence:"medium"},"phpunit.xml":{frameworks:["PHPUnit"],slots:{cicd:"PHPUnit",mainLanguage:"PHP"},priority:25,intelligence:"medium"},"schema.prisma":{frameworks:["Prisma"],slots:{database:"Prisma ORM",connection:"Prisma"},priority:25,intelligence:"medium"},"drizzle.config.ts":{frameworks:["Drizzle"],slots:{database:"Drizzle ORM",connection:"Drizzle",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"ormconfig.js":{frameworks:["TypeORM"],slots:{database:"TypeORM",connection:"TypeORM"},priority:25,intelligence:"medium"},"knexfile.js":{frameworks:["Knex.js"],slots:{database:"Knex.js",connection:"Knex.js"},priority:25,intelligence:"medium"},"sequelize.config.js":{frameworks:["Sequelize"],slots:{database:"Sequelize",connection:"Sequelize"},priority:25,intelligence:"medium"},"alembic.ini":{frameworks:["Alembic"],slots:{database:"Alembic",mainLanguage:"Python"},priority:25,intelligence:"medium"},".github/workflows":{frameworks:["GitHub Actions"],slots:{cicd:"GitHub Actions"},priority:25,intelligence:"medium"},".gitlab-ci.yml":{frameworks:["GitLab CI"],slots:{cicd:"GitLab CI"},priority:25,intelligence:"medium"},Jenkinsfile:{frameworks:["Jenkins"],slots:{cicd:"Jenkins"},priority:25,intelligence:"medium"},".circleci/config.yml":{frameworks:["CircleCI"],slots:{cicd:"CircleCI"},priority:25,intelligence:"medium"},".travis.yml":{frameworks:["Travis CI"],slots:{cicd:"Travis CI"},priority:25,intelligence:"medium"},"azure-pipelines.yml":{frameworks:["Azure DevOps"],slots:{cicd:"Azure DevOps"},priority:25,intelligence:"medium"},"bitbucket-pipelines.yml":{frameworks:["Bitbucket Pipelines"],slots:{cicd:"Bitbucket Pipelines"},priority:25,intelligence:"medium"},"tailwind.config.js":{frameworks:["Tailwind CSS"],slots:{cssFramework:"Tailwind CSS"},priority:20,intelligence:"medium"},"tailwind.config.ts":{frameworks:["Tailwind CSS"],slots:{cssFramework:"Tailwind CSS",mainLanguage:"TypeScript"},priority:20,intelligence:"medium"},"postcss.config.js":{frameworks:["PostCSS"],slots:{cssFramework:"PostCSS"},priority:20,intelligence:"medium"},"uno.config.ts":{frameworks:["UnoCSS"],slots:{cssFramework:"UnoCSS",mainLanguage:"TypeScript"},priority:20,intelligence:"medium"},"styled-components.config.js":{frameworks:["styled-components"],slots:{cssFramework:"styled-components",uiLibrary:"styled-components"},priority:20,intelligence:"medium"},"emotion.config.js":{frameworks:["Emotion"],slots:{cssFramework:"Emotion",uiLibrary:"Emotion"},priority:20,intelligence:"medium"},"metro.config.js":{frameworks:["React Native"],slots:{framework:"React Native",mainLanguage:"JavaScript"},priority:25,intelligence:"medium"},"expo.config.js":{frameworks:["Expo"],slots:{framework:"React Native",buildTool:"Expo"},priority:25,intelligence:"medium"},"app.json":{frameworks:["React Native","Expo"],slots:{framework:"React Native"},priority:20,intelligence:"medium",confirmWith:["expo"]},"capacitor.config.ts":{frameworks:["Capacitor"],slots:{framework:"Capacitor",mainLanguage:"TypeScript"},priority:25,intelligence:"medium"},"ionic.config.json":{frameworks:["Ionic"],slots:{framework:"Ionic",uiLibrary:"Ionic"},priority:25,intelligence:"medium"},"nx.json":{frameworks:["Nx"],slots:{buildTool:"Nx"},priority:25,intelligence:"medium"},"turbo.json":{frameworks:["Turborepo"],slots:{buildTool:"Turborepo"},priority:25,intelligence:"medium"},"lerna.json":{frameworks:["Lerna"],slots:{buildTool:"Lerna"},priority:25,intelligence:"medium"},"rush.json":{frameworks:["Rush"],slots:{buildTool:"Rush"},priority:25,intelligence:"medium"},"pnpm-workspace.yaml":{frameworks:["pnpm workspaces"],slots:{packageManager:"pnpm",buildTool:"pnpm workspaces"},priority:25,intelligence:"medium"},"*.svelte":{frameworks:["Svelte","SvelteKit"],slots:{framework:"Svelte"},priority:15,intelligence:"low"},"*.vue":{frameworks:["Vue"],slots:{framework:"Vue"},priority:15,intelligence:"low"},"*.jsx":{frameworks:["React"],slots:{framework:"React",mainLanguage:"JavaScript"},priority:15,intelligence:"low"},"*.ts":{frameworks:["TypeScript"],slots:{mainLanguage:"TypeScript"},priority:15,intelligence:"low"},"*.tsx":{frameworks:["React","TypeScript"],slots:{framework:"React",mainLanguage:"TypeScript"},priority:15,intelligence:"low"},"*.py":{frameworks:["Python"],slots:{mainLanguage:"Python"},priority:15,intelligence:"low"},"*.rb":{frameworks:["Ruby"],slots:{mainLanguage:"Ruby"},priority:15,intelligence:"low"},"*.php":{frameworks:["PHP"],slots:{mainLanguage:"PHP"},priority:15,intelligence:"low"},"*.java":{frameworks:["Java"],slots:{mainLanguage:"Java"},priority:15,intelligence:"low"},"*.kt":{frameworks:["Kotlin"],slots:{mainLanguage:"Kotlin"},priority:15,intelligence:"low"},"*.swift":{frameworks:["Swift"],slots:{mainLanguage:"Swift"},priority:15,intelligence:"low"},"*.go":{frameworks:["Go"],slots:{mainLanguage:"Go"},priority:15,intelligence:"low"},"*.rs":{frameworks:["Rust"],slots:{mainLanguage:"Rust"},priority:15,intelligence:"low"},"*.dart":{frameworks:["Flutter","Dart"],slots:{mainLanguage:"Dart"},priority:15,intelligence:"low"},"*.ex":{frameworks:["Elixir"],slots:{mainLanguage:"Elixir"},priority:15,intelligence:"low"},"*.exs":{frameworks:["Elixir"],slots:{mainLanguage:"Elixir"},priority:15,intelligence:"low"},"*.scala":{frameworks:["Scala"],slots:{mainLanguage:"Scala"},priority:15,intelligence:"low"},"*.clj":{frameworks:["Clojure"],slots:{mainLanguage:"Clojure"},priority:15,intelligence:"low"},"*.lua":{frameworks:["Lua"],slots:{mainLanguage:"Lua"},priority:15,intelligence:"low"},"*.r":{frameworks:["R"],slots:{mainLanguage:"R"},priority:15,intelligence:"low"},"*.R":{frameworks:["R"],slots:{mainLanguage:"R"},priority:15,intelligence:"low"},"*.jl":{frameworks:["Julia"],slots:{mainLanguage:"Julia"},priority:15,intelligence:"low"},"*.nim":{frameworks:["Nim"],slots:{mainLanguage:"Nim"},priority:15,intelligence:"low"},"*.zig":{frameworks:["Zig"],slots:{mainLanguage:"Zig"},priority:15,intelligence:"low"},"build.zig":{frameworks:["Zig"],slots:{packageManager:"Zig Package Manager",mainLanguage:"Zig",buildTool:"zig build",framework:"Zig",build:"zig build"},priority:35,intelligence:"ultra-high"},"openapi.json":{frameworks:["OpenAPI"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"openapi.yaml":{frameworks:["OpenAPI"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"swagger.json":{frameworks:["Swagger"],slots:{apiType:"REST API",backend:"API Server"},priority:30,intelligence:"high"},"graphql.schema":{frameworks:["GraphQL"],slots:{apiType:"GraphQL",backend:"GraphQL Server"},priority:30,intelligence:"high"},"schema.graphql":{frameworks:["GraphQL"],slots:{apiType:"GraphQL",backend:"GraphQL Server"},priority:30,intelligence:"high"},".graphqlconfig":{frameworks:["GraphQL"],slots:{apiType:"GraphQL"},priority:25,intelligence:"medium"},"redux.config.js":{frameworks:["Redux"],slots:{stateManagement:"Redux"},priority:20,intelligence:"medium"},"mobx.config.js":{frameworks:["MobX"],slots:{stateManagement:"MobX"},priority:20,intelligence:"medium"},"vuex.config.js":{frameworks:["Vuex"],slots:{stateManagement:"Vuex",framework:"Vue"},priority:20,intelligence:"medium"},"pinia.config.js":{frameworks:["Pinia"],slots:{stateManagement:"Pinia",framework:"Vue"},priority:20,intelligence:"medium"},"zustand.config.js":{frameworks:["Zustand"],slots:{stateManagement:"Zustand"},priority:20,intelligence:"medium"},".eslintrc.js":{frameworks:["ESLint"],slots:{},priority:15,intelligence:"low"},".eslintrc.json":{frameworks:["ESLint"],slots:{},priority:15,intelligence:"low"},".prettierrc":{frameworks:["Prettier"],slots:{},priority:15,intelligence:"low"},".prettierrc.json":{frameworks:["Prettier"],slots:{},priority:15,intelligence:"low"},"biome.json":{frameworks:["Biome"],slots:{},priority:15,intelligence:"low"},".editorconfig":{frameworks:["EditorConfig"],slots:{},priority:10,intelligence:"low"},"serverless.yml":{frameworks:["Serverless Framework"],slots:{hosting:"AWS Lambda/Azure/GCP",backend:"Serverless",apiType:"API Gateway"},priority:30,intelligence:"high"},"serverless.yaml":{frameworks:["Serverless Framework"],slots:{hosting:"AWS Lambda/Azure/GCP",backend:"Serverless",apiType:"API Gateway"},priority:30,intelligence:"high"},"sam.yaml":{frameworks:["AWS SAM"],slots:{hosting:"AWS Lambda",backend:"AWS SAM",cicd:"AWS SAM CLI"},priority:30,intelligence:"high"},"template.yaml":{frameworks:["AWS SAM","CloudFormation"],slots:{hosting:"AWS",backend:"AWS SAM/CloudFormation",cicd:"AWS"},priority:25,intelligence:"medium",confirmWith:["samconfig.toml"]},"amplify.yml":{frameworks:["AWS Amplify"],slots:{hosting:"AWS Amplify",backend:"AWS Amplify",cicd:"AWS Amplify"},priority:30,intelligence:"high"},Podfile:{frameworks:["CocoaPods","Swift"],slots:{packageManager:"CocoaPods",mainLanguage:"Swift/Objective-C"},priority:30,intelligence:"high"},"build.gradle.kts":{frameworks:["Kotlin","Gradle"],slots:{packageManager:"gradle",mainLanguage:"Kotlin",buildTool:"gradle"},priority:35,intelligence:"ultra-high"},"*.ipynb":{frameworks:["Jupyter","Python"],slots:{mainLanguage:"Python",framework:"Jupyter Notebook"},priority:30,intelligence:"high"},MLproject:{frameworks:["MLflow"],slots:{mainLanguage:"Python",framework:"MLflow",backend:"MLflow",cicd:"MLflow"},priority:30,intelligence:"high"},"dvc.yaml":{frameworks:["DVC","Data Version Control"],slots:{mainLanguage:"Python",framework:"DVC",cicd:"DVC Pipelines"},priority:30,intelligence:"high"},"dvc.lock":{frameworks:["DVC"],slots:{framework:"DVC"},priority:20,intelligence:"medium"},"wrangler.toml":{frameworks:["Cloudflare Workers","Cloudflare"],slots:{hosting:"Cloudflare Workers",backend:"Cloudflare Workers",runtime:"V8 Isolates"},priority:30,intelligence:"high"},"deno.json":{frameworks:["Deno"],slots:{runtime:"Deno",mainLanguage:"TypeScript",packageManager:"Deno"},priority:30,intelligence:"high"},"bun.lockb":{frameworks:["Bun"],slots:{runtime:"Bun",packageManager:"Bun",mainLanguage:"TypeScript/JavaScript"},priority:30,intelligence:"high"},"codecov.yml":{frameworks:["Codecov"],slots:{cicd:"Codecov"},priority:25,intelligence:"high"},"dependabot.yml":{frameworks:["Dependabot","GitHub"],slots:{cicd:"Dependabot"},priority:25,intelligence:"high"},"renovate.json":{frameworks:["Renovate"],slots:{cicd:"Renovate"},priority:25,intelligence:"high"},Makefile:{frameworks:["Make","GNU Make"],slots:{buildTool:"Make"},priority:30,intelligence:"high"},"CMakeLists.txt":{frameworks:["CMake","C","C++"],slots:{buildTool:"CMake",mainLanguage:"C/C++"},priority:30,intelligence:"high"},"meson.build":{frameworks:["Meson","C","C++"],slots:{buildTool:"Meson",mainLanguage:"C/C++"},priority:30,intelligence:"high"},"*.c":{frameworks:["C"],slots:{mainLanguage:"C"},priority:30,intelligence:"high"},"*.cpp":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:30,intelligence:"high"},"*.cc":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:30,intelligence:"high"},"*.cxx":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:25,intelligence:"high"},"*.h":{frameworks:["C","C++"],slots:{mainLanguage:"C/C++"},priority:25,intelligence:"high"},"*.hpp":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:25,intelligence:"high"},"*.hxx":{frameworks:["C++"],slots:{mainLanguage:"C++"},priority:20,intelligence:"medium"},".env":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.example":{frameworks:[],slots:{},priority:25,intelligence:"high"},".env.local":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.development":{frameworks:[],slots:{},priority:20,intelligence:"medium"},".env.production":{frameworks:[],slots:{},priority:20,intelligence:"medium"},"skaffold.yaml":{frameworks:["Skaffold","Kubernetes"],slots:{hosting:"Kubernetes",cicd:"Skaffold"},priority:30,intelligence:"high"},"Chart.yaml":{frameworks:["Helm","Kubernetes"],slots:{hosting:"Kubernetes",backend:"Helm"},priority:30,intelligence:"high"},"values.yaml":{frameworks:["Helm","Kubernetes"],slots:{hosting:"Kubernetes"},priority:25,intelligence:"high",confirmWith:["Chart.yaml"]},"pulumi.yaml":{frameworks:["Pulumi"],slots:{hosting:"Cloud",cicd:"Pulumi"},priority:30,intelligence:"high"},"Pulumi.yaml":{frameworks:["Pulumi"],slots:{hosting:"Cloud",cicd:"Pulumi"},priority:30,intelligence:"high"},"terragrunt.hcl":{frameworks:["Terragrunt","Terraform"],slots:{hosting:"Cloud",cicd:"Terragrunt"},priority:30,intelligence:"high"},"ansible.yml":{frameworks:["Ansible"],slots:{cicd:"Ansible"},priority:30,intelligence:"high"},"playbook.yml":{frameworks:["Ansible"],slots:{cicd:"Ansible"},priority:25,intelligence:"high"},"*.cs":{frameworks:["C#",".NET","Unity"],slots:{mainLanguage:"C#"},priority:30,intelligence:"high"},"*.m":{frameworks:["Objective-C","iOS"],slots:{mainLanguage:"Objective-C"},priority:25,intelligence:"high"},".nvmrc":{frameworks:["Node.js","nvm"],slots:{runtime:"Node.js"},priority:25,intelligence:"high"},".tool-versions":{frameworks:["asdf"],slots:{},priority:25,intelligence:"high"},".ruby-version":{frameworks:["Ruby","rbenv"],slots:{mainLanguage:"Ruby",runtime:"Ruby"},priority:25,intelligence:"high"},".python-version":{frameworks:["Python","pyenv"],slots:{mainLanguage:"Python",runtime:"Python"},priority:25,intelligence:"high"},".dockerignore":{frameworks:["Docker"],slots:{},priority:20,intelligence:"medium"},".gitattributes":{frameworks:["Git"],slots:{},priority:15,intelligence:"low"},".npmrc":{frameworks:["npm","Node.js"],slots:{packageManager:"npm"},priority:20,intelligence:"medium"},"sonar-project.properties":{frameworks:["SonarQube","SonarCloud"],slots:{cicd:"SonarQube"},priority:25,intelligence:"high"},"*.fs":{frameworks:["F#",".NET"],slots:{mainLanguage:"F#"},priority:25,intelligence:"high"},"*.mm":{frameworks:["Objective-C++","iOS","macOS"],slots:{mainLanguage:"Objective-C++"},priority:25,intelligence:"high"},"build.zig.zon":{frameworks:["Zig"],slots:{mainLanguage:"Zig",packageManager:"Zig Package Manager",buildTool:"zig build"},priority:35,intelligence:"ultra-high"},"gleam.toml":{frameworks:["Gleam","BEAM","Erlang"],slots:{mainLanguage:"Gleam",runtime:"BEAM",packageManager:"Gleam"},priority:30,intelligence:"high"},"bunfig.toml":{frameworks:["Bun"],slots:{runtime:"Bun",packageManager:"Bun",buildTool:"Bun"},priority:30,intelligence:"high"},"mise.toml":{frameworks:["mise"],slots:{},priority:25,intelligence:"high"},".mise.toml":{frameworks:["mise"],slots:{},priority:25,intelligence:"high"},"manifest.toml":{frameworks:["Flox","Nix"],slots:{},priority:25,intelligence:"high",confirmWith:[".flox"]},justfile:{frameworks:["Just"],slots:{buildTool:"Just"},priority:25,intelligence:"high"},".pre-commit-config.yaml":{frameworks:["pre-commit"],slots:{cicd:"pre-commit"},priority:25,intelligence:"high"},"CLAUDE.md":{frameworks:["Claude Code"],slots:{},priority:30,intelligence:"high",confirmWith:[".claude"]}};import{existsSync as yZ,readFileSync as mq,readdirSync as lq}from"fs";import{join as R8}from"path";var a0={version:2,_doc:"SINGLE SOURCE of Dart/Flutter detection KNOWLEDGE (A+B hybrid, the Truth-is-faf-cli spec). faf-cli imports this directly; faf-python-sdk vendors a synced copy (phase 2); MCPs compose it. Bolster Dart/Flutter by editing THIS file. Logic stays in dart.ts. Refreshed 2026-08-01 (knowledge v2) — community receipt on top of 6.13.0 Dart Edition.",flutterDeps:["flutter"],mcpDeps:["dart_mcp","mcp_server","mcp_dart","dart_mcp_server","mcp","dart_mcpserver"],serverFrameworks:[["serverpod","Serverpod"],["dart_frog","Dart Frog"],["conduit","Conduit"],["angel3_framework","Angel3"],["alfred","Alfred"],["shelf","Shelf"],["jaspr","Jaspr"],["relic","Relic"]],stateManagement:[["flutter_riverpod","Riverpod"],["hooks_riverpod","Riverpod"],["riverpod_annotation","Riverpod"],["riverpod","Riverpod"],["flutter_bloc","Bloc"],["bloc","Bloc"],["provider","Provider"],["get","GetX"],["flutter_mobx","MobX"],["mobx","MobX"],["signals","Signals"],["flutter_hooks","Hooks"]],routing:[["go_router","go_router"],["auto_route","auto_route"],["beamer","Beamer"],["routemaster","Routemaster"]]};var pq=a0.flutterDeps,dq=a0.mcpDeps,cq=a0.serverFrameworks,iq=a0.stateManagement,rq=a0.routing;function aq($){let Z=new Set,Q=!1;for(let X of $.split(`
215
+ `)){if(/^(dependencies|dev_dependencies|dependency_overrides):\s*$/.test(X)){Q=!0;continue}if(/^\S/.test(X))Q=!1;if(Q){let z=X.match(/^\s{2}([a-zA-Z0-9_]+):/);if(z)Z.add(z[1].toLowerCase())}}return Z}function y2($){let Z=R8($,"pubspec.yaml");if(!yZ(Z))return null;let Q;try{Q=mq(Z,"utf-8")}catch{return null}let X=aq(Q),z=(N)=>X.has(N.toLowerCase()),J=pq.some(z)||/^flutter:\s*$/m.test(Q)||/\bsdk:\s*flutter\b/.test(Q),H=dq.find(z),U=cq.find(([N])=>z(N)),q=iq.find(([N])=>z(N)),Y=q?q[1]:"",B=rq.find(([N])=>z(N)),G=B?B[1]:"",V=z("flutter_test")?"flutter_test":z("test")?"test":"",W=/^executables:\s*$/m.test(Q),D=!1;try{D=lq(R8($,"bin")).some((N)=>N.endsWith(".dart"))}catch{}let _=W||D,O,I="",L;if(J)if(I="Flutter",yZ(R8($,"lib","main.dart"))||/^publish_to:\s*['"]?none\b/m.test(Q))O="mobile",L="pubspec.yaml (Flutter app)";else O="library",L="pubspec.yaml (Flutter package)";else if(H)O="mcp",L=`pubspec.yaml + ${H} (Dart MCP server)`;else if(U)O="backend",I=U[1],L=`pubspec.yaml + ${U[0]} (Dart backend)`;else if(_)O="cli",L=W?"pubspec.yaml executables: (Dart CLI)":"pubspec.yaml + bin/*.dart (Dart CLI)";else O="library",L="pubspec.yaml (Dart package)";return{appType:O,isFlutter:J,framework:I,stateManagement:Y,routing:G,testing:V,found:L}}import{existsSync as F8,readFileSync as vZ,readdirSync as fZ,statSync as nq}from"fs";import{join as k2}from"path";var f2={version:1,_doc:"SINGLE SOURCE of Go detection KNOWLEDGE (A+B hybrid, Truth-is-faf-cli). faf-cli imports this directly; SDKs/MCPs compose it. Bolster Go by editing THIS file. Logic stays in go.ts. Content-aware: go.mod ≠ one bucket — backend · CLI · MCP · library. 2026-08-01 initial (Dart composition pattern).",mcpModules:["github.com/mark3labs/mcp-go","github.com/modelcontextprotocol/go-sdk","github.com/metoro-io/mcp-golang","github.com/ThinkInAIXYZ/go-mcp"],serverFrameworks:[["github.com/gin-gonic/gin","Gin"],["github.com/labstack/echo","Echo"],["github.com/labstack/echo/v4","Echo"],["github.com/gofiber/fiber","Fiber"],["github.com/gofiber/fiber/v2","Fiber"],["github.com/go-chi/chi","Chi"],["github.com/go-chi/chi/v5","Chi"],["github.com/gorilla/mux","Gorilla Mux"],["github.com/gofiber/fiber/v3","Fiber"],["google.golang.org/grpc","gRPC"],["connectrpc.com/connect","Connect"],["github.com/go-kratos/kratos","Kratos"],["github.com/go-kratos/kratos/v2","Kratos"],["github.com/zeromicro/go-zero","go-zero"],["github.com/cloudwego/hertz","Hertz"]],cliFrameworks:[["github.com/spf13/cobra","Cobra"],["github.com/urfave/cli","urfave/cli"],["github.com/urfave/cli/v2","urfave/cli"],["github.com/alecthomas/kingpin","Kingpin"],["github.com/alecthomas/kong","Kong"]]};var oq=f2.mcpModules,tq=f2.serverFrameworks,eq=f2.cliFrameworks;function $Y($){let Z=new Set,Q=!1;for(let X of $.split(`
216
+ `)){let z=X.replace(/\/\/.*$/,"").trim();if(!z)continue;if(/^require\s*\(\s*$/.test(z)){Q=!0;continue}if(Q){if(z===")"){Q=!1;continue}let H=z.match(/^(\S+)/);if(H)Z.add(H[1].toLowerCase());continue}let J=z.match(/^require\s+(\S+)/);if(J&&J[1]!=="(")Z.add(J[1].toLowerCase())}return Z}function uZ($,Z){let Q=Z.toLowerCase();for(let X of $)if(X===Q||X.startsWith(`${Q}/`))return!0;return!1}function kZ($,Z){let Q;for(let X of Z){if(!uZ($,X[0]))continue;if(!Q||X[0].length>Q[0].length)Q=X}return Q}function ZY($,Z){let Q;for(let X of Z){if(!uZ($,X))continue;if(!Q||X.length>Q.length)Q=X}return Q}function QY($){let Z=$.match(/^module\s+(\S+)/m);return Z?Z[1]:""}function XY($){let Z=k2($,"cmd");if(!F8(Z))return!1;try{for(let Q of fZ(Z)){let X=k2(Z,Q);try{if(nq(X).isDirectory()){if(fZ(X).some((J)=>J.endsWith(".go")))return!0}else if(Q.endsWith(".go"))return!0}catch{}}}catch{}return!1}function zY($){let Z=k2($,"main.go");if(!F8(Z))return!1;try{let Q=vZ(Z,"utf-8");return/^package\s+main\b/m.test(Q)}catch{return!1}}function v2($){let Z=k2($,"go.mod");if(!F8(Z))return null;let Q;try{Q=vZ(Z,"utf-8")}catch{return null}let X=QY(Q),z=$Y(Q),J=ZY(z,oq),H=kZ(z,tq),U=kZ(z,eq),q=XY($),Y=zY($),B,G="",V;if(J)B="mcp",V=`go.mod + ${J} (Go MCP server)`;else if(H)B="backend",G=H[1],V=`go.mod + ${H[0]} (Go backend)`;else if(U)B="cli",G=U[1],V=`go.mod + ${U[0]} (Go CLI)`;else if(q)B="cli",V="go.mod + cmd/ (Go CLI layout)";else if(Y&&!H)B="cli",V="go.mod + main.go package main (Go CLI)";else B="library",V="go.mod (Go module)";return{appType:B,modulePath:X,framework:G,found:V}}import{existsSync as HY,readFileSync as UY,readdirSync as qY}from"fs";import{join as YY}from"path";var P0={version:1,_doc:"SINGLE SOURCE of C# /.NET detection KNOWLEDGE (Truth-is-faf-cli). faf-cli imports this; SDKs/MCPs compose it. Bolster C# by editing THIS file. Logic stays in csharp.ts. Content-aware: .csproj alone ≠ type — Sdk first, then props/packages. Kill line: .csproj alone ≠ type. 2026-08-01 initial.",mcpPackages:["ModelContextProtocol","ModelContextProtocol.AspNetCore","ModelContextProtocol.Core","ModelContextProtocol.Extensions.Tasks","ModelContextProtocol.Extensions.Apps"],cliPackages:[["System.CommandLine","System.CommandLine"],["Spectre.Console.Cli","Spectre.Console"],["Spectre.Console","Spectre.Console"],["McMaster.Extensions.CommandLineUtils","McMaster"]],testPackages:[["Microsoft.NET.Test.Sdk","VSTest"],["xunit.v3","xUnit"],["xunit","xUnit"],["NUnit","NUnit"],["MSTest.TestFramework","MSTest"],["MSTest","MSTest"]],grpcServerPackages:["Grpc.AspNetCore"],specializedSdks:[["Microsoft.NET.Sdk.Web","web","ASP.NET Core"],["Microsoft.NET.Sdk.Worker","worker","Worker"],["Microsoft.NET.Sdk.BlazorWebAssembly","blazor-wasm","Blazor WebAssembly"],["Microsoft.NET.Sdk.Razor","razor-lib","Razor Class Library"],["MSTest.Sdk","test","MSTest"],["Aspire.AppHost.Sdk","aspire","Aspire AppHost"]],baseSdk:"Microsoft.NET.Sdk"};var BY=P0.mcpPackages.map(($)=>$.toLowerCase()),GY=P0.cliPackages.map(([$,Z])=>[$.toLowerCase(),Z]),VY=P0.testPackages.map(([$,Z])=>[$.toLowerCase(),Z]),_Y=P0.grpcServerPackages.map(($)=>$.toLowerCase()),WY=P0.specializedSdks,mZ=P0.baseSdk.toLowerCase();function OY($){let Z=$.match(/<Project\b[^>]*\bSdk\s*=\s*"([^"/]+)(?:\/[^"]*)?"/i),Q=$.match(/<Sdk\b[^>]*\bName\s*=\s*"([^"]+)"/i),X=(Z?.[1]||Q?.[1]||"").trim(),z=($.match(/<OutputType>\s*([^<]+?)\s*<\/OutputType>/i)?.[1]||"").trim(),J=$.match(/<TargetFramework>\s*([^<]+?)\s*<\/TargetFramework>/i)?.[1],U=($.match(/<TargetFrameworks>\s*([^<]+?)\s*<\/TargetFrameworks>/i)?.[1]||J||"").trim(),q=/<IsTestProject>\s*true\s*<\/IsTestProject>/i.test($),Y=/<UseMaui>\s*true\s*<\/UseMaui>/i.test($),B=/<UseWPF>\s*true\s*<\/UseWPF>/i.test($),G=/<UseWindowsForms>\s*true\s*<\/UseWindowsForms>/i.test($),V=new Set;for(let D of $.matchAll(/<PackageReference\b[^>]*\bInclude\s*=\s*"([^"]+)"/gi))V.add(D[1].toLowerCase());for(let D of $.matchAll(/<PackageReference\s+Include\s*=\s*"([^"]+)"/gi))V.add(D[1].toLowerCase());let W=new Set;for(let D of $.matchAll(/<FrameworkReference\b[^>]*\bInclude\s*=\s*"([^"]+)"/gi))W.add(D[1].toLowerCase());return{sdk:X,outputType:z,targetFramework:U,isTestProject:q,useMaui:Y,useWpf:B,useWindowsForms:G,packages:V,frameworkRefs:W}}function N8($,Z){let Q=Z.toLowerCase();if($.has(Q))return!0;for(let X of $)if(X===Q||X.startsWith(`${Q}.`))return!0;return!1}function lZ($,Z){let Q;for(let[X,z]of Z){if(!N8($,X))continue;if(!Q||X.length>Q[0].length)Q=[X,z]}return Q}function DY($){let Z;for(let Q of BY){if(!N8($,Q))continue;if(!Z||Q.length>Z.length)Z=Q}for(let Q of $)if(Q==="modelcontextprotocol"||Q.startsWith("modelcontextprotocol.")){if(!Z||Q.length>Z.length)Z=Q}return Z}function IY($){let Z=$.toLowerCase();if(!Z)return;let Q;for(let X of WY){let z=X[0].toLowerCase();if(Z===z||Z.startsWith(`${z}/`)){if(!Q||z.length>Q[0].length)Q=X}}return Q}function u2($){let Z=$.toLowerCase();return Z==="exe"||Z==="winexe"}function KY($,Z){if($==="mcp")return 0;if($==="mobile")return 1;if($==="backend")return 2;if($==="cli")return 3;if(Z&&Z!=="")return 4;return 5}function LY($,Z){let Q=Z.replace(/\.csproj$/i,""),{sdk:X,packages:z,frameworkRefs:J,outputType:H}=$,U,q="",Y,B=DY(z),G=IY(X),V=lZ(z,VY),W=lZ(z,GY),D=_Y.some((O)=>N8(z,O)),_=J.has("microsoft.aspnetcore.app");if(B)U="mcp",q="MCP",Y=`${Z} + ${B} (C# MCP server)`;else if($.isTestProject||G?.[1]==="test"||V)U="library",q=V?.[1]||(G?.[1]==="test"?G[2]:"Test"),Y=`${Z} + test (${q})`;else if($.useMaui)U="mobile",q="MAUI",Y=`${Z} + UseMaui (MAUI)`;else if($.useWpf||$.useWindowsForms)U="backend",q=$.useWpf&&$.useWindowsForms?"WPF+WinForms":$.useWpf?"WPF":"Windows Forms",Y=`${Z} + ${q}`;else if(G?.[1]==="web")U="backend",q=D?"gRPC":G[2],Y=`${Z} + Sdk=${G[0]}${D?" + Grpc.AspNetCore":""} (ASP.NET Core)`;else if(G?.[1]==="worker")U="backend",q=G[2],Y=`${Z} + Sdk=${G[0]} (Worker)`;else if(G?.[1]==="blazor-wasm")U="backend",q=G[2],Y=`${Z} + Sdk=${G[0]} (Blazor WASM)`;else if(G?.[1]==="aspire")U="backend",q=G[2],Y=`${Z} + Sdk=${G[0]} (Aspire)`;else if(G?.[1]==="razor-lib")U="library",q=G[2],Y=`${Z} + Sdk=${G[0]} (Razor class library)`;else if(_&&u2(H))U="backend",q="ASP.NET Core",Y=`${Z} + FrameworkReference Microsoft.AspNetCore.App (host)`;else if(_&&!u2(H))U="library",q="ASP.NET Core",Y=`${Z} + FrameworkReference Microsoft.AspNetCore.App (web library)`;else if(W&&(u2(H)||!H))U="cli",q=W[1],Y=`${Z} + ${W[0]} (C# CLI)`;else if(u2(H))U="cli",Y=`${Z} + OutputType=Exe (C# console)`;else{U="library";let O=X?` Sdk=${X}`:"";if(Y=`${Z}${O} (C# class library)`.replace(" Sdk=Microsoft.NET.Sdk",""),!X||X.toLowerCase()===mZ||X.toLowerCase().startsWith(`${mZ}/`))Y=`${Z} (C# class library)`}return{appType:U,projectName:Q,targetFramework:$.targetFramework,sdk:X||"Microsoft.NET.Sdk",framework:q,found:Y}}function T1($){if(!HY($))return[];try{return qY($).filter((Z)=>Z.toLowerCase().endsWith(".csproj")).sort()}catch{return[]}}function m2($){let Z=T1($);if(Z.length===0)return null;let Q=null,X=999;for(let z of Z){let J=YY($,z),H;try{H=UY(J,"utf-8")}catch{continue}let U=OY(H),q=LY(U,z),Y=KY(q.appType,q.framework);if(!Q||Y<X)Q=q,X=Y}return Q}import{existsSync as T0,readFileSync as RY,readdirSync as FY,statSync as NY}from"fs";import{join as d}from"path";var a={version:1,_doc:"SINGLE SOURCE of JVM (Java/Kotlin) detection KNOWLEDGE (Truth-is-faf-cli). faf-cli imports this; SDKs/MCPs compose it. Bolster JVM by editing THIS file. Logic stays in jvm.ts. Kill line: pom / gradle alone ≠ type. Content-aware: plugins · parents · packaging · deps · version catalogs. One brand JVM — Android/KMP are facets, not a second Kotlin Edition. 2026-08-03 initial (post-intel).",mcpArtifacts:["io.modelcontextprotocol.sdk:mcp","io.modelcontextprotocol.sdk:mcp-core","io.modelcontextprotocol.sdk:mcp-spring-webflux","io.modelcontextprotocol.sdk:mcp-spring-webmvc","org.springframework.ai:spring-ai-starter-mcp-server","org.springframework.ai:spring-ai-starter-mcp-server-webmvc","org.springframework.ai:spring-ai-starter-mcp-server-webflux","org.springframework.ai:spring-ai-starter-mcp-client","org.springframework.ai:spring-ai-mcp-server-spring-boot-starter","org.springframework.ai:spring-ai-mcp-client-spring-boot-starter","io.modelcontextprotocol:kotlin-sdk","io.modelcontextprotocol.kotlin:mcp"],webPlugins:[["org.springframework.boot","Spring Boot"],["io.quarkus","Quarkus"],["io.quarkus.gradle.plugin","Quarkus"],["io.micronaut.application","Micronaut"],["io.micronaut.library","Micronaut"]],webParents:[["org.springframework.boot:spring-boot-starter-parent","Spring Boot"],["io.quarkus.platform:quarkus-bom","Quarkus"],["io.micronaut.platform:micronaut-parent","Micronaut"]],webArtifacts:[["org.springframework.boot:spring-boot-starter-web","Spring Boot"],["org.springframework.boot:spring-boot-starter-webflux","Spring Boot"],["org.springframework.boot:spring-boot-starter","Spring Boot"],["io.quarkus:quarkus-core","Quarkus"],["io.micronaut:micronaut-http-server-netty","Micronaut"],["io.ktor:ktor-server-core","Ktor"],["io.ktor:ktor-server-netty","Ktor"],["io.ktor:ktor-server-cio","Ktor"]],androidPlugins:["com.android.application","com.android.library","com.android.kotlin.multiplatform.library"],kmpPlugins:["org.jetbrains.kotlin.multiplatform","kotlin-multiplatform"],jvmKotlinPlugins:["org.jetbrains.kotlin.jvm","kotlin-jvm","org.jetbrains.kotlin.android","kotlin-android"],cliPlugins:[["org.gradle.application","application"],["application","application"]],cliArtifacts:[["info.picocli:picocli","Picocli"],["com.github.ajalt.clikt:clikt","Clikt"],["com.github.ajalt.clikt:clikt-jvm","Clikt"]],libraryPlugins:["java-library","org.gradle.java-library"]};var AY=a.mcpArtifacts.map(($)=>$.toLowerCase()),PY=a.webPlugins.map(([$,Z])=>[$.toLowerCase(),Z]),TY=a.webParents.map(([$,Z])=>[$.toLowerCase(),Z]),CY=a.webArtifacts.map(([$,Z])=>[$.toLowerCase(),Z]),DW=a.androidPlugins.map(($)=>$.toLowerCase()),wY=a.kmpPlugins.map(($)=>$.toLowerCase()),bY=a.jvmKotlinPlugins.map(($)=>$.toLowerCase()),EY=a.cliPlugins.map(([$,Z])=>[$.toLowerCase(),Z]),SY=a.cliArtifacts.map(([$,Z])=>[$.toLowerCase(),Z]),jY=a.libraryPlugins.map(($)=>$.toLowerCase()),gY=["pom.xml","build.gradle","build.gradle.kts","settings.gradle","settings.gradle.kts"];function A8($){return gY.some((Z)=>T0(d($,Z)))}function w1($){try{return RY($,"utf-8")}catch{return null}}function xY($){let Z=new Map,Q=new Map,X="";for(let z of $.split(`
217
+ `)){let J=z.replace(/#.*$/,"").trim();if(!J)continue;let H=J.match(/^\[([^\]]+)\]$/);if(H){X=H[1].trim().toLowerCase();continue}let U=J.match(/^([A-Za-z0-9_.-]+)\s*=\s*\{[^}]*\bid\s*=\s*"([^"]+)"/);if(U&&(X==="plugins"||X.endsWith(".plugins"))){Z.set(U[1].replace(/-/g,".").toLowerCase(),U[2].toLowerCase()),Z.set(U[1].toLowerCase(),U[2].toLowerCase());continue}let q=J.match(/^([A-Za-z0-9_.-]+)\s*=\s*\{[^}]*\bmodule\s*=\s*"([^"]+)"/);if(q&&(X==="libraries"||X.endsWith(".libraries"))){let G=q[1].toLowerCase();Q.set(G,q[2].toLowerCase()),Q.set(G.replace(/-/g,"."),q[2].toLowerCase());continue}let Y=J.match(/^([A-Za-z0-9_.-]+)\s*=\s*\{[^}]*\bgroup\s*=\s*"([^"]+)"[^}]*\bname\s*=\s*"([^"]+)"/);if(Y&&(X==="libraries"||X.endsWith(".libraries"))){let G=`${Y[2]}:${Y[3]}`.toLowerCase(),V=Y[1].toLowerCase();Q.set(V,G),Q.set(V.replace(/-/g,"."),G);continue}let B=J.match(/^([A-Za-z0-9_.-]+)\s*=\s*"([^"]+)"/);if(B){let G=B[1].toLowerCase(),V=B[2];if(X==="plugins"||X.endsWith(".plugins")){let W=V.split(":")[0].toLowerCase();Z.set(G,W),Z.set(G.replace(/-/g,"."),W)}else if(X==="libraries"||X.endsWith(".libraries")){let W=V.split(":");if(W.length>=2){let D=`${W[0]}:${W[1]}`.toLowerCase();Q.set(G,D),Q.set(G.replace(/-/g,"."),D)}}}}return{plugins:Z,libraries:Q}}function hY($){let Z=d($,"gradle","libs.versions.toml");if(!T0(Z))return{plugins:new Map,libraries:new Map};let Q=w1(Z);if(!Q)return{plugins:new Map,libraries:new Map};return xY(Q)}function yY($){let Z=[];for(let Q of $.matchAll(/include\s*\(\s*([^)]+)\)/g))for(let X of Q[1].split(",")){let z=X.replace(/['":\s]/g,"").replace(/^:/,"");if(z)Z.push(z.replace(/:/g,"/"))}for(let Q of $.matchAll(/include\s+((?:['"][^'"]+['"]\s*,?\s*)+)/g))for(let X of Q[1].split(",")){let z=X.replace(/['":\s]/g,"").replace(/^:/,"");if(z)Z.push(z.replace(/:/g,"/"))}for(let Q of $.matchAll(/project\s*\(\s*["']:([^"']+)["']\s*\)\s*\.projectDir\s*=\s*file\s*\(\s*["']([^"']+)["']\s*\)/g))Z.push(Q[2].replace(/^\.\//,""));return[...new Set(Z)]}function fY($,Z){let Q=new Set;for(let X of $.matchAll(/\bid\s*\(\s*["']([^"']+)["']\s*\)/g))Q.add(X[1].toLowerCase());for(let X of $.matchAll(/\bid\s+['"]([^'"]+)['"]/g))Q.add(X[1].toLowerCase());for(let X of $.matchAll(/plugins\s*\{([\s\S]*?)\}/g))for(let z of X[1].split(/[\n;]/)){let J=z.replace(/\/\/.*$/,"").trim();if(!J||J.startsWith("id")||J.startsWith("kotlin")||J.startsWith("alias"))continue;let H=J.match(/^`([a-zA-Z0-9.-]+)`$/)||J.match(/^([a-zA-Z][a-zA-Z0-9.-]*)$/);if(H)Q.add(H[1].toLowerCase())}for(let X of $.matchAll(/\bkotlin\s*\(\s*["']([^"']+)["']\s*\)/g)){let z=X[1].toLowerCase();if(z==="jvm")Q.add("org.jetbrains.kotlin.jvm");else if(z==="multiplatform")Q.add("org.jetbrains.kotlin.multiplatform");else if(z==="android")Q.add("org.jetbrains.kotlin.android");else Q.add(`org.jetbrains.kotlin.${z}`)}for(let X of $.matchAll(/libs\.plugins\.([A-Za-z0-9_.]+)/g)){let z=X[1].toLowerCase(),J=Z.plugins.get(z)||Z.plugins.get(z.replace(/\./g,"-"))||Z.plugins.get(z.replace(/-/g,"."));if(J)Q.add(J);else if(z.includes("spring")&&z.includes("boot"))Q.add("org.springframework.boot")}for(let X of $.matchAll(/apply\s+plugin\s*:\s*['"]([^'"]+)['"]/g))Q.add(X[1].toLowerCase());return Q}function kY($,Z){let Q=new Set;for(let X of $.matchAll(/["']([A-Za-z0-9_.-]+:[A-Za-z0-9_.-]+)(?::[^"']+)?["']/g))Q.add(X[1].toLowerCase());for(let X of $.matchAll(/libs\.([A-Za-z0-9_.]+)/g)){let z=X[1].toLowerCase();if(z.startsWith("plugins."))continue;let J=[z,z.replace(/\./g,"-"),z.replace(/-/g,".")];for(let H of J){let U=Z.libraries.get(H);if(U){Q.add(U.includes(":")?U.split(":").slice(0,2).join(":"):U);break}}}return Q}function cZ($){let Z=($.match(/<packaging>\s*([^<]+?)\s*<\/packaging>/i)?.[1]||"jar").trim().toLowerCase(),Q=new Set,X=$.match(/<parent>([\s\S]*?)<\/parent>/i);if(X){let H=X[1].match(/<groupId>\s*([^<]+?)\s*<\/groupId>/i)?.[1]?.trim(),U=X[1].match(/<artifactId>\s*([^<]+?)\s*<\/artifactId>/i)?.[1]?.trim();if(H&&U)Q.add(`${H}:${U}`.toLowerCase())}let z=new Set;for(let H of $.matchAll(/<dependency>([\s\S]*?)<\/dependency>/gi)){let U=H[1].match(/<groupId>\s*([^<]+?)\s*<\/groupId>/i)?.[1]?.trim(),q=H[1].match(/<artifactId>\s*([^<]+?)\s*<\/artifactId>/i)?.[1]?.trim();if(U&&q)z.add(`${U}:${q}`.toLowerCase())}let J=[];for(let H of $.matchAll(/<module>\s*([^<]+?)\s*<\/module>/gi))J.push(H[1].trim());return{packaging:Z,parents:Q,artifacts:z,modules:J}}function z0($,Z){let Q=Z.toLowerCase();if($.has(Q))return!0;for(let X of $)if(X===Q||X.endsWith(`.${Q}`)||X===Q.replace(/^org\.gradle\./,""))return!0;return!1}function C1($,Z,Q){let X;for(let[z,J]of Z){let H=!1;if(Q==="plugin")H=z0($,z);else if(H=$.has(z)||[...$].some((U)=>U===z||U.startsWith(`${z}:`)||U.startsWith(`${z}.`)),!H&&Q==="artifact")H=[...$].some((U)=>U===z||U.startsWith(`${z}`));if(!H)continue;if(!X||z.length>X[0].length)X=[z,J]}return X}function vY($){let Z;for(let Q of AY)for(let X of $){if(X===Q||X.startsWith(`${Q}:`)||X.startsWith(Q.replace(/:mcp$/,":"))){if(!Z||Q.length>Z.length)Z=Q}if(X.startsWith("io.modelcontextprotocol")||X.includes("spring-ai-starter-mcp")||X.includes("spring-ai-mcp")){if(!Z||X.length>Z.length)Z=X}}return Z}function iZ($){let Z=new Set,Q=!1,X=!1,z=[d($,"src"),d($,"src","main")],J=(H,U)=>{if(U>4||!T0(H))return;let q;try{q=FY(H)}catch{return}for(let Y of q){if(Y==="androidMain"||Y==="commonMain"||Y==="jvmMain"||Y==="iosMain")Z.add(Y);let B=d(H,Y);try{if(NY(B).isDirectory())J(B,U+1);else if(Y.endsWith(".kt")||Y.endsWith(".kts"))Q=!0;else if(Y.endsWith(".java"))X=!0}catch{}}};for(let H of z)J(H,0);return{kotlin:Q,java:X,hints:Z}}function uY($){let Z=[],Q=$.plugins,X=$.artifacts,z=wY.some((A)=>z0(Q,A))||$.sourceHints.has("commonMain"),J=z0(Q,"com.android.application"),H=z0(Q,"com.android.library")||z0(Q,"com.android.kotlin.multiplatform.library");if(J||H)Z.push("android");if(z)Z.push("multiplatform");let U=vY(X),q=C1(Q,PY,"plugin"),Y=C1($.parents,TY,"parent"),B=C1(X,CY,"artifact"),G=C1(Q,EY,"plugin"),V=C1(X,SY,"artifact"),W=jY.some((A)=>z0(Q,A)),D=$.packaging==="pom",_,O="",I;if(J)_="mobile",O=z?"Android+KMP":"Android",I=`${$.path||"root"} + com.android.application (${O})`;else if(U)_="mcp",O="MCP",Z.push("mcp"),I=`${$.path||"root"} + ${U} (JVM MCP server)`;else if(q||Y||B){_="backend",O=q?.[1]||Y?.[1]||B?.[1]||"JVM";let A=q?.[0]||Y?.[0]||B?.[0]||"web";I=`${$.path||"root"} + ${A} (JVM backend)`}else if(z&&!H)_="library",O="Kotlin Multiplatform",I=`${$.path||"root"} + kotlin multiplatform (KMP library)`;else if(H)_="library",O=z?"Android+KMP":"Android",I=`${$.path||"root"} + android library (${O})`;else if(V||$.hasApplicationPlugin&&($.hasMainClass||G)||G&&$.hasMainClass)_="cli",O=V?.[1]||"application",I=V?`${$.path||"root"} + ${V[0]} (JVM CLI)`:`${$.path||"root"} + application plugin (JVM CLI)`;else if($.hasApplicationPlugin&&!W)_="cli",O="application",I=`${$.path||"root"} + application plugin (JVM CLI)`;else if(D)_="library",I=`${$.path||"root"} + packaging=pom (Maven aggregator/BOM)`;else{_="library";let A=$.kotlinSources&&!$.javaSources?"Kotlin":"JVM";if(I=`${$.path||"root"} (${A} library)`,W)I=`${$.path||"root"} + java-library (JVM library)`}let L="Java";if($.kotlinSources&&$.javaSources)L="Java/Kotlin";else if($.kotlinSources||bY.some((A)=>z0(Q,A))||z)L="Kotlin";let N=[...new Set(Z)];return{appType:_,framework:O,facets:N,found:I,buildTool:$.buildTool,mainLanguage:L}}function mY($,Z){if($==="mcp")return 0;if($==="mobile")return 1;if(Z.includes("multiplatform")&&$==="backend")return 2;if($==="backend")return 3;if($==="cli")return 4;if(Z.includes("multiplatform"))return 5;if(Z.includes("android"))return 6;return 7}function pZ($,Z,Q){let X=Z?d($,Z):$,z=d(X,"build.gradle.kts"),J=d(X,"build.gradle"),H=T0(z)?z:T0(J)?J:null;if(!H)return null;let U=w1(H);if(!U)return null;let q=fY(U,Q),Y=kY(U,Q),B=iZ(X),G=/mainClass\s*[.=]/.test(U)||/mainClassName\s*=/.test(U)||/Main-Class/.test(U),V=z0(q,"application")||z0(q,"org.gradle.application");return{path:Z||"build.gradle",plugins:q,artifacts:Y,packaging:"jar",parents:new Set,hasMainClass:G,hasApplicationPlugin:V,sourceHints:B.hints,kotlinSources:B.kotlin||H.endsWith(".kts"),javaSources:B.java,buildTool:"gradle"}}function dZ($,Z){let Q=Z?d($,Z):$,X=d(Q,"pom.xml");if(!T0(X))return null;let z=w1(X);if(!z)return null;let{packaging:J,parents:H,artifacts:U}=cZ(z),q=iZ(Q);return{path:Z?`${Z}/pom.xml`:"pom.xml",plugins:new Set,artifacts:U,packaging:J,parents:H,hasMainClass:/<mainClass>/.test(z),hasApplicationPlugin:!1,sourceHints:q.hints,kotlinSources:q.kotlin,javaSources:q.java,buildTool:"maven"}}function b1($){if(!A8($))return null;let Z=hY($),Q=[],X=null;for(let Y of["settings.gradle.kts","settings.gradle"]){let B=d($,Y);if(T0(B)){X=w1(B);break}}let z=X?yY(X):[],J=pZ($,"",Z);if(J)Q.push(J);for(let Y of z){let B=pZ($,Y,Z);if(B)Q.push(B)}let H=dZ($,"");if(H){Q.push(H);let Y=w1(d($,"pom.xml"));if(Y){let{modules:B}=cZ(Y);for(let G of B){let V=dZ($,G);if(V)Q.push(V)}}}if(Q.length===0&&X)return{appType:"library",framework:"",buildTool:"gradle",mainLanguage:"Java/Kotlin",facets:[],found:"settings.gradle (Gradle multi-project root)"};if(Q.length===0)return null;let U=null,q=999;for(let Y of Q){let B=uY(Y),G=mY(B.appType,B.facets);if(!U||G<q)U={appType:B.appType,framework:B.framework,buildTool:B.buildTool,mainLanguage:B.mainLanguage,facets:B.facets,found:B.found},q=G}if(U&&z.length>0&&!U.found.includes("multi-project"));return U}import{existsSync as j1,readFileSync as pY,readdirSync as l2,statSync as dY}from"fs";import{join as s}from"path";var E1={version:1,_doc:"SINGLE SOURCE of Ruby detection KNOWLEDGE (Truth-is-faf-cli). faf-cli imports this; SDKs/MCPs compose it. Kill line: Gemfile alone ≠ Rails. Content-aware: gem names + light layout. 2026-08-03 initial (post-intel ruby-edition).",mcpGems:["mcp","fast-mcp","fast_mcp","rails-mcp-server","rails_mcp_server","ruby-mcp-client","ruby_mcp_client","ruby_llm-mcp","ruby_llm_mcp"],webGems:[["rails","Rails"],["railties","Rails"],["sinatra","Sinatra"],["sinatra-contrib","Sinatra"],["roda","Roda"],["grape","Grape"],["hanami","Hanami"],["hanami-controller","Hanami"],["rack","Rack"]],cliGems:[["thor","Thor"],["gli","GLI"],["commander","Commander"],["slop","Slop"]],railsLayoutFiles:["config/application.rb","config/routes.rb","bin/rails","config/environment.rb"]};var cY=E1.mcpGems.map(($)=>$.toLowerCase()),iY=E1.webGems.map(([$,Z])=>[$.toLowerCase(),Z]),rZ=E1.cliGems.map(([$,Z])=>[$.toLowerCase(),Z]),rY=E1.railsLayoutFiles;function aY($){return j1(s($,"Gemfile"))||j1(s($,"gems.rb"))||sY($)}function sY($){try{return l2($).some((Z)=>Z.endsWith(".gemspec"))}catch{return!1}}function S1($){try{return pY($,"utf-8")}catch{return null}}function nY($){let Z=new Set;for(let Q of $.split(`
218
+ `)){let X=Q.replace(/#.*$/,"").trim();if(!X)continue;let z=X.match(/^\s*gem\s+['"]([^'"]+)['"]/i)||X.match(/^\s*gem\s+:([A-Za-z0-9_.-]+)/i);if(z)Z.add(z[1].toLowerCase())}return Z}function oY($){let Z=new Set,Q=!1;for(let X of $.split(`
219
+ `)){let z=X.replace(/\r$/,"");if(/^\s*specs:\s*$/.test(z)){Q=!0;continue}if(Q){if(/^[A-Z]/.test(z)||z.startsWith("PLATFORMS")||z.startsWith("DEPENDENCIES")||z.startsWith("BUNDLED")||z.startsWith("RUBY VERSION")||z.startsWith("CHECKSUMS")){Q=!1;continue}let J=z.match(/^\s{2,}([a-zA-Z0-9_.-]+)\s*\(/);if(J)Z.add(J[1].toLowerCase())}}return Z}function tY($){let Z=new Set;for(let Q of $.split(`
220
+ `)){let z=Q.replace(/#.*$/,"").match(/add_(?:runtime_|development_)?dependency\s*\(?\s*['"]([^'"]+)['"]/i);if(z)Z.add(z[1].toLowerCase())}return Z}function eY($){let Z=new Set,Q=[];for(let z of["Gemfile","gems.rb"]){let J=s($,z),H=S1(J);if(H){for(let U of nY(H))Z.add(U);Q.push(z)}}let X=S1(s($,"Gemfile.lock"))||S1(s($,"gems.locked"));if(X){for(let z of oY(X))Z.add(z);Q.push("Gemfile.lock")}try{for(let z of l2($)){if(!z.endsWith(".gemspec"))continue;let J=S1(s($,z));if(J){for(let H of tY(J))Z.add(H);Q.push(z)}}}catch{}return{gems:Z,sources:Q}}function g1($,Z){let Q=Z.toLowerCase();if($.has(Q))return!0;return!1}function P8($,Z){let Q;for(let[X,z]of Z){if(!g1($,X))continue;if(!Q||X.length>Q[0].length)Q=[X,z]}return Q}function $B($){let Z;for(let Q of cY)if(g1($,Q)&&(!Z||Q.length>Z.length))Z=Q;return Z}function aZ($){for(let Z of rY)if(j1(s($,Z)))return Z;return}function ZB($,Z){let Q=P8(Z,rZ);if(Q)return{hit:!0,why:Q[0]};try{for(let z of l2($)){if(!z.endsWith(".gemspec"))continue;let J=S1(s($,z));if(J&&/executables\s*=/.test(J)&&!/executables\s*=\s*\[\s*\]/.test(J))return{hit:!0,why:`${z} executables`}}}catch{}let X=s($,"bin");if(j1(X))try{let J=l2(X).filter((H)=>{if(H==="setup"||H==="console"||H==="rake")return!1;try{return dY(s(X,H)).isFile()}catch{return!1}}).filter((H)=>H!=="rails");if(J.length>0&&!g1(Z,"rails")&&!aZ($))return{hit:!0,why:`bin/${J[0]}`}}catch{}return{hit:!1,why:""}}function p2($){if(!aY($))return null;let{gems:Z,sources:Q}=eY($),X=Q[0]||"Gemfile",z=Q.some((O)=>O==="Gemfile"||O==="gems.rb"||O.includes("lock"))?"bundler":"rubygems",J=$B(Z),H=P8(Z,iY),U=aZ($),q=g1(Z,"rails")||g1(Z,"railties"),Y=ZB($,Z),B=j1(s($,"config.ru")),G=q||!!U,V=H&&H[1]!=="Rails"&&!(H[0]==="rack"&&!B)?H:void 0,W,D="",_;if(J)W="mcp",D="MCP",_=`${X} + gem ${J} (Ruby MCP)`;else if(G)if(W="backend",D="Rails",q&&U)_=`${X} + rails + ${U} (Rails)`;else if(q)_=`${X} + gem rails (Rails)`;else _=`${U} (Rails layout)`;else if(V)W="backend",D=V[1],_=`${X} + gem ${V[0]} (Ruby backend)`;else if(Y.hit)W="cli",D=P8(Z,rZ)?.[1]||"",_=`${X} + ${Y.why} (Ruby CLI)`;else W="library",_=`${X} (Ruby library)`;return{appType:W,framework:D,packageManager:z,found:_}}import{existsSync as T8,readFileSync as XB,readdirSync as zB,statSync as JB}from"fs";import{join as x1}from"path";var e={version:1,_doc:"SINGLE SOURCE of Swift detection KNOWLEDGE (Truth-is-faf-cli). Kill line: Package.swift alone ≠ app. Static parse of products + package URLs + product names + light xcodeproj productType. Never execute Package.swift / swift build. 2026-08-03 post-intel swift-edition.",mcpPackageUrls:["modelcontextprotocol/swift-sdk","github.com/modelcontextprotocol/swift-sdk"],mcpProducts:["MCP"],serverPackageUrls:[["vapor/vapor","Vapor"],["github.com/vapor/vapor","Vapor"],["hummingbird-project/hummingbird","Hummingbird"],["github.com/hummingbird-project/hummingbird","Hummingbird"]],serverProducts:[["Vapor","Vapor"],["Hummingbird","Hummingbird"]],cliPackageUrls:[["apple/swift-argument-parser","ArgumentParser"],["github.com/apple/swift-argument-parser","ArgumentParser"]],cliProducts:[["ArgumentParser","ArgumentParser"]],appProductTypes:["com.apple.product-type.application"],cliProductTypes:["com.apple.product-type.tool"],vaporLayoutFiles:["Sources/App/configure.swift","Sources/App/routes.swift","Sources/App/entrypoint.swift"]};var HB=e.mcpPackageUrls.map(($)=>$.toLowerCase()),UB=e.mcpProducts.map(($)=>$.toLowerCase()),qB=e.serverPackageUrls.map(([$,Z])=>[$.toLowerCase(),Z]),YB=e.serverProducts.map(([$,Z])=>[$.toLowerCase(),Z]),BB=e.cliPackageUrls.map(([$,Z])=>[$.toLowerCase(),Z]),GB=e.cliProducts.map(([$,Z])=>[$.toLowerCase(),Z]),VB=e.appProductTypes,_B=e.cliProductTypes,WB=e.vaporLayoutFiles;function OB($){return T8(x1($,"Package.swift"))||C8($).length>0}function C8($){try{return zB($).filter((Z)=>{if(!Z.endsWith(".xcodeproj"))return!1;try{return JB(x1($,Z)).isDirectory()}catch{return!1}})}catch{return[]}}function oZ($){try{return XB($,"utf-8")}catch{return null}}function DB($){let Z=IB($),Q=Z.toLowerCase(),X=[],z=/\.package\s*\(\s*url\s*:\s*"([^"]+)"/gi,J;while((J=z.exec(Z))!==null)X.push(J[1]);let H=/\.package\s*\(\s*url\s*:\s*'([^']+)'/gi;while((J=H.exec(Z))!==null)X.push(J[1]);let U=[],q=/\.product\s*\(\s*name\s*:\s*"([^"]+)"/gi;while((J=q.exec(Z))!==null)U.push(J[1]);let Y=/\.product\s*\(\s*name\s*:\s*'([^']+)'/gi;while((J=Y.exec(Z))!==null)U.push(J[1]);let B=/\.library\s*\(/.test(Q),G=/\.executable\s*\(/.test(Q),V=/\.plugin\s*\(/.test(Q)&&!B&&!G?!0:/\bproducts\s*:\s*\[[\s\S]*?\.plugin\s*\(/.test(Q),W=/\.executabletarget\s*\(/.test(Q),D=/\.target\s*\(/.test(Q)&&!W?!0:(Q.match(/\.target\s*\(/g)||[]).length>(Q.match(/\.executabletarget\s*\(/g)||[]).length+(Q.match(/\.testtarget\s*\(/g)||[]).length;return{packageUrls:X,productNames:U,hasLibraryProduct:B,hasExecutableProduct:G,hasPluginProduct:!!V,hasExecutableTarget:W,hasLibraryTarget:D}}function IB($){let Z="",Q=0;while(Q<$.length){if($[Q]==='"'||$[Q]==="'"){let X=$[Q];Z+=X,Q++;while(Q<$.length){if($[Q]==="\\"&&Q+1<$.length){Z+=$[Q]+$[Q+1],Q+=2;continue}if(Z+=$[Q],$[Q]===X){Q++;break}Q++}continue}if($[Q]==="/"&&$[Q+1]==="/"){Q+=2;while(Q<$.length&&$[Q]!==`
221
+ `)Q++;continue}if($[Q]==="/"&&$[Q+1]==="*"){Q+=2;while(Q<$.length&&!($[Q]==="*"&&$[Q+1]==="/"))Q++;Q+=2;continue}Z+=$[Q],Q++}return Z}function KB($,Z){let Q=$.map((z)=>z.toLowerCase()),X;for(let z of Z)for(let J of Q)if(J.includes(z)&&(!X||z.length>X.length))X=z;return X}function sZ($,Z){let Q=$.map((z)=>z.toLowerCase()),X;for(let[z,J]of Z)for(let H of Q)if(H.includes(z)&&(!X||z.length>X[0].length))X=[z,J];return X}function nZ($,Z){let Q=$.map((z)=>z.toLowerCase()),X;for(let[z,J]of Z)if(Q.includes(z)&&(!X||z.length>X[0].length))X=[z,J];return X}function LB($){let Z=$.map((Q)=>Q.toLowerCase());return UB.some((Q)=>Z.includes(Q))}function MB($){let Z=!1,Q=!1,X;for(let z of C8($)){let J=x1($,z,"project.pbxproj"),H=oZ(J);if(!H)continue;for(let U of VB)if(H.includes(U))Z=!0,X=U;for(let U of _B)if(H.includes(U)){if(Q=!0,!X)X=U}}return{hasApplication:Z,hasTool:Q,hit:X}}function RB($){for(let Z of WB)if(T8(x1($,Z)))return Z;return}function h1($){if(!OB($))return null;let Z=x1($,"Package.swift"),Q=T8(Z),X=C8($),z=X.length>0,J=null;if(Q){let C=oZ(Z);if(C)J=DB(C)}let H=z?MB($):{hasApplication:!1,hasTool:!1},U=RB($),q=J?.packageUrls??[],Y=J?.productNames??[],B=KB(q,HB),G=LB(Y),V=sZ(q,qB),W=nZ(Y,YB),D=sZ(q,BB),_=nZ(Y,GB),O=!!(B||G),I=!!(V||W||U),L=!!(J?.hasExecutableProduct||J?.hasExecutableTarget),N=!!(D||_),A=H.hasApplication,T=Q&&z?"spm+xcode":Q?"spm":"xcode",P,w="",K;if(O)if(P="mcp",w="MCP",G)K="Package.swift + product MCP (Swift MCP)";else K=`Package.swift + ${B} (Swift MCP)`;else if(I)if(P="backend",w=W?.[1]||V?.[1]||(U?"Vapor":""),W)K=`Package.swift + product ${W[1]} (Swift backend)`;else if(V)K=`Package.swift + ${V[1]} (Swift backend)`;else K=`${U} (Swift backend layout)`;else if(A)P="app",w="",K=`${X[0]} + ${H.hit||"application"} (Swift app)`;else if(N||L&&!I&&!O)if(P="cli",w=_?.[1]||D?.[1]||"",_)K=`Package.swift + product ${_[1]} (Swift CLI)`;else if(D)K=`Package.swift + ${D[1]} (Swift CLI)`;else if(J?.hasExecutableProduct)K="Package.swift + .executable product (Swift CLI)";else K="Package.swift + .executableTarget (Swift CLI)";else if(H.hasTool&&!Q)P="cli",K=`${X[0]} + tool productType (Swift CLI)`;else if(Q)if(P="library",J?.hasLibraryProduct)K="Package.swift + .library product (Swift library)";else K="Package.swift (Swift library)";else P="library",K=`${X[0]||"xcodeproj"} (Swift — no classifying productType)`;return{appType:P,framework:w,packageManager:T,found:K}}var CB=new Set(["node_modules",".git","dist","build","venv",".venv","__pycache__","target","coverage",".next",".svelte-kit","vendor"]),wB=new Set([".py",".ts",".tsx",".js",".jsx",".svelte",".vue",".rb",".go",".rs",".php",".java",".kt",".swift"]),bB={mainLanguage:["project","main_language"],main_language:["project","main_language"],framework:["stack","frontend"],cssFramework:["stack","css_framework"],css:["stack","css_framework"],uiLibrary:["stack","ui_library"],ui_library:["stack","ui_library"],stateManagement:["stack","state_management"],state:["stack","state_management"],backend:["stack","backend"],apiType:["stack","api_type"],api:["stack","api_type"],runtime:["stack","runtime"],database:["stack","database"],db:["stack","database"],connection:["stack","connection"],hosting:["stack","hosting"],buildTool:["stack","build"],build_tool:["stack","build"],build:["stack","build"],packageManager:["stack","package_manager"],pkg_manager:["stack","package_manager"],cicd:["stack","cicd"]},EB=[["packageManager","package-manager"],["pkg_manager","package-manager"],["mainLanguage","language"],["main_language","language"],["framework","framework"],["backend","backend"],["database","database"],["db","database"],["cicd","ci-cd"],["hosting","hosting"],["buildTool","build"],["build_tool","build"],["build","build"],["runtime","runtime"],["cssFramework","css"],["css","css"],["uiLibrary","ui-library"],["stateManagement","state-management"],["apiType","api"],["api","api"]];function SB($,Z){for(let[Q,X]of EB)if(Q in $)return X;return Z.length>0?"framework":"config"}function jB($){try{let Z=JSON.parse(NB($,"utf-8")),Q=["background","content_scripts","action","browser_action","permissions"].some((X)=>(X in Z));if(typeof Z.manifest_version==="number"&&Q)return"chrome";return"other"}catch{return"other"}}function gB($){let Z=[],Q=TB($),X=FB(w8($,".git")),z=new Set;for(let J=0;J<10;J++){let H;try{H=tZ(Q)}catch{break}for(let q of H){if(q.toLowerCase().endsWith(".csproj")){let B=m2(Q);if(B){let G={mainLanguage:"C#",packageManager:"NuGet",buildTool:"dotnet"};if(B.appType==="backend"&&B.framework)G.backend=B.framework;else if(B.appType==="cli"&&B.framework)G.framework=B.framework;else if(B.appType==="mcp")G.apiType="MCP";else if(B.appType==="mobile"&&B.framework)G.framework=B.framework;if(B.targetFramework)G.runtime=B.targetFramework;let V=B.framework?[B.framework,"C#",".NET"]:["C#",".NET"];Z.push({slots:G,priority:36,frameworks:V,fileName:q})}continue}if(q.endsWith(".xcodeproj")){let B=h1(Q);if(B){let G={mainLanguage:"Swift",packageManager:B.packageManager==="spm"?"spm":"Xcode",buildTool:B.packageManager.includes("spm")?"swift build":"xcodebuild"};if(B.appType==="backend"&&B.framework)G.backend=B.framework;else if(B.appType==="cli"&&B.framework)G.framework=B.framework;else if(B.appType==="mcp")G.apiType="MCP";else if(B.appType==="app")G.framework=B.framework||"Swift App";let V=B.framework?[B.framework,"Swift"]:["Swift"];Z.push({slots:G,priority:36,frameworks:V,fileName:q})}continue}let Y=M8[q];if(!Y)continue;if(q==="manifest.json"&&jB(w8(Q,q))!=="chrome")continue;if(q==="pubspec.yaml"){let B=y2(Q);if(B){let G={mainLanguage:"Dart",packageManager:"pub"};if(B.isFlutter){if(G.framework="Flutter",B.stateManagement)G.stateManagement=B.stateManagement}else if(B.appType==="backend"&&B.framework)G.backend=B.framework;else if(B.appType==="mcp")G.apiType="MCP";Z.push({slots:G,priority:Y.priority,frameworks:B.isFlutter?["Flutter","Dart"]:["Dart"],fileName:q});continue}}if(q==="go.mod"){let B=v2(Q);if(B){let G={mainLanguage:"Go",packageManager:"go modules",buildTool:"go build"};if(B.appType==="backend"&&B.framework)G.backend=B.framework;else if(B.appType==="cli"&&B.framework)G.framework=B.framework;else if(B.appType==="mcp")G.apiType="MCP";let V=B.framework?[B.framework,"Go"]:["Go"];Z.push({slots:G,priority:Y.priority,frameworks:V,fileName:q});continue}}if(q==="Gemfile"||q==="Gemfile.lock"||q==="gems.rb"){let B=p2(Q);if(B){let G={mainLanguage:"Ruby",packageManager:B.packageManager};if(B.appType==="backend"&&B.framework)G.backend=B.framework;else if(B.appType==="cli"&&B.framework)G.framework=B.framework;else if(B.appType==="mcp")G.apiType="MCP";let V=B.framework?[B.framework,"Ruby"]:["Ruby"];Z.push({slots:G,priority:Y.priority??35,frameworks:V,fileName:q});continue}}if(q==="Package.swift"){let B=h1(Q);if(B){let G={mainLanguage:"Swift",packageManager:B.packageManager==="xcode"?"Xcode":"spm",buildTool:"swift build"};if(B.appType==="backend"&&B.framework)G.backend=B.framework;else if(B.appType==="cli"&&B.framework)G.framework=B.framework;else if(B.appType==="mcp")G.apiType="MCP";else if(B.appType==="app")G.framework=B.framework||"SwiftUI/App";let V=B.framework?[B.framework,"Swift"]:["Swift"];Z.push({slots:G,priority:Y.priority??36,frameworks:V,fileName:q});continue}}if(q==="pom.xml"||q==="build.gradle"||q==="build.gradle.kts"||q==="settings.gradle"||q==="settings.gradle.kts"){if(z.has(Q))continue;z.add(Q);let B=b1(Q);if(B){let G={mainLanguage:B.mainLanguage==="Java/Kotlin"?"Kotlin":B.mainLanguage,packageManager:B.buildTool==="maven"?"maven":"gradle",buildTool:B.buildTool};if(B.appType==="backend"&&B.framework)G.backend=B.framework;else if(B.appType==="cli"&&B.framework)G.framework=B.framework;else if(B.appType==="mcp")G.apiType="MCP";else if(B.appType==="mobile")G.framework=B.framework||"Android";if(B.facets.includes("multiplatform"))G.framework=B.framework||"Kotlin Multiplatform";let V=B.framework?[B.framework,"JVM",B.mainLanguage==="Kotlin"?"Kotlin":"Java"]:["JVM",B.mainLanguage==="Kotlin"?"Kotlin":"Java"];Z.push({slots:G,priority:Y.priority??35,frameworks:V,fileName:q});continue}}Z.push({slots:Y.slots||{},priority:Y.priority,frameworks:Y.frameworks,fileName:q})}if(X&&J===0)break;let U=AB(Q);if(U===Q)break;Q=U}return Z}function xB($){let Z=[];for(let Q of $4($,2,{count:0})){let X=M8[`*${Q}`],z=X?.slots?.mainLanguage;if(z)Z.push({slots:{mainLanguage:z},priority:X.priority,frameworks:X.frameworks})}return Z}function eZ($){let Z=[...gB($),...xB($)],Q={},X={},z=new Set;for(let Y of Z){Y.frameworks.forEach((B)=>z.add(B));for(let[B,G]of Object.entries(Y.slots))if(G&&!G.includes("/")&&(!(B in Q)||Y.priority>X[B]))Q[B]=G,X[B]=Y.priority}let J=new Map;for(let Y of Z){if(!Y.fileName)continue;if(!J.has(Y.fileName))J.set(Y.fileName,{fileName:Y.fileName,category:SB(Y.slots,Y.frameworks),priority:Y.priority})}let H=[...J.values()].sort((Y,B)=>B.priority-Y.priority||Y.fileName.localeCompare(B.fileName)),U=[];if(Q.mainLanguage)U.push(Q.mainLanguage.toLowerCase());if(Q.framework)U.push(Q.framework.toLowerCase());let q=U.length>0?U.join("-"):"unknown-stack";return{slotFills:Q,frameworks:[...z],confirmedCount:Z.length,discoveredFormats:H,stackSignature:q}}function b8($){let{slotFills:Z}=eZ($),Q={};for(let[X,z]of Object.entries(Z)){let J=bB[X];if(!J||!z)continue;let[H,U]=J;if(H==="project")(Q.project??={})[U]=z;else(Q.stack??={})[U]=z}return Q}function $4($,Z,Q){let X=new Set;if(Z<0||Q.count>400)return X;let z;try{z=tZ($,{withFileTypes:!0})}catch{return X}for(let J of z){if(Q.count++>400)break;if(!J.isDirectory()){let H=PB(J.name);if(wB.has(H))X.add(H);continue}if(CB.has(J.name)||J.name.startsWith("."))continue;for(let H of $4(w8($,J.name),Z-1,Q))X.add(H)}return X}import{existsSync as Z4,readFileSync as Q4}from"fs";import{join as X4}from"path";var f=($,Z,Q)=>({value:$,source:Z,confidence:Q});function z4($){let Z=hB($),Q=yB($),X={},z=(J,H)=>{if(H)X[J]=H};return z("what",fB(Z,Q)),z("who",kB(Q)),z("why",vB(Q)),z("where",uB(Z,Q)),z("when",mB(Q)),z("how",lB(Z,Q)),X}function E8($){let Z=z4($),Q={};return Object.keys(Z).forEach((X)=>{let z=Z[X];if(z)Q[X]=z.value}),Q}function hB($){let Z=X4($,"package.json");if(!Z4(Z))return null;try{return JSON.parse(Q4(Z,"utf-8"))}catch{return null}}function yB($){let Z=X4($,"README.md");if(!Z4(Z))return"";let Q;try{Q=Q4(Z,"utf-8")}catch{return""}return Q.split(`
222
222
  `).filter((X)=>!/^\s*\[!\[/.test(X)&&!/^\s*!\[/.test(X)).join(`
223
- `).replace(/<[^>]+>/g,"").replace(/!\[[^\]]*\]\([^)]*\)/g,"").trim()}function w0($){return $.replace(/\s+/g," ").replace(/[#*`>]/g,"").trim().slice(0,280)}function r0($,Z){let Q=new RegExp(`##?\\s+(${Z})\\s*\\n+([\\s\\S]+?)(?:\\n\\n|\\n##?|$)`,"i"),X=$.match(Q);return X&&X[2]&&X[2].trim().length>20?{body:w0(X[2]),heading:X[1].trim()}:null}function y1($,Z,Q=30){for(let X of Z){let z=$.match(X);if(z&&z[1]&&z[1].trim().length>=Q)return w0(z[1])}return null}function B_($,Z){if($?.description&&$.description.length>20)return f(w0($.description),"package.json:description",0.95);let Q=r0(Z,"Purpose|What|About|Overview|Description");if(Q)return f(Q.body,`README:## ${Q.heading}`,0.8);let X=Z.split(/\n\s*\n/).map((J)=>J.trim()).find((J)=>J.length>30&&!J.startsWith("#"));if(X)return f(w0(X),"README:first-paragraph",0.5);let z=y1(Z,[/(?:core|main|primary)\s+(?:problem|challenge)(?:\s+is)?\s*:?\s*([^.\n]{30,})/i,/solves?\s+(?:the\s+)?(?:problem\s+of\s+)?([^.\n]{30,})/i]);return z?f(z,"README:problem-heuristic",0.6):null}function G_($){let Z=r0($,"Audience|Who|Who is this for|Who it.s for");if(Z)return f(Z.body,`README:## ${Z.heading}`,0.8);let Q=y1($,[/\b(?:designed|built|made)\s+for\s+((?:[a-z][a-z-]*\s+)?(?:developers?|teams?|engineers?|builders?|founders?)[^.\n]{0,80})/i,/\bfor\s+((?:[a-z][a-z-]*\s+)?(?:developers?|teams?|engineers?|builders?|founders?)[^.\n]{0,80})/i],8);return Q?f(Q,"README:audience-heuristic",0.6):null}function V_($){let Z=r0($,"Why|Mission|Motivation|Rationale|Vision");if(Z)return f(Z.body,`README:## ${Z.heading}`,0.8);let Q=y1($,[/(?:our\s+|the\s+)?(?:mission|purpose|goal)\s+is\s+([^.\n]{30,})/i,/\b(?:mission|purpose|goal)\s*:\s*([^.\n]{30,})/i,/(?:built|created|designed)\s+(?:because|to)\s+([^.\n]{30,})/i]);return Q?f(Q,"README:mission-heuristic",0.6):null}function O_($,Z){let Q=typeof $?.repository==="string"?$.repository:$?.repository?.url;if(Q)return f(w0(Q.replace(/^git\+/,"").replace(/\.git$/,"")),"package.json:repository",0.95);if($?.homepage)return f(w0($.homepage),"package.json:homepage",0.9);let X=y1(Z,[/\b(?:deployed|hosted|available|published)\s+(?:on|at|via)\s+([^.\n]{3,80})/i],3);return X?f(X,"README:deploy-heuristic",0.6):null}function W_($){let Z=r0($,"Timeline|Status|Release|Roadmap");if(Z)return f(Z.body,`README:## ${Z.heading}`,0.8);let Q=y1($,[/\b(production\s+since\s+[^.\n]{4,60})/i,/\b((?:in\s+)?(?:production|beta|alpha|development)\s+since\s+[^.\n]{4,60})/i,/\bsince\s+((?:[A-Z][a-z]+\s+)?\d{4}[^.\n]{0,40})/],4);return Q?f(Q,"README:since-heuristic",0.6):null}function D_($,Z){let Q=$?.scripts?Object.keys($.scripts):[],X=["start","dev","build"].filter((H)=>Q.includes(H));if(X.length)return f(w0(X.map((H)=>`npm run ${H}`).join(", ")),"package.json:scripts",0.9);let z=r0(Z,"Usage|Getting Started|Install|Installation|Quick Start");if(z)return f(z.body,`README:## ${z.heading}`,0.8);let J=r0(Z,"Architecture|Approach|How it works|Methodology|How");return J?f(J.body,`README:## ${J.heading}`,0.7):null}var c9="3.0";import{existsSync as F,readFileSync as e,readdirSync as a9}from"fs";import{join as R}from"path";var i9=[{name:"Next.js",slug:"nextjs",category:"frontend",signals:[{type:"dependency",key:"next"},{type:"file",pattern:"next.config.*"}]},{name:"React",slug:"react",category:"frontend",signals:[{type:"dependency",key:"react"}]},{name:"SvelteKit",slug:"sveltekit",category:"frontend",signals:[{type:"dependency",key:"@sveltejs/kit"},{type:"file",pattern:"svelte.config.*"}]},{name:"Svelte",slug:"svelte",category:"frontend",signals:[{type:"dependency",key:"svelte"},{type:"devDependency",key:"svelte"}]},{name:"Vue.js",slug:"vue",category:"frontend",signals:[{type:"dependency",key:"vue"}]},{name:"Nuxt",slug:"nuxt",category:"frontend",signals:[{type:"dependency",key:"nuxt"},{type:"file",pattern:"nuxt.config.*"}]},{name:"Angular",slug:"angular",category:"frontend",signals:[{type:"dependency",key:"@angular/core"},{type:"file",pattern:"angular.json"}]},{name:"Astro",slug:"astro",category:"frontend",signals:[{type:"dependency",key:"astro"},{type:"file",pattern:"astro.config.*"}]},{name:"Solid",slug:"solid",category:"frontend",signals:[{type:"dependency",key:"solid-js"}]},{name:"Remix",slug:"remix",category:"frontend",signals:[{type:"dependency",key:"@remix-run/react"}]},{name:"Gatsby",slug:"gatsby",category:"frontend",signals:[{type:"dependency",key:"gatsby"},{type:"file",pattern:"gatsby-config.*"}]},{name:"Qwik",slug:"qwik",category:"frontend",signals:[{type:"dependency",key:"@builder.io/qwik"}]},{name:"Vercel (SvelteKit)",slug:"adapter-vercel",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-vercel"},{type:"devDependency",key:"@sveltejs/adapter-vercel"}]},{name:"Node (SvelteKit)",slug:"adapter-node",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-node"},{type:"devDependency",key:"@sveltejs/adapter-node"}]},{name:"Static (SvelteKit)",slug:"adapter-static",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-static"},{type:"devDependency",key:"@sveltejs/adapter-static"}]},{name:"Cloudflare (SvelteKit)",slug:"adapter-cloudflare",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-cloudflare"},{type:"devDependency",key:"@sveltejs/adapter-cloudflare"}]},{name:"Netlify (SvelteKit)",slug:"adapter-netlify",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-netlify"},{type:"devDependency",key:"@sveltejs/adapter-netlify"}]},{name:"Tailwind CSS",slug:"tailwind",category:"css",signals:[{type:"dependency",key:"tailwindcss"},{type:"devDependency",key:"tailwindcss"},{type:"file",pattern:"tailwind.config.*"}]},{name:"Bootstrap",slug:"bootstrap",category:"css",signals:[{type:"dependency",key:"bootstrap"}]},{name:"Styled Components",slug:"styled-components",category:"css",signals:[{type:"dependency",key:"styled-components"}]},{name:"shadcn/ui",slug:"shadcn",category:"ui",signals:[{type:"file",pattern:"components.json"},{type:"dependency",key:"@radix-ui/react-dialog"}]},{name:"Material UI",slug:"mui",category:"ui",signals:[{type:"dependency",key:"@mui/material"}]},{name:"Chakra UI",slug:"chakra",category:"ui",signals:[{type:"dependency",key:"@chakra-ui/react"}]},{name:"Ant Design",slug:"antd",category:"ui",signals:[{type:"dependency",key:"antd"}]},{name:"Redux",slug:"redux",category:"state",signals:[{type:"dependency",key:"@reduxjs/toolkit"}]},{name:"Zustand",slug:"zustand",category:"state",signals:[{type:"dependency",key:"zustand"}]},{name:"Jotai",slug:"jotai",category:"state",signals:[{type:"dependency",key:"jotai"}]},{name:"Pinia",slug:"pinia",category:"state",signals:[{type:"dependency",key:"pinia"}]},{name:"Express",slug:"express",category:"backend",signals:[{type:"dependency",key:"express"}]},{name:"Fastify",slug:"fastify",category:"backend",signals:[{type:"dependency",key:"fastify"}]},{name:"Hono",slug:"hono",category:"backend",signals:[{type:"dependency",key:"hono"}]},{name:"Elysia",slug:"elysia",category:"backend",signals:[{type:"dependency",key:"elysia"}]},{name:"NestJS",slug:"nestjs",category:"backend",signals:[{type:"dependency",key:"@nestjs/core"}]},{name:"Koa",slug:"koa",category:"backend",signals:[{type:"dependency",key:"koa"}]},{name:"Django",slug:"django",category:"backend",signals:[{type:"file",pattern:"manage.py"},{type:"file",pattern:"settings.py"}]},{name:"Flask",slug:"flask",category:"backend",signals:[{type:"file",pattern:"app.py"}]},{name:"FastAPI",slug:"fastapi",category:"backend",signals:[{type:"file",pattern:"main.py"}]},{name:"Rails",slug:"rails",category:"backend",signals:[{type:"content",pattern:"Gemfile",key:"rails"},{type:"content",pattern:"Gemfile.lock",key:"rails ("},{type:"file",pattern:"config/application.rb"},{type:"file",pattern:"config/routes.rb"}]},{name:"Spring Boot",slug:"spring",category:"backend",signals:[{type:"content",pattern:"pom.xml",key:"spring-boot"},{type:"content",pattern:"build.gradle",key:"springframework.boot"},{type:"content",pattern:"build.gradle.kts",key:"springframework.boot"},{type:"content",pattern:"gradle/libs.versions.toml",key:"springframework.boot"}]},{name:"Vapor",slug:"vapor",category:"backend",signals:[{type:"content",pattern:"Package.swift",key:"vapor/vapor"},{type:"content",pattern:"Package.swift",key:'product(name: "Vapor"'},{type:"content",pattern:"Package.swift",key:"product(name: 'Vapor'"},{type:"file",pattern:"Sources/App/configure.swift"}]},{name:"Hummingbird",slug:"hummingbird",category:"backend",signals:[{type:"content",pattern:"Package.swift",key:"hummingbird-project/hummingbird"},{type:"content",pattern:"Package.swift",key:'product(name: "Hummingbird"'},{type:"content",pattern:"Package.swift",key:"product(name: 'Hummingbird'"}]},{name:"Prisma",slug:"prisma",category:"database",signals:[{type:"dependency",key:"prisma"},{type:"devDependency",key:"prisma"},{type:"file",pattern:"prisma/schema.prisma"}]},{name:"Drizzle",slug:"drizzle",category:"database",signals:[{type:"dependency",key:"drizzle-orm"},{type:"file",pattern:"drizzle.config.*"}]},{name:"TypeORM",slug:"typeorm",category:"database",signals:[{type:"dependency",key:"typeorm"}]},{name:"Mongoose",slug:"mongoose",category:"database",signals:[{type:"dependency",key:"mongoose"}]},{name:"Vite",slug:"vite",category:"build",signals:[{type:"dependency",key:"vite"},{type:"devDependency",key:"vite"},{type:"file",pattern:"vite.config.*"}]},{name:"webpack",slug:"webpack",category:"build",signals:[{type:"dependency",key:"webpack"},{type:"devDependency",key:"webpack"},{type:"file",pattern:"webpack.config.*"}]},{name:"esbuild",slug:"esbuild",category:"build",signals:[{type:"dependency",key:"esbuild"},{type:"devDependency",key:"esbuild"}]},{name:"Turbopack",slug:"turbopack",category:"build",signals:[{type:"file",pattern:"turbo.json"}]},{name:"Jest",slug:"jest",category:"testing",signals:[{type:"devDependency",key:"jest"},{type:"file",pattern:"jest.config.*"}]},{name:"Vitest",slug:"vitest",category:"testing",signals:[{type:"devDependency",key:"vitest"}]},{name:"Playwright",slug:"playwright",category:"testing",signals:[{type:"devDependency",key:"@playwright/test"},{type:"file",pattern:"playwright.config.*"}]},{name:"Cypress",slug:"cypress",category:"testing",signals:[{type:"devDependency",key:"cypress"},{type:"file",pattern:"cypress.config.*"}]},{name:"Turborepo",slug:"turborepo",category:"monorepo",signals:[{type:"devDependency",key:"turbo"},{type:"file",pattern:"turbo.json"}]},{name:"Nx",slug:"nx",category:"monorepo",signals:[{type:"devDependency",key:"nx"},{type:"file",pattern:"nx.json"}]},{name:"Lerna",slug:"lerna",category:"monorepo",signals:[{type:"devDependency",key:"lerna"},{type:"file",pattern:"lerna.json"}]},{name:"MCP SDK",slug:"mcp",category:"ai",signals:[{type:"dependency",key:"@modelcontextprotocol/sdk"}]},{name:"Anthropic SDK",slug:"anthropic",category:"ai",signals:[{type:"dependency",key:"@anthropic-ai/sdk"}]},{name:"OpenAI SDK",slug:"openai",category:"ai",signals:[{type:"dependency",key:"openai"}]},{name:"LangChain",slug:"langchain",category:"ai",signals:[{type:"dependency",key:"langchain"}]},{name:"Vercel",slug:"vercel",category:"hosting",signals:[{type:"file",pattern:"vercel.json"}]},{name:"Netlify",slug:"netlify",category:"hosting",signals:[{type:"file",pattern:"netlify.toml"}]},{name:"Docker",slug:"docker",category:"hosting",signals:[{type:"file",pattern:"Dockerfile"},{type:"file",pattern:"docker-compose.yml"}]},{name:"Cloudflare Workers",slug:"cloudflare",category:"hosting",signals:[{type:"file",pattern:"wrangler.toml"},{type:"dependency",key:"wrangler"}]},{name:"GitHub Actions",slug:"github-actions",category:"cicd",signals:[{type:"file",pattern:".github/workflows/*.yml"}]},{name:"Commander.js",slug:"commander",category:"cli",signals:[{type:"dependency",key:"commander"}]}];function I_($){let Z=R($,"Cargo.toml");if(!F(Z))return null;try{let X=e(Z,"utf-8").match(/^\s*\[package\][\s\S]*?^\s*name\s*=\s*"([^"]+)"/m);return X?X[1]:null}catch{return null}}function K_($){let Z=R($,"Cargo.toml");if(!F(Z))return!1;try{let Q=e(Z,"utf-8");return/^\s*\[\[bin\]\]/m.test(Q)}catch{return!1}}function L_($,Z){if(Z?.keywords?.some((X)=>/^sdk(?:\s|-|$)|-sdk$/i.test(X)))return'package.json keywords contains "sdk"';if(Z?.name&&/(?:^|[-_/])sdk(?:[-_/]|$)/i.test(Z.name))return`package.json name "${Z.name}" → sdk`;let Q=I_($);if(Q&&/(?:^|[-_])sdk(?:[-_]|$)/i.test(Q))return`Cargo.toml name "${Q}" → sdk`;return null}function M_($){let Z=["manifest.json","public/manifest.json","src/manifest.json","app/manifest.json","extension/manifest.json","dist/manifest.json"];for(let Q of Z){let X=R($,Q);if(!F(X))continue;try{let z=JSON.parse(e(X,"utf-8"));if(typeof z.manifest_version==="number")return`${Q} manifest_version ${z.manifest_version} (browser extension)`}catch{}}return null}function R_($){let Z=/(numpy|pandas|jupyter|scikit-learn|sklearn|pytorch|tensorflow|matplotlib|scipy)/i,Q=R($,"pyproject.toml");if(F(Q))try{let J=e(Q,"utf-8").match(Z);if(J)return`pyproject.toml depends on ${J[1]}`}catch{}let X=R($,"requirements.txt");if(F(X))try{let J=e(X,"utf-8").match(Z);if(J)return`requirements.txt contains ${J[1]}`}catch{}return null}function F_($,Z){let Q=["react-native","expo","@capacitor/core","@ionic/core"];if(Z){for(let X of Q)if(Z.dependencies?.[X]||Z.devDependencies?.[X])return`${X} dependency`}if(F(R($,"ios"))&&F(R($,"android")))return"ios/ + android/ dirs";return null}function A_($,Z){let Q=R($,"Cargo.toml");if(F(Q))try{let z=e(Q,"utf-8");if(/crate-type\s*=\s*\[[^\]]*"cdylib"/.test(z))return'Cargo.toml crate-type = ["cdylib"]';if(/wasm-bindgen|wasm-pack/i.test(z))return"Cargo.toml wasm-bindgen/wasm-pack"}catch{}let X=R($,"build.zig");if(F(X))try{let z=e(X,"utf-8");if(/\.wasm\b|wasm32|setOutputFormat\(\.wasm/i.test(z))return"build.zig wasm target"}catch{}if(Z?.keywords?.some((z)=>/^wasm(?:-|$)|webassembly/i.test(z)))return'package.json keywords contains "wasm"';return null}function N_($,Z){if(!F(R($,"index.html")))return null;if(Z?.dependencies||Z?.devDependencies){let Q={...Z.dependencies??{},...Z.devDependencies??{}};if(["react","vue","svelte","@sveltejs/kit","next","nuxt","astro","gatsby","solid-js","qwik"].some((z)=>Q[z]))return null}return"index.html (vanilla, no frontend framework)"}function P_($,Z){if(Z?.name&&/specification|^@.*\/spec/i.test(Z.name))return`package name "${Z.name}" → documentation`;if(Z?.keywords?.some((Q)=>/^(specification|format-spec|standard)$/i.test(Q)))return'package keywords contains "specification"';if(Z?.bin)return null;if(Z?.files&&Z.files.length>0){let Q=/^(dist|src|lib|build|bin)(\/|$)|\/(dist|src|lib|build|bin)(\/|$)|(\.|\/)(js|ts|tsx|jsx|mjs|cjs|py|rs|go)$/,X=Z.files.some((J)=>Q.test(J)),z=Z.files.some((J)=>/\.(md|MD)$|examples?\//.test(J)||J==="README.md"||J==="docs"||J==="docs/");if(!X&&z)return"package.json files = docs/examples only (no source)"}return null}function T_($,Z,Q){let X=Q.find((z)=>z.slug==="astro"||z.slug==="gatsby");if(X)return`${X.name} (static-site framework)`;if(Z?.keywords?.some((z)=>/^(website|marketing|landing|brochure|portfolio)$/i.test(z)))return'package keywords contains "website"/"marketing"/"landing"';return null}function w_($,Z){if(!Z)return null;let Q={...Z.dependencies??{},...Z.devDependencies??{}},X=["@clerk/nextjs","@clerk/clerk-react","next-auth","@auth/core","auth0","@auth0/nextjs-auth0"],z=["stripe","@stripe/stripe-js","lemonsqueezy"],J=X.some((U)=>Q[U]),H=z.some((U)=>Q[U]);if(J&&H)return"auth + payment dependencies";return null}function C_($,Z,Q){if(Z?.keywords?.some((J)=>/mcpaas/i.test(J)))return'package keywords contains "mcpaas"';if(Z?.name&&/mcpaas/i.test(Z.name))return`package name "${Z.name}" → mcpaas`;let X=Q.some((J)=>J.slug==="mcp"),z=Q.some((J)=>J.category==="database");if(X&&z&&Z?.dependencies&&Object.keys(Z.dependencies).length>10)return"MCP + database + complex deps (platform shape)";return null}function b_($,Z){if(!Z?.private)return null;if(!(!!Z.workspaces||F(R($,"pnpm-workspace.yaml"))))return null;return"private workspace + multi-package"}function C0($){let Z=R($,"package.json");if(!F(Z))return null;try{return JSON.parse(e(Z,"utf-8"))}catch{return null}}function r9($,Z){if(!Z.includes("*"))return F(R($,Z));let Q=Z.split("/");if(Q.length===1){let U=Z.split("*")[0];try{return a9($).some((q)=>q.startsWith(U))}catch{return!1}}let X=R($,...Q.slice(0,-1)),z=Q[Q.length-1],J=z.split("*")[0],H=z.split("*")[1]||"";try{return a9(X).some((U)=>U.startsWith(J)&&U.endsWith(H))}catch{return!1}}function E_($,Z,Q){switch($.type){case"dependency":return!!Z?.dependencies?.[$.key];case"devDependency":return!!Z?.devDependencies?.[$.key];case"file":return r9(Q,$.pattern);case"content":{if(!$.pattern||!$.key)return!1;if(!r9(Q,$.pattern))return!1;try{let X=R(Q,$.pattern);if(!F(X))return!1;return e(X,"utf-8").toLowerCase().includes($.key.toLowerCase())}catch{return!1}}default:return!1}}function P8($){let Z=C0($);return i9.map((Q)=>{let z=Q.signals.filter((J)=>E_(J,Z,$)).length/Q.signals.length;return{name:Q.name,slug:Q.slug,category:Q.category,confidence:z}}).filter((Q)=>Q.confidence>0).sort((Q,X)=>X.confidence-Q.confidence)}function s9($){let Z=C0($);if(Z?.devDependencies?.typescript||Z?.dependencies?.typescript)return"TypeScript";if(F(R($,"tsconfig.json")))return"TypeScript";if(F(R($,"Cargo.toml")))return"Rust";if(F(R($,"go.mod")))return"Go";if(T1($).length>0)return"C#";if(F(R($,"pyproject.toml"))||F(R($,"setup.py")))return"Python";if(F(R($,"Gemfile")))return"Ruby";if(K8($)){let Q=b1($);if(Q)return Q.mainLanguage==="Java/Kotlin"?"Kotlin":Q.mainLanguage;return"Java"}if(F(R($,"Package.swift")))return"Swift";if(F(R($,"build.zig")))return"Zig";if(F(R($,"pubspec.yaml")))return"Dart";if(Z)return"JavaScript";return"Unknown"}function n9($){let Z=C0($),Q=P8($),X=[],z=P_($,Z);if(z)return X.push(z),{type:"documentation",found:X};let J=L_($,Z);if(J)return X.push(J),{type:"sdk",found:X};let H=M_($);if(H)return X.push(H),{type:"extension",found:X};let U=C_($,Z,Q);if(U)return X.push(U),{type:"mcpaas",found:X};let q=w_($,Z);if(q)return X.push(q),{type:"saas",found:X};let Y=A_($,Z);if(Y)return X.push(Y),{type:"wasm",found:X};let _=g2($);if(_)return X.push(_.found),{type:_.appType,found:X};let B=y2($);if(B)return X.push(B.found),{type:B.appType,found:X};let G=u2($);if(G)return X.push(G.found),{type:G.appType,found:X};let O=b1($);if(O)return X.push(O.found),{type:O.appType,found:X};let D=v2($);if(D)return X.push(D.found),{type:D.appType,found:X};let V=h1($);if(V)return X.push(V.found),{type:V.appType,found:X};let W=F_($,Z);if(W)return X.push(W),{type:"mobile",found:X};if(Q.some((j)=>j.slug==="mcp"))return X.push("MCP SDK signal"),{type:"mcp",found:X};if(Z?.bin)return X.push("package.json bin"),{type:"cli",found:X};if(K_($))return X.push("Cargo.toml [[bin]]"),{type:"cli",found:X};if(F(R($,"build.zig"))){if(X.push("build.zig"),F(R($,"src/main.zig")))return X.push("src/main.zig"),{type:"cli",found:X};if(F(R($,"src/root.zig")))return X.push("src/root.zig"),{type:"library",found:X}}let L=Q.some((j)=>j.slug==="svelte"||j.slug==="sveltekit");if(Z?.private===!0&&(F(R($,"pnpm-workspace.yaml"))||Z?.workspaces!==void 0)&&L)return X.push("private workspace","Svelte"),{type:"framework",found:X};if(L)return X.push("Svelte/SvelteKit"),{type:"svelte",found:X};let N=Q.some((j)=>j.category==="frontend"),T=Q.some((j)=>j.category==="backend");if(Z?.private&&(Z.workspaces||F(R($,"pnpm-workspace.yaml")))&&N&&T)return X.push("private workspace + frontend + backend frameworks"),{type:"enterprise",found:X};let P=b_($,Z);if(P)return X.push(P),{type:"monorepo-root",found:X};let C=T_($,Z,Q);if(C)return X.push(C),{type:"website",found:X};if(Q.some((j)=>j.slug==="nextjs"||j.slug==="nuxt"))return X.push(Q.find((j)=>j.slug==="nextjs")?"Next.js":"Nuxt"),{type:"fullstack",found:X};let w=Q.some((j)=>j.category==="frontend"),v=Q.some((j)=>j.category==="backend");if(w&&v)return X.push("frontend framework","backend framework"),{type:"fullstack",found:X};if(w)return X.push("frontend framework"),{type:"frontend",found:X};if(v)return X.push("backend framework"),{type:"backend",found:X};let m=R_($);if(m)return X.push(m),{type:"data-science",found:X};let S=N_($,Z);if(S)return X.push(S),{type:"html",found:X};if(Z?.main&&!Z?.bin)return X.push("package.json main (no bin)"),{type:"library",found:X};return X.push("no classifying signals — fallback"),{type:"library",found:X}}function o9($){if(F(R($,"bunfig.toml")))return"Bun";if(F(R($,"deno.json"))||F(R($,"deno.jsonc")))return"Deno";if(C0($))return"Node.js";if(F(R($,"Cargo.toml")))return"Rust";if(F(R($,"go.mod")))return"Go";if(T1($).length>0)return".NET";if(F(R($,"pubspec.yaml")))return"Dart";return"Unknown"}function t9($){if(F(R($,"pubspec.yaml")))return"pub";if(F(R($,"go.mod")))return"go modules";if(T1($).length>0)return"NuGet";if(F(R($,"pom.xml")))return"maven";if(F(R($,"build.gradle"))||F(R($,"build.gradle.kts"))||F(R($,"settings.gradle"))||F(R($,"settings.gradle.kts")))return"gradle";if(F(R($,"bun.lockb"))||F(R($,"bun.lock")))return"bun";if(F(R($,"pnpm-lock.yaml")))return"pnpm";if(F(R($,"yarn.lock")))return"yarn";if(F(R($,"package-lock.json")))return"npm";return"npm"}function e9($){if(F(R($,".github/workflows")))return"GitHub Actions";if(F(R($,".gitlab-ci.yml")))return"GitLab CI";if(F(R($,".circleci")))return"CircleCI";if(F(R($,"Jenkinsfile")))return"Jenkins";return null}function $Z($){if(F(R($,"vercel.json")))return"Vercel";if(F(R($,"netlify.toml")))return"Netlify";if(F(R($,"wrangler.toml")))return"Cloudflare";if(F(R($,"Dockerfile")))return"Docker";if(F(R($,"fly.toml")))return"Fly.io";if(F(R($,"render.yaml")))return"Render";return null}function ZZ($){let Z=R($,"svelte.config.js");if(!F(Z))return null;try{let X=e(Z,"utf-8").match(/@sveltejs\/adapter-(\w+)/);if(X){let z=X[1];switch(z){case"vercel":return"Vercel";case"node":return"Node";case"static":return"Static";case"cloudflare":return"Cloudflare";case"netlify":return"Netlify";case"auto":return"Auto";default:return z}}return null}catch{return null}}function QZ($){let Z=C0($);if(Z?.devDependencies?.vite||Z?.dependencies?.vite)return"Vite";if(Z?.devDependencies?.webpack||Z?.dependencies?.webpack)return"webpack";if(Z?.devDependencies?.esbuild||Z?.dependencies?.esbuild)return"esbuild";if(F(R($,"tsconfig.json"))&&Z?.devDependencies?.typescript)return"TypeScript (tsc)";return null}function XZ($){return["package.json","Cargo.toml","pyproject.toml","go.mod","build.zig","build.zig.zon","src/index.ts","src/index.js","src/main.ts","src/cli.ts","src/main.rs","src/lib.rs","src/main.zig","src/root.zig","src/__init__.py","main.py","__main__.py","main.go","cmd/main.go","README.md","SPECIFICATION.md","BINARY-FORMAT.md","tsconfig.json","wrangler.toml","vercel.json"].filter((Q)=>F(R($,Q)))}function zZ($,Z){let Q={};if(Z?.scripts){for(let X of["build","test","lint","dev","start"])if(Z.scripts[X]){let z=F(R($,"bun.lock"))||F(R($,"bun.lockb"))?"bun run":"npm run";Q[X]=`${z} ${X}`}}if(F(R($,"Cargo.toml"))){if(!Q.build)Q.build="cargo build --release";if(!Q.test)Q.test="cargo test";if(!Q.lint)Q.lint="cargo clippy"}if(F(R($,"build.zig"))){if(!Q.build)Q.build="zig build";if(!Q.test)Q.test="zig build test"}if(F(R($,"go.mod"))){if(!Q.build)Q.build="go build ./...";if(!Q.test)Q.test="go test ./..."}if(F(R($,"pyproject.toml"))||F(R($,"pytest.ini"))){if(!Q.test)Q.test="pytest"}return Q}function JZ($,Z,Q,X){let z=[];if(X&&X!=="Unknown")z.push(X);let J=new Set(["frontend","backend","database","build","css","state","monorepo"]);for(let H of Q)if(J.has(H.category))z.push(H.name);if(F(R($,"bunfig.toml")))z.push("Bun");else if(F(R($,"deno.json"))||F(R($,"deno.jsonc")))z.push("Deno");if(z.length<3&&Z?.dependencies){let H=Object.keys(Z.dependencies).slice(0,5);for(let U of H)if(!z.some((q)=>q.toLowerCase().includes(U.toLowerCase())))z.push(U)}return z}function HZ($){let Z=C0($),Q=P8($),X=s9($),z=n9($),J=z.type,H=o9($),U=t9($),q=e9($),Y=$Z($),_=QZ($),B=Q.find((E)=>E.category==="frontend"),G=Q.find((E)=>E.category==="css"),O=Q.find((E)=>E.category==="ui"),D=Q.find((E)=>E.category==="state"),V=Q.find((E)=>E.category==="backend"),W=Q.find((E)=>E.category==="database"),I=E0[J]||E0.library,L=J==="framework",A=Q.some((E)=>E.slug==="svelte"||E.slug==="sveltekit"),N=L&&A?"svelte":L?null:null,T=J==="svelte"||N==="svelte",P=T?ZZ($):null,C=T&&Q.some((E)=>E.slug==="sveltekit"),K=new Set(["css_framework","ui_library","database","connection","hosting"]),w={},v=y.filter((E)=>E.path.startsWith("stack."));for(let E of v){let g=E.path.replace("stack.","");if(!I.includes(E.category)){w[g]="slotignored";continue}if(L&&K.has(g)){w[g]="slotignored";continue}switch(g){case"frontend":w[g]=B?.name??(J==="cli"?"CLI":"");break;case"css_framework":w[g]=G?.name??"";break;case"ui_library":w[g]=O?.name??"";break;case"state_management":w[g]=T?D?.name??"Runes":D?.name??"";break;case"backend":w[g]=T?C?"SvelteKit":V?.name??"":V?.name??"";break;case"api_type":w[g]=C?"Server Routes":"";break;case"runtime":w[g]=H!=="Unknown"?H:"";break;case"database":w[g]=W?.name??"";break;case"connection":w[g]=W?.name??"";break;case"hosting":if(T&&P)w[g]=P;else w[g]=Y??"";break;case"build":w[g]=T?"Vite":_??"";break;case"cicd":w[g]=q??"";break;case"package_manager":w[g]=U;break;default:w[g]="";break}}let m={},S=y.filter((E)=>E.path.startsWith("monorepo."));for(let E of S){let g=E.path.replace("monorepo.","");if(!I.includes(E.category))m[g]="slotignored";else m[g]=""}let j={name:Z?.name??$.split("/").pop()??"project",goal:Z?.description??"",main_language:X,type:J};if(L&&N)j.framework=N;let C8=JZ($,Z,Q,X),b8=XZ($),E8=zZ($,Z),f1={faf_version:c9,project:j,stack:w,human_context:{who:"",what:Z?.description??"",why:"",where:"",when:"",how:""},monorepo:m,_meta:{found:z.found}};if(C8.length>0)f1.tech_stack=C8;if(b8.length>0)f1.key_files=b8;if(Object.keys(E8).length>0)f1.commands=E8;return f1}import{existsSync as j_,readFileSync as g_}from"fs";import{join as x_}from"path";var UZ={MIN_LENGTH:8,MAX_LENGTH:280},S_=[/^(see|see\s+the?)\s+readme/i,/^(tbd|todo|fixme|coming\s+soon)\b/i,/^(software|application|app|project|tool|library|framework)\.?$/i,/^(for\s+users|for\s+developers)\.?$/i,/^(description|goal|name|title)\.?$/i,/^lorem\s+ipsum/i,/^example(\s+\w+)?\.?$/i];function s($){let Z=$.trim();if(Z.length<UZ.MIN_LENGTH)return!1;if(Z.length>UZ.MAX_LENGTH)return!1;if(S_.some((Q)=>Q.test(Z)))return!1;if(/^[\s|\-*+]/.test(Z))return!1;if(Z.split(`
224
- `).length>4)return!1;return!0}function h_($){let Z=$.split(`
223
+ `).replace(/<[^>]+>/g,"").replace(/!\[[^\]]*\]\([^)]*\)/g,"").trim()}function C0($){return $.replace(/\s+/g," ").replace(/[#*`>]/g,"").trim().slice(0,280)}function s0($,Z){let Q=new RegExp(`##?\\s+(${Z})\\s*\\n+([\\s\\S]+?)(?:\\n\\n|\\n##?|$)`,"i"),X=$.match(Q);return X&&X[2]&&X[2].trim().length>20?{body:C0(X[2]),heading:X[1].trim()}:null}function y1($,Z,Q=30){for(let X of Z){let z=$.match(X);if(z&&z[1]&&z[1].trim().length>=Q)return C0(z[1])}return null}function fB($,Z){if($?.description&&$.description.length>20)return f(C0($.description),"package.json:description",0.95);let Q=s0(Z,"Purpose|What|About|Overview|Description");if(Q)return f(Q.body,`README:## ${Q.heading}`,0.8);let X=Z.split(/\n\s*\n/).map((J)=>J.trim()).find((J)=>J.length>30&&!J.startsWith("#"));if(X)return f(C0(X),"README:first-paragraph",0.5);let z=y1(Z,[/(?:core|main|primary)\s+(?:problem|challenge)(?:\s+is)?\s*:?\s*([^.\n]{30,})/i,/solves?\s+(?:the\s+)?(?:problem\s+of\s+)?([^.\n]{30,})/i]);return z?f(z,"README:problem-heuristic",0.6):null}function kB($){let Z=s0($,"Audience|Who|Who is this for|Who it.s for");if(Z)return f(Z.body,`README:## ${Z.heading}`,0.8);let Q=y1($,[/\b(?:designed|built|made)\s+for\s+((?:[a-z][a-z-]*\s+)?(?:developers?|teams?|engineers?|builders?|founders?)[^.\n]{0,80})/i,/\bfor\s+((?:[a-z][a-z-]*\s+)?(?:developers?|teams?|engineers?|builders?|founders?)[^.\n]{0,80})/i],8);return Q?f(Q,"README:audience-heuristic",0.6):null}function vB($){let Z=s0($,"Why|Mission|Motivation|Rationale|Vision");if(Z)return f(Z.body,`README:## ${Z.heading}`,0.8);let Q=y1($,[/(?:our\s+|the\s+)?(?:mission|purpose|goal)\s+is\s+([^.\n]{30,})/i,/\b(?:mission|purpose|goal)\s*:\s*([^.\n]{30,})/i,/(?:built|created|designed)\s+(?:because|to)\s+([^.\n]{30,})/i]);return Q?f(Q,"README:mission-heuristic",0.6):null}function uB($,Z){let Q=typeof $?.repository==="string"?$.repository:$?.repository?.url;if(Q)return f(C0(Q.replace(/^git\+/,"").replace(/\.git$/,"")),"package.json:repository",0.95);if($?.homepage)return f(C0($.homepage),"package.json:homepage",0.9);let X=y1(Z,[/\b(?:deployed|hosted|available|published)\s+(?:on|at|via)\s+([^.\n]{3,80})/i],3);return X?f(X,"README:deploy-heuristic",0.6):null}function mB($){let Z=s0($,"Timeline|Status|Release|Roadmap");if(Z)return f(Z.body,`README:## ${Z.heading}`,0.8);let Q=y1($,[/\b(production\s+since\s+[^.\n]{4,60})/i,/\b((?:in\s+)?(?:production|beta|alpha|development)\s+since\s+[^.\n]{4,60})/i,/\bsince\s+((?:[A-Z][a-z]+\s+)?\d{4}[^.\n]{0,40})/],4);return Q?f(Q,"README:since-heuristic",0.6):null}function lB($,Z){let Q=$?.scripts?Object.keys($.scripts):[],X=["start","dev","build"].filter((H)=>Q.includes(H));if(X.length)return f(C0(X.map((H)=>`npm run ${H}`).join(", ")),"package.json:scripts",0.9);let z=s0(Z,"Usage|Getting Started|Install|Installation|Quick Start");if(z)return f(z.body,`README:## ${z.heading}`,0.8);let J=s0(Z,"Architecture|Approach|How it works|Methodology|How");return J?f(J.body,`README:## ${J.heading}`,0.7):null}var J4="3.0";import{existsSync as F,readFileSync as $0,readdirSync as U4}from"fs";import{join as R}from"path";var H4=[{name:"Next.js",slug:"nextjs",category:"frontend",signals:[{type:"dependency",key:"next"},{type:"file",pattern:"next.config.*"}]},{name:"React",slug:"react",category:"frontend",signals:[{type:"dependency",key:"react"}]},{name:"SvelteKit",slug:"sveltekit",category:"frontend",signals:[{type:"dependency",key:"@sveltejs/kit"},{type:"file",pattern:"svelte.config.*"}]},{name:"Svelte",slug:"svelte",category:"frontend",signals:[{type:"dependency",key:"svelte"},{type:"devDependency",key:"svelte"}]},{name:"Vue.js",slug:"vue",category:"frontend",signals:[{type:"dependency",key:"vue"}]},{name:"Nuxt",slug:"nuxt",category:"frontend",signals:[{type:"dependency",key:"nuxt"},{type:"file",pattern:"nuxt.config.*"}]},{name:"Angular",slug:"angular",category:"frontend",signals:[{type:"dependency",key:"@angular/core"},{type:"file",pattern:"angular.json"}]},{name:"Astro",slug:"astro",category:"frontend",signals:[{type:"dependency",key:"astro"},{type:"file",pattern:"astro.config.*"}]},{name:"Solid",slug:"solid",category:"frontend",signals:[{type:"dependency",key:"solid-js"}]},{name:"Remix",slug:"remix",category:"frontend",signals:[{type:"dependency",key:"@remix-run/react"}]},{name:"Gatsby",slug:"gatsby",category:"frontend",signals:[{type:"dependency",key:"gatsby"},{type:"file",pattern:"gatsby-config.*"}]},{name:"Qwik",slug:"qwik",category:"frontend",signals:[{type:"dependency",key:"@builder.io/qwik"}]},{name:"Vercel (SvelteKit)",slug:"adapter-vercel",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-vercel"},{type:"devDependency",key:"@sveltejs/adapter-vercel"}]},{name:"Node (SvelteKit)",slug:"adapter-node",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-node"},{type:"devDependency",key:"@sveltejs/adapter-node"}]},{name:"Static (SvelteKit)",slug:"adapter-static",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-static"},{type:"devDependency",key:"@sveltejs/adapter-static"}]},{name:"Cloudflare (SvelteKit)",slug:"adapter-cloudflare",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-cloudflare"},{type:"devDependency",key:"@sveltejs/adapter-cloudflare"}]},{name:"Netlify (SvelteKit)",slug:"adapter-netlify",category:"hosting",signals:[{type:"dependency",key:"@sveltejs/adapter-netlify"},{type:"devDependency",key:"@sveltejs/adapter-netlify"}]},{name:"Tailwind CSS",slug:"tailwind",category:"css",signals:[{type:"dependency",key:"tailwindcss"},{type:"devDependency",key:"tailwindcss"},{type:"file",pattern:"tailwind.config.*"}]},{name:"Bootstrap",slug:"bootstrap",category:"css",signals:[{type:"dependency",key:"bootstrap"}]},{name:"Styled Components",slug:"styled-components",category:"css",signals:[{type:"dependency",key:"styled-components"}]},{name:"shadcn/ui",slug:"shadcn",category:"ui",signals:[{type:"file",pattern:"components.json"},{type:"dependency",key:"@radix-ui/react-dialog"}]},{name:"Material UI",slug:"mui",category:"ui",signals:[{type:"dependency",key:"@mui/material"}]},{name:"Chakra UI",slug:"chakra",category:"ui",signals:[{type:"dependency",key:"@chakra-ui/react"}]},{name:"Ant Design",slug:"antd",category:"ui",signals:[{type:"dependency",key:"antd"}]},{name:"Redux",slug:"redux",category:"state",signals:[{type:"dependency",key:"@reduxjs/toolkit"}]},{name:"Zustand",slug:"zustand",category:"state",signals:[{type:"dependency",key:"zustand"}]},{name:"Jotai",slug:"jotai",category:"state",signals:[{type:"dependency",key:"jotai"}]},{name:"Pinia",slug:"pinia",category:"state",signals:[{type:"dependency",key:"pinia"}]},{name:"Express",slug:"express",category:"backend",signals:[{type:"dependency",key:"express"}]},{name:"Fastify",slug:"fastify",category:"backend",signals:[{type:"dependency",key:"fastify"}]},{name:"Hono",slug:"hono",category:"backend",signals:[{type:"dependency",key:"hono"}]},{name:"Elysia",slug:"elysia",category:"backend",signals:[{type:"dependency",key:"elysia"}]},{name:"NestJS",slug:"nestjs",category:"backend",signals:[{type:"dependency",key:"@nestjs/core"}]},{name:"Koa",slug:"koa",category:"backend",signals:[{type:"dependency",key:"koa"}]},{name:"Django",slug:"django",category:"backend",signals:[{type:"file",pattern:"manage.py"},{type:"file",pattern:"settings.py"}]},{name:"Flask",slug:"flask",category:"backend",signals:[{type:"file",pattern:"app.py"}]},{name:"FastAPI",slug:"fastapi",category:"backend",signals:[{type:"file",pattern:"main.py"}]},{name:"Rails",slug:"rails",category:"backend",signals:[{type:"content",pattern:"Gemfile",key:"rails"},{type:"content",pattern:"Gemfile.lock",key:"rails ("},{type:"file",pattern:"config/application.rb"},{type:"file",pattern:"config/routes.rb"}]},{name:"Spring Boot",slug:"spring",category:"backend",signals:[{type:"content",pattern:"pom.xml",key:"spring-boot"},{type:"content",pattern:"build.gradle",key:"springframework.boot"},{type:"content",pattern:"build.gradle.kts",key:"springframework.boot"},{type:"content",pattern:"gradle/libs.versions.toml",key:"springframework.boot"}]},{name:"Vapor",slug:"vapor",category:"backend",signals:[{type:"content",pattern:"Package.swift",key:"vapor/vapor"},{type:"content",pattern:"Package.swift",key:'product(name: "Vapor"'},{type:"content",pattern:"Package.swift",key:"product(name: 'Vapor'"},{type:"file",pattern:"Sources/App/configure.swift"}]},{name:"Hummingbird",slug:"hummingbird",category:"backend",signals:[{type:"content",pattern:"Package.swift",key:"hummingbird-project/hummingbird"},{type:"content",pattern:"Package.swift",key:'product(name: "Hummingbird"'},{type:"content",pattern:"Package.swift",key:"product(name: 'Hummingbird'"}]},{name:"Prisma",slug:"prisma",category:"database",signals:[{type:"dependency",key:"prisma"},{type:"devDependency",key:"prisma"},{type:"file",pattern:"prisma/schema.prisma"}]},{name:"Drizzle",slug:"drizzle",category:"database",signals:[{type:"dependency",key:"drizzle-orm"},{type:"file",pattern:"drizzle.config.*"}]},{name:"TypeORM",slug:"typeorm",category:"database",signals:[{type:"dependency",key:"typeorm"}]},{name:"Mongoose",slug:"mongoose",category:"database",signals:[{type:"dependency",key:"mongoose"}]},{name:"Vite",slug:"vite",category:"build",signals:[{type:"dependency",key:"vite"},{type:"devDependency",key:"vite"},{type:"file",pattern:"vite.config.*"}]},{name:"webpack",slug:"webpack",category:"build",signals:[{type:"dependency",key:"webpack"},{type:"devDependency",key:"webpack"},{type:"file",pattern:"webpack.config.*"}]},{name:"esbuild",slug:"esbuild",category:"build",signals:[{type:"dependency",key:"esbuild"},{type:"devDependency",key:"esbuild"}]},{name:"Turbopack",slug:"turbopack",category:"build",signals:[{type:"file",pattern:"turbo.json"}]},{name:"Jest",slug:"jest",category:"testing",signals:[{type:"devDependency",key:"jest"},{type:"file",pattern:"jest.config.*"}]},{name:"Vitest",slug:"vitest",category:"testing",signals:[{type:"devDependency",key:"vitest"}]},{name:"Playwright",slug:"playwright",category:"testing",signals:[{type:"devDependency",key:"@playwright/test"},{type:"file",pattern:"playwright.config.*"}]},{name:"Cypress",slug:"cypress",category:"testing",signals:[{type:"devDependency",key:"cypress"},{type:"file",pattern:"cypress.config.*"}]},{name:"Turborepo",slug:"turborepo",category:"monorepo",signals:[{type:"devDependency",key:"turbo"},{type:"file",pattern:"turbo.json"}]},{name:"Nx",slug:"nx",category:"monorepo",signals:[{type:"devDependency",key:"nx"},{type:"file",pattern:"nx.json"}]},{name:"Lerna",slug:"lerna",category:"monorepo",signals:[{type:"devDependency",key:"lerna"},{type:"file",pattern:"lerna.json"}]},{name:"MCP SDK",slug:"mcp",category:"ai",signals:[{type:"dependency",key:"@modelcontextprotocol/sdk"}]},{name:"Anthropic SDK",slug:"anthropic",category:"ai",signals:[{type:"dependency",key:"@anthropic-ai/sdk"}]},{name:"OpenAI SDK",slug:"openai",category:"ai",signals:[{type:"dependency",key:"openai"}]},{name:"LangChain",slug:"langchain",category:"ai",signals:[{type:"dependency",key:"langchain"}]},{name:"Vercel",slug:"vercel",category:"hosting",signals:[{type:"file",pattern:"vercel.json"}]},{name:"Netlify",slug:"netlify",category:"hosting",signals:[{type:"file",pattern:"netlify.toml"}]},{name:"Docker",slug:"docker",category:"hosting",signals:[{type:"file",pattern:"Dockerfile"},{type:"file",pattern:"docker-compose.yml"}]},{name:"Cloudflare Workers",slug:"cloudflare",category:"hosting",signals:[{type:"file",pattern:"wrangler.toml"},{type:"dependency",key:"wrangler"}]},{name:"GitHub Actions",slug:"github-actions",category:"cicd",signals:[{type:"file",pattern:".github/workflows/*.yml"}]},{name:"Commander.js",slug:"commander",category:"cli",signals:[{type:"dependency",key:"commander"}]}];function pB($){let Z=R($,"Cargo.toml");if(!F(Z))return null;try{let X=$0(Z,"utf-8").match(/^\s*\[package\][\s\S]*?^\s*name\s*=\s*"([^"]+)"/m);return X?X[1]:null}catch{return null}}function dB($){let Z=R($,"Cargo.toml");if(!F(Z))return!1;try{let Q=$0(Z,"utf-8");return/^\s*\[\[bin\]\]/m.test(Q)}catch{return!1}}function cB($,Z){if(Z?.keywords?.some((X)=>/^sdk(?:\s|-|$)|-sdk$/i.test(X)))return'package.json keywords contains "sdk"';if(Z?.name&&/(?:^|[-_/])sdk(?:[-_/]|$)/i.test(Z.name))return`package.json name "${Z.name}" → sdk`;let Q=pB($);if(Q&&/(?:^|[-_])sdk(?:[-_]|$)/i.test(Q))return`Cargo.toml name "${Q}" → sdk`;return null}function iB($){let Z=["manifest.json","public/manifest.json","src/manifest.json","app/manifest.json","extension/manifest.json","dist/manifest.json"];for(let Q of Z){let X=R($,Q);if(!F(X))continue;try{let z=JSON.parse($0(X,"utf-8"));if(typeof z.manifest_version==="number")return`${Q} manifest_version ${z.manifest_version} (browser extension)`}catch{}}return null}function rB($){let Z=/(numpy|pandas|jupyter|scikit-learn|sklearn|pytorch|tensorflow|matplotlib|scipy)/i,Q=R($,"pyproject.toml");if(F(Q))try{let J=$0(Q,"utf-8").match(Z);if(J)return`pyproject.toml depends on ${J[1]}`}catch{}let X=R($,"requirements.txt");if(F(X))try{let J=$0(X,"utf-8").match(Z);if(J)return`requirements.txt contains ${J[1]}`}catch{}return null}function aB($,Z){let Q=["react-native","expo","@capacitor/core","@ionic/core"];if(Z){for(let X of Q)if(Z.dependencies?.[X]||Z.devDependencies?.[X])return`${X} dependency`}if(F(R($,"ios"))&&F(R($,"android")))return"ios/ + android/ dirs";return null}function sB($,Z){let Q=R($,"Cargo.toml");if(F(Q))try{let z=$0(Q,"utf-8");if(/crate-type\s*=\s*\[[^\]]*"cdylib"/.test(z))return'Cargo.toml crate-type = ["cdylib"]';if(/wasm-bindgen|wasm-pack/i.test(z))return"Cargo.toml wasm-bindgen/wasm-pack"}catch{}let X=R($,"build.zig");if(F(X))try{let z=$0(X,"utf-8");if(/\.wasm\b|wasm32|setOutputFormat\(\.wasm/i.test(z))return"build.zig wasm target"}catch{}if(Z?.keywords?.some((z)=>/^wasm(?:-|$)|webassembly/i.test(z)))return'package.json keywords contains "wasm"';return null}function nB($,Z){if(!F(R($,"index.html")))return null;if(Z?.dependencies||Z?.devDependencies){let Q={...Z.dependencies??{},...Z.devDependencies??{}};if(["react","vue","svelte","@sveltejs/kit","next","nuxt","astro","gatsby","solid-js","qwik"].some((z)=>Q[z]))return null}return"index.html (vanilla, no frontend framework)"}function oB($,Z){if(Z?.name&&/specification|^@.*\/spec/i.test(Z.name))return`package name "${Z.name}" → documentation`;if(Z?.keywords?.some((Q)=>/^(specification|format-spec|standard)$/i.test(Q)))return'package keywords contains "specification"';if(Z?.bin)return null;if(Z?.files&&Z.files.length>0){let Q=/^(dist|src|lib|build|bin)(\/|$)|\/(dist|src|lib|build|bin)(\/|$)|(\.|\/)(js|ts|tsx|jsx|mjs|cjs|py|rs|go)$/,X=Z.files.some((J)=>Q.test(J)),z=Z.files.some((J)=>/\.(md|MD)$|examples?\//.test(J)||J==="README.md"||J==="docs"||J==="docs/");if(!X&&z)return"package.json files = docs/examples only (no source)"}return null}function tB($,Z,Q){let X=Q.find((z)=>z.slug==="astro"||z.slug==="gatsby");if(X)return`${X.name} (static-site framework)`;if(Z?.keywords?.some((z)=>/^(website|marketing|landing|brochure|portfolio)$/i.test(z)))return'package keywords contains "website"/"marketing"/"landing"';return null}function eB($,Z){if(!Z)return null;let Q={...Z.dependencies??{},...Z.devDependencies??{}},X=["@clerk/nextjs","@clerk/clerk-react","next-auth","@auth/core","auth0","@auth0/nextjs-auth0"],z=["stripe","@stripe/stripe-js","lemonsqueezy"],J=X.some((U)=>Q[U]),H=z.some((U)=>Q[U]);if(J&&H)return"auth + payment dependencies";return null}function $G($,Z,Q){if(Z?.keywords?.some((J)=>/mcpaas/i.test(J)))return'package keywords contains "mcpaas"';if(Z?.name&&/mcpaas/i.test(Z.name))return`package name "${Z.name}" → mcpaas`;let X=Q.some((J)=>J.slug==="mcp"),z=Q.some((J)=>J.category==="database");if(X&&z&&Z?.dependencies&&Object.keys(Z.dependencies).length>10)return"MCP + database + complex deps (platform shape)";return null}function ZG($,Z){if(!Z?.private)return null;if(!(!!Z.workspaces||F(R($,"pnpm-workspace.yaml"))))return null;return"private workspace + multi-package"}function w0($){let Z=R($,"package.json");if(!F(Z))return null;try{return JSON.parse($0(Z,"utf-8"))}catch{return null}}function q4($,Z){if(!Z.includes("*"))return F(R($,Z));let Q=Z.split("/");if(Q.length===1){let U=Z.split("*")[0];try{return U4($).some((q)=>q.startsWith(U))}catch{return!1}}let X=R($,...Q.slice(0,-1)),z=Q[Q.length-1],J=z.split("*")[0],H=z.split("*")[1]||"";try{return U4(X).some((U)=>U.startsWith(J)&&U.endsWith(H))}catch{return!1}}function QG($,Z,Q){switch($.type){case"dependency":return!!Z?.dependencies?.[$.key];case"devDependency":return!!Z?.devDependencies?.[$.key];case"file":return q4(Q,$.pattern);case"content":{if(!$.pattern||!$.key)return!1;if(!q4(Q,$.pattern))return!1;try{let X=R(Q,$.pattern);if(!F(X))return!1;return $0(X,"utf-8").toLowerCase().includes($.key.toLowerCase())}catch{return!1}}default:return!1}}function S8($){let Z=w0($);return H4.map((Q)=>{let z=Q.signals.filter((J)=>QG(J,Z,$)).length/Q.signals.length;return{name:Q.name,slug:Q.slug,category:Q.category,confidence:z}}).filter((Q)=>Q.confidence>0).sort((Q,X)=>X.confidence-Q.confidence)}function Y4($){let Z=w0($);if(Z?.devDependencies?.typescript||Z?.dependencies?.typescript)return"TypeScript";if(F(R($,"tsconfig.json")))return"TypeScript";if(F(R($,"Cargo.toml")))return"Rust";if(F(R($,"go.mod")))return"Go";if(T1($).length>0)return"C#";if(F(R($,"pyproject.toml"))||F(R($,"setup.py")))return"Python";if(F(R($,"Gemfile")))return"Ruby";if(A8($)){let Q=b1($);if(Q)return Q.mainLanguage==="Java/Kotlin"?"Kotlin":Q.mainLanguage;return"Java"}if(F(R($,"Package.swift")))return"Swift";if(F(R($,"build.zig")))return"Zig";if(F(R($,"pubspec.yaml")))return"Dart";if(Z)return"JavaScript";return"Unknown"}function B4($){let Z=w0($),Q=S8($),X=[],z=oB($,Z);if(z)return X.push(z),{type:"documentation",found:X};let J=cB($,Z);if(J)return X.push(J),{type:"sdk",found:X};let H=iB($);if(H)return X.push(H),{type:"extension",found:X};let U=$G($,Z,Q);if(U)return X.push(U),{type:"mcpaas",found:X};let q=eB($,Z);if(q)return X.push(q),{type:"saas",found:X};let Y=sB($,Z);if(Y)return X.push(Y),{type:"wasm",found:X};let B=y2($);if(B)return X.push(B.found),{type:B.appType,found:X};let G=v2($);if(G)return X.push(G.found),{type:G.appType,found:X};let V=m2($);if(V)return X.push(V.found),{type:V.appType,found:X};let W=b1($);if(W)return X.push(W.found),{type:W.appType,found:X};let D=p2($);if(D)return X.push(D.found),{type:D.appType,found:X};let _=h1($);if(_)return X.push(_.found),{type:_.appType,found:X};let O=aB($,Z);if(O)return X.push(O),{type:"mobile",found:X};if(Q.some((j)=>j.slug==="mcp"))return X.push("MCP SDK signal"),{type:"mcp",found:X};if(Z?.bin)return X.push("package.json bin"),{type:"cli",found:X};if(dB($))return X.push("Cargo.toml [[bin]]"),{type:"cli",found:X};if(F(R($,"build.zig"))){if(X.push("build.zig"),F(R($,"src/main.zig")))return X.push("src/main.zig"),{type:"cli",found:X};if(F(R($,"src/root.zig")))return X.push("src/root.zig"),{type:"library",found:X}}let L=Q.some((j)=>j.slug==="svelte"||j.slug==="sveltekit");if(Z?.private===!0&&(F(R($,"pnpm-workspace.yaml"))||Z?.workspaces!==void 0)&&L)return X.push("private workspace","Svelte"),{type:"framework",found:X};if(L)return X.push("Svelte/SvelteKit"),{type:"svelte",found:X};let A=Q.some((j)=>j.category==="frontend"),T=Q.some((j)=>j.category==="backend");if(Z?.private&&(Z.workspaces||F(R($,"pnpm-workspace.yaml")))&&A&&T)return X.push("private workspace + frontend + backend frameworks"),{type:"enterprise",found:X};let P=ZG($,Z);if(P)return X.push(P),{type:"monorepo-root",found:X};let w=tB($,Z,Q);if(w)return X.push(w),{type:"website",found:X};if(Q.some((j)=>j.slug==="nextjs"||j.slug==="nuxt"))return X.push(Q.find((j)=>j.slug==="nextjs")?"Next.js":"Nuxt"),{type:"fullstack",found:X};let C=Q.some((j)=>j.category==="frontend"),u=Q.some((j)=>j.category==="backend");if(C&&u)return X.push("frontend framework","backend framework"),{type:"fullstack",found:X};if(C)return X.push("frontend framework"),{type:"frontend",found:X};if(u)return X.push("backend framework"),{type:"backend",found:X};let m=rB($);if(m)return X.push(m),{type:"data-science",found:X};let S=nB($,Z);if(S)return X.push(S),{type:"html",found:X};if(Z?.main&&!Z?.bin)return X.push("package.json main (no bin)"),{type:"library",found:X};return X.push("no classifying signals — fallback"),{type:"library",found:X}}function G4($){if(F(R($,"bunfig.toml")))return"Bun";if(F(R($,"deno.json"))||F(R($,"deno.jsonc")))return"Deno";if(w0($))return"Node.js";if(F(R($,"Cargo.toml")))return"Rust";if(F(R($,"go.mod")))return"Go";if(T1($).length>0)return".NET";if(F(R($,"pubspec.yaml")))return"Dart";return"Unknown"}function V4($){if(F(R($,"pubspec.yaml")))return"pub";if(F(R($,"go.mod")))return"go modules";if(T1($).length>0)return"NuGet";if(F(R($,"pom.xml")))return"maven";if(F(R($,"build.gradle"))||F(R($,"build.gradle.kts"))||F(R($,"settings.gradle"))||F(R($,"settings.gradle.kts")))return"gradle";if(F(R($,"bun.lockb"))||F(R($,"bun.lock")))return"bun";if(F(R($,"pnpm-lock.yaml")))return"pnpm";if(F(R($,"yarn.lock")))return"yarn";if(F(R($,"package-lock.json")))return"npm";return"npm"}function _4($){if(F(R($,".github/workflows")))return"GitHub Actions";if(F(R($,".gitlab-ci.yml")))return"GitLab CI";if(F(R($,".circleci")))return"CircleCI";if(F(R($,"Jenkinsfile")))return"Jenkins";return null}function W4($){if(F(R($,"vercel.json")))return"Vercel";if(F(R($,"netlify.toml")))return"Netlify";if(F(R($,"wrangler.toml")))return"Cloudflare";if(F(R($,"Dockerfile")))return"Docker";if(F(R($,"fly.toml")))return"Fly.io";if(F(R($,"render.yaml")))return"Render";return null}function O4($){let Z=R($,"svelte.config.js");if(!F(Z))return null;try{let X=$0(Z,"utf-8").match(/@sveltejs\/adapter-(\w+)/);if(X){let z=X[1];switch(z){case"vercel":return"Vercel";case"node":return"Node";case"static":return"Static";case"cloudflare":return"Cloudflare";case"netlify":return"Netlify";case"auto":return"Auto";default:return z}}return null}catch{return null}}function D4($){let Z=w0($);if(Z?.devDependencies?.vite||Z?.dependencies?.vite)return"Vite";if(Z?.devDependencies?.webpack||Z?.dependencies?.webpack)return"webpack";if(Z?.devDependencies?.esbuild||Z?.dependencies?.esbuild)return"esbuild";if(F(R($,"tsconfig.json"))&&Z?.devDependencies?.typescript)return"TypeScript (tsc)";return null}function I4($){return["package.json","Cargo.toml","pyproject.toml","go.mod","build.zig","build.zig.zon","src/index.ts","src/index.js","src/main.ts","src/cli.ts","src/main.rs","src/lib.rs","src/main.zig","src/root.zig","src/__init__.py","main.py","__main__.py","main.go","cmd/main.go","README.md","SPECIFICATION.md","BINARY-FORMAT.md","tsconfig.json","wrangler.toml","vercel.json"].filter((Q)=>F(R($,Q)))}function K4($,Z){let Q={};if(Z?.scripts){for(let X of["build","test","lint","dev","start"])if(Z.scripts[X]){let z=F(R($,"bun.lock"))||F(R($,"bun.lockb"))?"bun run":"npm run";Q[X]=`${z} ${X}`}}if(F(R($,"Cargo.toml"))){if(!Q.build)Q.build="cargo build --release";if(!Q.test)Q.test="cargo test";if(!Q.lint)Q.lint="cargo clippy"}if(F(R($,"build.zig"))){if(!Q.build)Q.build="zig build";if(!Q.test)Q.test="zig build test"}if(F(R($,"go.mod"))){if(!Q.build)Q.build="go build ./...";if(!Q.test)Q.test="go test ./..."}if(F(R($,"pyproject.toml"))||F(R($,"pytest.ini"))){if(!Q.test)Q.test="pytest"}return Q}function L4($,Z,Q,X){let z=[];if(X&&X!=="Unknown")z.push(X);let J=new Set(["frontend","backend","database","build","css","state","monorepo"]);for(let H of Q)if(J.has(H.category))z.push(H.name);if(F(R($,"bunfig.toml")))z.push("Bun");else if(F(R($,"deno.json"))||F(R($,"deno.jsonc")))z.push("Deno");if(z.length<3&&Z?.dependencies){let H=Object.keys(Z.dependencies).slice(0,5);for(let U of H)if(!z.some((q)=>q.toLowerCase().includes(U.toLowerCase())))z.push(U)}return z}function M4($){let Z=w0($),Q=S8($),X=Y4($),z=B4($),J=z.type,H=G4($),U=V4($),q=_4($),Y=W4($),B=D4($),G=Q.find((E)=>E.category==="frontend"),V=Q.find((E)=>E.category==="css"),W=Q.find((E)=>E.category==="ui"),D=Q.find((E)=>E.category==="state"),_=Q.find((E)=>E.category==="backend"),O=Q.find((E)=>E.category==="database"),I=E0[J]||E0.library,L=J==="framework",N=Q.some((E)=>E.slug==="svelte"||E.slug==="sveltekit"),A=L&&N?"svelte":L?null:null,T=J==="svelte"||A==="svelte",P=T?O4($):null,w=T&&Q.some((E)=>E.slug==="sveltekit"),K=new Set(["css_framework","ui_library","database","connection","hosting"]),C={},u=y.filter((E)=>E.path.startsWith("stack."));for(let E of u){let g=E.path.replace("stack.","");if(!I.includes(E.category)){C[g]="slotignored";continue}if(L&&K.has(g)){C[g]="slotignored";continue}switch(g){case"frontend":C[g]=G?.name??(J==="cli"?"CLI":"");break;case"css_framework":C[g]=V?.name??"";break;case"ui_library":C[g]=W?.name??"";break;case"state_management":C[g]=T?D?.name??"Runes":D?.name??"";break;case"backend":C[g]=T?w?"SvelteKit":_?.name??"":_?.name??"";break;case"api_type":C[g]=w?"Server Routes":"";break;case"runtime":C[g]=H!=="Unknown"?H:"";break;case"database":C[g]=O?.name??"";break;case"connection":C[g]=O?.name??"";break;case"hosting":if(T&&P)C[g]=P;else C[g]=Y??"";break;case"build":C[g]=T?"Vite":B??"";break;case"cicd":C[g]=q??"";break;case"package_manager":C[g]=U;break;default:C[g]="";break}}let m={},S=y.filter((E)=>E.path.startsWith("monorepo."));for(let E of S){let g=E.path.replace("monorepo.","");if(!I.includes(E.category))m[g]="slotignored";else m[g]=""}let j={name:Z?.name??$.split("/").pop()??"project",goal:Z?.description??"",main_language:X,type:J};if(L&&A)j.framework=A;let x8=L4($,Z,Q,X),h8=I4($),y8=K4($,Z),f1={faf_version:J4,project:j,stack:C,human_context:{who:"",what:Z?.description??"",why:"",where:"",when:"",how:""},monorepo:m,_meta:{found:z.found}};if(x8.length>0)f1.tech_stack=x8;if(h8.length>0)f1.key_files=h8;if(Object.keys(y8).length>0)f1.commands=y8;return f1}import{existsSync as zG,readFileSync as JG}from"fs";import{join as HG}from"path";var R4={MIN_LENGTH:8,MAX_LENGTH:280},XG=[/^(see|see\s+the?)\s+readme/i,/^(tbd|todo|fixme|coming\s+soon)\b/i,/^(software|application|app|project|tool|library|framework)\.?$/i,/^(for\s+users|for\s+developers)\.?$/i,/^(description|goal|name|title)\.?$/i,/^lorem\s+ipsum/i,/^example(\s+\w+)?\.?$/i];function n($){let Z=$.trim();if(Z.length<R4.MIN_LENGTH)return!1;if(Z.length>R4.MAX_LENGTH)return!1;if(XG.some((Q)=>Q.test(Z)))return!1;if(/^[\s|\-*+]/.test(Z))return!1;if(Z.split(`
224
+ `).length>4)return!1;return!0}function UG($){let Z=$.split(`
225
225
  `),Q=0;while(Q<Z.length&&/^(#\s|$)/.test(Z[Q].trim()))Q++;while(Q<Z.length){let X=Z[Q].trim();if(/^\[!\[/.test(X)){Q++;continue}if(/^!\[/.test(X)){Q++;continue}if(/^<img\s/i.test(X)){Q++;continue}if(X===""){Q++;continue}break}return Z.slice(Q).join(`
226
- `)}function y_($){let Q=h_($).split(`
226
+ `)}function qG($){let Q=UG($).split(`
227
227
  `),X=[];for(let z of Q){let J=z.trim();if(J===""){if(X.length>0)break;continue}if(/^(#|>|```|---|\||\s*[-*+]\s|\d+\.\s)/.test(J))break;if(/^\*\*[^*]+\*\*\s*$/.test(J)&&X.length===0)continue;X.push(J)}if(X.length===0)return null;return X.join(" ").trim()}function b0($,Z){let Q=$.split(`
228
- `),X=0;while(X<Q.length){let J=Q[X].trim().match(/^(#{1,6})\s+(.+)$/);if(J&&Z.test(J[2])){let H=J[1].length,U=[];X++;while(X<Q.length){let q=Q[X].trim(),Y=q.match(/^(#{1,6})\s+/);if(Y&&Y[1].length<=H)break;if(q===""){if(U.length>0)break;X++;continue}if(/^(>|```|---|\||\s*[-*+]\s|\d+\.\s)/.test(q))break;U.push(q),X++}if(U.length===0)return null;return U.join(" ").trim()}X++}return null}function f_($){let Z=b0($,/^(use\s+cases?|goal)\b/i);if(Z&&s(Z))return Z;let Q=y_($);if(Q&&s(Q))return Q;return}function u_($){let Z=b0($,/^(about|description|overview|what(\s+is\s+this)?)\b/i);if(Z&&s(Z))return Z;return}function k_($){let Z=b0($,/^(audience|users?|for\s+whom|who(\s+is\s+this\s+for)?)\b/i);if(Z&&s(Z))return Z;return}function v_($){let Z=b0($,/^(why|motivation|problem|rationale)\b/i);if(Z&&s(Z))return Z;return}function m_($){let Z=b0($,/^(deployment|where(\s+it\s+runs)?|hosting)\b/i);if(Z&&s(Z))return Z;return}function p_($){let Z=b0($,/^(status|history|timeline|since|launched)\b/i);if(Z&&s(Z))return Z;return}function l_($){let Z=b0($,/^(architecture|how(\s+it\s+works)?|approach|design)\b/i);if(Z&&s(Z))return Z;return}function T8($){let Z=["README.md","README.MD","Readme.md","readme.md"],Q=null;for(let O of Z){let D=x_($,O);if(j_(D)){Q=D;break}}if(!Q)return{};let X;try{X=g_(Q,"utf-8")}catch{return{}}let z={},J=f_(X);if(J)z.project={goal:J};let H={},U=u_(X);if(U)H.what=U;let q=k_(X);if(q)H.who=q;let Y=v_(X);if(Y)H.why=Y;let _=m_(X);if(_)H.where=_;let B=p_(X);if(B)H.when=B;let G=l_(X);if(G)H.how=G;if(Object.keys(H).length>0)z.human_context=H;return z}import{existsSync as d_,readFileSync as c_}from"fs";import{join as i_}from"path";function a_($,Z){let Q=$.split(`
229
- `),X=!1;for(let z of Q){let J=z.trim();if(/^\[/.test(J)){X=J==="[package]";continue}if(!X)continue;let H=J.match(new RegExp(`^${Z}\\s*=\\s*(.+)$`));if(H){let U=H[1].trim();U=U.replace(/\s*#.*$/,"").trim();let q=U.match(/^"((?:[^"\\]|\\.)*)"$/)||U.match(/^'((?:[^'\\]|\\.)*)'$/);if(q)return q[1];return U}}return null}function w8($){let Z=i_($,"Cargo.toml");if(!d_(Z))return{};let Q;try{Q=c_(Z,"utf-8")}catch{return{}}let X=a_(Q,"description");if(X&&s(X))return{project:{goal:X}};return{}}function r_($,Z){let Q={project:{...Z.project??{},...$.project??{}},human_context:{...Z.human_context??{},...$.human_context??{}}};if(Q.project&&Object.keys(Q.project).length===0)delete Q.project;if(Q.human_context&&Object.keys(Q.human_context).length===0)delete Q.human_context;return Q}function qZ($){return r_(T8($),w8($))}function s_($){let Z=HZ($),Q=qZ($),X=m2(Z,Q);n_(X);let z=m2(X,A8($));return m2(z,{human_context:N8($)})}function n_($){let Z=$.project?.type??"library",Q=E0[Z]||E0.library;for(let X of y){if(Q.includes(X.category))continue;let[z,J]=X.path.split(".");if(z==="stack"&&$.stack)$.stack[J]="slotignored";if(z==="monorepo"&&$.monorepo)$.monorepo[J]="slotignored"}}function m2($,Z){let Q={...$};for(let[X,z]of Object.entries(Z)){let J=Q[X];if(D0(J))Q[X]=z;else if(typeof z==="object"&&z!==null&&!Array.isArray(z)&&typeof J==="object"&&J!==null&&!Array.isArray(J))Q[X]=m2(J,z)}return Q}export{kU as writeServerCard,EU as writeProjectHtml,PZ as validateFaf,d0 as utcNow,A8 as turboCatSlots,k9 as turboCatScan,OZ as slotsByCategory,O9 as seedSixWsFromGoal,a2 as scoreFafYaml,Hq as runLoop,d9 as relentlessContextDetailed,N8 as relentlessContext,fU as registryName,yU as registryMeta,d6 as readFafRaw,RU as readFaf,B8 as questionForSlot,Bq as publicQuestions,j2 as normalizeAnswer,I9 as loopVerdict,i2 as kernel,D0 as isPlaceholder,W9 as isHumanSlot,S2 as isEmptyValue,$q as interviewForMissing,Gq as gradeAnswers,e0 as getTier,IZ as getNextTier,e6 as generateServerCard,s6 as generateProjectHtml,H9 as fromClaudeDir,c6 as findFafFile,J8 as fafContextBlock,j8 as enrichScore,_q as deriveQuestionSet,D9 as classifyGaps,N1 as canonicalPriority,zq as buildTableOf8,Vq as buildReceipt,s_ as assembleFreshFaf,R9 as answersMatch,$0 as TIERS,G9 as STACK_INTERVIEW,n0 as SLOT_BY_PATH,y as SLOTS,_8 as SIX_WS_INTERVIEW,$9 as REGISTRY_PUBLISHER_KEY,W0 as PRIORITY_RANK,H8 as PRIORITY_ORDER,u1 as PLACEHOLDERS,E2 as KNOWLEDGE_TYPES,B9 as INTERVIEW_VERSION,eU as INTERVIEW_PATHS,V9 as INTERVIEW_BY_PATH,i0 as INTERVIEW,N0 as FafmSoul,t0 as FAF_HEX,DZ as ENTERPRISE_SLOTS,V8 as BENCH_VERSION,WZ as BASE_SLOTS,M9 as ALIAS_GROUPS};
228
+ `),X=0;while(X<Q.length){let J=Q[X].trim().match(/^(#{1,6})\s+(.+)$/);if(J&&Z.test(J[2])){let H=J[1].length,U=[];X++;while(X<Q.length){let q=Q[X].trim(),Y=q.match(/^(#{1,6})\s+/);if(Y&&Y[1].length<=H)break;if(q===""){if(U.length>0)break;X++;continue}if(/^(>|```|---|\||\s*[-*+]\s|\d+\.\s)/.test(q))break;U.push(q),X++}if(U.length===0)return null;return U.join(" ").trim()}X++}return null}function YG($){let Z=b0($,/^(use\s+cases?|goal)\b/i);if(Z&&n(Z))return Z;let Q=qG($);if(Q&&n(Q))return Q;return}function BG($){let Z=b0($,/^(about|description|overview|what(\s+is\s+this)?)\b/i);if(Z&&n(Z))return Z;return}function GG($){let Z=b0($,/^(audience|users?|for\s+whom|who(\s+is\s+this\s+for)?)\b/i);if(Z&&n(Z))return Z;return}function VG($){let Z=b0($,/^(why|motivation|problem|rationale)\b/i);if(Z&&n(Z))return Z;return}function _G($){let Z=b0($,/^(deployment|where(\s+it\s+runs)?|hosting)\b/i);if(Z&&n(Z))return Z;return}function WG($){let Z=b0($,/^(status|history|timeline|since|launched)\b/i);if(Z&&n(Z))return Z;return}function OG($){let Z=b0($,/^(architecture|how(\s+it\s+works)?|approach|design)\b/i);if(Z&&n(Z))return Z;return}function j8($){let Z=["README.md","README.MD","Readme.md","readme.md"],Q=null;for(let W of Z){let D=HG($,W);if(zG(D)){Q=D;break}}if(!Q)return{};let X;try{X=JG(Q,"utf-8")}catch{return{}}let z={},J=YG(X);if(J)z.project={goal:J};let H={},U=BG(X);if(U)H.what=U;let q=GG(X);if(q)H.who=q;let Y=VG(X);if(Y)H.why=Y;let B=_G(X);if(B)H.where=B;let G=WG(X);if(G)H.when=G;let V=OG(X);if(V)H.how=V;if(Object.keys(H).length>0)z.human_context=H;return z}import{existsSync as DG,readFileSync as IG}from"fs";import{join as KG}from"path";function LG($,Z){let Q=$.split(`
229
+ `),X=!1;for(let z of Q){let J=z.trim();if(/^\[/.test(J)){X=J==="[package]";continue}if(!X)continue;let H=J.match(new RegExp(`^${Z}\\s*=\\s*(.+)$`));if(H){let U=H[1].trim();U=U.replace(/\s*#.*$/,"").trim();let q=U.match(/^"((?:[^"\\]|\\.)*)"$/)||U.match(/^'((?:[^'\\]|\\.)*)'$/);if(q)return q[1];return U}}return null}function g8($){let Z=KG($,"Cargo.toml");if(!DG(Z))return{};let Q;try{Q=IG(Z,"utf-8")}catch{return{}}let X=LG(Q,"description");if(X&&n(X))return{project:{goal:X}};return{}}function MG($,Z){let Q={project:{...Z.project??{},...$.project??{}},human_context:{...Z.human_context??{},...$.human_context??{}}};if(Q.project&&Object.keys(Q.project).length===0)delete Q.project;if(Q.human_context&&Object.keys(Q.human_context).length===0)delete Q.human_context;return Q}function F4($){return MG(j8($),g8($))}function RG($){let Z=M4($),Q=F4($),X=d2(Z,Q);FG(X);let z=d2(X,b8($));return d2(z,{human_context:E8($)})}function FG($){let Z=$.project?.type??"library",Q=E0[Z]||E0.library;for(let X of y){if(Q.includes(X.category))continue;let[z,J]=X.path.split(".");if(z==="stack"&&$.stack)$.stack[J]="slotignored";if(z==="monorepo"&&$.monorepo)$.monorepo[J]="slotignored"}}function d2($,Z){let Q={...$};for(let[X,z]of Object.entries(Z)){let J=Q[X];if(D0(J))Q[X]=z;else if(typeof z==="object"&&z!==null&&!Array.isArray(z)&&typeof J==="object"&&J!==null&&!Array.isArray(J))Q[X]=d2(J,z)}return Q}export{nU as writeServerCard,dU as writeProjectHtml,v4 as validateFaf,c0 as utcNow,Yq as upsertCatalog,b8 as turboCatSlots,eZ as turboCatScan,w4 as slotsByCategory,wZ as seedSixWsFromGoal,n2 as scoreFafYaml,jq as runLoop,z4 as relentlessContextDetailed,E8 as relentlessContext,Y8 as registryName,q8 as registryMeta,Zq as readFafa,$Z as readFafRaw,hU as readFaf,I8 as questionForSlot,fq as publicQuestions,Bq as projectCards,h2 as normalizeAnswer,SZ as loopVerdict,s2 as kernel,D0 as isPlaceholder,bZ as isHumanSlot,x2 as isEmptyValue,Tq as interviewForMissing,kq as gradeAnswers,$1 as getTier,S4 as getNextTier,j2 as generateServerCard,JZ as generateProjectHtml,WZ as generateA2ACard,MZ as fromClaudeDir,Qq as findFafaFile,ZZ as findFafFile,d0 as fafContextBlock,m8 as enrichScore,yq as deriveQuestionSet,EZ as classifyGaps,A1 as canonicalPriority,Eq as buildTableOf8,vq as buildReceipt,RG as assembleFreshFaf,hZ as answersMatch,Z0 as TIERS,TZ as STACK_INTERVIEW,o0 as SLOT_BY_PATH,y as SLOTS,D8 as SIX_WS_INTERVIEW,YZ as REGISTRY_PUBLISHER_KEY,O0 as PRIORITY_RANK,V8 as PRIORITY_ORDER,k1 as PLACEHOLDERS,g2 as KNOWLEDGE_TYPES,PZ as INTERVIEW_VERSION,Pq as INTERVIEW_PATHS,CZ as INTERVIEW_BY_PATH,r0 as INTERVIEW,A0 as FafmSoul,e0 as FAF_HEX,E4 as ENTERPRISE_SLOTS,L8 as BENCH_VERSION,b4 as BASE_SLOTS,xZ as ALIAS_GROUPS,VZ as A2A_CONTEXT_URI};
230
230
 
231
- //# debugId=69069B77F79BEDA164756E2164756E21
231
+ //# debugId=4E2087397DFEC9B764756E2164756E21
232
232
  //# sourceMappingURL=index.js.map