@lousy-agents/mcp 5.11.1 → 5.11.3

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/511.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"511.js","sources":["webpack://@lousy-agents/mcp/../../node_modules/giget/dist/_chunks/libs/nypm.mjs","webpack://@lousy-agents/mcp/../../node_modules/giget/dist/_chunks/rolldown-runtime.mjs","webpack://@lousy-agents/mcp/../../node_modules/giget/dist/_chunks/giget.mjs","webpack://@lousy-agents/mcp/../../node_modules/giget/dist/index.mjs"],"sourcesContent":["import { t as e } from \"../rolldown-runtime.mjs\";\nimport { createRequire as t } from \"node:module\";\nimport { existsSync as n } from \"node:fs\";\nimport { readFile as r } from \"node:fs/promises\";\nimport { PassThrough as i } from \"node:stream\";\nimport { spawn as a } from \"node:child_process\";\nimport { delimiter as o, dirname as s, normalize as c, resolve as l } from \"node:path\";\nimport { cwd as u } from \"node:process\";\nimport d from \"node:readline\";\nconst f = /^[A-Za-z]:\\//;\nfunction p(e = ``) {\n\treturn e && e.replace(/\\\\/g, `/`).replace(f, (e) => e.toUpperCase());\n}\nconst ee = /^[/\\\\]{2}/, te = /^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/, m = /^[A-Za-z]:$/, h = /^\\/([A-Za-z]:)?$/, g = function(e) {\n\tif (e.length === 0) return `.`;\n\te = p(e);\n\tlet t = e.match(ee), n = x(e), r = e[e.length - 1] === `/`;\n\treturn e = b(e, !n), e.length === 0 ? n ? `/` : r ? `./` : `.` : (r && (e += `/`), m.test(e) && (e += `/`), t ? n ? `//${e}` : `//./${e}` : n && !x(e) ? `/${e}` : e);\n}, _ = function(...e) {\n\tlet t = ``;\n\tfor (let n of e) if (n) if (t.length > 0) {\n\t\tlet e = t[t.length - 1] === `/`, r = n[0] === `/`;\n\t\te && r ? t += n.slice(1) : t += e || r ? n : `/${n}`;\n\t} else t += n;\n\treturn g(t);\n};\nfunction v() {\n\treturn typeof process < `u` && typeof process.cwd == `function` ? process.cwd().replace(/\\\\/g, `/`) : `/`;\n}\nconst y = function(...e) {\n\te = e.map((e) => p(e));\n\tlet t = ``, n = !1;\n\tfor (let r = e.length - 1; r >= -1 && !n; r--) {\n\t\tlet i = r >= 0 ? e[r] : v();\n\t\t!i || i.length === 0 || (t = `${i}/${t}`, n = x(i));\n\t}\n\treturn t = b(t, !n), n && !x(t) ? `/${t}` : t.length > 0 ? t : `.`;\n};\nfunction b(e, t) {\n\tlet n = ``, r = 0, i = -1, a = 0, o = null;\n\tfor (let s = 0; s <= e.length; ++s) {\n\t\tif (s < e.length) o = e[s];\n\t\telse if (o === `/`) break;\n\t\telse o = `/`;\n\t\tif (o === `/`) {\n\t\t\tif (!(i === s - 1 || a === 1)) if (a === 2) {\n\t\t\t\tif (n.length < 2 || r !== 2 || n[n.length - 1] !== `.` || n[n.length - 2] !== `.`) {\n\t\t\t\t\tif (n.length > 2) {\n\t\t\t\t\t\tlet e = n.lastIndexOf(`/`);\n\t\t\t\t\t\te === -1 ? (n = ``, r = 0) : (n = n.slice(0, e), r = n.length - 1 - n.lastIndexOf(`/`)), i = s, a = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (n.length > 0) {\n\t\t\t\t\t\tn = ``, r = 0, i = s, a = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tt && (n += n.length > 0 ? `/..` : `..`, r = 2);\n\t\t\t} else n.length > 0 ? n += `/${e.slice(i + 1, s)}` : n = e.slice(i + 1, s), r = s - i - 1;\n\t\t\ti = s, a = 0;\n\t\t} else o === `.` && a !== -1 ? ++a : a = -1;\n\t}\n\treturn n;\n}\nconst x = function(e) {\n\treturn te.test(e);\n}, S = function(e, t) {\n\tlet n = y(e).replace(h, `$1`).split(`/`), r = y(t).replace(h, `$1`).split(`/`);\n\tif (r[0][1] === `:` && n[0][1] === `:` && n[0] !== r[0]) return r.join(`/`);\n\tlet i = [...n];\n\tfor (let e of i) {\n\t\tif (r[0] !== e) break;\n\t\tn.shift(), r.shift();\n\t}\n\treturn [...n.map(() => `..`), ...r].join(`/`);\n}, C = function(e) {\n\tlet t = p(e).replace(/\\/$/, ``).split(`/`).slice(0, -1);\n\treturn t.length === 1 && m.test(t[0]) && (t[0] += `/`), t.join(`/`) || (x(e) ? `/` : `.`);\n}, ne = function(e, t) {\n\tlet n = p(e).split(`/`), r = ``;\n\tfor (let e = n.length - 1; e >= 0; e--) {\n\t\tlet t = n[e];\n\t\tif (t) {\n\t\t\tr = t;\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn t && r.endsWith(t) ? r.slice(0, -t.length) : r;\n};\nglobalThis.process?.platform;\nvar w = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), T = t(import.meta.url);\nconst re = /^path$/i, E = {\n\tkey: `PATH`,\n\tvalue: ``\n};\nfunction D(e) {\n\tfor (let t in e) {\n\t\tif (!Object.prototype.hasOwnProperty.call(e, t) || !re.test(t)) continue;\n\t\tlet n = e[t];\n\t\treturn n ? {\n\t\t\tkey: t,\n\t\t\tvalue: n\n\t\t} : E;\n\t}\n\treturn E;\n}\nfunction O(e, t) {\n\tlet n = t.value.split(o), r = [], i = e, a;\n\tdo\n\t\tr.push(l(i, `node_modules`, `.bin`)), a = i, i = s(i);\n\twhile (i !== a);\n\tlet c = r.concat(n).join(o);\n\treturn {\n\t\tkey: t.key,\n\t\tvalue: c\n\t};\n}\nfunction k(e, t) {\n\tlet n = {\n\t\t...process.env,\n\t\t...t\n\t}, r = O(e, D(n));\n\treturn n[r.key] = r.value, n;\n}\nconst A = (e) => {\n\tlet t = e.length, n = new i(), r = () => {\n\t\t--t === 0 && n.emit(`end`);\n\t};\n\tfor (let t of e) t.pipe(n, { end: !1 }), t.on(`end`, r);\n\treturn n;\n};\nvar j = w(((e, t) => {\n\tt.exports = a, a.sync = o;\n\tvar n = T(`fs`);\n\tfunction r(e, t) {\n\t\tvar n = t.pathExt === void 0 ? process.env.PATHEXT : t.pathExt;\n\t\tif (!n || (n = n.split(`;`), n.indexOf(``) !== -1)) return !0;\n\t\tfor (var r = 0; r < n.length; r++) {\n\t\t\tvar i = n[r].toLowerCase();\n\t\t\tif (i && e.substr(-i.length).toLowerCase() === i) return !0;\n\t\t}\n\t\treturn !1;\n\t}\n\tfunction i(e, t, n) {\n\t\treturn !e.isSymbolicLink() && !e.isFile() ? !1 : r(t, n);\n\t}\n\tfunction a(e, t, r) {\n\t\tn.stat(e, function(n, a) {\n\t\t\tr(n, n ? !1 : i(a, e, t));\n\t\t});\n\t}\n\tfunction o(e, t) {\n\t\treturn i(n.statSync(e), e, t);\n\t}\n})), M = w(((e, t) => {\n\tt.exports = r, r.sync = i;\n\tvar n = T(`fs`);\n\tfunction r(e, t, r) {\n\t\tn.stat(e, function(e, n) {\n\t\t\tr(e, e ? !1 : a(n, t));\n\t\t});\n\t}\n\tfunction i(e, t) {\n\t\treturn a(n.statSync(e), t);\n\t}\n\tfunction a(e, t) {\n\t\treturn e.isFile() && o(e, t);\n\t}\n\tfunction o(e, t) {\n\t\tvar n = e.mode, r = e.uid, i = e.gid, a = t.uid === void 0 ? process.getuid && process.getuid() : t.uid, o = t.gid === void 0 ? process.getgid && process.getgid() : t.gid, s = 64, c = 8, l = 1, u = s | c;\n\t\treturn n & l || n & c && i === o || n & s && r === a || n & u && a === 0;\n\t}\n})), N = w(((e, t) => {\n\tT(`fs`);\n\tvar n = process.platform === `win32` || global.TESTING_WINDOWS ? j() : M();\n\tt.exports = r, r.sync = i;\n\tfunction r(e, t, i) {\n\t\tif (typeof t == `function` && (i = t, t = {}), !i) {\n\t\t\tif (typeof Promise != `function`) throw TypeError(`callback not provided`);\n\t\t\treturn new Promise(function(n, i) {\n\t\t\t\tr(e, t || {}, function(e, t) {\n\t\t\t\t\te ? i(e) : n(t);\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t\tn(e, t || {}, function(e, n) {\n\t\t\te && (e.code === `EACCES` || t && t.ignoreErrors) && (e = null, n = !1), i(e, n);\n\t\t});\n\t}\n\tfunction i(e, t) {\n\t\ttry {\n\t\t\treturn n.sync(e, t || {});\n\t\t} catch (e) {\n\t\t\tif (t && t.ignoreErrors || e.code === `EACCES`) return !1;\n\t\t\tthrow e;\n\t\t}\n\t}\n})), P = w(((e, t) => {\n\tlet n = process.platform === `win32` || process.env.OSTYPE === `cygwin` || process.env.OSTYPE === `msys`, r = T(`path`), i = n ? `;` : `:`, a = N(), o = (e) => Object.assign(Error(`not found: ${e}`), { code: `ENOENT` }), s = (e, t) => {\n\t\tlet r = t.colon || i, a = e.match(/\\//) || n && e.match(/\\\\/) ? [``] : [...n ? [process.cwd()] : [], ...(t.path || process.env.PATH || ``).split(r)], o = n ? t.pathExt || process.env.PATHEXT || `.EXE;.CMD;.BAT;.COM` : ``, s = n ? o.split(r) : [``];\n\t\treturn n && e.indexOf(`.`) !== -1 && s[0] !== `` && s.unshift(``), {\n\t\t\tpathEnv: a,\n\t\t\tpathExt: s,\n\t\t\tpathExtExe: o\n\t\t};\n\t}, c = (e, t, n) => {\n\t\ttypeof t == `function` && (n = t, t = {}), t ||= {};\n\t\tlet { pathEnv: i, pathExt: c, pathExtExe: l } = s(e, t), u = [], d = (n) => new Promise((a, s) => {\n\t\t\tif (n === i.length) return t.all && u.length ? a(u) : s(o(e));\n\t\t\tlet c = i[n], l = /^\".*\"$/.test(c) ? c.slice(1, -1) : c, d = r.join(l, e);\n\t\t\ta(f(!l && /^\\.[\\\\\\/]/.test(e) ? e.slice(0, 2) + d : d, n, 0));\n\t\t}), f = (e, n, r) => new Promise((i, o) => {\n\t\t\tif (r === c.length) return i(d(n + 1));\n\t\t\tlet s = c[r];\n\t\t\ta(e + s, { pathExt: l }, (a, o) => {\n\t\t\t\tif (!a && o) if (t.all) u.push(e + s);\n\t\t\t\telse return i(e + s);\n\t\t\t\treturn i(f(e, n, r + 1));\n\t\t\t});\n\t\t});\n\t\treturn n ? d(0).then((e) => n(null, e), n) : d(0);\n\t};\n\tt.exports = c, c.sync = (e, t) => {\n\t\tt ||= {};\n\t\tlet { pathEnv: n, pathExt: i, pathExtExe: c } = s(e, t), l = [];\n\t\tfor (let o = 0; o < n.length; o++) {\n\t\t\tlet s = n[o], u = /^\".*\"$/.test(s) ? s.slice(1, -1) : s, d = r.join(u, e), f = !u && /^\\.[\\\\\\/]/.test(e) ? e.slice(0, 2) + d : d;\n\t\t\tfor (let e = 0; e < i.length; e++) {\n\t\t\t\tlet n = f + i[e];\n\t\t\t\ttry {\n\t\t\t\t\tif (a.sync(n, { pathExt: c })) if (t.all) l.push(n);\n\t\t\t\t\telse return n;\n\t\t\t\t} catch {}\n\t\t\t}\n\t\t}\n\t\tif (t.all && l.length) return l;\n\t\tif (t.nothrow) return null;\n\t\tthrow o(e);\n\t};\n})), F = w(((e, t) => {\n\tlet n = (e = {}) => {\n\t\tlet t = e.env || process.env;\n\t\treturn (e.platform || process.platform) === `win32` ? Object.keys(t).reverse().find((e) => e.toUpperCase() === `PATH`) || `Path` : `PATH`;\n\t};\n\tt.exports = n, t.exports.default = n;\n})), I = w(((e, t) => {\n\tlet n = T(`path`), r = P(), i = F();\n\tfunction a(e, t) {\n\t\tlet a = e.options.env || process.env, o = process.cwd(), s = e.options.cwd != null, c = s && process.chdir !== void 0 && !process.chdir.disabled;\n\t\tif (c) try {\n\t\t\tprocess.chdir(e.options.cwd);\n\t\t} catch {}\n\t\tlet l;\n\t\ttry {\n\t\t\tl = r.sync(e.command, {\n\t\t\t\tpath: a[i({ env: a })],\n\t\t\t\tpathExt: t ? n.delimiter : void 0\n\t\t\t});\n\t\t} catch {} finally {\n\t\t\tc && process.chdir(o);\n\t\t}\n\t\treturn l &&= n.resolve(s ? e.options.cwd : ``, l), l;\n\t}\n\tfunction o(e) {\n\t\treturn a(e) || a(e, !0);\n\t}\n\tt.exports = o;\n})), L = w(((e, t) => {\n\tlet n = /([()\\][%!^\"`<>&|;, *?])/g;\n\tfunction r(e) {\n\t\treturn e = e.replace(n, `^$1`), e;\n\t}\n\tfunction i(e, t) {\n\t\treturn e = `${e}`, e = e.replace(/(?=(\\\\+?)?)\\1\"/g, `$1$1\\\\\"`), e = e.replace(/(?=(\\\\+?)?)\\1$/, `$1$1`), e = `\"${e}\"`, e = e.replace(n, `^$1`), t && (e = e.replace(n, `^$1`)), e;\n\t}\n\tt.exports.command = r, t.exports.argument = i;\n})), R = w(((e, t) => {\n\tt.exports = /^#!(.*)/;\n})), z = w(((e, t) => {\n\tlet n = R();\n\tt.exports = (e = ``) => {\n\t\tlet t = e.match(n);\n\t\tif (!t) return null;\n\t\tlet [r, i] = t[0].replace(/#! ?/, ``).split(` `), a = r.split(`/`).pop();\n\t\treturn a === `env` ? i : i ? `${a} ${i}` : a;\n\t};\n})), B = w(((e, t) => {\n\tlet n = T(`fs`), r = z();\n\tfunction i(e) {\n\t\tlet t = Buffer.alloc(150), i;\n\t\ttry {\n\t\t\ti = n.openSync(e, `r`), n.readSync(i, t, 0, 150, 0), n.closeSync(i);\n\t\t} catch {}\n\t\treturn r(t.toString());\n\t}\n\tt.exports = i;\n})), V = w(((e, t) => {\n\tlet n = T(`path`), r = I(), i = L(), a = B(), o = process.platform === `win32`, s = /\\.(?:com|exe)$/i, c = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\tfunction l(e) {\n\t\te.file = r(e);\n\t\tlet t = e.file && a(e.file);\n\t\treturn t ? (e.args.unshift(e.file), e.command = t, r(e)) : e.file;\n\t}\n\tfunction u(e) {\n\t\tif (!o) return e;\n\t\tlet t = l(e), r = !s.test(t);\n\t\tif (e.options.forceShell || r) {\n\t\t\tlet r = c.test(t);\n\t\t\te.command = n.normalize(e.command), e.command = i.command(e.command), e.args = e.args.map((e) => i.argument(e, r)), e.args = [\n\t\t\t\t`/d`,\n\t\t\t\t`/s`,\n\t\t\t\t`/c`,\n\t\t\t\t`\"${[e.command].concat(e.args).join(` `)}\"`\n\t\t\t], e.command = process.env.comspec || `cmd.exe`, e.options.windowsVerbatimArguments = !0;\n\t\t}\n\t\treturn e;\n\t}\n\tfunction d(e, t, n) {\n\t\tt && !Array.isArray(t) && (n = t, t = null), t = t ? t.slice(0) : [], n = Object.assign({}, n);\n\t\tlet r = {\n\t\t\tcommand: e,\n\t\t\targs: t,\n\t\t\toptions: n,\n\t\t\tfile: void 0,\n\t\t\toriginal: {\n\t\t\t\tcommand: e,\n\t\t\t\targs: t\n\t\t\t}\n\t\t};\n\t\treturn n.shell ? r : u(r);\n\t}\n\tt.exports = d;\n})), ie = w(((e, t) => {\n\tlet n = process.platform === `win32`;\n\tfunction r(e, t) {\n\t\treturn Object.assign(Error(`${t} ${e.command} ENOENT`), {\n\t\t\tcode: `ENOENT`,\n\t\t\terrno: `ENOENT`,\n\t\t\tsyscall: `${t} ${e.command}`,\n\t\t\tpath: e.command,\n\t\t\tspawnargs: e.args\n\t\t});\n\t}\n\tfunction i(e, t) {\n\t\tif (!n) return;\n\t\tlet r = e.emit;\n\t\te.emit = function(n, i) {\n\t\t\tif (n === `exit`) {\n\t\t\t\tlet n = a(i, t);\n\t\t\t\tif (n) return r.call(e, `error`, n);\n\t\t\t}\n\t\t\treturn r.apply(e, arguments);\n\t\t};\n\t}\n\tfunction a(e, t) {\n\t\treturn n && e === 1 && !t.file ? r(t.original, `spawn`) : null;\n\t}\n\tfunction o(e, t) {\n\t\treturn n && e === 1 && !t.file ? r(t.original, `spawnSync`) : null;\n\t}\n\tt.exports = {\n\t\thookChildProcess: i,\n\t\tverifyENOENT: a,\n\t\tverifyENOENTSync: o,\n\t\tnotFoundError: r\n\t};\n})), H = w(((e, t) => {\n\tlet n = T(`child_process`), r = V(), i = ie();\n\tfunction a(e, t, a) {\n\t\tlet o = r(e, t, a), s = n.spawn(o.command, o.args, o.options);\n\t\treturn i.hookChildProcess(s, o), s;\n\t}\n\tfunction o(e, t, a) {\n\t\tlet o = r(e, t, a), s = n.spawnSync(o.command, o.args, o.options);\n\t\treturn s.error = s.error || i.verifyENOENTSync(s.status, o), s;\n\t}\n\tt.exports = a, t.exports.spawn = a, t.exports.sync = o, t.exports._parse = r, t.exports._enoent = i;\n}))(), U = class extends Error {\n\tresult;\n\toutput;\n\tget exitCode() {\n\t\tif (this.result.exitCode !== null) return this.result.exitCode;\n\t}\n\tconstructor(e, t) {\n\t\tsuper(`Process exited with non-zero status (${e.exitCode})`), this.result = e, this.output = t;\n\t}\n};\nconst W = {\n\ttimeout: void 0,\n\tpersist: !1\n}, G = { windowsHide: !0 };\nfunction K(e, t) {\n\treturn {\n\t\tcommand: c(e),\n\t\targs: t ?? []\n\t};\n}\nfunction q(e) {\n\tlet t = new AbortController();\n\tfor (let n of e) {\n\t\tif (n.aborted) return t.abort(), n;\n\t\tn.addEventListener(`abort`, () => {\n\t\t\tt.abort(n.reason);\n\t\t}, { signal: t.signal });\n\t}\n\treturn t.signal;\n}\nasync function J(e) {\n\tlet t = ``;\n\tfor await (let n of e) t += n.toString();\n\treturn t;\n}\nvar Y = class {\n\t_process;\n\t_aborted = !1;\n\t_options;\n\t_command;\n\t_args;\n\t_resolveClose;\n\t_processClosed;\n\t_thrownError;\n\tget process() {\n\t\treturn this._process;\n\t}\n\tget pid() {\n\t\treturn this._process?.pid;\n\t}\n\tget exitCode() {\n\t\tif (this._process && this._process.exitCode !== null) return this._process.exitCode;\n\t}\n\tconstructor(e, t, n) {\n\t\tthis._options = {\n\t\t\t...W,\n\t\t\t...n\n\t\t}, this._command = e, this._args = t ?? [], this._processClosed = new Promise((e) => {\n\t\t\tthis._resolveClose = e;\n\t\t});\n\t}\n\tkill(e) {\n\t\treturn this._process?.kill(e) === !0;\n\t}\n\tget aborted() {\n\t\treturn this._aborted;\n\t}\n\tget killed() {\n\t\treturn this._process?.killed === !0;\n\t}\n\tpipe(e, t, n) {\n\t\treturn ae(e, t, {\n\t\t\t...n,\n\t\t\tstdin: this\n\t\t});\n\t}\n\tasync *[Symbol.asyncIterator]() {\n\t\tlet e = this._process;\n\t\tif (!e) return;\n\t\tlet t = [];\n\t\tthis._streamErr && t.push(this._streamErr), this._streamOut && t.push(this._streamOut);\n\t\tlet n = A(t), r = d.createInterface({ input: n });\n\t\tfor await (let e of r) yield e.toString();\n\t\tif (await this._processClosed, e.removeAllListeners(), this._thrownError) throw this._thrownError;\n\t\tif (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new U(this);\n\t}\n\tasync _waitForOutput() {\n\t\tlet e = this._process;\n\t\tif (!e) throw Error(`No process was started`);\n\t\tlet [t, n] = await Promise.all([this._streamOut ? J(this._streamOut) : ``, this._streamErr ? J(this._streamErr) : ``]);\n\t\tif (await this._processClosed, this._options?.stdin && await this._options.stdin, e.removeAllListeners(), this._thrownError) throw this._thrownError;\n\t\tlet r = {\n\t\t\tstderr: n,\n\t\t\tstdout: t,\n\t\t\texitCode: this.exitCode\n\t\t};\n\t\tif (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new U(this, r);\n\t\treturn r;\n\t}\n\tthen(e, t) {\n\t\treturn this._waitForOutput().then(e, t);\n\t}\n\t_streamOut;\n\t_streamErr;\n\tspawn() {\n\t\tlet e = u(), t = this._options, n = {\n\t\t\t...G,\n\t\t\t...t.nodeOptions\n\t\t}, r = [];\n\t\tthis._resetState(), t.timeout !== void 0 && r.push(AbortSignal.timeout(t.timeout)), t.signal !== void 0 && r.push(t.signal), t.persist === !0 && (n.detached = !0), r.length > 0 && (n.signal = q(r)), n.env = k(e, n.env);\n\t\tlet { command: i, args: o } = K(this._command, this._args), s = (0, H._parse)(i, o, n), c = a(s.command, s.args, s.options);\n\t\tif (c.stderr && (this._streamErr = c.stderr), c.stdout && (this._streamOut = c.stdout), this._process = c, c.once(`error`, this._onError), c.once(`close`, this._onClose), t.stdin !== void 0 && c.stdin && t.stdin.process) {\n\t\t\tlet { stdout: e } = t.stdin.process;\n\t\t\te && e.pipe(c.stdin);\n\t\t}\n\t}\n\t_resetState() {\n\t\tthis._aborted = !1, this._processClosed = new Promise((e) => {\n\t\t\tthis._resolveClose = e;\n\t\t}), this._thrownError = void 0;\n\t}\n\t_onError = (e) => {\n\t\tif (e.name === `AbortError` && (!(e.cause instanceof Error) || e.cause.name !== `TimeoutError`)) {\n\t\t\tthis._aborted = !0;\n\t\t\treturn;\n\t\t}\n\t\tthis._thrownError = e;\n\t};\n\t_onClose = () => {\n\t\tthis._resolveClose && this._resolveClose();\n\t};\n};\nconst X = (e, t, n) => {\n\tlet r = new Y(e, t, n);\n\treturn r.spawn(), r;\n}, ae = X;\nvar oe = e({\n\tdetectPackageManager: () => $,\n\tinstallDependencies: () => fe,\n\tpackageManagers: () => Q\n});\nasync function se(e, t, n = {}) {\n\tlet r = g(e).split(`/`);\n\tfor (; r.length > 0;) {\n\t\tlet e = await t(r.join(`/`) || `/`);\n\t\tif (e || !n.includeParentDirs) return e;\n\t\tr.pop();\n\t}\n}\nfunction ce(e) {\n\tlet t;\n\treturn () => (t === void 0 && (t = e().then((e) => (t = e, t))), t);\n}\nconst Z = ce(async () => {\n\tif (globalThis.process?.versions?.webcontainer) return !1;\n\ttry {\n\t\tlet { exitCode: e } = await X(`corepack`, [`--version`]);\n\t\treturn e === 0;\n\t} catch {\n\t\treturn !1;\n\t}\n});\nasync function le(e, t, n = {}) {\n\tlet r = e !== `npm` && e !== `bun` && e !== `deno` && n.corepack !== !1 && await Z() ? [`corepack`, [e, ...t]] : [e, t], { exitCode: i, stdout: a, stderr: o } = await X(r[0], r[1], { nodeOptions: {\n\t\tcwd: y(n.cwd || process.cwd()),\n\t\tenv: n.env,\n\t\tstdio: n.silent ? `pipe` : `inherit`\n\t} });\n\tif (i !== 0) throw Error(`\\`${r.flat().join(` `)}\\` failed.${n.silent ? [\n\t\t``,\n\t\ta,\n\t\to\n\t].join(`\n`) : ``}`);\n}\nasync function ue(e = {}) {\n\tlet t = e.cwd || process.cwd(), n = {\n\t\t...process.env,\n\t\t...e.env\n\t}, r = (typeof e.packageManager == `string` ? Q.find((t) => t.name === e.packageManager) : e.packageManager) || await $(e.cwd || process.cwd());\n\tif (!r) throw Error(`No package manager auto-detected.`);\n\treturn {\n\t\tcwd: t,\n\t\tenv: n,\n\t\tsilent: e.silent ?? !1,\n\t\tpackageManager: r,\n\t\tdev: e.dev ?? !1,\n\t\tworkspace: e.workspace,\n\t\tglobal: e.global ?? !1,\n\t\tdry: e.dry ?? !1,\n\t\tcorepack: e.corepack ?? !0\n\t};\n}\nfunction de(e) {\n\tlet [t, n] = (e || ``).split(`@`), [r, i] = n?.split(`+`) || [];\n\tif (t && t !== `-` && /^(@[a-z0-9-~][a-z0-9-._~]*\\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(t)) return {\n\t\tname: t,\n\t\tversion: r,\n\t\tbuildMeta: i\n\t};\n\tlet a = (t || ``).replace(/\\W+/g, ``);\n\treturn {\n\t\tname: a,\n\t\tversion: r,\n\t\tbuildMeta: i,\n\t\twarnings: [`Abnormal characters found in \\`packageManager\\` field, sanitizing from \\`${t}\\` to \\`${a}\\``]\n\t};\n}\nconst Q = [\n\t{\n\t\tname: `npm`,\n\t\tcommand: `npm`,\n\t\tlockFile: `package-lock.json`\n\t},\n\t{\n\t\tname: `pnpm`,\n\t\tcommand: `pnpm`,\n\t\tlockFile: `pnpm-lock.yaml`,\n\t\tfiles: [`pnpm-workspace.yaml`]\n\t},\n\t{\n\t\tname: `bun`,\n\t\tcommand: `bun`,\n\t\tlockFile: [`bun.lockb`, `bun.lock`]\n\t},\n\t{\n\t\tname: `yarn`,\n\t\tcommand: `yarn`,\n\t\tlockFile: `yarn.lock`,\n\t\tfiles: [`.yarnrc.yml`]\n\t},\n\t{\n\t\tname: `deno`,\n\t\tcommand: `deno`,\n\t\tlockFile: `deno.lock`,\n\t\tfiles: [`deno.json`]\n\t}\n];\nasync function $(e, t = {}) {\n\tlet i = await se(y(e || `.`), async (e) => {\n\t\tif (!t.ignorePackageJSON) {\n\t\t\tlet t = _(e, `package.json`);\n\t\t\tif (n(t)) {\n\t\t\t\tlet e = JSON.parse(await r(t, `utf8`));\n\t\t\t\tif (e?.packageManager) {\n\t\t\t\t\tlet { name: t, version: n = `0.0.0`, buildMeta: r, warnings: i } = de(e.packageManager);\n\t\t\t\t\tif (t) {\n\t\t\t\t\t\tlet e = n.split(`.`)[0], a = Q.find((n) => n.name === t && n.majorVersion === e) || Q.find((e) => e.name === t);\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tname: t,\n\t\t\t\t\t\t\tcommand: t,\n\t\t\t\t\t\t\tversion: n,\n\t\t\t\t\t\t\tmajorVersion: e,\n\t\t\t\t\t\t\tbuildMeta: r,\n\t\t\t\t\t\t\twarnings: i,\n\t\t\t\t\t\t\tfiles: a?.files,\n\t\t\t\t\t\t\tlockFile: a?.lockFile\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (n(_(e, `deno.json`))) return Q.find((e) => e.name === `deno`);\n\t\t}\n\t\tif (!t.ignoreLockFile) {\n\t\t\tfor (let t of Q) if ([t.lockFile, t.files].flat().filter(Boolean).some((t) => n(y(e, t)))) return { ...t };\n\t\t}\n\t}, { includeParentDirs: t.includeParentDirs ?? !0 });\n\tif (!i && !t.ignoreArgv) {\n\t\tlet e = process.argv[1];\n\t\tif (e) {\n\t\t\tfor (let t of Q) if (RegExp(`[/\\\\\\\\]\\\\.?${t.command}`).test(e)) return t;\n\t\t}\n\t}\n\treturn i;\n}\nasync function fe(e = {}) {\n\tlet t = await ue(e), n = e.frozenLockFile ? {\n\t\tnpm: [`ci`],\n\t\tyarn: [`install`, `--immutable`],\n\t\tbun: [`install`, `--frozen-lockfile`],\n\t\tpnpm: [`install`, `--frozen-lockfile`],\n\t\tdeno: [`install`, `--frozen`]\n\t}[t.packageManager.name] : [`install`];\n\treturn e.ignoreWorkspace && t.packageManager.name === `pnpm` && n.push(`--ignore-workspace`), t.dry || await le(t.packageManager.command, n, {\n\t\tcwd: t.cwd,\n\t\tsilent: t.silent,\n\t\tcorepack: t.corepack\n\t}), { exec: {\n\t\tcommand: t.packageManager.command,\n\t\targs: n\n\t} };\n}\nexport { y as a, S as i, ne as n, C as r, oe as t };\n","import \"node:module\";\n//#region \\0rolldown/runtime.js\nvar __defProp = Object.defineProperty;\nvar __exportAll = (all, no_symbols) => {\n\tlet target = {};\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n\tif (!no_symbols) __defProp(target, Symbol.toStringTag, { value: \"Module\" });\n\treturn target;\n};\n//#endregion\nexport { __exportAll as t };\n","import { a as resolve$1, i as relative, n as basename$1, r as dirname$1 } from \"./libs/nypm.mjs\";\nimport { createWriteStream, existsSync, readdirSync, renameSync } from \"node:fs\";\nimport { mkdir, mkdtemp, readFile, rm, writeFile } from \"node:fs/promises\";\nimport { PassThrough, Readable, pipeline } from \"node:stream\";\nimport { pipeline as pipeline$1 } from \"node:stream/promises\";\nimport { spawn, spawnSync } from \"node:child_process\";\nimport { homedir, tmpdir } from \"node:os\";\nimport { promisify } from \"node:util\";\nimport { join } from \"node:path\";\n//#region src/_utils.ts\nasync function download(url, filePath, options = {}) {\n\tconst infoPath = filePath + \".json\";\n\tconst info = JSON.parse(await readFile(infoPath, \"utf8\").catch(() => \"{}\"));\n\tconst etag = (await sendFetch(url, {\n\t\tmethod: \"HEAD\",\n\t\theaders: options.headers\n\t}).catch(() => void 0))?.headers.get(\"etag\");\n\tif (info.etag === etag && existsSync(filePath)) return;\n\tif (typeof etag === \"string\") info.etag = etag;\n\tconst response = await sendFetch(url, { headers: options.headers });\n\tif (response.status >= 400) throw new Error(`Failed to download ${url}: ${response.status} ${response.statusText}`);\n\tconst stream = createWriteStream(filePath);\n\tawait promisify(pipeline)(response.body, stream);\n\tawait writeFile(infoPath, JSON.stringify(info), \"utf8\");\n}\nconst inputRegex = /^(?<repo>[-\\w.]+\\/[-\\w.]+)(?<subdir>[^#]+)?(?<ref>#[-\\w./@]+)?/;\nconst expandedInputRegex = /^(?<repo>[-\\w.]+(?:\\/[-\\w.]+)+?)(?:::(?<subdir>[^#]*))?(?<ref>#[-\\w./@]+)?$/;\nfunction parseGitURI(input, options) {\n\tconst useExpanded = options?.expandRepo || input.includes(\"::\");\n\tconst m = input.match(useExpanded ? expandedInputRegex : inputRegex)?.groups || {};\n\tconst subdir = useExpanded ? m.subdir ? \"/\" + m.subdir : \"/\" : m.subdir || \"/\";\n\treturn {\n\t\trepo: m.repo || \"\",\n\t\tsubdir,\n\t\tref: m.ref ? m.ref.slice(1) : \"main\"\n\t};\n}\nfunction debug(...args) {\n\tif (process.env.DEBUG) console.debug(\"[giget]\", ...args);\n}\nasync function sendFetch(url, options = {}) {\n\tif (options.headers?.[\"sec-fetch-mode\"]) options.mode = options.headers[\"sec-fetch-mode\"];\n\tconst res = await fetch(url, {\n\t\t...options,\n\t\theaders: normalizeHeaders(options.headers)\n\t}).catch((error) => {\n\t\tthrow new Error(`Failed to download ${url}: ${error}`, { cause: error });\n\t});\n\tif (options.validateStatus && res.status >= 400) throw new Error(`Failed to fetch ${url}: ${res.status} ${res.statusText}`);\n\treturn res;\n}\nfunction cacheDirectory() {\n\tconst cacheDir = process.env.XDG_CACHE_HOME ? resolve$1(process.env.XDG_CACHE_HOME, \"giget\") : resolve$1(homedir(), \".cache/giget\");\n\tif (process.platform === \"win32\") {\n\t\tconst windowsCacheDir = resolve$1(tmpdir(), \"giget\");\n\t\tif (!existsSync(windowsCacheDir) && existsSync(cacheDir)) try {\n\t\t\trenameSync(cacheDir, windowsCacheDir);\n\t\t} catch {}\n\t\treturn windowsCacheDir;\n\t}\n\treturn cacheDir;\n}\nfunction normalizeHeaders(headers = {}) {\n\tconst normalized = {};\n\tfor (const [key, value] of Object.entries(headers)) {\n\t\tif (!value) continue;\n\t\tnormalized[key.toLowerCase()] = value;\n\t}\n\treturn normalized;\n}\nfunction currentShell() {\n\tif (process.env.SHELL) return process.env.SHELL;\n\tif (process.platform === \"win32\") return \"cmd.exe\";\n\treturn \"/bin/bash\";\n}\nfunction startShell(cwd) {\n\tcwd = resolve$1(cwd);\n\tconst shell = currentShell();\n\tconsole.info(`(experimental) Opening shell in ${relative(process.cwd(), cwd)}...`);\n\tspawnSync(shell, [], {\n\t\tcwd,\n\t\tshell: true,\n\t\tstdio: \"inherit\"\n\t});\n}\n//#endregion\n//#region src/git.ts\nconst git = (input, options) => {\n\tconst parsed = parseGitCloneURI(input);\n\treturn {\n\t\tname: parsed.name,\n\t\tversion: parsed.subdir ? `${parsed.version || \"default\"}-${parsed.subdir.replaceAll(\"/\", \"-\")}` : parsed.version,\n\t\ttar: ({ auth } = {}) => _cloneAndTar(parsed, auth ?? options.auth)\n\t};\n};\nfunction parseGitCloneURI(input, opts = {}) {\n\tconst cwd = opts.cwd ?? process.cwd();\n\tlet uri = input.replace(/#.*$/, \"\");\n\tlet pathSubdir;\n\tif (/^[./]/.test(input)) uri = resolve$1(cwd, uri);\n\telse if (/^https?:\\/\\//.test(uri)) {\n\t\tconst httpMatch = /^(https?:\\/\\/[^/]+)\\/([\\w.-]+\\/[\\w.-]+?)(?:\\.git)?(?:\\/(.+))?$/.exec(uri);\n\t\tif (httpMatch) {\n\t\t\tconst [, origin, repo, rest] = httpMatch;\n\t\t\turi = `${origin}/${repo}`;\n\t\t\tif (rest) pathSubdir = rest;\n\t\t}\n\t} else if (uri.includes(\"@\")) {\n\t\tconst sshMatch = /^(.*?:[\\w.-]+\\/[\\w.-]+?)(?:\\.git)?(?:\\/(.+))?$/.exec(uri);\n\t\tif (sshMatch) {\n\t\t\tconst [, repoUri, rest] = sshMatch;\n\t\t\turi = repoUri;\n\t\t\tif (rest) pathSubdir = rest;\n\t\t}\n\t} else {\n\t\tconst hostMap = {\n\t\t\t\"github:\": \"https://github.com/\",\n\t\t\t\"gh:\": \"https://github.com/\",\n\t\t\t\"gitlab:\": \"https://gitlab.com/\",\n\t\t\t\"bitbucket:\": \"https://bitbucket.org/\",\n\t\t\t\"sourcehut:\": \"https://git.sr.ht/~\"\n\t\t};\n\t\tconst host = /^(.+?:)/.exec(uri)?.at(1);\n\t\tif (host && hostMap[host]) uri = uri.replace(host, hostMap[host]);\n\t\telse if (!host) uri = `${(process.env.GIGET_GIT_HOST || \"https://github.com/\").replace(/\\/$/, \"\")}/${uri}`;\n\t\tconst httpMatch = /^(https?:\\/\\/[^/]+\\/~?[\\w.-]+\\/[\\w.-]+?)(?:\\.git)?(?:\\/(.+))?$/.exec(uri);\n\t\tif (httpMatch) {\n\t\t\tconst [, repoUri, rest] = httpMatch;\n\t\t\turi = repoUri;\n\t\t\tif (rest) pathSubdir = rest;\n\t\t}\n\t}\n\tconst name = uri.replace(/^https?:\\/\\//, \"\").replace(/^.+@/, \"\").replace(/(\\.git)?(#.*)?$/, \"\").replace(/^\\W+/, \"\").replaceAll(/[:/]/g, \"-\");\n\tconst [version, hashSubdir] = /#(.+)$/.exec(input)?.at(1)?.split(\":\") ?? [];\n\tconst resolvedVersion = version || void 0;\n\tconst subdir = hashSubdir || pathSubdir;\n\treturn {\n\t\turi,\n\t\tname,\n\t\t...resolvedVersion && { version: resolvedVersion },\n\t\t...subdir && { subdir }\n\t};\n}\nasync function _cloneAndTar(parsed, token) {\n\tconst tmpDir = await mkdtemp(join(tmpdir(), \"giget-git-\"));\n\tif (token && /[\\r\\n]/.test(token)) throw new Error(\"Auth token must not contain newline characters\");\n\tconst execEnv = {\n\t\t...process.env,\n\t\tGIT_TERMINAL_PROMPT: \"0\"\n\t};\n\tif (token) {\n\t\texecEnv.GIT_CONFIG_COUNT = \"1\";\n\t\texecEnv.GIT_CONFIG_KEY_0 = \"http.extraHeader\";\n\t\texecEnv.GIT_CONFIG_VALUE_0 = `Authorization: Bearer ${token}`;\n\t}\n\tconst execOpts = {\n\t\tenv: execEnv,\n\t\ttimeout: 6e4\n\t};\n\tconst status = _createStatus();\n\tconst gitExec = (args) => _gitSpawn(args, execOpts, status);\n\tconst gitExecIn = (args) => _gitSpawn(args, {\n\t\t...execOpts,\n\t\tcwd: tmpDir\n\t}, status);\n\ttry {\n\t\tconst cloneArgs = [\n\t\t\t\"clone\",\n\t\t\t\"--progress\",\n\t\t\t\"--depth\",\n\t\t\t\"1\"\n\t\t];\n\t\tif (parsed.subdir) cloneArgs.push(\"--filter=blob:none\", \"--sparse\", \"--no-checkout\");\n\t\tif (parsed.version) cloneArgs.push(\"--branch\", parsed.version);\n\t\tcloneArgs.push(\"--\", parsed.uri, tmpDir);\n\t\ttry {\n\t\t\tstatus.update(\"Cloning...\");\n\t\t\tawait gitExec(cloneArgs);\n\t\t\tstatus.update(\"Cloned.\");\n\t\t} catch (cloneError) {\n\t\t\tif (!parsed.version) throw cloneError;\n\t\t\tdebug(\"Shallow clone failed, falling back to full clone:\", cloneError);\n\t\t\tstatus.update(\"Shallow clone failed, cloning...\");\n\t\t\tawait rm(tmpDir, {\n\t\t\t\trecursive: true,\n\t\t\t\tforce: true\n\t\t\t});\n\t\t\tawait mkdir(tmpDir, { recursive: true });\n\t\t\tawait gitExecIn([\"init\"]);\n\t\t\tawait gitExecIn([\n\t\t\t\t\"remote\",\n\t\t\t\t\"add\",\n\t\t\t\t\"origin\",\n\t\t\t\tparsed.uri\n\t\t\t]);\n\t\t\tawait gitExecIn([\"fetch\", \"origin\"]);\n\t\t\tawait gitExecIn([\"checkout\", parsed.version]);\n\t\t\tstatus.update(\"Fetched.\");\n\t\t}\n\t\tif (parsed.subdir) {\n\t\t\tstatus.update(`Sparse checkout ${parsed.subdir}...`);\n\t\t\tawait gitExecIn([\n\t\t\t\t\"sparse-checkout\",\n\t\t\t\t\"set\",\n\t\t\t\tparsed.subdir\n\t\t\t]);\n\t\t\tawait gitExecIn([\"checkout\"]);\n\t\t}\n\t\tstatus.update(\"Packing...\");\n\t\tconst tarDir = parsed.subdir ? join(tmpDir, parsed.subdir) : tmpDir;\n\t\tconst { create } = await import(\"./libs/tar.mjs\").then((n) => n.t);\n\t\tstatus.done();\n\t\tconst stream = create({\n\t\t\tgzip: true,\n\t\t\tcwd: tarDir,\n\t\t\tfilter: (path) => !path.startsWith(\".git/\") && path !== \".git\" && !path.startsWith(\"./.git/\") && path !== \"./.git\"\n\t\t}, [\".\"]).pipe(new PassThrough());\n\t\tlet cleaned = false;\n\t\tconst cleanup = () => {\n\t\t\tif (cleaned) return;\n\t\t\tcleaned = true;\n\t\t\trm(tmpDir, {\n\t\t\t\trecursive: true,\n\t\t\t\tforce: true\n\t\t\t});\n\t\t};\n\t\tstream.on(\"end\", cleanup);\n\t\tstream.on(\"error\", cleanup);\n\t\tstream.on(\"close\", cleanup);\n\t\treturn stream;\n\t} catch (error) {\n\t\tstatus.done();\n\t\tawait rm(tmpDir, {\n\t\t\trecursive: true,\n\t\t\tforce: true\n\t\t});\n\t\tthrow error;\n\t}\n}\nconst _spinnerFrames = [\n\t\"⠋\",\n\t\"⠙\",\n\t\"⠹\",\n\t\"⠸\",\n\t\"⠼\",\n\t\"⠴\",\n\t\"⠦\",\n\t\"⠧\",\n\t\"⠇\",\n\t\"⠏\"\n];\nfunction _gitSpawn(args, opts, status) {\n\treturn new Promise((resolve, reject) => {\n\t\tconst proc = spawn(\"git\", args, {\n\t\t\t...opts,\n\t\t\tstdio: [\n\t\t\t\t\"ignore\",\n\t\t\t\t\"pipe\",\n\t\t\t\t\"pipe\"\n\t\t\t]\n\t\t});\n\t\tproc.stdout.resume();\n\t\tlet lastLine = \"\";\n\t\tproc.stderr?.on(\"data\", (chunk) => {\n\t\t\tconst str = chunk.toString();\n\t\t\tfor (const line of str.split(/[\\r\\n]/)) {\n\t\t\t\tconst clean = line.trim();\n\t\t\t\tif (clean) lastLine = clean;\n\t\t\t}\n\t\t\tif (status) status.update(lastLine);\n\t\t});\n\t\tproc.on(\"close\", (code) => {\n\t\t\tif (code === 0) resolve(lastLine);\n\t\t\telse reject(/* @__PURE__ */ new Error(`git ${args[0]} exited with code ${code}. Is git installed?`));\n\t\t});\n\t\tproc.on(\"error\", (err) => {\n\t\t\tif (err.code === \"ENOENT\") reject(/* @__PURE__ */ new Error(\"git is not installed or not found in PATH\"));\n\t\t\telse reject(err);\n\t\t});\n\t});\n}\nfunction _createStatus() {\n\tif (!process.stderr.isTTY) return {\n\t\tupdate(_text) {},\n\t\tdone() {}\n\t};\n\tlet msg = \"\";\n\tlet frame = 0;\n\tconst render = () => {\n\t\tconst spinner = _spinnerFrames[frame % _spinnerFrames.length];\n\t\tframe++;\n\t\tprocess.stderr.write(`\\x1B[2K\\r\\x1B[2m${spinner} ${msg}\\x1B[0m`);\n\t};\n\tconst interval = setInterval(render, 80);\n\treturn {\n\t\tupdate(text) {\n\t\t\tmsg = text;\n\t\t\trender();\n\t\t},\n\t\tdone() {\n\t\t\tclearInterval(interval);\n\t\t\tprocess.stderr.write(\"\\x1B[2K\\r\");\n\t\t}\n\t};\n}\n//#endregion\n//#region src/providers.ts\nconst http = async (input, options) => {\n\tif (input.endsWith(\".json\")) return await _httpJSON(input, options);\n\tconst url = new URL(input);\n\tlet name = basename$1(url.pathname);\n\ttry {\n\t\tconst head = await sendFetch(url.href, {\n\t\t\tmethod: \"HEAD\",\n\t\t\tvalidateStatus: true,\n\t\t\theaders: { authorization: options.auth ? `Bearer ${options.auth}` : void 0 }\n\t\t});\n\t\tif ((head.headers.get(\"content-type\") || \"\").includes(\"application/json\")) return await _httpJSON(input, options);\n\t\tconst filename = head.headers.get(\"content-disposition\")?.match(/filename=\"?(.+)\"?/)?.[1];\n\t\tif (filename) name = filename.split(\".\")[0];\n\t} catch (error) {\n\t\tdebug(`Failed to fetch HEAD for ${url.href}:`, error);\n\t}\n\treturn {\n\t\tname: `${name}-${url.href.slice(0, 8)}`,\n\t\tversion: \"\",\n\t\tsubdir: \"\",\n\t\ttar: url.href,\n\t\tdefaultDir: name,\n\t\theaders: { Authorization: options.auth ? `Bearer ${options.auth}` : void 0 }\n\t};\n};\nconst _httpJSON = async (input, options) => {\n\tconst info = await (await sendFetch(input, {\n\t\tvalidateStatus: true,\n\t\theaders: { authorization: options.auth ? `Bearer ${options.auth}` : void 0 }\n\t})).json();\n\tif (!info.tar || !info.name) throw new Error(`Invalid template info from ${input}. name or tar fields are missing!`);\n\treturn info;\n};\nconst github = (input, options) => {\n\tconst parsed = parseGitURI(input);\n\tconst githubAPIURL = process.env.GIGET_GITHUB_URL || \"https://api.github.com\";\n\treturn {\n\t\tname: parsed.repo.replace(\"/\", \"-\"),\n\t\tversion: parsed.ref,\n\t\tsubdir: parsed.subdir,\n\t\theaders: {\n\t\t\tAuthorization: options.auth ? `Bearer ${options.auth}` : void 0,\n\t\t\tAccept: \"application/vnd.github+json\",\n\t\t\t\"X-GitHub-Api-Version\": \"2022-11-28\"\n\t\t},\n\t\turl: `${githubAPIURL.replace(\"api.github.com\", \"github.com\")}/${parsed.repo}/tree/${parsed.ref}${parsed.subdir}`,\n\t\ttar: `${githubAPIURL}/repos/${parsed.repo}/tarball/${parsed.ref}`\n\t};\n};\nconst gitlab = (input, options) => {\n\tconst parsed = parseGitURI(input, { expandRepo: true });\n\tconst gitlab = process.env.GIGET_GITLAB_URL || \"https://gitlab.com\";\n\treturn {\n\t\tname: parsed.repo.replace(\"/\", \"-\"),\n\t\tversion: parsed.ref,\n\t\tsubdir: parsed.subdir,\n\t\theaders: {\n\t\t\tauthorization: options.auth ? `Bearer ${options.auth}` : void 0,\n\t\t\t\"sec-fetch-mode\": \"same-origin\"\n\t\t},\n\t\turl: `${gitlab}/${parsed.repo}/tree/${parsed.ref}${parsed.subdir}`,\n\t\ttar: `${gitlab}/${parsed.repo}/-/archive/${parsed.ref}.tar.gz`\n\t};\n};\nconst bitbucket = (input, options) => {\n\tconst parsed = parseGitURI(input);\n\treturn {\n\t\tname: parsed.repo.replace(\"/\", \"-\"),\n\t\tversion: parsed.ref,\n\t\tsubdir: parsed.subdir,\n\t\theaders: { authorization: options.auth ? `Bearer ${options.auth}` : void 0 },\n\t\turl: `https://bitbucket.com/${parsed.repo}/src/${parsed.ref}${parsed.subdir}`,\n\t\ttar: `https://bitbucket.org/${parsed.repo}/get/${parsed.ref}.tar.gz`\n\t};\n};\nconst sourcehut = (input, options) => {\n\tconst parsed = parseGitURI(input);\n\treturn {\n\t\tname: parsed.repo.replace(\"/\", \"-\"),\n\t\tversion: parsed.ref,\n\t\tsubdir: parsed.subdir,\n\t\theaders: { authorization: options.auth ? `Bearer ${options.auth}` : void 0 },\n\t\turl: `https://git.sr.ht/~${parsed.repo}/tree/${parsed.ref}/item${parsed.subdir}`,\n\t\ttar: `https://git.sr.ht/~${parsed.repo}/archive/${parsed.ref}.tar.gz`\n\t};\n};\nconst providers = {\n\thttp,\n\thttps: http,\n\tgit,\n\tgithub,\n\tgh: github,\n\tgitlab,\n\tbitbucket,\n\tsourcehut\n};\n//#endregion\n//#region src/registry.ts\nconst DEFAULT_REGISTRY = \"https://raw.githubusercontent.com/unjs/giget/main/templates\";\nconst registryProvider = (registryEndpoint = DEFAULT_REGISTRY, options = {}) => {\n\treturn (async (input) => {\n\t\tconst start = Date.now();\n\t\tconst registryURL = `${registryEndpoint}/${input}.json`;\n\t\tconst result = await sendFetch(registryURL, { headers: { authorization: options.auth ? `Bearer ${options.auth}` : void 0 } });\n\t\tif (result.status >= 400) throw new Error(`Failed to download ${input} template info from ${registryURL}: ${result.status} ${result.statusText}`);\n\t\tconst info = await result.json();\n\t\tif (!info.tar || !info.name) throw new Error(`Invalid template info from ${registryURL}. name or tar fields are missing!`);\n\t\tdebug(`Fetched ${input} template info from ${registryURL} in ${Date.now() - start}ms`);\n\t\treturn info;\n\t});\n};\n//#endregion\n//#region src/giget.ts\nconst sourceProtoRe = /^([\\w+-.]+):/;\nasync function downloadTemplate(input, options = {}) {\n\toptions.registry = process.env.GIGET_REGISTRY ?? options.registry;\n\toptions.auth = process.env.GIGET_AUTH ?? options.auth;\n\tconst registry = options.registry === false ? void 0 : registryProvider(options.registry, { auth: options.auth });\n\tlet providerName = options.provider || (registry ? \"registry\" : \"github\");\n\tlet source = input;\n\tconst sourceProviderMatch = input.match(sourceProtoRe);\n\tif (sourceProviderMatch) {\n\t\tproviderName = sourceProviderMatch[1];\n\t\tsource = input.slice(sourceProviderMatch[0].length);\n\t\tif (providerName === \"http\" || providerName === \"https\") source = input;\n\t}\n\tif (providerName.endsWith(\"+git\")) {\n\t\tsource = `${providerName.slice(0, -4)}:${source}`;\n\t\tproviderName = \"git\";\n\t}\n\tconst provider = options.providers?.[providerName] || providers[providerName] || registry;\n\tif (!provider) throw new Error(`Unsupported provider: ${providerName}`);\n\tconst template = await Promise.resolve().then(() => provider(source, { auth: options.auth })).catch((error) => {\n\t\tthrow new Error(`Failed to download template from ${providerName}: ${error.message}`);\n\t});\n\tif (!template) throw new Error(`Failed to resolve template from ${providerName}`);\n\ttemplate.name = (template.name || \"template\").replace(/[^\\da-z-]/gi, \"-\");\n\ttemplate.defaultDir = (template.defaultDir || template.name).replace(/[^\\da-z-]/gi, \"-\");\n\tconst tarPath = resolve$1(resolve$1(cacheDirectory(), providerName, template.name), (template.version || template.name) + \".tar.gz\");\n\tif (options.preferOffline && existsSync(tarPath)) options.offline = true;\n\tif (!options.offline) {\n\t\tawait mkdir(dirname$1(tarPath), { recursive: true });\n\t\tconst s = Date.now();\n\t\tif (typeof template.tar === \"function\") {\n\t\t\tconst tarFn = template.tar;\n\t\t\tawait (async () => {\n\t\t\t\tconst stream = await tarFn({ auth: options.auth });\n\t\t\t\tawait pipeline$1(stream instanceof Readable ? stream : Readable.fromWeb(stream), createWriteStream(tarPath));\n\t\t\t})().catch((error) => {\n\t\t\t\tif (!existsSync(tarPath)) throw error;\n\t\t\t\tdebug(\"Download error. Using cached version:\", error);\n\t\t\t\toptions.offline = true;\n\t\t\t});\n\t\t} else await download(template.tar, tarPath, { headers: {\n\t\t\tAuthorization: options.auth ? `Bearer ${options.auth}` : void 0,\n\t\t\t...normalizeHeaders(template.headers)\n\t\t} }).catch((error) => {\n\t\t\tif (!existsSync(tarPath)) throw error;\n\t\t\tdebug(\"Download error. Using cached version:\", error);\n\t\t\toptions.offline = true;\n\t\t});\n\t\tdebug(`Downloaded to ${tarPath} in ${Date.now() - s}ms`);\n\t}\n\tif (!existsSync(tarPath)) throw new Error(`Tarball not found: ${tarPath} (offline: ${options.offline})`);\n\tconst extractPath = resolve$1(resolve$1(options.cwd || \".\"), options.dir || template.defaultDir);\n\tif (options.forceClean) await rm(extractPath, {\n\t\trecursive: true,\n\t\tforce: true\n\t});\n\tif (!options.force && existsSync(extractPath) && readdirSync(extractPath).length > 0) throw new Error(`Destination ${extractPath} already exists.`);\n\tawait mkdir(extractPath, { recursive: true });\n\tconst s = Date.now();\n\tconst subdir = template.subdir?.replace(/^\\//, \"\") || \"\";\n\tconst { extract } = await import(\"./libs/tar.mjs\").then((n) => n.t);\n\tawait extract({\n\t\tfile: tarPath,\n\t\tcwd: extractPath,\n\t\tonReadEntry(entry) {\n\t\t\tentry.path = entry.path.split(\"/\").splice(1).join(\"/\");\n\t\t\tif (subdir) if (entry.path.startsWith(subdir + \"/\")) entry.path = entry.path.slice(subdir.length);\n\t\t\telse entry.path = \"\";\n\t\t}\n\t});\n\tdebug(`Extracted to ${extractPath} in ${Date.now() - s}ms`);\n\tif (options.install) {\n\t\tdebug(\"Installing dependencies...\");\n\t\tconst { installDependencies } = await import(\"./libs/nypm.mjs\").then((n) => n.t);\n\t\tawait installDependencies({\n\t\t\tcwd: extractPath,\n\t\t\tsilent: options.silent,\n\t\t\t...typeof options.install === \"object\" ? options.install : {}\n\t\t});\n\t}\n\treturn {\n\t\t...template,\n\t\tsource,\n\t\tdir: extractPath\n\t};\n}\n//#endregion\nexport { registryProvider as n, startShell as r, downloadTemplate as t };\n","import { n as registryProvider, r as startShell, t as downloadTemplate } from \"./_chunks/giget.mjs\";\nexport { downloadTemplate, registryProvider, startShell };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAiD;AACA;AACP;AACO;AACF;AACC;AACuC;AAC/C;AACV;AAC9B;AACA;AACA;AACA;AACA,mBAAmB,EAAE,gCAAgC,EAAE;AACvD;AACA;AACA;AACA,0HAA0H,EAAE,WAAW,EAAE,qBAAqB,EAAE;AAChK,CAAC;AACD;AACA;AACA;AACA,mDAAmD,EAAE;AACrD,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,eAAe;AAC3C;AACA,kCAAkC,EAAE,GAAG,EAAE;AACzC;AACA,uCAAuC,EAAE;AACzC;AACA;AACA;AACA,iBAAiB,eAAe;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,KAAK,6BAA6B,kBAAkB;AACpD;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,CAAC;AACD;AACA,4BAA4B,QAAQ;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC,aAAa,+BAA+B,8CAAC;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA,uBAAuB,oCAAC;AACxB;AACA,SAAS,sCAAC,yCAAyC,sCAAC;AACpD;AACA,0BAA0B,oCAAC;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,2BAA2B,wCAAC;AAC5B;AACA;AACA,8BAA8B,SAAS;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B,kBAAkB,cAAc;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA,gBAAgB;AAChB;AACA,KAAK;AACL,IAAI;AACJ;AACA,cAAc;AACd;AACA,GAAG;AACH;AACA;AACA;AACA,2BAA2B;AAC3B,IAAI;AACJ;AACA;AACA;AACA;AACA,CAAC;AACD,oIAAoI,+DAA+D,EAAE,MAAM,gBAAgB;AAC3N,0MAA0M,KAAK,KAAK;AACpN;AACA;AACA;AACA;AACA;AACA,EAAE;AACF,0CAA0C;AAC1C,QAAQ,wCAAwC;AAChD;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,cAAc,YAAY;AAC1B;AACA;AACA;AACA,IAAI;AACJ,GAAG;AACH;AACA;AACA;AACA;AACA,QAAQ,wCAAwC;AAChD,kBAAkB,cAAc;AAChC;AACA,mBAAmB,cAAc;AACjC;AACA;AACA,qBAAqB,YAAY;AACjC;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,gBAAgB;AAChB;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA,IAAI;AACJ,IAAI,SAAS;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,2BAA2B;AAC3B;AACA;AACA;AACA;AACA,gBAAgB,EAAE,iGAAiG,EAAE;AACrH;AACA;AACA,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,kCAAkC,GAAG,EAAE,EAAE;AACzC;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,qCAAqC;AAC7C;AACA;AACA;AACA;AACA;AACA,4FAA4F;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,gCAAgC,GAAG,EAAE,WAAW;AAChD;AACA;AACA,eAAe,GAAG,EAAE,UAAU;AAC9B;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD,WAAW;AAC3D;AACA;AACA;AACA;AACA;AACA,CAAC,QAAQ;AACT;AACA;AACA,WAAW,wCAAC;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG,IAAI,kBAAkB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,8CAAiB,GAAG,UAAU;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,qCAAC;AACX;AACA;AACA,GAAG;AACH;AACA,QAAQ,sBAAsB,gEAAgE,6CAAC;AAC/F;AACA,SAAS,YAAY;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,SAAS,4CAAC;AACV;AACA;AACA;AACA,CAAC;AACD,8BAA8B;AAC9B;AACA,QAAQ,aAAa;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,cAAc;AACtB;AACA,GAAG;AACH;AACA;AACA,CAAC;AACD,8BAA8B;AAC9B,4HAA4H,oCAAoC,wBAAwB;AACxL;AACA;AACA;AACA,IAAI;AACJ,+BAA+B,mBAAmB,YAAY;AAC9D;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA,wBAAwB;AACxB;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yFAAyF,EAAE,UAAU,EAAE;AACvG;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA,OAAO,uCAAC;AACR,6BAA6B,8CAAC;AAC9B;AACA,WAAW,2DAA2D;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,uCAAC;AACR;AACA;AACA,iFAAiF,uCAAC,qBAAqB;AACvG;AACA,EAAE,IAAI,8CAA8C;AACpD;AACA;AACA;AACA,6CAA6C,UAAU;AACvD;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,EAAE,KAAK;AACP;AACA;AACA;AACA;AACoD;;;;;;;;;AC5pB/B;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF,0DAA0D,iBAAiB;AAC3E;AACA;AACA;AAC4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACbqE;AAChB;AACN;AACb;AACA;AACR;AACZ;AACJ;AACL;AACjC;AACA,mDAAmD;AACnD;AACA,+BAA+B,sBAAQ,kCAAkC;AACzE;AACA;AACA;AACA,EAAE;AACF,2BAA2B,gCAAU;AACrC;AACA,yCAAyC,0BAA0B;AACnE,mEAAmE,IAAI,IAAI,iBAAiB,EAAE,oBAAoB;AAClH,gBAAgB,uCAAiB;AACjC,OAAO,iCAAS,CAAC,8BAAQ;AACzB,OAAO,uBAAS;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA;AACA,EAAE;AACF,wCAAwC,IAAI,IAAI,MAAM,KAAK,cAAc;AACzE,EAAE;AACF,qFAAqF,IAAI,IAAI,YAAY,EAAE,eAAe;AAC1H;AACA;AACA;AACA,+CAA+C,UAAS,wCAAwC,UAAS,CAAC,6BAAO;AACjH;AACA,0BAA0B,UAAS,CAAC,4BAAM;AAC1C,OAAO,gCAAU,qBAAqB,gCAAU;AAChD,GAAG,gCAAU;AACb,IAAI;AACJ;AACA;AACA;AACA;AACA,sCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,6BAA6B;AAC9E;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,4BAA4B,GAAG,mCAAmC;AAChG,UAAU,OAAO,IAAI;AACrB;AACA;AACA,0CAA0C;AAC1C;AACA;AACA;AACA,gCAAgC,UAAS;AACzC;AACA;AACA;AACA;AACA,YAAY,OAAO,GAAG,KAAK;AAC3B;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,yEAAyE,GAAG,IAAI;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,0BAA0B;AACpD,iBAAiB;AACjB;AACA;AACA;AACA,sBAAsB,qBAAO,CAAC,4BAAI,CAAC,4BAAM;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,MAAM;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,SAAS,gBAAE;AACX;AACA;AACA,IAAI;AACJ,SAAS,mBAAK,WAAW,iBAAiB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,cAAc;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,4BAAI;AACrC,UAAU,SAAS,QAAQ,qGAAwB;AACnD;AACA;AACA;AACA;AACA;AACA,GAAG,kBAAkB,iCAAW;AAChC;AACA;AACA;AACA;AACA,GAAG,gBAAE;AACL;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,QAAQ,gBAAE;AACV;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,sCAAK;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,gDAAgD,SAAS,mBAAmB,KAAK;AACjF,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH,EAAE;AACF;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAA0C,SAAS,EAAE,IAAI;AACzD;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,UAAU;AACtB;AACA;AACA;AACA;AACA,cAAc,wCAAwC,aAAa;AACnE,GAAG;AACH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B;AACpF;AACA,EAAE;AACF;AACA;AACA;AACA;AACA,mDAAmD;AACnD;AACA;AACA,6FAA6F,oBAAoB;AACjH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,0BAA0B,GAAG,OAAO;AAClD;AACA;AACA;AACA,yDAAyD,aAAa;AACtE,wEAAwE,oBAAoB;AAC5F,sDAAsD,aAAa,IAAI,cAAc;AACrF,EAAE;AACF,mEAAmE,aAAa;AAChF;AACA;AACA,iBAAiB,UAAS,CAAC,UAAS;AACpC,8BAA8B,gCAAU;AACxC;AACA,QAAQ,mBAAK,CAAC,UAAS,aAAa,iBAAiB;AACrD;AACA;AACA;AACA;AACA,iCAAiC,oBAAoB;AACrD,UAAU,2CAAU,mBAAmB,8BAAQ,YAAY,sCAAgB,UAAU,uCAAiB;AACtG,IAAI;AACJ,SAAS,gCAAU;AACnB;AACA;AACA,IAAI;AACJ,IAAI,6CAA6C;AACjD,2CAA2C,aAAa;AACxD;AACA,KAAK;AACL,QAAQ,gCAAU;AAClB;AACA;AACA,GAAG;AACH,yBAAyB,SAAS,KAAK,eAAe;AACtD;AACA,MAAM,gCAAU,iDAAiD,SAAS,YAAY,gBAAgB;AACtG,qBAAqB,UAAS,CAAC,UAAS;AACxC,+BAA+B,gBAAE;AACjC;AACA;AACA,EAAE;AACF,uBAAuB,gCAAU,iBAAiB,iCAAW,yDAAyD,aAAa;AACnI,OAAO,mBAAK,gBAAgB,iBAAiB;AAC7C;AACA;AACA,SAAS,UAAU,QAAQ,qGAAwB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF,uBAAuB,aAAa,KAAK,eAAe;AACxD;AACA;AACA,UAAU,sBAAsB,QAAQ,wFAAyB;AACjE;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACyE;;;AC3f2B;AAC1C"}
package/dist/612.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"612.js","sources":["webpack://@lousy-agents/mcp/../../node_modules/ohash/dist/shared/ohash.D__AXeF1.mjs","webpack://@lousy-agents/mcp/../../node_modules/ohash/dist/utils/index.mjs"],"sourcesContent":["function serialize(o){return typeof o==\"string\"?`'${o}'`:new c().serialize(o)}const c=/*@__PURE__*/function(){class o{#t=new Map;compare(t,r){const e=typeof t,n=typeof r;return e===\"string\"&&n===\"string\"?t.localeCompare(r):e===\"number\"&&n===\"number\"?t-r:String.prototype.localeCompare.call(this.serialize(t,true),this.serialize(r,true))}serialize(t,r){if(t===null)return \"null\";switch(typeof t){case \"string\":return r?t:`'${t}'`;case \"bigint\":return `${t}n`;case \"object\":return this.$object(t);case \"function\":return this.$function(t)}return String(t)}serializeObject(t){const r=Object.prototype.toString.call(t);if(r!==\"[object Object]\")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),t);const e=t.constructor,n=e===Object||e===void 0?\"\":e.name;if(n!==\"\"&&globalThis[n]===e)return this.serializeBuiltInType(n,t);if(typeof t.toJSON==\"function\"){const i=t.toJSON();return n+(i!==null&&typeof i==\"object\"?this.$object(i):`(${this.serialize(i)})`)}return this.serializeObjectEntries(n,Object.entries(t))}serializeBuiltInType(t,r){const e=this[\"$\"+t];if(e)return e.call(this,r);if(typeof r?.entries==\"function\")return this.serializeObjectEntries(t,r.entries());throw new Error(`Cannot serialize ${t}`)}serializeObjectEntries(t,r){const e=Array.from(r).sort((i,a)=>this.compare(i[0],a[0]));let n=`${t}{`;for(let i=0;i<e.length;i++){const[a,l]=e[i];n+=`${this.serialize(a,true)}:${this.serialize(l)}`,i<e.length-1&&(n+=\",\");}return n+\"}\"}$object(t){let r=this.#t.get(t);return r===void 0&&(this.#t.set(t,`#${this.#t.size}`),r=this.serializeObject(t),this.#t.set(t,r)),r}$function(t){const r=Function.prototype.toString.call(t);return r.slice(-15)===\"[native code] }\"?`${t.name||\"\"}()[native]`:`${t.name}(${t.length})${r.replace(/\\s*\\n\\s*/g,\"\")}`}$Array(t){let r=\"[\";for(let e=0;e<t.length;e++)r+=this.serialize(t[e]),e<t.length-1&&(r+=\",\");return r+\"]\"}$Date(t){try{return `Date(${t.toISOString()})`}catch{return \"Date(null)\"}}$ArrayBuffer(t){return `ArrayBuffer[${new Uint8Array(t).join(\",\")}]`}$Set(t){return `Set${this.$Array(Array.from(t).sort((r,e)=>this.compare(r,e)))}`}$Map(t){return this.serializeObjectEntries(\"Map\",t.entries())}}for(const s of [\"Error\",\"RegExp\",\"URL\"])o.prototype[\"$\"+s]=function(t){return `${s}(${t})`};for(const s of [\"Int8Array\",\"Uint8Array\",\"Uint8ClampedArray\",\"Int16Array\",\"Uint16Array\",\"Int32Array\",\"Uint32Array\",\"Float32Array\",\"Float64Array\"])o.prototype[\"$\"+s]=function(t){return `${s}[${t.join(\",\")}]`};for(const s of [\"BigInt64Array\",\"BigUint64Array\"])o.prototype[\"$\"+s]=function(t){return `${s}[${t.join(\"n,\")}${t.length>0?\"n\":\"\"}]`};return o}();\n\nfunction isEqual(object1, object2) {\n if (object1 === object2) {\n return true;\n }\n if (serialize(object1) === serialize(object2)) {\n return true;\n }\n return false;\n}\n\nexport { isEqual as i, serialize as s };\n","import { s as serialize } from '../shared/ohash.D__AXeF1.mjs';\nexport { i as isEqual } from '../shared/ohash.D__AXeF1.mjs';\n\nfunction diff(obj1, obj2) {\n const h1 = _toHashedObject(obj1);\n const h2 = _toHashedObject(obj2);\n return _diff(h1, h2);\n}\nfunction _diff(h1, h2) {\n const diffs = [];\n const allProps = /* @__PURE__ */ new Set([\n ...Object.keys(h1.props || {}),\n ...Object.keys(h2.props || {})\n ]);\n if (h1.props && h2.props) {\n for (const prop of allProps) {\n const p1 = h1.props[prop];\n const p2 = h2.props[prop];\n if (p1 && p2) {\n diffs.push(..._diff(h1.props?.[prop], h2.props?.[prop]));\n } else if (p1 || p2) {\n diffs.push(\n new DiffEntry((p2 || p1).key, p1 ? \"removed\" : \"added\", p2, p1)\n );\n }\n }\n }\n if (allProps.size === 0 && h1.hash !== h2.hash) {\n diffs.push(new DiffEntry((h2 || h1).key, \"changed\", h2, h1));\n }\n return diffs;\n}\nfunction _toHashedObject(obj, key = \"\") {\n if (obj && typeof obj !== \"object\") {\n return new DiffHashedObject(key, obj, serialize(obj));\n }\n const props = {};\n const hashes = [];\n for (const _key in obj) {\n props[_key] = _toHashedObject(obj[_key], key ? `${key}.${_key}` : _key);\n hashes.push(props[_key].hash);\n }\n return new DiffHashedObject(key, obj, `{${hashes.join(\":\")}}`, props);\n}\nclass DiffEntry {\n constructor(key, type, newValue, oldValue) {\n this.key = key;\n this.type = type;\n this.newValue = newValue;\n this.oldValue = oldValue;\n }\n toString() {\n return this.toJSON();\n }\n toJSON() {\n switch (this.type) {\n case \"added\": {\n return `Added \\`${this.key}\\``;\n }\n case \"removed\": {\n return `Removed \\`${this.key}\\``;\n }\n case \"changed\": {\n return `Changed \\`${this.key}\\` from \\`${this.oldValue?.toString() || \"-\"}\\` to \\`${this.newValue.toString()}\\``;\n }\n }\n }\n}\nclass DiffHashedObject {\n constructor(key, value, hash, props) {\n this.key = key;\n this.value = value;\n this.hash = hash;\n this.props = props;\n }\n toString() {\n if (this.props) {\n return `{${Object.keys(this.props).join(\",\")}}`;\n } else {\n return JSON.stringify(this.value);\n }\n }\n toJSON() {\n const k = this.key || \".\";\n if (this.props) {\n return `${k}({${Object.keys(this.props).join(\",\")}})`;\n }\n return `${k}(${this.value})`;\n }\n}\n\nexport { diff };\n"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,sBAAsB,8BAA8B,EAAE,wBAAwB,gCAAgC,QAAQ,WAAW,aAAa,4BAA4B,uKAAuK,eAAe,0BAA0B,iBAAiB,6BAA6B,EAAE,GAAG,wBAAwB,EAAE,GAAG,qCAAqC,yCAAyC,iBAAiB,mBAAmB,0CAA0C,iFAAiF,EAAE,mBAAmB,yDAAyD,mEAAmE,gCAAgC,mBAAmB,2DAA2D,kBAAkB,IAAI,wDAAwD,0BAA0B,oBAAoB,2BAA2B,mF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AAE,EAAE,EAAE,mCAAmC;AACzD;AACA,cAAc,EAAE,GAAG,WAAW;AAC9B;AACA;;AAEgB"}
package/dist/714.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"714.js","sources":["webpack://@lousy-agents/mcp/../../node_modules/ohash/dist/crypto/node/index.mjs","webpack://@lousy-agents/mcp/../../node_modules/ohash/dist/index.mjs"],"sourcesContent":["import { createHash } from 'node:crypto';\n\nconst e=globalThis.process?.getBuiltinModule?.(\"crypto\")?.hash,r=\"sha256\",s=\"base64url\";function digest(t){if(e)return e(r,t,s);const o=createHash(r).update(t);return globalThis.process?.versions?.webcontainer?o.digest().toString(s):o.digest(s)}\n\nexport { digest };\n","import { s as serialize } from './shared/ohash.D__AXeF1.mjs';\nexport { i as isEqual } from './shared/ohash.D__AXeF1.mjs';\nimport { digest } from 'ohash/crypto';\nexport { digest } from 'ohash/crypto';\n\nfunction hash(input) {\n return digest(serialize(input));\n}\n\nexport { hash, serialize };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAyC;;AAEzC,wFAAwF,SAAS,WAAM,IAAI,qBAAqB,QAAQ,oCAAU,cAAc;;AAE9I;;;ACJ2C;AACF;AACrB;AACA;;AAEtC;AACA;AACA;;AAE2B"}
package/dist/772.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"772.js","sources":["webpack://@lousy-agents/mcp/../../node_modules/c12/node_modules/readdirp/index.js","webpack://@lousy-agents/mcp/../../node_modules/c12/node_modules/chokidar/handler.js","webpack://@lousy-agents/mcp/../../node_modules/c12/node_modules/chokidar/index.js"],"sourcesContent":["import { lstat, readdir, realpath, stat } from 'node:fs/promises';\nimport { join as pjoin, relative as prelative, resolve as presolve, sep as psep } from 'node:path';\nimport { Readable } from 'node:stream';\nexport const EntryTypes = {\n FILE_TYPE: 'files',\n DIR_TYPE: 'directories',\n FILE_DIR_TYPE: 'files_directories',\n EVERYTHING_TYPE: 'all',\n};\nconst defaultOptions = {\n root: '.',\n fileFilter: (_entryInfo) => true,\n directoryFilter: (_entryInfo) => true,\n type: EntryTypes.FILE_TYPE,\n lstat: false,\n depth: 2147483648,\n alwaysStat: false,\n highWaterMark: 4096,\n};\nObject.freeze(defaultOptions);\nconst RECURSIVE_ERROR_CODE = 'READDIRP_RECURSIVE_ERROR';\nconst NORMAL_FLOW_ERRORS = new Set(['ENOENT', 'EPERM', 'EACCES', 'ELOOP', RECURSIVE_ERROR_CODE]);\nconst ALL_TYPES = [\n EntryTypes.DIR_TYPE,\n EntryTypes.EVERYTHING_TYPE,\n EntryTypes.FILE_DIR_TYPE,\n EntryTypes.FILE_TYPE,\n];\nconst DIR_TYPES = new Set([\n EntryTypes.DIR_TYPE,\n EntryTypes.EVERYTHING_TYPE,\n EntryTypes.FILE_DIR_TYPE,\n]);\nconst FILE_TYPES = new Set([\n EntryTypes.EVERYTHING_TYPE,\n EntryTypes.FILE_DIR_TYPE,\n EntryTypes.FILE_TYPE,\n]);\nconst isNormalFlowError = (error) => NORMAL_FLOW_ERRORS.has(error.code);\nconst wantBigintFsStats = process.platform === 'win32';\nconst emptyFn = (_entryInfo) => true;\nconst normalizeFilter = (filter) => {\n if (filter === undefined)\n return emptyFn;\n if (typeof filter === 'function')\n return filter;\n if (typeof filter === 'string') {\n const fl = filter.trim();\n return (entry) => entry.basename === fl;\n }\n if (Array.isArray(filter)) {\n const trItems = filter.map((item) => item.trim());\n return (entry) => trItems.some((f) => entry.basename === f);\n }\n return emptyFn;\n};\n/** Readable readdir stream, emitting new files as they're being listed. */\nexport class ReaddirpStream extends Readable {\n parents;\n reading;\n parent;\n _stat;\n _maxDepth;\n _wantsDir;\n _wantsFile;\n _wantsEverything;\n _root;\n _isDirent;\n _statsProp;\n _rdOptions;\n _fileFilter;\n _directoryFilter;\n constructor(options = {}) {\n super({\n objectMode: true,\n autoDestroy: true,\n highWaterMark: options.highWaterMark,\n });\n const opts = { ...defaultOptions, ...options };\n const { root, type } = opts;\n this._fileFilter = normalizeFilter(opts.fileFilter);\n this._directoryFilter = normalizeFilter(opts.directoryFilter);\n const statMethod = opts.lstat ? lstat : stat;\n // Use bigint stats if it's windows and stat() supports options (node 10+).\n if (wantBigintFsStats) {\n this._stat = (path) => statMethod(path, { bigint: true });\n }\n else {\n this._stat = statMethod;\n }\n this._maxDepth =\n opts.depth != null && Number.isSafeInteger(opts.depth) ? opts.depth : defaultOptions.depth;\n this._wantsDir = type ? DIR_TYPES.has(type) : false;\n this._wantsFile = type ? FILE_TYPES.has(type) : false;\n this._wantsEverything = type === EntryTypes.EVERYTHING_TYPE;\n this._root = presolve(root);\n this._isDirent = !opts.alwaysStat;\n this._statsProp = this._isDirent ? 'dirent' : 'stats';\n this._rdOptions = { encoding: 'utf8', withFileTypes: this._isDirent };\n // Launch stream with one parent, the root dir.\n this.parents = [this._exploreDir(root, 1)];\n this.reading = false;\n this.parent = undefined;\n }\n async _read(batch) {\n if (this.reading)\n return;\n this.reading = true;\n try {\n while (!this.destroyed && batch > 0) {\n const par = this.parent;\n const fil = par && par.files;\n if (fil && fil.length > 0) {\n const { path, depth } = par;\n const slice = fil.splice(0, batch).map((dirent) => this._formatEntry(dirent, path));\n const awaited = await Promise.all(slice);\n for (const entry of awaited) {\n if (!entry)\n continue;\n if (this.destroyed)\n return;\n const entryType = await this._getEntryType(entry);\n if (entryType === 'directory' && this._directoryFilter(entry)) {\n if (depth <= this._maxDepth) {\n this.parents.push(this._exploreDir(entry.fullPath, depth + 1));\n }\n if (this._wantsDir) {\n this.push(entry);\n batch--;\n }\n }\n else if ((entryType === 'file' || this._includeAsFile(entry)) &&\n this._fileFilter(entry)) {\n if (this._wantsFile) {\n this.push(entry);\n batch--;\n }\n }\n }\n }\n else {\n const parent = this.parents.pop();\n if (!parent) {\n this.push(null);\n break;\n }\n this.parent = await parent;\n if (this.destroyed)\n return;\n }\n }\n }\n catch (error) {\n this.destroy(error);\n }\n finally {\n this.reading = false;\n }\n }\n async _exploreDir(path, depth) {\n let files;\n try {\n files = await readdir(path, this._rdOptions);\n }\n catch (error) {\n this._onError(error);\n }\n return { files, depth, path };\n }\n async _formatEntry(dirent, path) {\n let entry;\n const basename = this._isDirent ? dirent.name : dirent;\n try {\n const fullPath = presolve(pjoin(path, basename));\n entry = { path: prelative(this._root, fullPath), fullPath, basename };\n entry[this._statsProp] = this._isDirent ? dirent : await this._stat(fullPath);\n }\n catch (err) {\n this._onError(err);\n return;\n }\n return entry;\n }\n _onError(err) {\n if (isNormalFlowError(err) && !this.destroyed) {\n this.emit('warn', err);\n }\n else {\n this.destroy(err);\n }\n }\n async _getEntryType(entry) {\n // entry may be undefined, because a warning or an error were emitted\n // and the statsProp is undefined\n if (!entry && this._statsProp in entry) {\n return '';\n }\n const stats = entry[this._statsProp];\n if (stats.isFile())\n return 'file';\n if (stats.isDirectory())\n return 'directory';\n if (stats && stats.isSymbolicLink()) {\n const full = entry.fullPath;\n try {\n const entryRealPath = await realpath(full);\n const entryRealPathStats = await lstat(entryRealPath);\n if (entryRealPathStats.isFile()) {\n return 'file';\n }\n if (entryRealPathStats.isDirectory()) {\n const len = entryRealPath.length;\n if (full.startsWith(entryRealPath) && full.substr(len, 1) === psep) {\n const recursiveError = new Error(`Circular symlink detected: \"${full}\" points to \"${entryRealPath}\"`);\n // @ts-ignore\n recursiveError.code = RECURSIVE_ERROR_CODE;\n return this._onError(recursiveError);\n }\n return 'directory';\n }\n }\n catch (error) {\n this._onError(error);\n return '';\n }\n }\n }\n _includeAsFile(entry) {\n const stats = entry && entry[this._statsProp];\n return stats && this._wantsEverything && !stats.isDirectory();\n }\n}\n/**\n * Streaming version: Reads all files and directories in given root recursively.\n * Consumes ~constant small amount of RAM.\n * @param root Root directory\n * @param options Options to specify root (start directory), filters and recursion depth\n */\nexport function readdirp(root, options = {}) {\n // @ts-ignore\n let type = options.entryType || options.type;\n if (type === 'both')\n type = EntryTypes.FILE_DIR_TYPE; // backwards-compatibility\n if (type)\n options.type = type;\n if (!root) {\n throw new Error('readdirp: root argument is required. Usage: readdirp(root, options)');\n }\n else if (typeof root !== 'string') {\n throw new TypeError('readdirp: root argument must be a string. Usage: readdirp(root, options)');\n }\n else if (type && !ALL_TYPES.includes(type)) {\n throw new Error(`readdirp: Invalid type passed. Use one of ${ALL_TYPES.join(', ')}`);\n }\n options.root = root;\n return new ReaddirpStream(options);\n}\n/**\n * Promise version: Reads all files and directories in given root recursively.\n * Compared to streaming version, will consume a lot of RAM e.g. when 1 million files are listed.\n * @returns array of paths and their entry infos\n */\nexport function readdirpPromise(root, options = {}) {\n return new Promise((resolve, reject) => {\n const files = [];\n readdirp(root, options)\n .on('data', (entry) => files.push(entry))\n .on('end', () => resolve(files))\n .on('error', (error) => reject(error));\n });\n}\nexport default readdirp;\n","import { watch as fs_watch, unwatchFile, watchFile } from 'node:fs';\nimport { realpath as fsrealpath, lstat, open, stat } from 'node:fs/promises';\nimport { type as osType } from 'node:os';\nimport * as sp from 'node:path';\nexport const STR_DATA = 'data';\nexport const STR_END = 'end';\nexport const STR_CLOSE = 'close';\nexport const EMPTY_FN = () => { };\nexport const IDENTITY_FN = (val) => val;\nconst pl = process.platform;\nexport const isWindows = pl === 'win32';\nexport const isMacos = pl === 'darwin';\nexport const isLinux = pl === 'linux';\nexport const isFreeBSD = pl === 'freebsd';\nexport const isIBMi = osType() === 'OS400';\nexport const EVENTS = {\n ALL: 'all',\n READY: 'ready',\n ADD: 'add',\n CHANGE: 'change',\n ADD_DIR: 'addDir',\n UNLINK: 'unlink',\n UNLINK_DIR: 'unlinkDir',\n RAW: 'raw',\n ERROR: 'error',\n};\nconst EV = EVENTS;\nconst THROTTLE_MODE_WATCH = 'watch';\nconst statMethods = { lstat, stat };\nconst KEY_LISTENERS = 'listeners';\nconst KEY_ERR = 'errHandlers';\nconst KEY_RAW = 'rawEmitters';\nconst HANDLER_KEYS = [KEY_LISTENERS, KEY_ERR, KEY_RAW];\n// prettier-ignore\nconst binaryExtensions = new Set([\n '3dm', '3ds', '3g2', '3gp', '7z', 'a', 'aac', 'adp', 'afdesign', 'afphoto', 'afpub', 'ai',\n 'aif', 'aiff', 'alz', 'ape', 'apk', 'appimage', 'ar', 'arj', 'asf', 'au', 'avi',\n 'bak', 'baml', 'bh', 'bin', 'bk', 'bmp', 'btif', 'bz2', 'bzip2',\n 'cab', 'caf', 'cgm', 'class', 'cmx', 'cpio', 'cr2', 'cur', 'dat', 'dcm', 'deb', 'dex', 'djvu',\n 'dll', 'dmg', 'dng', 'doc', 'docm', 'docx', 'dot', 'dotm', 'dra', 'DS_Store', 'dsk', 'dts',\n 'dtshd', 'dvb', 'dwg', 'dxf',\n 'ecelp4800', 'ecelp7470', 'ecelp9600', 'egg', 'eol', 'eot', 'epub', 'exe',\n 'f4v', 'fbs', 'fh', 'fla', 'flac', 'flatpak', 'fli', 'flv', 'fpx', 'fst', 'fvt',\n 'g3', 'gh', 'gif', 'graffle', 'gz', 'gzip',\n 'h261', 'h263', 'h264', 'icns', 'ico', 'ief', 'img', 'ipa', 'iso',\n 'jar', 'jpeg', 'jpg', 'jpgv', 'jpm', 'jxr', 'key', 'ktx',\n 'lha', 'lib', 'lvp', 'lz', 'lzh', 'lzma', 'lzo',\n 'm3u', 'm4a', 'm4v', 'mar', 'mdi', 'mht', 'mid', 'midi', 'mj2', 'mka', 'mkv', 'mmr', 'mng',\n 'mobi', 'mov', 'movie', 'mp3',\n 'mp4', 'mp4a', 'mpeg', 'mpg', 'mpga', 'mxu',\n 'nef', 'npx', 'numbers', 'nupkg',\n 'o', 'odp', 'ods', 'odt', 'oga', 'ogg', 'ogv', 'otf', 'ott',\n 'pages', 'pbm', 'pcx', 'pdb', 'pdf', 'pea', 'pgm', 'pic', 'png', 'pnm', 'pot', 'potm',\n 'potx', 'ppa', 'ppam',\n 'ppm', 'pps', 'ppsm', 'ppsx', 'ppt', 'pptm', 'pptx', 'psd', 'pya', 'pyc', 'pyo', 'pyv',\n 'qt',\n 'rar', 'ras', 'raw', 'resources', 'rgb', 'rip', 'rlc', 'rmf', 'rmvb', 'rpm', 'rtf', 'rz',\n 's3m', 's7z', 'scpt', 'sgi', 'shar', 'snap', 'sil', 'sketch', 'slk', 'smv', 'snk', 'so',\n 'stl', 'suo', 'sub', 'swf',\n 'tar', 'tbz', 'tbz2', 'tga', 'tgz', 'thmx', 'tif', 'tiff', 'tlz', 'ttc', 'ttf', 'txz',\n 'udf', 'uvh', 'uvi', 'uvm', 'uvp', 'uvs', 'uvu',\n 'viv', 'vob',\n 'war', 'wav', 'wax', 'wbmp', 'wdp', 'weba', 'webm', 'webp', 'whl', 'wim', 'wm', 'wma',\n 'wmv', 'wmx', 'woff', 'woff2', 'wrm', 'wvx',\n 'xbm', 'xif', 'xla', 'xlam', 'xls', 'xlsb', 'xlsm', 'xlsx', 'xlt', 'xltm', 'xltx', 'xm',\n 'xmind', 'xpi', 'xpm', 'xwd', 'xz',\n 'z', 'zip', 'zipx',\n]);\nconst isBinaryPath = (filePath) => binaryExtensions.has(sp.extname(filePath).slice(1).toLowerCase());\n// TODO: emit errors properly. Example: EMFILE on Macos.\nconst foreach = (val, fn) => {\n if (val instanceof Set) {\n val.forEach(fn);\n }\n else {\n fn(val);\n }\n};\nconst addAndConvert = (main, prop, item) => {\n let container = main[prop];\n if (!(container instanceof Set)) {\n main[prop] = container = new Set([container]);\n }\n container.add(item);\n};\nconst clearItem = (cont) => (key) => {\n const set = cont[key];\n if (set instanceof Set) {\n set.clear();\n }\n else {\n delete cont[key];\n }\n};\nconst delFromSet = (main, prop, item) => {\n const container = main[prop];\n if (container instanceof Set) {\n container.delete(item);\n }\n else if (container === item) {\n delete main[prop];\n }\n};\nconst isEmptySet = (val) => (val instanceof Set ? val.size === 0 : !val);\nconst FsWatchInstances = new Map();\n/**\n * Instantiates the fs_watch interface\n * @param path to be watched\n * @param options to be passed to fs_watch\n * @param listener main event handler\n * @param errHandler emits info about errors\n * @param emitRaw emits raw event data\n * @returns {NativeFsWatcher}\n */\nfunction createFsWatchInstance(path, options, listener, errHandler, emitRaw) {\n const handleEvent = (rawEvent, evPath) => {\n listener(path);\n emitRaw(rawEvent, evPath, { watchedPath: path });\n // emit based on events occurring for files from a directory's watcher in\n // case the file's watcher misses it (and rely on throttling to de-dupe)\n if (evPath && path !== evPath) {\n fsWatchBroadcast(sp.resolve(path, evPath), KEY_LISTENERS, sp.join(path, evPath));\n }\n };\n try {\n return fs_watch(path, {\n persistent: options.persistent,\n }, handleEvent);\n }\n catch (error) {\n errHandler(error);\n return undefined;\n }\n}\n/**\n * Helper for passing fs_watch event data to a collection of listeners\n * @param fullPath absolute path bound to fs_watch instance\n */\nconst fsWatchBroadcast = (fullPath, listenerType, val1, val2, val3) => {\n const cont = FsWatchInstances.get(fullPath);\n if (!cont)\n return;\n foreach(cont[listenerType], (listener) => {\n listener(val1, val2, val3);\n });\n};\n/**\n * Instantiates the fs_watch interface or binds listeners\n * to an existing one covering the same file system entry\n * @param path\n * @param fullPath absolute path\n * @param options to be passed to fs_watch\n * @param handlers container for event listener functions\n */\nconst setFsWatchListener = (path, fullPath, options, handlers) => {\n const { listener, errHandler, rawEmitter } = handlers;\n let cont = FsWatchInstances.get(fullPath);\n let watcher;\n if (!options.persistent) {\n watcher = createFsWatchInstance(path, options, listener, errHandler, rawEmitter);\n if (!watcher)\n return;\n return watcher.close.bind(watcher);\n }\n if (cont) {\n addAndConvert(cont, KEY_LISTENERS, listener);\n addAndConvert(cont, KEY_ERR, errHandler);\n addAndConvert(cont, KEY_RAW, rawEmitter);\n }\n else {\n watcher = createFsWatchInstance(path, options, fsWatchBroadcast.bind(null, fullPath, KEY_LISTENERS), errHandler, // no need to use broadcast here\n fsWatchBroadcast.bind(null, fullPath, KEY_RAW));\n if (!watcher)\n return;\n watcher.on(EV.ERROR, async (error) => {\n const broadcastErr = fsWatchBroadcast.bind(null, fullPath, KEY_ERR);\n if (cont)\n cont.watcherUnusable = true; // documented since Node 10.4.1\n // Workaround for https://github.com/joyent/node/issues/4337\n if (isWindows && error.code === 'EPERM') {\n try {\n const fd = await open(path, 'r');\n await fd.close();\n broadcastErr(error);\n }\n catch (err) {\n // do nothing\n }\n }\n else {\n broadcastErr(error);\n }\n });\n cont = {\n listeners: listener,\n errHandlers: errHandler,\n rawEmitters: rawEmitter,\n watcher,\n };\n FsWatchInstances.set(fullPath, cont);\n }\n // const index = cont.listeners.indexOf(listener);\n // removes this instance's listeners and closes the underlying fs_watch\n // instance if there are no more listeners left\n return () => {\n delFromSet(cont, KEY_LISTENERS, listener);\n delFromSet(cont, KEY_ERR, errHandler);\n delFromSet(cont, KEY_RAW, rawEmitter);\n if (isEmptySet(cont.listeners)) {\n // Check to protect against issue gh-730.\n // if (cont.watcherUnusable) {\n cont.watcher.close();\n // }\n FsWatchInstances.delete(fullPath);\n HANDLER_KEYS.forEach(clearItem(cont));\n // @ts-ignore\n cont.watcher = undefined;\n Object.freeze(cont);\n }\n };\n};\n// fs_watchFile helpers\n// object to hold per-process fs_watchFile instances\n// (may be shared across chokidar FSWatcher instances)\nconst FsWatchFileInstances = new Map();\n/**\n * Instantiates the fs_watchFile interface or binds listeners\n * to an existing one covering the same file system entry\n * @param path to be watched\n * @param fullPath absolute path\n * @param options options to be passed to fs_watchFile\n * @param handlers container for event listener functions\n * @returns closer\n */\nconst setFsWatchFileListener = (path, fullPath, options, handlers) => {\n const { listener, rawEmitter } = handlers;\n let cont = FsWatchFileInstances.get(fullPath);\n // let listeners = new Set();\n // let rawEmitters = new Set();\n const copts = cont && cont.options;\n if (copts && (copts.persistent < options.persistent || copts.interval > options.interval)) {\n // \"Upgrade\" the watcher to persistence or a quicker interval.\n // This creates some unlikely edge case issues if the user mixes\n // settings in a very weird way, but solving for those cases\n // doesn't seem worthwhile for the added complexity.\n // listeners = cont.listeners;\n // rawEmitters = cont.rawEmitters;\n unwatchFile(fullPath);\n cont = undefined;\n }\n if (cont) {\n addAndConvert(cont, KEY_LISTENERS, listener);\n addAndConvert(cont, KEY_RAW, rawEmitter);\n }\n else {\n // TODO\n // listeners.add(listener);\n // rawEmitters.add(rawEmitter);\n cont = {\n listeners: listener,\n rawEmitters: rawEmitter,\n options,\n watcher: watchFile(fullPath, options, (curr, prev) => {\n foreach(cont.rawEmitters, (rawEmitter) => {\n rawEmitter(EV.CHANGE, fullPath, { curr, prev });\n });\n const currmtime = curr.mtimeMs;\n if (curr.size !== prev.size || currmtime > prev.mtimeMs || currmtime === 0) {\n foreach(cont.listeners, (listener) => listener(path, curr));\n }\n }),\n };\n FsWatchFileInstances.set(fullPath, cont);\n }\n // const index = cont.listeners.indexOf(listener);\n // Removes this instance's listeners and closes the underlying fs_watchFile\n // instance if there are no more listeners left.\n return () => {\n delFromSet(cont, KEY_LISTENERS, listener);\n delFromSet(cont, KEY_RAW, rawEmitter);\n if (isEmptySet(cont.listeners)) {\n FsWatchFileInstances.delete(fullPath);\n unwatchFile(fullPath);\n cont.options = cont.watcher = undefined;\n Object.freeze(cont);\n }\n };\n};\n/**\n * @mixin\n */\nexport class NodeFsHandler {\n fsw;\n _boundHandleError;\n constructor(fsW) {\n this.fsw = fsW;\n this._boundHandleError = (error) => fsW._handleError(error);\n }\n /**\n * Watch file for changes with fs_watchFile or fs_watch.\n * @param path to file or dir\n * @param listener on fs change\n * @returns closer for the watcher instance\n */\n _watchWithNodeFs(path, listener) {\n const opts = this.fsw.options;\n const directory = sp.dirname(path);\n const basename = sp.basename(path);\n const parent = this.fsw._getWatchedDir(directory);\n parent.add(basename);\n const absolutePath = sp.resolve(path);\n const options = {\n persistent: opts.persistent,\n };\n if (!listener)\n listener = EMPTY_FN;\n let closer;\n if (opts.usePolling) {\n const enableBin = opts.interval !== opts.binaryInterval;\n options.interval = enableBin && isBinaryPath(basename) ? opts.binaryInterval : opts.interval;\n closer = setFsWatchFileListener(path, absolutePath, options, {\n listener,\n rawEmitter: this.fsw._emitRaw,\n });\n }\n else {\n closer = setFsWatchListener(path, absolutePath, options, {\n listener,\n errHandler: this._boundHandleError,\n rawEmitter: this.fsw._emitRaw,\n });\n }\n return closer;\n }\n /**\n * Watch a file and emit add event if warranted.\n * @returns closer for the watcher instance\n */\n _handleFile(file, stats, initialAdd) {\n if (this.fsw.closed) {\n return;\n }\n const dirname = sp.dirname(file);\n const basename = sp.basename(file);\n const parent = this.fsw._getWatchedDir(dirname);\n // stats is always present\n let prevStats = stats;\n // if the file is already being watched, do nothing\n if (parent.has(basename))\n return;\n const listener = async (path, newStats) => {\n if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5))\n return;\n if (!newStats || newStats.mtimeMs === 0) {\n try {\n const newStats = await stat(file);\n if (this.fsw.closed)\n return;\n // Check that change event was not fired because of changed only accessTime.\n const at = newStats.atimeMs;\n const mt = newStats.mtimeMs;\n if (!at || at <= mt || mt !== prevStats.mtimeMs) {\n this.fsw._emit(EV.CHANGE, file, newStats);\n }\n if ((isMacos || isLinux || isFreeBSD) && prevStats.ino !== newStats.ino) {\n this.fsw._closeFile(path);\n prevStats = newStats;\n const closer = this._watchWithNodeFs(file, listener);\n if (closer)\n this.fsw._addPathCloser(path, closer);\n }\n else {\n prevStats = newStats;\n }\n }\n catch (error) {\n // Fix issues where mtime is null but file is still present\n this.fsw._remove(dirname, basename);\n }\n // add is about to be emitted if file not already tracked in parent\n }\n else if (parent.has(basename)) {\n // Check that change event was not fired because of changed only accessTime.\n const at = newStats.atimeMs;\n const mt = newStats.mtimeMs;\n if (!at || at <= mt || mt !== prevStats.mtimeMs) {\n this.fsw._emit(EV.CHANGE, file, newStats);\n }\n prevStats = newStats;\n }\n };\n // kick off the watcher\n const closer = this._watchWithNodeFs(file, listener);\n // emit an add event if we're supposed to\n if (!(initialAdd && this.fsw.options.ignoreInitial) && this.fsw._isntIgnored(file)) {\n if (!this.fsw._throttle(EV.ADD, file, 0))\n return;\n this.fsw._emit(EV.ADD, file, stats);\n }\n return closer;\n }\n /**\n * Handle symlinks encountered while reading a dir.\n * @param entry returned by readdirp\n * @param directory path of dir being read\n * @param path of this item\n * @param item basename of this item\n * @returns true if no more processing is needed for this entry.\n */\n async _handleSymlink(entry, directory, path, item) {\n if (this.fsw.closed) {\n return;\n }\n const full = entry.fullPath;\n const dir = this.fsw._getWatchedDir(directory);\n if (!this.fsw.options.followSymlinks) {\n // watch symlink directly (don't follow) and detect changes\n this.fsw._incrReadyCount();\n let linkPath;\n try {\n linkPath = await fsrealpath(path);\n }\n catch (e) {\n this.fsw._emitReady();\n return true;\n }\n if (this.fsw.closed)\n return;\n if (dir.has(item)) {\n if (this.fsw._symlinkPaths.get(full) !== linkPath) {\n this.fsw._symlinkPaths.set(full, linkPath);\n this.fsw._emit(EV.CHANGE, path, entry.stats);\n }\n }\n else {\n dir.add(item);\n this.fsw._symlinkPaths.set(full, linkPath);\n this.fsw._emit(EV.ADD, path, entry.stats);\n }\n this.fsw._emitReady();\n return true;\n }\n // don't follow the same symlink more than once\n if (this.fsw._symlinkPaths.has(full)) {\n return true;\n }\n this.fsw._symlinkPaths.set(full, true);\n }\n _handleRead(directory, initialAdd, wh, target, dir, depth, throttler) {\n // Normalize the directory name on Windows\n directory = sp.join(directory, '');\n const throttleKey = target ? `${directory}:${target}` : directory;\n throttler = this.fsw._throttle('readdir', throttleKey, 1000);\n if (!throttler)\n return;\n const previous = this.fsw._getWatchedDir(wh.path);\n const current = new Set();\n let stream = this.fsw._readdirp(directory, {\n fileFilter: (entry) => wh.filterPath(entry),\n directoryFilter: (entry) => wh.filterDir(entry),\n });\n if (!stream)\n return;\n stream\n .on(STR_DATA, async (entry) => {\n if (this.fsw.closed) {\n stream = undefined;\n return;\n }\n const item = entry.path;\n let path = sp.join(directory, item);\n current.add(item);\n if (entry.stats.isSymbolicLink() &&\n (await this._handleSymlink(entry, directory, path, item))) {\n return;\n }\n if (this.fsw.closed) {\n stream = undefined;\n return;\n }\n // Files that present in current directory snapshot\n // but absent in previous are added to watch list and\n // emit `add` event.\n if (item === target || (!target && !previous.has(item))) {\n this.fsw._incrReadyCount();\n // ensure relativeness of path is preserved in case of watcher reuse\n path = sp.join(dir, sp.relative(dir, path));\n this._addToNodeFs(path, initialAdd, wh, depth + 1);\n }\n })\n .on(EV.ERROR, this._boundHandleError);\n return new Promise((resolve, reject) => {\n if (!stream)\n return reject();\n stream.once(STR_END, () => {\n if (this.fsw.closed) {\n stream = undefined;\n return;\n }\n const wasThrottled = throttler ? throttler.clear() : false;\n resolve(undefined);\n // Files that absent in current directory snapshot\n // but present in previous emit `remove` event\n // and are removed from @watched[directory].\n previous\n .getChildren()\n .filter((item) => {\n return item !== directory && !current.has(item);\n })\n .forEach((item) => {\n this.fsw._remove(directory, item);\n });\n stream = undefined;\n // one more time for any missed in case changes came in extremely quickly\n if (wasThrottled)\n this._handleRead(directory, false, wh, target, dir, depth, throttler);\n });\n });\n }\n /**\n * Read directory to add / remove files from `@watched` list and re-read it on change.\n * @param dir fs path\n * @param stats\n * @param initialAdd\n * @param depth relative to user-supplied path\n * @param target child path targeted for watch\n * @param wh Common watch helpers for this path\n * @param realpath\n * @returns closer for the watcher instance.\n */\n async _handleDir(dir, stats, initialAdd, depth, target, wh, realpath) {\n const parentDir = this.fsw._getWatchedDir(sp.dirname(dir));\n const tracked = parentDir.has(sp.basename(dir));\n if (!(initialAdd && this.fsw.options.ignoreInitial) && !target && !tracked) {\n this.fsw._emit(EV.ADD_DIR, dir, stats);\n }\n // ensure dir is tracked (harmless if redundant)\n parentDir.add(sp.basename(dir));\n this.fsw._getWatchedDir(dir);\n let throttler;\n let closer;\n const oDepth = this.fsw.options.depth;\n if ((oDepth == null || depth <= oDepth) && !this.fsw._symlinkPaths.has(realpath)) {\n if (!target) {\n await this._handleRead(dir, initialAdd, wh, target, dir, depth, throttler);\n if (this.fsw.closed)\n return;\n }\n closer = this._watchWithNodeFs(dir, (dirPath, stats) => {\n // if current directory is removed, do nothing\n if (stats && stats.mtimeMs === 0)\n return;\n this._handleRead(dirPath, false, wh, target, dir, depth, throttler);\n });\n }\n return closer;\n }\n /**\n * Handle added file, directory, or glob pattern.\n * Delegates call to _handleFile / _handleDir after checks.\n * @param path to file or ir\n * @param initialAdd was the file added at watch instantiation?\n * @param priorWh depth relative to user-supplied path\n * @param depth Child path actually targeted for watch\n * @param target Child path actually targeted for watch\n */\n async _addToNodeFs(path, initialAdd, priorWh, depth, target) {\n const ready = this.fsw._emitReady;\n if (this.fsw._isIgnored(path) || this.fsw.closed) {\n ready();\n return false;\n }\n const wh = this.fsw._getWatchHelpers(path);\n if (priorWh) {\n wh.filterPath = (entry) => priorWh.filterPath(entry);\n wh.filterDir = (entry) => priorWh.filterDir(entry);\n }\n // evaluate what is at the path we're being asked to watch\n try {\n const stats = await statMethods[wh.statMethod](wh.watchPath);\n if (this.fsw.closed)\n return;\n if (this.fsw._isIgnored(wh.watchPath, stats)) {\n ready();\n return false;\n }\n const follow = this.fsw.options.followSymlinks;\n let closer;\n if (stats.isDirectory()) {\n const absPath = sp.resolve(path);\n const targetPath = follow ? await fsrealpath(path) : path;\n if (this.fsw.closed)\n return;\n closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);\n if (this.fsw.closed)\n return;\n // preserve this symlink's target path\n if (absPath !== targetPath && targetPath !== undefined) {\n this.fsw._symlinkPaths.set(absPath, targetPath);\n }\n }\n else if (stats.isSymbolicLink()) {\n const targetPath = follow ? await fsrealpath(path) : path;\n if (this.fsw.closed)\n return;\n const parent = sp.dirname(wh.watchPath);\n this.fsw._getWatchedDir(parent).add(wh.watchPath);\n this.fsw._emit(EV.ADD, wh.watchPath, stats);\n closer = await this._handleDir(parent, stats, initialAdd, depth, path, wh, targetPath);\n if (this.fsw.closed)\n return;\n // preserve this symlink's target path\n if (targetPath !== undefined) {\n this.fsw._symlinkPaths.set(sp.resolve(path), targetPath);\n }\n }\n else {\n closer = this._handleFile(wh.watchPath, stats, initialAdd);\n }\n ready();\n if (closer)\n this.fsw._addPathCloser(path, closer);\n return false;\n }\n catch (error) {\n if (this.fsw._handleError(error)) {\n ready();\n return path;\n }\n }\n }\n}\n","/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */\nimport { EventEmitter } from 'node:events';\nimport { stat as statcb, Stats } from 'node:fs';\nimport { readdir, stat } from 'node:fs/promises';\nimport * as sp from 'node:path';\nimport { readdirp, ReaddirpStream } from 'readdirp';\nimport { EMPTY_FN, EVENTS as EV, isIBMi, isWindows, NodeFsHandler, STR_CLOSE, STR_END, } from './handler.js';\nconst SLASH = '/';\nconst SLASH_SLASH = '//';\nconst ONE_DOT = '.';\nconst TWO_DOTS = '..';\nconst STRING_TYPE = 'string';\nconst BACK_SLASH_RE = /\\\\/g;\nconst DOUBLE_SLASH_RE = /\\/\\//g;\nconst DOT_RE = /\\..*\\.(sw[px])$|~$|\\.subl.*\\.tmp/;\nconst REPLACER_RE = /^\\.[/\\\\]/;\nfunction arrify(item) {\n return Array.isArray(item) ? item : [item];\n}\nconst isMatcherObject = (matcher) => typeof matcher === 'object' && matcher !== null && !(matcher instanceof RegExp);\nfunction createPattern(matcher) {\n if (typeof matcher === 'function')\n return matcher;\n if (typeof matcher === 'string')\n return (string) => matcher === string;\n if (matcher instanceof RegExp)\n return (string) => matcher.test(string);\n if (typeof matcher === 'object' && matcher !== null) {\n return (string) => {\n if (matcher.path === string)\n return true;\n if (matcher.recursive) {\n const relative = sp.relative(matcher.path, string);\n if (!relative) {\n return false;\n }\n return !relative.startsWith('..') && !sp.isAbsolute(relative);\n }\n return false;\n };\n }\n return () => false;\n}\nfunction normalizePath(path) {\n if (typeof path !== 'string')\n throw new Error('string expected');\n path = sp.normalize(path);\n path = path.replace(/\\\\/g, '/');\n let prepend = false;\n if (path.startsWith('//'))\n prepend = true;\n path = path.replace(DOUBLE_SLASH_RE, '/');\n if (prepend)\n path = '/' + path;\n return path;\n}\nfunction matchPatterns(patterns, testString, stats) {\n const path = normalizePath(testString);\n for (let index = 0; index < patterns.length; index++) {\n const pattern = patterns[index];\n if (pattern(path, stats)) {\n return true;\n }\n }\n return false;\n}\nfunction anymatch(matchers, testString) {\n if (matchers == null) {\n throw new TypeError('anymatch: specify first argument');\n }\n // Early cache for matchers.\n const matchersArray = arrify(matchers);\n const patterns = matchersArray.map((matcher) => createPattern(matcher));\n if (testString == null) {\n return (testString, stats) => {\n return matchPatterns(patterns, testString, stats);\n };\n }\n return matchPatterns(patterns, testString);\n}\nconst unifyPaths = (paths_) => {\n const paths = arrify(paths_).flat();\n if (!paths.every((p) => typeof p === STRING_TYPE)) {\n throw new TypeError(`Non-string provided as watch path: ${paths}`);\n }\n return paths.map(normalizePathToUnix);\n};\n// If SLASH_SLASH occurs at the beginning of path, it is not replaced\n// because \"//StoragePC/DrivePool/Movies\" is a valid network path\nconst toUnix = (string) => {\n let str = string.replace(BACK_SLASH_RE, SLASH);\n let prepend = false;\n if (str.startsWith(SLASH_SLASH)) {\n prepend = true;\n }\n str = str.replace(DOUBLE_SLASH_RE, SLASH);\n if (prepend) {\n str = SLASH + str;\n }\n return str;\n};\n// Our version of upath.normalize\n// TODO: this is not equal to path-normalize module - investigate why\nconst normalizePathToUnix = (path) => toUnix(sp.normalize(toUnix(path)));\n// TODO: refactor\nconst normalizeIgnored = (cwd = '') => (path) => {\n if (typeof path === 'string') {\n return normalizePathToUnix(sp.isAbsolute(path) ? path : sp.join(cwd, path));\n }\n else {\n return path;\n }\n};\nconst getAbsolutePath = (path, cwd) => {\n if (sp.isAbsolute(path)) {\n return path;\n }\n return sp.join(cwd, path);\n};\nconst EMPTY_SET = Object.freeze(new Set());\n/**\n * Directory entry.\n */\nclass DirEntry {\n path;\n _removeWatcher;\n items;\n constructor(dir, removeWatcher) {\n this.path = dir;\n this._removeWatcher = removeWatcher;\n this.items = new Set();\n }\n add(item) {\n const { items } = this;\n if (!items)\n return;\n if (item !== ONE_DOT && item !== TWO_DOTS)\n items.add(item);\n }\n async remove(item) {\n const { items } = this;\n if (!items)\n return;\n items.delete(item);\n if (items.size > 0)\n return;\n const dir = this.path;\n try {\n await readdir(dir);\n }\n catch (err) {\n if (this._removeWatcher) {\n this._removeWatcher(sp.dirname(dir), sp.basename(dir));\n }\n }\n }\n has(item) {\n const { items } = this;\n if (!items)\n return;\n return items.has(item);\n }\n getChildren() {\n const { items } = this;\n if (!items)\n return [];\n return [...items.values()];\n }\n dispose() {\n this.items.clear();\n this.path = '';\n this._removeWatcher = EMPTY_FN;\n this.items = EMPTY_SET;\n Object.freeze(this);\n }\n}\nconst STAT_METHOD_F = 'stat';\nconst STAT_METHOD_L = 'lstat';\nexport class WatchHelper {\n fsw;\n path;\n watchPath;\n fullWatchPath;\n dirParts;\n followSymlinks;\n statMethod;\n constructor(path, follow, fsw) {\n this.fsw = fsw;\n const watchPath = path;\n this.path = path = path.replace(REPLACER_RE, '');\n this.watchPath = watchPath;\n this.fullWatchPath = sp.resolve(watchPath);\n this.dirParts = [];\n this.dirParts.forEach((parts) => {\n if (parts.length > 1)\n parts.pop();\n });\n this.followSymlinks = follow;\n this.statMethod = follow ? STAT_METHOD_F : STAT_METHOD_L;\n }\n entryPath(entry) {\n return sp.join(this.watchPath, sp.relative(this.watchPath, entry.fullPath));\n }\n filterPath(entry) {\n const { stats } = entry;\n if (stats && stats.isSymbolicLink())\n return this.filterDir(entry);\n const resolvedPath = this.entryPath(entry);\n // TODO: what if stats is undefined? remove !\n return this.fsw._isntIgnored(resolvedPath, stats) && this.fsw._hasReadPermissions(stats);\n }\n filterDir(entry) {\n return this.fsw._isntIgnored(this.entryPath(entry), entry.stats);\n }\n}\n/**\n * Watches files & directories for changes. Emitted events:\n * `add`, `addDir`, `change`, `unlink`, `unlinkDir`, `all`, `error`\n *\n * new FSWatcher()\n * .add(directories)\n * .on('add', path => log('File', path, 'was added'))\n */\nexport class FSWatcher extends EventEmitter {\n closed;\n options;\n _closers;\n _ignoredPaths;\n _throttled;\n _streams;\n _symlinkPaths;\n _watched;\n _pendingWrites;\n _pendingUnlinks;\n _readyCount;\n _emitReady;\n _closePromise;\n _userIgnored;\n _readyEmitted;\n _emitRaw;\n _boundRemove;\n _nodeFsHandler;\n // Not indenting methods for history sake; for now.\n constructor(_opts = {}) {\n super();\n this.closed = false;\n this._closers = new Map();\n this._ignoredPaths = new Set();\n this._throttled = new Map();\n this._streams = new Set();\n this._symlinkPaths = new Map();\n this._watched = new Map();\n this._pendingWrites = new Map();\n this._pendingUnlinks = new Map();\n this._readyCount = 0;\n this._readyEmitted = false;\n const awf = _opts.awaitWriteFinish;\n const DEF_AWF = { stabilityThreshold: 2000, pollInterval: 100 };\n const opts = {\n // Defaults\n persistent: true,\n ignoreInitial: false,\n ignorePermissionErrors: false,\n interval: 100,\n binaryInterval: 300,\n followSymlinks: true,\n usePolling: false,\n // useAsync: false,\n atomic: true, // NOTE: overwritten later (depends on usePolling)\n ..._opts,\n // Change format\n ignored: _opts.ignored ? arrify(_opts.ignored) : arrify([]),\n awaitWriteFinish: awf === true ? DEF_AWF : typeof awf === 'object' ? { ...DEF_AWF, ...awf } : false,\n };\n // Always default to polling on IBM i because fs.watch() is not available on IBM i.\n if (isIBMi)\n opts.usePolling = true;\n // Editor atomic write normalization enabled by default with fs.watch\n if (opts.atomic === undefined)\n opts.atomic = !opts.usePolling;\n // opts.atomic = typeof _opts.atomic === 'number' ? _opts.atomic : 100;\n // Global override. Useful for developers, who need to force polling for all\n // instances of chokidar, regardless of usage / dependency depth\n const envPoll = process.env.CHOKIDAR_USEPOLLING;\n if (envPoll !== undefined) {\n const envLower = envPoll.toLowerCase();\n if (envLower === 'false' || envLower === '0')\n opts.usePolling = false;\n else if (envLower === 'true' || envLower === '1')\n opts.usePolling = true;\n else\n opts.usePolling = !!envLower;\n }\n const envInterval = process.env.CHOKIDAR_INTERVAL;\n if (envInterval)\n opts.interval = Number.parseInt(envInterval, 10);\n // This is done to emit ready only once, but each 'add' will increase that?\n let readyCalls = 0;\n this._emitReady = () => {\n readyCalls++;\n if (readyCalls >= this._readyCount) {\n this._emitReady = EMPTY_FN;\n this._readyEmitted = true;\n // use process.nextTick to allow time for listener to be bound\n process.nextTick(() => this.emit(EV.READY));\n }\n };\n this._emitRaw = (...args) => this.emit(EV.RAW, ...args);\n this._boundRemove = this._remove.bind(this);\n this.options = opts;\n this._nodeFsHandler = new NodeFsHandler(this);\n // You’re frozen when your heart’s not open.\n Object.freeze(opts);\n }\n _addIgnoredPath(matcher) {\n if (isMatcherObject(matcher)) {\n // return early if we already have a deeply equal matcher object\n for (const ignored of this._ignoredPaths) {\n if (isMatcherObject(ignored) &&\n ignored.path === matcher.path &&\n ignored.recursive === matcher.recursive) {\n return;\n }\n }\n }\n this._ignoredPaths.add(matcher);\n }\n _removeIgnoredPath(matcher) {\n this._ignoredPaths.delete(matcher);\n // now find any matcher objects with the matcher as path\n if (typeof matcher === 'string') {\n for (const ignored of this._ignoredPaths) {\n // TODO (43081j): make this more efficient.\n // probably just make a `this._ignoredDirectories` or some\n // such thing.\n if (isMatcherObject(ignored) && ignored.path === matcher) {\n this._ignoredPaths.delete(ignored);\n }\n }\n }\n }\n // Public methods\n /**\n * Adds paths to be watched on an existing FSWatcher instance.\n * @param paths_ file or file list. Other arguments are unused\n */\n add(paths_, _origAdd, _internal) {\n const { cwd } = this.options;\n this.closed = false;\n this._closePromise = undefined;\n let paths = unifyPaths(paths_);\n if (cwd) {\n paths = paths.map((path) => {\n const absPath = getAbsolutePath(path, cwd);\n // Check `path` instead of `absPath` because the cwd portion can't be a glob\n return absPath;\n });\n }\n paths.forEach((path) => {\n this._removeIgnoredPath(path);\n });\n this._userIgnored = undefined;\n if (!this._readyCount)\n this._readyCount = 0;\n this._readyCount += paths.length;\n Promise.all(paths.map(async (path) => {\n const res = await this._nodeFsHandler._addToNodeFs(path, !_internal, undefined, 0, _origAdd);\n if (res)\n this._emitReady();\n return res;\n })).then((results) => {\n if (this.closed)\n return;\n results.forEach((item) => {\n if (item)\n this.add(sp.dirname(item), sp.basename(_origAdd || item));\n });\n });\n return this;\n }\n /**\n * Close watchers or start ignoring events from specified paths.\n */\n unwatch(paths_) {\n if (this.closed)\n return this;\n const paths = unifyPaths(paths_);\n const { cwd } = this.options;\n paths.forEach((path) => {\n // convert to absolute path unless relative path already matches\n if (!sp.isAbsolute(path) && !this._closers.has(path)) {\n if (cwd)\n path = sp.join(cwd, path);\n path = sp.resolve(path);\n }\n this._closePath(path);\n this._addIgnoredPath(path);\n if (this._watched.has(path)) {\n this._addIgnoredPath({\n path,\n recursive: true,\n });\n }\n // reset the cached userIgnored anymatch fn\n // to make ignoredPaths changes effective\n this._userIgnored = undefined;\n });\n return this;\n }\n /**\n * Close watchers and remove all listeners from watched paths.\n */\n close() {\n if (this._closePromise) {\n return this._closePromise;\n }\n this.closed = true;\n // Memory management.\n this.removeAllListeners();\n const closers = [];\n this._closers.forEach((closerList) => closerList.forEach((closer) => {\n const promise = closer();\n if (promise instanceof Promise)\n closers.push(promise);\n }));\n this._streams.forEach((stream) => stream.destroy());\n this._userIgnored = undefined;\n this._readyCount = 0;\n this._readyEmitted = false;\n this._watched.forEach((dirent) => dirent.dispose());\n this._closers.clear();\n this._watched.clear();\n this._streams.clear();\n this._symlinkPaths.clear();\n this._throttled.clear();\n this._closePromise = closers.length\n ? Promise.all(closers).then(() => undefined)\n : Promise.resolve();\n return this._closePromise;\n }\n /**\n * Expose list of watched paths\n * @returns for chaining\n */\n getWatched() {\n const watchList = {};\n this._watched.forEach((entry, dir) => {\n const key = this.options.cwd ? sp.relative(this.options.cwd, dir) : dir;\n const index = key || ONE_DOT;\n watchList[index] = entry.getChildren().sort();\n });\n return watchList;\n }\n emitWithAll(event, args) {\n this.emit(event, ...args);\n if (event !== EV.ERROR)\n this.emit(EV.ALL, event, ...args);\n }\n // Common helpers\n // --------------\n /**\n * Normalize and emit events.\n * Calling _emit DOES NOT MEAN emit() would be called!\n * @param event Type of event\n * @param path File or directory path\n * @param stats arguments to be passed with event\n * @returns the error if defined, otherwise the value of the FSWatcher instance's `closed` flag\n */\n async _emit(event, path, stats) {\n if (this.closed)\n return;\n const opts = this.options;\n if (isWindows)\n path = sp.normalize(path);\n if (opts.cwd)\n path = sp.relative(opts.cwd, path);\n const args = [path];\n if (stats != null)\n args.push(stats);\n const awf = opts.awaitWriteFinish;\n let pw;\n if (awf && (pw = this._pendingWrites.get(path))) {\n pw.lastChange = new Date();\n return this;\n }\n if (opts.atomic) {\n if (event === EV.UNLINK) {\n this._pendingUnlinks.set(path, [event, ...args]);\n setTimeout(() => {\n this._pendingUnlinks.forEach((entry, path) => {\n this.emit(...entry);\n this.emit(EV.ALL, ...entry);\n this._pendingUnlinks.delete(path);\n });\n }, typeof opts.atomic === 'number' ? opts.atomic : 100);\n return this;\n }\n if (event === EV.ADD && this._pendingUnlinks.has(path)) {\n event = EV.CHANGE;\n this._pendingUnlinks.delete(path);\n }\n }\n if (awf && (event === EV.ADD || event === EV.CHANGE) && this._readyEmitted) {\n const awfEmit = (err, stats) => {\n if (err) {\n event = EV.ERROR;\n args[0] = err;\n this.emitWithAll(event, args);\n }\n else if (stats) {\n // if stats doesn't exist the file must have been deleted\n if (args.length > 1) {\n args[1] = stats;\n }\n else {\n args.push(stats);\n }\n this.emitWithAll(event, args);\n }\n };\n this._awaitWriteFinish(path, awf.stabilityThreshold, event, awfEmit);\n return this;\n }\n if (event === EV.CHANGE) {\n const isThrottled = !this._throttle(EV.CHANGE, path, 50);\n if (isThrottled)\n return this;\n }\n if (opts.alwaysStat &&\n stats === undefined &&\n (event === EV.ADD || event === EV.ADD_DIR || event === EV.CHANGE)) {\n const fullPath = opts.cwd ? sp.join(opts.cwd, path) : path;\n let stats;\n try {\n stats = await stat(fullPath);\n }\n catch (err) {\n // do nothing\n }\n // Suppress event when fs_stat fails, to avoid sending undefined 'stat'\n if (!stats || this.closed)\n return;\n args.push(stats);\n }\n this.emitWithAll(event, args);\n return this;\n }\n /**\n * Common handler for errors\n * @returns The error if defined, otherwise the value of the FSWatcher instance's `closed` flag\n */\n _handleError(error) {\n const code = error && error.code;\n if (error &&\n code !== 'ENOENT' &&\n code !== 'ENOTDIR' &&\n (!this.options.ignorePermissionErrors || (code !== 'EPERM' && code !== 'EACCES'))) {\n this.emit(EV.ERROR, error);\n }\n return error || this.closed;\n }\n /**\n * Helper utility for throttling\n * @param actionType type being throttled\n * @param path being acted upon\n * @param timeout duration of time to suppress duplicate actions\n * @returns tracking object or false if action should be suppressed\n */\n _throttle(actionType, path, timeout) {\n if (!this._throttled.has(actionType)) {\n this._throttled.set(actionType, new Map());\n }\n const action = this._throttled.get(actionType);\n if (!action)\n throw new Error('invalid throttle');\n const actionPath = action.get(path);\n if (actionPath) {\n actionPath.count++;\n return false;\n }\n // eslint-disable-next-line prefer-const\n let timeoutObject;\n const clear = () => {\n const item = action.get(path);\n const count = item ? item.count : 0;\n action.delete(path);\n clearTimeout(timeoutObject);\n if (item)\n clearTimeout(item.timeoutObject);\n return count;\n };\n timeoutObject = setTimeout(clear, timeout);\n const thr = { timeoutObject, clear, count: 0 };\n action.set(path, thr);\n return thr;\n }\n _incrReadyCount() {\n return this._readyCount++;\n }\n /**\n * Awaits write operation to finish.\n * Polls a newly created file for size variations. When files size does not change for 'threshold' milliseconds calls callback.\n * @param path being acted upon\n * @param threshold Time in milliseconds a file size must be fixed before acknowledging write OP is finished\n * @param event\n * @param awfEmit Callback to be called when ready for event to be emitted.\n */\n _awaitWriteFinish(path, threshold, event, awfEmit) {\n const awf = this.options.awaitWriteFinish;\n if (typeof awf !== 'object')\n return;\n const pollInterval = awf.pollInterval;\n let timeoutHandler;\n let fullPath = path;\n if (this.options.cwd && !sp.isAbsolute(path)) {\n fullPath = sp.join(this.options.cwd, path);\n }\n const now = new Date();\n const writes = this._pendingWrites;\n function awaitWriteFinishFn(prevStat) {\n statcb(fullPath, (err, curStat) => {\n if (err || !writes.has(path)) {\n if (err && err.code !== 'ENOENT')\n awfEmit(err);\n return;\n }\n const now = Number(new Date());\n if (prevStat && curStat.size !== prevStat.size) {\n writes.get(path).lastChange = now;\n }\n const pw = writes.get(path);\n const df = now - pw.lastChange;\n if (df >= threshold) {\n writes.delete(path);\n awfEmit(undefined, curStat);\n }\n else {\n timeoutHandler = setTimeout(awaitWriteFinishFn, pollInterval, curStat);\n }\n });\n }\n if (!writes.has(path)) {\n writes.set(path, {\n lastChange: now,\n cancelWait: () => {\n writes.delete(path);\n clearTimeout(timeoutHandler);\n return event;\n },\n });\n timeoutHandler = setTimeout(awaitWriteFinishFn, pollInterval);\n }\n }\n /**\n * Determines whether user has asked to ignore this path.\n */\n _isIgnored(path, stats) {\n if (this.options.atomic && DOT_RE.test(path))\n return true;\n if (!this._userIgnored) {\n const { cwd } = this.options;\n const ign = this.options.ignored;\n const ignored = (ign || []).map(normalizeIgnored(cwd));\n const ignoredPaths = [...this._ignoredPaths];\n const list = [...ignoredPaths.map(normalizeIgnored(cwd)), ...ignored];\n this._userIgnored = anymatch(list, undefined);\n }\n return this._userIgnored(path, stats);\n }\n _isntIgnored(path, stat) {\n return !this._isIgnored(path, stat);\n }\n /**\n * Provides a set of common helpers and properties relating to symlink handling.\n * @param path file or directory pattern being watched\n */\n _getWatchHelpers(path) {\n return new WatchHelper(path, this.options.followSymlinks, this);\n }\n // Directory helpers\n // -----------------\n /**\n * Provides directory tracking objects\n * @param directory path of the directory\n */\n _getWatchedDir(directory) {\n const dir = sp.resolve(directory);\n if (!this._watched.has(dir))\n this._watched.set(dir, new DirEntry(dir, this._boundRemove));\n return this._watched.get(dir);\n }\n // File helpers\n // ------------\n /**\n * Check for read permissions: https://stackoverflow.com/a/11781404/1358405\n */\n _hasReadPermissions(stats) {\n if (this.options.ignorePermissionErrors)\n return true;\n return Boolean(Number(stats.mode) & 0o400);\n }\n /**\n * Handles emitting unlink events for\n * files and directories, and via recursion, for\n * files and directories within directories that are unlinked\n * @param directory within which the following item is located\n * @param item base path of item/directory\n */\n _remove(directory, item, isDirectory) {\n // if what is being deleted is a directory, get that directory's paths\n // for recursive deleting and cleaning of watched object\n // if it is not a directory, nestedDirectoryChildren will be empty array\n const path = sp.join(directory, item);\n const fullPath = sp.resolve(path);\n isDirectory =\n isDirectory != null ? isDirectory : this._watched.has(path) || this._watched.has(fullPath);\n // prevent duplicate handling in case of arriving here nearly simultaneously\n // via multiple paths (such as _handleFile and _handleDir)\n if (!this._throttle('remove', path, 100))\n return;\n // if the only watched file is removed, watch for its return\n if (!isDirectory && this._watched.size === 1) {\n this.add(directory, item, true);\n }\n // This will create a new entry in the watched object in either case\n // so we got to do the directory check beforehand\n const wp = this._getWatchedDir(path);\n const nestedDirectoryChildren = wp.getChildren();\n // Recursively remove children directories / files.\n nestedDirectoryChildren.forEach((nested) => this._remove(path, nested));\n // Check if item was on the watched list and remove it\n const parent = this._getWatchedDir(directory);\n const wasTracked = parent.has(item);\n parent.remove(item);\n // Fixes issue #1042 -> Relative paths were detected and added as symlinks\n // (https://github.com/paulmillr/chokidar/blob/e1753ddbc9571bdc33b4a4af172d52cb6e611c10/lib/nodefs-handler.js#L612),\n // but never removed from the map in case the path was deleted.\n // This leads to an incorrect state if the path was recreated:\n // https://github.com/paulmillr/chokidar/blob/e1753ddbc9571bdc33b4a4af172d52cb6e611c10/lib/nodefs-handler.js#L553\n if (this._symlinkPaths.has(fullPath)) {\n this._symlinkPaths.delete(fullPath);\n }\n // If we wait for this file to be fully written, cancel the wait.\n let relPath = path;\n if (this.options.cwd)\n relPath = sp.relative(this.options.cwd, path);\n if (this.options.awaitWriteFinish && this._pendingWrites.has(relPath)) {\n const event = this._pendingWrites.get(relPath).cancelWait();\n if (event === EV.ADD)\n return;\n }\n // The Entry will either be a directory that just got removed\n // or a bogus entry to a file, in either case we have to remove it\n this._watched.delete(path);\n this._watched.delete(fullPath);\n const eventName = isDirectory ? EV.UNLINK_DIR : EV.UNLINK;\n if (wasTracked && !this._isIgnored(path))\n this._emit(eventName, path);\n // Avoid conflicts if we later create another file with the same name\n this._closePath(path);\n }\n /**\n * Closes all watchers for a path\n */\n _closePath(path) {\n this._closeFile(path);\n const dir = sp.dirname(path);\n this._getWatchedDir(dir).remove(sp.basename(path));\n }\n /**\n * Closes only file-specific watchers\n */\n _closeFile(path) {\n const closers = this._closers.get(path);\n if (!closers)\n return;\n closers.forEach((closer) => closer());\n this._closers.delete(path);\n }\n _addPathCloser(path, closer) {\n if (!closer)\n return;\n let list = this._closers.get(path);\n if (!list) {\n list = [];\n this._closers.set(path, list);\n }\n list.push(closer);\n }\n _readdirp(root, opts) {\n if (this.closed)\n return;\n const options = { type: EV.ALL, alwaysStat: true, lstat: true, ...opts, depth: 0 };\n let stream = readdirp(root, options);\n this._streams.add(stream);\n stream.once(STR_CLOSE, () => {\n stream = undefined;\n });\n stream.once(STR_END, () => {\n if (stream) {\n this._streams.delete(stream);\n stream = undefined;\n }\n });\n return stream;\n }\n}\n/**\n * Instantiates watcher with paths to be tracked.\n * @param paths file / directory paths\n * @param options opts, such as `atomic`, `awaitWriteFinish`, `ignored`, and others\n * @returns an instance of FSWatcher for chaining.\n * @example\n * const watcher = watch('.').on('all', (event, path) => { console.log(event, path); });\n * watch('.', { atomic: true, awaitWriteFinish: true, ignored: (f, stats) => stats?.isFile() && !f.endsWith('.js') })\n */\nexport function watch(paths, options = {}) {\n const watcher = new FSWatcher(options);\n watcher.add(paths);\n return watcher;\n}\nexport default { watch: watch, FSWatcher: FSWatcher };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAkE;AACiC;AAC5D;AAChC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,6BAA6B,8BAAQ;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA,SAAS;AACT,uBAAuB;AACvB,gBAAgB,aAAa;AAC7B;AACA;AACA,wCAAwC,eAAK,GAAG,cAAI;AACpD;AACA;AACA,sDAAsD,cAAc;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,+BAAQ;AAC7B;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,cAAc;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,qBAAO;AACjC;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,6BAA6B,+BAAQ,CAAC,4BAAK;AAC3C,sBAAsB,MAAM,gCAAS;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,sBAAQ;AACpD,iDAAiD,mBAAK;AACtD;AACA;AACA;AACA;AACA;AACA,kFAAkF,uBAAI;AACtF,wFAAwF,KAAK,eAAe,cAAc;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,oCAAoC;AAC3C;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qEAAqE,qBAAqB;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,2CAA2C;AAClD;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,oDAAe,wDAAQ,IAAC;;;;;AC/Q4C;AACS;AACpC;AACT;AACzB;AACA;AACA;AACA;AACA;AACP;AACO;AACA;AACA;AACA;AACA,eAAe,0BAAM;AACrB;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,KAAK,uBAAM;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,2BAAU;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,oCAAoC,mBAAmB;AACvD;AACA;AACA;AACA,6BAA6B,2BAAU,+BAA+B,wBAAO;AAC7E;AACA;AACA;AACA,eAAe,2BAAQ;AACvB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,mCAAmC;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C;AAC7C;AACA;AACA;AACA,qCAAqC,kBAAI;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,uBAAuB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,iCAAW;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,+BAAS;AAC9B;AACA,sDAAsD,YAAY;AAClE,iBAAiB;AACjB;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,iCAAW;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,2BAAU;AACpC,yBAAyB,4BAAW;AACpC;AACA;AACA,6BAA6B,2BAAU;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,2BAAU;AAClC,yBAAyB,4BAAW;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,kBAAI;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,sBAAU;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,wBAAO;AAC3B,wCAAwC,UAAU,GAAG,OAAO;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,wBAAO;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,wBAAO,MAAM,4BAAW;AAC/C;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,2BAAU;AAC5D,sCAAsC,4BAAW;AACjD;AACA;AACA;AACA;AACA,sBAAsB,4BAAW;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,2BAAU;AAC1C,kDAAkD,sBAAU;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDAAkD,sBAAU;AAC5D;AACA;AACA,+BAA+B,2BAAU;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,2BAAU;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;ACvnBA;AAC2C;AACK;AACC;AACjB;AACoB;AACyD;AAC7G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,4BAAW;AAC5C;AACA;AACA;AACA,sDAAsD,8BAAa;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,6BAAY;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,yBAAyB;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAkE,MAAM;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,6BAAY;AACzD;AACA;AACA;AACA,mCAAmC,8BAAa,gBAAgB,wBAAO;AACvE;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,8BAAa;AACrB;AACA;AACA,WAAW,wBAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,qBAAO;AACzB;AACA;AACA;AACA,oCAAoC,2BAAU,OAAO,4BAAW;AAChE;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,QAAQ;AACtC;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,2BAAU;AACvC;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,eAAe,wBAAO,iBAAiB,4BAAW;AAClD;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,wBAAwB,kCAAY;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mFAAmF,qBAAqB;AACxG;AACA;AACA,YAAY,MAAM;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,QAAQ;AAC1C;AACA;AACA,iDAAiD,YAAQ;AACzD;AACA;AACA,+CAA+C,UAAM;AACrD;AACA;AACA,kCAAkC,aAAa;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,6BAA6B,2BAAU,QAAQ,4BAAW;AAC1D,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;AACA;AACA,iBAAiB,8BAAa;AAC9B;AACA,2BAA2B,wBAAO;AAClC,uBAAuB,2BAAU;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,4BAAW;AACtD;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,sBAAsB,YAAQ;AAC9B,sBAAsB,UAAM;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,SAAS;AACrB,mBAAmB,6BAAY;AAC/B;AACA,mBAAmB,4BAAW;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,aAAS;AACnC;AACA;AACA;AACA;AACA,kCAAkC,UAAM;AACxC;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA,0BAA0B,UAAM;AAChC,wBAAwB,aAAS;AACjC;AACA;AACA;AACA,8BAA8B,UAAM,cAAc,aAAS;AAC3D;AACA;AACA,4BAA4B,YAAQ;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,aAAS;AAC/B,gDAAgD,aAAS;AACzD;AACA;AACA;AACA;AACA;AACA,uBAAuB,UAAM,cAAc,cAAU,cAAc,aAAS;AAC5E,wCAAwC,wBAAO;AAC/C;AACA;AACA,8BAA8B,kBAAI;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,YAAQ;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,8BAAa;AAC9C,uBAAuB,wBAAO;AAC9B;AACA;AACA;AACA;AACA,YAAY,0BAAM;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,MAAM;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,2BAAU;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,wBAAO;AAC5B,yBAAyB,2BAAU;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,4BAAW;AACjC;AACA;AACA,0BAA0B,UAAM;AAChC;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,iBAAa,GAAG,aAAS;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,2BAAU;AAC9B,wCAAwC,4BAAW;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,MAAM,UAAM;AACtC,qBAAqB,QAAQ;AAC7B;AACA,oBAAoB,SAAS;AAC7B;AACA,SAAS;AACT,oBAAoB,OAAO;AAC3B;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D,2BAA2B;AACtF,gBAAgB,oGAAoG;AACpH;AACO,kCAAkC;AACzC;AACA;AACA;AACA;AACA,uCAAe,EAAE,oCAAoC,EAAC"}
package/dist/829.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"829.js","sources":["webpack://@lousy-agents/mcp/../../node_modules/confbox/dist/_chunks/rolldown-runtime.mjs","webpack://@lousy-agents/mcp/../../node_modules/confbox/dist/_chunks/libs/json5.mjs","webpack://@lousy-agents/mcp/../../node_modules/confbox/dist/json5.mjs"],"sourcesContent":["import\"node:module\";var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));export{c as n,o as t};","import{t as e}from\"../rolldown-runtime.mjs\";var t=e(((e,t)=>{t.exports.Space_Separator=/[\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000]/,t.exports.ID_Start=/[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u08A0-\\u08B4\\u08B6-\\u08BD\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312E\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FEA\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7AE\\uA7B0-\\uA7B7\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB65\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\u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|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2]|\\uD804[\\uDC03-\\uDC37\\uDC83-\\uDCAF\\uDCD0-\\uDCE8\\uDD03-\\uDD26\\uDD50-\\uDD72\\uDD76\\uDD83-\\uDDB2\\uDDC1-\\uDDC4\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE2B\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEDE\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3D\\uDF50\\uDF5D-\\uDF61]|\\uD805[\\uDC00-\\uDC34\\uDC47-\\uDC4A\\uDC80-\\uDCAF\\uDCC4\\uDCC5\\uDCC7\\uDD80-\\uDDAE\\uDDD8-\\uDDDB\\uDE00-\\uDE2F\\uDE44\\uDE80-\\uDEAA\\uDF00-\\uDF19]|\\uD806[\\uDCA0-\\uDCDF\\uDCFF\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE83\\uDE86-\\uDE89\\uDEC0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC00-\\uDC6E\\uDC80-\\uDD43]|[\\uD80C\\uD81C-\\uD820\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2E]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8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FFF]|\\uD86D[\\uDC00-\\uDF34\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]/,t.exports.ID_Continue=/[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u0860-\\u086A\\u08A0-\\u08B4\\u08B6-\\u08BD\\u08D4-\\u08E1\\u08E3-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u09FC\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59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0D12-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D54-\\u0D57\\u0D5F-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1C80-\\u1C88\\u1CD0-\\u1CD2\\u1CD4-\\u1CF9\\u1D00-\\u1DF9\\u1DFB-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312E\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FEA\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7AE\\uA7B0-\\uA7B7\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C5\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA8FD\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB65\\uAB70-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-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F-\\uDD47\\uDD50-\\uDD59]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC00-\\uDC6E\\uDC80-\\uDD43]|[\\uD80C\\uD81C-\\uD820\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2E]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE60-\\uDE69\\uDED0-\\uDEED\\uDEF0-\\uDEF4\\uDF00-\\uDF36\\uDF40-\\uDF43\\uDF50-\\uDF59\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDF00-\\uDF44\\uDF50-\\uDF7E\\uDF8F-\\uDF9F\\uDFE0\\uDFE1]|\\uD821[\\uDC00-\\uDFEC]|\\uD822[\\uDC00-\\uDEF2]|\\uD82C[\\uDC00-\\uDD1E\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99\\uDC9D\\uDC9E]|\\uD834[\\uDD65-\\uDD69\\uDD6D-\\uDD72\\uDD7B-\\uDD82\\uDD85-\\uDD8B\\uDDAA-\\uDDAD\\uDE42-\\uDE44]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB\\uDFCE-\\uDFFF]|\\uD836[\\uDE00-\\uDE36\\uDE3B-\\uDE6C\\uDE75\\uDE84\\uDE9B-\\uDE9F\\uDEA1-\\uDEAF]|\\uD838[\\uDC00-\\uDC06\\uDC08-\\uDC18\\uDC1B-\\uDC21\\uDC23\\uDC24\\uDC26-\\uDC2A]|\\uD83A[\\uDC00-\\uDCC4\\uDCD0-\\uDCD6\\uDD00-\\uDD4A\\uDD50-\\uDD59]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDED6\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF34\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uDB40[\\uDD00-\\uDDEF]/})),n=e(((e,n)=>{let r=t();n.exports={isSpaceSeparator(e){return typeof e==`string`&&r.Space_Separator.test(e)},isIdStartChar(e){return typeof e==`string`&&(e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e===`$`||e===`_`||r.ID_Start.test(e))},isIdContinueChar(e){return typeof e==`string`&&(e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e>=`0`&&e<=`9`||e===`$`||e===`_`||e===`‌`||e===`‍`||r.ID_Continue.test(e))},isDigit(e){return typeof e==`string`&&/[0-9]/.test(e)},isHexDigit(e){return typeof e==`string`&&/[0-9A-Fa-f]/.test(e)}}})),r=e(((e,t)=>{let r=n(),i,a,o,s,c,l,u,d,f;t.exports=function(e,t){i=String(e),a=`start`,o=[],s=0,c=1,l=0,u=void 0,d=void 0,f=void 0;do u=y(),O[a]();while(u.type!==`eof`);return typeof t==`function`?p({\"\":f},``,t):f};function p(e,t,n){let r=e[t];if(typeof r==`object`&&r)if(Array.isArray(r))for(let e=0;e<r.length;e++){let t=String(e),i=p(r,t,n);i===void 0?delete r[t]:Object.defineProperty(r,t,{value:i,writable:!0,enumerable:!0,configurable:!0})}else for(let e in r){let t=p(r,e,n);t===void 0?delete r[e]:Object.defineProperty(r,e,{value:t,writable:!0,enumerable:!0,configurable:!0})}return n.call(e,t,r)}let m,h,g,_,v;function y(){for(m=`default`,h=``,g=!1,_=1;;){v=b();let e=S[m]();if(e)return e}}function b(){if(i[s])return String.fromCodePoint(i.codePointAt(s))}function x(){let e=b();return e===`\n`?(c++,l=0):e?l+=e.length:l++,e&&(s+=e.length),e}let S={default(){switch(v){case`\t`:case`\\v`:case`\\f`:case` `:case`\\xA0`:case``:case`\n`:case`\\r`:case`\\u2028`:case`\\u2029`:x();return;case`/`:x(),m=`comment`;return;case void 0:return x(),C(`eof`)}if(r.isSpaceSeparator(v)){x();return}return S[a]()},comment(){switch(v){case`*`:x(),m=`multiLineComment`;return;case`/`:x(),m=`singleLineComment`;return}throw j(x())},multiLineComment(){switch(v){case`*`:x(),m=`multiLineCommentAsterisk`;return;case void 0:throw j(x())}x()},multiLineCommentAsterisk(){switch(v){case`*`:x();return;case`/`:x(),m=`default`;return;case void 0:throw j(x())}x(),m=`multiLineComment`},singleLineComment(){switch(v){case`\n`:case`\\r`:case`\\u2028`:case`\\u2029`:x(),m=`default`;return;case void 0:return x(),C(`eof`)}x()},value(){switch(v){case`{`:case`[`:return C(`punctuator`,x());case`n`:return x(),w(`ull`),C(`null`,null);case`t`:return x(),w(`rue`),C(`boolean`,!0);case`f`:return x(),w(`alse`),C(`boolean`,!1);case`-`:case`+`:x()===`-`&&(_=-1),m=`sign`;return;case`.`:h=x(),m=`decimalPointLeading`;return;case`0`:h=x(),m=`zero`;return;case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:h=x(),m=`decimalInteger`;return;case`I`:return x(),w(`nfinity`),C(`numeric`,1/0);case`N`:return x(),w(`aN`),C(`numeric`,NaN);case`\"`:case`'`:g=x()===`\"`,h=``,m=`string`;return}throw j(x())},identifierNameStartEscape(){if(v!==`u`)throw j(x());x();let e=D();switch(e){case`$`:case`_`:break;default:if(!r.isIdStartChar(e))throw N();break}h+=e,m=`identifierName`},identifierName(){switch(v){case`$`:case`_`:case`‌`:case`‍`:h+=x();return;case`\\\\`:x(),m=`identifierNameEscape`;return}if(r.isIdContinueChar(v)){h+=x();return}return C(`identifier`,h)},identifierNameEscape(){if(v!==`u`)throw j(x());x();let e=D();switch(e){case`$`:case`_`:case`‌`:case`‍`:break;default:if(!r.isIdContinueChar(e))throw N();break}h+=e,m=`identifierName`},sign(){switch(v){case`.`:h=x(),m=`decimalPointLeading`;return;case`0`:h=x(),m=`zero`;return;case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:h=x(),m=`decimalInteger`;return;case`I`:return x(),w(`nfinity`),C(`numeric`,_*(1/0));case`N`:return x(),w(`aN`),C(`numeric`,NaN)}throw j(x())},zero(){switch(v){case`.`:h+=x(),m=`decimalPoint`;return;case`e`:case`E`:h+=x(),m=`decimalExponent`;return;case`x`:case`X`:h+=x(),m=`hexadecimal`;return}return C(`numeric`,_*0)},decimalInteger(){switch(v){case`.`:h+=x(),m=`decimalPoint`;return;case`e`:case`E`:h+=x(),m=`decimalExponent`;return}if(r.isDigit(v)){h+=x();return}return C(`numeric`,_*Number(h))},decimalPointLeading(){if(r.isDigit(v)){h+=x(),m=`decimalFraction`;return}throw j(x())},decimalPoint(){switch(v){case`e`:case`E`:h+=x(),m=`decimalExponent`;return}if(r.isDigit(v)){h+=x(),m=`decimalFraction`;return}return C(`numeric`,_*Number(h))},decimalFraction(){switch(v){case`e`:case`E`:h+=x(),m=`decimalExponent`;return}if(r.isDigit(v)){h+=x();return}return C(`numeric`,_*Number(h))},decimalExponent(){switch(v){case`+`:case`-`:h+=x(),m=`decimalExponentSign`;return}if(r.isDigit(v)){h+=x(),m=`decimalExponentInteger`;return}throw j(x())},decimalExponentSign(){if(r.isDigit(v)){h+=x(),m=`decimalExponentInteger`;return}throw j(x())},decimalExponentInteger(){if(r.isDigit(v)){h+=x();return}return C(`numeric`,_*Number(h))},hexadecimal(){if(r.isHexDigit(v)){h+=x(),m=`hexadecimalInteger`;return}throw j(x())},hexadecimalInteger(){if(r.isHexDigit(v)){h+=x();return}return C(`numeric`,_*Number(h))},string(){switch(v){case`\\\\`:x(),h+=T();return;case`\"`:if(g)return x(),C(`string`,h);h+=x();return;case`'`:if(!g)return x(),C(`string`,h);h+=x();return;case`\n`:case`\\r`:throw j(x());case`\\u2028`:case`\\u2029`:P(v);break;case void 0:throw j(x())}h+=x()},start(){switch(v){case`{`:case`[`:return C(`punctuator`,x())}m=`value`},beforePropertyName(){switch(v){case`$`:case`_`:h=x(),m=`identifierName`;return;case`\\\\`:x(),m=`identifierNameStartEscape`;return;case`}`:return C(`punctuator`,x());case`\"`:case`'`:g=x()===`\"`,m=`string`;return}if(r.isIdStartChar(v)){h+=x(),m=`identifierName`;return}throw j(x())},afterPropertyName(){if(v===`:`)return C(`punctuator`,x());throw j(x())},beforePropertyValue(){m=`value`},afterPropertyValue(){switch(v){case`,`:case`}`:return C(`punctuator`,x())}throw j(x())},beforeArrayValue(){if(v===`]`)return C(`punctuator`,x());m=`value`},afterArrayValue(){switch(v){case`,`:case`]`:return C(`punctuator`,x())}throw j(x())},end(){throw j(x())}};function C(e,t){return{type:e,value:t,line:c,column:l}}function w(e){for(let t of e){if(b()!==t)throw j(x());x()}}function T(){switch(b()){case`b`:return x(),`\\b`;case`f`:return x(),`\\f`;case`n`:return x(),`\n`;case`r`:return x(),`\\r`;case`t`:return x(),`\t`;case`v`:return x(),`\\v`;case`0`:if(x(),r.isDigit(b()))throw j(x());return`\\0`;case`x`:return x(),E();case`u`:return x(),D();case`\n`:case`\\u2028`:case`\\u2029`:return x(),``;case`\\r`:return x(),b()===`\n`&&x(),``;case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:throw j(x());case void 0:throw j(x())}return x()}function E(){let e=``,t=b();if(!r.isHexDigit(t)||(e+=x(),t=b(),!r.isHexDigit(t)))throw j(x());return e+=x(),String.fromCodePoint(parseInt(e,16))}function D(){let e=``,t=4;for(;t-- >0;){let t=b();if(!r.isHexDigit(t))throw j(x());e+=x()}return String.fromCodePoint(parseInt(e,16))}let O={start(){if(u.type===`eof`)throw M();k()},beforePropertyName(){switch(u.type){case`identifier`:case`string`:d=u.value,a=`afterPropertyName`;return;case`punctuator`:A();return;case`eof`:throw M()}},afterPropertyName(){if(u.type===`eof`)throw M();a=`beforePropertyValue`},beforePropertyValue(){if(u.type===`eof`)throw M();k()},beforeArrayValue(){if(u.type===`eof`)throw M();if(u.type===`punctuator`&&u.value===`]`){A();return}k()},afterPropertyValue(){if(u.type===`eof`)throw M();switch(u.value){case`,`:a=`beforePropertyName`;return;case`}`:A()}},afterArrayValue(){if(u.type===`eof`)throw M();switch(u.value){case`,`:a=`beforeArrayValue`;return;case`]`:A()}},end(){}};function k(){let e;switch(u.type){case`punctuator`:switch(u.value){case`{`:e={};break;case`[`:e=[];break}break;case`null`:case`boolean`:case`numeric`:case`string`:e=u.value;break}if(f===void 0)f=e;else{let t=o[o.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,d,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(typeof e==`object`&&e)o.push(e),a=Array.isArray(e)?`beforeArrayValue`:`beforePropertyName`;else{let e=o[o.length-1];a=e==null?`end`:Array.isArray(e)?`afterArrayValue`:`afterPropertyValue`}}function A(){o.pop();let e=o[o.length-1];a=e==null?`end`:Array.isArray(e)?`afterArrayValue`:`afterPropertyValue`}function j(e){return I(e===void 0?`JSON5: invalid end of input at ${c}:${l}`:`JSON5: invalid character '${F(e)}' at ${c}:${l}`)}function M(){return I(`JSON5: invalid end of input at ${c}:${l}`)}function N(){return l-=5,I(`JSON5: invalid identifier character at ${c}:${l}`)}function P(e){console.warn(`JSON5: '${F(e)}' in strings is not valid ECMAScript; consider escaping`)}function F(e){let t={\"'\":`\\\\'`,'\"':`\\\\\"`,\"\\\\\":`\\\\\\\\`,\"\\b\":`\\\\b`,\"\\f\":`\\\\f`,\"\\n\":`\\\\n`,\"\\r\":`\\\\r`,\"\t\":`\\\\t`,\"\\v\":`\\\\v`,\"\\0\":`\\\\0`,\"\\u2028\":`\\\\u2028`,\"\\u2029\":`\\\\u2029`};if(t[e])return t[e];if(e<` `){let t=e.charCodeAt(0).toString(16);return`\\\\x`+(`00`+t).substring(t.length)}return e}function I(e){let t=SyntaxError(e);return t.lineNumber=c,t.columnNumber=l,t}})),i=e(((e,t)=>{let r=n();t.exports=function(e,t,n){let i=[],a=``,o,s,c=``,l;if(typeof t==`object`&&t&&!Array.isArray(t)&&(n=t.space,l=t.quote,t=t.replacer),typeof t==`function`)s=t;else if(Array.isArray(t)){o=[];for(let e of t){let t;typeof e==`string`?t=e:(typeof e==`number`||e instanceof String||e instanceof Number)&&(t=String(e)),t!==void 0&&o.indexOf(t)<0&&o.push(t)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n==`number`?n>0&&(n=Math.min(10,Math.floor(n)),c=` `.substr(0,n)):typeof n==`string`&&(c=n.substr(0,10)),u(``,{\"\":e});function u(e,t){let n=t[e];switch(n!=null&&(typeof n.toJSON5==`function`?n=n.toJSON5(e):typeof n.toJSON==`function`&&(n=n.toJSON(e))),s&&(n=s.call(t,e,n)),n instanceof Number?n=Number(n):n instanceof String?n=String(n):n instanceof Boolean&&(n=n.valueOf()),n){case null:return`null`;case!0:return`true`;case!1:return`false`}if(typeof n==`string`)return d(n,!1);if(typeof n==`number`)return String(n);if(typeof n==`object`)return Array.isArray(n)?m(n):f(n)}function d(e){let t={\"'\":.1,'\"':.2},n={\"'\":`\\\\'`,'\"':`\\\\\"`,\"\\\\\":`\\\\\\\\`,\"\\b\":`\\\\b`,\"\\f\":`\\\\f`,\"\\n\":`\\\\n`,\"\\r\":`\\\\r`,\"\t\":`\\\\t`,\"\\v\":`\\\\v`,\"\\0\":`\\\\0`,\"\\u2028\":`\\\\u2028`,\"\\u2029\":`\\\\u2029`},i=``;for(let a=0;a<e.length;a++){let o=e[a];switch(o){case`'`:case`\"`:t[o]++,i+=o;continue;case`\\0`:if(r.isDigit(e[a+1])){i+=`\\\\x00`;continue}}if(n[o]){i+=n[o];continue}if(o<` `){let e=o.charCodeAt(0).toString(16);i+=`\\\\x`+(`00`+e).substring(e.length);continue}i+=o}let a=l||Object.keys(t).reduce((e,n)=>t[e]<t[n]?e:n);return i=i.replace(new RegExp(a,`g`),n[a]),a+i+a}function f(e){if(i.indexOf(e)>=0)throw TypeError(`Converting circular structure to JSON5`);i.push(e);let t=a;a+=c;let n=o||Object.keys(e),r=[];for(let t of n){let n=u(t,e);if(n!==void 0){let e=p(t)+`:`;c!==``&&(e+=` `),e+=n,r.push(e)}}let s;if(r.length===0)s=`{}`;else{let e;if(c===``)e=r.join(`,`),s=`{`+e+`}`;else{let n=`,\n`+a;e=r.join(n),s=`{\n`+a+e+`,\n`+t+`}`}}return i.pop(),a=t,s}function p(e){if(e.length===0)return d(e,!0);let t=String.fromCodePoint(e.codePointAt(0));if(!r.isIdStartChar(t))return d(e,!0);for(let n=t.length;n<e.length;n++)if(!r.isIdContinueChar(String.fromCodePoint(e.codePointAt(n))))return d(e,!0);return e}function m(e){if(i.indexOf(e)>=0)throw TypeError(`Converting circular structure to JSON5`);i.push(e);let t=a;a+=c;let n=[];for(let t=0;t<e.length;t++){let r=u(String(t),e);n.push(r===void 0?`null`:r)}let r;if(n.length===0)r=`[]`;else if(c===``)r=`[`+n.join(`,`)+`]`;else{let e=`,\n`+a,i=n.join(e);r=`[\n`+a+i+`,\n`+t+`]`}return i.pop(),a=t,r}}}));export{r as n,i as t};","import{n as e}from\"./_chunks/rolldown-runtime.mjs\";import{n as t,t as n}from\"./_chunks/_format.mjs\";import{n as r,t as i}from\"./_chunks/libs/json5.mjs\";var a=e(r(),1),o=e(i(),1);function s(e,n){let r=(0,a.default)(e,n?.reviver);return t(e,r,n),r}function c(e,t){let r=n(e,t),i=(0,o.default)(e,t?.replacer,r.indent);return r.whitespace.start+i+r.whitespace.end}export{s as parseJSON5,c as stringifyJSON5};"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAoB,IAAI,kBAAC,eAAe,kBAAC,uBAAuB,kBAAC,iCAAiC,kBAAC,4BAA4B,kBAAC,uBAAuB,kBAAC,iCAAiC,kBAAC,sBAAsB,WAAW,wBAAwB,kBAAC,aAAa,yDAAyD,kBAAC,qBAAqB,IAAI,YAAY,kBAAC,mBAAmB,kBAAC,MAAM,0CAA0C,kBAAC,qBAAqB,EAAE,SAAS,CAAC,kBAAC,uBAAuB,CAAC,kBAAC,CAAC,kBAAC,KAAK,kBAAC,sBAAsB,kBAAC,cAAc,sBAAsB;;;;ACAxf,IAAI,OAAC,CAAC,kBAAC,UAAU,w4eAAw4e,GAAG,OAAC,CAAC,kBAAC,UAAU,MAAM,OAAC,GAAG,WAAW,oBAAoB,qDAAqD,kBAAkB,kGAAkG,qBAAqB,uIAAuI,YAAY,2CAA2C,eAAe,mDAAmD,GAAG,OAAC,CAAC,kBAAC,UAAU,MAAM,OAAC,qBAAqB,wBAAwB,kEAAkE,gBAAgB,sBAAsB,+BAA+B,KAAK,UAAU,kBAAkB,WAAW,yDAAyD,WAAW,KAAK,2BAA2B,kDA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AM,kBAAkB,OAAC,kCAAkC,6C"}
package/dist/908.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"908.js","sources":["webpack://@lousy-agents/mcp/../../node_modules/confbox/dist/_chunks/libs/smol-toml.mjs","webpack://@lousy-agents/mcp/../../node_modules/confbox/dist/toml.mjs"],"sourcesContent":["/*!\n* Copyright (c) Squirrel Chat et al., All rights reserved.\n* SPDX-License-Identifier: BSD-3-Clause\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the\n* documentation and/or other materials provided with the distribution.\n* 3. Neither the name of the copyright holder nor the names of its contributors\n* may be used to endorse or promote products derived from this software without\n* specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nfunction e(e,t){let n=e.slice(0,t).split(/\\r\\n|\\n|\\r/g);return[n.length,n.pop().length+1]}function t(e,t,n){let r=e.split(/\\r\\n|\\n|\\r/g),i=``,a=(Math.log10(t+1)|0)+1;for(let e=t-1;e<=t+1;e++){let o=r[e-1];o&&(i+=e.toString().padEnd(a,` `),i+=`: `,i+=o,i+=`\n`,e===t&&(i+=` `.repeat(a+n+2),i+=`^\n`))}return i}var n=class extends Error{line;column;codeblock;constructor(n,r){let[i,a]=e(r.toml,r.ptr),o=t(r.toml,i,a);super(`Invalid TOML document: ${n}\\n\\n${o}`,r),this.line=i,this.column=a,this.codeblock=o}};\n/*!\n* Copyright (c) Squirrel Chat et al., All rights reserved.\n* SPDX-License-Identifier: BSD-3-Clause\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the\n* documentation and/or other materials provided with the distribution.\n* 3. Neither the name of the copyright holder nor the names of its contributors\n* may be used to endorse or promote products derived from this software without\n* specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nfunction r(e,t){let n=0;for(;e[t-++n]===`\\\\`;);return--n&&n%2}function i(e,t=0,n=e.length){let r=e.indexOf(`\n`,t);return e[r-1]===`\\r`&&r--,r<=n?r:-1}function a(e,t){for(let r=t;r<e.length;r++){let i=e[r];if(i===`\n`)return r;if(i===`\\r`&&e[r+1]===`\n`)return r+1;if(i<` `&&i!==`\t`||i===``)throw new n(`control characters are not allowed in comments`,{toml:e,ptr:t})}return e.length}function o(e,t,n,r){let i;for(;(i=e[t])===` `||i===`\t`||!n&&(i===`\n`||i===`\\r`&&e[t+1]===`\n`);)t++;return r||i!==`#`?t:o(e,a(e,t),n)}function s(e,t,r,a,o=!1){if(!a)return t=i(e,t),t<0?e.length:t;for(let n=t;n<e.length;n++){let t=e[n];if(t===`#`)n=i(e,n);else if(t===r)return n+1;else if(t===a||o&&(t===`\n`||t===`\\r`&&e[n+1]===`\n`))return n}throw new n(`cannot find end of structure`,{toml:e,ptr:t})}function c(e,t){let n=e[t],i=n===e[t+1]&&e[t+1]===e[t+2]?e.slice(t,t+3):n;t+=i.length-1;do t=e.indexOf(i,++t);while(t>-1&&n!==`'`&&r(e,t));return t>-1&&(t+=i.length,i.length>1&&(e[t]===n&&t++,e[t]===n&&t++)),t}\n/*!\n* Copyright (c) Squirrel Chat et al., All rights reserved.\n* SPDX-License-Identifier: BSD-3-Clause\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the\n* documentation and/or other materials provided with the distribution.\n* 3. Neither the name of the copyright holder nor the names of its contributors\n* may be used to endorse or promote products derived from this software without\n* specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nlet l=/^(\\d{4}-\\d{2}-\\d{2})?[T ]?(?:(\\d{2}):\\d{2}(?::\\d{2}(?:\\.\\d+)?)?)?(Z|[-+]\\d{2}:\\d{2})?$/i;var u=class e extends Date{#e=!1;#t=!1;#n=null;constructor(e){let t=!0,n=!0,r=`Z`;if(typeof e==`string`){let i=e.match(l);i?(i[1]||(t=!1,e=`0000-01-01T${e}`),n=!!i[2],n&&e[10]===` `&&(e=e.replace(` `,`T`)),i[2]&&+i[2]>23?e=``:(r=i[3]||null,e=e.toUpperCase(),!r&&n&&(e+=`Z`))):e=``}super(e),isNaN(this.getTime())||(this.#e=t,this.#t=n,this.#n=r)}isDateTime(){return this.#e&&this.#t}isLocal(){return!this.#e||!this.#t||!this.#n}isDate(){return this.#e&&!this.#t}isTime(){return this.#t&&!this.#e}isValid(){return this.#e||this.#t}toISOString(){let e=super.toISOString();if(this.isDate())return e.slice(0,10);if(this.isTime())return e.slice(11,23);if(this.#n===null)return e.slice(0,-1);if(this.#n===`Z`)return e;let t=this.#n.slice(1,3)*60+ +this.#n.slice(4,6);return t=this.#n[0]===`-`?t:-t,new Date(this.getTime()-t*6e4).toISOString().slice(0,-1)+this.#n}static wrapAsOffsetDateTime(t,n=`Z`){let r=new e(t);return r.#n=n,r}static wrapAsLocalDateTime(t){let n=new e(t);return n.#n=null,n}static wrapAsLocalDate(t){let n=new e(t);return n.#t=!1,n.#n=null,n}static wrapAsLocalTime(t){let n=new e(t);return n.#e=!1,n.#n=null,n}};\n/*!\n* Copyright (c) Squirrel Chat et al., All rights reserved.\n* SPDX-License-Identifier: BSD-3-Clause\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the\n* documentation and/or other materials provided with the distribution.\n* 3. Neither the name of the copyright holder nor the names of its contributors\n* may be used to endorse or promote products derived from this software without\n* specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nlet d=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\\d(_?\\d)*))$/,f=/^[+-]?\\d(_?\\d)*(\\.\\d(_?\\d)*)?([eE][+-]?\\d(_?\\d)*)?$/,p=/^[+-]?0[0-9_]/,m=/^[0-9a-f]{2,8}$/i,h={b:`\\b`,t:`\t`,n:`\n`,f:`\\f`,r:`\\r`,e:`\\x1B`,'\"':`\"`,\"\\\\\":`\\\\`};function g(e,t=0,r=e.length){let i=e[t]===`'`,a=e[t++]===e[t]&&e[t]===e[t+1];a&&(r-=2,e[t+=2]===`\\r`&&t++,e[t]===`\n`&&t++);let s=0,c,l=``,u=t;for(;t<r-1;){let r=e[t++];if(r===`\n`||r===`\\r`&&e[t]===`\n`){if(!a)throw new n(`newlines are not allowed in strings`,{toml:e,ptr:t-1})}else if(r<` `&&r!==`\t`||r===``)throw new n(`control characters are not allowed in strings`,{toml:e,ptr:t-1});if(c){if(c=!1,r===`x`||r===`u`||r===`U`){let i=e.slice(t,t+=r===`x`?2:r===`u`?4:8);if(!m.test(i))throw new n(`invalid unicode escape`,{toml:e,ptr:s});try{l+=String.fromCodePoint(parseInt(i,16))}catch{throw new n(`invalid unicode escape`,{toml:e,ptr:s})}}else if(a&&(r===`\n`||r===` `||r===`\t`||r===`\\r`)){if(t=o(e,t-1,!0),e[t]!==`\n`&&e[t]!==`\\r`)throw new n(`invalid escape: only line-ending whitespace may be escaped`,{toml:e,ptr:s});t=o(e,t)}else if(r in h)l+=h[r];else throw new n(`unrecognized escape sequence`,{toml:e,ptr:s});u=t}else !i&&r===`\\\\`&&(s=t-1,c=!0,l+=e.slice(u,s))}return l+e.slice(u,r-1)}function _(e,t,r,i){if(e===`true`)return!0;if(e===`false`)return!1;if(e===`-inf`)return-1/0;if(e===`inf`||e===`+inf`)return 1/0;if(e===`nan`||e===`+nan`||e===`-nan`)return NaN;if(e===`-0`)return i?0n:0;let a=d.test(e);if(a||f.test(e)){if(p.test(e))throw new n(`leading zeroes are not allowed`,{toml:t,ptr:r});e=e.replace(/_/g,``);let o=+e;if(isNaN(o))throw new n(`invalid number`,{toml:t,ptr:r});if(a){if((a=!Number.isSafeInteger(o))&&!i)throw new n(`integer value cannot be represented losslessly`,{toml:t,ptr:r});(a||i===!0)&&(o=BigInt(e))}return o}let o=new u(e);if(!o.isValid())throw new n(`invalid value`,{toml:t,ptr:r});return o}\n/*!\n* Copyright (c) Squirrel Chat et al., All rights reserved.\n* SPDX-License-Identifier: BSD-3-Clause\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the\n* documentation and/or other materials provided with the distribution.\n* 3. Neither the name of the copyright holder nor the names of its contributors\n* may be used to endorse or promote products derived from this software without\n* specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nfunction v(e,t,n){let r=e.slice(t,n),i=r.indexOf(`#`);return i>-1&&(a(e,i),r=r.slice(0,i)),[r.trimEnd(),i]}function y(e,t,r,i,a){if(i===0)throw new n(`document contains excessively nested structures. aborting.`,{toml:e,ptr:t});let l=e[t];if(l===`[`||l===`{`){let[s,c]=l===`[`?C(e,t,i,a):S(e,t,i,a);if(r){if(c=o(e,c),e[c]===`,`)c++;else if(e[c]!==r)throw new n(`expected comma or end of structure`,{toml:e,ptr:c})}return[s,c]}let u;if(l===`\"`||l===`'`){u=c(e,t);let i=g(e,t,u);if(r){if(u=o(e,u),e[u]&&e[u]!==`,`&&e[u]!==r&&e[u]!==`\n`&&e[u]!==`\\r`)throw new n(`unexpected character encountered`,{toml:e,ptr:u});u+=+(e[u]===`,`)}return[i,u]}u=s(e,t,`,`,r);let d=v(e,t,u-+(e[u-1]===`,`));if(!d[0])throw new n(`incomplete key-value declaration: no value specified`,{toml:e,ptr:t});return r&&d[1]>-1&&(u=o(e,t+d[1]),u+=+(e[u]===`,`)),[_(d[0],e,t,a),u]}\n/*!\n* Copyright (c) Squirrel Chat et al., All rights reserved.\n* SPDX-License-Identifier: BSD-3-Clause\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the\n* documentation and/or other materials provided with the distribution.\n* 3. Neither the name of the copyright holder nor the names of its contributors\n* may be used to endorse or promote products derived from this software without\n* specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nlet b=/^[a-zA-Z0-9-_]+[ \\t]*$/;function x(e,t,r=`=`){let a=t-1,s=[],l=e.indexOf(r,t);if(l<0)throw new n(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});do{let o=e[t=++a];if(o!==` `&&o!==`\t`)if(o===`\"`||o===`'`){if(o===e[t+1]&&o===e[t+2])throw new n(`multiline strings are not allowed in keys`,{toml:e,ptr:t});let u=c(e,t);if(u<0)throw new n(`unfinished string encountered`,{toml:e,ptr:t});a=e.indexOf(`.`,u);let d=e.slice(u,a<0||a>l?l:a),f=i(d);if(f>-1)throw new n(`newlines are not allowed in keys`,{toml:e,ptr:t+a+f});if(d.trimStart())throw new n(`found extra tokens after the string part`,{toml:e,ptr:u});if(l<u&&(l=e.indexOf(r,u),l<0))throw new n(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});s.push(g(e,t,u))}else{a=e.indexOf(`.`,t);let r=e.slice(t,a<0||a>l?l:a);if(!b.test(r))throw new n(`only letter, numbers, dashes and underscores are allowed in keys`,{toml:e,ptr:t});s.push(r.trimEnd())}}while(a+1&&a<l);return[s,o(e,l+1,!0,!0)]}function S(e,t,r,i){let o={},s=new Set,c;for(t++;(c=e[t++])!==`}`&&c;)if(c===`,`)throw new n(`expected value, found comma`,{toml:e,ptr:t-1});else if(c===`#`)t=a(e,t);else if(c!==` `&&c!==`\t`&&c!==`\n`&&c!==`\\r`){let a,c=o,l=!1,[u,d]=x(e,t-1);for(let r=0;r<u.length;r++){if(r&&(c=l?c[a]:c[a]={}),a=u[r],(l=Object.hasOwn(c,a))&&(typeof c[a]!=`object`||s.has(c[a])))throw new n(`trying to redefine an already defined value`,{toml:e,ptr:t});!l&&a===`__proto__`&&Object.defineProperty(c,a,{enumerable:!0,configurable:!0,writable:!0})}if(l)throw new n(`trying to redefine an already defined value`,{toml:e,ptr:t});let[f,p]=y(e,d,`}`,r-1,i);s.add(f),c[a]=f,t=p}if(!c)throw new n(`unfinished table encountered`,{toml:e,ptr:t});return[o,t]}function C(e,t,r,i){let o=[],s;for(t++;(s=e[t++])!==`]`&&s;)if(s===`,`)throw new n(`expected value, found comma`,{toml:e,ptr:t-1});else if(s===`#`)t=a(e,t);else if(s!==` `&&s!==`\t`&&s!==`\n`&&s!==`\\r`){let n=y(e,t-1,`]`,r-1,i);o.push(n[0]),t=n[1]}if(!s)throw new n(`unfinished array encountered`,{toml:e,ptr:t});return[o,t]}\n/*!\n* Copyright (c) Squirrel Chat et al., All rights reserved.\n* SPDX-License-Identifier: BSD-3-Clause\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the\n* documentation and/or other materials provided with the distribution.\n* 3. Neither the name of the copyright holder nor the names of its contributors\n* may be used to endorse or promote products derived from this software without\n* specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nfunction w(e,t,n,r){let i=t,a=n,o,s=!1,c;for(let t=0;t<e.length;t++){if(t){if(i=s?i[o]:i[o]={},a=(c=a[o]).c,r===0&&(c.t===1||c.t===2))return null;if(c.t===2){let e=i.length-1;i=i[e],a=a[e].c}}if(o=e[t],(s=Object.hasOwn(i,o))&&a[o]?.t===0&&a[o]?.d)return null;s||(o===`__proto__`&&(Object.defineProperty(i,o,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(a,o,{enumerable:!0,configurable:!0,writable:!0})),a[o]={t:t<e.length-1&&r===2?3:r,d:!1,i:0,c:{}})}if(c=a[o],c.t!==r&&!(r===1&&c.t===3)||(r===2&&(c.d||(c.d=!0,i[o]=[]),i[o].push(i={}),c.c[c.i++]=c={t:1,d:!1,i:0,c:{}}),c.d))return null;if(c.d=!0,r===1)i=s?i[o]:i[o]={};else if(r===0&&s)return null;return[o,i,c.c]}function T(e,{maxDepth:t=1e3,integersAsBigInt:r}={}){let i={},a={},s=i,c=a;for(let l=o(e,0);l<e.length;){if(e[l]===`[`){let t=e[++l]===`[`,r=x(e,l+=+t,`]`);if(t){if(e[r[1]-1]!==`]`)throw new n(`expected end of table declaration`,{toml:e,ptr:r[1]-1});r[1]++}let o=w(r[0],i,a,t?2:1);if(!o)throw new n(`trying to redefine an already defined table or value`,{toml:e,ptr:l});c=o[2],s=o[1],l=r[1]}else{let i=x(e,l),a=w(i[0],s,c,0);if(!a)throw new n(`trying to redefine an already defined table or value`,{toml:e,ptr:l});let o=y(e,i[1],void 0,t,r);a[1][a[0]]=o[0],l=o[1]}if(l=o(e,l,!0),e[l]&&e[l]!==`\n`&&e[l]!==`\\r`)throw new n(`each key-value declaration must be followed by an end-of-line`,{toml:e,ptr:l});l=o(e,l)}return i}\n/*!\n* Copyright (c) Squirrel Chat et al., All rights reserved.\n* SPDX-License-Identifier: BSD-3-Clause\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the\n* documentation and/or other materials provided with the distribution.\n* 3. Neither the name of the copyright holder nor the names of its contributors\n* may be used to endorse or promote products derived from this software without\n* specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\nlet E=/^[a-z0-9-_]+$/i;function D(e){let t=typeof e;if(t===`object`){if(Array.isArray(e))return`array`;if(e instanceof Date)return`date`}return t}function O(e){for(let t=0;t<e.length;t++)if(D(e[t])!==`object`)return!1;return e.length!=0}function k(e){return JSON.stringify(e).replace(/\\x7f/g,`\\\\u007f`)}function A(e,t,n,r){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);if(t===`number`)return isNaN(e)?`nan`:e===1/0?`inf`:e===-1/0?`-inf`:r&&Number.isInteger(e)?e.toFixed(1):e.toString();if(t===`bigint`||t===`boolean`)return e.toString();if(t===`string`)return k(e);if(t===`date`){if(isNaN(e.getTime()))throw TypeError(`cannot serialize invalid date`);return e.toISOString()}if(t===`object`)return j(e,n,r);if(t===`array`)return M(e,n,r)}function j(e,t,n){let r=Object.keys(e);if(r.length===0)return`{}`;let i=`{ `;for(let a=0;a<r.length;a++){let o=r[a];a&&(i+=`, `),i+=E.test(o)?o:k(o),i+=` = `,i+=A(e[o],D(e[o]),t-1,n)}return i+` }`}function M(e,t,n){if(e.length===0)return`[]`;let r=`[ `;for(let i=0;i<e.length;i++){if(i&&(r+=`, `),e[i]===null||e[i]===void 0)throw TypeError(`arrays cannot contain null or undefined values`);r+=A(e[i],D(e[i]),t-1,n)}return r+` ]`}function N(e,t,n,r){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let i=``;for(let a=0;a<e.length;a++)i+=`${i&&`\n`}[[${t}]]\\n`,i+=P(0,e[a],t,n,r);return i}function P(e,t,n,r,i){if(r===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let a=``,o=``,s=Object.keys(t);for(let e=0;e<s.length;e++){let c=s[e];if(t[c]!==null&&t[c]!==void 0){let e=D(t[c]);if(e===`symbol`||e===`function`)throw TypeError(`cannot serialize values of type '${e}'`);let s=E.test(c)?c:k(c);if(e===`array`&&O(t[c]))o+=(o&&`\n`)+N(t[c],n?`${n}.${s}`:s,r-1,i);else if(e===`object`){let e=n?`${n}.${s}`:s;o+=(o&&`\n`)+P(e,t[c],e,r-1,i)}else a+=s,a+=` = `,a+=A(t[c],e,r,i),a+=`\n`}}return e&&(a||!o)&&(a=a?`[${e}]\\n${a}`:`[${e}]`),a&&o?`${a}\\n${o}`:a||o}function F(e,{maxDepth:t=1e3,numbersAsFloat:n=!1}={}){if(D(e)!==`object`)throw TypeError(`stringify can only be called with an object`);let r=P(0,e,``,t,n);return r[r.length-1]===`\n`?r:r+`\n`}export{T as n,F as t};","import{n as e,t}from\"./_chunks/_format.mjs\";import{n,t as r}from\"./_chunks/libs/smol-toml.mjs\";function i(t){let r=n(t);return e(t,r,{preserveIndentation:!1}),r}function a(e){let n=t(e,{preserveIndentation:!1}),i=r(e);return n.whitespace.start+i+n.whitespace.end}export{i as parseTOML,a as stringifyTOML};"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,+BAA+B;AAC3C;AACA;AACA;AACA;AACA,SAAS,WAAC,MAAM,wCAAwC,kCAAkC,SAAS,WAAC,QAAQ,0DAA0D,cAAc,OAAO,KAAK,aAAa;AAC7M;AACA,IAAI,SAAS,IAAI,WAAC,qBAAqB,KAAK,OAAO,UAAU,iBAAiB,SAAS,WAAC,iBAAiB,WAAC,aAAa,gCAAgC,EAAE,MAAM,EAAE;AACjK;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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