@swifty.js/swifty 0.0.26 → 0.0.27

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.
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __swiftyCreateRequire } from "node:module";
3
3
  const require = __swiftyCreateRequire(import.meta.url);
4
- import{c as F}from"./chunk-QN27QEFS.js";import{a as y}from"./chunk-7MHXMDYC.js";import{D as d,I as D,R as c,e as v}from"./chunk-SIWLMWHH.js";import{b as k}from"./chunk-E55KH72M.js";import{readFileSync as _,writeFileSync as j,mkdirSync as M,statSync as $}from"fs";import{homedir as C,tmpdir as L}from"os";import{join as p,resolve as f,dirname as A}from"path";var E=D({module:"permissions"}),T=[],z=["ls","pwd","echo","cat","head","tail","wc","date","whoami","uname","hostname","which","type","file","git status","git log","git diff","git branch","git show","git rev-parse","git remote","bun test","bun run","npm test","npm run","go test","go build","go vet","python -c","node -e"],O={Bash:"command",PowerShell:"command",ReadFile:"file_path",WriteFile:"file_path",EditFile:"file_path",Glob:"pattern",Grep:"pattern"},Y=[".swifty/config.yaml",".swifty/permissions.local.yaml",".swifty/skills/"];function w(i,e){if(i===k)return F(c(e,"server",""),c(e,"tool",""));let t=O[i];if(!t)return"";let s=e[t];return typeof s=="string"?s:""}var R=class{allowedRoots;denyWritePaths;projectDir;constructor(e){this.projectDir=f(e),this.allowedRoots=[this.projectDir,L()],this.denyWritePaths=Y.map(t=>p(this.projectDir,t))}addRoot(e){this.allowedRoots.push(f(e))}addDenyWrite(e){this.denyWritePaths.push(f(e))}checkDenyWrite(e){let t=f(e);for(let s of this.denyWritePaths)if(t.startsWith(s))return{effect:"deny",reason:`Path ${e} is in deny-write list`};return null}check(e){let t=f(e);for(let s of this.allowedRoots)if(t.startsWith(s))return null;return{effect:"deny",reason:`Path ${e} is outside allowed directories`}}};function B(i,e){let t="^"+i.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".")+"$";try{return new RegExp(t).test(e)}catch(s){return E.error({err:s},"permissions operation failed"),!1}}var G=/^(\w+)\((.+)\)$/;function S(i){let e;try{e=_(i,"utf-8")}catch(n){return n.code!=="ENOENT"&&E.error({err:n},"permissions operation failed"),[]}let t=d.object({rule:d.string().optional(),effect:d.string().optional()}),s;try{let n=y.load(e);s=v(d.array(t),n)}catch(n){return E.error({err:n},"permissions operation failed"),[]}let r=[];for(let n of s){if(n.effect!=="allow"&&n.effect!=="deny"&&n.effect!=="ask")continue;let o=G.exec((n.rule??"").trim());o&&r.push({tool:o[1],pattern:o[2],effect:n.effect})}return r}function b(i,e,t){let s=null;for(let r of i)if(!(r.tool!==e&&r.tool!=="*")&&B(r.pattern,t)){if(r.effect==="deny")return"deny";r.effect==="ask"?s="ask":s??="allow"}return s}var P=class{userPath;projectPath;localPath;cache=new Map;constructor(e){this.userPath=p(C(),".swifty","permissions.yaml"),this.projectPath=p(e,".swifty","permissions.yaml"),this.localPath=p(e,".swifty","permissions.local.yaml")}rulesFor(e){let t;try{t=$(e,{bigint:!0})}catch{return this.cache.delete(e),[]}let s=this.cache.get(e);if(s?.mtimeNs===t.mtimeNs&&s.size===t.size)return s.rules;let r=S(e);return this.cache.set(e,{mtimeNs:t.mtimeNs,size:t.size,rules:r}),r}snapshot(){return[this.userPath,this.projectPath,this.localPath].flatMap(e=>this.rulesFor(e))}evaluate(e,t){return b(this.snapshot(),e,t)}appendLocalRule(e){M(A(this.localPath),{recursive:!0});let t=S(this.localPath);if(t.some(n=>n.tool===e.tool&&n.pattern===e.pattern&&n.effect===e.effect))return;t.push(e);let r=t.map(n=>({rule:`${n.tool}(${n.pattern})`,effect:n.effect}));j(this.localPath,y.dump(r),"utf-8")}};function I(i){for(let e of T)if(e.re.test(i))return e.reason;return""}function N(i){let e=i.trim();return e.includes(">")||e.includes("|")||e.includes(";")||e.includes("&&")||e.includes("$(")||e.includes("`")?!1:z.some(t=>e===t||e.startsWith(t+" ")||e.startsWith(t+" "))}function U(i,e){switch(i){case"bypassPermissions":return"allow";case"plan":return e==="read"?"allow":"ask";case"acceptEdits":return e==="command"?"ask":"allow";default:return e==="read"?"allow":"ask"}}var W=class{mode;planFilePath="";sandboxEnabled=!1;sandboxAutoAllow=!1;sandbox;ruleEngine;constructor(e,t="default"){this.mode=t,this.sandbox=new R(e),this.ruleEngine=new P(e)}check(e,t,s){let r=w(e,s),n=null,o=()=>n??=this.ruleEngine.snapshot();if(this.mode==="plan"&&(e==="WriteFile"||e==="EditFile")&&c(s,"file_path","").includes(".swifty/plans/"))return{effect:"allow",reason:"Plan file write allowed in plan mode"};if(t==="command"&&N(r))return{effect:"allow",reason:"Safe read-only command"};let a=t==="command"?I(r):"";if(a)return{effect:"deny",reason:`Dangerous command blocked: ${a}`};if(this.sandboxEnabled&&this.sandboxAutoAllow&&e==="Bash"){let u=c(s,"command").split(/\s*(?:&&|\|\||[;|])\s*/).map(g=>g.trim()).filter(Boolean),l=!1;for(let g of u){let x=b(o(),e,g);if(x==="deny")return{effect:"deny",reason:"Permission rule: deny"};x==="ask"&&(l=!0)}return l?{effect:"ask",reason:"Permission rule: ask (sandbox does not override)"}:{effect:"allow",reason:"Sandbox auto-allow: OS sandbox active"}}let h=c(s,"file_path",c(s,"path",""));if((t==="read"||t==="write")&&h){if(t==="write"){let l=this.sandbox.checkDenyWrite(h);if(l)return l}let u=this.sandbox.check(h);if(u&&this.mode!=="bypassPermissions"){let l=this.ruleEngine.evaluate(e,r);return l?{effect:l,reason:`Permission rule: ${l}`}:{effect:"ask",reason:u.reason}}}let m=b(o(),e,r);return m?{effect:m,reason:`Permission rule: ${m}`}:{effect:U(this.mode,t),reason:`Mode: ${this.mode}`}}allowExtraRoot(e){this.sandbox.addRoot(e)}allowAlways(e,t){let s=w(e,t),r=e==="ReadFile"||e==="WriteFile"||e==="EditFile",n;if(r&&s){let o=f(s),a=!1;try{a=$(o).isDirectory()}catch{}n=p(a?o:A(o),"*")}else n=s.trim().split(/\s+/).slice(0,2).join(" ")+"*";this.ruleEngine.appendLocalRule({tool:e,pattern:n,effect:"allow"})}describeToolAction(e,t){let s=w(e,t);if(s)return s;let r=[];for(let[n,o]of Object.entries(t)){let a=String(o);a.length>80&&(a=a.slice(0,80)+"..."),r.push(`${n}: ${a}`)}return r.join(", ")}};export{w as a,R as b,b as c,P as d,N as e,W as f};
4
+ import{c as F}from"./chunk-A57FEYSN.js";import{a as y}from"./chunk-WO6DL7OB.js";import{C as d,H as D,Q as c,d as v}from"./chunk-5I2WXSGV.js";import{b as k}from"./chunk-E55KH72M.js";import{readFileSync as _,writeFileSync as j,mkdirSync as M,statSync as $}from"fs";import{homedir as C,tmpdir as L}from"os";import{join as p,resolve as f,dirname as A}from"path";var E=D({module:"permissions"}),T=[],z=["ls","pwd","echo","cat","head","tail","wc","date","whoami","uname","hostname","which","type","file","git status","git log","git diff","git branch","git show","git rev-parse","git remote","bun test","bun run","npm test","npm run","go test","go build","go vet","python -c","node -e"],O={Bash:"command",PowerShell:"command",ReadFile:"file_path",WriteFile:"file_path",EditFile:"file_path",Glob:"pattern",Grep:"pattern"},Y=[".swifty/config.yaml",".swifty/permissions.local.yaml",".swifty/skills/"];function w(i,e){if(i===k)return F(c(e,"server",""),c(e,"tool",""));let t=O[i];if(!t)return"";let s=e[t];return typeof s=="string"?s:""}var R=class{allowedRoots;denyWritePaths;projectDir;constructor(e){this.projectDir=f(e),this.allowedRoots=[this.projectDir,L()],this.denyWritePaths=Y.map(t=>p(this.projectDir,t))}addRoot(e){this.allowedRoots.push(f(e))}addDenyWrite(e){this.denyWritePaths.push(f(e))}checkDenyWrite(e){let t=f(e);for(let s of this.denyWritePaths)if(t.startsWith(s))return{effect:"deny",reason:`Path ${e} is in deny-write list`};return null}check(e){let t=f(e);for(let s of this.allowedRoots)if(t.startsWith(s))return null;return{effect:"deny",reason:`Path ${e} is outside allowed directories`}}};function B(i,e){let t="^"+i.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".")+"$";try{return new RegExp(t).test(e)}catch(s){return E.error({err:s},"permissions operation failed"),!1}}var G=/^(\w+)\((.+)\)$/;function S(i){let e;try{e=_(i,"utf-8")}catch(n){return n.code!=="ENOENT"&&E.error({err:n},"permissions operation failed"),[]}let t=d.object({rule:d.string().optional(),effect:d.string().optional()}),s;try{let n=y.load(e);s=v(d.array(t),n)}catch(n){return E.error({err:n},"permissions operation failed"),[]}let r=[];for(let n of s){if(n.effect!=="allow"&&n.effect!=="deny"&&n.effect!=="ask")continue;let o=G.exec((n.rule??"").trim());o&&r.push({tool:o[1],pattern:o[2],effect:n.effect})}return r}function b(i,e,t){let s=null;for(let r of i)if(!(r.tool!==e&&r.tool!=="*")&&B(r.pattern,t)){if(r.effect==="deny")return"deny";r.effect==="ask"?s="ask":s??="allow"}return s}var P=class{userPath;projectPath;localPath;cache=new Map;constructor(e){this.userPath=p(C(),".swifty","permissions.yaml"),this.projectPath=p(e,".swifty","permissions.yaml"),this.localPath=p(e,".swifty","permissions.local.yaml")}rulesFor(e){let t;try{t=$(e,{bigint:!0})}catch{return this.cache.delete(e),[]}let s=this.cache.get(e);if(s?.mtimeNs===t.mtimeNs&&s.size===t.size)return s.rules;let r=S(e);return this.cache.set(e,{mtimeNs:t.mtimeNs,size:t.size,rules:r}),r}snapshot(){return[this.userPath,this.projectPath,this.localPath].flatMap(e=>this.rulesFor(e))}evaluate(e,t){return b(this.snapshot(),e,t)}appendLocalRule(e){M(A(this.localPath),{recursive:!0});let t=S(this.localPath);if(t.some(n=>n.tool===e.tool&&n.pattern===e.pattern&&n.effect===e.effect))return;t.push(e);let r=t.map(n=>({rule:`${n.tool}(${n.pattern})`,effect:n.effect}));j(this.localPath,y.dump(r),"utf-8")}};function I(i){for(let e of T)if(e.re.test(i))return e.reason;return""}function N(i){let e=i.trim();return e.includes(">")||e.includes("|")||e.includes(";")||e.includes("&&")||e.includes("$(")||e.includes("`")?!1:z.some(t=>e===t||e.startsWith(t+" ")||e.startsWith(t+" "))}function U(i,e){switch(i){case"bypassPermissions":return"allow";case"plan":return e==="read"?"allow":"ask";case"acceptEdits":return e==="command"?"ask":"allow";default:return e==="read"?"allow":"ask"}}var W=class{mode;planFilePath="";sandboxEnabled=!1;sandboxAutoAllow=!1;sandbox;ruleEngine;constructor(e,t="default"){this.mode=t,this.sandbox=new R(e),this.ruleEngine=new P(e)}check(e,t,s){let r=w(e,s),n=null,o=()=>n??=this.ruleEngine.snapshot();if(this.mode==="plan"&&(e==="WriteFile"||e==="EditFile")&&c(s,"file_path","").includes(".swifty/plans/"))return{effect:"allow",reason:"Plan file write allowed in plan mode"};if(t==="command"&&N(r))return{effect:"allow",reason:"Safe read-only command"};let a=t==="command"?I(r):"";if(a)return{effect:"deny",reason:`Dangerous command blocked: ${a}`};if(this.sandboxEnabled&&this.sandboxAutoAllow&&e==="Bash"){let u=c(s,"command").split(/\s*(?:&&|\|\||[;|])\s*/).map(g=>g.trim()).filter(Boolean),l=!1;for(let g of u){let x=b(o(),e,g);if(x==="deny")return{effect:"deny",reason:"Permission rule: deny"};x==="ask"&&(l=!0)}return l?{effect:"ask",reason:"Permission rule: ask (sandbox does not override)"}:{effect:"allow",reason:"Sandbox auto-allow: OS sandbox active"}}let h=c(s,"file_path",c(s,"path",""));if((t==="read"||t==="write")&&h){if(t==="write"){let l=this.sandbox.checkDenyWrite(h);if(l)return l}let u=this.sandbox.check(h);if(u&&this.mode!=="bypassPermissions"){let l=this.ruleEngine.evaluate(e,r);return l?{effect:l,reason:`Permission rule: ${l}`}:{effect:"ask",reason:u.reason}}}let m=b(o(),e,r);return m?{effect:m,reason:`Permission rule: ${m}`}:{effect:U(this.mode,t),reason:`Mode: ${this.mode}`}}allowExtraRoot(e){this.sandbox.addRoot(e)}allowAlways(e,t){let s=w(e,t),r=e==="ReadFile"||e==="WriteFile"||e==="EditFile",n;if(r&&s){let o=f(s),a=!1;try{a=$(o).isDirectory()}catch{}n=p(a?o:A(o),"*")}else n=s.trim().split(/\s+/).slice(0,2).join(" ")+"*";this.ruleEngine.appendLocalRule({tool:e,pattern:n,effect:"allow"})}describeToolAction(e,t){let s=w(e,t);if(s)return s;let r=[];for(let[n,o]of Object.entries(t)){let a=String(o);a.length>80&&(a=a.slice(0,80)+"..."),r.push(`${n}: ${a}`)}return r.join(", ")}};export{w as a,R as b,b as c,P as d,N as e,W as f};
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __swiftyCreateRequire } from "node:module";
3
3
  const require = __swiftyCreateRequire(import.meta.url);
4
- import{a as i,d as s}from"./chunk-QN27QEFS.js";var a=10,p=2.5,E="advanced-tool-use-2025-11-20",f=new Set(["api.anthropic.com"]),d="SWIFTY_MCP_LOADING";function u(o){if(!o)return!0;try{return f.has(new URL(o).hostname.toLowerCase())}catch{return!1}}function l(o){return Math.floor(o/p)}function m(o,t,e,n=a){let r=(process.env[d]??"").trim().toLowerCase();if(r==="eager"||r==="native"||r==="dispatch")return r;if(e<=0)return"eager";let c=t*n/100;return l(e)<c?"eager":u(o)?"native":"dispatch"}function g(o){let t=0;for(let e of o.listTools())if(e.name.startsWith(i))try{t+=JSON.stringify(e.schema()).length}catch{t+=e.name.length+(e.description?.length??0)}return t}function T(o,t){o.mcpLoadingMode=t;let e=t==="eager";for(let n of o.listTools())s(n)&&typeof n.setDeferLoading=="function"&&n.setDeferLoading(!e);o.exposeToolSearch=!e,o.exposeMcpCall=t==="dispatch"}function M(o,t,e){let n=m(t,e,g(o));return T(o,n),n}export{E as a,T as b,M as c};
4
+ import{a as i,d as s}from"./chunk-A57FEYSN.js";var a=10,p=2.5,E="advanced-tool-use-2025-11-20",f=new Set(["api.anthropic.com"]),d="SWIFTY_MCP_LOADING";function u(o){if(!o)return!0;try{return f.has(new URL(o).hostname.toLowerCase())}catch{return!1}}function l(o){return Math.floor(o/p)}function m(o,t,e,n=a){let r=(process.env[d]??"").trim().toLowerCase();if(r==="eager"||r==="native"||r==="dispatch")return r;if(e<=0)return"eager";let c=t*n/100;return l(e)<c?"eager":u(o)?"native":"dispatch"}function g(o){let t=0;for(let e of o.listTools())if(e.name.startsWith(i))try{t+=JSON.stringify(e.schema()).length}catch{t+=e.name.length+(e.description?.length??0)}return t}function T(o,t){o.mcpLoadingMode=t;let e=t==="eager";for(let n of o.listTools())s(n)&&typeof n.setDeferLoading=="function"&&n.setDeferLoading(!e);o.exposeToolSearch=!e,o.exposeMcpCall=t==="dispatch"}function M(o,t,e){let n=m(t,e,g(o));return T(o,n),n}export{E as a,T as b,M as c};
@@ -0,0 +1,35 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __swiftyCreateRequire } from "node:module";
3
+ const require = __swiftyCreateRequire(import.meta.url);
4
+ function $n(T){return T&&T.__esModule&&Object.prototype.hasOwnProperty.call(T,"default")?T.default:T}var Y={},Oe={},Z={},un;function de(){if(un)return Z;un=1;function T(h){return typeof h>"u"||h===null}function x(h){return typeof h=="object"&&h!==null}function _(h){return Array.isArray(h)?h:T(h)?[]:[h]}function N(h,a){if(a){let S=Object.keys(a);for(let o=0,u=S.length;o<u;o+=1){let C=S[o];h[C]=a[C]}}return h}function d(h,a){let S="";for(let o=0;o<a;o+=1)S+=h;return S}function A(h){return h===0&&Number.NEGATIVE_INFINITY===1/h}return Z.isNothing=T,Z.isObject=x,Z.toArray=_,Z.repeat=d,Z.isNegativeZero=A,Z.extend=N,Z}var Pe,fn;function me(){if(fn)return Pe;fn=1;function T(_,N){let d="",A=_.reason||"(unknown reason)";return _.mark?(_.mark.name&&(d+='in "'+_.mark.name+'" '),d+="("+(_.mark.line+1)+":"+(_.mark.column+1)+")",!N&&_.mark.snippet&&(d+=`
5
+
6
+ `+_.mark.snippet),A+" "+d):A}function x(_,N){Error.call(this),this.name="YAMLException",this.reason=_,this.mark=N,this.message=T(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return x.prototype=Object.create(Error.prototype),x.prototype.constructor=x,x.prototype.toString=function(N){return this.name+": "+T(this,N)},Pe=x,Pe}var De,pn;function Jn(){if(pn)return De;pn=1;let T=de();function x(d,A,h,a,S){let o="",u="",C=Math.floor(S/2)-1;return a-A>C&&(o=" ... ",A=a-C+o.length),h-a>C&&(u=" ...",h=a+C-u.length),{str:o+d.slice(A,h).replace(/\t/g,"\u2192")+u,pos:a-A+o.length}}function _(d,A){return T.repeat(" ",A-d.length)+d}function N(d,A){if(A=Object.create(A||null),!d.buffer)return null;A.maxLength||(A.maxLength=79),typeof A.indent!="number"&&(A.indent=1),typeof A.linesBefore!="number"&&(A.linesBefore=3),typeof A.linesAfter!="number"&&(A.linesAfter=2);let h=/\r?\n|\r|\0/g,a=[0],S=[],o,u=-1;for(;o=h.exec(d.buffer);)S.push(o.index),a.push(o.index+o[0].length),d.position<=o.index&&u<0&&(u=a.length-2);u<0&&(u=a.length-1);let C="",O=Math.min(d.line+A.linesAfter,S.length).toString().length,R=A.maxLength-(A.indent+O+3);for(let M=1;M<=A.linesBefore&&!(u-M<0);M++){let B=x(d.buffer,a[u-M],S[u-M],d.position-(a[u]-a[u-M]),R);C=T.repeat(" ",A.indent)+_((d.line-M+1).toString(),O)+" | "+B.str+`
7
+ `+C}let W=x(d.buffer,a[u],S[u],d.position,R);C+=T.repeat(" ",A.indent)+_((d.line+1).toString(),O)+" | "+W.str+`
8
+ `,C+=T.repeat("-",A.indent+O+3+W.pos)+`^
9
+ `;for(let M=1;M<=A.linesAfter&&!(u+M>=S.length);M++){let B=x(d.buffer,a[u+M],S[u+M],d.position-(a[u]-a[u+M]),R);C+=T.repeat(" ",A.indent)+_((d.line+M+1).toString(),O)+" | "+B.str+`
10
+ `}return C.replace(/\n$/,"")}return De=N,De}var je,an;function P(){if(an)return je;an=1;let T=me(),x=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_=["scalar","sequence","mapping"];function N(A){let h={};return A!==null&&Object.keys(A).forEach(function(a){A[a].forEach(function(S){h[String(S)]=a})}),h}function d(A,h){if(h=h||{},Object.keys(h).forEach(function(a){if(x.indexOf(a)===-1)throw new T('Unknown option "'+a+'" is met in definition of "'+A+'" YAML type.')}),this.options=h,this.tag=A,this.kind=h.kind||null,this.resolve=h.resolve||function(){return!0},this.construct=h.construct||function(a){return a},this.instanceOf=h.instanceOf||null,this.predicate=h.predicate||null,this.represent=h.represent||null,this.representName=h.representName||null,this.defaultStyle=h.defaultStyle||null,this.multi=h.multi||!1,this.styleAliases=N(h.styleAliases||null),_.indexOf(this.kind)===-1)throw new T('Unknown kind "'+this.kind+'" is specified for "'+A+'" YAML type.')}return je=d,je}var He,sn;function Mn(){if(sn)return He;sn=1;let T=me(),x=P();function _(A,h){let a=[];return A[h].forEach(function(S){let o=a.length;a.forEach(function(u,C){u.tag===S.tag&&u.kind===S.kind&&u.multi===S.multi&&(o=C)}),a[o]=S}),a}function N(){let A={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function h(a){a.multi?(A.multi[a.kind].push(a),A.multi.fallback.push(a)):A[a.kind][a.tag]=A.fallback[a.tag]=a}for(let a=0,S=arguments.length;a<S;a+=1)arguments[a].forEach(h);return A}function d(A){return this.extend(A)}return d.prototype.extend=function(h){let a=[],S=[];if(h instanceof x)S.push(h);else if(Array.isArray(h))S=S.concat(h);else if(h&&(Array.isArray(h.implicit)||Array.isArray(h.explicit)))h.implicit&&(a=a.concat(h.implicit)),h.explicit&&(S=S.concat(h.explicit));else throw new T("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");a.forEach(function(u){if(!(u instanceof x))throw new T("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(u.loadKind&&u.loadKind!=="scalar")throw new T("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(u.multi)throw new T("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),S.forEach(function(u){if(!(u instanceof x))throw new T("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let o=Object.create(d.prototype);return o.implicit=(this.implicit||[]).concat(a),o.explicit=(this.explicit||[]).concat(S),o.compiledImplicit=_(o,"implicit"),o.compiledExplicit=_(o,"explicit"),o.compiledTypeMap=N(o.compiledImplicit,o.compiledExplicit),o},He=d,He}var Be,hn;function vn(){if(hn)return Be;hn=1;let T=P();return Be=new T("tag:yaml.org,2002:str",{kind:"scalar",construct:function(x){return x!==null?x:""}}),Be}var Ue,dn;function Fn(){if(dn)return Ue;dn=1;let T=P();return Ue=new T("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(x){return x!==null?x:[]}}),Ue}var Ke,mn;function qn(){if(mn)return Ke;mn=1;let T=P();return Ke=new T("tag:yaml.org,2002:map",{kind:"mapping",construct:function(x){return x!==null?x:{}}}),Ke}var Ge,gn;function Yn(){if(gn)return Ge;gn=1;let T=Mn();return Ge=new T({explicit:[vn(),Fn(),qn()]}),Ge}var We,An;function Pn(){if(An)return We;An=1;let T=P();function x(d){if(d===null)return!0;let A=d.length;return A===1&&d==="~"||A===4&&(d==="null"||d==="Null"||d==="NULL")}function _(){return null}function N(d){return d===null}return We=new T("tag:yaml.org,2002:null",{kind:"scalar",resolve:x,construct:_,predicate:N,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),We}var Qe,yn;function Dn(){if(yn)return Qe;yn=1;let T=P();function x(d){if(d===null)return!1;let A=d.length;return A===4&&(d==="true"||d==="True"||d==="TRUE")||A===5&&(d==="false"||d==="False"||d==="FALSE")}function _(d){return d==="true"||d==="True"||d==="TRUE"}function N(d){return Object.prototype.toString.call(d)==="[object Boolean]"}return Qe=new T("tag:yaml.org,2002:bool",{kind:"scalar",resolve:x,construct:_,predicate:N,represent:{lowercase:function(d){return d?"true":"false"},uppercase:function(d){return d?"TRUE":"FALSE"},camelcase:function(d){return d?"True":"False"}},defaultStyle:"lowercase"}),Qe}var Ve,Cn;function jn(){if(Cn)return Ve;Cn=1;let T=de(),x=P();function _(o){return o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102}function N(o){return o>=48&&o<=55}function d(o){return o>=48&&o<=57}function A(o){if(o===null)return!1;let u=o.length,C=0,O=!1;if(!u)return!1;let R=o[C];if((R==="-"||R==="+")&&(R=o[++C]),R==="0"){if(C+1===u)return!0;if(R=o[++C],R==="b"){for(C++;C<u;C++){if(R=o[C],R!=="0"&&R!=="1")return!1;O=!0}return O&&isFinite(h(o))}if(R==="x"){for(C++;C<u;C++){if(!_(o.charCodeAt(C)))return!1;O=!0}return O&&isFinite(h(o))}if(R==="o"){for(C++;C<u;C++){if(!N(o.charCodeAt(C)))return!1;O=!0}return O&&isFinite(h(o))}}for(;C<u;C++){if(!d(o.charCodeAt(C)))return!1;O=!0}return O?isFinite(h(o)):!1}function h(o){let u=o,C=1,O=u[0];if((O==="-"||O==="+")&&(O==="-"&&(C=-1),u=u.slice(1),O=u[0]),u==="0")return 0;if(O==="0"){if(u[1]==="b")return C*parseInt(u.slice(2),2);if(u[1]==="x")return C*parseInt(u.slice(2),16);if(u[1]==="o")return C*parseInt(u.slice(2),8)}return C*parseInt(u,10)}function a(o){return h(o)}function S(o){return Object.prototype.toString.call(o)==="[object Number]"&&o%1===0&&!T.isNegativeZero(o)}return Ve=new x("tag:yaml.org,2002:int",{kind:"scalar",resolve:A,construct:a,predicate:S,represent:{binary:function(o){return o>=0?"0b"+o.toString(2):"-0b"+o.toString(2).slice(1)},octal:function(o){return o>=0?"0o"+o.toString(8):"-0o"+o.toString(8).slice(1)},decimal:function(o){return o.toString(10)},hexadecimal:function(o){return o>=0?"0x"+o.toString(16).toUpperCase():"-0x"+o.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ve}var Xe,Sn;function Hn(){if(Sn)return Xe;Sn=1;let T=de(),x=P(),_=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),N=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function d(o){return o===null||!_.test(o)?!1:isFinite(parseFloat(o,10))?!0:N.test(o)}function A(o){let u=o.toLowerCase(),C=u[0]==="-"?-1:1;return"+-".indexOf(u[0])>=0&&(u=u.slice(1)),u===".inf"?C===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:u===".nan"?NaN:C*parseFloat(u,10)}let h=/^[-+]?[0-9]+e/;function a(o,u){if(isNaN(o))switch(u){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===o)switch(u){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===o)switch(u){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(T.isNegativeZero(o))return"-0.0";let C=o.toString(10);return h.test(C)?C.replace("e",".e"):C}function S(o){return Object.prototype.toString.call(o)==="[object Number]"&&(o%1!==0||T.isNegativeZero(o))}return Xe=new x("tag:yaml.org,2002:float",{kind:"scalar",resolve:d,construct:A,predicate:S,represent:a,defaultStyle:"lowercase"}),Xe}var $e,Tn;function Bn(){return Tn||(Tn=1,$e=Yn().extend({implicit:[Pn(),Dn(),jn(),Hn()]})),$e}var Je,wn;function Un(){return wn||(wn=1,Je=Bn()),Je}var Ze,bn;function Kn(){if(bn)return Ze;bn=1;let T=P(),x=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function N(h){return h===null?!1:x.exec(h)!==null||_.exec(h)!==null}function d(h){let a=0,S=null,o=x.exec(h);if(o===null&&(o=_.exec(h)),o===null)throw new Error("Date resolve error");let u=+o[1],C=+o[2]-1,O=+o[3];if(!o[4])return new Date(Date.UTC(u,C,O));let R=+o[4],W=+o[5],M=+o[6];if(o[7]){for(a=o[7].slice(0,3);a.length<3;)a+="0";a=+a}if(o[9]){let z=+o[10],D=+(o[11]||0);S=(z*60+D)*6e4,o[9]==="-"&&(S=-S)}let B=new Date(Date.UTC(u,C,O,R,W,M,a));return S&&B.setTime(B.getTime()-S),B}function A(h){return h.toISOString()}return Ze=new T("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:N,construct:d,instanceOf:Date,represent:A}),Ze}var ze,xn;function Gn(){if(xn)return ze;xn=1;let T=P();function x(_){return _==="<<"||_===null}return ze=new T("tag:yaml.org,2002:merge",{kind:"scalar",resolve:x}),ze}var en,_n;function Wn(){if(_n)return en;_n=1;let T=P(),x=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
11
+ \r`;function _(h){if(h===null)return!1;let a=0,S=h.length,o=x;for(let u=0;u<S;u++){let C=o.indexOf(h.charAt(u));if(!(C>64)){if(C<0)return!1;a+=6}}return a%8===0}function N(h){let a=h.replace(/[\r\n=]/g,""),S=a.length,o=x,u=0,C=[];for(let R=0;R<S;R++)R%4===0&&R&&(C.push(u>>16&255),C.push(u>>8&255),C.push(u&255)),u=u<<6|o.indexOf(a.charAt(R));let O=S%4*6;return O===0?(C.push(u>>16&255),C.push(u>>8&255),C.push(u&255)):O===18?(C.push(u>>10&255),C.push(u>>2&255)):O===12&&C.push(u>>4&255),new Uint8Array(C)}function d(h){let a="",S=0,o=h.length,u=x;for(let O=0;O<o;O++)O%3===0&&O&&(a+=u[S>>18&63],a+=u[S>>12&63],a+=u[S>>6&63],a+=u[S&63]),S=(S<<8)+h[O];let C=o%3;return C===0?(a+=u[S>>18&63],a+=u[S>>12&63],a+=u[S>>6&63],a+=u[S&63]):C===2?(a+=u[S>>10&63],a+=u[S>>4&63],a+=u[S<<2&63],a+=u[64]):C===1&&(a+=u[S>>2&63],a+=u[S<<4&63],a+=u[64],a+=u[64]),a}function A(h){return Object.prototype.toString.call(h)==="[object Uint8Array]"}return en=new T("tag:yaml.org,2002:binary",{kind:"scalar",resolve:_,construct:N,predicate:A,represent:d}),en}var nn,En;function Qn(){if(En)return nn;En=1;let T=P(),x=Object.prototype.hasOwnProperty,_=Object.prototype.toString;function N(A){if(A===null)return!0;let h={},a=A;for(let S=0,o=a.length;S<o;S+=1){let u=a[S],C=!1;if(_.call(u)!=="[object Object]")return!1;let O;for(O in u)if(x.call(u,O))if(!C)C=!0;else return!1;if(!C||x.call(h,O))return!1;Object.defineProperty(h,O,{value:!0})}return!0}function d(A){return A!==null?A:[]}return nn=new T("tag:yaml.org,2002:omap",{kind:"sequence",resolve:N,construct:d}),nn}var rn,In;function Vn(){if(In)return rn;In=1;let T=P(),x=Object.prototype.toString;function _(d){if(d===null)return!0;let A=d,h=new Array(A.length);for(let a=0,S=A.length;a<S;a+=1){let o=A[a];if(x.call(o)!=="[object Object]")return!1;let u=Object.keys(o);if(u.length!==1)return!1;h[a]=[u[0],o[u[0]]]}return!0}function N(d){if(d===null)return[];let A=d,h=new Array(A.length);for(let a=0,S=A.length;a<S;a+=1){let o=A[a],u=Object.keys(o);h[a]=[u[0],o[u[0]]]}return h}return rn=new T("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:_,construct:N}),rn}var ln,On;function Xn(){if(On)return ln;On=1;let T=P(),x=Object.prototype.hasOwnProperty;function _(d){if(d===null)return!0;let A=d;for(let h in A)if(x.call(A,h)&&A[h]!==null)return!1;return!0}function N(d){return d!==null?d:{}}return ln=new T("tag:yaml.org,2002:set",{kind:"mapping",resolve:_,construct:N}),ln}var on,kn;function cn(){return kn||(kn=1,on=Un().extend({implicit:[Kn(),Gn()],explicit:[Wn(),Qn(),Vn(),Xn()]})),on}var Ln;function Zn(){if(Ln)return Oe;Ln=1;let T=de(),x=me(),_=Jn(),N=cn(),d=Object.prototype.hasOwnProperty,A=1,h=2,a=3,S=4,o=1,u=2,C=3,O=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,R=/[\x85\u2028\u2029]/,W=/[,\[\]{}]/,M=/^(?:!|!!|![0-9A-Za-z-]+!)$/,B=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function z(e){return Object.prototype.toString.call(e)}function D(e){return e===10||e===13}function j(e){return e===9||e===32}function q(e){return e===9||e===32||e===10||e===13}function Q(e){return e===44||e===91||e===93||e===123||e===125}function ke(e){if(e>=48&&e<=57)return e-48;let i=e|32;return i>=97&&i<=102?i-97+10:-1}function Le(e){return e===120?2:e===117?4:e===85?8:0}function ge(e){return e>=48&&e<=57?e-48:-1}function le(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
12
+ `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function Ne(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function oe(e,i,f){i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:f}):e[i]=f}let Ae=new Array(256),te=new Array(256);for(let e=0;e<256;e++)Ae[e]=le(e)?1:0,te[e]=le(e);function F(e,i){this.input=e,this.filename=i.filename||null,this.schema=i.schema||N,this.onWarning=i.onWarning||null,this.legacy=i.legacy||!1,this.json=i.json||!1,this.listener=i.listener||null,this.maxDepth=typeof i.maxDepth=="number"?i.maxDepth:100,this.maxTotalMergeKeys=typeof i.maxTotalMergeKeys=="number"?i.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function ye(e,i){let f={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return f.snippet=_(f),new x(i,f)}function b(e,i){throw ye(e,i)}function ne(e,i){e.onWarning&&e.onWarning.call(null,ye(e,i))}function K(e,i,f){let p=e.anchorMapTransactions;if(p.length!==0){let t=p[p.length-1];d.call(t,i)||(t[i]={existed:d.call(e.anchorMap,i),value:e.anchorMap[i]})}e.anchorMap[i]=f}function Re(e){e.anchorMapTransactions.push(Object.create(null))}function ee(e){let i=e.anchorMapTransactions.pop(),f=e.anchorMapTransactions;if(f.length===0)return;let p=f[f.length-1],t=Object.keys(i);for(let n=0,r=t.length;n<r;n+=1){let l=t[n];d.call(p,l)||(p[l]=i[l])}}function Me(e){let i=e.anchorMapTransactions.pop(),f=Object.keys(i);for(let p=f.length-1;p>=0;p-=1){let t=i[f[p]];t.existed?e.anchorMap[f[p]]=t.value:delete e.anchorMap[f[p]]}}function ce(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function ie(e,i){e.position=i.position,e.line=i.line,e.lineStart=i.lineStart,e.lineIndent=i.lineIndent,e.firstTabInLine=i.firstTabInLine,e.tag=i.tag,e.anchor=i.anchor,e.kind=i.kind,e.result=i.result}let Ce={YAML:function(i,f,p){i.version!==null&&b(i,"duplication of %YAML directive"),p.length!==1&&b(i,"YAML directive accepts exactly one argument");let t=/^([0-9]+)\.([0-9]+)$/.exec(p[0]);t===null&&b(i,"ill-formed argument of the YAML directive");let n=parseInt(t[1],10),r=parseInt(t[2],10);n!==1&&b(i,"unacceptable YAML version of the document"),i.version=p[0],i.checkLineBreaks=r<2,r!==1&&r!==2&&ne(i,"unsupported YAML version of the document")},TAG:function(i,f,p){let t;p.length!==2&&b(i,"TAG directive accepts exactly two arguments");let n=p[0];t=p[1],M.test(n)||b(i,"ill-formed tag handle (first argument) of the TAG directive"),d.call(i.tagMap,n)&&b(i,'there is a previously declared suffix for "'+n+'" tag handle'),B.test(t)||b(i,"ill-formed tag prefix (second argument) of the TAG directive");try{t=decodeURIComponent(t)}catch{b(i,"tag prefix is malformed: "+t)}i.tagMap[n]=t}};function H(e,i,f,p){if(i<f){let t=e.input.slice(i,f);if(p)for(let n=0,r=t.length;n<r;n+=1){let l=t.charCodeAt(n);l===9||l>=32&&l<=1114111||b(e,"expected valid JSON character")}else O.test(t)&&b(e,"the stream contains non-printable characters");e.result+=t}}function V(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&b(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")")}function ue(e,i,f,p){T.isObject(f)||b(e,"cannot merge mappings; the provided source object is unacceptable"),V(e);let t=Object.keys(f);for(let n=0,r=t.length;n<r;n+=1){let l=t[n];V(e),d.call(i,l)||(oe(i,l,f[l]),p[l]=!0)}}function G(e,i,f,p,t,n,r,l,s){if(Array.isArray(t)){t=Array.prototype.slice.call(t);for(let m=0,g=t.length;m<g;m+=1)Array.isArray(t[m])&&b(e,"nested arrays are not supported inside keys"),typeof t=="object"&&z(t[m])==="[object Object]"&&(t[m]="[object Object]")}if(typeof t=="object"&&z(t)==="[object Object]"&&(t="[object Object]"),t=String(t),i===null&&(i={}),p==="tag:yaml.org,2002:merge")if(Array.isArray(n)){n.length>100&&b(e,"abnormal merge sequence size");for(let m=0,g=n.length;m<g;m+=1)ue(e,i,n[m],f)}else ue(e,i,n,f);else!e.json&&!d.call(f,t)&&d.call(i,t)&&(e.line=r||e.line,e.lineStart=l||e.lineStart,e.position=s||e.position,b(e,"duplicated mapping key")),oe(i,t,n),delete f[t];return i}function fe(e){let i=e.input.charCodeAt(e.position);i===10?e.position++:i===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):b(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function v(e,i,f){let p=0,t=e.input.charCodeAt(e.position);for(;t!==0;){for(;j(t);)t===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),t=e.input.charCodeAt(++e.position);if(i&&t===35)do t=e.input.charCodeAt(++e.position);while(t!==10&&t!==13&&t!==0);if(D(t))for(fe(e),t=e.input.charCodeAt(e.position),p++,e.lineIndent=0;t===32;)e.lineIndent++,t=e.input.charCodeAt(++e.position);else break}return f!==-1&&p!==0&&e.lineIndent<f&&ne(e,"deficient indentation"),p}function U(e){let i=e.position,f=e.input.charCodeAt(i);return!!((f===45||f===46)&&f===e.input.charCodeAt(i+1)&&f===e.input.charCodeAt(i+2)&&(i+=3,f=e.input.charCodeAt(i),f===0||q(f)))}function re(e,i){i===1?e.result+=" ":i>1&&(e.result+=T.repeat(`
13
+ `,i-1))}function Se(e,i,f){let p,t,n,r,l,s,m=e.kind,g=e.result,c=e.input.charCodeAt(e.position);if(q(c)||Q(c)||c===35||c===38||c===42||c===33||c===124||c===62||c===39||c===34||c===37||c===64||c===96)return!1;if(c===63||c===45){let y=e.input.charCodeAt(e.position+1);if(q(y)||f&&Q(y))return!1}for(e.kind="scalar",e.result="",p=t=e.position,n=!1;c!==0;){if(c===58){let y=e.input.charCodeAt(e.position+1);if(q(y)||f&&Q(y))break}else if(c===35){let y=e.input.charCodeAt(e.position-1);if(q(y))break}else{if(e.position===e.lineStart&&U(e)||f&&Q(c))break;if(D(c))if(r=e.line,l=e.lineStart,s=e.lineIndent,v(e,!1,-1),e.lineIndent>=i){n=!0,c=e.input.charCodeAt(e.position);continue}else{e.position=t,e.line=r,e.lineStart=l,e.lineIndent=s;break}}n&&(H(e,p,t,!1),re(e,e.line-r),p=t=e.position,n=!1),j(c)||(t=e.position+1),c=e.input.charCodeAt(++e.position)}return H(e,p,t,!1),e.result?!0:(e.kind=m,e.result=g,!1)}function pe(e,i){let f,p,t=e.input.charCodeAt(e.position);if(t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,f=p=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(H(e,f,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)f=e.position,e.position++,p=e.position;else return!0;else D(t)?(H(e,f,p,!0),re(e,v(e,!1,i)),f=p=e.position):e.position===e.lineStart&&U(e)?b(e,"unexpected end of the document within a single quoted scalar"):(e.position++,j(t)||(p=e.position));b(e,"unexpected end of the stream within a single quoted scalar")}function Te(e,i){let f,p,t,n=e.input.charCodeAt(e.position);if(n!==34)return!1;for(e.kind="scalar",e.result="",e.position++,f=p=e.position;(n=e.input.charCodeAt(e.position))!==0;){if(n===34)return H(e,f,e.position,!0),e.position++,!0;if(n===92){if(H(e,f,e.position,!0),n=e.input.charCodeAt(++e.position),D(n))v(e,!1,i);else if(n<256&&Ae[n])e.result+=te[n],e.position++;else if((t=Le(n))>0){let r=t,l=0;for(;r>0;r--)n=e.input.charCodeAt(++e.position),(t=ke(n))>=0?l=(l<<4)+t:b(e,"expected hexadecimal character");e.result+=Ne(l),e.position++}else b(e,"unknown escape sequence");f=p=e.position}else D(n)?(H(e,f,p,!0),re(e,v(e,!1,i)),f=p=e.position):e.position===e.lineStart&&U(e)?b(e,"unexpected end of the document within a double quoted scalar"):(e.position++,j(n)||(p=e.position))}b(e,"unexpected end of the stream within a double quoted scalar")}function we(e,i){let f=!0,p,t,n,r=e.tag,l,s=e.anchor,m,g,c,y,w=Object.create(null),E,I,k,L=e.input.charCodeAt(e.position);if(L===91)m=93,y=!1,l=[];else if(L===123)m=125,y=!0,l={};else return!1;for(e.anchor!==null&&K(e,e.anchor,l),L=e.input.charCodeAt(++e.position);L!==0;){if(v(e,!0,i),L=e.input.charCodeAt(e.position),L===m)return e.position++,e.tag=r,e.anchor=s,e.kind=y?"mapping":"sequence",e.result=l,!0;if(f?L===44&&b(e,"expected the node content, but found ','"):b(e,"missed comma between flow collection entries"),I=E=k=null,g=c=!1,L===63){let J=e.input.charCodeAt(e.position+1);q(J)&&(g=c=!0,e.position++,v(e,!0,i))}p=e.line,t=e.lineStart,n=e.position,$(e,i,A,!1,!0),I=e.tag,E=e.result,v(e,!0,i),L=e.input.charCodeAt(e.position),(c||e.line===p)&&L===58&&(g=!0,L=e.input.charCodeAt(++e.position),v(e,!0,i),$(e,i,A,!1,!0),k=e.result),y?G(e,l,w,I,E,k,p,t,n):g?l.push(G(e,null,w,I,E,k,p,t,n)):l.push(E),v(e,!0,i),L=e.input.charCodeAt(e.position),L===44?(f=!0,L=e.input.charCodeAt(++e.position)):f=!1}b(e,"unexpected end of the stream within a flow collection")}function X(e,i){let f,p=o,t=!1,n=!1,r=i,l=0,s=!1,m,g=e.input.charCodeAt(e.position);if(g===124)f=!1;else if(g===62)f=!0;else return!1;for(e.kind="scalar",e.result="";g!==0;)if(g=e.input.charCodeAt(++e.position),g===43||g===45)o===p?p=g===43?C:u:b(e,"repeat of a chomping mode identifier");else if((m=ge(g))>=0)m===0?b(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):n?b(e,"repeat of an indentation width identifier"):(r=i+m-1,n=!0);else break;if(j(g)){do g=e.input.charCodeAt(++e.position);while(j(g));if(g===35)do g=e.input.charCodeAt(++e.position);while(!D(g)&&g!==0)}for(;g!==0;){for(fe(e),e.lineIndent=0,g=e.input.charCodeAt(e.position);(!n||e.lineIndent<r)&&g===32;)e.lineIndent++,g=e.input.charCodeAt(++e.position);if(!n&&e.lineIndent>r&&(r=e.lineIndent),D(g)){l++;continue}if(!n&&r===0&&b(e,"missing indentation for block scalar"),e.lineIndent<r){p===C?e.result+=T.repeat(`
14
+ `,t?1+l:l):p===o&&t&&(e.result+=`
15
+ `);break}f?j(g)?(s=!0,e.result+=T.repeat(`
16
+ `,t?1+l:l)):s?(s=!1,e.result+=T.repeat(`
17
+ `,l+1)):l===0?t&&(e.result+=" "):e.result+=T.repeat(`
18
+ `,l):e.result+=T.repeat(`
19
+ `,t?1+l:l),t=!0,n=!0,l=0;let c=e.position;for(;!D(g)&&g!==0;)g=e.input.charCodeAt(++e.position);H(e,c,e.position,!1)}return!0}function be(e,i){let f=e.tag,p=e.anchor,t=[],n=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&K(e,e.anchor,t);let r=e.input.charCodeAt(e.position);for(;r!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,b(e,"tab characters must not be used in indentation")),r===45);){let l=e.input.charCodeAt(e.position+1);if(!q(l))break;if(n=!0,e.position++,v(e,!0,-1)&&e.lineIndent<=i){t.push(null),r=e.input.charCodeAt(e.position);continue}let s=e.line;if($(e,i,a,!1,!0),t.push(e.result),v(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===s||e.lineIndent>i)&&r!==0)b(e,"bad indentation of a sequence entry");else if(e.lineIndent<i)break}return n?(e.tag=f,e.anchor=p,e.kind="sequence",e.result=t,!0):!1}function xe(e,i,f){let p,t,n,r,l=e.tag,s=e.anchor,m={},g=Object.create(null),c=null,y=null,w=null,E=!1,I=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&K(e,e.anchor,m);let k=e.input.charCodeAt(e.position);for(;k!==0;){!E&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,b(e,"tab characters must not be used in indentation"));let L=e.input.charCodeAt(e.position+1),J=e.line;if((k===63||k===58)&&q(L))k===63?(E&&(G(e,m,g,c,y,null,t,n,r),c=y=w=null),I=!0,E=!0,p=!0):E?(E=!1,p=!0):b(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,k=L;else{if(t=e.line,n=e.lineStart,r=e.position,!$(e,f,h,!1,!0))break;if(e.line===J){for(k=e.input.charCodeAt(e.position);j(k);)k=e.input.charCodeAt(++e.position);if(k===58)k=e.input.charCodeAt(++e.position),q(k)||b(e,"a whitespace character is expected after the key-value separator within a block mapping"),E&&(G(e,m,g,c,y,null,t,n,r),c=y=w=null),I=!0,E=!1,p=!1,c=e.tag,y=e.result;else if(I)b(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=l,e.anchor=s,!0}else if(I)b(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=l,e.anchor=s,!0}if((e.line===J||e.lineIndent>i)&&(E&&(t=e.line,n=e.lineStart,r=e.position),$(e,i,S,!0,p)&&(E?y=e.result:w=e.result),E||(G(e,m,g,c,y,w,t,n,r),c=y=w=null),v(e,!0,-1),k=e.input.charCodeAt(e.position)),(e.line===J||e.lineIndent>i)&&k!==0)b(e,"bad indentation of a mapping entry");else if(e.lineIndent<i)break}return E&&G(e,m,g,c,y,null,t,n,r),I&&(e.tag=l,e.anchor=s,e.kind="mapping",e.result=m),I}function _e(e){let i=!1,f=!1,p,t,n=e.input.charCodeAt(e.position);if(n!==33)return!1;e.tag!==null&&b(e,"duplication of a tag property"),n=e.input.charCodeAt(++e.position),n===60?(i=!0,n=e.input.charCodeAt(++e.position)):n===33?(f=!0,p="!!",n=e.input.charCodeAt(++e.position)):p="!";let r=e.position;if(i){do n=e.input.charCodeAt(++e.position);while(n!==0&&n!==62);e.position<e.length?(t=e.input.slice(r,e.position),n=e.input.charCodeAt(++e.position)):b(e,"unexpected end of the stream within a verbatim tag")}else{for(;n!==0&&!q(n);)n===33&&(f?b(e,"tag suffix cannot contain exclamation marks"):(p=e.input.slice(r-1,e.position+1),M.test(p)||b(e,"named tag handle cannot contain such characters"),f=!0,r=e.position+1)),n=e.input.charCodeAt(++e.position);t=e.input.slice(r,e.position),W.test(t)&&b(e,"tag suffix cannot contain flow indicator characters")}t&&!B.test(t)&&b(e,"tag name cannot contain such characters: "+t);try{t=decodeURIComponent(t)}catch{b(e,"tag name is malformed: "+t)}return i?e.tag=t:d.call(e.tagMap,p)?e.tag=e.tagMap[p]+t:p==="!"?e.tag="!"+t:p==="!!"?e.tag="tag:yaml.org,2002:"+t:b(e,'undeclared tag handle "'+p+'"'),!0}function Ee(e){let i=e.input.charCodeAt(e.position);if(i!==38)return!1;e.anchor!==null&&b(e,"duplication of an anchor property"),i=e.input.charCodeAt(++e.position);let f=e.position;for(;i!==0&&!q(i)&&!Q(i);)i=e.input.charCodeAt(++e.position);return e.position===f&&b(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(f,e.position),!0}function ve(e){let i=e.input.charCodeAt(e.position);if(i!==42)return!1;i=e.input.charCodeAt(++e.position);let f=e.position;for(;i!==0&&!q(i)&&!Q(i);)i=e.input.charCodeAt(++e.position);e.position===f&&b(e,"name of an alias node must contain at least one character");let p=e.input.slice(f,e.position);return d.call(e.anchorMap,p)||b(e,'unidentified alias "'+p+'"'),e.result=e.anchorMap[p],v(e,!0,-1),!0}function Ie(e,i,f,p){let t=ce(e);return Re(e),ie(e,i),e.tag=null,e.anchor=null,e.kind=null,e.result=null,xe(e,f,p)&&e.kind==="mapping"?(ee(e),!0):(Me(e),ie(e,t),!1)}function $(e,i,f,p,t){let n,r,l=1,s=!1,m=!1,g=null,c,y,w;e.depth>=e.maxDepth&&b(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let E=n=r=S===f||a===f;if(p&&v(e,!0,-1)&&(s=!0,e.lineIndent>i?l=1:e.lineIndent===i?l=0:e.lineIndent<i&&(l=-1)),l===1)for(;;){let I=e.input.charCodeAt(e.position),k=ce(e);if(s&&(I===33&&e.tag!==null||I===38&&e.anchor!==null)||!_e(e)&&!Ee(e))break;g===null&&(g=k),v(e,!0,-1)?(s=!0,r=E,e.lineIndent>i?l=1:e.lineIndent===i?l=0:e.lineIndent<i&&(l=-1)):r=!1}if(r&&(r=s||t),l===1||S===f)if(A===f||h===f?y=i:y=i+1,w=e.position-e.lineStart,l===1)if(r&&(be(e,w)||xe(e,w,y))||we(e,y))m=!0;else{let I=e.input.charCodeAt(e.position);g!==null&&E&&!r&&I!==124&&I!==62&&Ie(e,g,g.position-g.lineStart,y)||n&&X(e,y)||pe(e,y)||Te(e,y)?m=!0:ve(e)?(m=!0,(e.tag!==null||e.anchor!==null)&&b(e,"alias node should not have any properties")):Se(e,y,A===f)&&(m=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&K(e,e.anchor,e.result)}else l===0&&(m=r&&be(e,w));if(e.tag===null)e.anchor!==null&&K(e,e.anchor,e.result);else if(e.tag==="?"){e.result!==null&&e.kind!=="scalar"&&b(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let I=0,k=e.implicitTypes.length;I<k;I+=1)if(c=e.implicitTypes[I],c.resolve(e.result)){e.result=c.construct(e.result),e.tag=c.tag,e.anchor!==null&&K(e,e.anchor,e.result);break}}else if(e.tag!=="!"){if(d.call(e.typeMap[e.kind||"fallback"],e.tag))c=e.typeMap[e.kind||"fallback"][e.tag];else{c=null;let I=e.typeMap.multi[e.kind||"fallback"];for(let k=0,L=I.length;k<L;k+=1)if(e.tag.slice(0,I[k].tag.length)===I[k].tag){c=I[k];break}}c||b(e,"unknown tag !<"+e.tag+">"),e.result!==null&&c.kind!==e.kind&&b(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+c.kind+'", not "'+e.kind+'"'),c.resolve(e.result,e.tag)?(e.result=c.construct(e.result,e.tag),e.anchor!==null&&K(e,e.anchor,e.result)):b(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.depth-=1,e.tag!==null||e.anchor!==null||m}function Fe(e){let i=e.position,f=!1,p;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(p=e.input.charCodeAt(e.position))!==0&&(v(e,!0,-1),p=e.input.charCodeAt(e.position),!(e.lineIndent>0||p!==37));){f=!0,p=e.input.charCodeAt(++e.position);let t=e.position;for(;p!==0&&!q(p);)p=e.input.charCodeAt(++e.position);let n=e.input.slice(t,e.position),r=[];for(n.length<1&&b(e,"directive name must not be less than one character in length");p!==0;){for(;j(p);)p=e.input.charCodeAt(++e.position);if(p===35){do p=e.input.charCodeAt(++e.position);while(p!==0&&!D(p));break}if(D(p))break;for(t=e.position;p!==0&&!q(p);)p=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}p!==0&&fe(e),d.call(Ce,n)?Ce[n](e,n,r):ne(e,'unknown document directive "'+n+'"')}if(v(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,v(e,!0,-1)):f&&b(e,"directives end mark is expected"),$(e,e.lineIndent-1,S,!1,!0),v(e,!0,-1),e.checkLineBreaks&&R.test(e.input.slice(i,e.position))&&ne(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&U(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,v(e,!0,-1));return}e.position<e.length-1&&b(e,"end of the stream or a document separator is expected")}function ae(e,i){e=String(e),i=i||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
20
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));let f=new F(e,i),p=e.indexOf("\0");for(p!==-1&&(f.position=p,b(f,"null byte is not allowed in input")),f.input+="\0";f.input.charCodeAt(f.position)===32;)f.lineIndent+=1,f.position+=1;for(;f.position<f.length-1;)Fe(f);return f.documents}function qe(e,i,f){i!==null&&typeof i=="object"&&typeof f>"u"&&(f=i,i=null);let p=ae(e,f);if(typeof i!="function")return p;for(let t=0,n=p.length;t<n;t+=1)i(p[t])}function Ye(e,i){let f=ae(e,i);if(f.length!==0){if(f.length===1)return f[0];throw new x("expected a single document in the stream, but found more")}}return Oe.loadAll=qe,Oe.load=Ye,Oe}var tn={},Nn;function zn(){if(Nn)return tn;Nn=1;let T=de(),x=me(),_=cn(),N=Object.prototype.toString,d=Object.prototype.hasOwnProperty,A=65279,h=9,a=10,S=13,o=32,u=33,C=34,O=35,R=37,W=38,M=39,B=42,z=44,D=45,j=58,q=61,Q=62,ke=63,Le=64,ge=91,le=93,Ne=96,oe=123,Ae=124,te=125,F={};F[0]="\\0",F[7]="\\a",F[8]="\\b",F[9]="\\t",F[10]="\\n",F[11]="\\v",F[12]="\\f",F[13]="\\r",F[27]="\\e",F[34]='\\"',F[92]="\\\\",F[133]="\\N",F[160]="\\_",F[8232]="\\L",F[8233]="\\P";let ye=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],b=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ne(n,r){if(r===null)return{};let l={},s=Object.keys(r);for(let m=0,g=s.length;m<g;m+=1){let c=s[m],y=String(r[c]);c.slice(0,2)==="!!"&&(c="tag:yaml.org,2002:"+c.slice(2));let w=n.compiledTypeMap.fallback[c];w&&d.call(w.styleAliases,y)&&(y=w.styleAliases[y]),l[c]=y}return l}function K(n){let r,l,s=n.toString(16).toUpperCase();if(n<=255)r="x",l=2;else if(n<=65535)r="u",l=4;else if(n<=4294967295)r="U",l=8;else throw new x("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+T.repeat("0",l-s.length)+s}let Re=1,ee=2;function Me(n){this.schema=n.schema||_,this.indent=Math.max(1,n.indent||2),this.noArrayIndent=n.noArrayIndent||!1,this.skipInvalid=n.skipInvalid||!1,this.flowLevel=T.isNothing(n.flowLevel)?-1:n.flowLevel,this.styleMap=ne(this.schema,n.styles||null),this.sortKeys=n.sortKeys||!1,this.lineWidth=n.lineWidth||80,this.noRefs=n.noRefs||!1,this.noCompatMode=n.noCompatMode||!1,this.condenseFlow=n.condenseFlow||!1,this.quotingType=n.quotingType==='"'?ee:Re,this.forceQuotes=n.forceQuotes||!1,this.replacer=typeof n.replacer=="function"?n.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function ce(n,r){let l=T.repeat(" ",r),s=0,m="",g=n.length;for(;s<g;){let c,y=n.indexOf(`
21
+ `,s);y===-1?(c=n.slice(s),s=g):(c=n.slice(s,y+1),s=y+1),c.length&&c!==`
22
+ `&&(m+=l),m+=c}return m}function ie(n,r){return`
23
+ `+T.repeat(" ",n.indent*r)}function Ce(n,r){for(let l=0,s=n.implicitTypes.length;l<s;l+=1)if(n.implicitTypes[l].resolve(r))return!0;return!1}function H(n){return n===o||n===h}function V(n){return n>=32&&n<=126||n>=161&&n<=55295&&n!==8232&&n!==8233||n>=57344&&n<=65533&&n!==A||n>=65536&&n<=1114111}function ue(n){return V(n)&&n!==A&&n!==S&&n!==a}function G(n,r,l){let s=ue(n),m=s&&!H(n);return(l?s:s&&n!==z&&n!==ge&&n!==le&&n!==oe&&n!==te)&&n!==O&&!(r===j&&!m)||ue(r)&&!H(r)&&n===O||r===j&&m}function fe(n){return V(n)&&n!==A&&!H(n)&&n!==D&&n!==ke&&n!==j&&n!==z&&n!==ge&&n!==le&&n!==oe&&n!==te&&n!==O&&n!==W&&n!==B&&n!==u&&n!==Ae&&n!==q&&n!==Q&&n!==M&&n!==C&&n!==R&&n!==Le&&n!==Ne}function v(n){return!H(n)&&n!==j}function U(n,r){let l=n.charCodeAt(r),s;return l>=55296&&l<=56319&&r+1<n.length&&(s=n.charCodeAt(r+1),s>=56320&&s<=57343)?(l-55296)*1024+s-56320+65536:l}function re(n){return/^\n* /.test(n)}let Se=1,pe=2,Te=3,we=4,X=5;function be(n,r,l,s,m,g,c,y){let w,E=0,I=null,k=!1,L=!1,J=s!==-1,se=-1,he=fe(U(n,0))&&v(U(n,n.length-1));if(r||c)for(w=0;w<n.length;E>=65536?w+=2:w++){if(E=U(n,w),!V(E))return X;he=he&&G(E,I,y),I=E}else{for(w=0;w<n.length;E>=65536?w+=2:w++){if(E=U(n,w),E===a)k=!0,J&&(L=L||w-se-1>s&&n[se+1]!==" ",se=w);else if(!V(E))return X;he=he&&G(E,I,y),I=E}L=L||J&&w-se-1>s&&n[se+1]!==" "}return!k&&!L?he&&!c&&!m(n)?Se:g===ee?X:pe:l>9&&re(n)?X:c?g===ee?X:pe:L?we:Te}function xe(n,r,l,s,m){n.dump=(function(){if(r.length===0)return n.quotingType===ee?'""':"''";if(!n.noCompatMode&&(ye.indexOf(r)!==-1||b.test(r)))return n.quotingType===ee?'"'+r+'"':"'"+r+"'";let g=n.indent*Math.max(1,l),c=n.lineWidth===-1?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-g),y=s||n.flowLevel>-1&&l>=n.flowLevel;function w(E){return Ce(n,E)}switch(be(r,y,n.indent,c,w,n.quotingType,n.forceQuotes&&!s,m)){case Se:return r;case pe:return"'"+r.replace(/'/g,"''")+"'";case Te:return"|"+_e(r,n.indent)+Ee(ce(r,g));case we:return">"+_e(r,n.indent)+Ee(ce(ve(r,c),g));case X:return'"'+$(r)+'"';default:throw new x("impossible error: invalid scalar style")}})()}function _e(n,r){let l=re(n)?String(r):"",s=n[n.length-1]===`
24
+ `,g=s&&(n[n.length-2]===`
25
+ `||n===`
26
+ `)?"+":s?"":"-";return l+g+`
27
+ `}function Ee(n){return n[n.length-1]===`
28
+ `?n.slice(0,-1):n}function ve(n,r){let l=/(\n+)([^\n]*)/g,s=(function(){let y=n.indexOf(`
29
+ `);return y=y!==-1?y:n.length,l.lastIndex=y,Ie(n.slice(0,y),r)})(),m=n[0]===`
30
+ `||n[0]===" ",g,c;for(;c=l.exec(n);){let y=c[1],w=c[2];g=w[0]===" ",s+=y+(!m&&!g&&w!==""?`
31
+ `:"")+Ie(w,r),m=g}return s}function Ie(n,r){if(n===""||n[0]===" ")return n;let l=/ [^ ]/g,s,m=0,g,c=0,y=0,w="";for(;s=l.exec(n);)y=s.index,y-m>r&&(g=c>m?c:y,w+=`
32
+ `+n.slice(m,g),m=g+1),c=y;return w+=`
33
+ `,n.length-m>r&&c>m?w+=n.slice(m,c)+`
34
+ `+n.slice(c+1):w+=n.slice(m),w.slice(1)}function $(n){let r="",l=0;for(let s=0;s<n.length;l>=65536?s+=2:s++){l=U(n,s);let m=F[l];!m&&V(l)?(r+=n[s],l>=65536&&(r+=n[s+1])):r+=m||K(l)}return r}function Fe(n,r,l){let s="",m=n.tag;for(let g=0,c=l.length;g<c;g+=1){let y=l[g];n.replacer&&(y=n.replacer.call(l,String(g),y)),(i(n,r,y,!1,!1)||typeof y>"u"&&i(n,r,null,!1,!1))&&(s!==""&&(s+=","+(n.condenseFlow?"":" ")),s+=n.dump)}n.tag=m,n.dump="["+s+"]"}function ae(n,r,l,s){let m="",g=n.tag;for(let c=0,y=l.length;c<y;c+=1){let w=l[c];n.replacer&&(w=n.replacer.call(l,String(c),w)),(i(n,r+1,w,!0,!0,!1,!0)||typeof w>"u"&&i(n,r+1,null,!0,!0,!1,!0))&&((!s||m!=="")&&(m+=ie(n,r)),n.dump&&a===n.dump.charCodeAt(0)?m+="-":m+="- ",m+=n.dump)}n.tag=g,n.dump=m||"[]"}function qe(n,r,l){let s="",m=n.tag,g=Object.keys(l);for(let c=0,y=g.length;c<y;c+=1){let w="";s!==""&&(w+=", "),n.condenseFlow&&(w+='"');let E=g[c],I=l[E];n.replacer&&(I=n.replacer.call(l,E,I)),i(n,r,E,!1,!1)&&(n.dump.length>1024&&(w+="? "),w+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),i(n,r,I,!1,!1)&&(w+=n.dump,s+=w))}n.tag=m,n.dump="{"+s+"}"}function Ye(n,r,l,s){let m="",g=n.tag,c=Object.keys(l);if(n.sortKeys===!0)c.sort();else if(typeof n.sortKeys=="function")c.sort(n.sortKeys);else if(n.sortKeys)throw new x("sortKeys must be a boolean or a function");for(let y=0,w=c.length;y<w;y+=1){let E="";(!s||m!=="")&&(E+=ie(n,r));let I=c[y],k=l[I];if(n.replacer&&(k=n.replacer.call(l,I,k)),!i(n,r+1,I,!0,!0,!0))continue;let L=n.tag!==null&&n.tag!=="?"||n.dump&&n.dump.length>1024;L&&(n.dump&&a===n.dump.charCodeAt(0)?E+="?":E+="? "),E+=n.dump,L&&(E+=ie(n,r)),i(n,r+1,k,!0,L)&&(n.dump&&a===n.dump.charCodeAt(0)?E+=":":E+=": ",E+=n.dump,m+=E)}n.tag=g,n.dump=m||"{}"}function e(n,r,l){let s=l?n.explicitTypes:n.implicitTypes;for(let m=0,g=s.length;m<g;m+=1){let c=s[m];if((c.instanceOf||c.predicate)&&(!c.instanceOf||typeof r=="object"&&r instanceof c.instanceOf)&&(!c.predicate||c.predicate(r))){if(l?c.multi&&c.representName?n.tag=c.representName(r):n.tag=c.tag:n.tag="?",c.represent){let y=n.styleMap[c.tag]||c.defaultStyle,w;if(N.call(c.represent)==="[object Function]")w=c.represent(r,y);else if(d.call(c.represent,y))w=c.represent[y](r,y);else throw new x("!<"+c.tag+'> tag resolver accepts not "'+y+'" style');n.dump=w}return!0}}return!1}function i(n,r,l,s,m,g,c){n.tag=null,n.dump=l,e(n,l,!1)||e(n,l,!0);let y=N.call(n.dump),w=s;s&&(s=n.flowLevel<0||n.flowLevel>r);let E=y==="[object Object]"||y==="[object Array]",I,k;if(E&&(I=n.duplicates.indexOf(l),k=I!==-1),(n.tag!==null&&n.tag!=="?"||k||n.indent!==2&&r>0)&&(m=!1),k&&n.usedDuplicates[I])n.dump="*ref_"+I;else{if(E&&k&&!n.usedDuplicates[I]&&(n.usedDuplicates[I]=!0),y==="[object Object]")s&&Object.keys(n.dump).length!==0?(Ye(n,r,n.dump,m),k&&(n.dump="&ref_"+I+n.dump)):(qe(n,r,n.dump),k&&(n.dump="&ref_"+I+" "+n.dump));else if(y==="[object Array]")s&&n.dump.length!==0?(n.noArrayIndent&&!c&&r>0?ae(n,r-1,n.dump,m):ae(n,r,n.dump,m),k&&(n.dump="&ref_"+I+n.dump)):(Fe(n,r,n.dump),k&&(n.dump="&ref_"+I+" "+n.dump));else if(y==="[object String]")n.tag!=="?"&&xe(n,n.dump,r,g,w);else{if(y==="[object Undefined]")return!1;if(n.skipInvalid)return!1;throw new x("unacceptable kind of an object to dump "+y)}if(n.tag!==null&&n.tag!=="?"){let L=encodeURI(n.tag[0]==="!"?n.tag.slice(1):n.tag).replace(/!/g,"%21");n.tag[0]==="!"?L="!"+L:L.slice(0,18)==="tag:yaml.org,2002:"?L="!!"+L.slice(18):L="!<"+L+">",n.dump=L+" "+n.dump}}return!0}function f(n,r){let l=[],s=[];p(n,l,s);let m=s.length;for(let g=0;g<m;g+=1)r.duplicates.push(l[s[g]]);r.usedDuplicates=new Array(m)}function p(n,r,l){if(n!==null&&typeof n=="object"){let s=r.indexOf(n);if(s!==-1)l.indexOf(s)===-1&&l.push(s);else if(r.push(n),Array.isArray(n))for(let m=0,g=n.length;m<g;m+=1)p(n[m],r,l);else{let m=Object.keys(n);for(let g=0,c=m.length;g<c;g+=1)p(n[m[g]],r,l)}}}function t(n,r){r=r||{};let l=new Me(r);l.noRefs||f(n,l);let s=n;return l.replacer&&(s=l.replacer.call({"":s},"",s)),i(l,0,s,!0,!0)?l.dump+`
35
+ `:""}return tn.dump=t,tn}var Rn;function ei(){if(Rn)return Y;Rn=1;let T=Zn(),x=zn();function _(N,d){return function(){throw new Error("Function yaml."+N+" is removed in js-yaml 4. Use yaml."+d+" instead, which is now safe by default.")}}return Y.Type=P(),Y.Schema=Mn(),Y.FAILSAFE_SCHEMA=Yn(),Y.JSON_SCHEMA=Bn(),Y.CORE_SCHEMA=Un(),Y.DEFAULT_SCHEMA=cn(),Y.load=T.load,Y.loadAll=T.loadAll,Y.dump=x.dump,Y.YAMLException=me(),Y.types={binary:Wn(),float:Hn(),map:qn(),null:Pn(),pairs:Vn(),set:Xn(),timestamp:Kn(),bool:Dn(),int:jn(),merge:Gn(),omap:Qn(),seq:Fn(),str:vn()},Y.safeLoad=_("safeLoad","load"),Y.safeLoadAll=_("safeLoadAll","loadAll"),Y.safeDump=_("safeDump","dump"),Y}var ni=ei(),ii=$n(ni),{Type:ri,Schema:li,FAILSAFE_SCHEMA:oi,JSON_SCHEMA:ti,CORE_SCHEMA:ci,DEFAULT_SCHEMA:ui,load:fi,loadAll:pi,dump:ai,YAMLException:si,types:hi,safeLoad:di,safeLoadAll:mi,safeDump:gi}=ii;export{ii as a};
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __swiftyCreateRequire } from "node:module";
3
3
  const require = __swiftyCreateRequire(import.meta.url);
4
- import{c as t}from"./chunk-XBHVVB5A.js";import"./chunk-X3UA5OZL.js";var n=globalThis;n.WebSocket||=t;n.window||=globalThis;n.self||=globalThis;n.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__=[{type:1,value:7,isEnabled:!0},{type:2,value:"InternalApp",isEnabled:!0,isValid:!0},{type:2,value:"InternalAppContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdoutContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStderrContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdinContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalFocusContext",isEnabled:!0,isValid:!0}];import a from"react-devtools-core";var l=async()=>new Promise(o=>{let e=new t("ws://localhost:8097"),i=setTimeout(()=>{e.terminate(),o(!1)},2e3);i.unref(),e.on("open",()=>{clearTimeout(i),e.terminate(),o(!0)}),e.on("error",()=>{clearTimeout(i),e.terminate(),o(!1)})});await l()?(a.initialize(),a.connectToDevTools()):console.warn(`DEV is set to true, but the React DevTools server is not running. Start it with:
4
+ import{c as t}from"./chunk-FPQ2LBL4.js";import"./chunk-X3UA5OZL.js";var n=globalThis;n.WebSocket||=t;n.window||=globalThis;n.self||=globalThis;n.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__=[{type:1,value:7,isEnabled:!0},{type:2,value:"InternalApp",isEnabled:!0,isValid:!0},{type:2,value:"InternalAppContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdoutContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStderrContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalStdinContext",isEnabled:!0,isValid:!0},{type:2,value:"InternalFocusContext",isEnabled:!0,isValid:!0}];import a from"react-devtools-core";var l=async()=>new Promise(o=>{let e=new t("ws://localhost:8097"),i=setTimeout(()=>{e.terminate(),o(!1)},2e3);i.unref(),e.on("open",()=>{clearTimeout(i),e.terminate(),o(!0)}),e.on("error",()=>{clearTimeout(i),e.terminate(),o(!1)})});await l()?(a.initialize(),a.connectToDevTools()):console.warn(`DEV is set to true, but the React DevTools server is not running. Start it with:
5
5
 
6
6
  $ npx react-devtools
7
7
  `);
package/dist/lib/index.js CHANGED
@@ -2609,7 +2609,7 @@ var PackageJsonSchema = z5.object({
2609
2609
  });
2610
2610
  function resolveVersion() {
2611
2611
  if (true) {
2612
- return "0.0.26";
2612
+ return "0.0.27";
2613
2613
  }
2614
2614
  const here = path.dirname(fileURLToPath(import.meta.url));
2615
2615
  for (const levels of ["..", "../.."]) {
@@ -2723,10 +2723,7 @@ var MCPClient = class {
2723
2723
  const opts = {
2724
2724
  requestInit: { headers }
2725
2725
  };
2726
- this.transport = this.config.transport === "sse" ? (
2727
- // eslint-disable-next-line @typescript-eslint/no-deprecated
2728
- new SSEClientTransport(url, opts)
2729
- ) : new StreamableHTTPClientTransport(url, opts);
2726
+ this.transport = this.config.transport === "sse" ? new SSEClientTransport(url, opts) : new StreamableHTTPClientTransport(url, opts);
2730
2727
  } else {
2731
2728
  throw new Error(
2732
2729
  `MCP server '${this.name}': needs either 'command' (stdio) or 'url' (http/sse)`