From 61f11db27b691435590b684ed49cba5a691f1884 Mon Sep 17 00:00:00 2001 From: zbirenbaum Date: Mon, 28 Mar 2022 19:34:35 -0400 Subject: [PATCH] autopush --- autoload/copilot/logger.vim | 7 +- copilot/dist/test.js | 37084 ++++++++++++++++++++++++++++++++++ copilot/index.js | 5 + 3 files changed, 37092 insertions(+), 4 deletions(-) create mode 100644 copilot/dist/test.js create mode 100755 copilot/index.js diff --git a/autoload/copilot/logger.vim b/autoload/copilot/logger.vim index 6ae23657..99ba36f1 100644 --- a/autoload/copilot/logger.vim +++ b/autoload/copilot/logger.vim @@ -3,8 +3,9 @@ if exists('g:autoloaded_copilot_log') endif let g:autoloaded_copilot_log = 1 +" let s:log_file = '/home/zach/.config/nvim/lua/custom/utils/copilot/copilot.log' if !exists('s:log_file') - let s:log_file = tempname() . '-copilot.log' + let s:log_file ='/home/zach/.config/nvim/lua/custom/utils/copilot/copilot.log' try call writefile([], s:log_file) catch @@ -28,9 +29,7 @@ function! s:Write(lines) abort endfunction function! copilot#logger#Trace(...) abort - if $COPILOT_AGENT_VERBOSE =~# '^\%(1\|true\)$' - call s:Write(a:000) - endif + call s:Write(a:000) endfunction function! copilot#logger#Debug(...) abort diff --git a/copilot/dist/test.js b/copilot/dist/test.js new file mode 100644 index 00000000..95521b5f --- /dev/null +++ b/copilot/dist/test.js @@ -0,0 +1,37084 @@ +const process = require('process'); +// console.log = function(d) { +// process.stdout.write(d + '\n'); +// }; +/*! For license information please see agent.js.LICENSE.txt */ +console.log(process.env.GITHUB_TOKEN); +(() => { + var e = { + 3870: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.CancellationSenderStrategy = t.CancellationReceiverStrategy = t.ConnectionError = t.ConnectionErrors = t.LogTraceNotification = t.SetTraceNotification = t.TraceFormat = t.Trace = t.ProgressType = t.createMessageConnection = t.NullLogger = t.ConnectionOptions = t.ConnectionStrategy = t.WriteableStreamMessageWriter = t.AbstractMessageWriter = t.MessageWriter = t.ReadableStreamMessageReader = t.AbstractMessageReader = t.MessageReader = t.CancellationToken = t.CancellationTokenSource = t.Emitter = t.Event = t.Disposable = t.ParameterStructures = t.NotificationType9 = t.NotificationType8 = t.NotificationType7 = t.NotificationType6 = t.NotificationType5 = t.NotificationType4 = t.NotificationType3 = t.NotificationType2 = t.NotificationType1 = t.NotificationType0 = t.NotificationType = t.ErrorCodes = t.ResponseError = t.RequestType9 = t.RequestType8 = t.RequestType7 = t.RequestType6 = t.RequestType5 = t.RequestType4 = t.RequestType3 = t.RequestType2 = t.RequestType1 = t.RequestType0 = t.RequestType = t.RAL = void 0, t.CancellationStrategy = void 0; + const r = n(839); + Object.defineProperty(t, "RequestType", { + enumerable: !0, + get: function() { + return r.RequestType + } + }), Object.defineProperty(t, "RequestType0", { + enumerable: !0, + get: function() { + return r.RequestType0 + } + }), Object.defineProperty(t, "RequestType1", { + enumerable: !0, + get: function() { + return r.RequestType1 + } + }), Object.defineProperty(t, "RequestType2", { + enumerable: !0, + get: function() { + return r.RequestType2 + } + }), Object.defineProperty(t, "RequestType3", { + enumerable: !0, + get: function() { + return r.RequestType3 + } + }), Object.defineProperty(t, "RequestType4", { + enumerable: !0, + get: function() { + return r.RequestType4 + } + }), Object.defineProperty(t, "RequestType5", { + enumerable: !0, + get: function() { + return r.RequestType5 + } + }), Object.defineProperty(t, "RequestType6", { + enumerable: !0, + get: function() { + return r.RequestType6 + } + }), Object.defineProperty(t, "RequestType7", { + enumerable: !0, + get: function() { + return r.RequestType7 + } + }), Object.defineProperty(t, "RequestType8", { + enumerable: !0, + get: function() { + return r.RequestType8 + } + }), Object.defineProperty(t, "RequestType9", { + enumerable: !0, + get: function() { + return r.RequestType9 + } + }), Object.defineProperty(t, "ResponseError", { + enumerable: !0, + get: function() { + return r.ResponseError + } + }), Object.defineProperty(t, "ErrorCodes", { + enumerable: !0, + get: function() { + return r.ErrorCodes + } + }), Object.defineProperty(t, "NotificationType", { + enumerable: !0, + get: function() { + return r.NotificationType + } + }), Object.defineProperty(t, "NotificationType0", { + enumerable: !0, + get: function() { + return r.NotificationType0 + } + }), Object.defineProperty(t, "NotificationType1", { + enumerable: !0, + get: function() { + return r.NotificationType1 + } + }), Object.defineProperty(t, "NotificationType2", { + enumerable: !0, + get: function() { + return r.NotificationType2 + } + }), Object.defineProperty(t, "NotificationType3", { + enumerable: !0, + get: function() { + return r.NotificationType3 + } + }), Object.defineProperty(t, "NotificationType4", { + enumerable: !0, + get: function() { + return r.NotificationType4 + } + }), Object.defineProperty(t, "NotificationType5", { + enumerable: !0, + get: function() { + return r.NotificationType5 + } + }), Object.defineProperty(t, "NotificationType6", { + enumerable: !0, + get: function() { + return r.NotificationType6 + } + }), Object.defineProperty(t, "NotificationType7", { + enumerable: !0, + get: function() { + return r.NotificationType7 + } + }), Object.defineProperty(t, "NotificationType8", { + enumerable: !0, + get: function() { + return r.NotificationType8 + } + }), Object.defineProperty(t, "NotificationType9", { + enumerable: !0, + get: function() { + return r.NotificationType9 + } + }), Object.defineProperty(t, "ParameterStructures", { + enumerable: !0, + get: function() { + return r.ParameterStructures + } + }); + const o = n(3911); + Object.defineProperty(t, "Disposable", { + enumerable: !0, + get: function() { + return o.Disposable + } + }); + const i = n(7135); + Object.defineProperty(t, "Event", { + enumerable: !0, + get: function() { + return i.Event + } + }), Object.defineProperty(t, "Emitter", { + enumerable: !0, + get: function() { + return i.Emitter + } + }); + const s = n(3881); + Object.defineProperty(t, "CancellationTokenSource", { + enumerable: !0, + get: function() { + return s.CancellationTokenSource + } + }), Object.defineProperty(t, "CancellationToken", { + enumerable: !0, + get: function() { + return s.CancellationToken + } + }); + const a = n(6525); + Object.defineProperty(t, "MessageReader", { + enumerable: !0, + get: function() { + return a.MessageReader + } + }), Object.defineProperty(t, "AbstractMessageReader", { + enumerable: !0, + get: function() { + return a.AbstractMessageReader + } + }), Object.defineProperty(t, "ReadableStreamMessageReader", { + enumerable: !0, + get: function() { + return a.ReadableStreamMessageReader + } + }); + const c = n(6654); + Object.defineProperty(t, "MessageWriter", { + enumerable: !0, + get: function() { + return c.MessageWriter + } + }), Object.defineProperty(t, "AbstractMessageWriter", { + enumerable: !0, + get: function() { + return c.AbstractMessageWriter + } + }), Object.defineProperty(t, "WriteableStreamMessageWriter", { + enumerable: !0, + get: function() { + return c.WriteableStreamMessageWriter + } + }); + const u = n(1343); + Object.defineProperty(t, "ConnectionStrategy", { + enumerable: !0, + get: function() { + return u.ConnectionStrategy + } + }), Object.defineProperty(t, "ConnectionOptions", { + enumerable: !0, + get: function() { + return u.ConnectionOptions + } + }), Object.defineProperty(t, "NullLogger", { + enumerable: !0, + get: function() { + return u.NullLogger + } + }), Object.defineProperty(t, "createMessageConnection", { + enumerable: !0, + get: function() { + return u.createMessageConnection + } + }), Object.defineProperty(t, "ProgressType", { + enumerable: !0, + get: function() { + return u.ProgressType + } + }), Object.defineProperty(t, "Trace", { + enumerable: !0, + get: function() { + return u.Trace + } + }), Object.defineProperty(t, "TraceFormat", { + enumerable: !0, + get: function() { + return u.TraceFormat + } + }), Object.defineProperty(t, "SetTraceNotification", { + enumerable: !0, + get: function() { + return u.SetTraceNotification + } + }), Object.defineProperty(t, "LogTraceNotification", { + enumerable: !0, + get: function() { + return u.LogTraceNotification + } + }), Object.defineProperty(t, "ConnectionErrors", { + enumerable: !0, + get: function() { + return u.ConnectionErrors + } + }), Object.defineProperty(t, "ConnectionError", { + enumerable: !0, + get: function() { + return u.ConnectionError + } + }), Object.defineProperty(t, "CancellationReceiverStrategy", { + enumerable: !0, + get: function() { + return u.CancellationReceiverStrategy + } + }), Object.defineProperty(t, "CancellationSenderStrategy", { + enumerable: !0, + get: function() { + return u.CancellationSenderStrategy + } + }), Object.defineProperty(t, "CancellationStrategy", { + enumerable: !0, + get: function() { + return u.CancellationStrategy + } + }); + const l = n(147); + t.RAL = l.default + }, + 3881: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.CancellationTokenSource = t.CancellationToken = void 0; + const r = n(147), + o = n(7574), + i = n(7135); + var s; + ! function(e) { + e.None = Object.freeze({ + isCancellationRequested: !1, + onCancellationRequested: i.Event.None + }), e.Cancelled = Object.freeze({ + isCancellationRequested: !0, + onCancellationRequested: i.Event.None + }), e.is = function(t) { + const n = t; + return n && (n === e.None || n === e.Cancelled || o.boolean(n.isCancellationRequested) && !!n.onCancellationRequested) + } + }(s = t.CancellationToken || (t.CancellationToken = {})); + const a = Object.freeze((function(e, t) { + const n = r.default().timer.setTimeout(e.bind(t), 0); + return { + dispose() { + r.default().timer.clearTimeout(n) + } + } + })); + class c { + constructor() { + this._isCancelled = !1 + } + cancel() { + this._isCancelled || (this._isCancelled = !0, this._emitter && (this._emitter.fire(void 0), this.dispose())) + } + get isCancellationRequested() { + return this._isCancelled + } + get onCancellationRequested() { + return this._isCancelled ? a : (this._emitter || (this._emitter = new i.Emitter), this._emitter.event) + } + dispose() { + this._emitter && (this._emitter.dispose(), this._emitter = void 0) + } + } + t.CancellationTokenSource = class { + get token() { + return this._token || (this._token = new c), this._token + } + cancel() { + this._token ? this._token.cancel() : this._token = s.Cancelled + } + dispose() { + this._token ? this._token instanceof c && this._token.dispose() : this._token = s.None + } + } + }, + 1343: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.createMessageConnection = t.ConnectionOptions = t.CancellationStrategy = t.CancellationSenderStrategy = t.CancellationReceiverStrategy = t.ConnectionStrategy = t.ConnectionError = t.ConnectionErrors = t.LogTraceNotification = t.SetTraceNotification = t.TraceFormat = t.Trace = t.NullLogger = t.ProgressType = void 0; + const r = n(147), + o = n(7574), + i = n(839), + s = n(6184), + a = n(7135), + c = n(3881); + var u, l, d, p, h, m, f, g, y, _, v, b, k; + ! function(e) { + e.type = new i.NotificationType("$/cancelRequest") + }(u || (u = {})), + function(e) { + e.type = new i.NotificationType("$/progress") + }(l || (l = {})), t.ProgressType = class { + constructor() {} + }, + function(e) { + e.is = function(e) { + return o.func(e) + } + }(d || (d = {})), t.NullLogger = Object.freeze({ + error: () => {}, + warn: () => {}, + info: () => {}, + log: () => {} + }), + function(e) { + e[e.Off = 0] = "Off", e[e.Messages = 1] = "Messages", e[e.Verbose = 2] = "Verbose" + }(p = t.Trace || (t.Trace = {})), + function(e) { + e.fromString = function(t) { + if (!o.string(t)) return e.Off; + switch (t = t.toLowerCase()) { + default: + return e.Off; + case "messages": + return e.Messages; + case "verbose": + return e.Verbose + } + }, e.toString = function(t) { + //my edits + switch (t) { + case e.Off: + // return "off"; + return "verbose"; + case e.Messages: + // return "messages"; + return "verbose"; + case e.Verbose: + return "verbose"; + default: + return "verbose"; + // return "off" + } + } + }(p = t.Trace || (t.Trace = {})), + function(e) { + e.Text = "text", e.JSON = "json" + }(t.TraceFormat || (t.TraceFormat = {})), + function(e) { + e.fromString = function(t) { + return "json" === (t = t.toLowerCase()) ? e.JSON : e.Text + } + }(h = t.TraceFormat || (t.TraceFormat = {})), + function(e) { + e.type = new i.NotificationType("$/setTrace") + }(m = t.SetTraceNotification || (t.SetTraceNotification = {})), + function(e) { + e.type = new i.NotificationType("$/logTrace") + }(f = t.LogTraceNotification || (t.LogTraceNotification = {})), + function(e) { + e[e.Closed = 1] = "Closed", e[e.Disposed = 2] = "Disposed", e[e.AlreadyListening = 3] = "AlreadyListening" + }(g = t.ConnectionErrors || (t.ConnectionErrors = {})); + class w extends Error { + constructor(e, t) { + super(t), this.code = e, Object.setPrototypeOf(this, w.prototype) + } + } + t.ConnectionError = w, + function(e) { + e.is = function(e) { + const t = e; + return t && o.func(t.cancelUndispatched) + } + }(y = t.ConnectionStrategy || (t.ConnectionStrategy = {})), + function(e) { + e.Message = Object.freeze({ + createCancellationTokenSource: e => new c.CancellationTokenSource + }), e.is = function(e) { + const t = e; + return t && o.func(t.createCancellationTokenSource) + } + }(_ = t.CancellationReceiverStrategy || (t.CancellationReceiverStrategy = {})), + function(e) { + e.Message = Object.freeze({ + sendCancellation(e, t) { + e.sendNotification(u.type, { + id: t + }) + }, + cleanup(e) {} + }), e.is = function(e) { + const t = e; + return t && o.func(t.sendCancellation) && o.func(t.cleanup) + } + }(v = t.CancellationSenderStrategy || (t.CancellationSenderStrategy = {})), + function(e) { + e.Message = Object.freeze({ + receiver: _.Message, + sender: v.Message + }), e.is = function(e) { + const t = e; + return t && _.is(t.receiver) && v.is(t.sender) + } + }(b = t.CancellationStrategy || (t.CancellationStrategy = {})), (t.ConnectionOptions || (t.ConnectionOptions = {})).is = function(e) { + const t = e; + return t && (b.is(t.cancellationStrategy) || y.is(t.connectionStrategy)) + }, + function(e) { + e[e.New = 1] = "New", e[e.Listening = 2] = "Listening", e[e.Closed = 3] = "Closed", e[e.Disposed = 4] = "Disposed" + }(k || (k = {})), t.createMessageConnection = function(e, n, y, _) { + const v = void 0 !== y ? y : t.NullLogger; + let j = 0, + x = 0, + E = 0; + const C = "2.0"; + let S; + const T = Object.create(null); + let P; + const I = Object.create(null), + R = new Map; + let O, A, N = new s.LinkedMap, + D = Object.create(null), + M = Object.create(null), + q = p.Off, + L = h.Text, + $ = k.New; + const F = new a.Emitter, + z = new a.Emitter, + B = new a.Emitter, + U = new a.Emitter, + H = new a.Emitter, + W = _ && _.cancellationStrategy ? _.cancellationStrategy : b.Message; + + function G(e) { + if (null === e) throw new Error("Can't send requests with id null since the response can't be correlated."); + return "req-" + e.toString() + } + + function V(e) {} + + function K() { + return $ === k.Listening + } + + function J() { + return $ === k.Closed + } + + function X() { + return $ === k.Disposed + } + + function Y() { + $ !== k.New && $ !== k.Listening || ($ = k.Closed, z.fire(void 0)) + } + + function Q() { + O || 0 === N.size || (O = r.default().timer.setImmediate((() => { + O = void 0, + function() { + if (0 === N.size) return; + const e = N.shift(); + try { + i.isRequestMessage(e) ? function(e) { + if (X()) return; + + function t(t, r, o) { + const s = { + jsonrpc: C, + id: e.id + }; + t instanceof i.ResponseError ? s.error = t.toJson() : s.result = void 0 === t ? null : t, ee(s, r, o), n.write(s) + } + + function r(t, r, o) { + const i = { + jsonrpc: C, + id: e.id, + error: t.toJson() + }; + ee(i, r, o), n.write(i) + }! function(e) { + if (q !== p.Off && A) + if (L === h.Text) { + let t; + q === p.Verbose && e.params && (t = `Params: ${JSON.stringify(e.params,null,4)}\n\n`), A.log(`Received request '${e.method} - (${e.id})'.`, t) + } else te("receive-request", e) + }(e); + const s = T[e.method]; + let a, c; + s && (a = s.type, c = s.handler); + const u = Date.now(); + if (c || S) { + const s = String(e.id), + l = W.receiver.createCancellationTokenSource(s); + M[s] = l; + try { + let d; + if (c) + if (void 0 === e.params) { + if (void 0 !== a && 0 !== a.numberOfParams) return void r(new i.ResponseError(i.ErrorCodes.InvalidParams, `Request ${e.method} defines ${a.numberOfParams} params but recevied none.`), e.method, u); + d = c(l.token) + } else if (Array.isArray(e.params)) { + if (void 0 !== a && a.parameterStructures === i.ParameterStructures.byName) return void r(new i.ResponseError(i.ErrorCodes.InvalidParams, `Request ${e.method} defines parameters by name but received parameters by position`), e.method, u); + d = c(...e.params, l.token) + } else { + if (void 0 !== a && a.parameterStructures === i.ParameterStructures.byPosition) return void r(new i.ResponseError(i.ErrorCodes.InvalidParams, `Request ${e.method} defines parameters by position but received parameters by name`), e.method, u); + d = c(e.params, l.token) + } else S && (d = S(e.method, e.params, l.token)); + const p = d; + d ? p.then ? p.then((n => { + delete M[s], t(n, e.method, u) + }), (t => { + delete M[s], t instanceof i.ResponseError ? r(t, e.method, u) : t && o.string(t.message) ? r(new i.ResponseError(i.ErrorCodes.InternalError, `Request ${e.method} failed with message: ${t.message}`), e.method, u) : r(new i.ResponseError(i.ErrorCodes.InternalError, `Request ${e.method} failed unexpectedly without providing any details.`), e.method, u) + })) : (delete M[s], t(d, e.method, u)) : (delete M[s], function(t, r, o) { + void 0 === t && (t = null); + const i = { + jsonrpc: C, + id: e.id, + result: t + }; + ee(i, r, o), n.write(i) + }(d, e.method, u)) + } catch (n) { + delete M[s], n instanceof i.ResponseError ? t(n, e.method, u) : n && o.string(n.message) ? r(new i.ResponseError(i.ErrorCodes.InternalError, `Request ${e.method} failed with message: ${n.message}`), e.method, u) : r(new i.ResponseError(i.ErrorCodes.InternalError, `Request ${e.method} failed unexpectedly without providing any details.`), e.method, u) + } + } else r(new i.ResponseError(i.ErrorCodes.MethodNotFound, `Unhandled method ${e.method}`), e.method, u) + }(e) : i.isNotificationMessage(e) ? function(e) { + if (X()) return; + let t, n; + if (e.method === u.type.method) n = e => { + const t = e.id, + n = M[String(t)]; + n && n.cancel() + }; + else { + const r = I[e.method]; + r && (n = r.handler, t = r.type) + } + if (n || P) try { + ! function(e) { + if (q !== p.Off && A && e.method !== f.type.method) + if (L === h.Text) { + let t; + q === p.Verbose && (t = e.params ? `Params: ${JSON.stringify(e.params,null,4)}\n\n` : "No parameters provided.\n\n"), A.log(`Received notification '${e.method}'.`, t) + } else te("receive-notification", e) + }(e), n ? void 0 === e.params ? (void 0 !== t && 0 !== t.numberOfParams && t.parameterStructures !== i.ParameterStructures.byName && v.error(`Notification ${e.method} defines ${t.numberOfParams} params but recevied none.`), n()) : Array.isArray(e.params) ? (void 0 !== t && (t.parameterStructures === i.ParameterStructures.byName && v.error(`Notification ${e.method} defines parameters by name but received parameters by position`), t.numberOfParams !== e.params.length && v.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${e.params.length} argumennts`)), n(...e.params)) : (void 0 !== t && t.parameterStructures === i.ParameterStructures.byPosition && v.error(`Notification ${e.method} defines parameters by position but received parameters by name`), n(e.params)) : P && P(e.method, e.params) + } catch (t) { + t.message ? v.error(`Notification handler '${e.method}' failed with message: ${t.message}`) : v.error(`Notification handler '${e.method}' failed unexpectedly.`) + } else B.fire(e) + }(e) : i.isResponseMessage(e) ? function(e) { + if (!X()) + if (null === e.id) e.error ? v.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`) : v.error("Received response message without id. No further error information provided."); + else { + const t = String(e.id), + n = D[t]; + if (function(e, t) { + if (q !== p.Off && A) + if (L === h.Text) { + let n; + if (q === p.Verbose && (e.error && e.error.data ? n = `Error data: ${JSON.stringify(e.error.data,null,4)}\n\n` : e.result ? n = `Result: ${JSON.stringify(e.result,null,4)}\n\n` : void 0 === e.error && (n = "No result returned.\n\n")), t) { + const r = e.error ? ` Request failed: ${e.error.message} (${e.error.code}).` : ""; + A.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${r}`, n) + } else A.log(`Received response ${e.id} without active response promise.`, n) + } else te("receive-response", e) + }(e, n), n) { + delete D[t]; + try { + if (e.error) { + const t = e.error; + n.reject(new i.ResponseError(t.code, t.message, t.data)) + } else { + if (void 0 === e.result) throw new Error("Should never happen."); + n.resolve(e.result) + } + } catch (e) { + e.message ? v.error(`Response handler '${n.method}' failed with message: ${e.message}`) : v.error(`Response handler '${n.method}' failed unexpectedly.`) + } + } + } + }(e) : function(e) { + if (!e) return void v.error("Received empty message."); + v.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`); + const t = e; + if (o.string(t.id) || o.number(t.id)) { + const e = String(t.id), + n = D[e]; + n && n.reject(new Error("The received response has neither a result nor an error property.")) + } + }(e) + } finally { + Q() + } + }() + }))) + } + e.onClose(Y), e.onError((function(e) { + F.fire([e, void 0, void 0]) + })), n.onClose(Y), n.onError((function(e) { + F.fire(e) + })); + const Z = e => { + try { + if (i.isNotificationMessage(e) && e.method === u.type.method) { + const t = G(e.params.id), + r = N.get(t); + if (i.isRequestMessage(r)) { + const o = null == _ ? void 0 : _.connectionStrategy, + i = o && o.cancelUndispatched ? o.cancelUndispatched(r, V) : void 0; + if (i && (void 0 !== i.error || void 0 !== i.result)) return N.delete(t), i.id = r.id, ee(i, e.method, Date.now()), void n.write(i) + } + }! function(e, t) { + var n; + i.isRequestMessage(t) ? e.set(G(t.id), t) : i.isResponseMessage(t) ? e.set(null === (n = t.id) ? "res-unknown-" + (++E).toString() : "res-" + n.toString(), t) : e.set("not-" + (++x).toString(), t) + }(N, e) + } finally { + Q() + } + }; + + function ee(e, t, n) { + if (q !== p.Off && A) + if (L === h.Text) { + let r; + q === p.Verbose && (e.error && e.error.data ? r = `Error data: ${JSON.stringify(e.error.data,null,4)}\n\n` : e.result ? r = `Result: ${JSON.stringify(e.result,null,4)}\n\n` : void 0 === e.error && (r = "No result returned.\n\n")), A.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`, r) + } else te("send-response", e) + } + + function te(e, t) { + if (!A || q === p.Off) return; + const n = { + isLSPMessage: !0, + type: e, + message: t, + timestamp: Date.now() + }; + A.log(n) + } + + function ne() { + if (J()) throw new w(g.Closed, "Connection is closed."); + if (X()) throw new w(g.Disposed, "Connection is disposed.") + } + + function re(e) { + return void 0 === e ? null : e + } + + function oe(e) { + return null === e ? void 0 : e + } + + function ie(e) { + return null != e && !Array.isArray(e) && "object" == typeof e + } + + function se(e, t) { + switch (e) { + case i.ParameterStructures.auto: + return ie(t) ? oe(t) : [re(t)]; + case i.ParameterStructures.byName: + if (!ie(t)) throw new Error("Recevied parameters by name but param is not an object literal."); + return oe(t); + case i.ParameterStructures.byPosition: + return [re(t)]; + default: + throw new Error(`Unknown parameter structure ${e.toString()}`) + } + } + + function ae(e, t) { + let n; + const r = e.numberOfParams; + switch (r) { + case 0: + n = void 0; + break; + case 1: + n = se(e.parameterStructures, t[0]); + break; + default: + n = []; + for (let e = 0; e < t.length && e < r; e++) n.push(re(t[e])); + if (t.length < r) + for (let e = t.length; e < r; e++) n.push(null) + } + return n + } + const ce = { + sendNotification: (e, ...t) => { + let r, s; + if (ne(), o.string(e)) { + r = e; + const n = t[0]; + let o = 0, + a = i.ParameterStructures.auto; + i.ParameterStructures.is(n) && (o = 1, a = n); + let c = t.length; + const u = c - o; + switch (u) { + case 0: + s = void 0; + break; + case 1: + s = se(a, t[o]); + break; + default: + if (a === i.ParameterStructures.byName) throw new Error(`Recevied ${u} parameters for 'by Name' notification parameter structure.`); + s = t.slice(o, c).map((e => re(e))) + } + } else { + const n = t; + r = e.method, s = ae(e, n) + } + const a = { + jsonrpc: C, + method: r, + params: s + }; + ! function(e) { + if (q !== p.Off && A) + if (L === h.Text) { + let t; + q === p.Verbose && (t = e.params ? `Params: ${JSON.stringify(e.params,null,4)}\n\n` : "No parameters provided.\n\n"), A.log(`Sending notification '${e.method}'.`, t) + } else te("send-notification", e) + }(a), n.write(a) + }, + onNotification: (e, t) => { + let n; + return ne(), o.func(e) ? P = e : t && (o.string(e) ? (n = e, I[e] = { + type: void 0, + handler: t + }) : (n = e.method, I[e.method] = { + type: e, + handler: t + })), { + dispose: () => { + void 0 !== n ? delete I[n] : P = void 0 + } + } + }, + onProgress: (e, t, n) => { + if (R.has(t)) throw new Error(`Progress handler for token ${t} already registered`); + return R.set(t, n), { + dispose: () => { + R.delete(t) + } + } + }, + sendProgress: (e, t, n) => { + ce.sendNotification(l.type, { + token: t, + value: n + }) + }, + onUnhandledProgress: U.event, + sendRequest: (e, ...t) => { + let r, s, a; + if (ne(), function() { + if (!K()) throw new Error("Call listen() first.") + }(), o.string(e)) { + r = e; + const n = t[0], + o = t[t.length - 1]; + let u = 0, + l = i.ParameterStructures.auto; + i.ParameterStructures.is(n) && (u = 1, l = n); + let d = t.length; + c.CancellationToken.is(o) && (d -= 1, a = o); + const p = d - u; + switch (p) { + case 0: + s = void 0; + break; + case 1: + s = se(l, t[u]); + break; + default: + if (l === i.ParameterStructures.byName) throw new Error(`Recevied ${p} parameters for 'by Name' request parameter structure.`); + s = t.slice(u, d).map((e => re(e))) + } + } else { + const n = t; + r = e.method, s = ae(e, n); + const o = e.numberOfParams; + a = c.CancellationToken.is(n[o]) ? n[o] : void 0 + } + const u = j++; + let l; + return a && (l = a.onCancellationRequested((() => { + W.sender.sendCancellation(ce, u) + }))), new Promise(((e, t) => { + const o = { + jsonrpc: C, + id: u, + method: r, + params: s + }; + let a = { + method: r, + timerStart: Date.now(), + resolve: t => { + e(t), W.sender.cleanup(u), null == l || l.dispose() + }, + reject: e => { + t(e), W.sender.cleanup(u), null == l || l.dispose() + } + }; + ! function(e) { + if (q !== p.Off && A) + if (L === h.Text) { + let t; + q === p.Verbose && e.params && (t = `Params: ${JSON.stringify(e.params,null,4)}\n\n`), A.log(`Sending request '${e.method} - (${e.id})'.`, t) + } else te("send-request", e) + }(o); + try { + n.write(o) + } catch (e) { + a.reject(new i.ResponseError(i.ErrorCodes.MessageWriteError, e.message ? e.message : "Unknown reason")), a = null + } + a && (D[String(u)] = a) + })) + }, + onRequest: (e, t) => { + ne(); + let n = null; + return d.is(e) ? (n = void 0, S = e) : o.string(e) ? (n = null, void 0 !== t && (n = e, T[e] = { + handler: t, + type: void 0 + })) : void 0 !== t && (n = e.method, T[e.method] = { + type: e, + handler: t + }), { + dispose: () => { + null !== n && (void 0 !== n ? delete T[n] : S = void 0) + } + } + }, + trace: (e, t, n) => { + let r = !1, + i = h.Text; + void 0 !== n && (o.boolean(n) ? r = n : (r = n.sendNotification || !1, i = n.traceFormat || h.Text)), q = e, L = i, A = q === p.Off ? void 0 : t, !r || J() || X() || ce.sendNotification(m.type, { + value: p.toString(e) + }) + }, + onError: F.event, + onClose: z.event, + onUnhandledNotification: B.event, + onDispose: H.event, + end: () => { + n.end() + }, + dispose: () => { + if (X()) return; + $ = k.Disposed, H.fire(void 0); + const t = new Error("Connection got disposed."); + Object.keys(D).forEach((e => { + D[e].reject(t) + })), D = Object.create(null), M = Object.create(null), N = new s.LinkedMap, o.func(n.dispose) && n.dispose(), o.func(e.dispose) && e.dispose() + }, + listen: () => { + ne(), + function() { + if (K()) throw new w(g.AlreadyListening, "Connection is already listening") + }(), $ = k.Listening, e.listen(Z) + }, + inspect: () => { + r.default().console.log("inspect") + } + }; + return ce.onNotification(f.type, (e => { + q !== p.Off && A && A.log(e.message, q === p.Verbose ? e.verbose : void 0) + })), ce.onNotification(l.type, (e => { + const t = R.get(e.token); + t ? t(e.value) : U.fire(e) + })), ce + } + }, + 3911: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.Disposable = void 0, (t.Disposable || (t.Disposable = {})).create = function(e) { + return { + dispose: e + } + } + }, + 7135: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.Emitter = t.Event = void 0; + const r = n(147); + ! function(e) { + const t = { + dispose() {} + }; + e.None = function() { + return t + } + }(t.Event || (t.Event = {})); + class o { + add(e, t = null, n) { + this._callbacks || (this._callbacks = [], this._contexts = []), this._callbacks.push(e), this._contexts.push(t), Array.isArray(n) && n.push({ + dispose: () => this.remove(e, t) + }) + } + remove(e, t = null) { + if (!this._callbacks) return; + let n = !1; + for (let r = 0, o = this._callbacks.length; r < o; r++) + if (this._callbacks[r] === e) { + if (this._contexts[r] === t) return this._callbacks.splice(r, 1), void this._contexts.splice(r, 1); + n = !0 + } if (n) throw new Error("When adding a listener with a context, you should remove it with the same context") + } + invoke(...e) { + if (!this._callbacks) return []; + const t = [], + n = this._callbacks.slice(0), + o = this._contexts.slice(0); + for (let i = 0, s = n.length; i < s; i++) try { + t.push(n[i].apply(o[i], e)) + } catch (e) { + r.default().console.error(e) + } + return t + } + isEmpty() { + return !this._callbacks || 0 === this._callbacks.length + } + dispose() { + this._callbacks = void 0, this._contexts = void 0 + } + } + class i { + constructor(e) { + this._options = e + } + get event() { + return this._event || (this._event = (e, t, n) => { + this._callbacks || (this._callbacks = new o), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(e, t); + const r = { + dispose: () => { + this._callbacks && (this._callbacks.remove(e, t), r.dispose = i._noop, this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty() && this._options.onLastListenerRemove(this)) + } + }; + return Array.isArray(n) && n.push(r), r + }), this._event + } + fire(e) { + this._callbacks && this._callbacks.invoke.call(this._callbacks, e) + } + dispose() { + this._callbacks && (this._callbacks.dispose(), this._callbacks = void 0) + } + } + t.Emitter = i, i._noop = function() {} + }, + 7574: (e, t) => { + "use strict"; + + function n(e) { + return "string" == typeof e || e instanceof String + } + + function r(e) { + return Array.isArray(e) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.stringArray = t.array = t.func = t.error = t.number = t.string = t.boolean = void 0, t.boolean = function(e) { + return !0 === e || !1 === e + }, t.string = n, t.number = function(e) { + return "number" == typeof e || e instanceof Number + }, t.error = function(e) { + return e instanceof Error + }, t.func = function(e) { + return "function" == typeof e + }, t.array = r, t.stringArray = function(e) { + return r(e) && e.every((e => n(e))) + } + }, + 6184: (e, t) => { + "use strict"; + var n; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.LRUCache = t.LinkedMap = t.Touch = void 0, + function(e) { + e.None = 0, e.First = 1, e.AsOld = e.First, e.Last = 2, e.AsNew = e.Last + }(n = t.Touch || (t.Touch = {})); + class r { + constructor() { + this[Symbol.toStringTag] = "LinkedMap", this._map = new Map, this._head = void 0, this._tail = void 0, this._size = 0, this._state = 0 + } + clear() { + this._map.clear(), this._head = void 0, this._tail = void 0, this._size = 0, this._state++ + } + isEmpty() { + return !this._head && !this._tail + } + get size() { + return this._size + } + get first() { + var e; + return null === (e = this._head) || void 0 === e ? void 0 : e.value + } + get last() { + var e; + return null === (e = this._tail) || void 0 === e ? void 0 : e.value + } + has(e) { + return this._map.has(e) + } + get(e, t = n.None) { + const r = this._map.get(e); + if (r) return t !== n.None && this.touch(r, t), r.value + } + set(e, t, r = n.None) { + let o = this._map.get(e); + if (o) o.value = t, r !== n.None && this.touch(o, r); + else { + switch (o = { + key: e, + value: t, + next: void 0, + previous: void 0 + }, r) { + case n.None: + this.addItemLast(o); + break; + case n.First: + this.addItemFirst(o); + break; + case n.Last: + default: + this.addItemLast(o) + } + this._map.set(e, o), this._size++ + } + return this + } + delete(e) { + return !!this.remove(e) + } + remove(e) { + const t = this._map.get(e); + if (t) return this._map.delete(e), this.removeItem(t), this._size--, t.value + } + shift() { + if (!this._head && !this._tail) return; + if (!this._head || !this._tail) throw new Error("Invalid list"); + const e = this._head; + return this._map.delete(e.key), this.removeItem(e), this._size--, e.value + } + forEach(e, t) { + const n = this._state; + let r = this._head; + for (; r;) { + if (t ? e.bind(t)(r.value, r.key, this) : e(r.value, r.key, this), this._state !== n) throw new Error("LinkedMap got modified during iteration."); + r = r.next + } + } + keys() { + const e = this, + t = this._state; + let n = this._head; + const r = { + [Symbol.iterator]: () => r, + next() { + if (e._state !== t) throw new Error("LinkedMap got modified during iteration."); + if (n) { + const e = { + value: n.key, + done: !1 + }; + return n = n.next, e + } + return { + value: void 0, + done: !0 + } + } + }; + return r + } + values() { + const e = this, + t = this._state; + let n = this._head; + const r = { + [Symbol.iterator]: () => r, + next() { + if (e._state !== t) throw new Error("LinkedMap got modified during iteration."); + if (n) { + const e = { + value: n.value, + done: !1 + }; + return n = n.next, e + } + return { + value: void 0, + done: !0 + } + } + }; + return r + } + entries() { + const e = this, + t = this._state; + let n = this._head; + const r = { + [Symbol.iterator]: () => r, + next() { + if (e._state !== t) throw new Error("LinkedMap got modified during iteration."); + if (n) { + const e = { + value: [n.key, n.value], + done: !1 + }; + return n = n.next, e + } + return { + value: void 0, + done: !0 + } + } + }; + return r + } [Symbol.iterator]() { + return this.entries() + } + trimOld(e) { + if (e >= this.size) return; + if (0 === e) return void this.clear(); + let t = this._head, + n = this.size; + for (; t && n > e;) this._map.delete(t.key), t = t.next, n--; + this._head = t, this._size = n, t && (t.previous = void 0), this._state++ + } + addItemFirst(e) { + if (this._head || this._tail) { + if (!this._head) throw new Error("Invalid list"); + e.next = this._head, this._head.previous = e + } else this._tail = e; + this._head = e, this._state++ + } + addItemLast(e) { + if (this._head || this._tail) { + if (!this._tail) throw new Error("Invalid list"); + e.previous = this._tail, this._tail.next = e + } else this._head = e; + this._tail = e, this._state++ + } + removeItem(e) { + if (e === this._head && e === this._tail) this._head = void 0, this._tail = void 0; + else if (e === this._head) { + if (!e.next) throw new Error("Invalid list"); + e.next.previous = void 0, this._head = e.next + } else if (e === this._tail) { + if (!e.previous) throw new Error("Invalid list"); + e.previous.next = void 0, this._tail = e.previous + } else { + const t = e.next, + n = e.previous; + if (!t || !n) throw new Error("Invalid list"); + t.previous = n, n.next = t + } + e.next = void 0, e.previous = void 0, this._state++ + } + touch(e, t) { + if (!this._head || !this._tail) throw new Error("Invalid list"); + if (t === n.First || t === n.Last) + if (t === n.First) { + if (e === this._head) return; + const t = e.next, + n = e.previous; + e === this._tail ? (n.next = void 0, this._tail = n) : (t.previous = n, n.next = t), e.previous = void 0, e.next = this._head, this._head.previous = e, this._head = e, this._state++ + } else if (t === n.Last) { + if (e === this._tail) return; + const t = e.next, + n = e.previous; + e === this._head ? (t.previous = void 0, this._head = t) : (t.previous = n, n.next = t), e.next = void 0, e.previous = this._tail, this._tail.next = e, this._tail = e, this._state++ + } + } + toJSON() { + const e = []; + return this.forEach(((t, n) => { + e.push([n, t]) + })), e + } + fromJSON(e) { + this.clear(); + for (const [t, n] of e) this.set(t, n) + } + } + t.LinkedMap = r, t.LRUCache = class extends r { + constructor(e, t = 1) { + super(), this._limit = e, this._ratio = Math.min(Math.max(0, t), 1) + } + get limit() { + return this._limit + } + set limit(e) { + this._limit = e, this.checkTrim() + } + get ratio() { + return this._ratio + } + set ratio(e) { + this._ratio = Math.min(Math.max(0, e), 1), this.checkTrim() + } + get(e, t = n.AsNew) { + return super.get(e, t) + } + peek(e) { + return super.get(e, n.None) + } + set(e, t) { + return super.set(e, t, n.Last), this.checkTrim(), this + } + checkTrim() { + this.size > this._limit && this.trimOld(Math.round(this._limit * this._ratio)) + } + } + }, + 5530: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.AbstractMessageBuffer = void 0, t.AbstractMessageBuffer = class { + constructor(e = "utf-8") { + this._encoding = e, this._chunks = [], this._totalLength = 0 + } + get encoding() { + return this._encoding + } + append(e) { + const t = "string" == typeof e ? this.fromString(e, this._encoding) : e; + this._chunks.push(t), this._totalLength += t.byteLength + } + tryReadHeaders() { + if (0 === this._chunks.length) return; + let e = 0, + t = 0, + n = 0, + r = 0; + e: for (; t < this._chunks.length;) { + const o = this._chunks[t]; + for (n = 0; n < o.length;) { + switch (o[n]) { + case 13: + switch (e) { + case 0: + e = 1; + break; + case 2: + e = 3; + break; + default: + e = 0 + } + break; + case 10: + switch (e) { + case 1: + e = 2; + break; + case 3: + e = 4, n++; + break e; + default: + e = 0 + } + break; + default: + e = 0 + } + n++ + } + r += o.byteLength, t++ + } + if (4 !== e) return; + const o = this._read(r + n), + i = new Map, + s = this.toString(o, "ascii").split("\r\n"); + if (s.length < 2) return i; + for (let e = 0; e < s.length - 2; e++) { + const t = s[e], + n = t.indexOf(":"); + if (-1 === n) throw new Error("Message header must separate key and value using :"); + const r = t.substr(0, n), + o = t.substr(n + 1).trim(); + i.set(r, o) + } + return i + } + tryReadBody(e) { + if (!(this._totalLength < e)) return this._read(e) + } + get numberOfBytes() { + return this._totalLength + } + _read(e) { + if (0 === e) return this.emptyBuffer(); + if (e > this._totalLength) throw new Error("Cannot read so many bytes!"); + if (this._chunks[0].byteLength === e) { + const t = this._chunks[0]; + return this._chunks.shift(), this._totalLength -= e, this.asNative(t) + } + if (this._chunks[0].byteLength > e) { + const t = this._chunks[0], + n = this.asNative(t, e); + return this._chunks[0] = t.slice(e), this._totalLength -= e, n + } + const t = this.allocNative(e); + let n = 0; + for (; e > 0;) { + const r = this._chunks[0]; + if (r.byteLength > e) { + const o = r.slice(0, e); + t.set(o, n), n += e, this._chunks[0] = r.slice(e), this._totalLength -= e, e -= e + } else t.set(r, n), n += r.byteLength, this._chunks.shift(), this._totalLength -= r.byteLength, e -= r.byteLength + } + return t + } + } + }, + 6525: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ReadableStreamMessageReader = t.AbstractMessageReader = t.MessageReader = void 0; + const r = n(147), + o = n(7574), + i = n(7135); + var s; + (t.MessageReader || (t.MessageReader = {})).is = function(e) { + let t = e; + return t && o.func(t.listen) && o.func(t.dispose) && o.func(t.onError) && o.func(t.onClose) && o.func(t.onPartialMessage) + }; + class a { + constructor() { + this.errorEmitter = new i.Emitter, this.closeEmitter = new i.Emitter, this.partialMessageEmitter = new i.Emitter + } + dispose() { + this.errorEmitter.dispose(), this.closeEmitter.dispose() + } + get onError() { + return this.errorEmitter.event + } + fireError(e) { + this.errorEmitter.fire(this.asError(e)) + } + get onClose() { + return this.closeEmitter.event + } + fireClose() { + this.closeEmitter.fire(void 0) + } + get onPartialMessage() { + return this.partialMessageEmitter.event + } + firePartialMessage(e) { + this.partialMessageEmitter.fire(e) + } + asError(e) { + return e instanceof Error ? e : new Error(`Reader received error. Reason: ${o.string(e.message)?e.message:"unknown"}`) + } + } + t.AbstractMessageReader = a, + function(e) { + e.fromOptions = function(e) { + var t; + let n, o; + const i = new Map; + let s; + const a = new Map; + if (void 0 === e || "string" == typeof e) n = null != e ? e : "utf-8"; + else { + if (n = null !== (t = e.charset) && void 0 !== t ? t : "utf-8", void 0 !== e.contentDecoder && (o = e.contentDecoder, i.set(o.name, o)), void 0 !== e.contentDecoders) + for (const t of e.contentDecoders) i.set(t.name, t); + if (void 0 !== e.contentTypeDecoder && (s = e.contentTypeDecoder, a.set(s.name, s)), void 0 !== e.contentTypeDecoders) + for (const t of e.contentTypeDecoders) a.set(t.name, t) + } + return void 0 === s && (s = r.default().applicationJson.decoder, a.set(s.name, s)), { + charset: n, + contentDecoder: o, + contentDecoders: i, + contentTypeDecoder: s, + contentTypeDecoders: a + } + } + }(s || (s = {})), t.ReadableStreamMessageReader = class extends a { + constructor(e, t) { + super(), this.readable = e, this.options = s.fromOptions(t), this.buffer = r.default().messageBuffer.create(this.options.charset), this._partialMessageTimeout = 1e4, this.nextMessageLength = -1, this.messageToken = 0 + } + set partialMessageTimeout(e) { + this._partialMessageTimeout = e + } + get partialMessageTimeout() { + return this._partialMessageTimeout + } + listen(e) { + this.nextMessageLength = -1, this.messageToken = 0, this.partialMessageTimer = void 0, this.callback = e; + const t = this.readable.onData((e => { + this.onData(e) + })); + return this.readable.onError((e => this.fireError(e))), this.readable.onClose((() => this.fireClose())), t + } + onData(e) { + for (this.buffer.append(e);;) { + if (-1 === this.nextMessageLength) { + const e = this.buffer.tryReadHeaders(); + if (!e) return; + const t = e.get("Content-Length"); + if (!t) throw new Error("Header must provide a Content-Length property."); + const n = parseInt(t); + if (isNaN(n)) throw new Error("Content-Length value must be a number."); + this.nextMessageLength = n + } + const e = this.buffer.tryReadBody(this.nextMessageLength); + if (void 0 === e) return void this.setPartialMessageTimer(); + let t; + this.clearPartialMessageTimer(), this.nextMessageLength = -1, t = void 0 !== this.options.contentDecoder ? this.options.contentDecoder.decode(e) : Promise.resolve(e), t.then((e => { + this.options.contentTypeDecoder.decode(e, this.options).then((e => { + this.callback(e) + }), (e => { + this.fireError(e) + })) + }), (e => { + this.fireError(e) + })) + } + } + clearPartialMessageTimer() { + this.partialMessageTimer && (r.default().timer.clearTimeout(this.partialMessageTimer), this.partialMessageTimer = void 0) + } + setPartialMessageTimer() { + this.clearPartialMessageTimer(), this._partialMessageTimeout <= 0 || (this.partialMessageTimer = r.default().timer.setTimeout(((e, t) => { + this.partialMessageTimer = void 0, e === this.messageToken && (this.firePartialMessage({ + messageToken: e, + waitingTime: t + }), this.setPartialMessageTimer()) + }), this._partialMessageTimeout, this.messageToken, this._partialMessageTimeout)) + } + } + }, + 6654: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.WriteableStreamMessageWriter = t.AbstractMessageWriter = t.MessageWriter = void 0; + const r = n(147), + o = n(7574), + i = n(142), + s = n(7135); + var a; + (t.MessageWriter || (t.MessageWriter = {})).is = function(e) { + let t = e; + return t && o.func(t.dispose) && o.func(t.onClose) && o.func(t.onError) && o.func(t.write) + }; + class c { + constructor() { + this.errorEmitter = new s.Emitter, this.closeEmitter = new s.Emitter + } + dispose() { + this.errorEmitter.dispose(), this.closeEmitter.dispose() + } + get onError() { + return this.errorEmitter.event + } + fireError(e, t, n) { + this.errorEmitter.fire([this.asError(e), t, n]) + } + get onClose() { + return this.closeEmitter.event + } + fireClose() { + this.closeEmitter.fire(void 0) + } + asError(e) { + return e instanceof Error ? e : new Error(`Writer received error. Reason: ${o.string(e.message)?e.message:"unknown"}`) + } + } + t.AbstractMessageWriter = c, + function(e) { + e.fromOptions = function(e) { + var t, n; + return void 0 === e || "string" == typeof e ? { + charset: null != e ? e : "utf-8", + contentTypeEncoder: r.default().applicationJson.encoder + } : { + charset: null !== (t = e.charset) && void 0 !== t ? t : "utf-8", + contentEncoder: e.contentEncoder, + contentTypeEncoder: null !== (n = e.contentTypeEncoder) && void 0 !== n ? n : r.default().applicationJson.encoder + } + } + }(a || (a = {})), t.WriteableStreamMessageWriter = class extends c { + constructor(e, t) { + super(), this.writable = e, this.options = a.fromOptions(t), this.errorCount = 0, this.writeSemaphore = new i.Semaphore(1), this.writable.onError((e => this.fireError(e))), this.writable.onClose((() => this.fireClose())) + } + async write(e) { + return this.writeSemaphore.lock((async () => this.options.contentTypeEncoder.encode(e, this.options).then((e => void 0 !== this.options.contentEncoder ? this.options.contentEncoder.encode(e) : e)).then((t => { + const n = []; + return n.push("Content-Length: ", t.byteLength.toString(), "\r\n"), n.push("\r\n"), this.doWrite(e, n, t) + }), (e => { + throw this.fireError(e), e + })))) + } + async doWrite(e, t, n) { + try { + return await this.writable.write(t.join(""), "ascii"), this.writable.write(n) + } catch (t) { + return this.handleError(t, e), Promise.reject(t) + } + } + handleError(e, t) { + this.errorCount++, this.fireError(e, t, this.errorCount) + } + end() { + this.writable.end() + } + } + }, + 839: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.isResponseMessage = t.isNotificationMessage = t.isRequestMessage = t.NotificationType9 = t.NotificationType8 = t.NotificationType7 = t.NotificationType6 = t.NotificationType5 = t.NotificationType4 = t.NotificationType3 = t.NotificationType2 = t.NotificationType1 = t.NotificationType0 = t.NotificationType = t.RequestType9 = t.RequestType8 = t.RequestType7 = t.RequestType6 = t.RequestType5 = t.RequestType4 = t.RequestType3 = t.RequestType2 = t.RequestType1 = t.RequestType = t.RequestType0 = t.AbstractMessageSignature = t.ParameterStructures = t.ResponseError = t.ErrorCodes = void 0; + const r = n(7574); + var o; + ! function(e) { + e.ParseError = -32700, e.InvalidRequest = -32600, e.MethodNotFound = -32601, e.InvalidParams = -32602, e.InternalError = -32603, e.jsonrpcReservedErrorRangeStart = -32099, e.serverErrorStart = e.jsonrpcReservedErrorRangeStart, e.MessageWriteError = -32099, e.MessageReadError = -32098, e.ServerNotInitialized = -32002, e.UnknownErrorCode = -32001, e.jsonrpcReservedErrorRangeEnd = -32e3, e.serverErrorEnd = e.jsonrpcReservedErrorRangeEnd + }(o = t.ErrorCodes || (t.ErrorCodes = {})); + class i extends Error { + constructor(e, t, n) { + super(t), this.code = r.number(e) ? e : o.UnknownErrorCode, this.data = n, Object.setPrototypeOf(this, i.prototype) + } + toJson() { + return { + code: this.code, + message: this.message, + data: this.data + } + } + } + t.ResponseError = i; + class s { + constructor(e) { + this.kind = e + } + static is(e) { + return e === s.auto || e === s.byName || e === s.byPosition + } + toString() { + return this.kind + } + } + t.ParameterStructures = s, s.auto = new s("auto"), s.byPosition = new s("byPosition"), s.byName = new s("byName"); + class a { + constructor(e, t) { + this.method = e, this.numberOfParams = t + } + get parameterStructures() { + return s.auto + } + } + t.AbstractMessageSignature = a, t.RequestType0 = class extends a { + constructor(e) { + super(e, 0) + } + }, t.RequestType = class extends a { + constructor(e, t = s.auto) { + super(e, 1), this._parameterStructures = t + } + get parameterStructures() { + return this._parameterStructures + } + }, t.RequestType1 = class extends a { + constructor(e, t = s.auto) { + super(e, 1), this._parameterStructures = t + } + get parameterStructures() { + return this._parameterStructures + } + }, t.RequestType2 = class extends a { + constructor(e) { + super(e, 2) + } + }, t.RequestType3 = class extends a { + constructor(e) { + super(e, 3) + } + }, t.RequestType4 = class extends a { + constructor(e) { + super(e, 4) + } + }, t.RequestType5 = class extends a { + constructor(e) { + super(e, 5) + } + }, t.RequestType6 = class extends a { + constructor(e) { + super(e, 6) + } + }, t.RequestType7 = class extends a { + constructor(e) { + super(e, 7) + } + }, t.RequestType8 = class extends a { + constructor(e) { + super(e, 8) + } + }, t.RequestType9 = class extends a { + constructor(e) { + super(e, 9) + } + }, t.NotificationType = class extends a { + constructor(e, t = s.auto) { + super(e, 1), this._parameterStructures = t + } + get parameterStructures() { + return this._parameterStructures + } + }, t.NotificationType0 = class extends a { + constructor(e) { + super(e, 0) + } + }, t.NotificationType1 = class extends a { + constructor(e, t = s.auto) { + super(e, 1), this._parameterStructures = t + } + get parameterStructures() { + return this._parameterStructures + } + }, t.NotificationType2 = class extends a { + constructor(e) { + super(e, 2) + } + }, t.NotificationType3 = class extends a { + constructor(e) { + super(e, 3) + } + }, t.NotificationType4 = class extends a { + constructor(e) { + super(e, 4) + } + }, t.NotificationType5 = class extends a { + constructor(e) { + super(e, 5) + } + }, t.NotificationType6 = class extends a { + constructor(e) { + super(e, 6) + } + }, t.NotificationType7 = class extends a { + constructor(e) { + super(e, 7) + } + }, t.NotificationType8 = class extends a { + constructor(e) { + super(e, 8) + } + }, t.NotificationType9 = class extends a { + constructor(e) { + super(e, 9) + } + }, t.isRequestMessage = function(e) { + const t = e; + return t && r.string(t.method) && (r.string(t.id) || r.number(t.id)) + }, t.isNotificationMessage = function(e) { + const t = e; + return t && r.string(t.method) && void 0 === e.id + }, t.isResponseMessage = function(e) { + const t = e; + return t && (void 0 !== t.result || !!t.error) && (r.string(t.id) || r.number(t.id) || null === t.id) + } + }, + 147: (e, t) => { + "use strict"; + let n; + + function r() { + if (void 0 === n) throw new Error("No runtime abstraction layer installed"); + return n + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), + function(e) { + e.install = function(e) { + if (void 0 === e) throw new Error("No runtime abstraction layer provided"); + n = e + } + }(r || (r = {})), t.default = r + }, + 142: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.Semaphore = void 0; + const r = n(147); + t.Semaphore = class { + constructor(e = 1) { + if (e <= 0) throw new Error("Capacity must be greater than 0"); + this._capacity = e, this._active = 0, this._waiting = [] + } + lock(e) { + return new Promise(((t, n) => { + this._waiting.push({ + thunk: e, + resolve: t, + reject: n + }), this.runNext() + })) + } + get active() { + return this._active + } + runNext() { + 0 !== this._waiting.length && this._active !== this._capacity && r.default().timer.setImmediate((() => this.doRunNext())) + } + doRunNext() { + if (0 === this._waiting.length || this._active === this._capacity) return; + const e = this._waiting.shift(); + if (this._active++, this._active > this._capacity) throw new Error("To many thunks active"); + try { + const t = e.thunk(); + t instanceof Promise ? t.then((t => { + this._active--, e.resolve(t), this.runNext() + }), (t => { + this._active--, e.reject(t), this.runNext() + })) : (this._active--, e.resolve(t), this.runNext()) + } catch (t) { + this._active--, e.reject(t), this.runNext() + } + } + } + }, + 4389: function(e, t, n) { + "use strict"; + var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) { + void 0 === r && (r = n), Object.defineProperty(e, r, { + enumerable: !0, + get: function() { + return t[n] + } + }) + } : function(e, t, n, r) { + void 0 === r && (r = n), e[r] = t[n] + }), + o = this && this.__exportStar || function(e, t) { + for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n) + }; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.createMessageConnection = t.createServerSocketTransport = t.createClientSocketTransport = t.createServerPipeTransport = t.createClientPipeTransport = t.generateRandomPipeName = t.StreamMessageWriter = t.StreamMessageReader = t.SocketMessageWriter = t.SocketMessageReader = t.IPCMessageWriter = t.IPCMessageReader = void 0; + const i = n(3034); + i.default.install(); + const s = n(3870), + a = n(1017), + c = n(2037), + u = n(6113), + l = n(1808); + o(n(3870), t); + class d extends s.AbstractMessageReader { + constructor(e) { + super(), this.process = e; + let t = this.process; + t.on("error", (e => this.fireError(e))), t.on("close", (() => this.fireClose())) + } + listen(e) { + return this.process.on("message", e), s.Disposable.create((() => this.process.off("message", e))) + } + } + t.IPCMessageReader = d; + class p extends s.AbstractMessageWriter { + constructor(e) { + super(), this.process = e, this.errorCount = 0; + let t = this.process; + t.on("error", (e => this.fireError(e))), t.on("close", (() => this.fireClose)) + } + write(e) { + try { + return "function" == typeof this.process.send && this.process.send(e, void 0, void 0, (t => { + t ? (this.errorCount++, this.handleError(t, e)) : this.errorCount = 0 + })), Promise.resolve() + } catch (t) { + return this.handleError(t, e), Promise.reject(t) + } + } + handleError(e, t) { + this.errorCount++, this.fireError(e, t, this.errorCount) + } + end() {} + } + t.IPCMessageWriter = p; + class h extends s.ReadableStreamMessageReader { + constructor(e, t = "utf-8") { + super(i.default().stream.asReadableStream(e), t) + } + } + t.SocketMessageReader = h; + class m extends s.WriteableStreamMessageWriter { + constructor(e, t) { + super(i.default().stream.asWritableStream(e), t), this.socket = e + } + dispose() { + super.dispose(), this.socket.destroy() + } + } + t.SocketMessageWriter = m; + class f extends s.ReadableStreamMessageReader { + constructor(e, t) { + super(i.default().stream.asReadableStream(e), t) + } + } + t.StreamMessageReader = f; + class g extends s.WriteableStreamMessageWriter { + constructor(e, t) { + super(i.default().stream.asWritableStream(e), t) + } + } + t.StreamMessageWriter = g; + const y = process.env.XDG_RUNTIME_DIR, + _ = new Map([ + ["linux", 107], + ["darwin", 103] + ]); + t.generateRandomPipeName = function() { + const e = u.randomBytes(21).toString("hex"); + if ("win32" === process.platform) return `\\\\.\\pipe\\vscode-jsonrpc-${e}-sock`; + let t; + t = y ? a.join(y, `vscode-ipc-${e}.sock`) : a.join(c.tmpdir(), `vscode-${e}.sock`); + const n = _.get(process.platform); + return void 0 !== n && t.length >= n && i.default().console.warn(`WARNING: IPC handle "${t}" is longer than ${n} characters.`), t + }, t.createClientPipeTransport = function(e, t = "utf-8") { + let n; + const r = new Promise(((e, t) => { + n = e + })); + return new Promise(((o, i) => { + let s = l.createServer((e => { + s.close(), n([new h(e, t), new m(e, t)]) + })); + s.on("error", i), s.listen(e, (() => { + s.removeListener("error", i), o({ + onConnected: () => r + }) + })) + })) + }, t.createServerPipeTransport = function(e, t = "utf-8") { + const n = l.createConnection(e); + return [new h(n, t), new m(n, t)] + }, t.createClientSocketTransport = function(e, t = "utf-8") { + let n; + const r = new Promise(((e, t) => { + n = e + })); + return new Promise(((o, i) => { + const s = l.createServer((e => { + s.close(), n([new h(e, t), new m(e, t)]) + })); + s.on("error", i), s.listen(e, "127.0.0.1", (() => { + s.removeListener("error", i), o({ + onConnected: () => r + }) + })) + })) + }, t.createServerSocketTransport = function(e, t = "utf-8") { + const n = l.createConnection(e, "127.0.0.1"); + return [new h(n, t), new m(n, t)] + }, t.createMessageConnection = function(e, t, n, r) { + n || (n = s.NullLogger); + const o = function(e) { + const t = e; + return void 0 !== t.read && void 0 !== t.addListener + }(e) ? new f(e) : e, + i = function(e) { + const t = e; + return void 0 !== t.write && void 0 !== t.addListener + }(t) ? new g(t) : t; + return s.ConnectionStrategy.is(r) && (r = { + connectionStrategy: r + }), s.createMessageConnection(o, i, n, r) + } + }, + 3034: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(147), + o = n(3837), + i = n(3911), + s = n(5530); + class a extends s.AbstractMessageBuffer { + constructor(e = "utf-8") { + super(e) + } + emptyBuffer() { + return a.emptyBuffer + } + fromString(e, t) { + return Buffer.from(e, t) + } + toString(e, t) { + return e instanceof Buffer ? e.toString(t) : new o.TextDecoder(t).decode(e) + } + asNative(e, t) { + return void 0 === t ? e instanceof Buffer ? e : Buffer.from(e) : e instanceof Buffer ? e.slice(0, t) : Buffer.from(e, 0, t) + } + allocNative(e) { + return Buffer.allocUnsafe(e) + } + } + a.emptyBuffer = Buffer.allocUnsafe(0); + class c { + constructor(e) { + this.stream = e + } + onClose(e) { + return this.stream.on("close", e), i.Disposable.create((() => this.stream.off("close", e))) + } + onError(e) { + return this.stream.on("error", e), i.Disposable.create((() => this.stream.off("error", e))) + } + onEnd(e) { + return this.stream.on("end", e), i.Disposable.create((() => this.stream.off("end", e))) + } + onData(e) { + return this.stream.on("data", e), i.Disposable.create((() => this.stream.off("data", e))) + } + } + class u { + constructor(e) { + this.stream = e + } + onClose(e) { + return this.stream.on("close", e), i.Disposable.create((() => this.stream.off("close", e))) + } + onError(e) { + return this.stream.on("error", e), i.Disposable.create((() => this.stream.off("error", e))) + } + onEnd(e) { + return this.stream.on("end", e), i.Disposable.create((() => this.stream.off("end", e))) + } + write(e, t) { + return new Promise(((n, r) => { + const o = e => { + null == e ? n() : r(e) + }; + "string" == typeof e ? this.stream.write(e, t, o) : this.stream.write(e, o) + })) + } + end() { + this.stream.end() + } + } + const l = Object.freeze({ + messageBuffer: Object.freeze({ + create: e => new a(e) + }), + applicationJson: Object.freeze({ + encoder: Object.freeze({ + name: "application/json", + encode: (e, t) => { + try { + return Promise.resolve(Buffer.from(JSON.stringify(e, void 0, 0), t.charset)) + } catch (e) { + return Promise.reject(e) + } + } + }), + decoder: Object.freeze({ + name: "application/json", + decode: (e, t) => { + try { + return e instanceof Buffer ? Promise.resolve(JSON.parse(e.toString(t.charset))) : Promise.resolve(JSON.parse(new o.TextDecoder(t.charset).decode(e))) + } catch (e) { + return Promise.reject(e) + } + } + }) + }), + stream: Object.freeze({ + asReadableStream: e => new c(e), + asWritableStream: e => new u(e) + }), + console, + timer: Object.freeze({ + setTimeout: (e, t, ...n) => setTimeout(e, t, ...n), + clearTimeout(e) { + clearTimeout(e) + }, + setImmediate: (e, ...t) => setImmediate(e, ...t), + clearImmediate(e) { + clearImmediate(e) + } + }) + }); + + function d() { + return l + }! function(e) { + e.install = function() { + r.default.install(l) + } + }(d || (d = {})), t.default = d + }, + 5028: (e, t, n) => { + "use strict"; + e.exports = n(4389) + }, + 4437: function(e, t, n) { + "use strict"; + var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) { + void 0 === r && (r = n), Object.defineProperty(e, r, { + enumerable: !0, + get: function() { + return t[n] + } + }) + } : function(e, t, n, r) { + void 0 === r && (r = n), e[r] = t[n] + }), + o = this && this.__exportStar || function(e, t) { + for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n) + }; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.LSPErrorCodes = t.createProtocolConnection = void 0, o(n(4389), t), o(n(1674), t), o(n(6140), t), o(n(542), t); + var i, s = n(3767); + Object.defineProperty(t, "createProtocolConnection", { + enumerable: !0, + get: function() { + return s.createProtocolConnection + } + }), (i = t.LSPErrorCodes || (t.LSPErrorCodes = {})).lspReservedErrorRangeStart = -32899, i.ContentModified = -32801, i.RequestCancelled = -32800, i.lspReservedErrorRangeEnd = -32800 + }, + 3767: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.createProtocolConnection = void 0; + const r = n(4389); + t.createProtocolConnection = function(e, t, n, o) { + return r.ConnectionStrategy.is(o) && (o = { + connectionStrategy: o + }), r.createMessageConnection(e, t, n, o) + } + }, + 6140: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ProtocolNotificationType = t.ProtocolNotificationType0 = t.ProtocolRequestType = t.ProtocolRequestType0 = t.RegistrationType = void 0; + const r = n(4389); + t.RegistrationType = class { + constructor(e) { + this.method = e + } + }; + class o extends r.RequestType0 { + constructor(e) { + super(e) + } + } + t.ProtocolRequestType0 = o; + class i extends r.RequestType { + constructor(e) { + super(e, r.ParameterStructures.byName) + } + } + t.ProtocolRequestType = i; + class s extends r.NotificationType0 { + constructor(e) { + super(e) + } + } + t.ProtocolNotificationType0 = s; + class a extends r.NotificationType { + constructor(e) { + super(e, r.ParameterStructures.byName) + } + } + t.ProtocolNotificationType = a + }, + 2918: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.CallHierarchyOutgoingCallsRequest = t.CallHierarchyIncomingCallsRequest = t.CallHierarchyPrepareRequest = void 0; + const r = n(6140); + var o, i, s; + (s = t.CallHierarchyPrepareRequest || (t.CallHierarchyPrepareRequest = {})).method = "textDocument/prepareCallHierarchy", s.type = new r.ProtocolRequestType(s.method), (i = t.CallHierarchyIncomingCallsRequest || (t.CallHierarchyIncomingCallsRequest = {})).method = "callHierarchy/incomingCalls", i.type = new r.ProtocolRequestType(i.method), (o = t.CallHierarchyOutgoingCallsRequest || (t.CallHierarchyOutgoingCallsRequest = {})).method = "callHierarchy/outgoingCalls", o.type = new r.ProtocolRequestType(o.method) + }, + 3390: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ColorPresentationRequest = t.DocumentColorRequest = void 0; + const r = n(6140); + var o; + (o = t.DocumentColorRequest || (t.DocumentColorRequest = {})).method = "textDocument/documentColor", o.type = new r.ProtocolRequestType(o.method), (t.ColorPresentationRequest || (t.ColorPresentationRequest = {})).type = new r.ProtocolRequestType("textDocument/colorPresentation") + }, + 5934: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ConfigurationRequest = void 0; + const r = n(6140); + (t.ConfigurationRequest || (t.ConfigurationRequest = {})).type = new r.ProtocolRequestType("workspace/configuration") + }, + 764: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.DeclarationRequest = void 0; + const r = n(6140); + var o; + (o = t.DeclarationRequest || (t.DeclarationRequest = {})).method = "textDocument/declaration", o.type = new r.ProtocolRequestType(o.method) + }, + 7846: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.WillDeleteFilesRequest = t.DidDeleteFilesNotification = t.DidRenameFilesNotification = t.WillRenameFilesRequest = t.DidCreateFilesNotification = t.WillCreateFilesRequest = t.FileOperationPatternKind = void 0; + const r = n(6140); + var o, i, s, a, c, u, l; + (l = t.FileOperationPatternKind || (t.FileOperationPatternKind = {})).file = "file", l.folder = "folder", (u = t.WillCreateFilesRequest || (t.WillCreateFilesRequest = {})).method = "workspace/willCreateFiles", u.type = new r.ProtocolRequestType(u.method), (c = t.DidCreateFilesNotification || (t.DidCreateFilesNotification = {})).method = "workspace/didCreateFiles", c.type = new r.ProtocolNotificationType(c.method), (a = t.WillRenameFilesRequest || (t.WillRenameFilesRequest = {})).method = "workspace/willRenameFiles", a.type = new r.ProtocolRequestType(a.method), (s = t.DidRenameFilesNotification || (t.DidRenameFilesNotification = {})).method = "workspace/didRenameFiles", s.type = new r.ProtocolNotificationType(s.method), (i = t.DidDeleteFilesNotification || (t.DidDeleteFilesNotification = {})).method = "workspace/didDeleteFiles", i.type = new r.ProtocolNotificationType(i.method), (o = t.WillDeleteFilesRequest || (t.WillDeleteFilesRequest = {})).method = "workspace/willDeleteFiles", o.type = new r.ProtocolRequestType(o.method) + }, + 3394: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.FoldingRangeRequest = t.FoldingRangeKind = void 0; + const r = n(6140); + var o, i; + (i = t.FoldingRangeKind || (t.FoldingRangeKind = {})).Comment = "comment", i.Imports = "imports", i.Region = "region", (o = t.FoldingRangeRequest || (t.FoldingRangeRequest = {})).method = "textDocument/foldingRange", o.type = new r.ProtocolRequestType(o.method) + }, + 2122: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ImplementationRequest = void 0; + const r = n(6140); + var o; + (o = t.ImplementationRequest || (t.ImplementationRequest = {})).method = "textDocument/implementation", o.type = new r.ProtocolRequestType(o.method) + }, + 542: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.DocumentLinkRequest = t.CodeLensRefreshRequest = t.CodeLensResolveRequest = t.CodeLensRequest = t.WorkspaceSymbolRequest = t.CodeActionResolveRequest = t.CodeActionRequest = t.DocumentSymbolRequest = t.DocumentHighlightRequest = t.ReferencesRequest = t.DefinitionRequest = t.SignatureHelpRequest = t.SignatureHelpTriggerKind = t.HoverRequest = t.CompletionResolveRequest = t.CompletionRequest = t.CompletionTriggerKind = t.PublishDiagnosticsNotification = t.WatchKind = t.FileChangeType = t.DidChangeWatchedFilesNotification = t.WillSaveTextDocumentWaitUntilRequest = t.WillSaveTextDocumentNotification = t.TextDocumentSaveReason = t.DidSaveTextDocumentNotification = t.DidCloseTextDocumentNotification = t.DidChangeTextDocumentNotification = t.TextDocumentContentChangeEvent = t.DidOpenTextDocumentNotification = t.TextDocumentSyncKind = t.TelemetryEventNotification = t.LogMessageNotification = t.ShowMessageRequest = t.ShowMessageNotification = t.MessageType = t.DidChangeConfigurationNotification = t.ExitNotification = t.ShutdownRequest = t.InitializedNotification = t.InitializeError = t.InitializeRequest = t.WorkDoneProgressOptions = t.TextDocumentRegistrationOptions = t.StaticRegistrationOptions = t.FailureHandlingKind = t.ResourceOperationKind = t.UnregistrationRequest = t.RegistrationRequest = t.DocumentSelector = t.DocumentFilter = void 0, t.MonikerRequest = t.MonikerKind = t.UniquenessLevel = t.WillDeleteFilesRequest = t.DidDeleteFilesNotification = t.WillRenameFilesRequest = t.DidRenameFilesNotification = t.WillCreateFilesRequest = t.DidCreateFilesNotification = t.FileOperationPatternKind = t.LinkedEditingRangeRequest = t.ShowDocumentRequest = t.SemanticTokensRegistrationType = t.SemanticTokensRefreshRequest = t.SemanticTokensRangeRequest = t.SemanticTokensDeltaRequest = t.SemanticTokensRequest = t.TokenFormat = t.SemanticTokens = t.SemanticTokenModifiers = t.SemanticTokenTypes = t.CallHierarchyPrepareRequest = t.CallHierarchyOutgoingCallsRequest = t.CallHierarchyIncomingCallsRequest = t.WorkDoneProgressCancelNotification = t.WorkDoneProgressCreateRequest = t.WorkDoneProgress = t.SelectionRangeRequest = t.DeclarationRequest = t.FoldingRangeRequest = t.ColorPresentationRequest = t.DocumentColorRequest = t.ConfigurationRequest = t.DidChangeWorkspaceFoldersNotification = t.WorkspaceFoldersRequest = t.TypeDefinitionRequest = t.ImplementationRequest = t.ApplyWorkspaceEditRequest = t.ExecuteCommandRequest = t.PrepareRenameRequest = t.RenameRequest = t.PrepareSupportDefaultBehavior = t.DocumentOnTypeFormattingRequest = t.DocumentRangeFormattingRequest = t.DocumentFormattingRequest = t.DocumentLinkResolveRequest = void 0; + const r = n(9533), + o = n(6140), + i = n(2122); + Object.defineProperty(t, "ImplementationRequest", { + enumerable: !0, + get: function() { + return i.ImplementationRequest + } + }); + const s = n(1589); + Object.defineProperty(t, "TypeDefinitionRequest", { + enumerable: !0, + get: function() { + return s.TypeDefinitionRequest + } + }); + const a = n(9795); + Object.defineProperty(t, "WorkspaceFoldersRequest", { + enumerable: !0, + get: function() { + return a.WorkspaceFoldersRequest + } + }), Object.defineProperty(t, "DidChangeWorkspaceFoldersNotification", { + enumerable: !0, + get: function() { + return a.DidChangeWorkspaceFoldersNotification + } + }); + const c = n(5934); + Object.defineProperty(t, "ConfigurationRequest", { + enumerable: !0, + get: function() { + return c.ConfigurationRequest + } + }); + const u = n(3390); + Object.defineProperty(t, "DocumentColorRequest", { + enumerable: !0, + get: function() { + return u.DocumentColorRequest + } + }), Object.defineProperty(t, "ColorPresentationRequest", { + enumerable: !0, + get: function() { + return u.ColorPresentationRequest + } + }); + const l = n(3394); + Object.defineProperty(t, "FoldingRangeRequest", { + enumerable: !0, + get: function() { + return l.FoldingRangeRequest + } + }); + const d = n(764); + Object.defineProperty(t, "DeclarationRequest", { + enumerable: !0, + get: function() { + return d.DeclarationRequest + } + }); + const p = n(5206); + Object.defineProperty(t, "SelectionRangeRequest", { + enumerable: !0, + get: function() { + return p.SelectionRangeRequest + } + }); + const h = n(1862); + Object.defineProperty(t, "WorkDoneProgress", { + enumerable: !0, + get: function() { + return h.WorkDoneProgress + } + }), Object.defineProperty(t, "WorkDoneProgressCreateRequest", { + enumerable: !0, + get: function() { + return h.WorkDoneProgressCreateRequest + } + }), Object.defineProperty(t, "WorkDoneProgressCancelNotification", { + enumerable: !0, + get: function() { + return h.WorkDoneProgressCancelNotification + } + }); + const m = n(2918); + Object.defineProperty(t, "CallHierarchyIncomingCallsRequest", { + enumerable: !0, + get: function() { + return m.CallHierarchyIncomingCallsRequest + } + }), Object.defineProperty(t, "CallHierarchyOutgoingCallsRequest", { + enumerable: !0, + get: function() { + return m.CallHierarchyOutgoingCallsRequest + } + }), Object.defineProperty(t, "CallHierarchyPrepareRequest", { + enumerable: !0, + get: function() { + return m.CallHierarchyPrepareRequest + } + }); + const f = n(9434); + Object.defineProperty(t, "SemanticTokenTypes", { + enumerable: !0, + get: function() { + return f.SemanticTokenTypes + } + }), Object.defineProperty(t, "SemanticTokenModifiers", { + enumerable: !0, + get: function() { + return f.SemanticTokenModifiers + } + }), Object.defineProperty(t, "SemanticTokens", { + enumerable: !0, + get: function() { + return f.SemanticTokens + } + }), Object.defineProperty(t, "TokenFormat", { + enumerable: !0, + get: function() { + return f.TokenFormat + } + }), Object.defineProperty(t, "SemanticTokensRequest", { + enumerable: !0, + get: function() { + return f.SemanticTokensRequest + } + }), Object.defineProperty(t, "SemanticTokensDeltaRequest", { + enumerable: !0, + get: function() { + return f.SemanticTokensDeltaRequest + } + }), Object.defineProperty(t, "SemanticTokensRangeRequest", { + enumerable: !0, + get: function() { + return f.SemanticTokensRangeRequest + } + }), Object.defineProperty(t, "SemanticTokensRefreshRequest", { + enumerable: !0, + get: function() { + return f.SemanticTokensRefreshRequest + } + }), Object.defineProperty(t, "SemanticTokensRegistrationType", { + enumerable: !0, + get: function() { + return f.SemanticTokensRegistrationType + } + }); + const g = n(5726); + Object.defineProperty(t, "ShowDocumentRequest", { + enumerable: !0, + get: function() { + return g.ShowDocumentRequest + } + }); + const y = n(6305); + Object.defineProperty(t, "LinkedEditingRangeRequest", { + enumerable: !0, + get: function() { + return y.LinkedEditingRangeRequest + } + }); + const _ = n(7846); + Object.defineProperty(t, "FileOperationPatternKind", { + enumerable: !0, + get: function() { + return _.FileOperationPatternKind + } + }), Object.defineProperty(t, "DidCreateFilesNotification", { + enumerable: !0, + get: function() { + return _.DidCreateFilesNotification + } + }), Object.defineProperty(t, "WillCreateFilesRequest", { + enumerable: !0, + get: function() { + return _.WillCreateFilesRequest + } + }), Object.defineProperty(t, "DidRenameFilesNotification", { + enumerable: !0, + get: function() { + return _.DidRenameFilesNotification + } + }), Object.defineProperty(t, "WillRenameFilesRequest", { + enumerable: !0, + get: function() { + return _.WillRenameFilesRequest + } + }), Object.defineProperty(t, "DidDeleteFilesNotification", { + enumerable: !0, + get: function() { + return _.DidDeleteFilesNotification + } + }), Object.defineProperty(t, "WillDeleteFilesRequest", { + enumerable: !0, + get: function() { + return _.WillDeleteFilesRequest + } + }); + const v = n(3443); + var b, k, w, j, x, E, C, S, T, P, I, R, O, A, N, D, M, q, L, $, F, z, B, U, H, W, G, V, K, J, X, Y, Q, Z, ee, te, ne, re, oe, ie; + Object.defineProperty(t, "UniquenessLevel", { + enumerable: !0, + get: function() { + return v.UniquenessLevel + } + }), Object.defineProperty(t, "MonikerKind", { + enumerable: !0, + get: function() { + return v.MonikerKind + } + }), Object.defineProperty(t, "MonikerRequest", { + enumerable: !0, + get: function() { + return v.MonikerRequest + } + }), + function(e) { + e.is = function(e) { + const t = e; + return r.string(t.language) || r.string(t.scheme) || r.string(t.pattern) + } + }(b = t.DocumentFilter || (t.DocumentFilter = {})), + function(e) { + e.is = function(e) { + if (!Array.isArray(e)) return !1; + for (let t of e) + if (!r.string(t) && !b.is(t)) return !1; + return !0 + } + }(k = t.DocumentSelector || (t.DocumentSelector = {})), (t.RegistrationRequest || (t.RegistrationRequest = {})).type = new o.ProtocolRequestType("client/registerCapability"), (t.UnregistrationRequest || (t.UnregistrationRequest = {})).type = new o.ProtocolRequestType("client/unregisterCapability"), (ie = t.ResourceOperationKind || (t.ResourceOperationKind = {})).Create = "create", ie.Rename = "rename", ie.Delete = "delete", (oe = t.FailureHandlingKind || (t.FailureHandlingKind = {})).Abort = "abort", oe.Transactional = "transactional", oe.TextOnlyTransactional = "textOnlyTransactional", oe.Undo = "undo", (t.StaticRegistrationOptions || (t.StaticRegistrationOptions = {})).hasId = function(e) { + const t = e; + return t && r.string(t.id) && t.id.length > 0 + }, (t.TextDocumentRegistrationOptions || (t.TextDocumentRegistrationOptions = {})).is = function(e) { + const t = e; + return t && (null === t.documentSelector || k.is(t.documentSelector)) + }, (re = t.WorkDoneProgressOptions || (t.WorkDoneProgressOptions = {})).is = function(e) { + const t = e; + return r.objectLiteral(t) && (void 0 === t.workDoneProgress || r.boolean(t.workDoneProgress)) + }, re.hasWorkDoneProgress = function(e) { + const t = e; + return t && r.boolean(t.workDoneProgress) + }, (t.InitializeRequest || (t.InitializeRequest = {})).type = new o.ProtocolRequestType("initialize"), (t.InitializeError || (t.InitializeError = {})).unknownProtocolVersion = 1, (t.InitializedNotification || (t.InitializedNotification = {})).type = new o.ProtocolNotificationType("initialized"), (t.ShutdownRequest || (t.ShutdownRequest = {})).type = new o.ProtocolRequestType0("shutdown"), (t.ExitNotification || (t.ExitNotification = {})).type = new o.ProtocolNotificationType0("exit"), (t.DidChangeConfigurationNotification || (t.DidChangeConfigurationNotification = {})).type = new o.ProtocolNotificationType("workspace/didChangeConfiguration"), (ne = t.MessageType || (t.MessageType = {})).Error = 1, ne.Warning = 2, ne.Info = 3, ne.Log = 4, (t.ShowMessageNotification || (t.ShowMessageNotification = {})).type = new o.ProtocolNotificationType("window/showMessage"), (t.ShowMessageRequest || (t.ShowMessageRequest = {})).type = new o.ProtocolRequestType("window/showMessageRequest"), (t.LogMessageNotification || (t.LogMessageNotification = {})).type = new o.ProtocolNotificationType("window/logMessage"), (t.TelemetryEventNotification || (t.TelemetryEventNotification = {})).type = new o.ProtocolNotificationType("telemetry/event"), (te = t.TextDocumentSyncKind || (t.TextDocumentSyncKind = {})).None = 0, te.Full = 1, te.Incremental = 2, (ee = t.DidOpenTextDocumentNotification || (t.DidOpenTextDocumentNotification = {})).method = "textDocument/didOpen", ee.type = new o.ProtocolNotificationType(ee.method), (Z = t.TextDocumentContentChangeEvent || (t.TextDocumentContentChangeEvent = {})).isIncremental = function(e) { + let t = e; + return null != t && "string" == typeof t.text && void 0 !== t.range && (void 0 === t.rangeLength || "number" == typeof t.rangeLength) + }, Z.isFull = function(e) { + let t = e; + return null != t && "string" == typeof t.text && void 0 === t.range && void 0 === t.rangeLength + }, (Q = t.DidChangeTextDocumentNotification || (t.DidChangeTextDocumentNotification = {})).method = "textDocument/didChange", Q.type = new o.ProtocolNotificationType(Q.method), (Y = t.DidCloseTextDocumentNotification || (t.DidCloseTextDocumentNotification = {})).method = "textDocument/didClose", Y.type = new o.ProtocolNotificationType(Y.method), (X = t.DidSaveTextDocumentNotification || (t.DidSaveTextDocumentNotification = {})).method = "textDocument/didSave", X.type = new o.ProtocolNotificationType(X.method), (J = t.TextDocumentSaveReason || (t.TextDocumentSaveReason = {})).Manual = 1, J.AfterDelay = 2, J.FocusOut = 3, (K = t.WillSaveTextDocumentNotification || (t.WillSaveTextDocumentNotification = {})).method = "textDocument/willSave", K.type = new o.ProtocolNotificationType(K.method), (V = t.WillSaveTextDocumentWaitUntilRequest || (t.WillSaveTextDocumentWaitUntilRequest = {})).method = "textDocument/willSaveWaitUntil", V.type = new o.ProtocolRequestType(V.method), (t.DidChangeWatchedFilesNotification || (t.DidChangeWatchedFilesNotification = {})).type = new o.ProtocolNotificationType("workspace/didChangeWatchedFiles"), (G = t.FileChangeType || (t.FileChangeType = {})).Created = 1, G.Changed = 2, G.Deleted = 3, (W = t.WatchKind || (t.WatchKind = {})).Create = 1, W.Change = 2, W.Delete = 4, (t.PublishDiagnosticsNotification || (t.PublishDiagnosticsNotification = {})).type = new o.ProtocolNotificationType("textDocument/publishDiagnostics"), (H = t.CompletionTriggerKind || (t.CompletionTriggerKind = {})).Invoked = 1, H.TriggerCharacter = 2, H.TriggerForIncompleteCompletions = 3, (U = t.CompletionRequest || (t.CompletionRequest = {})).method = "textDocument/completion", U.type = new o.ProtocolRequestType(U.method), (B = t.CompletionResolveRequest || (t.CompletionResolveRequest = {})).method = "completionItem/resolve", B.type = new o.ProtocolRequestType(B.method), (z = t.HoverRequest || (t.HoverRequest = {})).method = "textDocument/hover", z.type = new o.ProtocolRequestType(z.method), (F = t.SignatureHelpTriggerKind || (t.SignatureHelpTriggerKind = {})).Invoked = 1, F.TriggerCharacter = 2, F.ContentChange = 3, ($ = t.SignatureHelpRequest || (t.SignatureHelpRequest = {})).method = "textDocument/signatureHelp", $.type = new o.ProtocolRequestType($.method), (L = t.DefinitionRequest || (t.DefinitionRequest = {})).method = "textDocument/definition", L.type = new o.ProtocolRequestType(L.method), (q = t.ReferencesRequest || (t.ReferencesRequest = {})).method = "textDocument/references", q.type = new o.ProtocolRequestType(q.method), (M = t.DocumentHighlightRequest || (t.DocumentHighlightRequest = {})).method = "textDocument/documentHighlight", M.type = new o.ProtocolRequestType(M.method), (D = t.DocumentSymbolRequest || (t.DocumentSymbolRequest = {})).method = "textDocument/documentSymbol", D.type = new o.ProtocolRequestType(D.method), (N = t.CodeActionRequest || (t.CodeActionRequest = {})).method = "textDocument/codeAction", N.type = new o.ProtocolRequestType(N.method), (A = t.CodeActionResolveRequest || (t.CodeActionResolveRequest = {})).method = "codeAction/resolve", A.type = new o.ProtocolRequestType(A.method), (O = t.WorkspaceSymbolRequest || (t.WorkspaceSymbolRequest = {})).method = "workspace/symbol", O.type = new o.ProtocolRequestType(O.method), (R = t.CodeLensRequest || (t.CodeLensRequest = {})).method = "textDocument/codeLens", R.type = new o.ProtocolRequestType(R.method), (I = t.CodeLensResolveRequest || (t.CodeLensResolveRequest = {})).method = "codeLens/resolve", I.type = new o.ProtocolRequestType(I.method), (P = t.CodeLensRefreshRequest || (t.CodeLensRefreshRequest = {})).method = "workspace/codeLens/refresh", P.type = new o.ProtocolRequestType0(P.method), (T = t.DocumentLinkRequest || (t.DocumentLinkRequest = {})).method = "textDocument/documentLink", T.type = new o.ProtocolRequestType(T.method), (S = t.DocumentLinkResolveRequest || (t.DocumentLinkResolveRequest = {})).method = "documentLink/resolve", S.type = new o.ProtocolRequestType(S.method), (C = t.DocumentFormattingRequest || (t.DocumentFormattingRequest = {})).method = "textDocument/formatting", C.type = new o.ProtocolRequestType(C.method), (E = t.DocumentRangeFormattingRequest || (t.DocumentRangeFormattingRequest = {})).method = "textDocument/rangeFormatting", E.type = new o.ProtocolRequestType(E.method), (x = t.DocumentOnTypeFormattingRequest || (t.DocumentOnTypeFormattingRequest = {})).method = "textDocument/onTypeFormatting", x.type = new o.ProtocolRequestType(x.method), (t.PrepareSupportDefaultBehavior || (t.PrepareSupportDefaultBehavior = {})).Identifier = 1, (j = t.RenameRequest || (t.RenameRequest = {})).method = "textDocument/rename", j.type = new o.ProtocolRequestType(j.method), (w = t.PrepareRenameRequest || (t.PrepareRenameRequest = {})).method = "textDocument/prepareRename", w.type = new o.ProtocolRequestType(w.method), (t.ExecuteCommandRequest || (t.ExecuteCommandRequest = {})).type = new o.ProtocolRequestType("workspace/executeCommand"), (t.ApplyWorkspaceEditRequest || (t.ApplyWorkspaceEditRequest = {})).type = new o.ProtocolRequestType("workspace/applyEdit") + }, + 6305: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.LinkedEditingRangeRequest = void 0; + const r = n(6140); + var o; + (o = t.LinkedEditingRangeRequest || (t.LinkedEditingRangeRequest = {})).method = "textDocument/linkedEditingRange", o.type = new r.ProtocolRequestType(o.method) + }, + 3443: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.MonikerRequest = t.MonikerKind = t.UniquenessLevel = void 0; + const r = n(6140); + var o, i, s; + (s = t.UniquenessLevel || (t.UniquenessLevel = {})).document = "document", s.project = "project", s.group = "group", s.scheme = "scheme", s.global = "global", (i = t.MonikerKind || (t.MonikerKind = {})).import = "import", i.export = "export", i.local = "local", (o = t.MonikerRequest || (t.MonikerRequest = {})).method = "textDocument/moniker", o.type = new r.ProtocolRequestType(o.method) + }, + 1862: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.WorkDoneProgressCancelNotification = t.WorkDoneProgressCreateRequest = t.WorkDoneProgress = void 0; + const r = n(4389), + o = n(6140); + var i; + (i = t.WorkDoneProgress || (t.WorkDoneProgress = {})).type = new r.ProgressType, i.is = function(e) { + return e === i.type + }, (t.WorkDoneProgressCreateRequest || (t.WorkDoneProgressCreateRequest = {})).type = new o.ProtocolRequestType("window/workDoneProgress/create"), (t.WorkDoneProgressCancelNotification || (t.WorkDoneProgressCancelNotification = {})).type = new o.ProtocolNotificationType("window/workDoneProgress/cancel") + }, + 5206: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.SelectionRangeRequest = void 0; + const r = n(6140); + var o; + (o = t.SelectionRangeRequest || (t.SelectionRangeRequest = {})).method = "textDocument/selectionRange", o.type = new r.ProtocolRequestType(o.method) + }, + 9434: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.SemanticTokensRefreshRequest = t.SemanticTokensRangeRequest = t.SemanticTokensDeltaRequest = t.SemanticTokensRequest = t.SemanticTokensRegistrationType = t.TokenFormat = t.SemanticTokens = t.SemanticTokenModifiers = t.SemanticTokenTypes = void 0; + const r = n(6140); + var o, i, s, a, c, u, l; + (l = t.SemanticTokenTypes || (t.SemanticTokenTypes = {})).namespace = "namespace", l.type = "type", l.class = "class", l.enum = "enum", l.interface = "interface", l.struct = "struct", l.typeParameter = "typeParameter", l.parameter = "parameter", l.variable = "variable", l.property = "property", l.enumMember = "enumMember", l.event = "event", l.function = "function", l.method = "method", l.macro = "macro", l.keyword = "keyword", l.modifier = "modifier", l.comment = "comment", l.string = "string", l.number = "number", l.regexp = "regexp", l.operator = "operator", (u = t.SemanticTokenModifiers || (t.SemanticTokenModifiers = {})).declaration = "declaration", u.definition = "definition", u.readonly = "readonly", u.static = "static", u.deprecated = "deprecated", u.abstract = "abstract", u.async = "async", u.modification = "modification", u.documentation = "documentation", u.defaultLibrary = "defaultLibrary", (t.SemanticTokens || (t.SemanticTokens = {})).is = function(e) { + const t = e; + return void 0 !== t && (void 0 === t.resultId || "string" == typeof t.resultId) && Array.isArray(t.data) && (0 === t.data.length || "number" == typeof t.data[0]) + }, (t.TokenFormat || (t.TokenFormat = {})).Relative = "relative", (c = t.SemanticTokensRegistrationType || (t.SemanticTokensRegistrationType = {})).method = "textDocument/semanticTokens", c.type = new r.RegistrationType(c.method), (a = t.SemanticTokensRequest || (t.SemanticTokensRequest = {})).method = "textDocument/semanticTokens/full", a.type = new r.ProtocolRequestType(a.method), (s = t.SemanticTokensDeltaRequest || (t.SemanticTokensDeltaRequest = {})).method = "textDocument/semanticTokens/full/delta", s.type = new r.ProtocolRequestType(s.method), (i = t.SemanticTokensRangeRequest || (t.SemanticTokensRangeRequest = {})).method = "textDocument/semanticTokens/range", i.type = new r.ProtocolRequestType(i.method), (o = t.SemanticTokensRefreshRequest || (t.SemanticTokensRefreshRequest = {})).method = "workspace/semanticTokens/refresh", o.type = new r.ProtocolRequestType0(o.method) + }, + 5726: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ShowDocumentRequest = void 0; + const r = n(6140); + var o; + (o = t.ShowDocumentRequest || (t.ShowDocumentRequest = {})).method = "window/showDocument", o.type = new r.ProtocolRequestType(o.method) + }, + 1589: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.TypeDefinitionRequest = void 0; + const r = n(6140); + var o; + (o = t.TypeDefinitionRequest || (t.TypeDefinitionRequest = {})).method = "textDocument/typeDefinition", o.type = new r.ProtocolRequestType(o.method) + }, + 9795: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.DidChangeWorkspaceFoldersNotification = t.WorkspaceFoldersRequest = void 0; + const r = n(6140); + (t.WorkspaceFoldersRequest || (t.WorkspaceFoldersRequest = {})).type = new r.ProtocolRequestType0("workspace/workspaceFolders"), (t.DidChangeWorkspaceFoldersNotification || (t.DidChangeWorkspaceFoldersNotification = {})).type = new r.ProtocolNotificationType("workspace/didChangeWorkspaceFolders") + }, + 9533: (e, t) => { + "use strict"; + + function n(e) { + return "string" == typeof e || e instanceof String + } + + function r(e) { + return Array.isArray(e) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.objectLiteral = t.typedArray = t.stringArray = t.array = t.func = t.error = t.number = t.string = t.boolean = void 0, t.boolean = function(e) { + return !0 === e || !1 === e + }, t.string = n, t.number = function(e) { + return "number" == typeof e || e instanceof Number + }, t.error = function(e) { + return e instanceof Error + }, t.func = function(e) { + return "function" == typeof e + }, t.array = r, t.stringArray = function(e) { + return r(e) && e.every((e => n(e))) + }, t.typedArray = function(e, t) { + return Array.isArray(e) && e.every(t) + }, t.objectLiteral = function(e) { + return null !== e && "object" == typeof e + } + }, + 273: function(e, t, n) { + "use strict"; + var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) { + void 0 === r && (r = n), Object.defineProperty(e, r, { + enumerable: !0, + get: function() { + return t[n] + } + }) + } : function(e, t, n, r) { + void 0 === r && (r = n), e[r] = t[n] + }), + o = this && this.__exportStar || function(e, t) { + for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n) + }; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.createProtocolConnection = void 0; + const i = n(5028); + o(n(5028), t), o(n(4437), t), t.createProtocolConnection = function(e, t, n, r) { + return i.createMessageConnection(e, t, n, r) + } + }, + 6560: (e, t, n) => { + "use strict"; + e.exports = n(273) + }, + 6813: (e, t, n) => { + "use strict"; + n.r(t), n.d(t, { + TextDocument: () => r + }); + var r, o = function(e, t, n) { + if (n || 2 === arguments.length) + for (var r, o = 0, i = t.length; o < i; o++) !r && o in t || (r || (r = Array.prototype.slice.call(t, 0, o)), r[o] = t[o]); + return e.concat(r || Array.prototype.slice.call(t)) + }, + i = function() { + function e(e, t, n, r) { + this._uri = e, this._languageId = t, this._version = n, this._content = r, this._lineOffsets = void 0 + } + return Object.defineProperty(e.prototype, "uri", { + get: function() { + return this._uri + }, + enumerable: !1, + configurable: !0 + }), Object.defineProperty(e.prototype, "languageId", { + get: function() { + return this._languageId + }, + enumerable: !1, + configurable: !0 + }), Object.defineProperty(e.prototype, "version", { + get: function() { + return this._version + }, + enumerable: !1, + configurable: !0 + }), e.prototype.getText = function(e) { + if (e) { + var t = this.offsetAt(e.start), + n = this.offsetAt(e.end); + return this._content.substring(t, n) + } + return this._content + }, e.prototype.update = function(t, n) { + for (var r = 0, i = t; r < i.length; r++) { + var s = i[r]; + if (e.isIncremental(s)) { + var u = c(s.range), + l = this.offsetAt(u.start), + d = this.offsetAt(u.end); + this._content = this._content.substring(0, l) + s.text + this._content.substring(d, this._content.length); + var p = Math.max(u.start.line, 0), + h = Math.max(u.end.line, 0), + m = this._lineOffsets, + f = a(s.text, !1, l); + if (h - p === f.length) + for (var g = 0, y = f.length; g < y; g++) m[g + p + 1] = f[g]; + else f.length < 1e4 ? m.splice.apply(m, o([p + 1, h - p], f, !1)) : this._lineOffsets = m = m.slice(0, p + 1).concat(f, m.slice(h + 1)); + var _ = s.text.length - (d - l); + if (0 !== _) + for (g = p + 1 + f.length, y = m.length; g < y; g++) m[g] = m[g] + _ + } else { + if (!e.isFull(s)) throw new Error("Unknown change event received"); + this._content = s.text, this._lineOffsets = void 0 + } + } + this._version = n + }, e.prototype.getLineOffsets = function() { + return void 0 === this._lineOffsets && (this._lineOffsets = a(this._content, !0)), this._lineOffsets + }, e.prototype.positionAt = function(e) { + e = Math.max(Math.min(e, this._content.length), 0); + var t = this.getLineOffsets(), + n = 0, + r = t.length; + if (0 === r) return { + line: 0, + character: e + }; + for (; n < r;) { + var o = Math.floor((n + r) / 2); + t[o] > e ? r = o : n = o + 1 + } + var i = n - 1; + return { + line: i, + character: e - t[i] + } + }, e.prototype.offsetAt = function(e) { + var t = this.getLineOffsets(); + if (e.line >= t.length) return this._content.length; + if (e.line < 0) return 0; + var n = t[e.line], + r = e.line + 1 < t.length ? t[e.line + 1] : this._content.length; + return Math.max(Math.min(n + e.character, r), n) + }, Object.defineProperty(e.prototype, "lineCount", { + get: function() { + return this.getLineOffsets().length + }, + enumerable: !1, + configurable: !0 + }), e.isIncremental = function(e) { + var t = e; + return null != t && "string" == typeof t.text && void 0 !== t.range && (void 0 === t.rangeLength || "number" == typeof t.rangeLength) + }, e.isFull = function(e) { + var t = e; + return null != t && "string" == typeof t.text && void 0 === t.range && void 0 === t.rangeLength + }, e + }(); + + function s(e, t) { + if (e.length <= 1) return e; + var n = e.length / 2 | 0, + r = e.slice(0, n), + o = e.slice(n); + s(r, t), s(o, t); + for (var i = 0, a = 0, c = 0; i < r.length && a < o.length;) { + var u = t(r[i], o[a]); + e[c++] = u <= 0 ? r[i++] : o[a++] + } + for (; i < r.length;) e[c++] = r[i++]; + for (; a < o.length;) e[c++] = o[a++]; + return e + } + + function a(e, t, n) { + void 0 === n && (n = 0); + for (var r = t ? [n] : [], o = 0; o < e.length; o++) { + var i = e.charCodeAt(o); + 13 !== i && 10 !== i || (13 === i && o + 1 < e.length && 10 === e.charCodeAt(o + 1) && o++, r.push(n + o + 1)) + } + return r + } + + function c(e) { + var t = e.start, + n = e.end; + return t.line > n.line || t.line === n.line && t.character > n.character ? { + start: n, + end: t + } : e + } + + function u(e) { + var t = c(e.range); + return t !== e.range ? { + newText: e.newText, + range: t + } : e + }! function(e) { + e.create = function(e, t, n, r) { + return new i(e, t, n, r) + }, e.update = function(e, t, n) { + if (e instanceof i) return e.update(t, n), e; + throw new Error("TextDocument.update: document must be created by TextDocument.create") + }, e.applyEdits = function(e, t) { + for (var n = e.getText(), r = 0, o = [], i = 0, a = s(t.map(u), (function(e, t) { + var n = e.range.start.line - t.range.start.line; + return 0 === n ? e.range.start.character - t.range.start.character : n + })); i < a.length; i++) { + var c = a[i], + l = e.offsetAt(c.range.start); + if (l < r) throw new Error("Overlapping edit"); + l > r && o.push(n.substring(r, l)), c.newText.length && o.push(c.newText), r = e.offsetAt(c.range.end) + } + return o.push(n.substr(r)), o.join("") + } + }(r || (r = {})) + }, + 1674: (e, t, n) => { + "use strict"; + var r, o, i, s, a, c, u, l, d, p, h, m, f, g, y, _, v, b, k, w, j, x, E, C, S, T; + n.r(t), n.d(t, { + integer: () => r, + uinteger: () => o, + Position: () => i, + Range: () => s, + Location: () => a, + LocationLink: () => c, + Color: () => u, + ColorInformation: () => l, + ColorPresentation: () => d, + FoldingRangeKind: () => p, + FoldingRange: () => h, + DiagnosticRelatedInformation: () => m, + DiagnosticSeverity: () => f, + DiagnosticTag: () => g, + CodeDescription: () => y, + Diagnostic: () => _, + Command: () => v, + TextEdit: () => b, + ChangeAnnotation: () => k, + ChangeAnnotationIdentifier: () => w, + AnnotatedTextEdit: () => j, + TextDocumentEdit: () => x, + CreateFile: () => E, + RenameFile: () => C, + DeleteFile: () => S, + WorkspaceEdit: () => T, + WorkspaceChange: () => ae, + TextDocumentIdentifier: () => P, + VersionedTextDocumentIdentifier: () => I, + OptionalVersionedTextDocumentIdentifier: () => R, + TextDocumentItem: () => O, + MarkupKind: () => A, + MarkupContent: () => N, + CompletionItemKind: () => D, + InsertTextFormat: () => M, + CompletionItemTag: () => q, + InsertReplaceEdit: () => L, + InsertTextMode: () => $, + CompletionItem: () => F, + CompletionList: () => z, + MarkedString: () => B, + Hover: () => U, + ParameterInformation: () => H, + SignatureInformation: () => W, + DocumentHighlightKind: () => G, + DocumentHighlight: () => V, + SymbolKind: () => K, + SymbolTag: () => J, + SymbolInformation: () => X, + DocumentSymbol: () => Y, + CodeActionKind: () => Q, + CodeActionContext: () => Z, + CodeAction: () => ee, + CodeLens: () => te, + FormattingOptions: () => ne, + DocumentLink: () => re, + SelectionRange: () => oe, + EOL: () => ue, + TextDocument: () => ce + }), + function(e) { + e.MIN_VALUE = -2147483648, e.MAX_VALUE = 2147483647 + }(r || (r = {})), + function(e) { + e.MIN_VALUE = 0, e.MAX_VALUE = 2147483647 + }(o || (o = {})), + function(e) { + e.create = function(e, t) { + return e === Number.MAX_VALUE && (e = o.MAX_VALUE), t === Number.MAX_VALUE && (t = o.MAX_VALUE), { + line: e, + character: t + } + }, e.is = function(e) { + var t = e; + return le.objectLiteral(t) && le.uinteger(t.line) && le.uinteger(t.character) + } + }(i || (i = {})), + function(e) { + e.create = function(e, t, n, r) { + if (le.uinteger(e) && le.uinteger(t) && le.uinteger(n) && le.uinteger(r)) return { + start: i.create(e, t), + end: i.create(n, r) + }; + if (i.is(e) && i.is(t)) return { + start: e, + end: t + }; + throw new Error("Range#create called with invalid arguments[" + e + ", " + t + ", " + n + ", " + r + "]") + }, e.is = function(e) { + var t = e; + return le.objectLiteral(t) && i.is(t.start) && i.is(t.end) + } + }(s || (s = {})), + function(e) { + e.create = function(e, t) { + return { + uri: e, + range: t + } + }, e.is = function(e) { + var t = e; + return le.defined(t) && s.is(t.range) && (le.string(t.uri) || le.undefined(t.uri)) + } + }(a || (a = {})), + function(e) { + e.create = function(e, t, n, r) { + return { + targetUri: e, + targetRange: t, + targetSelectionRange: n, + originSelectionRange: r + } + }, e.is = function(e) { + var t = e; + return le.defined(t) && s.is(t.targetRange) && le.string(t.targetUri) && (s.is(t.targetSelectionRange) || le.undefined(t.targetSelectionRange)) && (s.is(t.originSelectionRange) || le.undefined(t.originSelectionRange)) + } + }(c || (c = {})), + function(e) { + e.create = function(e, t, n, r) { + return { + red: e, + green: t, + blue: n, + alpha: r + } + }, e.is = function(e) { + var t = e; + return le.numberRange(t.red, 0, 1) && le.numberRange(t.green, 0, 1) && le.numberRange(t.blue, 0, 1) && le.numberRange(t.alpha, 0, 1) + } + }(u || (u = {})), + function(e) { + e.create = function(e, t) { + return { + range: e, + color: t + } + }, e.is = function(e) { + var t = e; + return s.is(t.range) && u.is(t.color) + } + }(l || (l = {})), + function(e) { + e.create = function(e, t, n) { + return { + label: e, + textEdit: t, + additionalTextEdits: n + } + }, e.is = function(e) { + var t = e; + return le.string(t.label) && (le.undefined(t.textEdit) || b.is(t)) && (le.undefined(t.additionalTextEdits) || le.typedArray(t.additionalTextEdits, b.is)) + } + }(d || (d = {})), + function(e) { + e.Comment = "comment", e.Imports = "imports", e.Region = "region" + }(p || (p = {})), + function(e) { + e.create = function(e, t, n, r, o) { + var i = { + startLine: e, + endLine: t + }; + return le.defined(n) && (i.startCharacter = n), le.defined(r) && (i.endCharacter = r), le.defined(o) && (i.kind = o), i + }, e.is = function(e) { + var t = e; + return le.uinteger(t.startLine) && le.uinteger(t.startLine) && (le.undefined(t.startCharacter) || le.uinteger(t.startCharacter)) && (le.undefined(t.endCharacter) || le.uinteger(t.endCharacter)) && (le.undefined(t.kind) || le.string(t.kind)) + } + }(h || (h = {})), + function(e) { + e.create = function(e, t) { + return { + location: e, + message: t + } + }, e.is = function(e) { + var t = e; + return le.defined(t) && a.is(t.location) && le.string(t.message) + } + }(m || (m = {})), + function(e) { + e.Error = 1, e.Warning = 2, e.Information = 3, e.Hint = 4 + }(f || (f = {})), + function(e) { + e.Unnecessary = 1, e.Deprecated = 2 + }(g || (g = {})), + function(e) { + e.is = function(e) { + var t = e; + return null != t && le.string(t.href) + } + }(y || (y = {})), + function(e) { + e.create = function(e, t, n, r, o, i) { + var s = { + range: e, + message: t + }; + return le.defined(n) && (s.severity = n), le.defined(r) && (s.code = r), le.defined(o) && (s.source = o), le.defined(i) && (s.relatedInformation = i), s + }, e.is = function(e) { + var t, n = e; + return le.defined(n) && s.is(n.range) && le.string(n.message) && (le.number(n.severity) || le.undefined(n.severity)) && (le.integer(n.code) || le.string(n.code) || le.undefined(n.code)) && (le.undefined(n.codeDescription) || le.string(null === (t = n.codeDescription) || void 0 === t ? void 0 : t.href)) && (le.string(n.source) || le.undefined(n.source)) && (le.undefined(n.relatedInformation) || le.typedArray(n.relatedInformation, m.is)) + } + }(_ || (_ = {})), + function(e) { + e.create = function(e, t) { + for (var n = [], r = 2; r < arguments.length; r++) n[r - 2] = arguments[r]; + var o = { + title: e, + command: t + }; + return le.defined(n) && n.length > 0 && (o.arguments = n), o + }, e.is = function(e) { + var t = e; + return le.defined(t) && le.string(t.title) && le.string(t.command) + } + }(v || (v = {})), + function(e) { + e.replace = function(e, t) { + return { + range: e, + newText: t + } + }, e.insert = function(e, t) { + return { + range: { + start: e, + end: e + }, + newText: t + } + }, e.del = function(e) { + return { + range: e, + newText: "" + } + }, e.is = function(e) { + var t = e; + return le.objectLiteral(t) && le.string(t.newText) && s.is(t.range) + } + }(b || (b = {})), + function(e) { + e.create = function(e, t, n) { + var r = { + label: e + }; + return void 0 !== t && (r.needsConfirmation = t), void 0 !== n && (r.description = n), r + }, e.is = function(e) { + var t = e; + return void 0 !== t && le.objectLiteral(t) && le.string(t.label) && (le.boolean(t.needsConfirmation) || void 0 === t.needsConfirmation) && (le.string(t.description) || void 0 === t.description) + } + }(k || (k = {})), + function(e) { + e.is = function(e) { + return "string" == typeof e + } + }(w || (w = {})), + function(e) { + e.replace = function(e, t, n) { + return { + range: e, + newText: t, + annotationId: n + } + }, e.insert = function(e, t, n) { + return { + range: { + start: e, + end: e + }, + newText: t, + annotationId: n + } + }, e.del = function(e, t) { + return { + range: e, + newText: "", + annotationId: t + } + }, e.is = function(e) { + var t = e; + return b.is(t) && (k.is(t.annotationId) || w.is(t.annotationId)) + } + }(j || (j = {})), + function(e) { + e.create = function(e, t) { + return { + textDocument: e, + edits: t + } + }, e.is = function(e) { + var t = e; + return le.defined(t) && R.is(t.textDocument) && Array.isArray(t.edits) + } + }(x || (x = {})), + function(e) { + e.create = function(e, t, n) { + var r = { + kind: "create", + uri: e + }; + return void 0 === t || void 0 === t.overwrite && void 0 === t.ignoreIfExists || (r.options = t), void 0 !== n && (r.annotationId = n), r + }, e.is = function(e) { + var t = e; + return t && "create" === t.kind && le.string(t.uri) && (void 0 === t.options || (void 0 === t.options.overwrite || le.boolean(t.options.overwrite)) && (void 0 === t.options.ignoreIfExists || le.boolean(t.options.ignoreIfExists))) && (void 0 === t.annotationId || w.is(t.annotationId)) + } + }(E || (E = {})), + function(e) { + e.create = function(e, t, n, r) { + var o = { + kind: "rename", + oldUri: e, + newUri: t + }; + return void 0 === n || void 0 === n.overwrite && void 0 === n.ignoreIfExists || (o.options = n), void 0 !== r && (o.annotationId = r), o + }, e.is = function(e) { + var t = e; + return t && "rename" === t.kind && le.string(t.oldUri) && le.string(t.newUri) && (void 0 === t.options || (void 0 === t.options.overwrite || le.boolean(t.options.overwrite)) && (void 0 === t.options.ignoreIfExists || le.boolean(t.options.ignoreIfExists))) && (void 0 === t.annotationId || w.is(t.annotationId)) + } + }(C || (C = {})), + function(e) { + e.create = function(e, t, n) { + var r = { + kind: "delete", + uri: e + }; + return void 0 === t || void 0 === t.recursive && void 0 === t.ignoreIfNotExists || (r.options = t), void 0 !== n && (r.annotationId = n), r + }, e.is = function(e) { + var t = e; + return t && "delete" === t.kind && le.string(t.uri) && (void 0 === t.options || (void 0 === t.options.recursive || le.boolean(t.options.recursive)) && (void 0 === t.options.ignoreIfNotExists || le.boolean(t.options.ignoreIfNotExists))) && (void 0 === t.annotationId || w.is(t.annotationId)) + } + }(S || (S = {})), + function(e) { + e.is = function(e) { + var t = e; + return t && (void 0 !== t.changes || void 0 !== t.documentChanges) && (void 0 === t.documentChanges || t.documentChanges.every((function(e) { + return le.string(e.kind) ? E.is(e) || C.is(e) || S.is(e) : x.is(e) + }))) + } + }(T || (T = {})); + var P, I, R, O, A, N, D, M, q, L, $, F, z, B, U, H, W, G, V, K, J, X, Y, Q, Z, ee, te, ne, re, oe, ie = function() { + function e(e, t) { + this.edits = e, this.changeAnnotations = t + } + return e.prototype.insert = function(e, t, n) { + var r, o; + if (void 0 === n ? r = b.insert(e, t) : w.is(n) ? (o = n, r = j.insert(e, t, n)) : (this.assertChangeAnnotations(this.changeAnnotations), o = this.changeAnnotations.manage(n), r = j.insert(e, t, o)), this.edits.push(r), void 0 !== o) return o + }, e.prototype.replace = function(e, t, n) { + var r, o; + if (void 0 === n ? r = b.replace(e, t) : w.is(n) ? (o = n, r = j.replace(e, t, n)) : (this.assertChangeAnnotations(this.changeAnnotations), o = this.changeAnnotations.manage(n), r = j.replace(e, t, o)), this.edits.push(r), void 0 !== o) return o + }, e.prototype.delete = function(e, t) { + var n, r; + if (void 0 === t ? n = b.del(e) : w.is(t) ? (r = t, n = j.del(e, t)) : (this.assertChangeAnnotations(this.changeAnnotations), r = this.changeAnnotations.manage(t), n = j.del(e, r)), this.edits.push(n), void 0 !== r) return r + }, e.prototype.add = function(e) { + this.edits.push(e) + }, e.prototype.all = function() { + return this.edits + }, e.prototype.clear = function() { + this.edits.splice(0, this.edits.length) + }, e.prototype.assertChangeAnnotations = function(e) { + if (void 0 === e) throw new Error("Text edit change is not configured to manage change annotations.") + }, e + }(), + se = function() { + function e(e) { + this._annotations = void 0 === e ? Object.create(null) : e, this._counter = 0, this._size = 0 + } + return e.prototype.all = function() { + return this._annotations + }, Object.defineProperty(e.prototype, "size", { + get: function() { + return this._size + }, + enumerable: !1, + configurable: !0 + }), e.prototype.manage = function(e, t) { + var n; + if (w.is(e) ? n = e : (n = this.nextId(), t = e), void 0 !== this._annotations[n]) throw new Error("Id " + n + " is already in use."); + if (void 0 === t) throw new Error("No annotation provided for id " + n); + return this._annotations[n] = t, this._size++, n + }, e.prototype.nextId = function() { + return this._counter++, this._counter.toString() + }, e + }(), + ae = function() { + function e(e) { + var t = this; + this._textEditChanges = Object.create(null), void 0 !== e ? (this._workspaceEdit = e, e.documentChanges ? (this._changeAnnotations = new se(e.changeAnnotations), e.changeAnnotations = this._changeAnnotations.all(), e.documentChanges.forEach((function(e) { + if (x.is(e)) { + var n = new ie(e.edits, t._changeAnnotations); + t._textEditChanges[e.textDocument.uri] = n + } + }))) : e.changes && Object.keys(e.changes).forEach((function(n) { + var r = new ie(e.changes[n]); + t._textEditChanges[n] = r + }))) : this._workspaceEdit = {} + } + return Object.defineProperty(e.prototype, "edit", { + get: function() { + return this.initDocumentChanges(), void 0 !== this._changeAnnotations && (0 === this._changeAnnotations.size ? this._workspaceEdit.changeAnnotations = void 0 : this._workspaceEdit.changeAnnotations = this._changeAnnotations.all()), this._workspaceEdit + }, + enumerable: !1, + configurable: !0 + }), e.prototype.getTextEditChange = function(e) { + if (R.is(e)) { + if (this.initDocumentChanges(), void 0 === this._workspaceEdit.documentChanges) throw new Error("Workspace edit is not configured for document changes."); + var t = { + uri: e.uri, + version: e.version + }; + if (!(r = this._textEditChanges[t.uri])) { + var n = { + textDocument: t, + edits: o = [] + }; + this._workspaceEdit.documentChanges.push(n), r = new ie(o, this._changeAnnotations), this._textEditChanges[t.uri] = r + } + return r + } + if (this.initChanges(), void 0 === this._workspaceEdit.changes) throw new Error("Workspace edit is not configured for normal text edit changes."); + var r; + if (!(r = this._textEditChanges[e])) { + var o = []; + this._workspaceEdit.changes[e] = o, r = new ie(o), this._textEditChanges[e] = r + } + return r + }, e.prototype.initDocumentChanges = function() { + void 0 === this._workspaceEdit.documentChanges && void 0 === this._workspaceEdit.changes && (this._changeAnnotations = new se, this._workspaceEdit.documentChanges = [], this._workspaceEdit.changeAnnotations = this._changeAnnotations.all()) + }, e.prototype.initChanges = function() { + void 0 === this._workspaceEdit.documentChanges && void 0 === this._workspaceEdit.changes && (this._workspaceEdit.changes = Object.create(null)) + }, e.prototype.createFile = function(e, t, n) { + if (this.initDocumentChanges(), void 0 === this._workspaceEdit.documentChanges) throw new Error("Workspace edit is not configured for document changes."); + var r, o, i; + if (k.is(t) || w.is(t) ? r = t : n = t, void 0 === r ? o = E.create(e, n) : (i = w.is(r) ? r : this._changeAnnotations.manage(r), o = E.create(e, n, i)), this._workspaceEdit.documentChanges.push(o), void 0 !== i) return i + }, e.prototype.renameFile = function(e, t, n, r) { + if (this.initDocumentChanges(), void 0 === this._workspaceEdit.documentChanges) throw new Error("Workspace edit is not configured for document changes."); + var o, i, s; + if (k.is(n) || w.is(n) ? o = n : r = n, void 0 === o ? i = C.create(e, t, r) : (s = w.is(o) ? o : this._changeAnnotations.manage(o), i = C.create(e, t, r, s)), this._workspaceEdit.documentChanges.push(i), void 0 !== s) return s + }, e.prototype.deleteFile = function(e, t, n) { + if (this.initDocumentChanges(), void 0 === this._workspaceEdit.documentChanges) throw new Error("Workspace edit is not configured for document changes."); + var r, o, i; + if (k.is(t) || w.is(t) ? r = t : n = t, void 0 === r ? o = S.create(e, n) : (i = w.is(r) ? r : this._changeAnnotations.manage(r), o = S.create(e, n, i)), this._workspaceEdit.documentChanges.push(o), void 0 !== i) return i + }, e + }(); + ! function(e) { + e.create = function(e) { + return { + uri: e + } + }, e.is = function(e) { + var t = e; + return le.defined(t) && le.string(t.uri) + } + }(P || (P = {})), + function(e) { + e.create = function(e, t) { + return { + uri: e, + version: t + } + }, e.is = function(e) { + var t = e; + return le.defined(t) && le.string(t.uri) && le.integer(t.version) + } + }(I || (I = {})), + function(e) { + e.create = function(e, t) { + return { + uri: e, + version: t + } + }, e.is = function(e) { + var t = e; + return le.defined(t) && le.string(t.uri) && (null === t.version || le.integer(t.version)) + } + }(R || (R = {})), + function(e) { + e.create = function(e, t, n, r) { + return { + uri: e, + languageId: t, + version: n, + text: r + } + }, e.is = function(e) { + var t = e; + return le.defined(t) && le.string(t.uri) && le.string(t.languageId) && le.integer(t.version) && le.string(t.text) + } + }(O || (O = {})), + function(e) { + e.PlainText = "plaintext", e.Markdown = "markdown" + }(A || (A = {})), + function(e) { + e.is = function(t) { + var n = t; + return n === e.PlainText || n === e.Markdown + } + }(A || (A = {})), + function(e) { + e.is = function(e) { + var t = e; + return le.objectLiteral(e) && A.is(t.kind) && le.string(t.value) + } + }(N || (N = {})), + function(e) { + e.Text = 1, e.Method = 2, e.Function = 3, e.Constructor = 4, e.Field = 5, e.Variable = 6, e.Class = 7, e.Interface = 8, e.Module = 9, e.Property = 10, e.Unit = 11, e.Value = 12, e.Enum = 13, e.Keyword = 14, e.Snippet = 15, e.Color = 16, e.File = 17, e.Reference = 18, e.Folder = 19, e.EnumMember = 20, e.Constant = 21, e.Struct = 22, e.Event = 23, e.Operator = 24, e.TypeParameter = 25 + }(D || (D = {})), + function(e) { + e.PlainText = 1, e.Snippet = 2 + }(M || (M = {})), + function(e) { + e.Deprecated = 1 + }(q || (q = {})), + function(e) { + e.create = function(e, t, n) { + return { + newText: e, + insert: t, + replace: n + } + }, e.is = function(e) { + var t = e; + return t && le.string(t.newText) && s.is(t.insert) && s.is(t.replace) + } + }(L || (L = {})), + function(e) { + e.asIs = 1, e.adjustIndentation = 2 + }($ || ($ = {})), + function(e) { + e.create = function(e) { + return { + label: e + } + } + }(F || (F = {})), + function(e) { + e.create = function(e, t) { + return { + items: e || [], + isIncomplete: !!t + } + } + }(z || (z = {})), + function(e) { + e.fromPlainText = function(e) { + return e.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&") + }, e.is = function(e) { + var t = e; + return le.string(t) || le.objectLiteral(t) && le.string(t.language) && le.string(t.value) + } + }(B || (B = {})), + function(e) { + e.is = function(e) { + var t = e; + return !!t && le.objectLiteral(t) && (N.is(t.contents) || B.is(t.contents) || le.typedArray(t.contents, B.is)) && (void 0 === e.range || s.is(e.range)) + } + }(U || (U = {})), + function(e) { + e.create = function(e, t) { + return t ? { + label: e, + documentation: t + } : { + label: e + } + } + }(H || (H = {})), + function(e) { + e.create = function(e, t) { + for (var n = [], r = 2; r < arguments.length; r++) n[r - 2] = arguments[r]; + var o = { + label: e + }; + return le.defined(t) && (o.documentation = t), le.defined(n) ? o.parameters = n : o.parameters = [], o + } + }(W || (W = {})), + function(e) { + e.Text = 1, e.Read = 2, e.Write = 3 + }(G || (G = {})), + function(e) { + e.create = function(e, t) { + var n = { + range: e + }; + return le.number(t) && (n.kind = t), n + } + }(V || (V = {})), + function(e) { + e.File = 1, e.Module = 2, e.Namespace = 3, e.Package = 4, e.Class = 5, e.Method = 6, e.Property = 7, e.Field = 8, e.Constructor = 9, e.Enum = 10, e.Interface = 11, e.Function = 12, e.Variable = 13, e.Constant = 14, e.String = 15, e.Number = 16, e.Boolean = 17, e.Array = 18, e.Object = 19, e.Key = 20, e.Null = 21, e.EnumMember = 22, e.Struct = 23, e.Event = 24, e.Operator = 25, e.TypeParameter = 26 + }(K || (K = {})), + function(e) { + e.Deprecated = 1 + }(J || (J = {})), + function(e) { + e.create = function(e, t, n, r, o) { + var i = { + name: e, + kind: t, + location: { + uri: r, + range: n + } + }; + return o && (i.containerName = o), i + } + }(X || (X = {})), + function(e) { + e.create = function(e, t, n, r, o, i) { + var s = { + name: e, + detail: t, + kind: n, + range: r, + selectionRange: o + }; + return void 0 !== i && (s.children = i), s + }, e.is = function(e) { + var t = e; + return t && le.string(t.name) && le.number(t.kind) && s.is(t.range) && s.is(t.selectionRange) && (void 0 === t.detail || le.string(t.detail)) && (void 0 === t.deprecated || le.boolean(t.deprecated)) && (void 0 === t.children || Array.isArray(t.children)) && (void 0 === t.tags || Array.isArray(t.tags)) + } + }(Y || (Y = {})), + function(e) { + e.Empty = "", e.QuickFix = "quickfix", e.Refactor = "refactor", e.RefactorExtract = "refactor.extract", e.RefactorInline = "refactor.inline", e.RefactorRewrite = "refactor.rewrite", e.Source = "source", e.SourceOrganizeImports = "source.organizeImports", e.SourceFixAll = "source.fixAll" + }(Q || (Q = {})), + function(e) { + e.create = function(e, t) { + var n = { + diagnostics: e + }; + return null != t && (n.only = t), n + }, e.is = function(e) { + var t = e; + return le.defined(t) && le.typedArray(t.diagnostics, _.is) && (void 0 === t.only || le.typedArray(t.only, le.string)) + } + }(Z || (Z = {})), + function(e) { + e.create = function(e, t, n) { + var r = { + title: e + }, + o = !0; + return "string" == typeof t ? (o = !1, r.kind = t) : v.is(t) ? r.command = t : r.edit = t, o && void 0 !== n && (r.kind = n), r + }, e.is = function(e) { + var t = e; + return t && le.string(t.title) && (void 0 === t.diagnostics || le.typedArray(t.diagnostics, _.is)) && (void 0 === t.kind || le.string(t.kind)) && (void 0 !== t.edit || void 0 !== t.command) && (void 0 === t.command || v.is(t.command)) && (void 0 === t.isPreferred || le.boolean(t.isPreferred)) && (void 0 === t.edit || T.is(t.edit)) + } + }(ee || (ee = {})), + function(e) { + e.create = function(e, t) { + var n = { + range: e + }; + return le.defined(t) && (n.data = t), n + }, e.is = function(e) { + var t = e; + return le.defined(t) && s.is(t.range) && (le.undefined(t.command) || v.is(t.command)) + } + }(te || (te = {})), + function(e) { + e.create = function(e, t) { + return { + tabSize: e, + insertSpaces: t + } + }, e.is = function(e) { + var t = e; + return le.defined(t) && le.uinteger(t.tabSize) && le.boolean(t.insertSpaces) + } + }(ne || (ne = {})), + function(e) { + e.create = function(e, t, n) { + return { + range: e, + target: t, + data: n + } + }, e.is = function(e) { + var t = e; + return le.defined(t) && s.is(t.range) && (le.undefined(t.target) || le.string(t.target)) + } + }(re || (re = {})), + function(e) { + e.create = function(e, t) { + return { + range: e, + parent: t + } + }, e.is = function(t) { + var n = t; + return void 0 !== n && s.is(n.range) && (void 0 === n.parent || e.is(n.parent)) + } + }(oe || (oe = {})); + var ce, ue = ["\n", "\r\n", "\r"]; + ! function(e) { + function t(e, n) { + if (e.length <= 1) return e; + var r = e.length / 2 | 0, + o = e.slice(0, r), + i = e.slice(r); + t(o, n), t(i, n); + for (var s = 0, a = 0, c = 0; s < o.length && a < i.length;) { + var u = n(o[s], i[a]); + e[c++] = u <= 0 ? o[s++] : i[a++] + } + for (; s < o.length;) e[c++] = o[s++]; + for (; a < i.length;) e[c++] = i[a++]; + return e + } + e.create = function(e, t, n, r) { + return new de(e, t, n, r) + }, e.is = function(e) { + var t = e; + return !!(le.defined(t) && le.string(t.uri) && (le.undefined(t.languageId) || le.string(t.languageId)) && le.uinteger(t.lineCount) && le.func(t.getText) && le.func(t.positionAt) && le.func(t.offsetAt)) + }, e.applyEdits = function(e, n) { + for (var r = e.getText(), o = t(n, (function(e, t) { + var n = e.range.start.line - t.range.start.line; + return 0 === n ? e.range.start.character - t.range.start.character : n + })), i = r.length, s = o.length - 1; s >= 0; s--) { + var a = o[s], + c = e.offsetAt(a.range.start), + u = e.offsetAt(a.range.end); + if (!(u <= i)) throw new Error("Overlapping edit"); + r = r.substring(0, c) + a.newText + r.substring(u, r.length), i = c + } + return r + } + }(ce || (ce = {})); + var le, de = function() { + function e(e, t, n, r) { + this._uri = e, this._languageId = t, this._version = n, this._content = r, this._lineOffsets = void 0 + } + return Object.defineProperty(e.prototype, "uri", { + get: function() { + return this._uri + }, + enumerable: !1, + configurable: !0 + }), Object.defineProperty(e.prototype, "languageId", { + get: function() { + return this._languageId + }, + enumerable: !1, + configurable: !0 + }), Object.defineProperty(e.prototype, "version", { + get: function() { + return this._version + }, + enumerable: !1, + configurable: !0 + }), e.prototype.getText = function(e) { + if (e) { + var t = this.offsetAt(e.start), + n = this.offsetAt(e.end); + return this._content.substring(t, n) + } + return this._content + }, e.prototype.update = function(e, t) { + this._content = e.text, this._version = t, this._lineOffsets = void 0 + }, e.prototype.getLineOffsets = function() { + if (void 0 === this._lineOffsets) { + for (var e = [], t = this._content, n = !0, r = 0; r < t.length; r++) { + n && (e.push(r), n = !1); + var o = t.charAt(r); + n = "\r" === o || "\n" === o, "\r" === o && r + 1 < t.length && "\n" === t.charAt(r + 1) && r++ + } + n && t.length > 0 && e.push(t.length), this._lineOffsets = e + } + return this._lineOffsets + }, e.prototype.positionAt = function(e) { + e = Math.max(Math.min(e, this._content.length), 0); + var t = this.getLineOffsets(), + n = 0, + r = t.length; + if (0 === r) return i.create(0, e); + for (; n < r;) { + var o = Math.floor((n + r) / 2); + t[o] > e ? r = o : n = o + 1 + } + var s = n - 1; + return i.create(s, e - t[s]) + }, e.prototype.offsetAt = function(e) { + var t = this.getLineOffsets(); + if (e.line >= t.length) return this._content.length; + if (e.line < 0) return 0; + var n = t[e.line], + r = e.line + 1 < t.length ? t[e.line + 1] : this._content.length; + return Math.max(Math.min(n + e.character, r), n) + }, Object.defineProperty(e.prototype, "lineCount", { + get: function() { + return this.getLineOffsets().length + }, + enumerable: !1, + configurable: !0 + }), e + }(); + ! function(e) { + var t = Object.prototype.toString; + e.defined = function(e) { + return void 0 !== e + }, e.undefined = function(e) { + return void 0 === e + }, e.boolean = function(e) { + return !0 === e || !1 === e + }, e.string = function(e) { + return "[object String]" === t.call(e) + }, e.number = function(e) { + return "[object Number]" === t.call(e) + }, e.numberRange = function(e, n, r) { + return "[object Number]" === t.call(e) && n <= e && e <= r + }, e.integer = function(e) { + return "[object Number]" === t.call(e) && -2147483648 <= e && e <= 2147483647 + }, e.uinteger = function(e) { + return "[object Number]" === t.call(e) && 0 <= e && e <= 2147483647 + }, e.func = function(e) { + return "[object Function]" === t.call(e) + }, e.objectLiteral = function(e) { + return null !== e && "object" == typeof e + }, e.typedArray = function(e, t) { + return Array.isArray(e) && e.every(t) + } + }(le || (le = {})) + }, + 6265: function(e, t, n) { + "use strict"; + var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) { + void 0 === r && (r = n), Object.defineProperty(e, r, { + enumerable: !0, + get: function() { + return t[n] + } + }) + } : function(e, t, n, r) { + void 0 === r && (r = n), e[r] = t[n] + }), + o = this && this.__exportStar || function(e, t) { + for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n) + }; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ProposedFeatures = t.SemanticTokensBuilder = void 0; + const i = n(9817); + Object.defineProperty(t, "SemanticTokensBuilder", { + enumerable: !0, + get: function() { + return i.SemanticTokensBuilder + } + }), o(n(273), t), o(n(9891), t), (t.ProposedFeatures || (t.ProposedFeatures = {})).all = { + __brand: "features" + } + }, + 7985: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.CallHierarchyFeature = void 0; + const r = n(273); + t.CallHierarchyFeature = e => class extends e { + get callHierarchy() { + return { + onPrepare: e => { + this.connection.onRequest(r.CallHierarchyPrepareRequest.type, ((t, n) => e(t, n, this.attachWorkDoneProgress(t), void 0))) + }, + onIncomingCalls: e => { + const t = r.CallHierarchyIncomingCallsRequest.type; + this.connection.onRequest(t, ((n, r) => e(n, r, this.attachWorkDoneProgress(n), this.attachPartialResultProgress(t, n)))) + }, + onOutgoingCalls: e => { + const t = r.CallHierarchyOutgoingCallsRequest.type; + this.connection.onRequest(t, ((n, r) => e(n, r, this.attachWorkDoneProgress(n), this.attachPartialResultProgress(t, n)))) + } + } + } + } + }, + 2507: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ConfigurationFeature = void 0; + const r = n(273), + o = n(289); + t.ConfigurationFeature = e => class extends e { + getConfiguration(e) { + return e ? o.string(e) ? this._getConfiguration({ + section: e + }) : this._getConfiguration(e) : this._getConfiguration({}) + } + _getConfiguration(e) { + let t = { + items: Array.isArray(e) ? e : [e] + }; + return this.connection.sendRequest(r.ConfigurationRequest.type, t).then((t => Array.isArray(e) ? t : t[0])) + } + } + }, + 828: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.FileOperationsFeature = void 0; + const r = n(273); + t.FileOperationsFeature = e => class extends e { + onDidCreateFiles(e) { + this.connection.onNotification(r.DidCreateFilesNotification.type, (t => { + e(t) + })) + } + onDidRenameFiles(e) { + this.connection.onNotification(r.DidRenameFilesNotification.type, (t => { + e(t) + })) + } + onDidDeleteFiles(e) { + this.connection.onNotification(r.DidDeleteFilesNotification.type, (t => { + e(t) + })) + } + onWillCreateFiles(e) { + return this.connection.onRequest(r.WillCreateFilesRequest.type, ((t, n) => e(t, n))) + } + onWillRenameFiles(e) { + return this.connection.onRequest(r.WillRenameFilesRequest.type, ((t, n) => e(t, n))) + } + onWillDeleteFiles(e) { + return this.connection.onRequest(r.WillDeleteFilesRequest.type, ((t, n) => e(t, n))) + } + } + }, + 2776: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.LinkedEditingRangeFeature = void 0; + const r = n(273); + t.LinkedEditingRangeFeature = e => class extends e { + onLinkedEditingRange(e) { + this.connection.onRequest(r.LinkedEditingRangeRequest.type, ((t, n) => e(t, n, this.attachWorkDoneProgress(t), void 0))) + } + } + }, + 8120: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.MonikerFeature = void 0; + const r = n(273); + t.MonikerFeature = e => class extends e { + get moniker() { + return { + on: e => { + const t = r.MonikerRequest.type; + this.connection.onRequest(t, ((n, r) => e(n, r, this.attachWorkDoneProgress(n), this.attachPartialResultProgress(t, n)))) + } + } + } + } + }, + 2731: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.attachPartialResult = t.ProgressFeature = t.attachWorkDone = void 0; + const r = n(273), + o = n(7560); + class i { + constructor(e, t) { + this._connection = e, this._token = t, i.Instances.set(this._token, this) + } + begin(e, t, n, o) { + let i = { + kind: "begin", + title: e, + percentage: t, + message: n, + cancellable: o + }; + this._connection.sendProgress(r.WorkDoneProgress.type, this._token, i) + } + report(e, t) { + let n = { + kind: "report" + }; + "number" == typeof e ? (n.percentage = e, void 0 !== t && (n.message = t)) : n.message = e, this._connection.sendProgress(r.WorkDoneProgress.type, this._token, n) + } + done() { + i.Instances.delete(this._token), this._connection.sendProgress(r.WorkDoneProgress.type, this._token, { + kind: "end" + }) + } + } + i.Instances = new Map; + class s extends i { + constructor(e, t) { + super(e, t), this._source = new r.CancellationTokenSource + } + get token() { + return this._source.token + } + done() { + this._source.dispose(), super.done() + } + cancel() { + this._source.cancel() + } + } + class a { + constructor() {} + begin() {} + report() {} + done() {} + } + class c extends a { + constructor() { + super(), this._source = new r.CancellationTokenSource + } + get token() { + return this._source.token + } + done() { + this._source.dispose() + } + cancel() { + this._source.cancel() + } + } + var u; + t.attachWorkDone = function(e, t) { + if (void 0 === t || void 0 === t.workDoneToken) return new a; + const n = t.workDoneToken; + return delete t.workDoneToken, new i(e, n) + }, t.ProgressFeature = e => class extends e { + constructor() { + super(), this._progressSupported = !1 + } + initialize(e) { + var t; + !0 === (null === (t = null == e ? void 0 : e.window) || void 0 === t ? void 0 : t.workDoneProgress) && (this._progressSupported = !0, this.connection.onNotification(r.WorkDoneProgressCancelNotification.type, (e => { + let t = i.Instances.get(e.token); + (t instanceof s || t instanceof c) && t.cancel() + }))) + } + attachWorkDoneProgress(e) { + return void 0 === e ? new a : new i(this.connection, e) + } + createWorkDoneProgress() { + if (this._progressSupported) { + const e = o.generateUuid(); + return this.connection.sendRequest(r.WorkDoneProgressCreateRequest.type, { + token: e + }).then((() => new s(this.connection, e))) + } + return Promise.resolve(new c) + } + }, + function(e) { + e.type = new r.ProgressType + }(u || (u = {})); + class l { + constructor(e, t) { + this._connection = e, this._token = t + } + report(e) { + this._connection.sendProgress(u.type, this._token, e) + } + } + t.attachPartialResult = function(e, t) { + if (void 0 === t || void 0 === t.partialResultToken) return; + const n = t.partialResultToken; + return delete t.partialResultToken, new l(e, n) + } + }, + 9817: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.SemanticTokensBuilder = t.SemanticTokensFeature = void 0; + const r = n(273); + t.SemanticTokensFeature = e => class extends e { + get semanticTokens() { + return { + on: e => { + const t = r.SemanticTokensRequest.type; + this.connection.onRequest(t, ((n, r) => e(n, r, this.attachWorkDoneProgress(n), this.attachPartialResultProgress(t, n)))) + }, + onDelta: e => { + const t = r.SemanticTokensDeltaRequest.type; + this.connection.onRequest(t, ((n, r) => e(n, r, this.attachWorkDoneProgress(n), this.attachPartialResultProgress(t, n)))) + }, + onRange: e => { + const t = r.SemanticTokensRangeRequest.type; + this.connection.onRequest(t, ((n, r) => e(n, r, this.attachWorkDoneProgress(n), this.attachPartialResultProgress(t, n)))) + } + } + } + }, t.SemanticTokensBuilder = class { + constructor() { + this._prevData = void 0, this.initialize() + } + initialize() { + this._id = Date.now(), this._prevLine = 0, this._prevChar = 0, this._data = [], this._dataLen = 0 + } + push(e, t, n, r, o) { + let i = e, + s = t; + this._dataLen > 0 && (i -= this._prevLine, 0 === i && (s -= this._prevChar)), this._data[this._dataLen++] = i, this._data[this._dataLen++] = s, this._data[this._dataLen++] = n, this._data[this._dataLen++] = r, this._data[this._dataLen++] = o, this._prevLine = e, this._prevChar = t + } + get id() { + return this._id.toString() + } + previousResult(e) { + this.id === e && (this._prevData = this._data), this.initialize() + } + build() { + return this._prevData = void 0, { + resultId: this.id, + data: this._data + } + } + canBuildEdits() { + return void 0 !== this._prevData + } + buildEdits() { + if (void 0 !== this._prevData) { + const e = this._prevData.length, + t = this._data.length; + let n = 0; + for (; n < t && n < e && this._prevData[n] === this._data[n];) n++; + if (n < t && n < e) { + let r = 0; + for (; r < t && r < e && this._prevData[e - 1 - r] === this._data[t - 1 - r];) r++; + const o = this._data.slice(n, t - r); + return { + resultId: this.id, + edits: [{ + start: n, + deleteCount: e - r - n, + data: o + }] + } + } + return n < t ? { + resultId: this.id, + edits: [{ + start: n, + deleteCount: 0, + data: this._data.slice(n) + }] + } : n < e ? { + resultId: this.id, + edits: [{ + start: n, + deleteCount: e - n + }] + } : { + resultId: this.id, + edits: [] + } + } + return this.build() + } + } + }, + 9891: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.createConnection = t.combineFeatures = t.combineLanguagesFeatures = t.combineWorkspaceFeatures = t.combineWindowFeatures = t.combineClientFeatures = t.combineTracerFeatures = t.combineTelemetryFeatures = t.combineConsoleFeatures = t._LanguagesImpl = t.BulkUnregistration = t.BulkRegistration = t.ErrorMessageTracker = t.TextDocuments = void 0; + const r = n(273), + o = n(289), + i = n(7560), + s = n(2731), + a = n(2507), + c = n(7021), + u = n(7985), + l = n(9817), + d = n(5421), + p = n(828), + h = n(2776), + m = n(8120); + + function f(e) { + if (null !== e) return e + } + t.TextDocuments = class { + constructor(e) { + this._documents = Object.create(null), this._configuration = e, this._onDidChangeContent = new r.Emitter, this._onDidOpen = new r.Emitter, this._onDidClose = new r.Emitter, this._onDidSave = new r.Emitter, this._onWillSave = new r.Emitter + } + get onDidChangeContent() { + return this._onDidChangeContent.event + } + get onDidOpen() { + return this._onDidOpen.event + } + get onWillSave() { + return this._onWillSave.event + } + onWillSaveWaitUntil(e) { + this._willSaveWaitUntil = e + } + get onDidSave() { + return this._onDidSave.event + } + get onDidClose() { + return this._onDidClose.event + } + get(e) { + return this._documents[e] + } + all() { + return Object.keys(this._documents).map((e => this._documents[e])) + } + keys() { + return Object.keys(this._documents) + } + listen(e) { + e.__textDocumentSync = r.TextDocumentSyncKind.Full, e.onDidOpenTextDocument((e => { + let t = e.textDocument, + n = this._configuration.create(t.uri, t.languageId, t.version, t.text); + this._documents[t.uri] = n; + let r = Object.freeze({ + document: n + }); + this._onDidOpen.fire(r), this._onDidChangeContent.fire(r) + })), e.onDidChangeTextDocument((e => { + let t = e.textDocument, + n = e.contentChanges; + if (0 === n.length) return; + let r = this._documents[t.uri]; + const { + version: o + } = t; + if (null == o) throw new Error(`Received document change event for ${t.uri} without valid version identifier`); + r = this._configuration.update(r, n, o), this._documents[t.uri] = r, this._onDidChangeContent.fire(Object.freeze({ + document: r + })) + })), e.onDidCloseTextDocument((e => { + let t = this._documents[e.textDocument.uri]; + t && (delete this._documents[e.textDocument.uri], this._onDidClose.fire(Object.freeze({ + document: t + }))) + })), e.onWillSaveTextDocument((e => { + let t = this._documents[e.textDocument.uri]; + t && this._onWillSave.fire(Object.freeze({ + document: t, + reason: e.reason + })) + })), e.onWillSaveTextDocumentWaitUntil(((e, t) => { + let n = this._documents[e.textDocument.uri]; + return n && this._willSaveWaitUntil ? this._willSaveWaitUntil(Object.freeze({ + document: n, + reason: e.reason + }), t) : [] + })), e.onDidSaveTextDocument((e => { + let t = this._documents[e.textDocument.uri]; + t && this._onDidSave.fire(Object.freeze({ + document: t + })) + })) + } + }, t.ErrorMessageTracker = class { + constructor() { + this._messages = Object.create(null) + } + add(e) { + let t = this._messages[e]; + t || (t = 0), t++, this._messages[e] = t + } + sendErrors(e) { + Object.keys(this._messages).forEach((t => { + e.window.showErrorMessage(t) + })) + } + }; + class g { + constructor() {} + rawAttach(e) { + this._rawConnection = e + } + attach(e) { + this._connection = e + } + get connection() { + if (!this._connection) throw new Error("Remote is not attached to a connection yet."); + return this._connection + } + fillServerCapabilities(e) {} + initialize(e) {} + error(e) { + this.send(r.MessageType.Error, e) + } + warn(e) { + this.send(r.MessageType.Warning, e) + } + info(e) { + this.send(r.MessageType.Info, e) + } + log(e) { + this.send(r.MessageType.Log, e) + } + send(e, t) { + this._rawConnection && this._rawConnection.sendNotification(r.LogMessageNotification.type, { + type: e, + message: t + }) + } + } + const y = d.ShowDocumentFeature(s.ProgressFeature(class { + constructor() {} + attach(e) { + this._connection = e + } + get connection() { + if (!this._connection) throw new Error("Remote is not attached to a connection yet."); + return this._connection + } + initialize(e) {} + fillServerCapabilities(e) {} + showErrorMessage(e, ...t) { + let n = { + type: r.MessageType.Error, + message: e, + actions: t + }; + return this.connection.sendRequest(r.ShowMessageRequest.type, n).then(f) + } + showWarningMessage(e, ...t) { + let n = { + type: r.MessageType.Warning, + message: e, + actions: t + }; + return this.connection.sendRequest(r.ShowMessageRequest.type, n).then(f) + } + showInformationMessage(e, ...t) { + let n = { + type: r.MessageType.Info, + message: e, + actions: t + }; + return this.connection.sendRequest(r.ShowMessageRequest.type, n).then(f) + } + })); + (t.BulkRegistration || (t.BulkRegistration = {})).create = function() { + return new _ + }; + class _ { + constructor() { + this._registrations = [], this._registered = new Set + } + add(e, t) { + const n = o.string(e) ? e : e.method; + if (this._registered.has(n)) throw new Error(`${n} is already added to this registration`); + const r = i.generateUuid(); + this._registrations.push({ + id: r, + method: n, + registerOptions: t || {} + }), this._registered.add(n) + } + asRegistrationParams() { + return { + registrations: this._registrations + } + } + }(t.BulkUnregistration || (t.BulkUnregistration = {})).create = function() { + return new v(void 0, []) + }; + class v { + constructor(e, t) { + this._connection = e, this._unregistrations = new Map, t.forEach((e => { + this._unregistrations.set(e.method, e) + })) + } + get isAttached() { + return !!this._connection + } + attach(e) { + this._connection = e + } + add(e) { + this._unregistrations.set(e.method, e) + } + dispose() { + let e = []; + for (let t of this._unregistrations.values()) e.push(t); + let t = { + unregisterations: e + }; + this._connection.sendRequest(r.UnregistrationRequest.type, t).then(void 0, (e => { + this._connection.console.info("Bulk unregistration failed.") + })) + } + disposeSingle(e) { + const t = o.string(e) ? e : e.method, + n = this._unregistrations.get(t); + if (!n) return !1; + let i = { + unregisterations: [n] + }; + return this._connection.sendRequest(r.UnregistrationRequest.type, i).then((() => { + this._unregistrations.delete(t) + }), (e => { + this._connection.console.info(`Un-registering request handler for ${n.id} failed.`) + })), !0 + } + } + class b { + attach(e) { + this._connection = e + } + get connection() { + if (!this._connection) throw new Error("Remote is not attached to a connection yet."); + return this._connection + } + initialize(e) {} + fillServerCapabilities(e) {} + register(e, t, n) { + return e instanceof _ ? this.registerMany(e) : e instanceof v ? this.registerSingle1(e, t, n) : this.registerSingle2(e, t) + } + registerSingle1(e, t, n) { + const s = o.string(t) ? t : t.method, + a = i.generateUuid(); + let c = { + registrations: [{ + id: a, + method: s, + registerOptions: n || {} + }] + }; + return e.isAttached || e.attach(this.connection), this.connection.sendRequest(r.RegistrationRequest.type, c).then((t => (e.add({ + id: a, + method: s + }), e)), (e => (this.connection.console.info(`Registering request handler for ${s} failed.`), Promise.reject(e)))) + } + registerSingle2(e, t) { + const n = o.string(e) ? e : e.method, + s = i.generateUuid(); + let a = { + registrations: [{ + id: s, + method: n, + registerOptions: t || {} + }] + }; + return this.connection.sendRequest(r.RegistrationRequest.type, a).then((e => r.Disposable.create((() => { + this.unregisterSingle(s, n) + }))), (e => (this.connection.console.info(`Registering request handler for ${n} failed.`), Promise.reject(e)))) + } + unregisterSingle(e, t) { + let n = { + unregisterations: [{ + id: e, + method: t + }] + }; + return this.connection.sendRequest(r.UnregistrationRequest.type, n).then(void 0, (t => { + this.connection.console.info(`Un-registering request handler for ${e} failed.`) + })) + } + registerMany(e) { + let t = e.asRegistrationParams(); + return this.connection.sendRequest(r.RegistrationRequest.type, t).then((() => new v(this._connection, t.registrations.map((e => ({ + id: e.id, + method: e.method + }))))), (e => (this.connection.console.info("Bulk registration failed."), Promise.reject(e)))) + } + } + const k = p.FileOperationsFeature(c.WorkspaceFoldersFeature(a.ConfigurationFeature(class { + constructor() {} + attach(e) { + this._connection = e + } + get connection() { + if (!this._connection) throw new Error("Remote is not attached to a connection yet."); + return this._connection + } + initialize(e) {} + fillServerCapabilities(e) {} + applyEdit(e) { + let t = (n = e) && n.edit ? e : { + edit: e + }; + var n; + return this.connection.sendRequest(r.ApplyWorkspaceEditRequest.type, t) + } + }))); + class w { + constructor() { + this._trace = r.Trace.Off + } + attach(e) { + this._connection = e + } + get connection() { + if (!this._connection) throw new Error("Remote is not attached to a connection yet."); + return this._connection + } + initialize(e) {} + fillServerCapabilities(e) {} + set trace(e) { + this._trace = e + } + log(e, t) { + this._trace !== r.Trace.Off && this.connection.sendNotification(r.LogTraceNotification.type, { + message: e, + verbose: this._trace === r.Trace.Verbose ? t : void 0 + }) + } + } + class j { + constructor() {} + attach(e) { + this._connection = e + } + get connection() { + if (!this._connection) throw new Error("Remote is not attached to a connection yet."); + return this._connection + } + initialize(e) {} + fillServerCapabilities(e) {} + logEvent(e) { + this.connection.sendNotification(r.TelemetryEventNotification.type, e) + } + } + class x { + constructor() {} + attach(e) { + this._connection = e + } + get connection() { + if (!this._connection) throw new Error("Remote is not attached to a connection yet."); + return this._connection + } + initialize(e) {} + fillServerCapabilities(e) {} + attachWorkDoneProgress(e) { + return s.attachWorkDone(this.connection, e) + } + attachPartialResultProgress(e, t) { + return s.attachPartialResult(this.connection, t) + } + } + t._LanguagesImpl = x; + const E = m.MonikerFeature(h.LinkedEditingRangeFeature(l.SemanticTokensFeature(u.CallHierarchyFeature(x)))); + + function C(e, t) { + return function(n) { + return t(e(n)) + } + } + + function S(e, t) { + return function(n) { + return t(e(n)) + } + } + + function T(e, t) { + return function(n) { + return t(e(n)) + } + } + + function P(e, t) { + return function(n) { + return t(e(n)) + } + } + + function I(e, t) { + return function(n) { + return t(e(n)) + } + } + + function R(e, t) { + return function(n) { + return t(e(n)) + } + } + t.combineConsoleFeatures = C, t.combineTelemetryFeatures = S, t.combineTracerFeatures = T, t.combineClientFeatures = P, t.combineWindowFeatures = I, t.combineWorkspaceFeatures = R, t.combineLanguagesFeatures = function(e, t) { + return function(n) { + return t(e(n)) + } + }, t.combineFeatures = function(e, t) { + function n(e, t, n) { + return e && t ? n(e, t) : e || t + } + return { + __brand: "features", + console: n(e.console, t.console, C), + tracer: n(e.tracer, t.tracer, T), + telemetry: n(e.telemetry, t.telemetry, S), + client: n(e.client, t.client, P), + window: n(e.window, t.window, I), + workspace: n(e.workspace, t.workspace, R) + } + }, t.createConnection = function(e, t, n) { + const i = n && n.console ? new(n.console(g)) : new g, + a = e(i); + i.rawAttach(a); + const c = n && n.tracer ? new(n.tracer(w)) : new w, + u = n && n.telemetry ? new(n.telemetry(j)) : new j, + l = n && n.client ? new(n.client(b)) : new b, + d = n && n.window ? new(n.window(y)) : new y, + p = n && n.workspace ? new(n.workspace(k)) : new k, + h = n && n.languages ? new(n.languages(E)) : new E, + m = [i, c, u, l, d, p, h]; + + function f(e) { + return e instanceof Promise ? e : o.thenable(e) ? new Promise(((t, n) => { + e.then((e => t(e)), (e => n(e))) + })) : Promise.resolve(e) + } + let _, v, x, C = { + listen: () => a.listen(), + sendRequest: (e, ...t) => a.sendRequest(o.string(e) ? e : e.method, ...t), + onRequest: (e, t) => a.onRequest(e, t), + sendNotification: (e, t) => { + const n = o.string(e) ? e : e.method; + 1 === arguments.length ? a.sendNotification(n) : a.sendNotification(n, t) + }, + onNotification: (e, t) => a.onNotification(e, t), + onProgress: a.onProgress, + sendProgress: a.sendProgress, + onInitialize: e => v = e, + onInitialized: e => a.onNotification(r.InitializedNotification.type, e), + onShutdown: e => _ = e, + onExit: e => x = e, + get console() { + return i + }, + get telemetry() { + return u + }, + get tracer() { + return c + }, + get client() { + return l + }, + get window() { + return d + }, + get workspace() { + return p + }, + get languages() { + return h + }, + onDidChangeConfiguration: e => a.onNotification(r.DidChangeConfigurationNotification.type, e), + onDidChangeWatchedFiles: e => a.onNotification(r.DidChangeWatchedFilesNotification.type, e), + __textDocumentSync: void 0, + onDidOpenTextDocument: e => a.onNotification(r.DidOpenTextDocumentNotification.type, e), + onDidChangeTextDocument: e => a.onNotification(r.DidChangeTextDocumentNotification.type, e), + onDidCloseTextDocument: e => a.onNotification(r.DidCloseTextDocumentNotification.type, e), + onWillSaveTextDocument: e => a.onNotification(r.WillSaveTextDocumentNotification.type, e), + onWillSaveTextDocumentWaitUntil: e => a.onRequest(r.WillSaveTextDocumentWaitUntilRequest.type, e), + onDidSaveTextDocument: e => a.onNotification(r.DidSaveTextDocumentNotification.type, e), + sendDiagnostics: e => a.sendNotification(r.PublishDiagnosticsNotification.type, e), + onHover: e => a.onRequest(r.HoverRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), void 0))), + onCompletion: e => a.onRequest(r.CompletionRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), s.attachPartialResult(a, t)))), + onCompletionResolve: e => a.onRequest(r.CompletionResolveRequest.type, e), + onSignatureHelp: e => a.onRequest(r.SignatureHelpRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), void 0))), + onDeclaration: e => a.onRequest(r.DeclarationRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), s.attachPartialResult(a, t)))), + onDefinition: e => a.onRequest(r.DefinitionRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), s.attachPartialResult(a, t)))), + onTypeDefinition: e => a.onRequest(r.TypeDefinitionRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), s.attachPartialResult(a, t)))), + onImplementation: e => a.onRequest(r.ImplementationRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), s.attachPartialResult(a, t)))), + onReferences: e => a.onRequest(r.ReferencesRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), s.attachPartialResult(a, t)))), + onDocumentHighlight: e => a.onRequest(r.DocumentHighlightRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), s.attachPartialResult(a, t)))), + onDocumentSymbol: e => a.onRequest(r.DocumentSymbolRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), s.attachPartialResult(a, t)))), + onWorkspaceSymbol: e => a.onRequest(r.WorkspaceSymbolRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), s.attachPartialResult(a, t)))), + onCodeAction: e => a.onRequest(r.CodeActionRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), s.attachPartialResult(a, t)))), + onCodeActionResolve: e => a.onRequest(r.CodeActionResolveRequest.type, ((t, n) => e(t, n))), + onCodeLens: e => a.onRequest(r.CodeLensRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), s.attachPartialResult(a, t)))), + onCodeLensResolve: e => a.onRequest(r.CodeLensResolveRequest.type, ((t, n) => e(t, n))), + onDocumentFormatting: e => a.onRequest(r.DocumentFormattingRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), void 0))), + onDocumentRangeFormatting: e => a.onRequest(r.DocumentRangeFormattingRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), void 0))), + onDocumentOnTypeFormatting: e => a.onRequest(r.DocumentOnTypeFormattingRequest.type, ((t, n) => e(t, n))), + onRenameRequest: e => a.onRequest(r.RenameRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), void 0))), + onPrepareRename: e => a.onRequest(r.PrepareRenameRequest.type, ((t, n) => e(t, n))), + onDocumentLinks: e => a.onRequest(r.DocumentLinkRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), s.attachPartialResult(a, t)))), + onDocumentLinkResolve: e => a.onRequest(r.DocumentLinkResolveRequest.type, ((t, n) => e(t, n))), + onDocumentColor: e => a.onRequest(r.DocumentColorRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), s.attachPartialResult(a, t)))), + onColorPresentation: e => a.onRequest(r.ColorPresentationRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), s.attachPartialResult(a, t)))), + onFoldingRanges: e => a.onRequest(r.FoldingRangeRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), s.attachPartialResult(a, t)))), + onSelectionRanges: e => a.onRequest(r.SelectionRangeRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), s.attachPartialResult(a, t)))), + onExecuteCommand: e => a.onRequest(r.ExecuteCommandRequest.type, ((t, n) => e(t, n, s.attachWorkDone(a, t), void 0))), + dispose: () => a.dispose() + }; + for (let e of m) e.attach(C); + return a.onRequest(r.InitializeRequest.type, (e => { + t.initialize(e), o.string(e.trace) && (c.trace = r.Trace.fromString(e.trace)); + for (let t of m) t.initialize(e.capabilities); + if (v) return f(v(e, (new r.CancellationTokenSource).token, s.attachWorkDone(a, e), void 0)).then((e => { + if (e instanceof r.ResponseError) return e; + let t = e; + t || (t = { + capabilities: {} + }); + let n = t.capabilities; + n || (n = {}, t.capabilities = n), void 0 === n.textDocumentSync || null === n.textDocumentSync ? n.textDocumentSync = o.number(C.__textDocumentSync) ? C.__textDocumentSync : r.TextDocumentSyncKind.None : o.number(n.textDocumentSync) || o.number(n.textDocumentSync.change) || (n.textDocumentSync.change = o.number(C.__textDocumentSync) ? C.__textDocumentSync : r.TextDocumentSyncKind.None); + for (let e of m) e.fillServerCapabilities(n); + return t + })); { + let e = { + capabilities: { + textDocumentSync: r.TextDocumentSyncKind.None + } + }; + for (let t of m) t.fillServerCapabilities(e.capabilities); + return e + } + })), a.onRequest(r.ShutdownRequest.type, (() => (t.shutdownReceived = !0, _ ? _((new r.CancellationTokenSource).token) : void 0))), a.onNotification(r.ExitNotification.type, (() => { + try { + x && x() + } finally { + t.shutdownReceived ? t.exit(0) : t.exit(1) + } + })), a.onNotification(r.SetTraceNotification.type, (e => { + c.trace = r.Trace.fromString(e.value) + })), C + } + }, + 5421: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ShowDocumentFeature = void 0; + const r = n(273); + t.ShowDocumentFeature = e => class extends e { + showDocument(e) { + return this.connection.sendRequest(r.ShowDocumentRequest.type, e) + } + } + }, + 289: (e, t) => { + "use strict"; + + function n(e) { + return "string" == typeof e || e instanceof String + } + + function r(e) { + return "function" == typeof e + } + + function o(e) { + return Array.isArray(e) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.thenable = t.typedArray = t.stringArray = t.array = t.func = t.error = t.number = t.string = t.boolean = void 0, t.boolean = function(e) { + return !0 === e || !1 === e + }, t.string = n, t.number = function(e) { + return "number" == typeof e || e instanceof Number + }, t.error = function(e) { + return e instanceof Error + }, t.func = r, t.array = o, t.stringArray = function(e) { + return o(e) && e.every((e => n(e))) + }, t.typedArray = function(e, t) { + return Array.isArray(e) && e.every(t) + }, t.thenable = function(e) { + return e && r(e.then) + } + }, + 7560: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.generateUuid = t.parse = t.isUUID = t.v4 = t.empty = void 0; + class n { + constructor(e) { + this._value = e + } + asHex() { + return this._value + } + equals(e) { + return this.asHex() === e.asHex() + } + } + class r extends n { + constructor() { + super([r._randomHex(), r._randomHex(), r._randomHex(), r._randomHex(), r._randomHex(), r._randomHex(), r._randomHex(), r._randomHex(), "-", r._randomHex(), r._randomHex(), r._randomHex(), r._randomHex(), "-", "4", r._randomHex(), r._randomHex(), r._randomHex(), "-", r._oneOf(r._timeHighBits), r._randomHex(), r._randomHex(), r._randomHex(), "-", r._randomHex(), r._randomHex(), r._randomHex(), r._randomHex(), r._randomHex(), r._randomHex(), r._randomHex(), r._randomHex(), r._randomHex(), r._randomHex(), r._randomHex(), r._randomHex()].join("")) + } + static _oneOf(e) { + return e[Math.floor(e.length * Math.random())] + } + static _randomHex() { + return r._oneOf(r._chars) + } + } + + function o() { + return new r + } + r._chars = ["0", "1", "2", "3", "4", "5", "6", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"], r._timeHighBits = ["8", "9", "a", "b"], t.empty = new n("00000000-0000-0000-0000-000000000000"), t.v4 = o; + const i = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i; + + function s(e) { + return i.test(e) + } + t.isUUID = s, t.parse = function(e) { + if (!s(e)) throw new Error("invalid uuid"); + return new n(e) + }, t.generateUuid = function() { + return o().asHex() + } + }, + 7021: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.WorkspaceFoldersFeature = void 0; + const r = n(273); + t.WorkspaceFoldersFeature = e => class extends e { + initialize(e) { + let t = e.workspace; + t && t.workspaceFolders && (this._onDidChangeWorkspaceFolders = new r.Emitter, this.connection.onNotification(r.DidChangeWorkspaceFoldersNotification.type, (e => { + this._onDidChangeWorkspaceFolders.fire(e.event) + }))) + } + getWorkspaceFolders() { + return this.connection.sendRequest(r.WorkspaceFoldersRequest.type) + } + get onDidChangeWorkspaceFolders() { + if (!this._onDidChangeWorkspaceFolders) throw new Error("Client doesn't support sending workspace folder change events."); + return this._unregistration || (this._unregistration = this.connection.client.register(r.DidChangeWorkspaceFoldersNotification.type)), this._onDidChangeWorkspaceFolders.event + } + } + }, + 7613: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.resolveModulePath = t.FileSystem = t.resolveGlobalYarnPath = t.resolveGlobalNodePath = t.resolve = t.uriToFilePath = void 0; + const r = n(7310), + o = n(1017), + i = n(7147), + s = n(2081); + + function a() { + return "win32" === process.platform + } + + function c(e, t, n, r) { + const a = ["var p = process;", "p.on('message',function(m){", "if(m.c==='e'){", "p.exit(0);", "}", "else if(m.c==='rs'){", "try{", "var r=require.resolve(m.a);", "p.send({c:'r',s:true,r:r});", "}", "catch(err){", "p.send({c:'r',s:false});", "}", "}", "});"].join(""); + return new Promise(((c, u) => { + let l = process.env, + d = Object.create(null); + Object.keys(l).forEach((e => d[e] = l[e])), t && i.existsSync(t) && (d.NODE_PATH ? d.NODE_PATH = t + o.delimiter + d.NODE_PATH : d.NODE_PATH = t, r && r(`NODE_PATH value is: ${d.NODE_PATH}`)), d.ELECTRON_RUN_AS_NODE = "1"; + try { + let t = s.fork("", [], { + cwd: n, + env: d, + execArgv: ["-e", a] + }); + if (void 0 === t.pid) return void u(new Error(`Starting process to resolve node module ${e} failed`)); + t.on("error", (e => { + u(e) + })), t.on("message", (n => { + "r" === n.c && (t.send({ + c: "e" + }), n.s ? c(n.r) : u(new Error(`Failed to resolve module: ${e}`))) + })); + let r = { + c: "rs", + a: e + }; + t.send(r) + } catch (e) { + u(e) + } + })) + } + + function u(e) { + let t = "npm"; + const n = Object.create(null); + Object.keys(process.env).forEach((e => n[e] = process.env[e])), n.NO_UPDATE_NOTIFIER = "true"; + const r = { + encoding: "utf8", + env: n + }; + a() && (t = "npm.cmd", r.shell = !0); + let i = () => {}; + try { + process.on("SIGPIPE", i); + let n = s.spawnSync(t, ["config", "get", "prefix"], r).stdout; + if (!n) return void(e && e("'npm config get prefix' didn't return a value.")); + let c = n.trim(); + return e && e(`'npm config get prefix' value is: ${c}`), c.length > 0 ? a() ? o.join(c, "node_modules") : o.join(c, "lib", "node_modules") : void 0 + } catch (e) { + return + } finally { + process.removeListener("SIGPIPE", i) + } + } + var l; + t.uriToFilePath = function(e) { + let t = r.parse(e); + if ("file:" !== t.protocol || !t.path) return; + let n = t.path.split("/"); + for (var i = 0, s = n.length; i < s; i++) n[i] = decodeURIComponent(n[i]); + if ("win32" === process.platform && n.length > 1) { + let e = n[0], + t = n[1]; + 0 === e.length && t.length > 1 && ":" === t[1] && n.shift() + } + return o.normalize(n.join("/")) + }, t.resolve = c, t.resolveGlobalNodePath = u, t.resolveGlobalYarnPath = function(e) { + let t = "yarn", + n = { + encoding: "utf8" + }; + a() && (t = "yarn.cmd", n.shell = !0); + let r = () => {}; + try { + process.on("SIGPIPE", r); + let i = s.spawnSync(t, ["global", "dir", "--json"], n), + a = i.stdout; + if (!a) return void(e && (e("'yarn global dir' didn't return a value."), i.stderr && e(i.stderr))); + let c = a.trim().split(/\r?\n/); + for (let e of c) try { + let t = JSON.parse(e); + if ("log" === t.type) return o.join(t.data, "node_modules") + } catch (e) {} + return + } catch (e) { + return + } finally { + process.removeListener("SIGPIPE", r) + } + }, + function(e) { + let t; + + function n() { + return void 0 !== t || (t = !("win32" === process.platform || i.existsSync(__filename.toUpperCase()) && i.existsSync(__filename.toLowerCase()))), t + } + e.isCaseSensitive = n, e.isParent = function(e, t) { + return n() ? 0 === o.normalize(t).indexOf(o.normalize(e)) : 0 === o.normalize(t).toLowerCase().indexOf(o.normalize(e).toLowerCase()) + } + }(l = t.FileSystem || (t.FileSystem = {})), t.resolveModulePath = function(e, t, n, r) { + return n ? (o.isAbsolute(n) || (n = o.join(e, n)), c(t, n, n, r).then((e => l.isParent(n, e) ? e : Promise.reject(new Error(`Failed to load ${t} from node path location.`)))).then(void 0, (n => c(t, u(r), e, r)))) : c(t, u(r), e, r) + } + }, + 5809: function(e, t, n) { + "use strict"; + var r = this && this.__createBinding || (Object.create ? function(e, t, n, r) { + void 0 === r && (r = n), Object.defineProperty(e, r, { + enumerable: !0, + get: function() { + return t[n] + } + }) + } : function(e, t, n, r) { + void 0 === r && (r = n), e[r] = t[n] + }), + o = this && this.__exportStar || function(e, t) { + for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(t, n) || r(t, e, n) + }; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.createConnection = t.Files = void 0; + const i = n(289), + s = n(9891), + a = n(7613), + c = n(6560); + var u; + o(n(6560), t), o(n(6265), t), (u = t.Files || (t.Files = {})).uriToFilePath = a.uriToFilePath, u.resolveGlobalNodePath = a.resolveGlobalNodePath, u.resolveGlobalYarnPath = a.resolveGlobalYarnPath, u.resolve = a.resolve, u.resolveModulePath = a.resolveModulePath; + let l, d = !1; + ! function() { + const e = "--clientProcessId"; + + function t(e) { + try { + let t = parseInt(e); + isNaN(t) || (l = setInterval((() => { + try { + process.kill(t, 0) + } catch (e) { + process.exit(d ? 0 : 1) + } + }), 3e3)) + } catch (e) {} + } + for (let n = 2; n < process.argv.length; n++) { + let r = process.argv[n]; + if (r === e && n + 1 < process.argv.length) return void t(process.argv[n + 1]); { + let n = r.split("="); + n[0] === e && t(n[1]) + } + } + }(); + const p = { + initialize: e => { + const t = e.processId; + i.number(t) && void 0 === l && setInterval((() => { + try { + process.kill(t, 0) + } catch (e) { + process.exit(d ? 0 : 1) + } + }), 3e3) + }, + get shutdownReceived() { + return d + }, + set shutdownReceived(e) { + d = e + }, + exit: e => { + process.exit(e) + } + }; + t.createConnection = function(e, t, n, r) { + let o, a, u, l; + return void 0 !== e && "features" === e.__brand && (o = e, e = t, t = n, n = r), c.ConnectionStrategy.is(e) || c.ConnectionOptions.is(e) ? l = e : (a = e, u = t, l = n), + function(e, t, n, r) { + if (!e && !t && process.argv.length > 2) { + let n, r, i = process.argv.slice(2); + for (let s = 0; s < i.length; s++) { + let a = i[s]; + if ("--node-ipc" === a) { + e = new c.IPCMessageReader(process), t = new c.IPCMessageWriter(process); + break + } + if ("--stdio" === a) { + e = process.stdin, t = process.stdout; + break + } + if ("--socket" === a) { + n = parseInt(i[s + 1]); + break + } + if ("--pipe" === a) { + r = i[s + 1]; + break + } + var o = a.split("="); + if ("--socket" === o[0]) { + n = parseInt(o[1]); + break + } + if ("--pipe" === o[0]) { + r = o[1]; + break + } + } + if (n) { + let r = c.createServerSocketTransport(n); + e = r[0], t = r[1] + } else if (r) { + let n = c.createServerPipeTransport(r); + e = n[0], t = n[1] + } + } + var a = "Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'"; + if (!e) throw new Error("Connection input stream is not set. " + a); + if (!t) throw new Error("Connection output stream is not set. " + a); + if (i.func(e.read) && i.func(e.on)) { + let t = e; + t.on("end", (() => { + process.exit(d ? 0 : 1) + })), t.on("close", (() => { + process.exit(d ? 0 : 1) + })) + } + return s.createConnection((r => c.createProtocolConnection(e, t, r, n)), p, r) + }(a, u, l, o) + } + }, + 7089: (e, t, n) => { + "use strict"; + e.exports = n(5809) + }, + 6236: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = void 0; + const r = n(8355), + o = n(5671), + i = n(2), + s = n(1512), + a = ["/properties"], + c = "http://json-schema.org/draft-07/schema"; + class u extends r.default { + _addVocabularies() { + super._addVocabularies(), o.default.forEach((e => this.addVocabulary(e))), this.opts.discriminator && this.addKeyword(i.default) + } + _addDefaultMetaSchema() { + if (super._addDefaultMetaSchema(), !this.opts.meta) return; + const e = this.opts.$data ? this.$dataMetaSchema(s, a) : s; + this.addMetaSchema(e, c, !1), this.refs["http://json-schema.org/schema"] = c + } + defaultMeta() { + return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(c) ? c : void 0) + } + } + e.exports = t = u, Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = u; + var l = n(1686); + Object.defineProperty(t, "KeywordCxt", { + enumerable: !0, + get: function() { + return l.KeywordCxt + } + }); + var d = n(5669); + Object.defineProperty(t, "_", { + enumerable: !0, + get: function() { + return d._ + } + }), Object.defineProperty(t, "str", { + enumerable: !0, + get: function() { + return d.str + } + }), Object.defineProperty(t, "stringify", { + enumerable: !0, + get: function() { + return d.stringify + } + }), Object.defineProperty(t, "nil", { + enumerable: !0, + get: function() { + return d.nil + } + }), Object.defineProperty(t, "Name", { + enumerable: !0, + get: function() { + return d.Name + } + }), Object.defineProperty(t, "CodeGen", { + enumerable: !0, + get: function() { + return d.CodeGen + } + }) + }, + 6545: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.regexpCode = t.getProperty = t.safeStringify = t.stringify = t.strConcat = t.addCodeArg = t.str = t._ = t.nil = t._Code = t.Name = t.IDENTIFIER = t._CodeOrName = void 0; + class n {} + t._CodeOrName = n, t.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i; + class r extends n { + constructor(e) { + if (super(), !t.IDENTIFIER.test(e)) throw new Error("CodeGen: name must be a valid identifier"); + this.str = e + } + toString() { + return this.str + } + emptyStr() { + return !1 + } + get names() { + return { + [this.str]: 1 + } + } + } + t.Name = r; + class o extends n { + constructor(e) { + super(), this._items = "string" == typeof e ? [e] : e + } + toString() { + return this.str + } + emptyStr() { + if (this._items.length > 1) return !1; + const e = this._items[0]; + return "" === e || '""' === e + } + get str() { + var e; + return null !== (e = this._str) && void 0 !== e ? e : this._str = this._items.reduce(((e, t) => `${e}${t}`), "") + } + get names() { + var e; + return null !== (e = this._names) && void 0 !== e ? e : this._names = this._items.reduce(((e, t) => (t instanceof r && (e[t.str] = (e[t.str] || 0) + 1), e)), {}) + } + } + + function i(e, ...t) { + const n = [e[0]]; + let r = 0; + for (; r < t.length;) c(n, t[r]), n.push(e[++r]); + return new o(n) + } + t._Code = o, t.nil = new o(""), t._ = i; + const s = new o("+"); + + function a(e, ...t) { + const n = [l(e[0])]; + let r = 0; + for (; r < t.length;) n.push(s), c(n, t[r]), n.push(s, l(e[++r])); + return function(e) { + let t = 1; + for (; t < e.length - 1;) { + if (e[t] === s) { + const n = u(e[t - 1], e[t + 1]); + if (void 0 !== n) { + e.splice(t - 1, 3, n); + continue + } + e[t++] = "+" + } + t++ + } + }(n), new o(n) + } + + function c(e, t) { + var n; + t instanceof o ? e.push(...t._items) : t instanceof r ? e.push(t) : e.push("number" == typeof(n = t) || "boolean" == typeof n || null === n ? n : l(Array.isArray(n) ? n.join(",") : n)) + } + + function u(e, t) { + if ('""' === t) return e; + if ('""' === e) return t; + if ("string" == typeof e) { + if (t instanceof r || '"' !== e[e.length - 1]) return; + return "string" != typeof t ? `${e.slice(0,-1)}${t}"` : '"' === t[0] ? e.slice(0, -1) + t.slice(1) : void 0 + } + return "string" != typeof t || '"' !== t[0] || e instanceof r ? void 0 : `"${e}${t.slice(1)}` + } + + function l(e) { + return JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029") + } + t.str = a, t.addCodeArg = c, t.strConcat = function(e, t) { + return t.emptyStr() ? e : e.emptyStr() ? t : a`${e}${t}` + }, t.stringify = function(e) { + return new o(l(e)) + }, t.safeStringify = l, t.getProperty = function(e) { + return "string" == typeof e && t.IDENTIFIER.test(e) ? new o(`.${e}`) : i`[${e}]` + }, t.regexpCode = function(e) { + return new o(e.toString()) + } + }, + 5669: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.or = t.and = t.not = t.CodeGen = t.operators = t.varKinds = t.ValueScopeName = t.ValueScope = t.Scope = t.Name = t.regexpCode = t.stringify = t.getProperty = t.nil = t.strConcat = t.str = t._ = void 0; + const r = n(6545), + o = n(9187); + var i = n(6545); + Object.defineProperty(t, "_", { + enumerable: !0, + get: function() { + return i._ + } + }), Object.defineProperty(t, "str", { + enumerable: !0, + get: function() { + return i.str + } + }), Object.defineProperty(t, "strConcat", { + enumerable: !0, + get: function() { + return i.strConcat + } + }), Object.defineProperty(t, "nil", { + enumerable: !0, + get: function() { + return i.nil + } + }), Object.defineProperty(t, "getProperty", { + enumerable: !0, + get: function() { + return i.getProperty + } + }), Object.defineProperty(t, "stringify", { + enumerable: !0, + get: function() { + return i.stringify + } + }), Object.defineProperty(t, "regexpCode", { + enumerable: !0, + get: function() { + return i.regexpCode + } + }), Object.defineProperty(t, "Name", { + enumerable: !0, + get: function() { + return i.Name + } + }); + var s = n(9187); + Object.defineProperty(t, "Scope", { + enumerable: !0, + get: function() { + return s.Scope + } + }), Object.defineProperty(t, "ValueScope", { + enumerable: !0, + get: function() { + return s.ValueScope + } + }), Object.defineProperty(t, "ValueScopeName", { + enumerable: !0, + get: function() { + return s.ValueScopeName + } + }), Object.defineProperty(t, "varKinds", { + enumerable: !0, + get: function() { + return s.varKinds + } + }), t.operators = { + GT: new r._Code(">"), + GTE: new r._Code(">="), + LT: new r._Code("<"), + LTE: new r._Code("<="), + EQ: new r._Code("==="), + NEQ: new r._Code("!=="), + NOT: new r._Code("!"), + OR: new r._Code("||"), + AND: new r._Code("&&"), + ADD: new r._Code("+") + }; + class a { + optimizeNodes() { + return this + } + optimizeNames(e, t) { + return this + } + } + class c extends a { + constructor(e, t, n) { + super(), this.varKind = e, this.name = t, this.rhs = n + } + render({ + es5: e, + _n: t + }) { + const n = e ? o.varKinds.var : this.varKind, + r = void 0 === this.rhs ? "" : ` = ${this.rhs}`; + return `${n} ${this.name}${r};` + t + } + optimizeNames(e, t) { + if (e[this.name.str]) return this.rhs && (this.rhs = R(this.rhs, e, t)), this + } + get names() { + return this.rhs instanceof r._CodeOrName ? this.rhs.names : {} + } + } + class u extends a { + constructor(e, t, n) { + super(), this.lhs = e, this.rhs = t, this.sideEffects = n + } + render({ + _n: e + }) { + return `${this.lhs} = ${this.rhs};` + e + } + optimizeNames(e, t) { + if (!(this.lhs instanceof r.Name) || e[this.lhs.str] || this.sideEffects) return this.rhs = R(this.rhs, e, t), this + } + get names() { + return I(this.lhs instanceof r.Name ? {} : { + ...this.lhs.names + }, this.rhs) + } + } + class l extends u { + constructor(e, t, n, r) { + super(e, n, r), this.op = t + } + render({ + _n: e + }) { + return `${this.lhs} ${this.op}= ${this.rhs};` + e + } + } + class d extends a { + constructor(e) { + super(), this.label = e, this.names = {} + } + render({ + _n: e + }) { + return `${this.label}:` + e + } + } + class p extends a { + constructor(e) { + super(), this.label = e, this.names = {} + } + render({ + _n: e + }) { + return `break${this.label?` ${this.label}`:""};` + e + } + } + class h extends a { + constructor(e) { + super(), this.error = e + } + render({ + _n: e + }) { + return `throw ${this.error};` + e + } + get names() { + return this.error.names + } + } + class m extends a { + constructor(e) { + super(), this.code = e + } + render({ + _n: e + }) { + return `${this.code};` + e + } + optimizeNodes() { + return `${this.code}` ? this : void 0 + } + optimizeNames(e, t) { + return this.code = R(this.code, e, t), this + } + get names() { + return this.code instanceof r._CodeOrName ? this.code.names : {} + } + } + class f extends a { + constructor(e = []) { + super(), this.nodes = e + } + render(e) { + return this.nodes.reduce(((t, n) => t + n.render(e)), "") + } + optimizeNodes() { + const { + nodes: e + } = this; + let t = e.length; + for (; t--;) { + const n = e[t].optimizeNodes(); + Array.isArray(n) ? e.splice(t, 1, ...n) : n ? e[t] = n : e.splice(t, 1) + } + return e.length > 0 ? this : void 0 + } + optimizeNames(e, t) { + const { + nodes: n + } = this; + let r = n.length; + for (; r--;) { + const o = n[r]; + o.optimizeNames(e, t) || (O(e, o.names), n.splice(r, 1)) + } + return n.length > 0 ? this : void 0 + } + get names() { + return this.nodes.reduce(((e, t) => P(e, t.names)), {}) + } + } + class g extends f { + render(e) { + return "{" + e._n + super.render(e) + "}" + e._n + } + } + class y extends f {} + class _ extends g {} + _.kind = "else"; + class v extends g { + constructor(e, t) { + super(t), this.condition = e + } + render(e) { + let t = `if(${this.condition})` + super.render(e); + return this.else && (t += "else " + this.else.render(e)), t + } + optimizeNodes() { + super.optimizeNodes(); + const e = this.condition; + if (!0 === e) return this.nodes; + let t = this.else; + if (t) { + const e = t.optimizeNodes(); + t = this.else = Array.isArray(e) ? new _(e) : e + } + return t ? !1 === e ? t instanceof v ? t : t.nodes : this.nodes.length ? this : new v(A(e), t instanceof v ? [t] : t.nodes) : !1 !== e && this.nodes.length ? this : void 0 + } + optimizeNames(e, t) { + var n; + if (this.else = null === (n = this.else) || void 0 === n ? void 0 : n.optimizeNames(e, t), super.optimizeNames(e, t) || this.else) return this.condition = R(this.condition, e, t), this + } + get names() { + const e = super.names; + return I(e, this.condition), this.else && P(e, this.else.names), e + } + } + v.kind = "if"; + class b extends g {} + b.kind = "for"; + class k extends b { + constructor(e) { + super(), this.iteration = e + } + render(e) { + return `for(${this.iteration})` + super.render(e) + } + optimizeNames(e, t) { + if (super.optimizeNames(e, t)) return this.iteration = R(this.iteration, e, t), this + } + get names() { + return P(super.names, this.iteration.names) + } + } + class w extends b { + constructor(e, t, n, r) { + super(), this.varKind = e, this.name = t, this.from = n, this.to = r + } + render(e) { + const t = e.es5 ? o.varKinds.var : this.varKind, + { + name: n, + from: r, + to: i + } = this; + return `for(${t} ${n}=${r}; ${n}<${i}; ${n}++)` + super.render(e) + } + get names() { + const e = I(super.names, this.from); + return I(e, this.to) + } + } + class j extends b { + constructor(e, t, n, r) { + super(), this.loop = e, this.varKind = t, this.name = n, this.iterable = r + } + render(e) { + return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(e) + } + optimizeNames(e, t) { + if (super.optimizeNames(e, t)) return this.iterable = R(this.iterable, e, t), this + } + get names() { + return P(super.names, this.iterable.names) + } + } + class x extends g { + constructor(e, t, n) { + super(), this.name = e, this.args = t, this.async = n + } + render(e) { + return `${this.async?"async ":""}function ${this.name}(${this.args})` + super.render(e) + } + } + x.kind = "func"; + class E extends f { + render(e) { + return "return " + super.render(e) + } + } + E.kind = "return"; + class C extends g { + render(e) { + let t = "try" + super.render(e); + return this.catch && (t += this.catch.render(e)), this.finally && (t += this.finally.render(e)), t + } + optimizeNodes() { + var e, t; + return super.optimizeNodes(), null === (e = this.catch) || void 0 === e || e.optimizeNodes(), null === (t = this.finally) || void 0 === t || t.optimizeNodes(), this + } + optimizeNames(e, t) { + var n, r; + return super.optimizeNames(e, t), null === (n = this.catch) || void 0 === n || n.optimizeNames(e, t), null === (r = this.finally) || void 0 === r || r.optimizeNames(e, t), this + } + get names() { + const e = super.names; + return this.catch && P(e, this.catch.names), this.finally && P(e, this.finally.names), e + } + } + class S extends g { + constructor(e) { + super(), this.error = e + } + render(e) { + return `catch(${this.error})` + super.render(e) + } + } + S.kind = "catch"; + class T extends g { + render(e) { + return "finally" + super.render(e) + } + } + + function P(e, t) { + for (const n in t) e[n] = (e[n] || 0) + (t[n] || 0); + return e + } + + function I(e, t) { + return t instanceof r._CodeOrName ? P(e, t.names) : e + } + + function R(e, t, n) { + return e instanceof r.Name ? i(e) : (o = e) instanceof r._Code && o._items.some((e => e instanceof r.Name && 1 === t[e.str] && void 0 !== n[e.str])) ? new r._Code(e._items.reduce(((e, t) => (t instanceof r.Name && (t = i(t)), t instanceof r._Code ? e.push(...t._items) : e.push(t), e)), [])) : e; + var o; + + function i(e) { + const r = n[e.str]; + return void 0 === r || 1 !== t[e.str] ? e : (delete t[e.str], r) + } + } + + function O(e, t) { + for (const n in t) e[n] = (e[n] || 0) - (t[n] || 0) + } + + function A(e) { + return "boolean" == typeof e || "number" == typeof e || null === e ? !e : r._`!${q(e)}` + } + T.kind = "finally", t.CodeGen = class { + constructor(e, t = {}) { + this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = { + ...t, + _n: t.lines ? "\n" : "" + }, this._extScope = e, this._scope = new o.Scope({ + parent: e + }), this._nodes = [new y] + } + toString() { + return this._root.render(this.opts) + } + name(e) { + return this._scope.name(e) + } + scopeName(e) { + return this._extScope.name(e) + } + scopeValue(e, t) { + const n = this._extScope.value(e, t); + return (this._values[n.prefix] || (this._values[n.prefix] = new Set)).add(n), n + } + getScopeValue(e, t) { + return this._extScope.getValue(e, t) + } + scopeRefs(e) { + return this._extScope.scopeRefs(e, this._values) + } + scopeCode() { + return this._extScope.scopeCode(this._values) + } + _def(e, t, n, r) { + const o = this._scope.toName(t); + return void 0 !== n && r && (this._constants[o.str] = n), this._leafNode(new c(e, o, n)), o + } + const (e, t, n) { + return this._def(o.varKinds.const, e, t, n) + } + let (e, t, n) { + return this._def(o.varKinds.let, e, t, n) + } + var (e, t, n) { + return this._def(o.varKinds.var, e, t, n) + } + assign(e, t, n) { + return this._leafNode(new u(e, t, n)) + } + add(e, n) { + return this._leafNode(new l(e, t.operators.ADD, n)) + } + code(e) { + return "function" == typeof e ? e() : e !== r.nil && this._leafNode(new m(e)), this + } + object(...e) { + const t = ["{"]; + for (const [n, o] of e) t.length > 1 && t.push(","), t.push(n), (n !== o || this.opts.es5) && (t.push(":"), (0, r.addCodeArg)(t, o)); + return t.push("}"), new r._Code(t) + } + if (e, t, n) { + if (this._blockNode(new v(e)), t && n) this.code(t).else().code(n).endIf(); + else if (t) this.code(t).endIf(); + else if (n) throw new Error('CodeGen: "else" body without "then" body'); + return this + } + elseIf(e) { + return this._elseNode(new v(e)) + } else() { + return this._elseNode(new _) + } + endIf() { + return this._endBlockNode(v, _) + } + _for(e, t) { + return this._blockNode(e), t && this.code(t).endFor(), this + } + for (e, t) { + return this._for(new k(e), t) + } + forRange(e, t, n, r, i = (this.opts.es5 ? o.varKinds.var : o.varKinds.let)) { + const s = this._scope.toName(e); + return this._for(new w(i, s, t, n), (() => r(s))) + } + forOf(e, t, n, i = o.varKinds.const) { + const s = this._scope.toName(e); + if (this.opts.es5) { + const e = t instanceof r.Name ? t : this.var("_arr", t); + return this.forRange("_i", 0, r._`${e}.length`, (t => { + this.var(s, r._`${e}[${t}]`), n(s) + })) + } + return this._for(new j("of", i, s, t), (() => n(s))) + } + forIn(e, t, n, i = (this.opts.es5 ? o.varKinds.var : o.varKinds.const)) { + if (this.opts.ownProperties) return this.forOf(e, r._`Object.keys(${t})`, n); + const s = this._scope.toName(e); + return this._for(new j("in", i, s, t), (() => n(s))) + } + endFor() { + return this._endBlockNode(b) + } + label(e) { + return this._leafNode(new d(e)) + } + break (e) { + return this._leafNode(new p(e)) + } + return (e) { + const t = new E; + if (this._blockNode(t), this.code(e), 1 !== t.nodes.length) throw new Error('CodeGen: "return" should have one node'); + return this._endBlockNode(E) + } + try (e, t, n) { + if (!t && !n) throw new Error('CodeGen: "try" without "catch" and "finally"'); + const r = new C; + if (this._blockNode(r), this.code(e), t) { + const e = this.name("e"); + this._currNode = r.catch = new S(e), t(e) + } + return n && (this._currNode = r.finally = new T, this.code(n)), this._endBlockNode(S, T) + } + throw (e) { + return this._leafNode(new h(e)) + } + block(e, t) { + return this._blockStarts.push(this._nodes.length), e && this.code(e).endBlock(t), this + } + endBlock(e) { + const t = this._blockStarts.pop(); + if (void 0 === t) throw new Error("CodeGen: not in self-balancing block"); + const n = this._nodes.length - t; + if (n < 0 || void 0 !== e && n !== e) throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`); + return this._nodes.length = t, this + } + func(e, t = r.nil, n, o) { + return this._blockNode(new x(e, t, n)), o && this.code(o).endFunc(), this + } + endFunc() { + return this._endBlockNode(x) + } + optimize(e = 1) { + for (; e-- > 0;) this._root.optimizeNodes(), this._root.optimizeNames(this._root.names, this._constants) + } + _leafNode(e) { + return this._currNode.nodes.push(e), this + } + _blockNode(e) { + this._currNode.nodes.push(e), this._nodes.push(e) + } + _endBlockNode(e, t) { + const n = this._currNode; + if (n instanceof e || t && n instanceof t) return this._nodes.pop(), this; + throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`) + } + _elseNode(e) { + const t = this._currNode; + if (!(t instanceof v)) throw new Error('CodeGen: "else" without "if"'); + return this._currNode = t.else = e, this + } + get _root() { + return this._nodes[0] + } + get _currNode() { + const e = this._nodes; + return e[e.length - 1] + } + set _currNode(e) { + const t = this._nodes; + t[t.length - 1] = e + } + }, t.not = A; + const N = M(t.operators.AND); + t.and = function(...e) { + return e.reduce(N) + }; + const D = M(t.operators.OR); + + function M(e) { + return (t, n) => t === r.nil ? n : n === r.nil ? t : r._`${q(t)} ${e} ${q(n)}` + } + + function q(e) { + return e instanceof r.Name ? e : r._`(${e})` + } + t.or = function(...e) { + return e.reduce(D) + } + }, + 9187: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ValueScope = t.ValueScopeName = t.Scope = t.varKinds = t.UsedValueState = void 0; + const r = n(6545); + class o extends Error { + constructor(e) { + super(`CodeGen: "code" for ${e} not defined`), this.value = e.value + } + } + var i; + ! function(e) { + e[e.Started = 0] = "Started", e[e.Completed = 1] = "Completed" + }(i = t.UsedValueState || (t.UsedValueState = {})), t.varKinds = { + const: new r.Name("const"), + let: new r.Name("let"), + var: new r.Name("var") + }; + class s { + constructor({ + prefixes: e, + parent: t + } = {}) { + this._names = {}, this._prefixes = e, this._parent = t + } + toName(e) { + return e instanceof r.Name ? e : this.name(e) + } + name(e) { + return new r.Name(this._newName(e)) + } + _newName(e) { + return `${e}${(this._names[e]||this._nameGroup(e)).index++}` + } + _nameGroup(e) { + var t, n; + if ((null === (n = null === (t = this._parent) || void 0 === t ? void 0 : t._prefixes) || void 0 === n ? void 0 : n.has(e)) || this._prefixes && !this._prefixes.has(e)) throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`); + return this._names[e] = { + prefix: e, + index: 0 + } + } + } + t.Scope = s; + class a extends r.Name { + constructor(e, t) { + super(t), this.prefix = e + } + setValue(e, { + property: t, + itemIndex: n + }) { + this.value = e, this.scopePath = r._`.${new r.Name(t)}[${n}]` + } + } + t.ValueScopeName = a; + const c = r._`\n`; + t.ValueScope = class extends s { + constructor(e) { + super(e), this._values = {}, this._scope = e.scope, this.opts = { + ...e, + _n: e.lines ? c : r.nil + } + } + get() { + return this._scope + } + name(e) { + return new a(e, this._newName(e)) + } + value(e, t) { + var n; + if (void 0 === t.ref) throw new Error("CodeGen: ref must be passed in value"); + const r = this.toName(e), + { + prefix: o + } = r, + i = null !== (n = t.key) && void 0 !== n ? n : t.ref; + let s = this._values[o]; + if (s) { + const e = s.get(i); + if (e) return e + } else s = this._values[o] = new Map; + s.set(i, r); + const a = this._scope[o] || (this._scope[o] = []), + c = a.length; + return a[c] = t.ref, r.setValue(t, { + property: o, + itemIndex: c + }), r + } + getValue(e, t) { + const n = this._values[e]; + if (n) return n.get(t) + } + scopeRefs(e, t = this._values) { + return this._reduceValues(t, (t => { + if (void 0 === t.scopePath) throw new Error(`CodeGen: name "${t}" has no value`); + return r._`${e}${t.scopePath}` + })) + } + scopeCode(e = this._values, t, n) { + return this._reduceValues(e, (e => { + if (void 0 === e.value) throw new Error(`CodeGen: name "${e}" has no value`); + return e.value.code + }), t, n) + } + _reduceValues(e, n, s = {}, a) { + let c = r.nil; + for (const u in e) { + const l = e[u]; + if (!l) continue; + const d = s[u] = s[u] || new Map; + l.forEach((e => { + if (d.has(e)) return; + d.set(e, i.Started); + let s = n(e); + if (s) { + const n = this.opts.es5 ? t.varKinds.var : t.varKinds.const; + c = r._`${c}${n} ${e} = ${s};${this.opts._n}` + } else { + if (!(s = null == a ? void 0 : a(e))) throw new o(e); + c = r._`${c}${s}${this.opts._n}` + } + d.set(e, i.Completed) + })) + } + return c + } + } + }, + 6930: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.extendErrors = t.resetErrorsCount = t.reportExtraError = t.reportError = t.keyword$DataError = t.keywordError = void 0; + const r = n(5669), + o = n(8936), + i = n(7250); + + function s(e, t) { + const n = e.const("err", t); + e.if(r._`${i.default.vErrors} === null`, (() => e.assign(i.default.vErrors, r._`[${n}]`)), r._`${i.default.vErrors}.push(${n})`), e.code(r._`${i.default.errors}++`) + } + + function a(e, t) { + const { + gen: n, + validateName: o, + schemaEnv: i + } = e; + i.$async ? n.throw(r._`new ${e.ValidationError}(${t})`) : (n.assign(r._`${o}.errors`, t), n.return(!1)) + } + t.keywordError = { + message: ({ + keyword: e + }) => r.str`must pass "${e}" keyword validation` + }, t.keyword$DataError = { + message: ({ + keyword: e, + schemaType: t + }) => t ? r.str`"${e}" keyword must be ${t} ($data)` : r.str`"${e}" keyword is invalid ($data)` + }, t.reportError = function(e, n = t.keywordError, o, i) { + const { + it: c + } = e, { + gen: l, + compositeRule: d, + allErrors: p + } = c, h = u(e, n, o); + (null != i ? i : d || p) ? s(l, h): a(c, r._`[${h}]`) + }, t.reportExtraError = function(e, n = t.keywordError, r) { + const { + it: o + } = e, { + gen: c, + compositeRule: l, + allErrors: d + } = o; + s(c, u(e, n, r)), l || d || a(o, i.default.vErrors) + }, t.resetErrorsCount = function(e, t) { + e.assign(i.default.errors, t), e.if(r._`${i.default.vErrors} !== null`, (() => e.if(t, (() => e.assign(r._`${i.default.vErrors}.length`, t)), (() => e.assign(i.default.vErrors, null))))) + }, t.extendErrors = function({ + gen: e, + keyword: t, + schemaValue: n, + data: o, + errsCount: s, + it: a + }) { + if (void 0 === s) throw new Error("ajv implementation error"); + const c = e.name("err"); + e.forRange("i", s, i.default.errors, (s => { + e.const(c, r._`${i.default.vErrors}[${s}]`), e.if(r._`${c}.instancePath === undefined`, (() => e.assign(r._`${c}.instancePath`, (0, r.strConcat)(i.default.instancePath, a.errorPath)))), e.assign(r._`${c}.schemaPath`, r.str`${a.errSchemaPath}/${t}`), a.opts.verbose && (e.assign(r._`${c}.schema`, n), e.assign(r._`${c}.data`, o)) + })) + }; + const c = { + keyword: new r.Name("keyword"), + schemaPath: new r.Name("schemaPath"), + params: new r.Name("params"), + propertyName: new r.Name("propertyName"), + message: new r.Name("message"), + schema: new r.Name("schema"), + parentSchema: new r.Name("parentSchema") + }; + + function u(e, t, n) { + const { + createErrors: o + } = e.it; + return !1 === o ? r._`{}` : function(e, t, n = {}) { + const { + gen: o, + it: s + } = e, a = [l(s, n), d(e, n)]; + return function(e, { + params: t, + message: n + }, o) { + const { + keyword: s, + data: a, + schemaValue: u, + it: l + } = e, { + opts: d, + propertyName: p, + topSchemaRef: h, + schemaPath: m + } = l; + o.push([c.keyword, s], [c.params, "function" == typeof t ? t(e) : t || r._`{}`]), d.messages && o.push([c.message, "function" == typeof n ? n(e) : n]), d.verbose && o.push([c.schema, u], [c.parentSchema, r._`${h}${m}`], [i.default.data, a]), p && o.push([c.propertyName, p]) + }(e, t, a), o.object(...a) + }(e, t, n) + } + + function l({ + errorPath: e + }, { + instancePath: t + }) { + const n = t ? r.str`${e}${(0,o.getErrorPath)(t,o.Type.Str)}` : e; + return [i.default.instancePath, (0, r.strConcat)(i.default.instancePath, n)] + } + + function d({ + keyword: e, + it: { + errSchemaPath: t + } + }, { + schemaPath: n, + parentSchema: i + }) { + let s = i ? t : r.str`${t}/${e}`; + return n && (s = r.str`${s}${(0,o.getErrorPath)(n,o.Type.Str)}`), [c.schemaPath, s] + } + }, + 7382: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.resolveSchema = t.getCompilingSchema = t.resolveRef = t.compileSchema = t.SchemaEnv = void 0; + const r = n(5669), + o = n(6448), + i = n(7250), + s = n(6696), + a = n(8936), + c = n(1686), + u = n(2371); + class l { + constructor(e) { + var t; + let n; + this.refs = {}, this.dynamicAnchors = {}, "object" == typeof e.schema && (n = e.schema), this.schema = e.schema, this.schemaId = e.schemaId, this.root = e.root || this, this.baseId = null !== (t = e.baseId) && void 0 !== t ? t : (0, s.normalizeId)(null == n ? void 0 : n[e.schemaId || "$id"]), this.schemaPath = e.schemaPath, this.localRefs = e.localRefs, this.meta = e.meta, this.$async = null == n ? void 0 : n.$async, this.refs = {} + } + } + + function d(e) { + const t = h.call(this, e); + if (t) return t; + const n = (0, s.getFullPath)(e.root.baseId), + { + es5: a, + lines: u + } = this.opts.code, + { + ownProperties: l + } = this.opts, + d = new r.CodeGen(this.scope, { + es5: a, + lines: u, + ownProperties: l + }); + let p; + e.$async && (p = d.scopeValue("Error", { + ref: o.default, + code: r._`require("ajv/dist/runtime/validation_error").default` + })); + const m = d.scopeName("validate"); + e.validateName = m; + const f = { + gen: d, + allErrors: this.opts.allErrors, + data: i.default.data, + parentData: i.default.parentData, + parentDataProperty: i.default.parentDataProperty, + dataNames: [i.default.data], + dataPathArr: [r.nil], + dataLevel: 0, + dataTypes: [], + definedProperties: new Set, + topSchemaRef: d.scopeValue("schema", !0 === this.opts.code.source ? { + ref: e.schema, + code: (0, r.stringify)(e.schema) + } : { + ref: e.schema + }), + validateName: m, + ValidationError: p, + schema: e.schema, + schemaEnv: e, + rootId: n, + baseId: e.baseId || n, + schemaPath: r.nil, + errSchemaPath: e.schemaPath || (this.opts.jtd ? "" : "#"), + errorPath: r._`""`, + opts: this.opts, + self: this + }; + let g; + try { + this._compilations.add(e), (0, c.validateFunctionCode)(f), d.optimize(this.opts.code.optimize); + const t = d.toString(); + g = `${d.scopeRefs(i.default.scope)}return ${t}`, this.opts.code.process && (g = this.opts.code.process(g, e)); + const n = new Function(`${i.default.self}`, `${i.default.scope}`, g)(this, this.scope.get()); + if (this.scope.value(m, { + ref: n + }), n.errors = null, n.schema = e.schema, n.schemaEnv = e, e.$async && (n.$async = !0), !0 === this.opts.code.source && (n.source = { + validateName: m, + validateCode: t, + scopeValues: d._values + }), this.opts.unevaluated) { + const { + props: e, + items: t + } = f; + n.evaluated = { + props: e instanceof r.Name ? void 0 : e, + items: t instanceof r.Name ? void 0 : t, + dynamicProps: e instanceof r.Name, + dynamicItems: t instanceof r.Name + }, n.source && (n.source.evaluated = (0, r.stringify)(n.evaluated)) + } + return e.validate = n, e + } catch (t) { + throw delete e.validate, delete e.validateName, g && this.logger.error("Error compiling schema, function code:", g), t + } finally { + this._compilations.delete(e) + } + } + + function p(e) { + return (0, s.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : d.call(this, e) + } + + function h(e) { + for (const r of this._compilations) + if (n = e, (t = r).schema === n.schema && t.root === n.root && t.baseId === n.baseId) return r; + var t, n + } + + function m(e, t) { + let n; + for (; + "string" == typeof(n = this.refs[t]);) t = n; + return n || this.schemas[t] || f.call(this, e, t) + } + + function f(e, t) { + const n = u.parse(t), + r = (0, s._getFullPath)(n); + let o = (0, s.getFullPath)(e.baseId); + if (Object.keys(e.schema).length > 0 && r === o) return y.call(this, n, e); + const i = (0, s.normalizeId)(r), + a = this.refs[i] || this.schemas[i]; + if ("string" == typeof a) { + const t = f.call(this, e, a); + if ("object" != typeof(null == t ? void 0 : t.schema)) return; + return y.call(this, n, t) + } + if ("object" == typeof(null == a ? void 0 : a.schema)) { + if (a.validate || d.call(this, a), i === (0, s.normalizeId)(t)) { + const { + schema: t + } = a, { + schemaId: n + } = this.opts, r = t[n]; + return r && (o = (0, s.resolveUrl)(o, r)), new l({ + schema: t, + schemaId: n, + root: e, + baseId: o + }) + } + return y.call(this, n, a) + } + } + t.SchemaEnv = l, t.compileSchema = d, t.resolveRef = function(e, t, n) { + var r; + n = (0, s.resolveUrl)(t, n); + const o = e.refs[n]; + if (o) return o; + let i = m.call(this, e, n); + if (void 0 === i) { + const o = null === (r = e.localRefs) || void 0 === r ? void 0 : r[n], + { + schemaId: s + } = this.opts; + o && (i = new l({ + schema: o, + schemaId: s, + root: e, + baseId: t + })) + } + return void 0 !== i ? e.refs[n] = p.call(this, i) : void 0 + }, t.getCompilingSchema = h, t.resolveSchema = f; + const g = new Set(["properties", "patternProperties", "enum", "dependencies", "definitions"]); + + function y(e, { + baseId: t, + schema: n, + root: r + }) { + var o; + if ("/" !== (null === (o = e.fragment) || void 0 === o ? void 0 : o[0])) return; + for (const r of e.fragment.slice(1).split("/")) { + if ("boolean" == typeof n) return; + const e = n[(0, a.unescapeFragment)(r)]; + if (void 0 === e) return; + const o = "object" == typeof(n = e) && n[this.opts.schemaId]; + !g.has(r) && o && (t = (0, s.resolveUrl)(t, o)) + } + let i; + if ("boolean" != typeof n && n.$ref && !(0, a.schemaHasRulesButRef)(n, this.RULES)) { + const e = (0, s.resolveUrl)(t, n.$ref); + i = f.call(this, r, e) + } + const { + schemaId: c + } = this.opts; + return i = i || new l({ + schema: n, + schemaId: c, + root: r, + baseId: t + }), i.schema !== i.root.schema ? i : void 0 + } + }, + 7250: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5669), + o = { + data: new r.Name("data"), + valCxt: new r.Name("valCxt"), + instancePath: new r.Name("instancePath"), + parentData: new r.Name("parentData"), + parentDataProperty: new r.Name("parentDataProperty"), + rootData: new r.Name("rootData"), + dynamicAnchors: new r.Name("dynamicAnchors"), + vErrors: new r.Name("vErrors"), + errors: new r.Name("errors"), + this: new r.Name("this"), + self: new r.Name("self"), + scope: new r.Name("scope"), + json: new r.Name("json"), + jsonPos: new r.Name("jsonPos"), + jsonLen: new r.Name("jsonLen"), + jsonPart: new r.Name("jsonPart") + }; + t.default = o + }, + 1578: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(6696); + class o extends Error { + constructor(e, t, n) { + super(n || `can't resolve reference ${t} from id ${e}`), this.missingRef = (0, r.resolveUrl)(e, t), this.missingSchema = (0, r.normalizeId)((0, r.getFullPath)(this.missingRef)) + } + } + t.default = o + }, + 6696: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getSchemaRefs = t.resolveUrl = t.normalizeId = t._getFullPath = t.getFullPath = t.inlineRef = void 0; + const r = n(8936), + o = n(6471), + i = n(5127), + s = n(2371), + a = new Set(["type", "format", "pattern", "maxLength", "minLength", "maxProperties", "minProperties", "maxItems", "minItems", "maximum", "minimum", "uniqueItems", "multipleOf", "required", "enum", "const"]); + t.inlineRef = function(e, t = !0) { + return "boolean" == typeof e || (!0 === t ? !u(e) : !!t && l(e) <= t) + }; + const c = new Set(["$ref", "$recursiveRef", "$recursiveAnchor", "$dynamicRef", "$dynamicAnchor"]); + + function u(e) { + for (const t in e) { + if (c.has(t)) return !0; + const n = e[t]; + if (Array.isArray(n) && n.some(u)) return !0; + if ("object" == typeof n && u(n)) return !0 + } + return !1 + } + + function l(e) { + let t = 0; + for (const n in e) { + if ("$ref" === n) return 1 / 0; + if (t++, !a.has(n) && ("object" == typeof e[n] && (0, r.eachItem)(e[n], (e => t += l(e))), t === 1 / 0)) return 1 / 0 + } + return t + } + + function d(e = "", t) { + return !1 !== t && (e = m(e)), p(s.parse(e)) + } + + function p(e) { + return s.serialize(e).split("#")[0] + "#" + } + t.getFullPath = d, t._getFullPath = p; + const h = /#\/?$/; + + function m(e) { + return e ? e.replace(h, "") : "" + } + t.normalizeId = m, t.resolveUrl = function(e, t) { + return t = m(t), s.resolve(e, t) + }; + const f = /^[a-z_][-a-z0-9._]*$/i; + t.getSchemaRefs = function(e, t) { + if ("boolean" == typeof e) return {}; + const { + schemaId: n + } = this.opts, r = m(e[n] || t), a = { + "": r + }, c = d(r, !1), u = {}, l = new Set; + return i(e, { + allKeys: !0 + }, ((e, t, r, o) => { + if (void 0 === o) return; + const i = c + t; + let d = a[o]; + + function g(t) { + if (t = m(d ? s.resolve(d, t) : t), l.has(t)) throw h(t); + l.add(t); + let n = this.refs[t]; + return "string" == typeof n && (n = this.refs[n]), "object" == typeof n ? p(e, n.schema, t) : t !== m(i) && ("#" === t[0] ? (p(e, u[t], t), u[t] = e) : this.refs[t] = i), t + } + + function y(e) { + if ("string" == typeof e) { + if (!f.test(e)) throw new Error(`invalid anchor "${e}"`); + g.call(this, `#${e}`) + } + } + "string" == typeof e[n] && (d = g.call(this, e[n])), y.call(this, e.$anchor), y.call(this, e.$dynamicAnchor), a[t] = d + })), u; + + function p(e, t, n) { + if (void 0 !== t && !o(e, t)) throw h(n) + } + + function h(e) { + return new Error(`reference "${e}" resolves to more than one schema`) + } + } + }, + 2881: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getRules = t.isJSONType = void 0; + const n = new Set(["string", "number", "integer", "boolean", "null", "object", "array"]); + t.isJSONType = function(e) { + return "string" == typeof e && n.has(e) + }, t.getRules = function() { + const e = { + number: { + type: "number", + rules: [] + }, + string: { + type: "string", + rules: [] + }, + array: { + type: "array", + rules: [] + }, + object: { + type: "object", + rules: [] + } + }; + return { + types: { + ...e, + integer: !0, + boolean: !0, + null: !0 + }, + rules: [{ + rules: [] + }, e.number, e.string, e.array, e.object], + post: { + rules: [] + }, + all: {}, + keywords: {} + } + } + }, + 8936: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.checkStrictMode = t.getErrorPath = t.Type = t.useFunc = t.setEvaluated = t.evaluatedPropsToName = t.mergeEvaluated = t.eachItem = t.unescapeJsonPointer = t.escapeJsonPointer = t.escapeFragment = t.unescapeFragment = t.schemaRefOrVal = t.schemaHasRulesButRef = t.schemaHasRules = t.checkUnknownRules = t.alwaysValidSchema = t.toHash = void 0; + const r = n(5669), + o = n(6545); + + function i(e, t = e.schema) { + const { + opts: n, + self: r + } = e; + if (!n.strictSchema) return; + if ("boolean" == typeof t) return; + const o = r.RULES.keywords; + for (const n in t) o[n] || m(e, `unknown keyword: "${n}"`) + } + + function s(e, t) { + if ("boolean" == typeof e) return !e; + for (const n in e) + if (t[n]) return !0; + return !1 + } + + function a(e) { + return "number" == typeof e ? `${e}` : e.replace(/~/g, "~0").replace(/\//g, "~1") + } + + function c(e) { + return e.replace(/~1/g, "/").replace(/~0/g, "~") + } + + function u({ + mergeNames: e, + mergeToName: t, + mergeValues: n, + resultToName: o + }) { + return (i, s, a, c) => { + const u = void 0 === a ? s : a instanceof r.Name ? (s instanceof r.Name ? e(i, s, a) : t(i, s, a), a) : s instanceof r.Name ? (t(i, a, s), s) : n(s, a); + return c !== r.Name || u instanceof r.Name ? u : o(i, u) + } + } + + function l(e, t) { + if (!0 === t) return e.var("props", !0); + const n = e.var("props", r._`{}`); + return void 0 !== t && d(e, n, t), n + } + + function d(e, t, n) { + Object.keys(n).forEach((n => e.assign(r._`${t}${(0,r.getProperty)(n)}`, !0))) + } + t.toHash = function(e) { + const t = {}; + for (const n of e) t[n] = !0; + return t + }, t.alwaysValidSchema = function(e, t) { + return "boolean" == typeof t ? t : 0 === Object.keys(t).length || (i(e, t), !s(t, e.self.RULES.all)) + }, t.checkUnknownRules = i, t.schemaHasRules = s, t.schemaHasRulesButRef = function(e, t) { + if ("boolean" == typeof e) return !e; + for (const n in e) + if ("$ref" !== n && t.all[n]) return !0; + return !1 + }, t.schemaRefOrVal = function({ + topSchemaRef: e, + schemaPath: t + }, n, o, i) { + if (!i) { + if ("number" == typeof n || "boolean" == typeof n) return n; + if ("string" == typeof n) return r._`${n}` + } + return r._`${e}${t}${(0,r.getProperty)(o)}` + }, t.unescapeFragment = function(e) { + return c(decodeURIComponent(e)) + }, t.escapeFragment = function(e) { + return encodeURIComponent(a(e)) + }, t.escapeJsonPointer = a, t.unescapeJsonPointer = c, t.eachItem = function(e, t) { + if (Array.isArray(e)) + for (const n of e) t(n); + else t(e) + }, t.mergeEvaluated = { + props: u({ + mergeNames: (e, t, n) => e.if(r._`${n} !== true && ${t} !== undefined`, (() => { + e.if(r._`${t} === true`, (() => e.assign(n, !0)), (() => e.assign(n, r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`))) + })), + mergeToName: (e, t, n) => e.if(r._`${n} !== true`, (() => { + !0 === t ? e.assign(n, !0) : (e.assign(n, r._`${n} || {}`), d(e, n, t)) + })), + mergeValues: (e, t) => !0 === e || { + ...e, + ...t + }, + resultToName: l + }), + items: u({ + mergeNames: (e, t, n) => e.if(r._`${n} !== true && ${t} !== undefined`, (() => e.assign(n, r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))), + mergeToName: (e, t, n) => e.if(r._`${n} !== true`, (() => e.assign(n, !0 === t || r._`${n} > ${t} ? ${n} : ${t}`))), + mergeValues: (e, t) => !0 === e || Math.max(e, t), + resultToName: (e, t) => e.var("items", t) + }) + }, t.evaluatedPropsToName = l, t.setEvaluated = d; + const p = {}; + var h; + + function m(e, t, n = e.opts.strictSchema) { + if (n) { + if (t = `strict mode: ${t}`, !0 === n) throw new Error(t); + e.self.logger.warn(t) + } + } + t.useFunc = function(e, t) { + return e.scopeValue("func", { + ref: t, + code: p[t.code] || (p[t.code] = new o._Code(t.code)) + }) + }, + function(e) { + e[e.Num = 0] = "Num", e[e.Str = 1] = "Str" + }(h = t.Type || (t.Type = {})), t.getErrorPath = function(e, t, n) { + if (e instanceof r.Name) { + const o = t === h.Num; + return n ? o ? r._`"[" + ${e} + "]"` : r._`"['" + ${e} + "']"` : o ? r._`"/" + ${e}` : r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")` + } + return n ? (0, r.getProperty)(e).toString() : "/" + a(e) + }, t.checkStrictMode = m + }, + 9073: (e, t) => { + "use strict"; + + function n(e, t) { + return t.rules.some((t => r(e, t))) + } + + function r(e, t) { + var n; + return void 0 !== e[t.keyword] || (null === (n = t.definition.implements) || void 0 === n ? void 0 : n.some((t => void 0 !== e[t]))) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.shouldUseRule = t.shouldUseGroup = t.schemaHasRulesForType = void 0, t.schemaHasRulesForType = function({ + schema: e, + self: t + }, r) { + const o = t.RULES.types[r]; + return o && !0 !== o && n(e, o) + }, t.shouldUseGroup = n, t.shouldUseRule = r + }, + 2171: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.boolOrEmptySchema = t.topBoolOrEmptySchema = void 0; + const r = n(6930), + o = n(5669), + i = n(7250), + s = { + message: "boolean schema is false" + }; + + function a(e, t) { + const { + gen: n, + data: o + } = e, i = { + gen: n, + keyword: "false schema", + data: o, + schema: !1, + schemaCode: !1, + schemaValue: !1, + params: {}, + it: e + }; + (0, r.reportError)(i, s, void 0, t) + } + t.topBoolOrEmptySchema = function(e) { + const { + gen: t, + schema: n, + validateName: r + } = e; + !1 === n ? a(e, !1) : "object" == typeof n && !0 === n.$async ? t.return(i.default.data) : (t.assign(o._`${r}.errors`, null), t.return(!0)) + }, t.boolOrEmptySchema = function(e, t) { + const { + gen: n, + schema: r + } = e; + !1 === r ? (n.var(t, !1), a(e)) : n.var(t, !0) + } + }, + 7332: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.reportTypeError = t.checkDataTypes = t.checkDataType = t.coerceAndCheckDataType = t.getJSONTypes = t.getSchemaTypes = t.DataType = void 0; + const r = n(2881), + o = n(9073), + i = n(6930), + s = n(5669), + a = n(8936); + var c; + + function u(e) { + const t = Array.isArray(e) ? e : e ? [e] : []; + if (t.every(r.isJSONType)) return t; + throw new Error("type must be JSONType or JSONType[]: " + t.join(",")) + }! function(e) { + e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong" + }(c = t.DataType || (t.DataType = {})), t.getSchemaTypes = function(e) { + const t = u(e.type); + if (t.includes("null")) { + if (!1 === e.nullable) throw new Error("type: null contradicts nullable: false") + } else { + if (!t.length && void 0 !== e.nullable) throw new Error('"nullable" cannot be used without "type"'); + !0 === e.nullable && t.push("null") + } + return t + }, t.getJSONTypes = u, t.coerceAndCheckDataType = function(e, t) { + const { + gen: n, + data: r, + opts: i + } = e, a = function(e, t) { + return t ? e.filter((e => l.has(e) || "array" === t && "array" === e)) : [] + }(t, i.coerceTypes), u = t.length > 0 && !(0 === a.length && 1 === t.length && (0, o.schemaHasRulesForType)(e, t[0])); + if (u) { + const o = p(t, r, i.strictNumbers, c.Wrong); + n.if(o, (() => { + a.length ? function(e, t, n) { + const { + gen: r, + data: o, + opts: i + } = e, a = r.let("dataType", s._`typeof ${o}`), c = r.let("coerced", s._`undefined`); + "array" === i.coerceTypes && r.if(s._`${a} == 'object' && Array.isArray(${o}) && ${o}.length == 1`, (() => r.assign(o, s._`${o}[0]`).assign(a, s._`typeof ${o}`).if(p(t, o, i.strictNumbers), (() => r.assign(c, o))))), r.if(s._`${c} !== undefined`); + for (const e of n)(l.has(e) || "array" === e && "array" === i.coerceTypes) && u(e); + + function u(e) { + switch (e) { + case "string": + return void r.elseIf(s._`${a} == "number" || ${a} == "boolean"`).assign(c, s._`"" + ${o}`).elseIf(s._`${o} === null`).assign(c, s._`""`); + case "number": + return void r.elseIf(s._`${a} == "boolean" || ${o} === null + || (${a} == "string" && ${o} && ${o} == +${o})`).assign(c, s._`+${o}`); + case "integer": + return void r.elseIf(s._`${a} === "boolean" || ${o} === null + || (${a} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(c, s._`+${o}`); + case "boolean": + return void r.elseIf(s._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(c, !1).elseIf(s._`${o} === "true" || ${o} === 1`).assign(c, !0); + case "null": + return r.elseIf(s._`${o} === "" || ${o} === 0 || ${o} === false`), void r.assign(c, null); + case "array": + r.elseIf(s._`${a} === "string" || ${a} === "number" + || ${a} === "boolean" || ${o} === null`).assign(c, s._`[${o}]`) + } + } + r.else(), m(e), r.endIf(), r.if(s._`${c} !== undefined`, (() => { + r.assign(o, c), + function({ + gen: e, + parentData: t, + parentDataProperty: n + }, r) { + e.if(s._`${t} !== undefined`, (() => e.assign(s._`${t}[${n}]`, r))) + }(e, c) + })) + }(e, t, a) : m(e) + })) + } + return u + }; + const l = new Set(["string", "number", "integer", "boolean", "null"]); + + function d(e, t, n, r = c.Correct) { + const o = r === c.Correct ? s.operators.EQ : s.operators.NEQ; + let i; + switch (e) { + case "null": + return s._`${t} ${o} null`; + case "array": + i = s._`Array.isArray(${t})`; + break; + case "object": + i = s._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`; + break; + case "integer": + i = a(s._`!(${t} % 1) && !isNaN(${t})`); + break; + case "number": + i = a(); + break; + default: + return s._`typeof ${t} ${o} ${e}` + } + return r === c.Correct ? i : (0, s.not)(i); + + function a(e = s.nil) { + return (0, s.and)(s._`typeof ${t} == "number"`, e, n ? s._`isFinite(${t})` : s.nil) + } + } + + function p(e, t, n, r) { + if (1 === e.length) return d(e[0], t, n, r); + let o; + const i = (0, a.toHash)(e); + if (i.array && i.object) { + const e = s._`typeof ${t} != "object"`; + o = i.null ? e : s._`!${t} || ${e}`, delete i.null, delete i.array, delete i.object + } else o = s.nil; + i.number && delete i.integer; + for (const e in i) o = (0, s.and)(o, d(e, t, n, r)); + return o + } + t.checkDataType = d, t.checkDataTypes = p; + const h = { + message: ({ + schema: e + }) => `must be ${e}`, + params: ({ + schema: e, + schemaValue: t + }) => "string" == typeof e ? s._`{type: ${e}}` : s._`{type: ${t}}` + }; + + function m(e) { + const t = function(e) { + const { + gen: t, + data: n, + schema: r + } = e, o = (0, a.schemaRefOrVal)(e, r, "type"); + return { + gen: t, + keyword: "type", + data: n, + schema: r.type, + schemaCode: o, + schemaValue: o, + parentSchema: r, + params: {}, + it: e + } + }(e); + (0, i.reportError)(t, h) + } + t.reportTypeError = m + }, + 1481: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.assignDefaults = void 0; + const r = n(5669), + o = n(8936); + + function i(e, t, n) { + const { + gen: i, + compositeRule: s, + data: a, + opts: c + } = e; + if (void 0 === n) return; + const u = r._`${a}${(0,r.getProperty)(t)}`; + if (s) return void(0, o.checkStrictMode)(e, `default is ignored for: ${u}`); + let l = r._`${u} === undefined`; + "empty" === c.useDefaults && (l = r._`${l} || ${u} === null || ${u} === ""`), i.if(l, r._`${u} = ${(0,r.stringify)(n)}`) + } + t.assignDefaults = function(e, t) { + const { + properties: n, + items: r + } = e.schema; + if ("object" === t && n) + for (const t in n) i(e, t, n[t].default); + else "array" === t && Array.isArray(r) && r.forEach(((t, n) => i(e, n, t.default))) + } + }, + 1686: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getData = t.KeywordCxt = t.validateFunctionCode = void 0; + const r = n(2171), + o = n(7332), + i = n(9073), + s = n(7332), + a = n(1481), + c = n(5782), + u = n(8878), + l = n(5669), + d = n(7250), + p = n(6696), + h = n(8936), + m = n(6930); + + function f({ + gen: e, + validateName: t, + schema: n, + schemaEnv: r, + opts: o + }, i) { + o.code.es5 ? e.func(t, l._`${d.default.data}, ${d.default.valCxt}`, r.$async, (() => { + e.code(l._`"use strict"; ${g(n,o)}`), + function(e, t) { + e.if(d.default.valCxt, (() => { + e.var(d.default.instancePath, l._`${d.default.valCxt}.${d.default.instancePath}`), e.var(d.default.parentData, l._`${d.default.valCxt}.${d.default.parentData}`), e.var(d.default.parentDataProperty, l._`${d.default.valCxt}.${d.default.parentDataProperty}`), e.var(d.default.rootData, l._`${d.default.valCxt}.${d.default.rootData}`), t.dynamicRef && e.var(d.default.dynamicAnchors, l._`${d.default.valCxt}.${d.default.dynamicAnchors}`) + }), (() => { + e.var(d.default.instancePath, l._`""`), e.var(d.default.parentData, l._`undefined`), e.var(d.default.parentDataProperty, l._`undefined`), e.var(d.default.rootData, d.default.data), t.dynamicRef && e.var(d.default.dynamicAnchors, l._`{}`) + })) + }(e, o), e.code(i) + })) : e.func(t, l._`${d.default.data}, ${function(e){return l._`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${e.dynamicRef?l._`, ${d.default.dynamicAnchors}={}`:l.nil}}={}`}(o)}`, r.$async, (() => e.code(g(n, o)).code(i))) + } + + function g(e, t) { + const n = "object" == typeof e && e[t.schemaId]; + return n && (t.code.source || t.code.process) ? l._`/*# sourceURL=${n} */` : l.nil + } + + function y({ + schema: e, + self: t + }) { + if ("boolean" == typeof e) return !e; + for (const n in e) + if (t.RULES.all[n]) return !0; + return !1 + } + + function _(e) { + return "boolean" != typeof e.schema + } + + function v(e) { + (0, h.checkUnknownRules)(e), + function(e) { + const { + schema: t, + errSchemaPath: n, + opts: r, + self: o + } = e; + t.$ref && r.ignoreKeywordsWithRef && (0, h.schemaHasRulesButRef)(t, o.RULES) && o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`) + }(e) + } + + function b(e, t) { + if (e.opts.jtd) return w(e, [], !1, t); + const n = (0, o.getSchemaTypes)(e.schema); + w(e, n, !(0, o.coerceAndCheckDataType)(e, n), t) + } + + function k({ + gen: e, + schemaEnv: t, + schema: n, + errSchemaPath: r, + opts: o + }) { + const i = n.$comment; + if (!0 === o.$comment) e.code(l._`${d.default.self}.logger.log(${i})`); + else if ("function" == typeof o.$comment) { + const n = l.str`${r}/$comment`, + o = e.scopeValue("root", { + ref: t.root + }); + e.code(l._`${d.default.self}.opts.$comment(${i}, ${n}, ${o}.schema)`) + } + } + + function w(e, t, n, r) { + const { + gen: o, + schema: a, + data: c, + allErrors: u, + opts: p, + self: m + } = e, { + RULES: f + } = m; + + function g(h) { + (0, i.shouldUseGroup)(a, h) && (h.type ? (o.if((0, s.checkDataType)(h.type, c, p.strictNumbers)), j(e, h), 1 === t.length && t[0] === h.type && n && (o.else(), (0, s.reportTypeError)(e)), o.endIf()) : j(e, h), u || o.if(l._`${d.default.errors} === ${r||0}`)) + }!a.$ref || !p.ignoreKeywordsWithRef && (0, h.schemaHasRulesButRef)(a, f) ? (p.jtd || function(e, t) { + !e.schemaEnv.meta && e.opts.strictTypes && (function(e, t) { + t.length && (e.dataTypes.length ? (t.forEach((t => { + x(e.dataTypes, t) || E(e, `type "${t}" not allowed by context "${e.dataTypes.join(",")}"`) + })), e.dataTypes = e.dataTypes.filter((e => x(t, e)))) : e.dataTypes = t) + }(e, t), e.opts.allowUnionTypes || function(e, t) { + t.length > 1 && (2 !== t.length || !t.includes("null")) && E(e, "use allowUnionTypes to allow union type keyword") + }(e, t), function(e, t) { + const n = e.self.RULES.all; + for (const r in n) { + const o = n[r]; + if ("object" == typeof o && (0, i.shouldUseRule)(e.schema, o)) { + const { + type: n + } = o.definition; + n.length && !n.some((e => { + return r = e, (n = t).includes(r) || "number" === r && n.includes("integer"); + var n, r + })) && E(e, `missing type "${n.join(",")}" for keyword "${r}"`) + } + } + }(e, e.dataTypes)) + }(e, t), o.block((() => { + for (const e of f.rules) g(e); + g(f.post) + }))) : o.block((() => S(e, "$ref", f.all.$ref.definition))) + } + + function j(e, t) { + const { + gen: n, + schema: r, + opts: { + useDefaults: o + } + } = e; + o && (0, a.assignDefaults)(e, t.type), n.block((() => { + for (const n of t.rules)(0, i.shouldUseRule)(r, n) && S(e, n.keyword, n.definition, t.type) + })) + } + + function x(e, t) { + return e.includes(t) || "integer" === t && e.includes("number") + } + + function E(e, t) { + t += ` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`, (0, h.checkStrictMode)(e, t, e.opts.strictTypes) + } + t.validateFunctionCode = function(e) { + _(e) && (v(e), y(e)) ? function(e) { + const { + schema: t, + opts: n, + gen: r + } = e; + f(e, (() => { + n.$comment && t.$comment && k(e), + function(e) { + const { + schema: t, + opts: n + } = e; + void 0 !== t.default && n.useDefaults && n.strictSchema && (0, h.checkStrictMode)(e, "default is ignored in the schema root") + }(e), r.let(d.default.vErrors, null), r.let(d.default.errors, 0), n.unevaluated && function(e) { + const { + gen: t, + validateName: n + } = e; + e.evaluated = t.const("evaluated", l._`${n}.evaluated`), t.if(l._`${e.evaluated}.dynamicProps`, (() => t.assign(l._`${e.evaluated}.props`, l._`undefined`))), t.if(l._`${e.evaluated}.dynamicItems`, (() => t.assign(l._`${e.evaluated}.items`, l._`undefined`))) + }(e), b(e), + function(e) { + const { + gen: t, + schemaEnv: n, + validateName: r, + ValidationError: o, + opts: i + } = e; + n.$async ? t.if(l._`${d.default.errors} === 0`, (() => t.return(d.default.data)), (() => t.throw(l._`new ${o}(${d.default.vErrors})`))) : (t.assign(l._`${r}.errors`, d.default.vErrors), i.unevaluated && function({ + gen: e, + evaluated: t, + props: n, + items: r + }) { + n instanceof l.Name && e.assign(l._`${t}.props`, n), r instanceof l.Name && e.assign(l._`${t}.items`, r) + }(e), t.return(l._`${d.default.errors} === 0`)) + }(e) + })) + }(e) : f(e, (() => (0, r.topBoolOrEmptySchema)(e))) + }; + class C { + constructor(e, t, n) { + if ((0, c.validateKeywordUsage)(e, t, n), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = n, this.data = e.data, this.schema = e.schema[n], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, h.schemaRefOrVal)(e, this.schema, n, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data) this.schemaCode = e.gen.const("vSchema", I(this.$data, e)); + else if (this.schemaCode = this.schemaValue, !(0, c.validSchemaType)(this.schema, t.schemaType, t.allowUndefined)) throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`); + ("code" in t ? t.trackErrors : !1 !== t.errors) && (this.errsCount = e.gen.const("_errs", d.default.errors)) + } + result(e, t, n) { + this.failResult((0, l.not)(e), t, n) + } + failResult(e, t, n) { + this.gen.if(e), n ? n() : this.error(), t ? (this.gen.else(), t(), this.allErrors && this.gen.endIf()) : this.allErrors ? this.gen.endIf() : this.gen.else() + } + pass(e, t) { + this.failResult((0, l.not)(e), void 0, t) + } + fail(e) { + if (void 0 === e) return this.error(), void(this.allErrors || this.gen.if(!1)); + this.gen.if(e), this.error(), this.allErrors ? this.gen.endIf() : this.gen.else() + } + fail$data(e) { + if (!this.$data) return this.fail(e); + const { + schemaCode: t + } = this; + this.fail(l._`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`) + } + error(e, t, n) { + if (t) return this.setParams(t), this._error(e, n), void this.setParams({}); + this._error(e, n) + } + _error(e, t) { + (e ? m.reportExtraError : m.reportError)(this, this.def.error, t) + } + $dataError() { + (0, m.reportError)(this, this.def.$dataError || m.keyword$DataError) + } + reset() { + if (void 0 === this.errsCount) throw new Error('add "trackErrors" to keyword definition'); + (0, m.resetErrorsCount)(this.gen, this.errsCount) + } + ok(e) { + this.allErrors || this.gen.if(e) + } + setParams(e, t) { + t ? Object.assign(this.params, e) : this.params = e + } + block$data(e, t, n = l.nil) { + this.gen.block((() => { + this.check$data(e, n), t() + })) + } + check$data(e = l.nil, t = l.nil) { + if (!this.$data) return; + const { + gen: n, + schemaCode: r, + schemaType: o, + def: i + } = this; + n.if((0, l.or)(l._`${r} === undefined`, t)), e !== l.nil && n.assign(e, !0), (o.length || i.validateSchema) && (n.elseIf(this.invalid$data()), this.$dataError(), e !== l.nil && n.assign(e, !1)), n.else() + } + invalid$data() { + const { + gen: e, + schemaCode: t, + schemaType: n, + def: r, + it: o + } = this; + return (0, l.or)(function() { + if (n.length) { + if (!(t instanceof l.Name)) throw new Error("ajv implementation error"); + const e = Array.isArray(n) ? n : [n]; + return l._`${(0,s.checkDataTypes)(e,t,o.opts.strictNumbers,s.DataType.Wrong)}` + } + return l.nil + }(), function() { + if (r.validateSchema) { + const n = e.scopeValue("validate$data", { + ref: r.validateSchema + }); + return l._`!${n}(${t})` + } + return l.nil + }()) + } + subschema(e, t) { + const n = (0, u.getSubschema)(this.it, e); + (0, u.extendSubschemaData)(n, this.it, e), (0, u.extendSubschemaMode)(n, e); + const o = { + ...this.it, + ...n, + items: void 0, + props: void 0 + }; + return function(e, t) { + _(e) && (v(e), y(e)) ? function(e, t) { + const { + schema: n, + gen: r, + opts: o + } = e; + o.$comment && n.$comment && k(e), + function(e) { + const t = e.schema[e.opts.schemaId]; + t && (e.baseId = (0, p.resolveUrl)(e.baseId, t)) + }(e), + function(e) { + if (e.schema.$async && !e.schemaEnv.$async) throw new Error("async schema in sync schema") + }(e); + const i = r.const("_errs", d.default.errors); + b(e, i), r.var(t, l._`${i} === ${d.default.errors}`) + }(e, t) : (0, r.boolOrEmptySchema)(e, t) + }(o, t), o + } + mergeEvaluated(e, t) { + const { + it: n, + gen: r + } = this; + n.opts.unevaluated && (!0 !== n.props && void 0 !== e.props && (n.props = h.mergeEvaluated.props(r, e.props, n.props, t)), !0 !== n.items && void 0 !== e.items && (n.items = h.mergeEvaluated.items(r, e.items, n.items, t))) + } + mergeValidEvaluated(e, t) { + const { + it: n, + gen: r + } = this; + if (n.opts.unevaluated && (!0 !== n.props || !0 !== n.items)) return r.if(t, (() => this.mergeEvaluated(e, l.Name))), !0 + } + } + + function S(e, t, n, r) { + const o = new C(e, n, t); + "code" in n ? n.code(o, r) : o.$data && n.validate ? (0, c.funcKeywordCode)(o, n) : "macro" in n ? (0, c.macroKeywordCode)(o, n) : (n.compile || n.validate) && (0, c.funcKeywordCode)(o, n) + } + t.KeywordCxt = C; + const T = /^\/(?:[^~]|~0|~1)*$/, + P = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/; + + function I(e, { + dataLevel: t, + dataNames: n, + dataPathArr: r + }) { + let o, i; + if ("" === e) return d.default.rootData; + if ("/" === e[0]) { + if (!T.test(e)) throw new Error(`Invalid JSON-pointer: ${e}`); + o = e, i = d.default.rootData + } else { + const s = P.exec(e); + if (!s) throw new Error(`Invalid JSON-pointer: ${e}`); + const a = +s[1]; + if (o = s[2], "#" === o) { + if (a >= t) throw new Error(c("property/index", a)); + return r[t - a] + } + if (a > t) throw new Error(c("data", a)); + if (i = n[t - a], !o) return i + } + let s = i; + const a = o.split("/"); + for (const e of a) e && (i = l._`${i}${(0,l.getProperty)((0,h.unescapeJsonPointer)(e))}`, s = l._`${s} && ${i}`); + return s; + + function c(e, n) { + return `Cannot access ${e} ${n} levels up, current level is ${t}` + } + } + t.getData = I + }, + 5782: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.validateKeywordUsage = t.validSchemaType = t.funcKeywordCode = t.macroKeywordCode = void 0; + const r = n(5669), + o = n(7250), + i = n(3499), + s = n(6930); + + function a(e) { + const { + gen: t, + data: n, + it: o + } = e; + t.if(o.parentData, (() => t.assign(n, r._`${o.parentData}[${o.parentDataProperty}]`))) + } + + function c(e, t, n) { + if (void 0 === n) throw new Error(`keyword "${t}" failed to compile`); + return e.scopeValue("keyword", "function" == typeof n ? { + ref: n + } : { + ref: n, + code: (0, r.stringify)(n) + }) + } + t.macroKeywordCode = function(e, t) { + const { + gen: n, + keyword: o, + schema: i, + parentSchema: s, + it: a + } = e, u = t.macro.call(a.self, i, s, a), l = c(n, o, u); + !1 !== a.opts.validateSchema && a.self.validateSchema(u, !0); + const d = n.name("valid"); + e.subschema({ + schema: u, + schemaPath: r.nil, + errSchemaPath: `${a.errSchemaPath}/${o}`, + topSchemaRef: l, + compositeRule: !0 + }, d), e.pass(d, (() => e.error(!0))) + }, t.funcKeywordCode = function(e, t) { + var n; + const { + gen: u, + keyword: l, + schema: d, + parentSchema: p, + $data: h, + it: m + } = e; + ! function({ + schemaEnv: e + }, t) { + if (t.async && !e.$async) throw new Error("async keyword in sync schema") + }(m, t); + const f = !h && t.compile ? t.compile.call(m.self, d, p, m) : t.validate, + g = c(u, l, f), + y = u.let("valid"); + + function _(n = (t.async ? r._`await ` : r.nil)) { + const s = m.opts.passContext ? o.default.this : o.default.self, + a = !("compile" in t && !h || !1 === t.schema); + u.assign(y, r._`${n}${(0,i.callValidateCode)(e,g,s,a)}`, t.modifying) + } + + function v(e) { + var n; + u.if((0, r.not)(null !== (n = t.valid) && void 0 !== n ? n : y), e) + } + e.block$data(y, (function() { + if (!1 === t.errors) _(), t.modifying && a(e), v((() => e.error())); + else { + const n = t.async ? function() { + const e = u.let("ruleErrs", null); + return u.try((() => _(r._`await `)), (t => u.assign(y, !1).if(r._`${t} instanceof ${m.ValidationError}`, (() => u.assign(e, r._`${t}.errors`)), (() => u.throw(t))))), e + }() : function() { + const e = r._`${g}.errors`; + return u.assign(e, null), _(r.nil), e + }(); + t.modifying && a(e), v((() => function(e, t) { + const { + gen: n + } = e; + n.if(r._`Array.isArray(${t})`, (() => { + n.assign(o.default.vErrors, r._`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`).assign(o.default.errors, r._`${o.default.vErrors}.length`), (0, s.extendErrors)(e) + }), (() => e.error())) + }(e, n))) + } + })), e.ok(null !== (n = t.valid) && void 0 !== n ? n : y) + }, t.validSchemaType = function(e, t, n = !1) { + return !t.length || t.some((t => "array" === t ? Array.isArray(e) : "object" === t ? e && "object" == typeof e && !Array.isArray(e) : typeof e == t || n && void 0 === e)) + }, t.validateKeywordUsage = function({ + schema: e, + opts: t, + self: n, + errSchemaPath: r + }, o, i) { + if (Array.isArray(o.keyword) ? !o.keyword.includes(i) : o.keyword !== i) throw new Error("ajv implementation error"); + const s = o.dependencies; + if (null == s ? void 0 : s.some((t => !Object.prototype.hasOwnProperty.call(e, t)))) throw new Error(`parent schema must have dependencies of ${i}: ${s.join(",")}`); + if (o.validateSchema && !o.validateSchema(e[i])) { + const e = `keyword "${i}" value is invalid at path "${r}": ` + n.errorsText(o.validateSchema.errors); + if ("log" !== t.validateSchema) throw new Error(e); + n.logger.error(e) + } + } + }, + 8878: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.extendSubschemaMode = t.extendSubschemaData = t.getSubschema = void 0; + const r = n(5669), + o = n(8936); + t.getSubschema = function(e, { + keyword: t, + schemaProp: n, + schema: i, + schemaPath: s, + errSchemaPath: a, + topSchemaRef: c + }) { + if (void 0 !== t && void 0 !== i) throw new Error('both "keyword" and "schema" passed, only one allowed'); + if (void 0 !== t) { + const i = e.schema[t]; + return void 0 === n ? { + schema: i, + schemaPath: r._`${e.schemaPath}${(0,r.getProperty)(t)}`, + errSchemaPath: `${e.errSchemaPath}/${t}` + } : { + schema: i[n], + schemaPath: r._`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`, + errSchemaPath: `${e.errSchemaPath}/${t}/${(0,o.escapeFragment)(n)}` + } + } + if (void 0 !== i) { + if (void 0 === s || void 0 === a || void 0 === c) throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"'); + return { + schema: i, + schemaPath: s, + topSchemaRef: c, + errSchemaPath: a + } + } + throw new Error('either "keyword" or "schema" must be passed') + }, t.extendSubschemaData = function(e, t, { + dataProp: n, + dataPropType: i, + data: s, + dataTypes: a, + propertyName: c + }) { + if (void 0 !== s && void 0 !== n) throw new Error('both "data" and "dataProp" passed, only one allowed'); + const { + gen: u + } = t; + if (void 0 !== n) { + const { + errorPath: s, + dataPathArr: a, + opts: c + } = t; + l(u.let("data", r._`${t.data}${(0,r.getProperty)(n)}`, !0)), e.errorPath = r.str`${s}${(0,o.getErrorPath)(n,i,c.jsPropertySyntax)}`, e.parentDataProperty = r._`${n}`, e.dataPathArr = [...a, e.parentDataProperty] + } + + function l(n) { + e.data = n, e.dataLevel = t.dataLevel + 1, e.dataTypes = [], t.definedProperties = new Set, e.parentData = t.data, e.dataNames = [...t.dataNames, n] + } + void 0 !== s && (l(s instanceof r.Name ? s : u.let("data", s, !0)), void 0 !== c && (e.propertyName = c)), a && (e.dataTypes = a) + }, t.extendSubschemaMode = function(e, { + jtdDiscriminator: t, + jtdMetadata: n, + compositeRule: r, + createErrors: o, + allErrors: i + }) { + void 0 !== r && (e.compositeRule = r), void 0 !== o && (e.createErrors = o), void 0 !== i && (e.allErrors = i), e.jtdDiscriminator = t, e.jtdMetadata = n + } + }, + 8355: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = void 0; + var r = n(1686); + Object.defineProperty(t, "KeywordCxt", { + enumerable: !0, + get: function() { + return r.KeywordCxt + } + }); + var o = n(5669); + Object.defineProperty(t, "_", { + enumerable: !0, + get: function() { + return o._ + } + }), Object.defineProperty(t, "str", { + enumerable: !0, + get: function() { + return o.str + } + }), Object.defineProperty(t, "stringify", { + enumerable: !0, + get: function() { + return o.stringify + } + }), Object.defineProperty(t, "nil", { + enumerable: !0, + get: function() { + return o.nil + } + }), Object.defineProperty(t, "Name", { + enumerable: !0, + get: function() { + return o.Name + } + }), Object.defineProperty(t, "CodeGen", { + enumerable: !0, + get: function() { + return o.CodeGen + } + }); + const i = n(6448), + s = n(1578), + a = n(2881), + c = n(7382), + u = n(5669), + l = n(6696), + d = n(7332), + p = n(8936), + h = n(1143), + m = ["removeAdditional", "useDefaults", "coerceTypes"], + f = new Set(["validate", "serialize", "parse", "wrapper", "root", "schema", "keyword", "pattern", "formats", "validate$data", "func", "obj", "Error"]), + g = { + errorDataPath: "", + format: "`validateFormats: false` can be used instead.", + nullable: '"nullable" keyword is supported by default.', + jsonPointers: "Deprecated jsPropertySyntax can be used instead.", + extendRefs: "Deprecated ignoreKeywordsWithRef can be used instead.", + missingRefs: "Pass empty schema with $id that should be ignored to ajv.addSchema.", + processCode: "Use option `code: {process: (code, schemaEnv: object) => string}`", + sourceCode: "Use option `code: {source: true}`", + strictDefaults: "It is default now, see option `strict`.", + strictKeywords: "It is default now, see option `strict`.", + uniqueItems: '"uniqueItems" keyword is always validated.', + unknownFormats: "Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).", + cache: "Map is used as cache, schema object as key.", + serialize: "Map is used as cache, schema object as key.", + ajvErrors: "It is default now." + }, + y = { + ignoreKeywordsWithRef: "", + jsPropertySyntax: "", + unicode: '"minLength"/"maxLength" account for unicode characters by default.' + }; + + function _(e) { + var t, n, r, o, i, s, a, c, u, l, d, p, h, m, f, g, y, _, v, b, k, w; + const j = e.strict, + x = null === (t = e.code) || void 0 === t ? void 0 : t.optimize, + E = !0 === x || void 0 === x ? 1 : x || 0; + return { + strictSchema: null === (r = null !== (n = e.strictSchema) && void 0 !== n ? n : j) || void 0 === r || r, + strictNumbers: null === (i = null !== (o = e.strictNumbers) && void 0 !== o ? o : j) || void 0 === i || i, + strictTypes: null !== (a = null !== (s = e.strictTypes) && void 0 !== s ? s : j) && void 0 !== a ? a : "log", + strictTuples: null !== (u = null !== (c = e.strictTuples) && void 0 !== c ? c : j) && void 0 !== u ? u : "log", + strictRequired: null !== (d = null !== (l = e.strictRequired) && void 0 !== l ? l : j) && void 0 !== d && d, + code: e.code ? { + ...e.code, + optimize: E + } : { + optimize: E + }, + loopRequired: null !== (p = e.loopRequired) && void 0 !== p ? p : 200, + loopEnum: null !== (h = e.loopEnum) && void 0 !== h ? h : 200, + meta: null === (m = e.meta) || void 0 === m || m, + messages: null === (f = e.messages) || void 0 === f || f, + inlineRefs: null === (g = e.inlineRefs) || void 0 === g || g, + schemaId: null !== (y = e.schemaId) && void 0 !== y ? y : "$id", + addUsedSchema: null === (_ = e.addUsedSchema) || void 0 === _ || _, + validateSchema: null === (v = e.validateSchema) || void 0 === v || v, + validateFormats: null === (b = e.validateFormats) || void 0 === b || b, + unicodeRegExp: null === (k = e.unicodeRegExp) || void 0 === k || k, + int32range: null === (w = e.int32range) || void 0 === w || w + } + } + class v { + constructor(e = {}) { + this.schemas = {}, this.refs = {}, this.formats = {}, this._compilations = new Set, this._loading = {}, this._cache = new Map, e = this.opts = { + ...e, + ..._(e) + }; + const { + es5: t, + lines: n + } = this.opts.code; + this.scope = new u.ValueScope({ + scope: {}, + prefixes: f, + es5: t, + lines: n + }), this.logger = function(e) { + if (!1 === e) return C; + if (void 0 === e) return console; + if (e.log && e.warn && e.error) return e; + throw new Error("logger must implement log, warn and error methods") + }(e.logger); + const r = e.validateFormats; + e.validateFormats = !1, this.RULES = (0, a.getRules)(), b.call(this, g, e, "NOT SUPPORTED"), b.call(this, y, e, "DEPRECATED", "warn"), this._metaOpts = E.call(this), e.formats && j.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), e.keywords && x.call(this, e.keywords), "object" == typeof e.meta && this.addMetaSchema(e.meta), w.call(this), e.validateFormats = r + } + _addVocabularies() { + this.addKeyword("$async") + } + _addDefaultMetaSchema() { + const { + $data: e, + meta: t, + schemaId: n + } = this.opts; + let r = h; + "id" === n && (r = { + ...h + }, r.id = r.$id, delete r.$id), t && e && this.addMetaSchema(r, r[n], !1) + } + defaultMeta() { + const { + meta: e, + schemaId: t + } = this.opts; + return this.opts.defaultMeta = "object" == typeof e ? e[t] || e : void 0 + } + validate(e, t) { + let n; + if ("string" == typeof e) { + if (n = this.getSchema(e), !n) throw new Error(`no schema with key or ref "${e}"`) + } else n = this.compile(e); + const r = n(t); + return "$async" in n || (this.errors = n.errors), r + } + compile(e, t) { + const n = this._addSchema(e, t); + return n.validate || this._compileSchemaEnv(n) + } + compileAsync(e, t) { + if ("function" != typeof this.opts.loadSchema) throw new Error("options.loadSchema should be a function"); + const { + loadSchema: n + } = this.opts; + return r.call(this, e, t); + async function r(e, t) { + await o.call(this, e.$schema); + const n = this._addSchema(e, t); + return n.validate || i.call(this, n) + } + async function o(e) { + e && !this.getSchema(e) && await r.call(this, { + $ref: e + }, !0) + } + async function i(e) { + try { + return this._compileSchemaEnv(e) + } catch (t) { + if (!(t instanceof s.default)) throw t; + return a.call(this, t), await c.call(this, t.missingSchema), i.call(this, e) + } + } + + function a({ + missingSchema: e, + missingRef: t + }) { + if (this.refs[e]) throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`) + } + async function c(e) { + const n = await u.call(this, e); + this.refs[e] || await o.call(this, n.$schema), this.refs[e] || this.addSchema(n, e, t) + } + async function u(e) { + const t = this._loading[e]; + if (t) return t; + try { + return await (this._loading[e] = n(e)) + } finally { + delete this._loading[e] + } + } + } + addSchema(e, t, n, r = this.opts.validateSchema) { + if (Array.isArray(e)) { + for (const t of e) this.addSchema(t, void 0, n, r); + return this + } + let o; + if ("object" == typeof e) { + const { + schemaId: t + } = this.opts; + if (o = e[t], void 0 !== o && "string" != typeof o) throw new Error(`schema ${t} must be string`) + } + return t = (0, l.normalizeId)(t || o), this._checkUnique(t), this.schemas[t] = this._addSchema(e, n, t, r, !0), this + } + addMetaSchema(e, t, n = this.opts.validateSchema) { + return this.addSchema(e, t, !0, n), this + } + validateSchema(e, t) { + if ("boolean" == typeof e) return !0; + let n; + if (n = e.$schema, void 0 !== n && "string" != typeof n) throw new Error("$schema must be a string"); + if (n = n || this.opts.defaultMeta || this.defaultMeta(), !n) return this.logger.warn("meta-schema not available"), this.errors = null, !0; + const r = this.validate(n, e); + if (!r && t) { + const e = "schema is invalid: " + this.errorsText(); + if ("log" !== this.opts.validateSchema) throw new Error(e); + this.logger.error(e) + } + return r + } + getSchema(e) { + let t; + for (; + "string" == typeof(t = k.call(this, e));) e = t; + if (void 0 === t) { + const { + schemaId: n + } = this.opts, r = new c.SchemaEnv({ + schema: {}, + schemaId: n + }); + if (t = c.resolveSchema.call(this, r, e), !t) return; + this.refs[e] = t + } + return t.validate || this._compileSchemaEnv(t) + } + removeSchema(e) { + if (e instanceof RegExp) return this._removeAllSchemas(this.schemas, e), this._removeAllSchemas(this.refs, e), this; + switch (typeof e) { + case "undefined": + return this._removeAllSchemas(this.schemas), this._removeAllSchemas(this.refs), this._cache.clear(), this; + case "string": { + const t = k.call(this, e); + return "object" == typeof t && this._cache.delete(t.schema), delete this.schemas[e], delete this.refs[e], this + } + case "object": { + const t = e; + this._cache.delete(t); + let n = e[this.opts.schemaId]; + return n && (n = (0, l.normalizeId)(n), delete this.schemas[n], delete this.refs[n]), this + } + default: + throw new Error("ajv.removeSchema: invalid parameter") + } + } + addVocabulary(e) { + for (const t of e) this.addKeyword(t); + return this + } + addKeyword(e, t) { + let n; + if ("string" == typeof e) n = e, "object" == typeof t && (this.logger.warn("these parameters are deprecated, see docs for addKeyword"), t.keyword = n); + else { + if ("object" != typeof e || void 0 !== t) throw new Error("invalid addKeywords parameters"); + if (n = (t = e).keyword, Array.isArray(n) && !n.length) throw new Error("addKeywords: keyword must be string or non-empty array") + } + if (T.call(this, n, t), !t) return (0, p.eachItem)(n, (e => P.call(this, e))), this; + R.call(this, t); + const r = { + ...t, + type: (0, d.getJSONTypes)(t.type), + schemaType: (0, d.getJSONTypes)(t.schemaType) + }; + return (0, p.eachItem)(n, 0 === r.type.length ? e => P.call(this, e, r) : e => r.type.forEach((t => P.call(this, e, r, t)))), this + } + getKeyword(e) { + const t = this.RULES.all[e]; + return "object" == typeof t ? t.definition : !!t + } + removeKeyword(e) { + const { + RULES: t + } = this; + delete t.keywords[e], delete t.all[e]; + for (const n of t.rules) { + const t = n.rules.findIndex((t => t.keyword === e)); + t >= 0 && n.rules.splice(t, 1) + } + return this + } + addFormat(e, t) { + return "string" == typeof t && (t = new RegExp(t)), this.formats[e] = t, this + } + errorsText(e = this.errors, { + separator: t = ", ", + dataVar: n = "data" + } = {}) { + return e && 0 !== e.length ? e.map((e => `${n}${e.instancePath} ${e.message}`)).reduce(((e, n) => e + t + n)) : "No errors" + } + $dataMetaSchema(e, t) { + const n = this.RULES.all; + e = JSON.parse(JSON.stringify(e)); + for (const r of t) { + const t = r.split("/").slice(1); + let o = e; + for (const e of t) o = o[e]; + for (const e in n) { + const t = n[e]; + if ("object" != typeof t) continue; + const { + $data: r + } = t.definition, i = o[e]; + r && i && (o[e] = A(i)) + } + } + return e + } + _removeAllSchemas(e, t) { + for (const n in e) { + const r = e[n]; + t && !t.test(n) || ("string" == typeof r ? delete e[n] : r && !r.meta && (this._cache.delete(r.schema), delete e[n])) + } + } + _addSchema(e, t, n, r = this.opts.validateSchema, o = this.opts.addUsedSchema) { + let i; + const { + schemaId: s + } = this.opts; + if ("object" == typeof e) i = e[s]; + else { + if (this.opts.jtd) throw new Error("schema must be object"); + if ("boolean" != typeof e) throw new Error("schema must be object or boolean") + } + let a = this._cache.get(e); + if (void 0 !== a) return a; + n = (0, l.normalizeId)(i || n); + const u = l.getSchemaRefs.call(this, e, n); + return a = new c.SchemaEnv({ + schema: e, + schemaId: s, + meta: t, + baseId: n, + localRefs: u + }), this._cache.set(a.schema, a), o && !n.startsWith("#") && (n && this._checkUnique(n), this.refs[n] = a), r && this.validateSchema(e, !0), a + } + _checkUnique(e) { + if (this.schemas[e] || this.refs[e]) throw new Error(`schema with key or id "${e}" already exists`) + } + _compileSchemaEnv(e) { + if (e.meta ? this._compileMetaSchema(e) : c.compileSchema.call(this, e), !e.validate) throw new Error("ajv implementation error"); + return e.validate + } + _compileMetaSchema(e) { + const t = this.opts; + this.opts = this._metaOpts; + try { + c.compileSchema.call(this, e) + } finally { + this.opts = t + } + } + } + + function b(e, t, n, r = "error") { + for (const o in e) { + const i = o; + i in t && this.logger[r](`${n}: option ${o}. ${e[i]}`) + } + } + + function k(e) { + return e = (0, l.normalizeId)(e), this.schemas[e] || this.refs[e] + } + + function w() { + const e = this.opts.schemas; + if (e) + if (Array.isArray(e)) this.addSchema(e); + else + for (const t in e) this.addSchema(e[t], t) + } + + function j() { + for (const e in this.opts.formats) { + const t = this.opts.formats[e]; + t && this.addFormat(e, t) + } + } + + function x(e) { + if (Array.isArray(e)) this.addVocabulary(e); + else { + this.logger.warn("keywords option as map is deprecated, pass array"); + for (const t in e) { + const n = e[t]; + n.keyword || (n.keyword = t), this.addKeyword(n) + } + } + } + + function E() { + const e = { + ...this.opts + }; + for (const t of m) delete e[t]; + return e + } + t.default = v, v.ValidationError = i.default, v.MissingRefError = s.default; + const C = { + log() {}, + warn() {}, + error() {} + }, + S = /^[a-z_$][a-z0-9_$:-]*$/i; + + function T(e, t) { + const { + RULES: n + } = this; + if ((0, p.eachItem)(e, (e => { + if (n.keywords[e]) throw new Error(`Keyword ${e} is already defined`); + if (!S.test(e)) throw new Error(`Keyword ${e} has invalid name`) + })), t && t.$data && !("code" in t) && !("validate" in t)) throw new Error('$data keyword must have "code" or "validate" function') + } + + function P(e, t, n) { + var r; + const o = null == t ? void 0 : t.post; + if (n && o) throw new Error('keyword with "post" flag cannot have "type"'); + const { + RULES: i + } = this; + let s = o ? i.post : i.rules.find((({ + type: e + }) => e === n)); + if (s || (s = { + type: n, + rules: [] + }, i.rules.push(s)), i.keywords[e] = !0, !t) return; + const a = { + keyword: e, + definition: { + ...t, + type: (0, d.getJSONTypes)(t.type), + schemaType: (0, d.getJSONTypes)(t.schemaType) + } + }; + t.before ? I.call(this, s, a, t.before) : s.rules.push(a), i.all[e] = a, null === (r = t.implements) || void 0 === r || r.forEach((e => this.addKeyword(e))) + } + + function I(e, t, n) { + const r = e.rules.findIndex((e => e.keyword === n)); + r >= 0 ? e.rules.splice(r, 0, t) : (e.rules.push(t), this.logger.warn(`rule ${n} is not defined`)) + } + + function R(e) { + let { + metaSchema: t + } = e; + void 0 !== t && (e.$data && this.opts.$data && (t = A(t)), e.validateSchema = this.compile(t, !0)) + } + const O = { + $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" + }; + + function A(e) { + return { + anyOf: [e, O] + } + } + }, + 4285: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(6471); + r.code = 'require("ajv/dist/runtime/equal").default', t.default = r + }, + 9161: (e, t) => { + "use strict"; + + function n(e) { + const t = e.length; + let n, r = 0, + o = 0; + for (; o < t;) r++, n = e.charCodeAt(o++), n >= 55296 && n <= 56319 && o < t && (n = e.charCodeAt(o), 56320 == (64512 & n) && o++); + return r + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = n, n.code = 'require("ajv/dist/runtime/ucs2length").default' + }, + 6448: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + class n extends Error { + constructor(e) { + super("validation failed"), this.errors = e, this.ajv = this.validation = !0 + } + } + t.default = n + }, + 8891: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.validateAdditionalItems = void 0; + const r = n(5669), + o = n(8936), + i = { + keyword: "additionalItems", + type: "array", + schemaType: ["boolean", "object"], + before: "uniqueItems", + error: { + message: ({ + params: { + len: e + } + }) => r.str`must NOT have more than ${e} items`, + params: ({ + params: { + len: e + } + }) => r._`{limit: ${e}}` + }, + code(e) { + const { + parentSchema: t, + it: n + } = e, { + items: r + } = t; + Array.isArray(r) ? s(e, r) : (0, o.checkStrictMode)(n, '"additionalItems" is ignored when "items" is not an array of schemas') + } + }; + + function s(e, t) { + const { + gen: n, + schema: i, + data: s, + keyword: a, + it: c + } = e; + c.items = !0; + const u = n.const("len", r._`${s}.length`); + if (!1 === i) e.setParams({ + len: t.length + }), e.pass(r._`${u} <= ${t.length}`); + else if ("object" == typeof i && !(0, o.alwaysValidSchema)(c, i)) { + const i = n.var("valid", r._`${u} <= ${t.length}`); + n.if((0, r.not)(i), (() => function(i) { + n.forRange("i", t.length, u, (t => { + e.subschema({ + keyword: a, + dataProp: t, + dataPropType: o.Type.Num + }, i), c.allErrors || n.if((0, r.not)(i), (() => n.break())) + })) + }(i))), e.ok(i) + } + } + t.validateAdditionalItems = s, t.default = i + }, + 4943: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(3499), + o = n(5669), + i = n(7250), + s = n(8936), + a = { + keyword: "additionalProperties", + type: ["object"], + schemaType: ["boolean", "object"], + allowUndefined: !0, + trackErrors: !0, + error: { + message: "must NOT have additional properties", + params: ({ + params: e + }) => o._`{additionalProperty: ${e.additionalProperty}}` + }, + code(e) { + const { + gen: t, + schema: n, + parentSchema: a, + data: c, + errsCount: u, + it: l + } = e; + if (!u) throw new Error("ajv implementation error"); + const { + allErrors: d, + opts: p + } = l; + if (l.props = !0, "all" !== p.removeAdditional && (0, s.alwaysValidSchema)(l, n)) return; + const h = (0, r.allSchemaProperties)(a.properties), + m = (0, r.allSchemaProperties)(a.patternProperties); + + function f(e) { + t.code(o._`delete ${c}[${e}]`) + } + + function g(r) { + if ("all" === p.removeAdditional || p.removeAdditional && !1 === n) f(r); + else { + if (!1 === n) return e.setParams({ + additionalProperty: r + }), e.error(), void(d || t.break()); + if ("object" == typeof n && !(0, s.alwaysValidSchema)(l, n)) { + const n = t.name("valid"); + "failing" === p.removeAdditional ? (y(r, n, !1), t.if((0, o.not)(n), (() => { + e.reset(), f(r) + }))) : (y(r, n), d || t.if((0, o.not)(n), (() => t.break()))) + } + } + } + + function y(t, n, r) { + const o = { + keyword: "additionalProperties", + dataProp: t, + dataPropType: s.Type.Str + }; + !1 === r && Object.assign(o, { + compositeRule: !0, + createErrors: !1, + allErrors: !1 + }), e.subschema(o, n) + } + t.forIn("key", c, (n => { + h.length || m.length ? t.if(function(n) { + let i; + if (h.length > 8) { + const e = (0, s.schemaRefOrVal)(l, a.properties, "properties"); + i = (0, r.isOwnProperty)(t, e, n) + } else i = h.length ? (0, o.or)(...h.map((e => o._`${n} === ${e}`))) : o.nil; + return m.length && (i = (0, o.or)(i, ...m.map((t => o._`${(0,r.usePattern)(e,t)}.test(${n})`)))), (0, o.not)(i) + }(n), (() => g(n))) : g(n) + })), e.ok(o._`${u} === ${i.default.errors}`) + } + }; + t.default = a + }, + 2609: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(8936), + o = { + keyword: "allOf", + schemaType: "array", + code(e) { + const { + gen: t, + schema: n, + it: o + } = e; + if (!Array.isArray(n)) throw new Error("ajv implementation error"); + const i = t.name("valid"); + n.forEach(((t, n) => { + if ((0, r.alwaysValidSchema)(o, t)) return; + const s = e.subschema({ + keyword: "allOf", + schemaProp: n + }, i); + e.ok(i), e.mergeEvaluated(s) + })) + } + }; + t.default = o + }, + 4279: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = { + keyword: "anyOf", + schemaType: "array", + trackErrors: !0, + code: n(3499).validateUnion, + error: { + message: "must match a schema in anyOf" + } + }; + t.default = r + }, + 5609: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5669), + o = n(8936), + i = { + keyword: "contains", + type: "array", + schemaType: ["object", "boolean"], + before: "uniqueItems", + trackErrors: !0, + error: { + message: ({ + params: { + min: e, + max: t + } + }) => void 0 === t ? r.str`must contain at least ${e} valid item(s)` : r.str`must contain at least ${e} and no more than ${t} valid item(s)`, + params: ({ + params: { + min: e, + max: t + } + }) => void 0 === t ? r._`{minContains: ${e}}` : r._`{minContains: ${e}, maxContains: ${t}}` + }, + code(e) { + const { + gen: t, + schema: n, + parentSchema: i, + data: s, + it: a + } = e; + let c, u; + const { + minContains: l, + maxContains: d + } = i; + a.opts.next ? (c = void 0 === l ? 1 : l, u = d) : c = 1; + const p = t.const("len", r._`${s}.length`); + if (e.setParams({ + min: c, + max: u + }), void 0 === u && 0 === c) return void(0, o.checkStrictMode)(a, '"minContains" == 0 without "maxContains": "contains" keyword ignored'); + if (void 0 !== u && c > u) return (0, o.checkStrictMode)(a, '"minContains" > "maxContains" is always invalid'), void e.fail(); + if ((0, o.alwaysValidSchema)(a, n)) { + let t = r._`${p} >= ${c}`; + return void 0 !== u && (t = r._`${t} && ${p} <= ${u}`), void e.pass(t) + } + a.items = !0; + const h = t.name("valid"); + if (void 0 === u && 1 === c) m(h, (() => t.if(h, (() => t.break())))); + else { + t.let(h, !1); + const e = t.name("_valid"), + n = t.let("count", 0); + m(e, (() => t.if(e, (() => function(e) { + t.code(r._`${e}++`), void 0 === u ? t.if(r._`${e} >= ${c}`, (() => t.assign(h, !0).break())) : (t.if(r._`${e} > ${u}`, (() => t.assign(h, !1).break())), 1 === c ? t.assign(h, !0) : t.if(r._`${e} >= ${c}`, (() => t.assign(h, !0)))) + }(n))))) + } + + function m(n, r) { + t.forRange("i", 0, p, (t => { + e.subschema({ + keyword: "contains", + dataProp: t, + dataPropType: o.Type.Num, + compositeRule: !0 + }, n), r() + })) + } + e.result(h, (() => e.reset())) + } + }; + t.default = i + }, + 5463: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.validateSchemaDeps = t.validatePropertyDeps = t.error = void 0; + const r = n(5669), + o = n(8936), + i = n(3499); + t.error = { + message: ({ + params: { + property: e, + depsCount: t, + deps: n + } + }) => { + const o = 1 === t ? "property" : "properties"; + return r.str`must have ${o} ${n} when property ${e} is present` + }, + params: ({ + params: { + property: e, + depsCount: t, + deps: n, + missingProperty: o + } + }) => r._`{property: ${e}, + missingProperty: ${o}, + depsCount: ${t}, + deps: ${n}}` + }; + const s = { + keyword: "dependencies", + type: "object", + schemaType: "object", + error: t.error, + code(e) { + const [t, n] = function({ + schema: e + }) { + const t = {}, + n = {}; + for (const r in e) "__proto__" !== r && ((Array.isArray(e[r]) ? t : n)[r] = e[r]); + return [t, n] + }(e); + a(e, t), c(e, n) + } + }; + + function a(e, t = e.schema) { + const { + gen: n, + data: o, + it: s + } = e; + if (0 === Object.keys(t).length) return; + const a = n.let("missing"); + for (const c in t) { + const u = t[c]; + if (0 === u.length) continue; + const l = (0, i.propertyInData)(n, o, c, s.opts.ownProperties); + e.setParams({ + property: c, + depsCount: u.length, + deps: u.join(", ") + }), s.allErrors ? n.if(l, (() => { + for (const t of u)(0, i.checkReportMissingProp)(e, t) + })) : (n.if(r._`${l} && (${(0,i.checkMissingProp)(e,u,a)})`), (0, i.reportMissingProp)(e, a), n.else()) + } + } + + function c(e, t = e.schema) { + const { + gen: n, + data: r, + keyword: s, + it: a + } = e, c = n.name("valid"); + for (const u in t)(0, o.alwaysValidSchema)(a, t[u]) || (n.if((0, i.propertyInData)(n, r, u, a.opts.ownProperties), (() => { + const t = e.subschema({ + keyword: s, + schemaProp: u + }, c); + e.mergeValidEvaluated(t, c) + }), (() => n.var(c, !0))), e.ok(c)) + } + t.validatePropertyDeps = a, t.validateSchemaDeps = c, t.default = s + }, + 76: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5669), + o = n(8936), + i = { + keyword: "if", + schemaType: ["object", "boolean"], + trackErrors: !0, + error: { + message: ({ + params: e + }) => r.str`must match "${e.ifClause}" schema`, + params: ({ + params: e + }) => r._`{failingKeyword: ${e.ifClause}}` + }, + code(e) { + const { + gen: t, + parentSchema: n, + it: i + } = e; + void 0 === n.then && void 0 === n.else && (0, o.checkStrictMode)(i, '"if" without "then" and "else" is ignored'); + const a = s(i, "then"), + c = s(i, "else"); + if (!a && !c) return; + const u = t.let("valid", !0), + l = t.name("_valid"); + if (function() { + const t = e.subschema({ + keyword: "if", + compositeRule: !0, + createErrors: !1, + allErrors: !1 + }, l); + e.mergeEvaluated(t) + }(), e.reset(), a && c) { + const n = t.let("ifClause"); + e.setParams({ + ifClause: n + }), t.if(l, d("then", n), d("else", n)) + } else a ? t.if(l, d("then")) : t.if((0, r.not)(l), d("else")); + + function d(n, o) { + return () => { + const i = e.subschema({ + keyword: n + }, l); + t.assign(u, l), e.mergeValidEvaluated(i, u), o ? t.assign(o, r._`${n}`) : e.setParams({ + ifClause: n + }) + } + } + e.pass(u, (() => e.error(!0))) + } + }; + + function s(e, t) { + const n = e.schema[t]; + return void 0 !== n && !(0, o.alwaysValidSchema)(e, n) + } + t.default = i + }, + 6951: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(8891), + o = n(1162), + i = n(8634), + s = n(5151), + a = n(5609), + c = n(5463), + u = n(3021), + l = n(4943), + d = n(4243), + p = n(8103), + h = n(2869), + m = n(4279), + f = n(4880), + g = n(2609), + y = n(76), + _ = n(5316); + t.default = function(e = !1) { + const t = [h.default, m.default, f.default, g.default, y.default, _.default, u.default, l.default, c.default, d.default, p.default]; + return e ? t.push(o.default, s.default) : t.push(r.default, i.default), t.push(a.default), t + } + }, + 8634: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.validateTuple = void 0; + const r = n(5669), + o = n(8936), + i = n(3499), + s = { + keyword: "items", + type: "array", + schemaType: ["object", "array", "boolean"], + before: "uniqueItems", + code(e) { + const { + schema: t, + it: n + } = e; + if (Array.isArray(t)) return a(e, "additionalItems", t); + n.items = !0, (0, o.alwaysValidSchema)(n, t) || e.ok((0, i.validateArray)(e)) + } + }; + + function a(e, t, n = e.schema) { + const { + gen: i, + parentSchema: s, + data: a, + keyword: c, + it: u + } = e; + ! function(e) { + const { + opts: r, + errSchemaPath: i + } = u, s = n.length, a = s === e.minItems && (s === e.maxItems || !1 === e[t]); + if (r.strictTuples && !a) { + const e = `"${c}" is ${s}-tuple, but minItems or maxItems/${t} are not specified or different at path "${i}"`; + (0, o.checkStrictMode)(u, e, r.strictTuples) + } + }(s), u.opts.unevaluated && n.length && !0 !== u.items && (u.items = o.mergeEvaluated.items(i, n.length, u.items)); + const l = i.name("valid"), + d = i.const("len", r._`${a}.length`); + n.forEach(((t, n) => { + (0, o.alwaysValidSchema)(u, t) || (i.if(r._`${d} > ${n}`, (() => e.subschema({ + keyword: c, + schemaProp: n, + dataProp: n + }, l))), e.ok(l)) + })) + } + t.validateTuple = a, t.default = s + }, + 5151: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5669), + o = n(8936), + i = n(3499), + s = n(8891), + a = { + keyword: "items", + type: "array", + schemaType: ["object", "boolean"], + before: "uniqueItems", + error: { + message: ({ + params: { + len: e + } + }) => r.str`must NOT have more than ${e} items`, + params: ({ + params: { + len: e + } + }) => r._`{limit: ${e}}` + }, + code(e) { + const { + schema: t, + parentSchema: n, + it: r + } = e, { + prefixItems: a + } = n; + r.items = !0, (0, o.alwaysValidSchema)(r, t) || (a ? (0, s.validateAdditionalItems)(e, a) : e.ok((0, i.validateArray)(e))) + } + }; + t.default = a + }, + 2869: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(8936), + o = { + keyword: "not", + schemaType: ["object", "boolean"], + trackErrors: !0, + code(e) { + const { + gen: t, + schema: n, + it: o + } = e; + if ((0, r.alwaysValidSchema)(o, n)) return void e.fail(); + const i = t.name("valid"); + e.subschema({ + keyword: "not", + compositeRule: !0, + createErrors: !1, + allErrors: !1 + }, i), e.failResult(i, (() => e.reset()), (() => e.error())) + }, + error: { + message: "must NOT be valid" + } + }; + t.default = o + }, + 4880: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5669), + o = n(8936), + i = { + keyword: "oneOf", + schemaType: "array", + trackErrors: !0, + error: { + message: "must match exactly one schema in oneOf", + params: ({ + params: e + }) => r._`{passingSchemas: ${e.passing}}` + }, + code(e) { + const { + gen: t, + schema: n, + parentSchema: i, + it: s + } = e; + if (!Array.isArray(n)) throw new Error("ajv implementation error"); + if (s.opts.discriminator && i.discriminator) return; + const a = n, + c = t.let("valid", !1), + u = t.let("passing", null), + l = t.name("_valid"); + e.setParams({ + passing: u + }), t.block((function() { + a.forEach(((n, i) => { + let a; + (0, o.alwaysValidSchema)(s, n) ? t.var(l, !0): a = e.subschema({ + keyword: "oneOf", + schemaProp: i, + compositeRule: !0 + }, l), i > 0 && t.if(r._`${l} && ${c}`).assign(c, !1).assign(u, r._`[${u}, ${i}]`).else(), t.if(l, (() => { + t.assign(c, !0), t.assign(u, i), a && e.mergeEvaluated(a, r.Name) + })) + })) + })), e.result(c, (() => e.reset()), (() => e.error(!0))) + } + }; + t.default = i + }, + 8103: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(3499), + o = n(5669), + i = n(8936), + s = n(8936), + a = { + keyword: "patternProperties", + type: "object", + schemaType: "object", + code(e) { + const { + gen: t, + schema: n, + data: a, + parentSchema: c, + it: u + } = e, { + opts: l + } = u, d = (0, r.allSchemaProperties)(n), p = d.filter((e => (0, i.alwaysValidSchema)(u, n[e]))); + if (0 === d.length || p.length === d.length && (!u.opts.unevaluated || !0 === u.props)) return; + const h = l.strictSchema && !l.allowMatchingProperties && c.properties, + m = t.name("valid"); + !0 === u.props || u.props instanceof o.Name || (u.props = (0, s.evaluatedPropsToName)(t, u.props)); + const { + props: f + } = u; + + function g(e) { + for (const t in h) new RegExp(e).test(t) && (0, i.checkStrictMode)(u, `property ${t} matches pattern ${e} (use allowMatchingProperties)`) + } + + function y(n) { + t.forIn("key", a, (i => { + t.if(o._`${(0,r.usePattern)(e,n)}.test(${i})`, (() => { + const r = p.includes(n); + r || e.subschema({ + keyword: "patternProperties", + schemaProp: n, + dataProp: i, + dataPropType: s.Type.Str + }, m), u.opts.unevaluated && !0 !== f ? t.assign(o._`${f}[${i}]`, !0) : r || u.allErrors || t.if((0, o.not)(m), (() => t.break())) + })) + })) + }! function() { + for (const e of d) h && g(e), u.allErrors ? y(e) : (t.var(m, !0), y(e), t.if(m)) + }() + } + }; + t.default = a + }, + 1162: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(8634), + o = { + keyword: "prefixItems", + type: "array", + schemaType: ["array"], + before: "uniqueItems", + code: e => (0, r.validateTuple)(e, "items") + }; + t.default = o + }, + 4243: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(1686), + o = n(3499), + i = n(8936), + s = n(4943), + a = { + keyword: "properties", + type: "object", + schemaType: "object", + code(e) { + const { + gen: t, + schema: n, + parentSchema: a, + data: c, + it: u + } = e; + "all" === u.opts.removeAdditional && void 0 === a.additionalProperties && s.default.code(new r.KeywordCxt(u, s.default, "additionalProperties")); + const l = (0, o.allSchemaProperties)(n); + for (const e of l) u.definedProperties.add(e); + u.opts.unevaluated && l.length && !0 !== u.props && (u.props = i.mergeEvaluated.props(t, (0, i.toHash)(l), u.props)); + const d = l.filter((e => !(0, i.alwaysValidSchema)(u, n[e]))); + if (0 === d.length) return; + const p = t.name("valid"); + for (const n of d) h(n) ? m(n) : (t.if((0, o.propertyInData)(t, c, n, u.opts.ownProperties)), m(n), u.allErrors || t.else().var(p, !0), t.endIf()), e.it.definedProperties.add(n), e.ok(p); + + function h(e) { + return u.opts.useDefaults && !u.compositeRule && void 0 !== n[e].default + } + + function m(t) { + e.subschema({ + keyword: "properties", + schemaProp: t, + dataProp: t + }, p) + } + } + }; + t.default = a + }, + 3021: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5669), + o = n(8936), + i = { + keyword: "propertyNames", + type: "object", + schemaType: ["object", "boolean"], + error: { + message: "property name must be valid", + params: ({ + params: e + }) => r._`{propertyName: ${e.propertyName}}` + }, + code(e) { + const { + gen: t, + schema: n, + data: i, + it: s + } = e; + if ((0, o.alwaysValidSchema)(s, n)) return; + const a = t.name("valid"); + t.forIn("key", i, (n => { + e.setParams({ + propertyName: n + }), e.subschema({ + keyword: "propertyNames", + data: n, + dataTypes: ["string"], + propertyName: n, + compositeRule: !0 + }, a), t.if((0, r.not)(a), (() => { + e.error(!0), s.allErrors || t.break() + })) + })), e.ok(a) + } + }; + t.default = i + }, + 5316: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(8936), + o = { + keyword: ["then", "else"], + schemaType: ["object", "boolean"], + code({ + keyword: e, + parentSchema: t, + it: n + }) { + void 0 === t.if && (0, r.checkStrictMode)(n, `"${e}" without "if" is ignored`) + } + }; + t.default = o + }, + 3499: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.validateUnion = t.validateArray = t.usePattern = t.callValidateCode = t.schemaProperties = t.allSchemaProperties = t.noPropertyInData = t.propertyInData = t.isOwnProperty = t.hasPropFunc = t.reportMissingProp = t.checkMissingProp = t.checkReportMissingProp = void 0; + const r = n(5669), + o = n(8936), + i = n(7250); + + function s(e) { + return e.scopeValue("func", { + ref: Object.prototype.hasOwnProperty, + code: r._`Object.prototype.hasOwnProperty` + }) + } + + function a(e, t, n) { + return r._`${s(e)}.call(${t}, ${n})` + } + + function c(e, t, n, o) { + const i = r._`${t}${(0,r.getProperty)(n)} === undefined`; + return o ? (0, r.or)(i, (0, r.not)(a(e, t, n))) : i + } + + function u(e) { + return e ? Object.keys(e).filter((e => "__proto__" !== e)) : [] + } + t.checkReportMissingProp = function(e, t) { + const { + gen: n, + data: o, + it: i + } = e; + n.if(c(n, o, t, i.opts.ownProperties), (() => { + e.setParams({ + missingProperty: r._`${t}` + }, !0), e.error() + })) + }, t.checkMissingProp = function({ + gen: e, + data: t, + it: { + opts: n + } + }, o, i) { + return (0, r.or)(...o.map((o => (0, r.and)(c(e, t, o, n.ownProperties), r._`${i} = ${o}`)))) + }, t.reportMissingProp = function(e, t) { + e.setParams({ + missingProperty: t + }, !0), e.error() + }, t.hasPropFunc = s, t.isOwnProperty = a, t.propertyInData = function(e, t, n, o) { + const i = r._`${t}${(0,r.getProperty)(n)} !== undefined`; + return o ? r._`${i} && ${a(e,t,n)}` : i + }, t.noPropertyInData = c, t.allSchemaProperties = u, t.schemaProperties = function(e, t) { + return u(t).filter((n => !(0, o.alwaysValidSchema)(e, t[n]))) + }, t.callValidateCode = function({ + schemaCode: e, + data: t, + it: { + gen: n, + topSchemaRef: o, + schemaPath: s, + errorPath: a + }, + it: c + }, u, l, d) { + const p = d ? r._`${e}, ${t}, ${o}${s}` : t, + h = [ + [i.default.instancePath, (0, r.strConcat)(i.default.instancePath, a)], + [i.default.parentData, c.parentData], + [i.default.parentDataProperty, c.parentDataProperty], + [i.default.rootData, i.default.rootData] + ]; + c.opts.dynamicRef && h.push([i.default.dynamicAnchors, i.default.dynamicAnchors]); + const m = r._`${p}, ${n.object(...h)}`; + return l !== r.nil ? r._`${u}.call(${l}, ${m})` : r._`${u}(${m})` + }, t.usePattern = function({ + gen: e, + it: { + opts: t + } + }, n) { + const o = t.unicodeRegExp ? "u" : ""; + return e.scopeValue("pattern", { + key: n, + ref: new RegExp(n, o), + code: r._`new RegExp(${n}, ${o})` + }) + }, t.validateArray = function(e) { + const { + gen: t, + data: n, + keyword: i, + it: s + } = e, a = t.name("valid"); + if (s.allErrors) { + const e = t.let("valid", !0); + return c((() => t.assign(e, !1))), e + } + return t.var(a, !0), c((() => t.break())), a; + + function c(s) { + const c = t.const("len", r._`${n}.length`); + t.forRange("i", 0, c, (n => { + e.subschema({ + keyword: i, + dataProp: n, + dataPropType: o.Type.Num + }, a), t.if((0, r.not)(a), s) + })) + } + }, t.validateUnion = function(e) { + const { + gen: t, + schema: n, + keyword: i, + it: s + } = e; + if (!Array.isArray(n)) throw new Error("ajv implementation error"); + if (n.some((e => (0, o.alwaysValidSchema)(s, e))) && !s.opts.unevaluated) return; + const a = t.let("valid", !1), + c = t.name("_valid"); + t.block((() => n.forEach(((n, o) => { + const s = e.subschema({ + keyword: i, + schemaProp: o, + compositeRule: !0 + }, c); + t.assign(a, r._`${a} || ${c}`), e.mergeValidEvaluated(s, c) || t.if((0, r.not)(a)) + })))), e.result(a, (() => e.reset()), (() => e.error(!0))) + } + }, + 1018: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const n = { + keyword: "id", + code() { + throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID') + } + }; + t.default = n + }, + 2101: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(1018), + o = n(1939), + i = ["$schema", "$id", "$defs", "$vocabulary", { + keyword: "$comment" + }, "definitions", r.default, o.default]; + t.default = i + }, + 1939: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.callRef = t.getValidate = void 0; + const r = n(1578), + o = n(3499), + i = n(5669), + s = n(7250), + a = n(7382), + c = n(8936), + u = { + keyword: "$ref", + schemaType: "string", + code(e) { + const { + gen: t, + schema: n, + it: o + } = e, { + baseId: s, + schemaEnv: c, + validateName: u, + opts: p, + self: h + } = o, { + root: m + } = c; + if (("#" === n || "#/" === n) && s === m.baseId) return function() { + if (c === m) return d(e, u, c, c.$async); + const n = t.scopeValue("root", { + ref: m + }); + return d(e, i._`${n}.validate`, m, m.$async) + }(); + const f = a.resolveRef.call(h, m, s, n); + if (void 0 === f) throw new r.default(s, n); + return f instanceof a.SchemaEnv ? function(t) { + const n = l(e, t); + d(e, n, t, t.$async) + }(f) : function(r) { + const o = t.scopeValue("schema", !0 === p.code.source ? { + ref: r, + code: (0, i.stringify)(r) + } : { + ref: r + }), + s = t.name("valid"), + a = e.subschema({ + schema: r, + dataTypes: [], + schemaPath: i.nil, + topSchemaRef: o, + errSchemaPath: n + }, s); + e.mergeEvaluated(a), e.ok(s) + }(f) + } + }; + + function l(e, t) { + const { + gen: n + } = e; + return t.validate ? n.scopeValue("validate", { + ref: t.validate + }) : i._`${n.scopeValue("wrapper",{ref:t})}.validate` + } + + function d(e, t, n, r) { + const { + gen: a, + it: u + } = e, { + allErrors: l, + schemaEnv: d, + opts: p + } = u, h = p.passContext ? s.default.this : i.nil; + + function m(e) { + const t = i._`${e}.errors`; + a.assign(s.default.vErrors, i._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`), a.assign(s.default.errors, i._`${s.default.vErrors}.length`) + } + + function f(e) { + var t; + if (!u.opts.unevaluated) return; + const r = null === (t = null == n ? void 0 : n.validate) || void 0 === t ? void 0 : t.evaluated; + if (!0 !== u.props) + if (r && !r.dynamicProps) void 0 !== r.props && (u.props = c.mergeEvaluated.props(a, r.props, u.props)); + else { + const t = a.var("props", i._`${e}.evaluated.props`); + u.props = c.mergeEvaluated.props(a, t, u.props, i.Name) + } if (!0 !== u.items) + if (r && !r.dynamicItems) void 0 !== r.items && (u.items = c.mergeEvaluated.items(a, r.items, u.items)); + else { + const t = a.var("items", i._`${e}.evaluated.items`); + u.items = c.mergeEvaluated.items(a, t, u.items, i.Name) + } + } + r ? function() { + if (!d.$async) throw new Error("async schema referenced by sync schema"); + const n = a.let("valid"); + a.try((() => { + a.code(i._`await ${(0,o.callValidateCode)(e,t,h)}`), f(t), l || a.assign(n, !0) + }), (e => { + a.if(i._`!(${e} instanceof ${u.ValidationError})`, (() => a.throw(e))), m(e), l || a.assign(n, !1) + })), e.ok(n) + }() : e.result((0, o.callValidateCode)(e, t, h), (() => f(t)), (() => m(t))) + } + t.getValidate = l, t.callRef = d, t.default = u + }, + 2: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5669), + o = n(7421), + i = { + keyword: "discriminator", + type: "object", + schemaType: "object", + error: { + message: ({ + params: { + discrError: e, + tagName: t + } + }) => e === o.DiscrError.Tag ? `tag "${t}" must be string` : `value of tag "${t}" must be in oneOf`, + params: ({ + params: { + discrError: e, + tag: t, + tagName: n + } + }) => r._`{error: ${e}, tag: ${n}, tagValue: ${t}}` + }, + code(e) { + const { + gen: t, + data: n, + schema: i, + parentSchema: s, + it: a + } = e, { + oneOf: c + } = s; + if (!a.opts.discriminator) throw new Error("discriminator: requires discriminator option"); + const u = i.propertyName; + if ("string" != typeof u) throw new Error("discriminator: requires propertyName"); + if (i.mapping) throw new Error("discriminator: mapping is not supported"); + if (!c) throw new Error("discriminator: requires oneOf keyword"); + const l = t.let("valid", !1), + d = t.const("tag", r._`${n}${(0,r.getProperty)(u)}`); + + function p(n) { + const o = t.name("valid"), + i = e.subschema({ + keyword: "oneOf", + schemaProp: n + }, o); + return e.mergeEvaluated(i, r.Name), o + } + t.if(r._`typeof ${d} == "string"`, (() => function() { + const n = function() { + var e; + const t = {}, + n = o(s); + let r = !0; + for (let t = 0; t < c.length; t++) { + const s = c[t], + a = null === (e = s.properties) || void 0 === e ? void 0 : e[u]; + if ("object" != typeof a) throw new Error(`discriminator: oneOf schemas must have "properties/${u}"`); + r = r && (n || o(s)), i(a, t) + } + if (!r) throw new Error(`discriminator: "${u}" must be required`); + return t; + + function o({ + required: e + }) { + return Array.isArray(e) && e.includes(u) + } + + function i(e, t) { + if (e.const) a(e.const, t); + else { + if (!e.enum) throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`); + for (const n of e.enum) a(n, t) + } + } + + function a(e, n) { + if ("string" != typeof e || e in t) throw new Error(`discriminator: "${u}" values must be unique strings`); + t[e] = n + } + }(); + t.if(!1); + for (const e in n) t.elseIf(r._`${d} === ${e}`), t.assign(l, p(n[e])); + t.else(), e.error(!1, { + discrError: o.DiscrError.Mapping, + tag: d, + tagName: u + }), t.endIf() + }()), (() => e.error(!1, { + discrError: o.DiscrError.Tag, + tag: d, + tagName: u + }))), e.ok(l) + } + }; + t.default = i + }, + 7421: (e, t) => { + "use strict"; + var n; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.DiscrError = void 0, (n = t.DiscrError || (t.DiscrError = {})).Tag = "tag", n.Mapping = "mapping" + }, + 5671: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(2101), + o = n(7499), + i = n(6951), + s = n(4480), + a = n(2480), + c = [r.default, o.default, (0, i.default)(), s.default, a.metadataVocabulary, a.contentVocabulary]; + t.default = c + }, + 3599: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5669), + o = { + keyword: "format", + type: ["number", "string"], + schemaType: "string", + $data: !0, + error: { + message: ({ + schemaCode: e + }) => r.str`must match format "${e}"`, + params: ({ + schemaCode: e + }) => r._`{format: ${e}}` + }, + code(e, t) { + const { + gen: n, + data: o, + $data: i, + schema: s, + schemaCode: a, + it: c + } = e, { + opts: u, + errSchemaPath: l, + schemaEnv: d, + self: p + } = c; + u.validateFormats && (i ? function() { + const i = n.scopeValue("formats", { + ref: p.formats, + code: u.code.formats + }), + s = n.const("fDef", r._`${i}[${a}]`), + c = n.let("fType"), + l = n.let("format"); + n.if(r._`typeof ${s} == "object" && !(${s} instanceof RegExp)`, (() => n.assign(c, r._`${s}.type || "string"`).assign(l, r._`${s}.validate`)), (() => n.assign(c, r._`"string"`).assign(l, s))), e.fail$data((0, r.or)(!1 === u.strictSchema ? r.nil : r._`${a} && !${l}`, function() { + const e = d.$async ? r._`(${s}.async ? await ${l}(${o}) : ${l}(${o}))` : r._`${l}(${o})`, + n = r._`(typeof ${l} == "function" ? ${e} : ${l}.test(${o}))`; + return r._`${l} && ${l} !== true && ${c} === ${t} && !${n}` + }())) + }() : function() { + const i = p.formats[s]; + if (!i) return void + function() { + if (!1 !== u.strictSchema) throw new Error(e()); + + function e() { + return `unknown format "${s}" ignored in schema at path "${l}"` + } + p.logger.warn(e()) + }(); + if (!0 === i) return; + const [a, c, h] = function(e) { + const t = e instanceof RegExp ? (0, r.regexpCode)(e) : u.code.formats ? r._`${u.code.formats}${(0,r.getProperty)(s)}` : void 0, + o = n.scopeValue("formats", { + key: s, + ref: e, + code: t + }); + return "object" != typeof e || e instanceof RegExp ? ["string", e, o] : [e.type || "string", e.validate, r._`${o}.validate`] + }(i); + a === t && e.pass(function() { + if ("object" == typeof i && !(i instanceof RegExp) && i.async) { + if (!d.$async) throw new Error("async format in sync schema"); + return r._`await ${h}(${o})` + } + return "function" == typeof c ? r._`${h}(${o})` : r._`${h}.test(${o})` + }()) + }()) + } + }; + t.default = o + }, + 4480: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = [n(3599).default]; + t.default = r + }, + 2480: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.contentVocabulary = t.metadataVocabulary = void 0, t.metadataVocabulary = ["title", "description", "default", "deprecated", "readOnly", "writeOnly", "examples"], t.contentVocabulary = ["contentMediaType", "contentEncoding", "contentSchema"] + }, + 6577: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5669), + o = n(8936), + i = n(4285), + s = { + keyword: "const", + $data: !0, + error: { + message: "must be equal to constant", + params: ({ + schemaCode: e + }) => r._`{allowedValue: ${e}}` + }, + code(e) { + const { + gen: t, + data: n, + $data: s, + schemaCode: a, + schema: c + } = e; + s || c && "object" == typeof c ? e.fail$data(r._`!${(0,o.useFunc)(t,i.default)}(${n}, ${a})`) : e.fail(r._`${c} !== ${n}`) + } + }; + t.default = s + }, + 9450: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5669), + o = n(8936), + i = n(4285), + s = { + keyword: "enum", + schemaType: "array", + $data: !0, + error: { + message: "must be equal to one of the allowed values", + params: ({ + schemaCode: e + }) => r._`{allowedValues: ${e}}` + }, + code(e) { + const { + gen: t, + data: n, + $data: s, + schema: a, + schemaCode: c, + it: u + } = e; + if (!s && 0 === a.length) throw new Error("enum must have non-empty array"); + const l = a.length >= u.opts.loopEnum, + d = (0, o.useFunc)(t, i.default); + let p; + if (l || s) p = t.let("valid"), e.block$data(p, (function() { + t.assign(p, !1), t.forOf("v", c, (e => t.if(r._`${d}(${n}, ${e})`, (() => t.assign(p, !0).break())))) + })); + else { + if (!Array.isArray(a)) throw new Error("ajv implementation error"); + const e = t.const("vSchema", c); + p = (0, r.or)(...a.map(((t, o) => function(e, t) { + const o = a[t]; + return "object" == typeof o && null !== o ? r._`${d}(${n}, ${e}[${t}])` : r._`${n} === ${o}` + }(e, o)))) + } + e.pass(p) + } + }; + t.default = s + }, + 7499: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(1337), + o = n(9706), + i = n(9507), + s = n(1216), + a = n(34), + c = n(6962), + u = n(1135), + l = n(194), + d = n(6577), + p = n(9450), + h = [r.default, o.default, i.default, s.default, a.default, c.default, u.default, l.default, { + keyword: "type", + schemaType: ["string", "array"] + }, { + keyword: "nullable", + schemaType: "boolean" + }, d.default, p.default]; + t.default = h + }, + 1135: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5669), + o = { + keyword: ["maxItems", "minItems"], + type: "array", + schemaType: "number", + $data: !0, + error: { + message({ + keyword: e, + schemaCode: t + }) { + const n = "maxItems" === e ? "more" : "fewer"; + return r.str`must NOT have ${n} than ${t} items` + }, + params: ({ + schemaCode: e + }) => r._`{limit: ${e}}` + }, + code(e) { + const { + keyword: t, + data: n, + schemaCode: o + } = e, i = "maxItems" === t ? r.operators.GT : r.operators.LT; + e.fail$data(r._`${n}.length ${i} ${o}`) + } + }; + t.default = o + }, + 9507: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5669), + o = n(8936), + i = n(9161), + s = { + keyword: ["maxLength", "minLength"], + type: "string", + schemaType: "number", + $data: !0, + error: { + message({ + keyword: e, + schemaCode: t + }) { + const n = "maxLength" === e ? "more" : "fewer"; + return r.str`must NOT have ${n} than ${t} characters` + }, + params: ({ + schemaCode: e + }) => r._`{limit: ${e}}` + }, + code(e) { + const { + keyword: t, + data: n, + schemaCode: s, + it: a + } = e, c = "maxLength" === t ? r.operators.GT : r.operators.LT, u = !1 === a.opts.unicode ? r._`${n}.length` : r._`${(0,o.useFunc)(e.gen,i.default)}(${n})`; + e.fail$data(r._`${u} ${c} ${s}`) + } + }; + t.default = s + }, + 1337: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5669), + o = r.operators, + i = { + maximum: { + okStr: "<=", + ok: o.LTE, + fail: o.GT + }, + minimum: { + okStr: ">=", + ok: o.GTE, + fail: o.LT + }, + exclusiveMaximum: { + okStr: "<", + ok: o.LT, + fail: o.GTE + }, + exclusiveMinimum: { + okStr: ">", + ok: o.GT, + fail: o.LTE + } + }, + s = { + message: ({ + keyword: e, + schemaCode: t + }) => r.str`must be ${i[e].okStr} ${t}`, + params: ({ + keyword: e, + schemaCode: t + }) => r._`{comparison: ${i[e].okStr}, limit: ${t}}` + }, + a = { + keyword: Object.keys(i), + type: "number", + schemaType: "number", + $data: !0, + error: s, + code(e) { + const { + keyword: t, + data: n, + schemaCode: o + } = e; + e.fail$data(r._`${n} ${i[t].fail} ${o} || isNaN(${n})`) + } + }; + t.default = a + }, + 34: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5669), + o = { + keyword: ["maxProperties", "minProperties"], + type: "object", + schemaType: "number", + $data: !0, + error: { + message({ + keyword: e, + schemaCode: t + }) { + const n = "maxProperties" === e ? "more" : "fewer"; + return r.str`must NOT have ${n} than ${t} items` + }, + params: ({ + schemaCode: e + }) => r._`{limit: ${e}}` + }, + code(e) { + const { + keyword: t, + data: n, + schemaCode: o + } = e, i = "maxProperties" === t ? r.operators.GT : r.operators.LT; + e.fail$data(r._`Object.keys(${n}).length ${i} ${o}`) + } + }; + t.default = o + }, + 9706: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5669), + o = { + keyword: "multipleOf", + type: "number", + schemaType: "number", + $data: !0, + error: { + message: ({ + schemaCode: e + }) => r.str`must be multiple of ${e}`, + params: ({ + schemaCode: e + }) => r._`{multipleOf: ${e}}` + }, + code(e) { + const { + gen: t, + data: n, + schemaCode: o, + it: i + } = e, s = i.opts.multipleOfPrecision, a = t.let("res"), c = s ? r._`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}` : r._`${a} !== parseInt(${a})`; + e.fail$data(r._`(${o} === 0 || (${a} = ${n}/${o}, ${c}))`) + } + }; + t.default = o + }, + 1216: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(3499), + o = n(5669), + i = { + keyword: "pattern", + type: "string", + schemaType: "string", + $data: !0, + error: { + message: ({ + schemaCode: e + }) => o.str`must match pattern "${e}"`, + params: ({ + schemaCode: e + }) => o._`{pattern: ${e}}` + }, + code(e) { + const { + data: t, + $data: n, + schema: i, + schemaCode: s, + it: a + } = e, c = a.opts.unicodeRegExp ? "u" : "", u = n ? o._`(new RegExp(${s}, ${c}))` : (0, r.usePattern)(e, i); + e.fail$data(o._`!${u}.test(${t})`) + } + }; + t.default = i + }, + 6962: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(3499), + o = n(5669), + i = n(8936), + s = { + keyword: "required", + type: "object", + schemaType: "array", + $data: !0, + error: { + message: ({ + params: { + missingProperty: e + } + }) => o.str`must have required property '${e}'`, + params: ({ + params: { + missingProperty: e + } + }) => o._`{missingProperty: ${e}}` + }, + code(e) { + const { + gen: t, + schema: n, + schemaCode: s, + data: a, + $data: c, + it: u + } = e, { + opts: l + } = u; + if (!c && 0 === n.length) return; + const d = n.length >= l.loopRequired; + if (u.allErrors ? function() { + if (d || c) e.block$data(o.nil, p); + else + for (const t of n)(0, r.checkReportMissingProp)(e, t) + }() : function() { + const i = t.let("missing"); + if (d || c) { + const n = t.let("valid", !0); + e.block$data(n, (() => function(n, i) { + e.setParams({ + missingProperty: n + }), t.forOf(n, s, (() => { + t.assign(i, (0, r.propertyInData)(t, a, n, l.ownProperties)), t.if((0, o.not)(i), (() => { + e.error(), t.break() + })) + }), o.nil) + }(i, n))), e.ok(n) + } else t.if((0, r.checkMissingProp)(e, n, i)), (0, r.reportMissingProp)(e, i), t.else() + }(), l.strictRequired) { + const t = e.parentSchema.properties, + { + definedProperties: r + } = e.it; + for (const e of n) + if (void 0 === (null == t ? void 0 : t[e]) && !r.has(e)) { + const t = `required property "${e}" is not defined at "${u.schemaEnv.baseId+u.errSchemaPath}" (strictRequired)`; + (0, i.checkStrictMode)(u, t, u.opts.strictRequired) + } + } + + function p() { + t.forOf("prop", s, (n => { + e.setParams({ + missingProperty: n + }), t.if((0, r.noPropertyInData)(t, a, n, l.ownProperties), (() => e.error())) + })) + } + } + }; + t.default = s + }, + 194: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(7332), + o = n(5669), + i = n(8936), + s = n(4285), + a = { + keyword: "uniqueItems", + type: "array", + schemaType: "boolean", + $data: !0, + error: { + message: ({ + params: { + i: e, + j: t + } + }) => o.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`, + params: ({ + params: { + i: e, + j: t + } + }) => o._`{i: ${e}, j: ${t}}` + }, + code(e) { + const { + gen: t, + data: n, + $data: a, + schema: c, + parentSchema: u, + schemaCode: l, + it: d + } = e; + if (!a && !c) return; + const p = t.let("valid"), + h = u.items ? (0, r.getSchemaTypes)(u.items) : []; + + function m(i, s) { + const a = t.name("item"), + c = (0, r.checkDataTypes)(h, a, d.opts.strictNumbers, r.DataType.Wrong), + u = t.const("indices", o._`{}`); + t.for(o._`;${i}--;`, (() => { + t.let(a, o._`${n}[${i}]`), t.if(c, o._`continue`), h.length > 1 && t.if(o._`typeof ${a} == "string"`, o._`${a} += "_"`), t.if(o._`typeof ${u}[${a}] == "number"`, (() => { + t.assign(s, o._`${u}[${a}]`), e.error(), t.assign(p, !1).break() + })).code(o._`${u}[${a}] = ${i}`) + })) + } + + function f(r, a) { + const c = (0, i.useFunc)(t, s.default), + u = t.name("outer"); + t.label(u).for(o._`;${r}--;`, (() => t.for(o._`${a} = ${r}; ${a}--;`, (() => t.if(o._`${c}(${n}[${r}], ${n}[${a}])`, (() => { + e.error(), t.assign(p, !1).break(u) + })))))) + } + e.block$data(p, (function() { + const r = t.let("i", o._`${n}.length`), + i = t.let("j"); + e.setParams({ + i: r, + j: i + }), t.assign(p, !0), t.if(o._`${r} > 1`, (() => (h.length > 0 && !h.some((e => "object" === e || "array" === e)) ? m : f)(r, i))) + }), o._`${l} === false`), e.ok(p) + } + }; + t.default = a + }, + 7968: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.deferSet = t.OrderedAsynchrony = t.funnel = t.wrapFunction = t.rethrow = t.specific = t.Try = t.deferInspectable = t.inspect = t.reflect = t.defer = t.retry = t.once = t.some = t.eachImpl = t.each = t.reduce = t.map = t.filter = t.props = t.tap = t.Finally = t.finallyDelay = t.delayChain = t.delay = void 0; + const r = n(7084); + + function o(e) { + return "function" == typeof e.map ? e : Array.from(e) + } + + function i(e, t) { + return new Promise((n => { + setTimeout((() => n(t)), e) + })) + } + + function s(e) { + return u((() => i(e))) + } + + function a(e) { + return c((() => i(e))) + } + + function c(e) { + return [async function(t) { + return await e(), t + }, async function(t) { + throw await e(), t + }] + } + + function u(e) { + return async t => (await e(t), t) + } + + function l(e) { + const t = {}, + n = []; + for (const r of Object.keys(e)) n.push(Promise.resolve(e[r]).then((e => { + t[r] = e + }))); + return Promise.all(n).then((() => t)) + } + t.default = { + Finally: c, + Try: E, + defer: j, + deferSet: R, + delay: i, + delayChain: s, + each: g, + filter: p, + finally: c, + finallyDelay: a, + funnel: P, + inspect: x, + map: h, + once: b, + props: l, + reduce: m, + rethrow: S, + retry: w, + some: _, + specific: C, + tap: u, + wrapFunction: T + }, t.delay = i, t.delayChain = s, t.finallyDelay = a, t.Finally = c, t.tap = u, t.props = l; + const d = { + concurrency: 1 / 0 + }; + + function p(e, t, n) { + if (Array.isArray(e)) return "function" == typeof t && (n = t, t = d), p(t, n)(e); + n = "function" == typeof e ? e : t, t = "function" == typeof e ? d : e; + const r = (e, t, r) => Promise.resolve(n(e, t, r)).then((t => ({ + ok: t, + val: e + }))); + return e => h(t, r)(e).then((e => e.filter((({ + ok: e + }) => e)).map((({ + val: e + }) => e)))) + } + + function h(e, t, n) { + if (Array.isArray(e)) return "function" == typeof t && (n = t, t = d), h(t, n)(e); + n = "function" == typeof e ? e : t, t = "function" == typeof e ? d : e; + const { + concurrency: i = 1 / 0 + } = t, s = r.default(i); + return e => Promise.resolve(e).then((e => o(e).map(((e, t, r) => s((() => Promise.resolve(e))).then((e => s((() => ((e, t, r) => Promise.resolve(n(e, t, r)))(e, t, r))))))))).then((e => Promise.all(e))) + } + + function m(e, t, n) { + if ("function" == typeof e) { + n = t; + const r = e; + return async e => f(e, r, n) + } + return f(e, t, n) + } + async function f(e, t, n) { + const r = Array.from(await e), + o = await n; + if (0 === r.length) return o; + const i = void 0 !== o, + s = r.length; + let a = i ? 0 : 1, + c = i ? o : await r.shift(); + for (; r.length > 0;) c = await t(c, await r.shift(), a++, s); + return c + } + + function g(e, t) { + return Array.isArray(e) ? y(t)(e) : y(e) + } + + function y(e) { + return async t => { + const n = t.length; + return h(t, { + concurrency: 1 + }, (async function(t, r) { + return await e(t, r, n), t + })) + } + } + + function _(e, t) { + return "function" == typeof e ? (t = e, e => v(e, t)) : v(e, t) + } + async function v(e, t) { + const n = o(await e); + for (const e of n) { + const n = await t(await e); + if (n) return n + } + return !1 + } + + function b(e) { + if (e) { + const t = k(); + return n => t(e, n) + } + return k() + } + + function k() { + const e = new WeakMap; + return (t, n) => { + (t => { + e.has(t) || e.set(t, { + hasRun: !1 + }) + })(t); + const r = e.get(t); + if (r.hasRun) return r.deferred ? r.deferred.promise : r.returnValue; + r.hasRun = !0; + const o = t(n), + i = o; + return void 0 !== i && i && "function" == typeof i.then ? (r.deferred = j(), i.then(r.deferred.resolve, S(r.deferred.reject)).then((() => r.deferred.promise))) : (r.returnValue = o, o) + } + } + + function w(e, t, n = (() => !0)) { + const r = o => o.catch((o => { + if (--e < 0 || !n(o)) throw o; + return r(t()) + })); + try { + const e = t(); + return e && "object" == typeof e && "function" == typeof e.then ? r(e) : e + } catch (r) { + if (!n(r)) throw r; + return (r => { + for (; --e >= 0;) try { + return t() + } catch (e) { + if (!n(e)) throw e; + r = e + } + throw r + })(r) + } + } + + function j() { + const e = {}; + return e.promise = new Promise(((t, n) => { + e.resolve = t, e.reject = n + })), e + } + + function x(e) { + const t = { + isPending: !0, + isRejected: !1, + isResolved: !1, + promise: void 0 + }; + return t.promise = e.then((e => (t.isResolved = !0, t.isPending = !1, e))).catch((e => (t.isRejected = !0, t.isPending = !1, Promise.reject(e)))), t + } + async function E(e) { + return e() + } + + function C(e, t) { + return n => { + if (! function(e, t) { + return (Array.isArray(e) ? e : [e]).some((e => { + if (null == e) return !1; + if (e === Error || e.prototype instanceof Error) { + if (t instanceof e) return !0 + } else { + if ("function" == typeof e) return e(t); + if ("object" == typeof e) { + const n = e; + for (const e of Object.keys(n)) + if (n[e] !== t[e]) return !1; + return !0 + } + } + return !1 + })) + }(e, n)) throw n; + return t(n) + } + } + + function S(e) { + return async t => { + throw await e(t), t + } + } + + function T(e) { + return function(t, n) { + if (1 === arguments.length) { + if (e.length > 0) throw new EvalError("Invalid invocation, function requires 2 arguments"); + n = t, t = void 0 + } + const r = e(t), + o = e => { + if ("function" == typeof e) return e(); + if (null != e) throw new EvalError("Invalid return value in 'before' handler") + }; + if (r && "function" == typeof r.then) { + let e; + return r.then((async t => (e = () => o(t), n()))).then(...c((() => { + if (e) return e() + }))) + } { + const e = r; + let t; + try { + t = n() + } catch (t) { + const n = o(e); + if (n && "function" == typeof n.then) return n.then((() => { + throw t + })); + throw t + } + if (t && "function" == typeof t.then) return t.then(...c((() => o(e)))); { + const n = o(e); + return n && "function" == typeof n.then ? n.then((() => t)) : t + } + } + } + } + + function P(e = {}) { + const { + onEmpty: t, + concurrency: n = 1 + } = e || {}; + let r; + ! function(e) { + e[e.DEFAULT = 0] = "DEFAULT", e[e.SHOULD_RETRY = 1] = "SHOULD_RETRY", e[e.WAITING = 2] = "WAITING", e[e.COMPLETED = 3] = "COMPLETED" + }(r || (r = {})); + const o = new Map, + i = () => Math.max(0, n - [...o.values()].filter((({ + state: e + }) => e === r.SHOULD_RETRY)).length); + return e => { + const n = {}, + s = { + state: r.DEFAULT, + counted: !1, + resume: void 0 + }; + o.set(n, s); + const a = () => { + if (s.state === r.COMPLETED) return !1; + const e = i() > 0; + if (s.state !== r.DEFAULT) throw new Error("Invalid use of 'shouldRetry'"); + return s.state = r.SHOULD_RETRY, s.counted = !0, !e + }, + u = () => { + if (s.state !== r.SHOULD_RETRY) throw new Error("Invalid use of 'retry', must only be called after 'shouldRetry'"); + s.state = r.WAITING; + const e = j(); + return s.resume = () => { + s.state = r.DEFAULT, s.resume = void 0, e.resolve(d()) + }, e.promise + }, + l = () => { + s.state !== r.COMPLETED && (s.state = r.COMPLETED, o.delete(n), 0 === [...o.values()].filter((({ + state: e + }) => e === r.WAITING)).length ? null == t || t() : (() => { + const e = i(); + [...o.values()].filter((({ + state: e + }) => e === r.WAITING)).slice(0, e).forEach((e => { + e.resume() + })) + })()) + }, + d = () => E((() => e(a, u, l))).then(...c(l)); + return d() + } + } + t.filter = p, t.map = h, t.reduce = m, t.each = g, t.eachImpl = y, t.some = _, t.once = b, t.retry = w, t.defer = j, t.reflect = function(e) { + return x(e).promise.then((function(e) { + return { + isRejected: !1, + isResolved: !0, + value: e + } + }), (function(e) { + return { + error: e, + isRejected: !0, + isResolved: !1 + } + })) + }, t.inspect = x, t.deferInspectable = function() { + const e = j(), + t = { + isPending: !0, + isRejected: !1, + isResolved: !1, + promise: e.promise, + resolve(n) { + t.isPending && (e.resolve(n), t.isPending = !1, t.isRejected = !1, t.isResolved = !0) + }, + reject(n) { + t.isPending && (e.reject(n), t.isPending = !1, t.isRejected = !0, t.isResolved = !1) + } + }; + return t + }, t.Try = E, t.specific = C, t.rethrow = S, t.wrapFunction = T, t.funnel = P; + class I { + constructor() { + this.deferrals = [] + } + wait(e, t, n) { + return this.ensureDeferral([...[].concat(e), ...null == t ? [] : [].concat(t), ...null == n ? [] : [].concat(n)]), this.decorate(Promise.all([].concat(e).map((e => this.deferrals[e].promise))).then((() => Promise.all([null == t ? void 0 : this.resolve(t), null == n ? void 0 : this.reject(n)]).then((() => {}))))) + } + resolve(e) { + return this.ensureDeferral(e), this.decorate(i(0).then((() => { + [].concat(e).forEach((e => { + this.deferrals[e].resolve() + })) + }))) + } + reject(e, t = new Error("OrderedAsynchrony rejection")) { + return this.ensureDeferral(e), this.decorate(i(0).then((() => { + [].concat(e).forEach((e => { + this.deferrals[e].reject(t) + })) + }))) + } + ensureDeferral(e) { + const t = [].concat(e).sort(((e, t) => t - e))[0]; + for (let e = this.deferrals.length; e <= t; ++e) this.deferrals.push(j()); + return this + } + decorate(e) { + const t = { + decorate: this.decorate.bind(this), + deferrals: this.deferrals, + ensureDeferral: this.ensureDeferral.bind(this), + reject: this.reject.bind(this), + resolve: this.resolve.bind(this), + wait: this.wait.bind(this) + }; + return Object.assign(e, t) + } + } + + function R() { + return new I + } + t.OrderedAsynchrony = I, t.deferSet = R + }, + 3245: (e, t, n) => { + "use strict"; + var r = n(1767), + o = function() { + function e(t) { + if (e.INSTANCE) throw new Error("Console logging adapter tracking should be configured from the applicationInsights object"); + this._client = t, e.INSTANCE = this + } + return e.prototype.enable = function(e, t) { + r.IsInitialized && (n(2469).wp(e && t, this._client), n(3805).wp(e, this._client), n(7916).wp(e, this._client)) + }, e.prototype.isInitialized = function() { + return this._isInitialized + }, e.prototype.dispose = function() { + e.INSTANCE = null, this.enable(!1, !1) + }, e._methodNames = ["debug", "info", "log", "warn", "error"], e + }(); + e.exports = o + }, + 6751: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = n(2010), + o = n(1767), + i = function() { + function e() {} + return e.getCurrentContext = function() { + if (!e.enabled) return null; + var t = e.session.get(e.CONTEXT_NAME); + return void 0 === t ? null : t + }, e.generateContextObject = function(e, t, n, r, o, i) { + return t = t || e, this.enabled ? { + operation: { + name: n, + id: e, + parentId: t, + traceparent: o, + tracestate: i + }, + customProperties: new s(r) + } : null + }, e.runWithContext = function(t, n) { + return e.enabled ? e.session.bind(n, ((r = {})[e.CONTEXT_NAME] = t, r))() : n(); + var r + }, e.wrapEmitter = function(t) { + e.enabled && e.session.bindEmitter(t) + }, e.wrapCallback = function(t) { + return e.enabled ? e.session.bind(t) : t + }, e.enable = function(t) { + this.enabled || (this.isNodeVersionCompatible() ? (e.hasEverEnabled || (this.forceClsHooked = t, this.hasEverEnabled = !0, void 0 === this.cls && (!0 === e.forceClsHooked || void 0 === e.forceClsHooked && e.shouldUseClsHooked() ? this.cls = n(9172) : this.cls = n(2611)), e.session = this.cls.createNamespace("AI-CLS-Session"), o.registerContextPreservation((function(t) { + return e.session.bind(t) + }))), this.enabled = !0) : this.enabled = !1) + }, e.disable = function() { + this.enabled = !1 + }, e.reset = function() { + e.hasEverEnabled && (e.session = null, e.session = this.cls.createNamespace("AI-CLS-Session")) + }, e.isNodeVersionCompatible = function() { + var e = process.versions.node.split("."); + return parseInt(e[0]) > 3 || parseInt(e[0]) > 2 && parseInt(e[1]) > 2 + }, e.shouldUseClsHooked = function() { + var e = process.versions.node.split("."); + return parseInt(e[0]) > 8 || parseInt(e[0]) >= 8 && parseInt(e[1]) >= 2 + }, e.canUseClsHooked = function() { + var e = process.versions.node.split("."), + t = parseInt(e[0]) > 8 || parseInt(e[0]) >= 8 && parseInt(e[1]) >= 0, + n = parseInt(e[0]) < 8 || parseInt(e[0]) <= 8 && parseInt(e[1]) < 2, + r = parseInt(e[0]) > 4 || parseInt(e[0]) >= 4 && parseInt(e[1]) >= 7; + return !(t && n) && r + }, e.enabled = !1, e.hasEverEnabled = !1, e.forceClsHooked = void 0, e.CONTEXT_NAME = "ApplicationInsights-Context", e + }(); + t.CorrelationContextManager = i; + var s = function() { + function e(e) { + this.props = [], this.addHeaderData(e) + } + return e.prototype.addHeaderData = function(e) { + var t = e ? e.split(", ") : []; + this.props = t.map((function(e) { + var t = e.split("="); + return { + key: t[0], + value: t[1] + } + })).concat(this.props) + }, e.prototype.serializeToHeader = function() { + return this.props.map((function(e) { + return e.key + "=" + e.value + })).join(", ") + }, e.prototype.getProperty = function(e) { + for (var t = 0; t < this.props.length; ++t) { + var n = this.props[t]; + if (n.key === e) return n.value + } + }, e.prototype.setProperty = function(t, n) { + if (e.bannedCharacters.test(t) || e.bannedCharacters.test(n)) r.warn("Correlation context property keys and values must not contain ',' or '='. setProperty was called with key: " + t + " and value: " + n); + else { + for (var o = 0; o < this.props.length; ++o) { + var i = this.props[o]; + if (i.key === t) return void(i.value = n) + } + this.props.push({ + key: t, + value: n + }) + } + }, e.bannedCharacters = /[,=]/, e + }() + }, + 3014: e => { + "use strict"; + var t = function() { + function e(t) { + if (e.INSTANCE) throw new Error("Exception tracking should be configured from the applicationInsights object"); + e.INSTANCE = this, this._client = t; + var n = process.versions.node.split("."); + e._canUseUncaughtExceptionMonitor = parseInt(n[0]) > 13 || 13 === parseInt(n[0]) && parseInt(n[1]) >= 7 + } + return e.prototype.isInitialized = function() { + return this._isInitialized + }, e.prototype.enable = function(t) { + var n = this; + if (t) { + if (this._isInitialized = !0, !this._exceptionListenerHandle) { + var r = function(t, r, o) { + void 0 === o && (o = new Error(e._FALLBACK_ERROR_MESSAGE)), n._client.trackException({ + exception: o + }), n._client.flush({ + isAppCrashing: !0 + }), t && r && 1 === process.listeners(r).length && (console.error(o), process.exit(1)) + }; + e._canUseUncaughtExceptionMonitor ? (this._exceptionListenerHandle = r.bind(this, !1), process.on(e.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME, this._exceptionListenerHandle)) : (this._exceptionListenerHandle = r.bind(this, !0, e.UNCAUGHT_EXCEPTION_HANDLER_NAME), this._rejectionListenerHandle = r.bind(this, !1), process.on(e.UNCAUGHT_EXCEPTION_HANDLER_NAME, this._exceptionListenerHandle), process.on(e.UNHANDLED_REJECTION_HANDLER_NAME, this._rejectionListenerHandle)) + } + } else this._exceptionListenerHandle && (e._canUseUncaughtExceptionMonitor ? process.removeListener(e.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME, this._exceptionListenerHandle) : (process.removeListener(e.UNCAUGHT_EXCEPTION_HANDLER_NAME, this._exceptionListenerHandle), process.removeListener(e.UNHANDLED_REJECTION_HANDLER_NAME, this._rejectionListenerHandle)), this._exceptionListenerHandle = void 0, this._rejectionListenerHandle = void 0, delete this._exceptionListenerHandle, delete this._rejectionListenerHandle) + }, e.prototype.dispose = function() { + e.INSTANCE = null, this.enable(!1), this._isInitialized = !1 + }, e.INSTANCE = null, e.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME = "uncaughtExceptionMonitor", e.UNCAUGHT_EXCEPTION_HANDLER_NAME = "uncaughtException", e.UNHANDLED_REJECTION_HANDLER_NAME = "unhandledRejection", e._RETHROW_EXIT_MESSAGE = "Application Insights Rethrow Exception Handler", e._FALLBACK_ERROR_MESSAGE = "A promise was rejected without providing an error. Application Insights generated this error stack for you.", e._canUseUncaughtExceptionMonitor = !1, e + }(); + e.exports = t + }, + 9816: (e, t, n) => { + "use strict"; + var r = n(3685), + o = n(5687), + i = n(2010), + s = n(7649), + a = n(6357), + c = n(1483), + u = n(6751), + l = n(6590), + d = n(3452), + p = n(1767), + h = function() { + function e(t) { + if (e.INSTANCE) throw new Error("Client request tracking should be configured from the applicationInsights object"); + e.INSTANCE = this, this._client = t + } + return e.prototype.enable = function(e) { + this._isEnabled = e, this._isEnabled && !this._isInitialized && this._initialize(), p.IsInitialized && (n(5452).wp(e, this._client), n(6002).wp(e, this._client), n(9215).wp(e, this._client), n(8998).wp(e, this._client)) + }, e.prototype.isInitialized = function() { + return this._isInitialized + }, e.prototype._initialize = function() { + var t = this; + this._isInitialized = !0, r.get; + var n = r.request, + i = o.request, + s = function(n, r) { + var o = !r[e.disableCollectionRequestOption] && !n[e.alreadyAutoCollectedFlag]; + n[e.alreadyAutoCollectedFlag] = !0, n && r && o && (u.CorrelationContextManager.wrapEmitter(n), e.trackRequest(t._client, { + options: r, + request: n + })) + }; + r.request = function(e) { + for (var t = [], o = 1; o < arguments.length; o++) t[o - 1] = arguments[o]; + var i = n.call.apply(n, [r, e].concat(t)); + return s(i, e), i + }, o.request = function(e) { + for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; + var r = i.call.apply(i, [o, e].concat(t)); + return s(r, e), r + }, r.get = function(e) { + for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; + var o, i = (o = r.request).call.apply(o, [r, e].concat(t)); + return i.end(), i + }, o.get = function(e) { + for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; + var r, i = (r = o.request).call.apply(r, [o, e].concat(t)); + return i.end(), i + } + }, e.trackRequest = function(t, n) { + if (n.options && n.request && t) { + var r, o, p = new c(n.options, n.request), + h = u.CorrelationContextManager.getCurrentContext(); + if (h && h.operation && h.operation.traceparent && d.isValidTraceId(h.operation.traceparent.traceId) ? (h.operation.traceparent.updateSpanId(), r = h.operation.traceparent.getBackCompatRequestId()) : l.w3cEnabled ? (o = (f = new d).toString(), r = f.getBackCompatRequestId()) : r = h && h.operation && h.operation.parentId + e.requestNumber++ + ".", s.canIncludeCorrelationHeader(t, p.getUrl()) && n.request.getHeader && n.request.setHeader && t.config && t.config.correlationId) { + var m = n.request.getHeader(a.requestContextHeader); + try { + s.safeIncludeCorrelationHeader(t, n.request, m) + } catch (e) { + i.warn("Request-Context header could not be set. Correlation of requests may be lost", e) + } + if (h && h.operation) try { + if (n.request.setHeader(a.requestIdHeader, r), n.request.setHeader(a.parentIdHeader, h.operation.id), n.request.setHeader(a.rootIdHeader, r), o || h.operation.traceparent) n.request.setHeader(a.traceparentHeader, o || h.operation.traceparent.toString()); + else if (l.w3cEnabled) { + var f = (new d).toString(); + n.request.setHeader(a.traceparentHeader, f) + } + if (h.operation.tracestate) { + var g = h.operation.tracestate.toString(); + g && n.request.setHeader(a.traceStateHeader, g) + } + var y = h.customProperties.serializeToHeader(); + y && n.request.setHeader(a.correlationContextHeader, y) + } catch (e) { + i.warn("Correlation headers could not be set. Correlation of requests may be lost.", e) + } + } + n.request.on && (n.request.on("response", (function(e) { + p.onResponse(e); + var o = p.getDependencyTelemetry(n, r); + o.contextObjects = o.contextObjects || {}, o.contextObjects["http.RequestOptions"] = n.options, o.contextObjects["http.ClientRequest"] = n.request, o.contextObjects["http.ClientResponse"] = e, t.trackDependency(o) + })), n.request.on("error", (function(e) { + p.onError(e); + var o = p.getDependencyTelemetry(n, r); + o.contextObjects = o.contextObjects || {}, o.contextObjects["http.RequestOptions"] = n.options, o.contextObjects["http.ClientRequest"] = n.request, o.contextObjects.Error = e, t.trackDependency(o) + }))) + } else i.info("AutoCollectHttpDependencies.trackRequest was called with invalid parameters: ", !n.options, !n.request, !t) + }, e.prototype.dispose = function() { + e.INSTANCE = null, this.enable(!1), this._isInitialized = !1 + }, e.disableCollectionRequestOption = "disableAppInsightsAutoCollection", e.requestNumber = 1, e.alreadyAutoCollectedFlag = "_appInsightsAutoCollected", e + }(); + e.exports = h + }, + 1483: function(e, t, n) { + "use strict"; + var r, o = this && this.__extends || (r = Object.setPrototypeOf || { + __proto__: [] + } + instanceof Array && function(e, t) { + e.__proto__ = t + } || function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + }, + function(e, t) { + function n() { + this.constructor = e + } + r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) + }), + i = n(7310), + s = n(5512), + a = n(7649), + c = n(6357), + u = n(7774), + l = n(6590), + d = function(e) { + function t(n, r) { + var o = e.call(this) || this; + return r && r.method && n && (o.method = r.method, o.url = t._getUrlFromRequestOptions(n, r), o.startTime = +new Date), o + } + return o(t, e), t.prototype.onError = function(e) { + this._setStatus(void 0, e) + }, t.prototype.onResponse = function(e) { + this._setStatus(e.statusCode, void 0), this.correlationId = a.getCorrelationContextTarget(e, c.requestContextTargetKey) + }, t.prototype.getDependencyTelemetry = function(e, t) { + var n = i.parse(this.url); + n.search = void 0, n.hash = void 0; + var r = this.method.toUpperCase() + " " + n.pathname, + o = s.RemoteDependencyDataConstants.TYPE_HTTP, + a = n.hostname; + this.correlationId ? (o = s.RemoteDependencyDataConstants.TYPE_AI, this.correlationId !== l.correlationIdPrefix && (a = n.hostname + " | " + this.correlationId)) : o = s.RemoteDependencyDataConstants.TYPE_HTTP, n.port && (a += ":" + n.port); + var c = { + id: t, + name: r, + data: this.url, + duration: this.duration, + success: this._isSuccess(), + resultCode: this.statusCode ? this.statusCode.toString() : null, + properties: this.properties || {}, + dependencyTypeName: o, + target: a + }; + if (e) { + for (var u in e) c[u] || (c[u] = e[u]); + if (e.properties) + for (var u in e.properties) c.properties[u] = e.properties[u] + } + return c + }, t._getUrlFromRequestOptions = function(e, t) { + if ("string" == typeof e) e = i.parse(e); + else { + var n = e; + e = {}, n && Object.keys(n).forEach((function(t) { + e[t] = n[t] + })) + } + if (e.path) { + var r = i.parse(e.path); + e.pathname = r.pathname, e.search = r.search + } + return e.host && e.port && !i.parse("http://" + e.host).port && e.port && (e.hostname = e.host, delete e.host), e.protocol = e.protocol || t.agent && t.agent.protocol || void 0, e.hostname = e.hostname || "localhost", i.format(e) + }, t + }(u); + e.exports = d + }, + 5128: function(e, t, n) { + "use strict"; + var r, o = this && this.__extends || (r = Object.setPrototypeOf || { + __proto__: [] + } + instanceof Array && function(e, t) { + e.__proto__ = t + } || function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + }, + function(e, t) { + function n() { + this.constructor = e + } + r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) + }), + i = n(7310), + s = n(5512), + a = n(7649), + c = n(6357), + u = n(7774), + l = n(6590), + d = n(8410), + p = n(3452), + h = function(e) { + function t(t, n) { + var r = e.call(this) || this; + return t && (r.method = t.method, r.url = r._getAbsoluteUrl(t), r.startTime = +new Date, r.socketRemoteAddress = t.socket && t.socket.remoteAddress, r.parseHeaders(t, n), t.connection && (r.connectionRemoteAddress = t.connection.remoteAddress, r.legacySocketRemoteAddress = t.connection.socket && t.connection.socket.remoteAddress)), r + } + return o(t, e), t.prototype.onError = function(e, t) { + this._setStatus(void 0, e), t && (this.duration = t) + }, t.prototype.onResponse = function(e, t) { + this._setStatus(e.statusCode, void 0), t && (this.duration = t) + }, t.prototype.getRequestTelemetry = function(e) { + var t = { + id: this.requestId, + name: this.method + " " + i.parse(this.url).pathname, + url: this.url, + source: this.sourceCorrelationId, + duration: this.duration, + resultCode: this.statusCode ? this.statusCode.toString() : null, + success: this._isSuccess(), + properties: this.properties + }; + if (e) { + for (var n in e) t[n] || (t[n] = e[n]); + if (e.properties) + for (var n in e.properties) t.properties[n] = e.properties[n] + } + return t + }, t.prototype.getRequestTags = function(e) { + var n = {}; + for (var r in e) n[r] = e[r]; + return n[t.keys.locationIp] = e[t.keys.locationIp] || this._getIp(), n[t.keys.sessionId] = e[t.keys.sessionId] || this._getId("ai_session"), n[t.keys.userId] = e[t.keys.userId] || this._getId("ai_user"), n[t.keys.userAuthUserId] = e[t.keys.userAuthUserId] || this._getId("ai_authUser"), n[t.keys.operationName] = this.getOperationName(e), n[t.keys.operationParentId] = this.getOperationParentId(e), n[t.keys.operationId] = this.getOperationId(e), n + }, t.prototype.getOperationId = function(e) { + return e[t.keys.operationId] || this.operationId + }, t.prototype.getOperationParentId = function(e) { + return e[t.keys.operationParentId] || this.parentId || this.getOperationId(e) + }, t.prototype.getOperationName = function(e) { + return e[t.keys.operationName] || this.method + " " + i.parse(this.url).pathname + }, t.prototype.getRequestId = function() { + return this.requestId + }, t.prototype.getCorrelationContextHeader = function() { + return this.correlationContextHeader + }, t.prototype.getTraceparent = function() { + return this.traceparent + }, t.prototype.getTracestate = function() { + return this.tracestate + }, t.prototype.getLegacyRootId = function() { + return this.legacyRootId + }, t.prototype._getAbsoluteUrl = function(e) { + if (!e.headers) return e.url; + var t = e.connection ? e.connection.encrypted : null, + n = i.parse(e.url), + r = n.pathname, + o = n.search; + return i.format({ + protocol: t ? "https" : "http", + host: e.headers.host, + pathname: r, + search: o + }) + }, t.prototype._getIp = function() { + var e = /[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/, + t = function(t) { + var n = e.exec(t); + if (n) return n[0] + }, + n = t(this.rawHeaders["x-forwarded-for"]) || t(this.rawHeaders["x-client-ip"]) || t(this.rawHeaders["x-real-ip"]) || t(this.connectionRemoteAddress) || t(this.socketRemoteAddress) || t(this.legacySocketRemoteAddress); + return !n && this.connectionRemoteAddress && this.connectionRemoteAddress.substr && "::" === this.connectionRemoteAddress.substr(0, 2) && (n = "127.0.0.1"), n + }, t.prototype._getId = function(e) { + var n = this.rawHeaders && this.rawHeaders.cookie && "string" == typeof this.rawHeaders.cookie && this.rawHeaders.cookie || ""; + return t.parseId(a.getCookie(e, n)) + }, t.prototype.setBackCompatFromThisTraceContext = function() { + this.operationId = this.traceparent.traceId, this.traceparent.legacyRootId && (this.legacyRootId = this.traceparent.legacyRootId), this.parentId = this.traceparent.parentId, this.traceparent.updateSpanId(), this.requestId = this.traceparent.getBackCompatRequestId() + }, t.prototype.parseHeaders = function(e, t) { + if (this.rawHeaders = e.headers || e.rawHeaders, this.userAgent = e.headers && e.headers["user-agent"], this.sourceCorrelationId = a.getCorrelationContextTarget(e, c.requestContextSourceKey), e.headers) { + var n = e.headers[c.traceStateHeader], + r = e.headers[c.traceparentHeader], + o = e.headers[c.requestIdHeader], + i = e.headers[c.parentIdHeader], + s = e.headers[c.rootIdHeader]; + this.correlationContextHeader = e.headers[c.correlationContextHeader], l.w3cEnabled && (r || n) ? (this.traceparent = new p(r), this.tracestate = r && n && new d(n), this.setBackCompatFromThisTraceContext()) : o ? l.w3cEnabled ? (this.traceparent = new p(null, o), this.setBackCompatFromThisTraceContext()) : (this.parentId = o, this.requestId = l.generateRequestId(this.parentId), this.operationId = l.getRootId(this.requestId)) : l.w3cEnabled ? (this.traceparent = new p, this.traceparent.parentId = i, this.traceparent.legacyRootId = s || i, this.setBackCompatFromThisTraceContext()) : (this.parentId = i, this.requestId = l.generateRequestId(s || this.parentId), this.correlationContextHeader = null, this.operationId = l.getRootId(this.requestId)), t && (this.requestId = t, this.operationId = l.getRootId(this.requestId)) + } + }, t.parseId = function(e) { + var t = e.split("|"); + return t.length > 0 ? t[0] : "" + }, t.keys = new s.ContextTagKeys, t + }(u); + e.exports = h + }, + 2646: (e, t, n) => { + "use strict"; + var r = n(3685), + o = n(5687), + i = n(2010), + s = n(7649), + a = n(6357), + c = n(5128), + u = n(6751), + l = n(3103), + d = function() { + function e(t) { + if (e.INSTANCE) throw new Error("Server request tracking should be configured from the applicationInsights object"); + e.INSTANCE = this, this._client = t + } + return e.prototype.enable = function(e) { + this._isEnabled = e, (this._isAutoCorrelating || this._isEnabled || l.isEnabled()) && !this._isInitialized && (this.useAutoCorrelation(this._isAutoCorrelating), this._initialize()) + }, e.prototype.useAutoCorrelation = function(e, t) { + e && !this._isAutoCorrelating ? u.CorrelationContextManager.enable(t) : !e && this._isAutoCorrelating && u.CorrelationContextManager.disable(), this._isAutoCorrelating = e + }, e.prototype.isInitialized = function() { + return this._isInitialized + }, e.prototype.isAutoCorrelating = function() { + return this._isAutoCorrelating + }, e.prototype._generateCorrelationContext = function(e) { + if (this._isAutoCorrelating) return u.CorrelationContextManager.generateContextObject(e.getOperationId(this._client.context.tags), e.getRequestId(), e.getOperationName(this._client.context.tags), e.getCorrelationContextHeader(), e.getTraceparent(), e.getTracestate()) + }, e.prototype._initialize = function() { + var t = this; + this._isInitialized = !0; + var n = function(n) { + if (n) { + if ("function" != typeof n) throw new Error("onRequest handler must be a function"); + return function(r, o) { + u.CorrelationContextManager.wrapEmitter(r), u.CorrelationContextManager.wrapEmitter(o); + var i = r && !r[e.alreadyAutoCollectedFlag]; + if (r && i) { + var s = new c(r), + a = t._generateCorrelationContext(s); + u.CorrelationContextManager.runWithContext(a, (function() { + t._isEnabled && (r[e.alreadyAutoCollectedFlag] = !0, e.trackRequest(t._client, { + request: r, + response: o + }, s)), "function" == typeof n && n(r, o) + })) + } else "function" == typeof n && n(r, o) + } + } + }, + i = function(e) { + var t = e.addListener.bind(e); + e.addListener = function(e, r) { + switch (e) { + case "request": + case "checkContinue": + return t(e, n(r)); + default: + return t(e, r) + } + }, e.on = e.addListener + }, + s = r.createServer; + r.createServer = function(e) { + var t = s(n(e)); + return i(t), t + }; + var a = o.createServer; + o.createServer = function(e, t) { + var r = a(e, n(t)); + return i(r), r + } + }, e.trackRequestSync = function(t, n) { + if (n.request && n.response && t) { + e.addResponseCorrelationIdHeader(t, n.response); + var r = u.CorrelationContextManager.getCurrentContext(), + o = new c(n.request, r && r.operation.parentId); + r && (r.operation.id = o.getOperationId(t.context.tags) || r.operation.id, r.operation.name = o.getOperationName(t.context.tags) || r.operation.name, r.operation.parentId = o.getRequestId() || r.operation.parentId, r.customProperties.addHeaderData(o.getCorrelationContextHeader())), e.endRequest(t, o, n, n.duration, n.error) + } else i.info("AutoCollectHttpRequests.trackRequestSync was called with invalid parameters: ", !n.request, !n.response, !t) + }, e.trackRequest = function(t, n, r) { + if (n.request && n.response && t) { + var o = u.CorrelationContextManager.getCurrentContext(), + a = r || new c(n.request, o && o.operation.parentId); + s.canIncludeCorrelationHeader(t, a.getUrl()) && e.addResponseCorrelationIdHeader(t, n.response), o && !r && (o.operation.id = a.getOperationId(t.context.tags) || o.operation.id, o.operation.name = a.getOperationName(t.context.tags) || o.operation.name, o.operation.parentId = a.getOperationParentId(t.context.tags) || o.operation.parentId, o.customProperties.addHeaderData(a.getCorrelationContextHeader())), n.response.once && n.response.once("finish", (function() { + e.endRequest(t, a, n, null, null) + })), n.request.on && n.request.on("error", (function(r) { + e.endRequest(t, a, n, null, r) + })) + } else i.info("AutoCollectHttpRequests.trackRequest was called with invalid parameters: ", !n.request, !n.response, !t) + }, e.addResponseCorrelationIdHeader = function(e, t) { + if (e.config && e.config.correlationId && t.getHeader && t.setHeader && !t.headersSent) { + var n = t.getHeader(a.requestContextHeader); + s.safeIncludeCorrelationHeader(e, t, n) + } + }, e.endRequest = function(e, t, n, r, o) { + o ? t.onError(o, r) : t.onResponse(n.response, r); + var i = t.getRequestTelemetry(n); + if (i.tagOverrides = t.getRequestTags(e.context.tags), n.tagOverrides) + for (var s in n.tagOverrides) i.tagOverrides[s] = n.tagOverrides[s]; + var a = t.getLegacyRootId(); + a && (i.properties.ai_legacyRootId = a), i.contextObjects = i.contextObjects || {}, i.contextObjects["http.ServerRequest"] = n.request, i.contextObjects["http.ServerResponse"] = n.response, e.trackRequest(i) + }, e.prototype.dispose = function() { + e.INSTANCE = null, this.enable(!1), this._isInitialized = !1, u.CorrelationContextManager.disable(), this._isAutoCorrelating = !1 + }, e.alreadyAutoCollectedFlag = "_appInsightsAutoCollected", e + }(); + e.exports = d + }, + 582: function(e, t, n) { + "use strict"; + var r = this && this.__assign || Object.assign || function(e) { + for (var t, n = 1, r = arguments.length; n < r; n++) + for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); + return e + }; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var o = n(2049), + i = n(2028), + s = n(2010), + a = function() { + function e(t) { + this._disabledMetrics = {}, e.INSTANCE && e.INSTANCE.dispose(), e.INSTANCE = this, this._client = t + } + return e.isNodeVersionCompatible = function() { + var e = process.versions.node.split("."); + return parseInt(e[0]) >= 6 + }, e.prototype.enable = function(t, r, o) { + var i = this; + if (void 0 === r && (r = {}), void 0 === o && (o = 6e4), e.isNodeVersionCompatible()) { + if (null == e._metricsAvailable && t && !this._isInitialized) try { + var a = n(9166); + e._emitter = new a, e._metricsAvailable = !0, s.info("Native metrics module successfully loaded!") + } catch (t) { + return void(e._metricsAvailable = !1) + } + this._isEnabled = t, this._disabledMetrics = r, this._isEnabled && !this._isInitialized && (this._isInitialized = !0), this._isEnabled && e._emitter ? (e._emitter.enable(!0, o), this._handle = setInterval((function() { + return i._trackNativeMetrics() + }), o), this._handle.unref()) : e._emitter && (e._emitter.enable(!1), this._handle && (clearInterval(this._handle), this._handle = void 0)) + } + }, e.prototype.dispose = function() { + this.enable(!1) + }, e.parseEnabled = function(e) { + var t = process.env[o.ENV_nativeMetricsDisableAll], + n = process.env[o.ENV_nativeMetricsDisablers]; + if (t) return { + isEnabled: !1, + disabledMetrics: {} + }; + if (n) { + var i = n.split(","), + s = {}; + if (i.length > 0) + for (var a = 0, c = i; a < c.length; a++) s[c[a]] = !0; + return "object" == typeof e ? { + isEnabled: !0, + disabledMetrics: r({}, e, s) + } : { + isEnabled: e, + disabledMetrics: s + } + } + return "boolean" == typeof e ? { + isEnabled: e, + disabledMetrics: {} + } : { + isEnabled: !0, + disabledMetrics: e + } + }, e.prototype._trackNativeMetrics = function() { + var e = !0; + "object" != typeof this._isEnabled && (e = this._isEnabled), e && (this._trackGarbageCollection(), this._trackEventLoop(), this._trackHeapUsage()) + }, e.prototype._trackGarbageCollection = function() { + if (!this._disabledMetrics.gc) { + var t, n = e._emitter.getGCData(); + for (var r in n) { + var o = n[r].metrics, + s = r + " Garbage Collection Duration", + a = Math.sqrt(o.sumSquares / o.count - Math.pow(o.total / o.count, 2)) || 0; + this._client.trackMetric({ + name: s, + value: o.total, + count: o.count, + max: o.max, + min: o.min, + stdDev: a, + tagOverrides: (t = {}, t[this._client.context.keys.internalSdkVersion] = "node-nativeperf:" + i.sdkVersion, t) + }) + } + } + }, e.prototype._trackEventLoop = function() { + if (!this._disabledMetrics.loop) { + var t = e._emitter.getLoopData().loopUsage; + if (0 != t.count) { + var n, r = Math.sqrt(t.sumSquares / t.count - Math.pow(t.total / t.count, 2)) || 0; + this._client.trackMetric({ + name: "Event Loop CPU Time", + value: t.total, + count: t.count, + min: t.min, + max: t.max, + stdDev: r, + tagOverrides: (n = {}, n[this._client.context.keys.internalSdkVersion] = "node-nativeperf:" + i.sdkVersion, n) + }) + } + } + }, e.prototype._trackHeapUsage = function() { + if (!this._disabledMetrics.heap) { + var e, t, n, r = process.memoryUsage(), + o = r.heapUsed, + s = r.heapTotal, + a = r.rss; + this._client.trackMetric({ + name: "Memory Usage (Heap)", + value: o, + count: 1, + tagOverrides: (e = {}, e[this._client.context.keys.internalSdkVersion] = "node-nativeperf:" + i.sdkVersion, e) + }), this._client.trackMetric({ + name: "Memory Total (Heap)", + value: s, + count: 1, + tagOverrides: (t = {}, t[this._client.context.keys.internalSdkVersion] = "node-nativeperf:" + i.sdkVersion, t) + }), this._client.trackMetric({ + name: "Memory Usage (Non-Heap)", + value: a - s, + count: 1, + tagOverrides: (n = {}, n[this._client.context.keys.internalSdkVersion] = "node-nativeperf:" + i.sdkVersion, n) + }) + } + }, e + }(); + t.AutoCollectNativePerformance = a + }, + 3103: (e, t, n) => { + "use strict"; + var r = n(2037), + o = n(5315), + i = function() { + function e(t, n, r) { + void 0 === n && (n = 6e4), void 0 === r && (r = !1), this._lastIntervalRequestExecutionTime = 0, this._lastIntervalDependencyExecutionTime = 0, e.INSTANCE || (e.INSTANCE = this), this._isInitialized = !1, this._client = t, this._collectionInterval = n, this._enableLiveMetricsCounters = r + } + return e.prototype.enable = function(t, n) { + var o = this; + this._isEnabled = t, this._isEnabled && !this._isInitialized && (this._isInitialized = !0), t ? this._handle || (this._lastCpus = r.cpus(), this._lastRequests = { + totalRequestCount: e._totalRequestCount, + totalFailedRequestCount: e._totalFailedRequestCount, + time: +new Date + }, this._lastDependencies = { + totalDependencyCount: e._totalDependencyCount, + totalFailedDependencyCount: e._totalFailedDependencyCount, + time: +new Date + }, this._lastExceptions = { + totalExceptionCount: e._totalExceptionCount, + time: +new Date + }, "function" == typeof process.cpuUsage && (this._lastAppCpuUsage = process.cpuUsage()), this._lastHrtime = process.hrtime(), this._collectionInterval = n || this._collectionInterval, this._handle = setInterval((function() { + return o.trackPerformance() + }), this._collectionInterval), this._handle.unref()) : this._handle && (clearInterval(this._handle), this._handle = void 0) + }, e.countRequest = function(t, n) { + var r; + if (e.isEnabled()) { + if ("string" == typeof t) r = +new Date("1970-01-01T" + t + "Z"); + else { + if ("number" != typeof t) return; + r = t + } + e._intervalRequestExecutionTime += r, !1 === n && e._totalFailedRequestCount++, e._totalRequestCount++ + } + }, e.countException = function() { + e._totalExceptionCount++ + }, e.countDependency = function(t, n) { + var r; + if (e.isEnabled()) { + if ("string" == typeof t) r = +new Date("1970-01-01T" + t + "Z"); + else { + if ("number" != typeof t) return; + r = t + } + e._intervalDependencyExecutionTime += r, !1 === n && e._totalFailedDependencyCount++, e._totalDependencyCount++ + } + }, e.prototype.isInitialized = function() { + return this._isInitialized + }, e.isEnabled = function() { + return e.INSTANCE && e.INSTANCE._isEnabled + }, e.prototype.trackPerformance = function() { + this._trackCpu(), this._trackMemory(), this._trackNetwork(), this._trackDependencyRate(), this._trackExceptionRate() + }, e.prototype._trackCpu = function() { + var e = r.cpus(); + if (e && e.length && this._lastCpus && e.length === this._lastCpus.length) { + for (var t = 0, n = 0, i = 0, s = 0, a = 0, c = 0; e && c < e.length; c++) { + var u = e[c], + l = this._lastCpus[c], + d = (u.model, u.speed, u.times), + p = l.times; + t += d.user - p.user || 0, n += d.sys - p.sys || 0, i += d.nice - p.nice || 0, s += d.idle - p.idle || 0, a += d.irq - p.irq || 0 + } + var h = void 0; + if ("function" == typeof process.cpuUsage) { + var m = process.cpuUsage(), + f = process.hrtime(), + g = m.user - this._lastAppCpuUsage.user + (m.system - this._lastAppCpuUsage.system) || 0; + void 0 !== this._lastHrtime && 2 === this._lastHrtime.length && (h = 100 * g / ((1e6 * (f[0] - this._lastHrtime[0]) + (f[1] - this._lastHrtime[1]) / 1e3 || 0) * e.length)), this._lastAppCpuUsage = m, this._lastHrtime = f + } + var y = t + n + i + s + a || 1; + this._client.trackMetric({ + name: o.PerformanceCounter.PROCESSOR_TIME, + value: (y - s) / y * 100 + }), this._client.trackMetric({ + name: o.PerformanceCounter.PROCESS_TIME, + value: h || t / y * 100 + }) + } + this._lastCpus = e + }, e.prototype._trackMemory = function() { + var e = r.freemem(), + t = process.memoryUsage().rss, + n = r.totalmem() - e; + this._client.trackMetric({ + name: o.PerformanceCounter.PRIVATE_BYTES, + value: t + }), this._client.trackMetric({ + name: o.PerformanceCounter.AVAILABLE_BYTES, + value: e + }), this._enableLiveMetricsCounters && this._client.trackMetric({ + name: o.QuickPulseCounter.COMMITTED_BYTES, + value: n + }) + }, e.prototype._trackNetwork = function() { + var t = this._lastRequests, + n = { + totalRequestCount: e._totalRequestCount, + totalFailedRequestCount: e._totalFailedRequestCount, + time: +new Date + }, + r = n.totalRequestCount - t.totalRequestCount || 0, + i = n.totalFailedRequestCount - t.totalFailedRequestCount || 0, + s = n.time - t.time, + a = s / 1e3, + c = (e._intervalRequestExecutionTime - this._lastIntervalRequestExecutionTime) / r || 0; + if (this._lastIntervalRequestExecutionTime = e._intervalRequestExecutionTime, s > 0) { + var u = r / a, + l = i / a; + this._client.trackMetric({ + name: o.PerformanceCounter.REQUEST_RATE, + value: u + }), (!this._enableLiveMetricsCounters || r > 0) && this._client.trackMetric({ + name: o.PerformanceCounter.REQUEST_DURATION, + value: c + }), this._enableLiveMetricsCounters && this._client.trackMetric({ + name: o.QuickPulseCounter.REQUEST_FAILURE_RATE, + value: l + }) + } + this._lastRequests = n + }, e.prototype._trackDependencyRate = function() { + if (this._enableLiveMetricsCounters) { + var t = this._lastDependencies, + n = { + totalDependencyCount: e._totalDependencyCount, + totalFailedDependencyCount: e._totalFailedDependencyCount, + time: +new Date + }, + r = n.totalDependencyCount - t.totalDependencyCount || 0, + i = n.totalFailedDependencyCount - t.totalFailedDependencyCount || 0, + s = n.time - t.time, + a = s / 1e3, + c = (e._intervalDependencyExecutionTime - this._lastIntervalDependencyExecutionTime) / r || 0; + if (this._lastIntervalDependencyExecutionTime = e._intervalDependencyExecutionTime, s > 0) { + var u = r / a, + l = i / a; + this._client.trackMetric({ + name: o.QuickPulseCounter.DEPENDENCY_RATE, + value: u + }), this._client.trackMetric({ + name: o.QuickPulseCounter.DEPENDENCY_FAILURE_RATE, + value: l + }), (!this._enableLiveMetricsCounters || r > 0) && this._client.trackMetric({ + name: o.QuickPulseCounter.DEPENDENCY_DURATION, + value: c + }) + } + this._lastDependencies = n + } + }, e.prototype._trackExceptionRate = function() { + if (this._enableLiveMetricsCounters) { + var t = this._lastExceptions, + n = { + totalExceptionCount: e._totalExceptionCount, + time: +new Date + }, + r = n.totalExceptionCount - t.totalExceptionCount || 0, + i = n.time - t.time; + if (i > 0) { + var s = r / (i / 1e3); + this._client.trackMetric({ + name: o.QuickPulseCounter.EXCEPTION_RATE, + value: s + }) + } + this._lastExceptions = n + } + }, e.prototype.dispose = function() { + e.INSTANCE = null, this.enable(!1), this._isInitialized = !1 + }, e._totalRequestCount = 0, e._totalFailedRequestCount = 0, e._lastRequestExecutionTime = 0, e._totalDependencyCount = 0, e._totalFailedDependencyCount = 0, e._lastDependencyExecutionTime = 0, e._totalExceptionCount = 0, e._intervalDependencyExecutionTime = 0, e._intervalRequestExecutionTime = 0, e + }(); + e.exports = i + }, + 7774: e => { + "use strict"; + var t = function() { + function e() {} + return e.prototype.getUrl = function() { + return this.url + }, e.prototype.RequestParser = function() { + this.startTime = +new Date + }, e.prototype._setStatus = function(e, t) { + var n = +new Date; + this.duration = n - this.startTime, this.statusCode = e; + var r = this.properties || {}; + if (t) + if ("string" == typeof t) r.error = t; + else if (t instanceof Error) r.error = t.message; + else if ("object" == typeof t) + for (var o in t) r[o] = t[o] && t[o].toString && t[o].toString(); + this.properties = r + }, e.prototype._isSuccess = function() { + return 0 < this.statusCode && this.statusCode < 400 + }, e + }(); + e.exports = t + }, + 3805: (e, t, n) => { + "use strict"; + var r = n(5512), + o = n(6932), + i = [], + s = { + 10: r.SeverityLevel.Verbose, + 20: r.SeverityLevel.Verbose, + 30: r.SeverityLevel.Information, + 40: r.SeverityLevel.Warning, + 50: r.SeverityLevel.Error, + 60: r.SeverityLevel.Critical + }, + a = function(e) { + var t = e.data.result; + i.forEach((function(n) { + var r = s[e.data.level]; + t instanceof Error ? n.trackException({ + exception: t + }) : n.trackTrace({ + message: t, + severity: r + }) + })) + }; + t.wp = function(e, t) { + e ? (0 === i.length && o.channel.subscribe("bunyan", a), i.push(t)) : 0 === (i = i.filter((function(e) { + return e != t + }))).length && o.channel.unsubscribe("bunyan", a) + } + }, + 2469: (e, t, n) => { + "use strict"; + var r = n(5512), + o = n(6932), + i = [], + s = function(e) { + var t = e.data.message; + i.forEach((function(n) { + t instanceof Error ? n.trackException({ + exception: t + }) : (t.lastIndexOf("\n") == t.length - 1 && (t = t.substring(0, t.length - 1)), n.trackTrace({ + message: t, + severity: e.data.stderr ? r.SeverityLevel.Warning : r.SeverityLevel.Information + })) + })) + }; + t.wp = function(e, t) { + e ? (0 === i.length && o.channel.subscribe("console", s), i.push(t)) : 0 === (i = i.filter((function(e) { + return e != t + }))).length && o.channel.unsubscribe("console", s) + } + }, + 1767: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = n(2010); + t.IsInitialized = !process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL; + var o = "DiagnosticChannel"; + if (t.IsInitialized) { + var i = n(6315), + s = (process.env.APPLICATION_INSIGHTS_NO_PATCH_MODULES || "").split(","), + a = { + bunyan: i.bunyan, + console: i.console, + mongodb: i.mongodb, + mongodbCore: i.mongodbCore, + mysql: i.mysql, + redis: i.redis, + pg: i.pg, + pgPool: i.pgPool, + winston: i.winston + }; + for (var c in a) - 1 === s.indexOf(c) && (a[c].enable(), r.info(o, "Subscribed to " + c + " events")); + s.length > 0 && r.info(o, "Some modules will not be patched", s) + } else r.info(o, "Not subscribing to dependency autocollection because APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL was set"); + t.registerContextPreservation = function(e) { + t.IsInitialized && n(6932).channel.addContextPreservation(e) + } + }, + 5452: (e, t, n) => { + "use strict"; + var r = n(6932), + o = []; + t.qP = function(e) { + e.data.event.commandName, o.forEach((function(t) { + var n = e.data.startedData && e.data.startedData.databaseName || "Unknown database"; + t.trackDependency({ + target: n, + data: e.data.event.commandName, + name: e.data.event.commandName, + duration: e.data.event.duration, + success: e.data.succeeded, + resultCode: e.data.succeeded ? "0" : "1", + dependencyTypeName: "mongodb" + }) + })) + }, t.wp = function(e, n) { + e ? (0 === o.length && r.channel.subscribe("mongodb", t.qP), o.push(n)) : 0 === (o = o.filter((function(e) { + return e != n + }))).length && r.channel.unsubscribe("mongodb", t.qP) + } + }, + 6002: (e, t, n) => { + "use strict"; + var r = n(6932), + o = []; + t.qP = function(e) { + o.forEach((function(t) { + var n = e.data.query || {}, + r = n.sql || "Unknown query", + o = !e.data.err, + i = (n._connection || {}).config || {}, + s = i.socketPath ? i.socketPath : (i.host || "localhost") + ":" + i.port; + t.trackDependency({ + target: s, + data: r, + name: r, + duration: e.data.duration, + success: o, + resultCode: o ? "0" : "1", + dependencyTypeName: "mysql" + }) + })) + }, t.wp = function(e, n) { + e ? (0 === o.length && r.channel.subscribe("mysql", t.qP), o.push(n)) : 0 === (o = o.filter((function(e) { + return e != n + }))).length && r.channel.unsubscribe("mysql", t.qP) + } + }, + 8998: (e, t, n) => { + "use strict"; + var r = n(6932), + o = []; + t.qP = function(e) { + o.forEach((function(t) { + var n = e.data.query, + r = n.preparable && n.preparable.text || n.plan || n.text || "unknown query", + o = !e.data.error, + i = e.data.database.host + ":" + e.data.database.port; + t.trackDependency({ + target: i, + data: r, + name: r, + duration: e.data.duration, + success: o, + resultCode: o ? "0" : "1", + dependencyTypeName: "postgres" + }) + })) + }, t.wp = function(e, n) { + e ? (0 === o.length && r.channel.subscribe("postgres", t.qP), o.push(n)) : 0 === (o = o.filter((function(e) { + return e != n + }))).length && r.channel.unsubscribe("postgres", t.qP) + } + }, + 9215: (e, t, n) => { + "use strict"; + var r = n(6932), + o = []; + t.qP = function(e) { + o.forEach((function(t) { + "info" !== e.data.commandObj.command && t.trackDependency({ + target: e.data.address, + name: e.data.commandObj.command, + data: e.data.commandObj.command, + duration: e.data.duration, + success: !e.data.err, + resultCode: e.data.err ? "1" : "0", + dependencyTypeName: "redis" + }) + })) + }, t.wp = function(e, n) { + e ? (0 === o.length && r.channel.subscribe("redis", t.qP), o.push(n)) : 0 === (o = o.filter((function(e) { + return e != n + }))).length && r.channel.unsubscribe("redis", t.qP) + } + }, + 7916: (e, t, n) => { + "use strict"; + var r = n(5512), + o = n(6932), + i = [], + s = { + syslog: function(e) { + var t = { + emerg: r.SeverityLevel.Critical, + alert: r.SeverityLevel.Critical, + crit: r.SeverityLevel.Critical, + error: r.SeverityLevel.Error, + warning: r.SeverityLevel.Warning, + notice: r.SeverityLevel.Information, + info: r.SeverityLevel.Information, + debug: r.SeverityLevel.Verbose + }; + return void 0 === t[e] ? r.SeverityLevel.Information : t[e] + }, + npm: function(e) { + var t = { + error: r.SeverityLevel.Error, + warn: r.SeverityLevel.Warning, + info: r.SeverityLevel.Information, + verbose: r.SeverityLevel.Verbose, + debug: r.SeverityLevel.Verbose, + silly: r.SeverityLevel.Verbose + }; + return void 0 === t[e] ? r.SeverityLevel.Information : t[e] + }, + unknown: function(e) { + return r.SeverityLevel.Information + } + }, + a = function(e) { + var t = e.data.message; + i.forEach((function(n) { + if (t instanceof Error) n.trackException({ + exception: t, + properties: e.data.meta + }); + else { + var r = s[e.data.levelKind](e.data.level); + n.trackTrace({ + message: t, + severity: r, + properties: e.data.meta + }) + } + })) + }; + t.wp = function(e, t) { + e ? (0 === i.length && o.channel.subscribe("winston", a), i.push(t)) : 0 === (i = i.filter((function(e) { + return e != t + }))).length && o.channel.unsubscribe("winston", a) + } + }, + 5315: (e, t) => { + "use strict"; + var n, r, o; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio.com", t.DEFAULT_LIVEMETRICS_ENDPOINT = "https://rt.services.visualstudio.com", t.DEFAULT_LIVEMETRICS_HOST = "rt.services.visualstudio.com", + function(e) { + e.COMMITTED_BYTES = "\\Memory\\Committed Bytes", e.PROCESSOR_TIME = "\\Processor(_Total)\\% Processor Time", e.REQUEST_RATE = "\\ApplicationInsights\\Requests/Sec", e.REQUEST_FAILURE_RATE = "\\ApplicationInsights\\Requests Failed/Sec", e.REQUEST_DURATION = "\\ApplicationInsights\\Request Duration", e.DEPENDENCY_RATE = "\\ApplicationInsights\\Dependency Calls/Sec", e.DEPENDENCY_FAILURE_RATE = "\\ApplicationInsights\\Dependency Calls Failed/Sec", e.DEPENDENCY_DURATION = "\\ApplicationInsights\\Dependency Call Duration", e.EXCEPTION_RATE = "\\ApplicationInsights\\Exceptions/Sec" + }(n = t.QuickPulseCounter || (t.QuickPulseCounter = {})), + function(e) { + e.PRIVATE_BYTES = "\\Process(??APP_WIN32_PROC??)\\Private Bytes", e.AVAILABLE_BYTES = "\\Memory\\Available Bytes", e.PROCESSOR_TIME = "\\Processor(_Total)\\% Processor Time", e.PROCESS_TIME = "\\Process(??APP_WIN32_PROC??)\\% Processor Time", e.REQUEST_RATE = "\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Requests/Sec", e.REQUEST_DURATION = "\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Request Execution Time" + }(r = t.PerformanceCounter || (t.PerformanceCounter = {})), t.PerformanceToQuickPulseCounter = ((o = {})[r.PROCESSOR_TIME] = n.PROCESSOR_TIME, o[r.REQUEST_RATE] = n.REQUEST_RATE, o[r.REQUEST_DURATION] = n.REQUEST_DURATION, o[n.COMMITTED_BYTES] = n.COMMITTED_BYTES, o[n.REQUEST_FAILURE_RATE] = n.REQUEST_FAILURE_RATE, o[n.DEPENDENCY_RATE] = n.DEPENDENCY_RATE, o[n.DEPENDENCY_FAILURE_RATE] = n.DEPENDENCY_FAILURE_RATE, o[n.DEPENDENCY_DURATION] = n.DEPENDENCY_DURATION, o[n.EXCEPTION_RATE] = n.EXCEPTION_RATE, o), t.QuickPulseDocumentType = { + Event: "Event", + Exception: "Exception", + Trace: "Trace", + Metric: "Metric", + Request: "Request", + Dependency: "RemoteDependency", + Availability: "Availability" + }, t.QuickPulseType = { + Event: "EventTelemetryDocument", + Exception: "ExceptionTelemetryDocument", + Trace: "TraceTelemetryDocument", + Metric: "MetricTelemetryDocument", + Request: "RequestTelemetryDocument", + Dependency: "DependencyTelemetryDocument", + Availability: "AvailabilityTelemetryDocument" + }, t.TelemetryTypeStringToQuickPulseType = { + EventData: t.QuickPulseType.Event, + ExceptionData: t.QuickPulseType.Exception, + MessageData: t.QuickPulseType.Trace, + MetricData: t.QuickPulseType.Metric, + RequestData: t.QuickPulseType.Request, + RemoteDependencyData: t.QuickPulseType.Dependency, + AvailabilityData: t.QuickPulseType.Availability + }, t.TelemetryTypeStringToQuickPulseDocumentType = { + EventData: t.QuickPulseDocumentType.Event, + ExceptionData: t.QuickPulseDocumentType.Exception, + MessageData: t.QuickPulseDocumentType.Trace, + MetricData: t.QuickPulseDocumentType.Metric, + RequestData: t.QuickPulseDocumentType.Request, + RemoteDependencyData: t.QuickPulseDocumentType.Dependency, + AvailabilityData: t.QuickPulseDocumentType.Availability + } + }, + 2436: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = n(3809), + o = function() { + function e() {} + return e.TYPE_HTTP = "Http", e.TYPE_AI = "Http (tracked component)", e + }(); + t.RemoteDependencyDataConstants = o, t.domainSupportsProperties = function(e) { + return "properties" in e || e instanceof r.EventData || e instanceof r.ExceptionData || e instanceof r.MessageData || e instanceof r.MetricData || e instanceof r.PageViewData || e instanceof r.RemoteDependencyData || e instanceof r.RequestData + } + }, + 8517: function(e, t, n) { + "use strict"; + var r, o = this && this.__extends || (r = Object.setPrototypeOf || { + __proto__: [] + } + instanceof Array && function(e, t) { + e.__proto__ = t + } || function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + }, + function(e, t) { + function n() { + this.constructor = e + } + r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) + }), + i = function(e) { + function t() { + var t = e.call(this) || this; + return t.ver = 2, t.properties = {}, t.measurements = {}, t + } + return o(t, e), t + }(n(8707)); + e.exports = i + }, + 8915: e => { + "use strict"; + e.exports = function() {} + }, + 1886: e => { + "use strict"; + e.exports = function() { + this.applicationVersion = "ai.application.ver", this.deviceId = "ai.device.id", this.deviceLocale = "ai.device.locale", this.deviceModel = "ai.device.model", this.deviceOEMName = "ai.device.oemName", this.deviceOSVersion = "ai.device.osVersion", this.deviceType = "ai.device.type", this.locationIp = "ai.location.ip", this.operationId = "ai.operation.id", this.operationName = "ai.operation.name", this.operationParentId = "ai.operation.parentId", this.operationSyntheticSource = "ai.operation.syntheticSource", this.operationCorrelationVector = "ai.operation.correlationVector", this.sessionId = "ai.session.id", this.sessionIsFirst = "ai.session.isFirst", this.userAccountId = "ai.user.accountId", this.userId = "ai.user.id", this.userAuthUserId = "ai.user.authUserId", this.cloudRole = "ai.cloud.role", this.cloudRoleInstance = "ai.cloud.roleInstance", this.internalSdkVersion = "ai.internal.sdkVersion", this.internalAgentVersion = "ai.internal.agentVersion", this.internalNodeName = "ai.internal.nodeName" + } + }, + 7878: function(e, t, n) { + "use strict"; + var r, o = this && this.__extends || (r = Object.setPrototypeOf || { + __proto__: [] + } + instanceof Array && function(e, t) { + e.__proto__ = t + } || function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + }, + function(e, t) { + function n() { + this.constructor = e + } + r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) + }), + i = function(e) { + function t() { + return e.call(this) || this + } + return o(t, e), t + }(n(8915)); + e.exports = i + }, + 946: (e, t, n) => { + "use strict"; + var r = n(4964); + e.exports = function() { + this.kind = r.Measurement + } + }, + 4964: e => { + "use strict"; + var t; + ! function(e) { + e[e.Measurement = 0] = "Measurement", e[e.Aggregation = 1] = "Aggregation" + }(t || (t = {})), e.exports = t + }, + 8707: e => { + "use strict"; + e.exports = function() {} + }, + 6441: e => { + "use strict"; + e.exports = function() { + this.ver = 1, this.sampleRate = 100, this.tags = {} + } + }, + 3139: function(e, t, n) { + "use strict"; + var r, o = this && this.__extends || (r = Object.setPrototypeOf || { + __proto__: [] + } + instanceof Array && function(e, t) { + e.__proto__ = t + } || function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + }, + function(e, t) { + function n() { + this.constructor = e + } + r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) + }), + i = function(e) { + function t() { + var t = e.call(this) || this; + return t.ver = 2, t.properties = {}, t.measurements = {}, t + } + return o(t, e), t + }(n(8707)); + e.exports = i + }, + 6157: function(e, t, n) { + "use strict"; + var r, o = this && this.__extends || (r = Object.setPrototypeOf || { + __proto__: [] + } + instanceof Array && function(e, t) { + e.__proto__ = t + } || function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + }, + function(e, t) { + function n() { + this.constructor = e + } + r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) + }), + i = function(e) { + function t() { + var t = e.call(this) || this; + return t.ver = 2, t.exceptions = [], t.properties = {}, t.measurements = {}, t + } + return o(t, e), t + }(n(8707)); + e.exports = i + }, + 9668: e => { + "use strict"; + e.exports = function() { + this.hasFullStack = !0, this.parsedStack = [] + } + }, + 5397: function(e, t, n) { + "use strict"; + var r, o = this && this.__extends || (r = Object.setPrototypeOf || { + __proto__: [] + } + instanceof Array && function(e, t) { + e.__proto__ = t + } || function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + }, + function(e, t) { + function n() { + this.constructor = e + } + r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) + }), + i = function(e) { + function t() { + var t = e.call(this) || this; + return t.ver = 2, t.properties = {}, t + } + return o(t, e), t + }(n(8707)); + e.exports = i + }, + 7059: function(e, t, n) { + "use strict"; + var r, o = this && this.__extends || (r = Object.setPrototypeOf || { + __proto__: [] + } + instanceof Array && function(e, t) { + e.__proto__ = t + } || function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + }, + function(e, t) { + function n() { + this.constructor = e + } + r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) + }), + i = function(e) { + function t() { + var t = e.call(this) || this; + return t.ver = 2, t.metrics = [], t.properties = {}, t + } + return o(t, e), t + }(n(8707)); + e.exports = i + }, + 9731: function(e, t, n) { + "use strict"; + var r, o = this && this.__extends || (r = Object.setPrototypeOf || { + __proto__: [] + } + instanceof Array && function(e, t) { + e.__proto__ = t + } || function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + }, + function(e, t) { + function n() { + this.constructor = e + } + r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) + }), + i = function(e) { + function t() { + var t = e.call(this) || this; + return t.ver = 2, t.properties = {}, t.measurements = {}, t + } + return o(t, e), t + }(n(3139)); + e.exports = i + }, + 5520: function(e, t, n) { + "use strict"; + var r, o = this && this.__extends || (r = Object.setPrototypeOf || { + __proto__: [] + } + instanceof Array && function(e, t) { + e.__proto__ = t + } || function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + }, + function(e, t) { + function n() { + this.constructor = e + } + r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) + }), + i = function(e) { + function t() { + var t = e.call(this) || this; + return t.ver = 2, t.success = !0, t.properties = {}, t.measurements = {}, t + } + return o(t, e), t + }(n(8707)); + e.exports = i + }, + 3739: function(e, t, n) { + "use strict"; + var r, o = this && this.__extends || (r = Object.setPrototypeOf || { + __proto__: [] + } + instanceof Array && function(e, t) { + e.__proto__ = t + } || function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + }, + function(e, t) { + function n() { + this.constructor = e + } + r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) + }), + i = function(e) { + function t() { + var t = e.call(this) || this; + return t.ver = 2, t.properties = {}, t.measurements = {}, t + } + return o(t, e), t + }(n(8707)); + e.exports = i + }, + 595: e => { + "use strict"; + var t; + ! function(e) { + e[e.Verbose = 0] = "Verbose", e[e.Information = 1] = "Information", e[e.Warning = 2] = "Warning", e[e.Error = 3] = "Error", e[e.Critical = 4] = "Critical" + }(t || (t = {})), e.exports = t + }, + 3076: e => { + "use strict"; + e.exports = function() {} + }, + 3809: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.AvailabilityData = n(8517), t.Base = n(8915), t.ContextTagKeys = n(1886), t.Data = n(7878), t.DataPoint = n(946), t.DataPointType = n(4964), t.Domain = n(8707), t.Envelope = n(6441), t.EventData = n(3139), t.ExceptionData = n(6157), t.ExceptionDetails = n(9668), t.MessageData = n(5397), t.MetricData = n(7059), t.PageViewData = n(9731), t.RemoteDependencyData = n(5520), t.RequestData = n(3739), t.SeverityLevel = n(595), t.StackFrame = n(3076) + }, + 5263: (e, t) => { + "use strict"; + var n; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.telemetryTypeToBaseType = function(e) { + switch (e) { + case n.Event: + return "EventData"; + case n.Exception: + return "ExceptionData"; + case n.Trace: + return "MessageData"; + case n.Metric: + return "MetricData"; + case n.Request: + return "RequestData"; + case n.Dependency: + return "RemoteDependencyData"; + case n.Availability: + return "AvailabilityData" + } + }, t.baseTypeToTelemetryType = function(e) { + switch (e) { + case "EventData": + return n.Event; + case "ExceptionData": + return n.Exception; + case "MessageData": + return n.Trace; + case "MetricData": + return n.Metric; + case "RequestData": + return n.Request; + case "RemoteDependencyData": + return n.Dependency; + case "AvailabilityData": + return n.Availability + } + }, t.TelemetryTypeString = { + Event: "EventData", + Exception: "ExceptionData", + Trace: "MessageData", + Metric: "MetricData", + Request: "RequestData", + Dependency: "RemoteDependencyData", + Availability: "AvailabilityData" + }, + function(e) { + e[e.Event = 0] = "Event", e[e.Exception = 1] = "Exception", e[e.Trace = 2] = "Trace", e[e.Metric = 3] = "Metric", e[e.Request = 4] = "Request", e[e.Dependency = 5] = "Dependency", e[e.Availability = 6] = "Availability" + }(n = t.TelemetryType || (t.TelemetryType = {})) + }, + 234: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), + function(e) { + for (var n in e) t.hasOwnProperty(n) || (t[n] = e[n]) + }(n(5263)) + }, + 5512: (e, t, n) => { + "use strict"; + + function r(e) { + for (var n in e) t.hasOwnProperty(n) || (t[n] = e[n]) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), r(n(2436)), r(n(3809)), r(n(234)) + }, + 4240: (e, t, n) => { + "use strict"; + var r = n(2010), + o = function() { + function e(e, t, n, r) { + this._buffer = [], this._lastSend = 0, this._isDisabled = e, this._getBatchSize = t, this._getBatchIntervalMs = n, this._sender = r + } + return e.prototype.setUseDiskRetryCaching = function(e, t, n) { + this._sender.setDiskRetryMode(e, t, n) + }, e.prototype.send = function(e) { + var t = this; + if (!this._isDisabled()) + if (e) { + var n = this._stringify(e); + "string" == typeof n && (this._buffer.push(n), this._buffer.length >= this._getBatchSize() ? this.triggerSend(!1) : !this._timeoutHandle && this._buffer.length > 0 && (this._timeoutHandle = setTimeout((function() { + t._timeoutHandle = null, t.triggerSend(!1) + }), this._getBatchIntervalMs()))) + } else r.warn("Cannot send null/undefined telemetry") + }, e.prototype.triggerSend = function(e, t) { + var n = this._buffer.length < 1; + if (!n) { + var r = this._buffer.join("\n"); + e ? (this._sender.saveOnCrash(r), "function" == typeof t && t("data saved on crash")) : this._sender.send(Buffer.from ? Buffer.from(r) : new Buffer(r), t) + } + this._lastSend = +new Date, this._buffer.length = 0, clearTimeout(this._timeoutHandle), this._timeoutHandle = null, n && "function" == typeof t && t("no data to send") + }, e.prototype._stringify = function(e) { + try { + return JSON.stringify(e) + } catch (t) { + r.warn("Failed to serialize payload", t, e) + } + }, e + }(); + e.exports = o + }, + 2049: (e, t, n) => { + "use strict"; + var r = n(6590), + o = n(2495), + i = n(5315), + s = n(7310), + a = function() { + function e(t) { + var n = this; + this.endpointBase = i.DEFAULT_BREEZE_ENDPOINT; + var r = process.env[e.ENV_connectionString], + a = o.parse(t), + c = o.parse(r), + u = !a.instrumentationkey && Object.keys(a).length > 0 ? null : t; + this.instrumentationKey = a.instrumentationkey || u || c.instrumentationkey || e._getInstrumentationKey(), this.endpointUrl = (a.ingestionendpoint || c.ingestionendpoint || this.endpointBase) + "/v2/track", this.maxBatchSize = 250, this.maxBatchIntervalMs = 15e3, this.disableAppInsights = !1, this.samplingPercentage = 100, this.correlationIdRetryIntervalMs = 3e4, this.correlationHeaderExcludedDomains = ["*.core.windows.net", "*.core.chinacloudapi.cn", "*.core.cloudapi.de", "*.core.usgovcloudapi.net", "*.core.microsoft.scloud", "*.core.eaglex.ic.gov"], this.setCorrelationId = function(e) { + return n.correlationId = e + }, this.proxyHttpUrl = process.env[e.ENV_http_proxy] || void 0, this.proxyHttpsUrl = process.env[e.ENV_https_proxy] || void 0, this.httpAgent = void 0, this.httpsAgent = void 0, this.profileQueryEndpoint = a.ingestionendpoint || c.ingestionendpoint || process.env[e.ENV_profileQueryEndpoint] || this.endpointBase, this._quickPulseHost = a.liveendpoint || c.liveendpoint || process.env[e.ENV_quickPulseHost] || i.DEFAULT_LIVEMETRICS_HOST, this._quickPulseHost.match(/^https?:\/\//) && (this._quickPulseHost = s.parse(this._quickPulseHost).host) + } + return Object.defineProperty(e.prototype, "profileQueryEndpoint", { + get: function() { + return this._profileQueryEndpoint + }, + set: function(e) { + r.cancelCorrelationIdQuery(this, this.setCorrelationId), this._profileQueryEndpoint = e, this.correlationId = r.correlationIdPrefix, r.queryCorrelationId(this, this.setCorrelationId) + }, + enumerable: !0, + configurable: !0 + }), Object.defineProperty(e.prototype, "quickPulseHost", { + get: function() { + return this._quickPulseHost + }, + set: function(e) { + this._quickPulseHost = e + }, + enumerable: !0, + configurable: !0 + }), e._getInstrumentationKey = function() { + var t = process.env[e.ENV_iKey] || process.env[e.ENV_azurePrefix + e.ENV_iKey] || process.env[e.legacy_ENV_iKey] || process.env[e.ENV_azurePrefix + e.legacy_ENV_iKey]; + if (!t || "" == t) throw new Error("Instrumentation key not found, pass the key in the config to this method or set the key in the environment variable APPINSIGHTS_INSTRUMENTATIONKEY before starting the server"); + return t + }, e.ENV_azurePrefix = "APPSETTING_", e.ENV_iKey = "APPINSIGHTS_INSTRUMENTATIONKEY", e.legacy_ENV_iKey = "APPINSIGHTS_INSTRUMENTATION_KEY", e.ENV_profileQueryEndpoint = "APPINSIGHTS_PROFILE_QUERY_ENDPOINT", e.ENV_quickPulseHost = "APPINSIGHTS_QUICKPULSE_HOST", e.ENV_connectionString = "APPLICATIONINSIGHTS_CONNECTION_STRING", e.ENV_nativeMetricsDisablers = "APPLICATION_INSIGHTS_DISABLE_EXTENDED_METRIC", e.ENV_nativeMetricsDisableAll = "APPLICATION_INSIGHTS_DISABLE_ALL_EXTENDED_METRICS", e.ENV_http_proxy = "http_proxy", e.ENV_https_proxy = "https_proxy", e + }(); + e.exports = a + }, + 2495: (e, t, n) => { + "use strict"; + var r = n(5315), + o = function() { + function e() {} + return e.parse = function(t) { + if (!t) return {}; + var n = t.split(e._FIELDS_SEPARATOR).reduce((function(t, n) { + var r = n.split(e._FIELD_KEY_VALUE_SEPARATOR); + if (2 === r.length) { + var o = r[0].toLowerCase(), + i = r[1]; + t[o] = i + } + return t + }), {}); + if (Object.keys(n).length > 0) { + if (n.endpointsuffix) { + var o = n.location ? n.location + "." : ""; + n.ingestionendpoint = n.ingestionendpoint || "https://" + o + "dc." + n.endpointsuffix, n.liveendpoint = n.liveendpoint || "https://" + o + "live." + n.endpointsuffix + } + n.ingestionendpoint = n.ingestionendpoint || r.DEFAULT_BREEZE_ENDPOINT, n.liveendpoint = n.liveendpoint || r.DEFAULT_LIVEMETRICS_ENDPOINT + } + return n + }, e._FIELDS_SEPARATOR = ";", e._FIELD_KEY_VALUE_SEPARATOR = "=", e + }(); + e.exports = o + }, + 2028: (e, t, n) => { + "use strict"; + var r = n(2037), + o = n(7147), + i = n(1017), + s = n(5512), + a = n(2010), + c = function() { + function e(e) { + this.keys = new s.ContextTagKeys, this.tags = {}, this._loadApplicationContext(), this._loadDeviceContext(), this._loadInternalContext() + } + return e.prototype._loadApplicationContext = function(t) { + if (t = t || i.resolve(__dirname, "../../../../package.json"), !e.appVersion[t]) { + e.appVersion[t] = "unknown"; + try { + var n = JSON.parse(o.readFileSync(t, "utf8")); + n && "string" == typeof n.version && (e.appVersion[t] = n.version) + } catch (e) { + a.info("unable to read app version: ", e) + } + } + this.tags[this.keys.applicationVersion] = e.appVersion[t] + }, e.prototype._loadDeviceContext = function() { + this.tags[this.keys.deviceId] = "", this.tags[this.keys.cloudRoleInstance] = r && r.hostname(), this.tags[this.keys.deviceOSVersion] = r && r.type() + " " + r.release(), this.tags[this.keys.cloudRole] = e.DefaultRoleName, this.tags["ai.device.osArchitecture"] = r && r.arch(), this.tags["ai.device.osPlatform"] = r && r.platform() + }, e.prototype._loadInternalContext = function() { + var t = i.resolve(__dirname, "../../package.json"); + if (!e.sdkVersion) { + e.sdkVersion = "unknown"; + try { + var n = JSON.parse(o.readFileSync(t, "utf8")); + n && "string" == typeof n.version && (e.sdkVersion = n.version) + } catch (e) { + a.info("unable to read app version: ", e) + } + } + this.tags[this.keys.internalSdkVersion] = "node:" + e.sdkVersion + }, e.DefaultRoleName = "Web", e.appVersion = {}, e.sdkVersion = null, e + }(); + e.exports = c + }, + 6590: (e, t, n) => { + "use strict"; + var r = n(7649), + o = n(2010), + i = function() { + function e() {} + return e.queryCorrelationId = function(t, n) { + var i = t.profileQueryEndpoint + "/api/profiles/" + t.instrumentationKey + "/appId"; + if (e.completedLookups.hasOwnProperty(i)) n(e.completedLookups[i]); + else if (e.pendingLookups[i]) e.pendingLookups[i].push(n); + else { + e.pendingLookups[i] = [n]; + var s = function() { + if (e.pendingLookups[i]) { + var n = { + method: "GET", + disableAppInsightsAutoCollection: !0 + }; + o.info(e.TAG, n); + var a = r.makeRequest(t, i, n, (function(n) { + if (200 === n.statusCode) { + var r = ""; + n.setEncoding("utf-8"), n.on("data", (function(e) { + r += e + })), n.on("end", (function() { + o.info(e.TAG, r); + var t = e.correlationIdPrefix + r; + e.completedLookups[i] = t, e.pendingLookups[i] && e.pendingLookups[i].forEach((function(e) { + return e(t) + })), delete e.pendingLookups[i] + })) + } else n.statusCode >= 400 && n.statusCode < 500 ? (e.completedLookups[i] = void 0, delete e.pendingLookups[i]) : setTimeout(s, t.correlationIdRetryIntervalMs) + })); + a && (a.on("error", (function(t) { + o.warn(e.TAG, t) + })), a.end()) + } + }; + setTimeout(s, 0) + } + }, e.cancelCorrelationIdQuery = function(t, n) { + var r = t.profileQueryEndpoint + "/api/profiles/" + t.instrumentationKey + "/appId", + o = e.pendingLookups[r]; + o && (e.pendingLookups[r] = o.filter((function(e) { + return e != n + })), 0 == e.pendingLookups[r].length && delete e.pendingLookups[r]) + }, e.generateRequestId = function(t) { + if (t) { + "." !== (t = "|" == t[0] ? t : "|" + t)[t.length - 1] && (t += "."); + var n = (e.currentRootId++).toString(16); + return e.appendSuffix(t, n, "_") + } + return e.generateRootId() + }, e.getRootId = function(e) { + var t = e.indexOf("."); + t < 0 && (t = e.length); + var n = "|" === e[0] ? 1 : 0; + return e.substring(n, t) + }, e.generateRootId = function() { + return "|" + r.w3cTraceId() + "." + }, e.appendSuffix = function(t, n, o) { + if (t.length + n.length < e.requestIdMaxLength) return t + n + o; + var i = e.requestIdMaxLength - 9; + if (t.length > i) + for (; i > 1; --i) { + var s = t[i - 1]; + if ("." === s || "_" === s) break + } + if (i <= 1) return e.generateRootId(); + for (n = r.randomu32().toString(16); n.length < 8;) n = "0" + n; + return t.substring(0, i) + n + "#" + }, e.TAG = "CorrelationIdManager", e.correlationIdPrefix = "cid-v1:", e.w3cEnabled = !1, e.pendingLookups = {}, e.completedLookups = {}, e.requestIdMaxLength = 1024, e.currentRootId = r.randomu32(), e + }(); + e.exports = i + }, + 4532: (e, t, n) => { + "use strict"; + var r = n(5512), + o = n(7649), + i = n(6751), + s = function() { + function e() {} + return e.createEnvelope = function(t, n, i, s, a) { + var c = null; + switch (n) { + case r.TelemetryType.Trace: + c = e.createTraceData(t); + break; + case r.TelemetryType.Dependency: + c = e.createDependencyData(t); + break; + case r.TelemetryType.Event: + c = e.createEventData(t); + break; + case r.TelemetryType.Exception: + c = e.createExceptionData(t); + break; + case r.TelemetryType.Request: + c = e.createRequestData(t); + break; + case r.TelemetryType.Metric: + c = e.createMetricData(t); + break; + case r.TelemetryType.Availability: + c = e.createAvailabilityData(t) + } + if (i && r.domainSupportsProperties(c.baseData)) { + if (c && c.baseData) + if (c.baseData.properties) + for (var u in i) c.baseData.properties[u] || (c.baseData.properties[u] = i[u]); + else c.baseData.properties = i; + c.baseData.properties = o.validateStringMap(c.baseData.properties) + } + var l = a && a.instrumentationKey || "", + d = new r.Envelope; + return d.data = c, d.iKey = l, d.name = "Microsoft.ApplicationInsights." + l.replace(/-/g, "") + "." + c.baseType.substr(0, c.baseType.length - 4), d.tags = this.getTags(s, t.tagOverrides), d.time = (new Date).toISOString(), d.ver = 1, d.sampleRate = a ? a.samplingPercentage : 100, n === r.TelemetryType.Metric && (d.sampleRate = 100), d + }, e.createTraceData = function(e) { + var t = new r.MessageData; + t.message = e.message, t.properties = e.properties, isNaN(e.severity) ? t.severityLevel = r.SeverityLevel.Information : t.severityLevel = e.severity; + var n = new r.Data; + return n.baseType = r.telemetryTypeToBaseType(r.TelemetryType.Trace), n.baseData = t, n + }, e.createDependencyData = function(e) { + var t = new r.RemoteDependencyData; + "string" == typeof e.name && (t.name = e.name.length > 1024 ? e.name.slice(0, 1021) + "..." : e.name), t.data = e.data, t.target = e.target, t.duration = o.msToTimeSpan(e.duration), t.success = e.success, t.type = e.dependencyTypeName, t.properties = e.properties, t.resultCode = e.resultCode ? e.resultCode + "" : "", e.id ? t.id = e.id : t.id = o.w3cTraceId(); + var n = new r.Data; + return n.baseType = r.telemetryTypeToBaseType(r.TelemetryType.Dependency), n.baseData = t, n + }, e.createEventData = function(e) { + var t = new r.EventData; + t.name = e.name, t.properties = e.properties, t.measurements = e.measurements; + var n = new r.Data; + return n.baseType = r.telemetryTypeToBaseType(r.TelemetryType.Event), n.baseData = t, n + }, e.createExceptionData = function(e) { + var t = new r.ExceptionData; + t.properties = e.properties, isNaN(e.severity) ? t.severityLevel = r.SeverityLevel.Error : t.severityLevel = e.severity, t.measurements = e.measurements, t.exceptions = []; + var n = e.exception.stack, + i = new r.ExceptionDetails; + i.message = e.exception.message, i.typeName = e.exception.name, i.parsedStack = this.parseStack(n), i.hasFullStack = o.isArray(i.parsedStack) && i.parsedStack.length > 0, t.exceptions.push(i); + var s = new r.Data; + return s.baseType = r.telemetryTypeToBaseType(r.TelemetryType.Exception), s.baseData = t, s + }, e.createRequestData = function(e) { + var t = new r.RequestData; + e.id ? t.id = e.id : t.id = o.w3cTraceId(), t.name = e.name, t.url = e.url, t.source = e.source, t.duration = o.msToTimeSpan(e.duration), t.responseCode = e.resultCode ? e.resultCode + "" : "", t.success = e.success, t.properties = e.properties; + var n = new r.Data; + return n.baseType = r.telemetryTypeToBaseType(r.TelemetryType.Request), n.baseData = t, n + }, e.createMetricData = function(e) { + var t = new r.MetricData; + t.metrics = []; + var n = new r.DataPoint; + n.count = isNaN(e.count) ? 1 : e.count, n.kind = r.DataPointType.Aggregation, n.max = isNaN(e.max) ? e.value : e.max, n.min = isNaN(e.min) ? e.value : e.min, n.name = e.name, n.stdDev = isNaN(e.stdDev) ? 0 : e.stdDev, n.value = e.value, t.metrics.push(n), t.properties = e.properties; + var o = new r.Data; + return o.baseType = r.telemetryTypeToBaseType(r.TelemetryType.Metric), o.baseData = t, o + }, e.createAvailabilityData = function(e) { + var t = new r.AvailabilityData; + e.id ? t.id = e.id : t.id = o.w3cTraceId(), t.name = e.name, t.duration = o.msToTimeSpan(e.duration), t.success = e.success, t.runLocation = e.runLocation, t.message = e.message, t.measurements = e.measurements, t.properties = e.properties; + var n = new r.Data; + return n.baseType = r.telemetryTypeToBaseType(r.TelemetryType.Availability), n.baseData = t, n + }, e.getTags = function(e, t) { + var n = i.CorrelationContextManager.getCurrentContext(), + r = {}; + if (e && e.tags) + for (var o in e.tags) r[o] = e.tags[o]; + if (t) + for (var o in t) r[o] = t[o]; + return n && (r[e.keys.operationId] = r[e.keys.operationId] || n.operation.id, r[e.keys.operationName] = r[e.keys.operationName] || n.operation.name, r[e.keys.operationParentId] = r[e.keys.operationParentId] || n.operation.parentId), r + }, e.parseStack = function(e) { + var t = void 0; + if ("string" == typeof e) { + var n = e.split("\n"); + t = []; + for (var r = 0, o = 0, i = 0; i <= n.length; i++) { + var s = n[i]; + if (a.regex.test(s)) { + var c = new a(n[i], r++); + o += c.sizeInBytes, t.push(c) + } + } + if (o > 32768) + for (var u = 0, l = t.length - 1, d = 0, p = u, h = l; u < l;) { + if ((d += t[u].sizeInBytes + t[l].sizeInBytes) > 32768) { + var m = h - p + 1; + t.splice(p, m); + break + } + p = u, h = l, u++, l-- + } + } + return t + }, e + }(), + a = function() { + function e(t, n) { + this.sizeInBytes = 0, this.level = n, this.method = "", this.assembly = o.trim(t); + var r = t.match(e.regex); + r && r.length >= 5 && (this.method = o.trim(r[2]) || this.method, this.fileName = o.trim(r[4]) || "", this.line = parseInt(r[5]) || 0), this.sizeInBytes += this.method.length, this.sizeInBytes += this.fileName.length, this.sizeInBytes += this.assembly.length, this.sizeInBytes += e.baseSize, this.sizeInBytes += this.level.toString().length, this.sizeInBytes += this.line.toString().length + } + return e.regex = /^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/, e.baseSize = 58, e + }(); + e.exports = s + }, + 2010: e => { + "use strict"; + var t = function() { + function e() {} + return e.info = function(t) { + for (var n = [], r = 1; r < arguments.length; r++) n[r - 1] = arguments[r]; + e.enableDebug && console.info(e.TAG + t, n) + }, e.warn = function(t) { + for (var n = [], r = 1; r < arguments.length; r++) n[r - 1] = arguments[r]; + e.disableWarnings || console.warn(e.TAG + t, n) + }, e.enableDebug = !1, e.disableWarnings = !1, e.disableErrors = !1, e.TAG = "ApplicationInsights:", e + }(); + e.exports = t + }, + 439: function(e, t, n) { + "use strict"; + var r, o = this && this.__extends || (r = Object.setPrototypeOf || { + __proto__: [] + } + instanceof Array && function(e, t) { + e.__proto__ = t + } || function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + }, + function(e, t) { + function n() { + this.constructor = e + } + r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) + }), + i = n(4641), + s = n(2646), + a = n(9816), + c = n(2010), + u = function(e) { + function t() { + return null !== e && e.apply(this, arguments) || this + } + return o(t, e), t.prototype.trackNodeHttpRequestSync = function(e) { + e && e.request && e.response && e.duration ? s.trackRequestSync(this, e) : c.warn("trackNodeHttpRequestSync requires NodeHttpRequestTelemetry object with request, response and duration specified.") + }, t.prototype.trackNodeHttpRequest = function(e) { + (e.duration || e.error) && c.warn("trackNodeHttpRequest will ignore supplied duration and error parameters. These values are collected from the request and response objects."), e && e.request && e.response ? s.trackRequest(this, e) : c.warn("trackNodeHttpRequest requires NodeHttpRequestTelemetry object with request and response specified.") + }, t.prototype.trackNodeHttpDependency = function(e) { + e && e.request ? a.trackRequest(this, e) : c.warn("trackNodeHttpDependency requires NodeHttpDependencyTelemetry object with request specified.") + }, t + }(i); + e.exports = u + }, + 6405: function(e, t, n) { + "use strict"; + var r = this && this.__assign || Object.assign || function(e) { + for (var t, n = 1, r = arguments.length; n < r; n++) + for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); + return e + }, + o = n(2037), + i = n(5512), + s = n(5315), + a = n(7649), + c = n(2010), + u = a.w3cTraceId(), + l = function() { + function e() {} + return e.createQuickPulseEnvelope = function(e, t, n, r) { + var i = o && "function" == typeof o.hostname && o.hostname() || "Unknown", + s = r.tags && r.keys && r.keys.cloudRoleInstance && r.tags[r.keys.cloudRoleInstance] || i; + return { + Documents: t.length > 0 ? t : null, + InstrumentationKey: n.instrumentationKey || "", + Metrics: e.length > 0 ? e : null, + InvariantVersion: 1, + Timestamp: "/Date(" + Date.now() + ")/", + Version: r.tags[r.keys.internalSdkVersion], + StreamId: u, + MachineName: i, + Instance: s + } + }, e.createQuickPulseMetric = function(e) { + return { + Name: e.name, + Value: e.value, + Weight: e.count || 1 + } + }, e.telemetryEnvelopeToQuickPulseDocument = function(t) { + switch (t.data.baseType) { + case i.TelemetryTypeString.Event: + return e.createQuickPulseEventDocument(t); + case i.TelemetryTypeString.Exception: + return e.createQuickPulseExceptionDocument(t); + case i.TelemetryTypeString.Trace: + return e.createQuickPulseTraceDocument(t); + case i.TelemetryTypeString.Dependency: + return e.createQuickPulseDependencyDocument(t); + case i.TelemetryTypeString.Request: + return e.createQuickPulseRequestDocument(t) + } + return null + }, e.createQuickPulseEventDocument = function(t) { + var n = e.createQuickPulseDocument(t), + o = t.data.baseData.name; + return r({}, n, { + Name: o + }) + }, e.createQuickPulseTraceDocument = function(t) { + var n = e.createQuickPulseDocument(t), + o = t.data.baseData.severityLevel || 0; + return r({}, n, { + Message: t.data.baseData.message, + SeverityLevel: i.SeverityLevel[o] + }) + }, e.createQuickPulseExceptionDocument = function(t) { + var n = e.createQuickPulseDocument(t), + o = t.data.baseData.exceptions, + i = "", + s = "", + a = ""; + return o && o.length > 0 && (o[0].parsedStack && o[0].parsedStack.length > 0 ? o[0].parsedStack.forEach((function(e) { + i += e.assembly + "\n" + })) : o[0].stack && o[0].stack.length > 0 && (i = o[0].stack), s = o[0].message, a = o[0].typeName), r({}, n, { + Exception: i, + ExceptionMessage: s, + ExceptionType: a + }) + }, e.createQuickPulseRequestDocument = function(t) { + var n = e.createQuickPulseDocument(t), + o = t.data.baseData; + return r({}, n, { + Name: o.name, + Success: o.success, + Duration: o.duration, + ResponseCode: o.responseCode, + OperationName: o.name + }) + }, e.createQuickPulseDependencyDocument = function(t) { + var n = e.createQuickPulseDocument(t), + o = t.data.baseData; + return r({}, n, { + Name: o.name, + Target: o.target, + Success: o.success, + Duration: o.duration, + ResultCode: o.resultCode, + CommandName: o.data, + OperationName: n.OperationId, + DependencyTypeName: o.type + }) + }, e.createQuickPulseDocument = function(t) { + var n, r; + return t.data.baseType ? (r = s.TelemetryTypeStringToQuickPulseType[t.data.baseType], n = s.TelemetryTypeStringToQuickPulseDocumentType[t.data.baseType]) : c.warn("Document type invalid; not sending live metric document", t.data.baseType), { + DocumentType: n, + __type: r, + OperationId: t.tags[e.keys.operationId], + Version: "1.0", + Properties: e.aggregateProperties(t) + } + }, e.aggregateProperties = function(e) { + var t = [], + n = e.data.baseData.measurements || {}; + for (var r in n) + if (n.hasOwnProperty(r)) { + var o = { + key: r, + value: n[r] + }; + t.push(o) + } var i = e.data.baseData.properties || {}; + for (var r in i) i.hasOwnProperty(r) && (o = { + key: r, + value: i[r] + }, t.push(o)); + return t + }, e.keys = new i.ContextTagKeys, e + }(); + e.exports = l + }, + 3629: (e, t, n) => { + "use strict"; + var r = n(5687), + o = n(9816), + i = n(2010), + s = function() { + function e(e) { + this._config = e, this._consecutiveErrors = 0 + } + return e.prototype.ping = function(e, t) { + this._submitData(e, t, "ping") + }, e.prototype.post = function(e, t) { + this._submitData([e], t, "post") + }, e.prototype._submitData = function(t, n, s) { + var a, c, u = this, + l = JSON.stringify(t), + d = ((a = {})[o.disableCollectionRequestOption] = !0, a.host = this._config.quickPulseHost, a.method = "POST", a.path = "/QuickPulseService.svc/" + s + "?ikey=" + this._config.instrumentationKey, a.headers = ((c = { + Expect: "100-continue" + })["x-ms-qps-transmission-time"] = 1e4 * Date.now(), c["Content-Type"] = "application/json", c["Content-Length"] = Buffer.byteLength(l), c), a), + p = r.request(d, (function(e) { + var t = "true" === e.headers["x-ms-qps-subscribed"]; + u._consecutiveErrors = 0, n(t, e) + })); + p.on("error", (function(t) { + u._consecutiveErrors++; + var r = "Transient error connecting to the Live Metrics endpoint. This packet will not appear in your Live Metrics Stream. Error:"; + u._consecutiveErrors % e.MAX_QPS_FAILURES_BEFORE_WARN == 0 ? (r = "Live Metrics endpoint could not be reached " + u._consecutiveErrors + " consecutive times. Most recent error:", i.warn(e.TAG, r, t)) : i.info(e.TAG, r, t), n() + })), p.write(l), p.end() + }, e.TAG = "QuickPulseSender", e.MAX_QPS_FAILURES_BEFORE_WARN = 25, e + }(); + e.exports = s + }, + 639: (e, t, n) => { + "use strict"; + var r = n(2010), + o = n(2049), + i = n(6405), + s = n(3629), + a = n(5315), + c = n(2028), + u = function() { + function e(e, t) { + this._isCollectingData = !1, this._lastSuccessTime = Date.now(), this._lastSendSucceeded = !0, this._metrics = {}, this._documents = [], this._collectors = [], this.config = new o(e), this.context = t || new c, this._sender = new s(this.config), this._isEnabled = !1 + } + return e.prototype.addCollector = function(e) { + this._collectors.push(e) + }, e.prototype.trackMetric = function(e) { + this._addMetric(e) + }, e.prototype.addDocument = function(e) { + var t = i.telemetryEnvelopeToQuickPulseDocument(e); + t && this._documents.push(t) + }, e.prototype.enable = function(e) { + e && !this._isEnabled ? (this._isEnabled = !0, this._goQuickPulse()) : !e && this._isEnabled && (this._isEnabled = !1, clearTimeout(this._handle), this._handle = void 0) + }, e.prototype.enableCollectors = function(e) { + this._collectors.forEach((function(t) { + t.enable(e) + })) + }, e.prototype._addMetric = function(e) { + var t = e.value, + n = e.count || 1, + r = a.PerformanceToQuickPulseCounter[e.name]; + r && (this._metrics[r] ? (this._metrics[r].Value = (this._metrics[r].Value * this._metrics[r].Weight + t * n) / (this._metrics[r].Weight + n), this._metrics[r].Weight += n) : (this._metrics[r] = i.createQuickPulseMetric(e), this._metrics[r].Name = r, this._metrics[r].Weight = 1)) + }, e.prototype._resetQuickPulseBuffer = function() { + delete this._metrics, this._metrics = {}, this._documents.length = 0 + }, e.prototype._goQuickPulse = function() { + var t = this, + n = Object.keys(this._metrics).map((function(e) { + return t._metrics[e] + })), + r = i.createQuickPulseEnvelope(n, this._documents.slice(), this.config, this.context); + this._resetQuickPulseBuffer(), this._isCollectingData ? this._post(r) : this._ping(r); + var o = this._isCollectingData ? e.POST_INTERVAL : e.PING_INTERVAL; + this._isCollectingData && Date.now() - this._lastSuccessTime >= e.MAX_POST_WAIT_TIME && !this._lastSendSucceeded ? (this._isCollectingData = !1, o = e.FALLBACK_INTERVAL) : !this._isCollectingData && Date.now() - this._lastSuccessTime >= e.MAX_PING_WAIT_TIME && !this._lastSendSucceeded && (o = e.FALLBACK_INTERVAL), this._lastSendSucceeded = null, this._handle = setTimeout(this._goQuickPulse.bind(this), o), this._handle.unref() + }, e.prototype._ping = function(e) { + this._sender.ping(e, this._quickPulseDone.bind(this)) + }, e.prototype._post = function(e) { + this._sender.post(e, this._quickPulseDone.bind(this)) + }, e.prototype._quickPulseDone = function(e, t) { + null != e ? (this._isCollectingData !== e && (r.info("Live Metrics sending data", e), this.enableCollectors(e)), this._isCollectingData = e, t && t.statusCode < 300 && t.statusCode >= 200 ? (this._lastSuccessTime = Date.now(), this._lastSendSucceeded = !0) : this._lastSendSucceeded = !1) : this._lastSendSucceeded = !1 + }, e.MAX_POST_WAIT_TIME = 2e4, e.MAX_PING_WAIT_TIME = 6e4, e.FALLBACK_INTERVAL = 6e4, e.PING_INTERVAL = 5e3, e.POST_INTERVAL = 1e3, e + }(); + e.exports = u + }, + 6357: e => { + "use strict"; + e.exports = { + requestContextHeader: "request-context", + requestContextSourceKey: "appId", + requestContextTargetKey: "appId", + requestIdHeader: "request-id", + parentIdHeader: "x-ms-request-id", + rootIdHeader: "x-ms-request-root-id", + correlationContextHeader: "correlation-context", + traceparentHeader: "traceparent", + traceStateHeader: "tracestate" + } + }, + 589: (e, t, n) => { + "use strict"; + var r = n(7147), + o = n(2037), + i = n(1017), + s = n(9796), + a = n(2081), + c = n(2010), + u = n(9816), + l = n(7649), + d = function() { + function e(t, n, o) { + if (this._config = t, this._onSuccess = n, this._onError = o, this._enableDiskRetryMode = !1, this._resendInterval = e.WAIT_BETWEEN_RESEND, this._maxBytesOnDisk = e.MAX_BYTES_ON_DISK, this._numConsecutiveFailures = 0, !e.OS_PROVIDES_FILE_PROTECTION) + if (e.USE_ICACLS) { + try { + e.OS_PROVIDES_FILE_PROTECTION = r.existsSync(e.ICACLS_PATH) + } catch (e) {} + e.OS_PROVIDES_FILE_PROTECTION || c.warn(e.TAG, "Could not find ICACLS in expected location! This is necessary to use disk retry mode on Windows.") + } else e.OS_PROVIDES_FILE_PROTECTION = !0 + } + return e.prototype.setDiskRetryMode = function(t, n, r) { + this._enableDiskRetryMode = e.OS_PROVIDES_FILE_PROTECTION && t, "number" == typeof n && n >= 0 && (this._resendInterval = Math.floor(n)), "number" == typeof r && r >= 0 && (this._maxBytesOnDisk = Math.floor(r)), t && !e.OS_PROVIDES_FILE_PROTECTION && (this._enableDiskRetryMode = !1, c.warn(e.TAG, "Ignoring request to enable disk retry mode. Sufficient file protection capabilities were not detected.")) + }, e.prototype.send = function(t, n) { + var r = this, + o = this._config.endpointUrl, + i = { + method: "POST", + withCredentials: !1, + headers: { + "Content-Type": "application/x-json-stream" + } + }; + s.gzip(t, (function(s, a) { + var d = a; + s ? (c.warn(s), d = t, i.headers["Content-Length"] = t.length.toString()) : (i.headers["Content-Encoding"] = "gzip", i.headers["Content-Length"] = a.length), c.info(e.TAG, i), i[u.disableCollectionRequestOption] = !0; + var p = l.makeRequest(r._config, o, i, (function(o) { + o.setEncoding("utf-8"); + var i = ""; + o.on("data", (function(e) { + i += e + })), o.on("end", (function() { + r._numConsecutiveFailures = 0, c.info(e.TAG, i), "function" == typeof r._onSuccess && r._onSuccess(i), "function" == typeof n && n(i), r._enableDiskRetryMode && (200 === o.statusCode ? setTimeout((function() { + return r._sendFirstFileOnDisk() + }), r._resendInterval).unref() : 408 !== o.statusCode && 429 !== o.statusCode && 439 !== o.statusCode && 500 !== o.statusCode && 503 !== o.statusCode || r._storeToDisk(t)) + })) + })); + p.on("error", (function(o) { + if (r._numConsecutiveFailures++, !r._enableDiskRetryMode || r._numConsecutiveFailures > 0 && r._numConsecutiveFailures % e.MAX_CONNECTION_FAILURES_BEFORE_WARN == 0) { + var i = "Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:"; + r._enableDiskRetryMode && (i = "Ingestion endpoint could not be reached " + r._numConsecutiveFailures + " consecutive times. There may be resulting telemetry loss. Most recent error:"), c.warn(e.TAG, i, o) + } else i = "Transient failure to reach ingestion endpoint. This batch of telemetry items will be retried. Error:", c.info(e.TAG, i, o); + if (r._onErrorHelper(o), "function" == typeof n) { + var s = "error sending telemetry"; + o && "function" == typeof o.toString && (s = o.toString()), n(s) + } + r._enableDiskRetryMode && r._storeToDisk(t) + })), p.write(d), p.end() + })) + }, e.prototype.saveOnCrash = function(e) { + this._enableDiskRetryMode && this._storeToDiskSync(e) + }, e.prototype._runICACLS = function(t, n) { + var r = a.spawn(e.ICACLS_PATH, t, { + windowsHide: !0 + }); + r.on("error", (function(e) { + return n(e) + })), r.on("close", (function(e, t) { + return n(0 === e ? null : new Error("Setting ACL restrictions did not succeed (ICACLS returned code " + e + ")")) + })) + }, e.prototype._runICACLSSync = function(t) { + if (!a.spawnSync) throw new Error("Could not synchronously call ICACLS under current version of Node.js"); + var n = a.spawnSync(e.ICACLS_PATH, t, { + windowsHide: !0 + }); + if (n.error) throw n.error; + if (0 !== n.status) throw new Error("Setting ACL restrictions did not succeed (ICACLS returned code " + n.status + ")") + }, e.prototype._getACLIdentity = function(t) { + if (e.ACL_IDENTITY) return t(null, e.ACL_IDENTITY); + var n = a.spawn(e.POWERSHELL_PATH, ["-Command", "[System.Security.Principal.WindowsIdentity]::GetCurrent().Name"], { + windowsHide: !0, + stdio: ["ignore", "pipe", "pipe"] + }), + r = ""; + n.stdout.on("data", (function(e) { + return r += e + })), n.on("error", (function(e) { + return t(e, null) + })), n.on("close", (function(n, o) { + return e.ACL_IDENTITY = r && r.trim(), t(0 === n ? null : new Error("Getting ACL identity did not succeed (PS returned code " + n + ")"), e.ACL_IDENTITY) + })) + }, e.prototype._getACLIdentitySync = function() { + if (e.ACL_IDENTITY) return e.ACL_IDENTITY; + if (a.spawnSync) { + var t = a.spawnSync(e.POWERSHELL_PATH, ["-Command", "[System.Security.Principal.WindowsIdentity]::GetCurrent().Name"], { + windowsHide: !0, + stdio: ["ignore", "pipe", "pipe"] + }); + if (t.error) throw t.error; + if (0 !== t.status) throw new Error("Getting ACL identity did not succeed (PS returned code " + t.status + ")"); + return e.ACL_IDENTITY = t.stdout && t.stdout.toString().trim(), e.ACL_IDENTITY + } + throw new Error("Could not synchronously get ACL identity under current version of Node.js") + }, e.prototype._getACLArguments = function(e, t) { + return [e, "/grant", "*S-1-5-32-544:(OI)(CI)F", "/grant", t + ":(OI)(CI)F", "/inheritance:r"] + }, e.prototype._applyACLRules = function(t, n) { + var r = this; + return e.USE_ICACLS ? void 0 !== e.ACLED_DIRECTORIES[t] ? n(e.ACLED_DIRECTORIES[t] ? null : new Error("Setting ACL restrictions did not succeed (cached result)")) : (e.ACLED_DIRECTORIES[t] = !1, void this._getACLIdentity((function(o, i) { + if (o) return e.ACLED_DIRECTORIES[t] = !1, n(o); + r._runICACLS(r._getACLArguments(t, i), (function(r) { + return e.ACLED_DIRECTORIES[t] = !r, n(r) + })) + }))) : n(null) + }, e.prototype._applyACLRulesSync = function(t) { + if (e.USE_ICACLS) { + if (void 0 === e.ACLED_DIRECTORIES[t]) return this._runICACLSSync(this._getACLArguments(t, this._getACLIdentitySync())), void(e.ACLED_DIRECTORIES[t] = !0); + if (!e.ACLED_DIRECTORIES[t]) throw new Error("Setting ACL restrictions did not succeed (cached result)") + } + }, e.prototype._confirmDirExists = function(e, t) { + var n = this; + r.lstat(e, (function(o, i) { + o && "ENOENT" === o.code ? r.mkdir(e, (function(r) { + r && "EEXIST" !== r.code ? t(r) : n._applyACLRules(e, t) + })) : !o && i.isDirectory() ? n._applyACLRules(e, t) : t(o || new Error("Path existed but was not a directory")) + })) + }, e.prototype._getShallowDirectorySize = function(e, t) { + r.readdir(e, (function(n, o) { + if (n) return t(n, -1); + var s = null, + a = 0, + c = 0; + if (0 !== o.length) + for (var u = 0; u < o.length; u++) r.stat(i.join(e, o[u]), (function(e, n) { + c++, e ? s = e : n.isFile() && (a += n.size), c === o.length && t(s, s ? -1 : a) + })); + else t(null, 0) + })) + }, e.prototype._getShallowDirectorySizeSync = function(e) { + for (var t = r.readdirSync(e), n = 0, o = 0; o < t.length; o++) n += r.statSync(i.join(e, t[o])).size; + return n + }, e.prototype._storeToDisk = function(t) { + var n = this, + s = i.join(o.tmpdir(), e.TEMPDIR_PREFIX + this._config.instrumentationKey); + c.info(e.TAG, "Checking existance of data storage directory: " + s), this._confirmDirExists(s, (function(o) { + if (o) return c.warn(e.TAG, "Error while checking/creating directory: " + (o && o.message)), void n._onErrorHelper(o); + n._getShallowDirectorySize(s, (function(o, a) { + if (o || a < 0) return c.warn(e.TAG, "Error while checking directory size: " + (o && o.message)), void n._onErrorHelper(o); + if (a > n._maxBytesOnDisk) c.warn(e.TAG, "Not saving data due to max size limit being met. Directory size in bytes is: " + a); + else { + var u = (new Date).getTime() + ".ai.json", + l = i.join(s, u); + c.info(e.TAG, "saving data to disk at: " + l), r.writeFile(l, t, { + mode: 384 + }, (function(e) { + return n._onErrorHelper(e) + })) + } + })) + })) + }, e.prototype._storeToDiskSync = function(t) { + var n = i.join(o.tmpdir(), e.TEMPDIR_PREFIX + this._config.instrumentationKey); + try { + c.info(e.TAG, "Checking existance of data storage directory: " + n), r.existsSync(n) || r.mkdirSync(n), this._applyACLRulesSync(n); + var s = this._getShallowDirectorySizeSync(n); + if (s > this._maxBytesOnDisk) return void c.info(e.TAG, "Not saving data due to max size limit being met. Directory size in bytes is: " + s); + var a = (new Date).getTime() + ".ai.json", + u = i.join(n, a); + c.info(e.TAG, "saving data before crash to disk at: " + u), r.writeFileSync(u, t, { + mode: 384 + }) + } catch (t) { + c.warn(e.TAG, "Error while saving data to disk: " + (t && t.message)), this._onErrorHelper(t) + } + }, e.prototype._sendFirstFileOnDisk = function() { + var t = this, + n = i.join(o.tmpdir(), e.TEMPDIR_PREFIX + this._config.instrumentationKey); + r.exists(n, (function(e) { + e && r.readdir(n, (function(e, o) { + if (e) t._onErrorHelper(e); + else if ((o = o.filter((function(e) { + return i.basename(e).indexOf(".ai.json") > -1 + }))).length > 0) { + var s = o[0], + a = i.join(n, s); + r.readFile(a, (function(e, n) { + e ? t._onErrorHelper(e) : r.unlink(a, (function(e) { + e ? t._onErrorHelper(e) : t.send(n) + })) + })) + } + })) + })) + }, e.prototype._onErrorHelper = function(e) { + "function" == typeof this._onError && this._onError(e) + }, e.TAG = "Sender", e.ICACLS_PATH = process.env.systemdrive + "/windows/system32/icacls.exe", e.POWERSHELL_PATH = process.env.systemdrive + "/windows/system32/windowspowershell/v1.0/powershell.exe", e.ACLED_DIRECTORIES = {}, e.ACL_IDENTITY = null, e.WAIT_BETWEEN_RESEND = 6e4, e.MAX_BYTES_ON_DISK = 5e7, e.MAX_CONNECTION_FAILURES_BEFORE_WARN = 5, e.TEMPDIR_PREFIX = "appInsights-node", e.OS_PROVIDES_FILE_PROTECTION = !1, e.USE_ICACLS = "Windows_NT" === o.type(), e + }(); + e.exports = d + }, + 4641: (e, t, n) => { + "use strict"; + var r = n(7310), + o = n(2049), + i = n(2028), + s = n(5512), + a = n(4240), + c = n(1711), + u = n(6751), + l = n(589), + d = n(7649), + p = n(2010), + h = n(4532), + m = function() { + function e(e) { + this._telemetryProcessors = []; + var t = new o(e); + this.config = t, this.context = new i, this.commonProperties = {}; + var n = new l(this.config); + this.channel = new a((function() { + return t.disableAppInsights + }), (function() { + return t.maxBatchSize + }), (function() { + return t.maxBatchIntervalMs + }), n) + } + return e.prototype.trackAvailability = function(e) { + this.track(e, s.TelemetryType.Availability) + }, e.prototype.trackTrace = function(e) { + this.track(e, s.TelemetryType.Trace) + }, e.prototype.trackMetric = function(e) { + this.track(e, s.TelemetryType.Metric) + }, e.prototype.trackException = function(e) { + e && e.exception && !d.isError(e.exception) && (e.exception = new Error(e.exception.toString())), this.track(e, s.TelemetryType.Exception) + }, e.prototype.trackEvent = function(e) { + this.track(e, s.TelemetryType.Event) + }, e.prototype.trackRequest = function(e) { + this.track(e, s.TelemetryType.Request) + }, e.prototype.trackDependency = function(e) { + e && !e.target && e.data && (e.target = r.parse(e.data).host), this.track(e, s.TelemetryType.Dependency) + }, e.prototype.flush = function(e) { + this.channel.triggerSend(!!e && !!e.isAppCrashing, e ? e.callback : void 0) + }, e.prototype.track = function(e, t) { + if (e && s.telemetryTypeToBaseType(t)) { + var n = h.createEnvelope(e, t, this.commonProperties, this.context, this.config); + e.time && (n.time = e.time.toISOString()); + var r = this.runTelemetryProcessors(n, e.contextObjects); + r = r && c.samplingTelemetryProcessor(n, { + correlationContext: u.CorrelationContextManager.getCurrentContext() + }), c.performanceMetricsTelemetryProcessor(n, this.quickPulseClient), r && this.channel.send(n) + } else p.warn("track() requires telemetry object and telemetryType to be specified.") + }, e.prototype.addTelemetryProcessor = function(e) { + this._telemetryProcessors.push(e) + }, e.prototype.clearTelemetryProcessors = function() { + this._telemetryProcessors = [] + }, e.prototype.runTelemetryProcessors = function(e, t) { + var n = !0, + r = this._telemetryProcessors.length; + if (0 === r) return n; + (t = t || {}).correlationContext = u.CorrelationContextManager.getCurrentContext(); + for (var o = 0; o < r; ++o) try { + var i = this._telemetryProcessors[o]; + if (i && !1 === i.apply(null, [e, t])) { + n = !1; + break + } + } catch (t) { + n = !0, p.warn("One of telemetry processors failed, telemetry item will be sent.", t, e) + } + return n + }, e + }(); + e.exports = m + }, + 3452: (e, t, n) => { + "use strict"; + var r = n(7649), + o = n(6590), + i = function() { + function e(t, n) { + if (this.traceFlag = e.DEFAULT_TRACE_FLAG, this.version = e.DEFAULT_VERSION, t && "string" == typeof t) + if (t.split(",").length > 1) this.traceId = r.w3cTraceId(), this.spanId = r.w3cTraceId().substr(0, 16); + else { + var i = t.trim().split("-"), + s = i.length; + s >= 4 ? (this.version = i[0], this.traceId = i[1], this.spanId = i[2], this.traceFlag = i[3]) : (this.traceId = r.w3cTraceId(), this.spanId = r.w3cTraceId().substr(0, 16)), this.version.match(/^[0-9a-f]{2}$/g) || (this.version = e.DEFAULT_VERSION, this.traceId = r.w3cTraceId()), "00" === this.version && 4 !== s && (this.traceId = r.w3cTraceId(), this.spanId = r.w3cTraceId().substr(0, 16)), "ff" === this.version && (this.version = e.DEFAULT_VERSION, this.traceId = r.w3cTraceId(), this.spanId = r.w3cTraceId().substr(0, 16)), this.version.match(/^0[0-9a-f]$/g) || (this.version = e.DEFAULT_VERSION), this.traceFlag.match(/^[0-9a-f]{2}$/g) || (this.traceFlag = e.DEFAULT_TRACE_FLAG, this.traceId = r.w3cTraceId()), e.isValidTraceId(this.traceId) || (this.traceId = r.w3cTraceId()), e.isValidSpanId(this.spanId) || (this.spanId = r.w3cTraceId().substr(0, 16), this.traceId = r.w3cTraceId()), this.parentId = this.getBackCompatRequestId() + } + else if (n) { + this.parentId = n.slice(); + var a = o.getRootId(n); + e.isValidTraceId(a) || (this.legacyRootId = a, a = r.w3cTraceId()), -1 !== n.indexOf("|") && (n = n.substring(1 + n.substring(0, n.length - 1).lastIndexOf("."), n.length - 1)), this.traceId = a, this.spanId = n + } else this.traceId = r.w3cTraceId(), this.spanId = r.w3cTraceId().substr(0, 16) + } + return e.isValidTraceId = function(e) { + return e.match(/^[0-9a-f]{32}$/) && "00000000000000000000000000000000" !== e + }, e.isValidSpanId = function(e) { + return e.match(/^[0-9a-f]{16}$/) && "0000000000000000" !== e + }, e.prototype.getBackCompatRequestId = function() { + return "|" + this.traceId + "." + this.spanId + "." + }, e.prototype.toString = function() { + return this.version + "-" + this.traceId + "-" + this.spanId + "-" + this.traceFlag + }, e.prototype.updateSpanId = function() { + this.spanId = r.w3cTraceId().substr(0, 16) + }, e.DEFAULT_TRACE_FLAG = "01", e.DEFAULT_VERSION = "00", e + }(); + e.exports = i + }, + 8410: e => { + "use strict"; + var t = function() { + function e(e) { + this.fieldmap = [], e && (this.fieldmap = this.parseHeader(e)) + } + return e.prototype.toString = function() { + var e = this.fieldmap; + return e && 0 != e.length ? e.join(", ") : null + }, e.validateKeyChars = function(e) { + var t = e.split("@"); + if (2 == t.length) { + var n = t[0].trim(), + r = t[1].trim(), + o = Boolean(n.match(/^[\ ]?[a-z0-9\*\-\_/]{1,241}$/)), + i = Boolean(r.match(/^[\ ]?[a-z0-9\*\-\_/]{1,14}$/)); + return o && i + } + return 1 == t.length && Boolean(e.match(/^[\ ]?[a-z0-9\*\-\_/]{1,256}$/)) + }, e.prototype.parseHeader = function(t) { + var n = [], + r = {}, + o = t.split(","); + if (o.length > 32) return null; + for (var i = 0, s = o; i < s.length; i++) { + var a = s[i].trim(); + if (0 !== a.length) { + var c = a.split("="); + if (2 !== c.length) return null; + if (!e.validateKeyChars(c[0])) return null; + if (r[c[0]]) return null; + r[c[0]] = !0, n.push(a) + } + } + return n + }, e.strict = !0, e + }(); + e.exports = t + }, + 7649: function(e, t, n) { + "use strict"; + var r = this && this.__assign || Object.assign || function(e) { + for (var t, n = 1, r = arguments.length; n < r; n++) + for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); + return e + }, + o = n(3685), + i = n(5687), + s = n(7310), + a = n(2057), + c = n(2010), + u = n(6357), + l = function() { + function e() {} + return e.getCookie = function(t, n) { + var r = ""; + if (t && t.length && "string" == typeof n) + for (var o = t + "=", i = n.split(";"), s = 0; s < i.length; s++) + if (n = i[s], (n = e.trim(n)) && 0 === n.indexOf(o)) { + r = n.substring(o.length, i[s].length); + break + } return r + }, e.trim = function(e) { + return "string" == typeof e ? e.replace(/^\s+|\s+$/g, "") : "" + }, e.int32ArrayToBase64 = function(e) { + var t = function(e, t) { + return String.fromCharCode(e >> t & 255) + }, + n = e.map((function(e) { + return t(e, 24) + t(e, 16) + t(e, 8) + t(e, 0) + })).join(""), + r = (Buffer.from ? Buffer.from(n, "binary") : new Buffer(n, "binary")).toString("base64"); + return r.substr(0, r.indexOf("=")) + }, e.random32 = function() { + return 4294967296 * Math.random() | 0 + }, e.randomu32 = function() { + return e.random32() + 2147483648 + }, e.w3cTraceId = function() { + for (var t, n = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"], r = "", o = 0; o < 4; o++) r += n[15 & (t = e.random32())] + n[t >> 4 & 15] + n[t >> 8 & 15] + n[t >> 12 & 15] + n[t >> 16 & 15] + n[t >> 20 & 15] + n[t >> 24 & 15] + n[t >> 28 & 15]; + var i = n[8 + 4 * Math.random() | 0]; + return r.substr(0, 8) + r.substr(9, 4) + "4" + r.substr(13, 3) + i + r.substr(16, 3) + r.substr(19, 12) + }, e.isValidW3CId = function(e) { + return 32 === e.length && "00000000000000000000000000000000" !== e + }, e.isArray = function(e) { + return "[object Array]" === Object.prototype.toString.call(e) + }, e.isError = function(e) { + return e instanceof Error + }, e.isPrimitive = function(e) { + var t = typeof e; + return "string" === t || "number" === t || "boolean" === t + }, e.isDate = function(e) { + return "[object Date]" === Object.prototype.toString.call(e) + }, e.msToTimeSpan = function(e) { + (isNaN(e) || e < 0) && (e = 0); + var t = (e / 1e3 % 60).toFixed(7).replace(/0{0,4}$/, ""), + n = "" + Math.floor(e / 6e4) % 60, + r = "" + Math.floor(e / 36e5) % 24, + o = Math.floor(e / 864e5); + return t = t.indexOf(".") < 2 ? "0" + t : t, n = n.length < 2 ? "0" + n : n, (o > 0 ? o + "." : "") + (r = r.length < 2 ? "0" + r : r) + ":" + n + ":" + t + }, e.extractError = function(e) { + var t = e; + return { + message: e.message, + code: t.code || t.id || "" + } + }, e.extractObject = function(t) { + return t instanceof Error ? e.extractError(t) : "function" == typeof t.toJSON ? t.toJSON() : t + }, e.validateStringMap = function(t) { + if ("object" == typeof t) { + var n = {}; + for (var r in t) { + var o = "", + i = t[r], + s = typeof i; + if (e.isPrimitive(i)) o = i.toString(); + else if (null === i || "undefined" === s) o = ""; + else { + if ("function" === s) { + c.info("key: " + r + " was function; will not serialize"); + continue + } + var a = e.isArray(i) ? i : e.extractObject(i); + try { + o = e.isPrimitive(a) ? a : JSON.stringify(a) + } catch (e) { + o = i.constructor.name.toString() + " (Error: " + e.message + ")", c.info("key: " + r + ", could not be serialized") + } + } + n[r] = o.substring(0, e.MAX_PROPERTY_LENGTH) + } + return n + } + c.info("Invalid properties dropped from payload") + }, e.canIncludeCorrelationHeader = function(e, t) { + var n = e && e.config && e.config.correlationHeaderExcludedDomains; + if (!n || 0 == n.length || !t) return !0; + for (var r = 0; r < n.length; r++) + if (new RegExp(n[r].replace(/\./g, ".").replace(/\*/g, ".*")).test(s.parse(t).hostname)) return !1; + return !0 + }, e.getCorrelationContextTarget = function(e, t) { + var n = e.headers && e.headers[u.requestContextHeader]; + if (n) + for (var r = n.split(","), o = 0; o < r.length; ++o) { + var i = r[o].split("="); + if (2 == i.length && i[0] == t) return i[1] + } + }, e.makeRequest = function(t, n, a, u) { + n && 0 === n.indexOf("//") && (n = "https:" + n); + var l = s.parse(n), + d = r({}, a, { + host: l.hostname, + port: l.port, + path: l.pathname + }), + p = void 0; + if ("https:" === l.protocol && (p = t.proxyHttpsUrl || void 0), "http:" === l.protocol && (p = t.proxyHttpUrl || void 0), p) { + 0 === p.indexOf("//") && (p = "http:" + p); + var h = s.parse(p); + "https:" === h.protocol ? (c.info("Proxies that use HTTPS are not supported"), p = void 0) : d = r({}, d, { + host: h.hostname, + port: h.port || "80", + path: n, + headers: r({}, d.headers, { + Host: l.hostname + }) + }) + } + var m = "https:" === l.protocol && !p; + return m && void 0 !== t.httpsAgent ? d.agent = t.httpsAgent : m || void 0 === t.httpAgent ? m && (d.agent = e.tlsRestrictedAgent) : d.agent = t.httpAgent, m ? i.request(d, u) : o.request(d, u) + }, e.safeIncludeCorrelationHeader = function(t, n, r) { + var o; + if ("string" == typeof r) o = r; + else if (r instanceof Array) o = r.join(","); + else if (r && "function" == typeof r.toString) try { + o = r.toString() + } catch (e) { + c.warn("Outgoing request-context header could not be read. Correlation of requests may be lost.", e, r) + } + o ? e.addCorrelationIdHeaderFromString(t, n, o) : n.setHeader(u.requestContextHeader, u.requestContextSourceKey + "=" + t.config.correlationId) + }, e.addCorrelationIdHeaderFromString = function(e, t, n) { + var r = n.split(","), + o = u.requestContextSourceKey + "="; + r.some((function(e) { + return e.substring(0, o.length) === o + })) || t.setHeader(u.requestContextHeader, n + "," + u.requestContextSourceKey + "=" + e.config.correlationId) + }, e.MAX_PROPERTY_LENGTH = 8192, e.tlsRestrictedAgent = new i.Agent({ + secureOptions: a.SSL_OP_NO_SSLv2 | a.SSL_OP_NO_SSLv3 | a.SSL_OP_NO_TLSv1 | a.SSL_OP_NO_TLSv1_1 + }), e + }(); + e.exports = l + }, + 9180: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = n(3103), + o = n(5512); + t.performanceMetricsTelemetryProcessor = function(e, t) { + switch (t && t.addDocument(e), e.data.baseType) { + case o.TelemetryTypeString.Exception: + r.countException(); + break; + case o.TelemetryTypeString.Request: + var n = e.data.baseData; + r.countRequest(n.duration, n.success); + break; + case o.TelemetryTypeString.Dependency: + var i = e.data.baseData; + r.countDependency(i.duration, i.success) + } + return !0 + } + }, + 1244: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = n(5512); + + function o(e) { + var t = 2147483647, + n = 5381; + if (!e) return 0; + for (; e.length < 8;) e += e; + for (var r = 0; r < e.length; r++) n = ((n << 5) + n | 0) + e.charCodeAt(r) | 0; + return (n = n <= -2147483648 ? t : Math.abs(n)) / t * 100 + } + t.samplingTelemetryProcessor = function(e, t) { + var n = e.sampleRate; + return null == n || n >= 100 || !(!e.data || r.TelemetryType.Metric !== r.baseTypeToTelemetryType(e.data.baseType)) || (t.correlationContext && t.correlationContext.operation ? o(t.correlationContext.operation.id) < n : 100 * Math.random() < n) + }, t.getSamplingHashCode = o + }, + 1711: (e, t, n) => { + "use strict"; + + function r(e) { + for (var n in e) t.hasOwnProperty(n) || (t[n] = e[n]) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), r(n(1244)), r(n(9180)) + }, + 8144: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r, o = n(6751), + i = n(3245), + s = n(3014), + a = n(3103), + c = n(9816), + u = n(2646), + l = n(6590), + d = n(2010), + p = n(639), + h = n(582); + t.TelemetryClient = n(439), t.Contracts = n(5512), + function(e) { + e[e.AI = 0] = "AI", e[e.AI_AND_W3C = 1] = "AI_AND_W3C" + }(r = t.DistributedTracingModes || (t.DistributedTracingModes = {})); + var m, f, g, y, _, v, b, k, w, j = !0, + x = !1, + E = !0, + C = !0, + S = !0, + T = !0, + P = !0, + I = !0, + R = !1, + O = !0, + A = void 0, + N = void 0, + D = !1; + + function M() { + return t.defaultClient ? (D = !0, g.enable(j, x), y.enable(E), _.enable(C), v.enable(O, f), b.useAutoCorrelation(I, m), b.enable(S), k.enable(T), t.liveMetricsClient && R && t.liveMetricsClient.enable(R)) : d.warn("Start cannot be called before setup"), q + } + t.setup = function(e) { + return t.defaultClient ? d.info("The default client is already setup") : (t.defaultClient = new t.TelemetryClient(e), g = new i(t.defaultClient), y = new s(t.defaultClient), _ = new a(t.defaultClient), b = new u(t.defaultClient), k = new c(t.defaultClient), v || (v = new h.AutoCollectNativePerformance(t.defaultClient))), t.defaultClient && t.defaultClient.channel && t.defaultClient.channel.setUseDiskRetryCaching(P, A, N), q + }, t.start = M, t.getCorrelationContext = function() { + return I ? o.CorrelationContextManager.getCurrentContext() : null + }, t.wrapWithCorrelationContext = function(e) { + return o.CorrelationContextManager.wrapCallback(e) + }; + var q = function() { + function e() {} + return e.setDistributedTracingMode = function(t) { + return l.w3cEnabled = t === r.AI_AND_W3C, e + }, e.setAutoCollectConsole = function(t, n) { + return void 0 === n && (n = !1), j = t, x = n, D && g.enable(t, n), e + }, e.setAutoCollectExceptions = function(t) { + return E = t, D && y.enable(t), e + }, e.setAutoCollectPerformance = function(t, n) { + void 0 === n && (n = !0), C = t; + var r = h.AutoCollectNativePerformance.parseEnabled(n); + return O = r.isEnabled, f = r.disabledMetrics, D && (_.enable(t), v.enable(r.isEnabled, r.disabledMetrics)), e + }, e.setAutoCollectRequests = function(t) { + return S = t, D && b.enable(t), e + }, e.setAutoCollectDependencies = function(t) { + return T = t, D && k.enable(t), e + }, e.setAutoDependencyCorrelation = function(t, n) { + return I = t, m = n, D && b.useAutoCorrelation(t, n), e + }, e.setUseDiskRetryCaching = function(n, r, o) { + return P = n, A = r, N = o, t.defaultClient && t.defaultClient.channel && t.defaultClient.channel.setUseDiskRetryCaching(n, r, o), e + }, e.setInternalLogging = function(t, n) { + return void 0 === t && (t = !1), void 0 === n && (n = !0), d.enableDebug = t, d.disableWarnings = !n, e + }, e.setSendLiveMetrics = function(n) { + return void 0 === n && (n = !1), t.defaultClient ? (!t.liveMetricsClient && n ? (t.liveMetricsClient = new p(t.defaultClient.config.instrumentationKey), w = new a(t.liveMetricsClient, 1e3, !0), t.liveMetricsClient.addCollector(w), t.defaultClient.quickPulseClient = t.liveMetricsClient) : t.liveMetricsClient && t.liveMetricsClient.enable(n), R = n, e) : (d.warn("Live metrics client cannot be setup without the default client"), e) + }, e.start = M, e + }(); + t.Configuration = q, t.dispose = function() { + t.defaultClient = null, D = !1, g && g.dispose(), y && y.dispose(), _ && _.dispose(), v && v.dispose(), b && b.dispose(), k && k.dispose(), t.liveMetricsClient && (t.liveMetricsClient.enable(!1), R = !1, t.liveMetricsClient = void 0) + } + }, + 1974: (e, t, n) => { + "use strict"; + const r = process.binding("async_wrap"), + o = r.Providers.TIMERWRAP, + i = { + nextTick: n(3191), + promise: n(493), + timers: n(8280) + }, + s = new Set; + + function a() { + this.enabled = !1, this.counter = 0 + } + + function c() { + const e = this.initFns = [], + t = this.preFns = [], + n = this.postFns = [], + r = this.destroyFns = []; + this.init = function(t, n, r, i) { + if (n !== o) + for (const o of e) o(t, this, n, r, i); + else s.add(t) + }, this.pre = function(e) { + if (!s.has(e)) + for (const n of t) n(e, this) + }, this.post = function(e, t) { + if (!s.has(e)) + for (const r of n) r(e, this, t) + }, this.destroy = function(e) { + if (s.has(e)) s.delete(e); + else + for (const t of r) t(e) + } + } + + function u(e, t) { + const n = e.indexOf(t); - 1 !== n && e.splice(n, 1) + } + + function l() { + this._state = new a, this._hooks = new c, this.version = n(3186).i8, this.providers = r.Providers; + for (const e of Object.keys(i)) i[e].call(this); + process.env.hasOwnProperty("NODE_ASYNC_HOOK_WARNING") && console.warn("warning: you are using async-hook-jl which is unstable."), r.setupHooks({ + init: this._hooks.init, + pre: this._hooks.pre, + post: this._hooks.post, + destroy: this._hooks.destroy + }) + } + c.prototype.add = function(e) { + e.init && this.initFns.push(e.init), e.pre && this.preFns.push(e.pre), e.post && this.postFns.push(e.post), e.destroy && this.destroyFns.push(e.destroy) + }, c.prototype.remove = function(e) { + e.init && u(this.initFns, e.init), e.pre && u(this.preFns, e.pre), e.post && u(this.postFns, e.post), e.destroy && u(this.destroyFns, e.destroy) + }, e.exports = l, l.prototype.addHooks = function(e) { + this._hooks.add(e) + }, l.prototype.removeHooks = function(e) { + this._hooks.remove(e) + }, l.prototype.enable = function() { + this._state.enabled = !0, r.enable() + }, l.prototype.disable = function() { + this._state.enabled = !1, r.disable() + } + }, + 632: (e, t, n) => { + "use strict"; + const r = n(1974); + if (global._asyncHook) { + if (global._asyncHook.version !== n(3186).i8) throw new Error("Conflicting version of async-hook-jl found"); + e.exports = global._asyncHook + } else n(6818).filter.attach((function(e, t) { + return t.filter((function(e) { + const t = e.getFileName(); + return !(t && t.slice(0, __dirname.length) === __dirname) + })) + })), e.exports = global._asyncHook = new r + }, + 3191: e => { + "use strict"; + + function t() {} + e.exports = function() { + const e = this._hooks, + n = this._state, + r = process.nextTick; + process.nextTick = function() { + if (!n.enabled) return r.apply(process, arguments); + const o = new Array(arguments.length); + for (let e = 0; e < arguments.length; e++) o[e] = arguments[e]; + const i = o[0]; + if ("function" != typeof i) throw new TypeError("callback is not a function"); + const s = new t, + a = --n.counter; + return e.init.call(s, a, 0, null, null), o[0] = function() { + e.pre.call(s, a); + let t = !0; + try { + i.apply(this, arguments), t = !1 + } finally { + t && process.listenerCount("uncaughtException") > 0 && process.once("uncaughtException", (function() { + e.post.call(s, a, !0), e.destroy.call(null, a) + })) + } + e.post.call(s, a, !1), e.destroy.call(null, a) + }, r.apply(process, o) + } + } + }, + 493: e => { + "use strict"; + + function t() {} + e.exports = function() { + const e = this._hooks, + n = this._state, + r = global.Promise, + o = r.prototype.then; + + function i(t, n, r, o) { + return "function" != typeof t ? o ? function(t) { + return function(n) { + return e.destroy.call(null, t), n + } + }(r) : function(t) { + return function(n) { + throw e.destroy.call(null, t), n + } + }(r) : function() { + e.pre.call(n, r); + try { + return t.apply(this, arguments) + } finally { + e.post.call(n, r, !1), e.destroy.call(null, r) + } + } + } + r.prototype.then = function(r, s) { + if (!n.enabled) return o.call(this, r, s); + const a = new t, + c = --n.counter; + return e.init.call(a, c, 0, null, null), o.call(this, i(r, a, c, !0), i(s, a, c, !1)) + } + } + }, + 8280: (e, t, n) => { + "use strict"; + const r = n(9512); + + function o() {} + + function i() {} + + function s() {} + const a = new Map, + c = new Map, + u = new Map; + let l = null, + d = !1; + + function p(e, t, n, o, i, s, a) { + const c = r[n], + u = r[o]; + r[n] = function() { + if (!t.enabled) return c.apply(r, arguments); + const n = new Array(arguments.length); + for (let e = 0; e < arguments.length; e++) n[e] = arguments[e]; + const o = n[0]; + if ("function" != typeof o) throw new TypeError('"callback" argument must be a function'); + const u = new i, + p = --t.counter; + let h; + return e.init.call(u, p, 0, null, null), n[0] = function() { + l = h, e.pre.call(u, p); + let t = !0; + try { + o.apply(this, arguments), t = !1 + } finally { + t && process.listenerCount("uncaughtException") > 0 && process.once("uncaughtException", (function() { + e.post.call(u, p, !0), s.delete(h), e.destroy.call(null, p) + })) + } + e.post.call(u, p, !1), l = null, (a || d) && (d = !1, s.delete(h), e.destroy.call(null, p)) + }, h = c.apply(r, n), s.set(h, p), h + }, r[o] = function(t) { + if (l === t && null !== t) d = !0; + else if (s.has(t)) { + const n = s.get(t); + s.delete(t), e.destroy.call(null, n) + } + u.apply(r, arguments) + } + } + e.exports = function() { + p(this._hooks, this._state, "setTimeout", "clearTimeout", o, a, !0), p(this._hooks, this._state, "setInterval", "clearInterval", i, c, !1), p(this._hooks, this._state, "setImmediate", "clearImmediate", s, u, !0), global.setTimeout = r.setTimeout, global.setInterval = r.setInterval, global.setImmediate = r.setImmediate, global.clearTimeout = r.clearTimeout, global.clearInterval = r.clearInterval, global.clearImmediate = r.clearImmediate + } + }, + 7600: e => { + "use strict"; + e.exports = (e, t) => class extends e { + constructor(e) { + var n, r; + super((function(e, i) { + n = this, r = [function(n) { + return t(o, !1), e(n) + }, function(e) { + return t(o, !1), i(e) + }] + })); + var o = this; + try { + e.apply(n, r) + } catch (e) { + r[1](e) + } + return o + } + } + }, + 1747: (e, t, n) => { + var r, o, i = n(4403).wrap, + s = [], + a = 0, + c = !1, + u = []; + + function l(e, t) { + var n = e.length, + r = t.length, + o = []; + if (0 === n && 0 === r) return o; + for (var i = 0; i < n; i++) o[i] = e[i]; + if (0 === r) return o; + for (var s = 0; s < r; s++) { + var a = !0; + for (i = 0; i < n; i++) + if (e[i].uid === t[s].uid) { + a = !1; + break + } a && o.push(t[s]) + } + return o + } + if (process._fatalException) { + var d, p = !1; + r = function(e) { + var t = s.length; + if (p || 0 === t) return !1; + var n = !1; + p = !0; + for (var r = 0; r < t; ++r) { + var o = s[r]; + if (0 != (8 & o.flags)) { + var i = d && d[o.uid]; + n = o.error(i, e) || n + } + } + return p = !1, u.length > 0 && (s = u.pop()), d = void 0, n && !c + }, o = function(e, t, n) { + var r = []; + c = !0; + for (var o = 0; o < n; ++o) { + var i = t[o]; + if (r[i.uid] = i.data, 0 != (1 & i.flags)) { + var a = i.create(i.data); + void 0 !== a && (r[i.uid] = a) + } + } + return c = !1, + function() { + d = r, u.push(s), s = l(t, s), c = !0; + for (var o = 0; o < n; ++o)(2 & t[o].flags) > 0 && t[o].before(this, r[t[o].uid]); + c = !1; + var i = e.apply(this, arguments); + for (c = !0, o = 0; o < n; ++o)(4 & t[o].flags) > 0 && t[o].after(this, r[t[o].uid]); + return c = !1, s = u.pop(), d = void 0, i + } + }, i(process, "_fatalException", (function(e) { + return function(t) { + return r(t) || e(t) + } + })) + } else { + var h = !1; + r = function(e) { + if (h) throw e; + for (var t = !1, n = s.length, r = 0; r < n; ++r) { + var o = s[r]; + 0 != (8 & o.flags) && (t = o.error(null, e) || t) + } + if (!t && c) throw e + }, o = function(e, t, n) { + var o = []; + c = !0; + for (var i = 0; i < n; ++i) { + var a = t[i]; + if (o[a.uid] = a.data, 0 != (1 & a.flags)) { + var d = a.create(a.data); + void 0 !== d && (o[a.uid] = d) + } + } + return c = !1, + function() { + var i, a = !1, + d = !1; + u.push(s), s = l(t, s), c = !0; + for (var p = 0; p < n; ++p)(2 & t[p].flags) > 0 && t[p].before(this, o[t[p].uid]); + c = !1; + try { + i = e.apply(this, arguments) + } catch (e) { + for (a = !0, p = 0; p < n; ++p) + if (0 != (8 & s[p].flags)) try { + d = s[p].error(o[t[p].uid], e) || d + } catch (e) { + throw h = !0, e + } + if (!d) throw process.removeListener("uncaughtException", r), process._originalNextTick((function() { + process.addListener("uncaughtException", r) + })), e + } finally { + if (!a || d) { + for (c = !0, p = 0; p < n; ++p)(4 & t[p].flags) > 0 && t[p].after(this, o[t[p].uid]); + c = !1 + } + s = u.pop() + } + return i + } + }, process.addListener("uncaughtException", r) + } + + function m(e, t) { + "function" == typeof e.create && (this.create = e.create, this.flags |= 1), "function" == typeof e.before && (this.before = e.before, this.flags |= 2), "function" == typeof e.after && (this.after = e.after, this.flags |= 4), "function" == typeof e.error && (this.error = e.error, this.flags |= 8), this.uid = ++a, this.data = void 0 === t ? null : t + } + + function f(e, t) { + if ("object" != typeof e || !e) throw new TypeError("callbacks argument must be an object"); + return e instanceof m ? e : new m(e, t) + } + m.prototype.create = void 0, m.prototype.before = void 0, m.prototype.after = void 0, m.prototype.error = void 0, m.prototype.data = void 0, m.prototype.uid = 0, m.prototype.flags = 0, process.createAsyncListener = f, process.addAsyncListener = function(e, t) { + var n; + n = e instanceof m ? e : f(e, t); + for (var r = !1, o = 0; o < s.length; o++) + if (n === s[o]) { + r = !0; + break + } return r || s.push(n), n + }, process.removeAsyncListener = function(e) { + for (var t = 0; t < s.length; t++) + if (e === s[t]) { + s.splice(t, 1); + break + } + }, e.exports = function(e) { + var t = s.length; + if (0 === t) return e; + for (var n = s.slice(), r = 0; r < t; ++r) + if (n[r].flags > 0) return o(e, n, t); + return function(e, t, n) { + c = !0; + for (var r = 0; r < n; ++r) { + var o = t[r]; + o.create && o.create(o.data) + } + return c = !1, + function() { + u.push(s), s = l(t, s); + var n = e.apply(this, arguments); + return s = u.pop(), n + } + }(e, n, t) + } + }, + 1274: (e, t, n) => { + "use strict"; + if (process.addAsyncListener) throw new Error("Don't require polyfill unless needed"); + var r = n(4403), + o = n(3341), + i = r.wrap, + s = r.massWrap, + a = n(1747), + c = n(3837), + u = o.gte(process.version, "6.0.0"), + l = o.gte(process.version, "7.0.0"), + d = o.gte(process.version, "8.0.0"), + p = o.gte(process.version, "11.0.0"), + h = n(1808); + + function m(e) { + return function() { + this.on("connection", (function(e) { + e._handle && (e._handle.onread = a(e._handle.onread)) + })); + try { + return e.apply(this, arguments) + } finally { + this._handle && this._handle.onconnection && (this._handle.onconnection = a(this._handle.onconnection)) + } + } + } + + function f(e) { + if (e && e._handle) { + var t = e._handle; + t._originalOnread || (t._originalOnread = t.onread), t.onread = a(t._originalOnread) + } + } + l && !h._normalizeArgs ? h._normalizeArgs = function(e) { + if (0 === e.length) return [{}, null]; + var t, n, r = e[0], + o = {}; + "object" == typeof r && null !== r ? o = r : "string" == typeof(t = r) && !1 === (n = t, (n = Number(n)) >= 0 && n) ? o.path = r : (o.port = r, e.length > 1 && "string" == typeof e[1] && (o.host = e[1])); + var i = e[e.length - 1]; + return "function" != typeof i ? [o, null] : [o, i] + } : l || h._normalizeConnectArgs || (h._normalizeConnectArgs = function(e) { + var t, n = {}; + "object" == typeof e[0] && null !== e[0] ? n = e[0] : "string" == typeof e[0] && !1 === (t = e[0], (t = Number(t)) >= 0 && t) ? n.path = e[0] : (n.port = e[0], "string" == typeof e[1] && (n.host = e[1])); + var r = e[e.length - 1]; + return "function" == typeof r ? [n, r] : [n] + }), "_setUpListenHandle" in h.Server.prototype ? i(h.Server.prototype, "_setUpListenHandle", m) : i(h.Server.prototype, "_listen2", m), i(h.Socket.prototype, "connect", (function(e) { + return function() { + var t; + (t = d && Array.isArray(arguments[0]) && Object.getOwnPropertySymbols(arguments[0]).length > 0 ? arguments[0] : l ? h._normalizeArgs(arguments) : h._normalizeConnectArgs(arguments))[1] && (t[1] = a(t[1])); + var n = e.apply(this, t); + return f(this), n + } + })); + var g = n(3685); + i(g.Agent.prototype, "addRequest", (function(e) { + return function(t) { + var n = t.onSocket; + return t.onSocket = a((function(e) { + return f(e), n.apply(this, arguments) + })), e.apply(this, arguments) + } + })); + var y = n(2081); + + function _(e) { + Array.isArray(e.stdio) && e.stdio.forEach((function(e) { + e && e._handle && (e._handle.onread = a(e._handle.onread), i(e._handle, "close", O)) + })), e._handle && (e._handle.onexit = a(e._handle.onexit)) + } + y.ChildProcess ? i(y.ChildProcess.prototype, "spawn", (function(e) { + return function() { + var t = e.apply(this, arguments); + return _(this), t + } + })) : s(y, ["execFile", "fork", "spawn"], (function(e) { + return function() { + var t = e.apply(this, arguments); + return _(t), t + } + })), process._fatalException || (process._originalNextTick = process.nextTick); + var v = []; + process._nextDomainTick && v.push("_nextDomainTick"), process._tickDomainCallback && v.push("_tickDomainCallback"), s(process, v, R), i(process, "nextTick", O); + var b = ["setTimeout", "setInterval"]; + global.setImmediate && b.push("setImmediate"); + var k = n(9512), + w = global.setTimeout === k.setTimeout; + s(k, b, O), w && s(global, b, O); + var j = n(9523); + s(j, ["lookup", "resolve", "resolve4", "resolve6", "resolveCname", "resolveMx", "resolveNs", "resolveTxt", "resolveSrv", "reverse"], R), j.resolveNaptr && i(j, "resolveNaptr", R); + var x, E, C = n(7147); + s(C, ["watch", "rename", "truncate", "chown", "fchown", "chmod", "fchmod", "stat", "lstat", "fstat", "link", "symlink", "readlink", "realpath", "unlink", "rmdir", "mkdir", "readdir", "close", "open", "utimes", "futimes", "fsync", "write", "read", "readFile", "writeFile", "appendFile", "watchFile", "unwatchFile", "exists"], R), C.lchown && i(C, "lchown", R), C.lchmod && i(C, "lchmod", R), C.ftruncate && i(C, "ftruncate", R); + try { + x = n(9796) + } catch (e) {} + if (x && x.Deflate && x.Deflate.prototype) { + var S = Object.getPrototypeOf(x.Deflate.prototype); + S._transform ? i(S, "_transform", R) : S.write && S.flush && S.end && s(S, ["write", "flush", "end"], R) + } + try { + E = n(6113) + } catch (e) {} + if (E) { + var T = ["pbkdf2", "randomBytes"]; + p || T.push("pseudoRandomBytes"), s(E, T, R) + } + var P = !!global.Promise && "function Promise() { [native code] }" === Promise.toString() && "function toString() { [native code] }" === Promise.toString.toString(); + if (P) { + var I = process.addAsyncListener({ + create: function() { + P = !1 + } + }); + global.Promise.resolve(!0).then((function() { + P = !1 + })), process.removeAsyncListener(I) + } + + function R(e) { + var t = function() { + var t, n = arguments.length - 1; + if ("function" == typeof arguments[n]) { + t = Array(arguments.length); + for (var r = 0; r < arguments.length - 1; r++) t[r] = arguments[r]; + t[n] = a(arguments[n]) + } + return e.apply(this, t || arguments) + }; + switch (e.length) { + case 1: + return function(n) { + return 1 !== arguments.length ? t.apply(this, arguments) : ("function" == typeof n && (n = a(n)), e.call(this, n)) + }; + case 2: + return function(n, r) { + return 2 !== arguments.length ? t.apply(this, arguments) : ("function" == typeof r && (r = a(r)), e.call(this, n, r)) + }; + case 3: + return function(n, r, o) { + return 3 !== arguments.length ? t.apply(this, arguments) : ("function" == typeof o && (o = a(o)), e.call(this, n, r, o)) + }; + case 4: + return function(n, r, o, i) { + return 4 !== arguments.length ? t.apply(this, arguments) : ("function" == typeof i && (i = a(i)), e.call(this, n, r, o, i)) + }; + case 5: + return function(n, r, o, i, s) { + return 5 !== arguments.length ? t.apply(this, arguments) : ("function" == typeof s && (s = a(s)), e.call(this, n, r, o, i, s)) + }; + case 6: + return function(n, r, o, i, s, c) { + return 6 !== arguments.length ? t.apply(this, arguments) : ("function" == typeof c && (c = a(c)), e.call(this, n, r, o, i, s, c)) + }; + default: + return t + } + } + + function O(e) { + var t = function() { + var t; + if ("function" == typeof arguments[0]) { + (t = Array(arguments.length))[0] = a(arguments[0]); + for (var n = 1; n < arguments.length; n++) t[n] = arguments[n] + } + return e.apply(this, t || arguments) + }; + switch (e.length) { + case 1: + return function(n) { + return 1 !== arguments.length ? t.apply(this, arguments) : ("function" == typeof n && (n = a(n)), e.call(this, n)) + }; + case 2: + return function(n, r) { + return 2 !== arguments.length ? t.apply(this, arguments) : ("function" == typeof n && (n = a(n)), e.call(this, n, r)) + }; + case 3: + return function(n, r, o) { + return 3 !== arguments.length ? t.apply(this, arguments) : ("function" == typeof n && (n = a(n)), e.call(this, n, r, o)) + }; + case 4: + return function(n, r, o, i) { + return 4 !== arguments.length ? t.apply(this, arguments) : ("function" == typeof n && (n = a(n)), e.call(this, n, r, o, i)) + }; + case 5: + return function(n, r, o, i, s) { + return 5 !== arguments.length ? t.apply(this, arguments) : ("function" == typeof n && (n = a(n)), e.call(this, n, r, o, i, s)) + }; + case 6: + return function(n, r, o, i, s, c) { + return 6 !== arguments.length ? t.apply(this, arguments) : ("function" == typeof n && (n = a(n)), e.call(this, n, r, o, i, s, c)) + }; + default: + return t + } + } + P && function() { + var e = global.Promise; + + function t(n) { + if (!(this instanceof t)) return e(n); + if ("function" != typeof n) return new e(n); + var o, i, s = new e((function(e, t) { + o = this, i = [function(t) { + return r(s, !1), e(t) + }, function(e) { + return r(s, !1), t(e) + }] + })); + s.__proto__ = t.prototype; + try { + n.apply(o, i) + } catch (e) { + i[1](e) + } + return s + } + + function r(e, t) { + e.__asl_wrapper && !t || (e.__asl_wrapper = a(o)) + } + + function o(t, n, i, s) { + var a; + try { + return { + returnVal: a = n.call(t, i), + error: !1 + } + } catch (e) { + return { + errorVal: e, + error: !0 + } + } finally { + a instanceof e ? s.__asl_wrapper = function() { + return (a.__asl_wrapper || o).apply(this, arguments) + } : r(s, !0) + } + } + + function s(e) { + return function() { + var t = this, + n = e.apply(t, Array.prototype.map.call(arguments, r)); + return n.__asl_wrapper = function(e, r, i, s) { + return t.__asl_wrapper ? (t.__asl_wrapper(e, (function() {}), null, n), n.__asl_wrapper(e, r, i, s)) : o(e, r, i, s) + }, n; + + function r(e) { + return "function" != typeof e ? e : a((function(r) { + var i = (t.__asl_wrapper || o)(this, e, r, n); + if (i.error) throw i.errorVal; + return i.returnVal + })) + } + } + } + c.inherits(t, e), i(e.prototype, "then", s), e.prototype.chain && i(e.prototype, "chain", s), u ? global.Promise = n(7600)(e, r) : (["all", "race", "reject", "resolve", "accept", "defer"].forEach((function(n) { + "function" == typeof e[n] && (t[n] = e[n]) + })), global.Promise = t) + }() + }, + 3341: (e, t) => { + var n; + t = e.exports = G, n = "object" == typeof process && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? function() { + var e = Array.prototype.slice.call(arguments, 0); + e.unshift("SEMVER"), console.log.apply(console, e) + } : function() {}, t.SEMVER_SPEC_VERSION = "2.0.0"; + var r = Number.MAX_SAFE_INTEGER || 9007199254740991, + o = t.re = [], + i = t.src = [], + s = 0, + a = s++; + i[a] = "0|[1-9]\\d*"; + var c = s++; + i[c] = "[0-9]+"; + var u = s++; + i[u] = "\\d*[a-zA-Z-][a-zA-Z0-9-]*"; + var l = s++; + i[l] = "(" + i[a] + ")\\.(" + i[a] + ")\\.(" + i[a] + ")"; + var d = s++; + i[d] = "(" + i[c] + ")\\.(" + i[c] + ")\\.(" + i[c] + ")"; + var p = s++; + i[p] = "(?:" + i[a] + "|" + i[u] + ")"; + var h = s++; + i[h] = "(?:" + i[c] + "|" + i[u] + ")"; + var m = s++; + i[m] = "(?:-(" + i[p] + "(?:\\." + i[p] + ")*))"; + var f = s++; + i[f] = "(?:-?(" + i[h] + "(?:\\." + i[h] + ")*))"; + var g = s++; + i[g] = "[0-9A-Za-z-]+"; + var y = s++; + i[y] = "(?:\\+(" + i[g] + "(?:\\." + i[g] + ")*))"; + var _ = s++, + v = "v?" + i[l] + i[m] + "?" + i[y] + "?"; + i[_] = "^" + v + "$"; + var b = "[v=\\s]*" + i[d] + i[f] + "?" + i[y] + "?", + k = s++; + i[k] = "^" + b + "$"; + var w = s++; + i[w] = "((?:<|>)?=?)"; + var j = s++; + i[j] = i[c] + "|x|X|\\*"; + var x = s++; + i[x] = i[a] + "|x|X|\\*"; + var E = s++; + i[E] = "[v=\\s]*(" + i[x] + ")(?:\\.(" + i[x] + ")(?:\\.(" + i[x] + ")(?:" + i[m] + ")?" + i[y] + "?)?)?"; + var C = s++; + i[C] = "[v=\\s]*(" + i[j] + ")(?:\\.(" + i[j] + ")(?:\\.(" + i[j] + ")(?:" + i[f] + ")?" + i[y] + "?)?)?"; + var S = s++; + i[S] = "^" + i[w] + "\\s*" + i[E] + "$"; + var T = s++; + i[T] = "^" + i[w] + "\\s*" + i[C] + "$"; + var P = s++; + i[P] = "(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])"; + var I = s++; + i[I] = "(?:~>?)"; + var R = s++; + i[R] = "(\\s*)" + i[I] + "\\s+", o[R] = new RegExp(i[R], "g"); + var O = s++; + i[O] = "^" + i[I] + i[E] + "$"; + var A = s++; + i[A] = "^" + i[I] + i[C] + "$"; + var N = s++; + i[N] = "(?:\\^)"; + var D = s++; + i[D] = "(\\s*)" + i[N] + "\\s+", o[D] = new RegExp(i[D], "g"); + var M = s++; + i[M] = "^" + i[N] + i[E] + "$"; + var q = s++; + i[q] = "^" + i[N] + i[C] + "$"; + var L = s++; + i[L] = "^" + i[w] + "\\s*(" + b + ")$|^$"; + var $ = s++; + i[$] = "^" + i[w] + "\\s*(" + v + ")$|^$"; + var F = s++; + i[F] = "(\\s*)" + i[w] + "\\s*(" + b + "|" + i[E] + ")", o[F] = new RegExp(i[F], "g"); + var z = s++; + i[z] = "^\\s*(" + i[E] + ")\\s+-\\s+(" + i[E] + ")\\s*$"; + var B = s++; + i[B] = "^\\s*(" + i[C] + ")\\s+-\\s+(" + i[C] + ")\\s*$"; + var U = s++; + i[U] = "(<|>)?=?\\s*\\*"; + for (var H = 0; H < 35; H++) n(H, i[H]), o[H] || (o[H] = new RegExp(i[H])); + + function W(e, t) { + if (t && "object" == typeof t || (t = { + loose: !!t, + includePrerelease: !1 + }), e instanceof G) return e; + if ("string" != typeof e) return null; + if (e.length > 256) return null; + if (!(t.loose ? o[k] : o[_]).test(e)) return null; + try { + return new G(e, t) + } catch (e) { + return null + } + } + + function G(e, t) { + if (t && "object" == typeof t || (t = { + loose: !!t, + includePrerelease: !1 + }), e instanceof G) { + if (e.loose === t.loose) return e; + e = e.version + } else if ("string" != typeof e) throw new TypeError("Invalid Version: " + e); + if (e.length > 256) throw new TypeError("version is longer than 256 characters"); + if (!(this instanceof G)) return new G(e, t); + n("SemVer", e, t), this.options = t, this.loose = !!t.loose; + var i = e.trim().match(t.loose ? o[k] : o[_]); + if (!i) throw new TypeError("Invalid Version: " + e); + if (this.raw = e, this.major = +i[1], this.minor = +i[2], this.patch = +i[3], this.major > r || this.major < 0) throw new TypeError("Invalid major version"); + if (this.minor > r || this.minor < 0) throw new TypeError("Invalid minor version"); + if (this.patch > r || this.patch < 0) throw new TypeError("Invalid patch version"); + i[4] ? this.prerelease = i[4].split(".").map((function(e) { + if (/^[0-9]+$/.test(e)) { + var t = +e; + if (t >= 0 && t < r) return t + } + return e + })) : this.prerelease = [], this.build = i[5] ? i[5].split(".") : [], this.format() + } + t.parse = W, t.valid = function(e, t) { + var n = W(e, t); + return n ? n.version : null + }, t.clean = function(e, t) { + var n = W(e.trim().replace(/^[=v]+/, ""), t); + return n ? n.version : null + }, t.SemVer = G, G.prototype.format = function() { + return this.version = this.major + "." + this.minor + "." + this.patch, this.prerelease.length && (this.version += "-" + this.prerelease.join(".")), this.version + }, G.prototype.toString = function() { + return this.version + }, G.prototype.compare = function(e) { + return n("SemVer.compare", this.version, this.options, e), e instanceof G || (e = new G(e, this.options)), this.compareMain(e) || this.comparePre(e) + }, G.prototype.compareMain = function(e) { + return e instanceof G || (e = new G(e, this.options)), K(this.major, e.major) || K(this.minor, e.minor) || K(this.patch, e.patch) + }, G.prototype.comparePre = function(e) { + if (e instanceof G || (e = new G(e, this.options)), this.prerelease.length && !e.prerelease.length) return -1; + if (!this.prerelease.length && e.prerelease.length) return 1; + if (!this.prerelease.length && !e.prerelease.length) return 0; + var t = 0; + do { + var r = this.prerelease[t], + o = e.prerelease[t]; + if (n("prerelease compare", t, r, o), void 0 === r && void 0 === o) return 0; + if (void 0 === o) return 1; + if (void 0 === r) return -1; + if (r !== o) return K(r, o) + } while (++t) + }, G.prototype.inc = function(e, t) { + switch (e) { + case "premajor": + this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", t); + break; + case "preminor": + this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", t); + break; + case "prepatch": + this.prerelease.length = 0, this.inc("patch", t), this.inc("pre", t); + break; + case "prerelease": + 0 === this.prerelease.length && this.inc("patch", t), this.inc("pre", t); + break; + case "major": + 0 === this.minor && 0 === this.patch && 0 !== this.prerelease.length || this.major++, this.minor = 0, this.patch = 0, this.prerelease = []; + break; + case "minor": + 0 === this.patch && 0 !== this.prerelease.length || this.minor++, this.patch = 0, this.prerelease = []; + break; + case "patch": + 0 === this.prerelease.length && this.patch++, this.prerelease = []; + break; + case "pre": + if (0 === this.prerelease.length) this.prerelease = [0]; + else { + for (var n = this.prerelease.length; --n >= 0;) "number" == typeof this.prerelease[n] && (this.prerelease[n]++, n = -2); - 1 === n && this.prerelease.push(0) + } + t && (this.prerelease[0] === t ? isNaN(this.prerelease[1]) && (this.prerelease = [t, 0]) : this.prerelease = [t, 0]); + break; + default: + throw new Error("invalid increment argument: " + e) + } + return this.format(), this.raw = this.version, this + }, t.inc = function(e, t, n, r) { + "string" == typeof n && (r = n, n = void 0); + try { + return new G(e, n).inc(t, r).version + } catch (e) { + return null + } + }, t.diff = function(e, t) { + if (Q(e, t)) return null; + var n = W(e), + r = W(t), + o = ""; + if (n.prerelease.length || r.prerelease.length) { + o = "pre"; + var i = "prerelease" + } + for (var s in n) + if (("major" === s || "minor" === s || "patch" === s) && n[s] !== r[s]) return o + s; + return i + }, t.compareIdentifiers = K; + var V = /^[0-9]+$/; + + function K(e, t) { + var n = V.test(e), + r = V.test(t); + return n && r && (e = +e, t = +t), e === t ? 0 : n && !r ? -1 : r && !n ? 1 : e < t ? -1 : 1 + } + + function J(e, t, n) { + return new G(e, n).compare(new G(t, n)) + } + + function X(e, t, n) { + return J(e, t, n) > 0 + } + + function Y(e, t, n) { + return J(e, t, n) < 0 + } + + function Q(e, t, n) { + return 0 === J(e, t, n) + } + + function Z(e, t, n) { + return 0 !== J(e, t, n) + } + + function ee(e, t, n) { + return J(e, t, n) >= 0 + } + + function te(e, t, n) { + return J(e, t, n) <= 0 + } + + function ne(e, t, n, r) { + switch (t) { + case "===": + return "object" == typeof e && (e = e.version), "object" == typeof n && (n = n.version), e === n; + case "!==": + return "object" == typeof e && (e = e.version), "object" == typeof n && (n = n.version), e !== n; + case "": + case "=": + case "==": + return Q(e, n, r); + case "!=": + return Z(e, n, r); + case ">": + return X(e, n, r); + case ">=": + return ee(e, n, r); + case "<": + return Y(e, n, r); + case "<=": + return te(e, n, r); + default: + throw new TypeError("Invalid operator: " + t) + } + } + + function re(e, t) { + if (t && "object" == typeof t || (t = { + loose: !!t, + includePrerelease: !1 + }), e instanceof re) { + if (e.loose === !!t.loose) return e; + e = e.value + } + if (!(this instanceof re)) return new re(e, t); + n("comparator", e, t), this.options = t, this.loose = !!t.loose, this.parse(e), this.semver === oe ? this.value = "" : this.value = this.operator + this.semver.version, n("comp", this) + } + t.rcompareIdentifiers = function(e, t) { + return K(t, e) + }, t.major = function(e, t) { + return new G(e, t).major + }, t.minor = function(e, t) { + return new G(e, t).minor + }, t.patch = function(e, t) { + return new G(e, t).patch + }, t.compare = J, t.compareLoose = function(e, t) { + return J(e, t, !0) + }, t.rcompare = function(e, t, n) { + return J(t, e, n) + }, t.sort = function(e, n) { + return e.sort((function(e, r) { + return t.compare(e, r, n) + })) + }, t.rsort = function(e, n) { + return e.sort((function(e, r) { + return t.rcompare(e, r, n) + })) + }, t.gt = X, t.lt = Y, t.eq = Q, t.neq = Z, t.gte = ee, t.lte = te, t.cmp = ne, t.Comparator = re; + var oe = {}; + + function ie(e, t) { + if (t && "object" == typeof t || (t = { + loose: !!t, + includePrerelease: !1 + }), e instanceof ie) return e.loose === !!t.loose && e.includePrerelease === !!t.includePrerelease ? e : new ie(e.raw, t); + if (e instanceof re) return new ie(e.value, t); + if (!(this instanceof ie)) return new ie(e, t); + if (this.options = t, this.loose = !!t.loose, this.includePrerelease = !!t.includePrerelease, this.raw = e, this.set = e.split(/\s*\|\|\s*/).map((function(e) { + return this.parseRange(e.trim()) + }), this).filter((function(e) { + return e.length + })), !this.set.length) throw new TypeError("Invalid SemVer Range: " + e); + this.format() + } + + function se(e) { + return !e || "x" === e.toLowerCase() || "*" === e + } + + function ae(e, t, n, r, o, i, s, a, c, u, l, d, p) { + return ((t = se(n) ? "" : se(r) ? ">=" + n + ".0.0" : se(o) ? ">=" + n + "." + r + ".0" : ">=" + t) + " " + (a = se(c) ? "" : se(u) ? "<" + (+c + 1) + ".0.0" : se(l) ? "<" + c + "." + (+u + 1) + ".0" : d ? "<=" + c + "." + u + "." + l + "-" + d : "<=" + a)).trim() + } + + function ce(e, t, r) { + for (var o = 0; o < e.length; o++) + if (!e[o].test(t)) return !1; + if (t.prerelease.length && !r.includePrerelease) { + for (o = 0; o < e.length; o++) + if (n(e[o].semver), e[o].semver !== oe && e[o].semver.prerelease.length > 0) { + var i = e[o].semver; + if (i.major === t.major && i.minor === t.minor && i.patch === t.patch) return !0 + } return !1 + } + return !0 + } + + function ue(e, t, n) { + try { + t = new ie(t, n) + } catch (e) { + return !1 + } + return t.test(e) + } + + function le(e, t, n, r) { + var o, i, s, a, c; + switch (e = new G(e, r), t = new ie(t, r), n) { + case ">": + o = X, i = te, s = Y, a = ">", c = ">="; + break; + case "<": + o = Y, i = ee, s = X, a = "<", c = "<="; + break; + default: + throw new TypeError('Must provide a hilo val of "<" or ">"') + } + if (ue(e, t, r)) return !1; + for (var u = 0; u < t.set.length; ++u) { + var l = t.set[u], + d = null, + p = null; + if (l.forEach((function(e) { + e.semver === oe && (e = new re(">=0.0.0")), d = d || e, p = p || e, o(e.semver, d.semver, r) ? d = e : s(e.semver, p.semver, r) && (p = e) + })), d.operator === a || d.operator === c) return !1; + if ((!p.operator || p.operator === a) && i(e, p.semver)) return !1; + if (p.operator === c && s(e, p.semver)) return !1 + } + return !0 + } + re.prototype.parse = function(e) { + var t = this.options.loose ? o[L] : o[$], + n = e.match(t); + if (!n) throw new TypeError("Invalid comparator: " + e); + this.operator = n[1], "=" === this.operator && (this.operator = ""), n[2] ? this.semver = new G(n[2], this.options.loose) : this.semver = oe + }, re.prototype.toString = function() { + return this.value + }, re.prototype.test = function(e) { + return n("Comparator.test", e, this.options.loose), this.semver === oe || ("string" == typeof e && (e = new G(e, this.options)), ne(e, this.operator, this.semver, this.options)) + }, re.prototype.intersects = function(e, t) { + if (!(e instanceof re)) throw new TypeError("a Comparator is required"); + var n; + if (t && "object" == typeof t || (t = { + loose: !!t, + includePrerelease: !1 + }), "" === this.operator) return n = new ie(e.value, t), ue(this.value, n, t); + if ("" === e.operator) return n = new ie(this.value, t), ue(e.semver, n, t); + var r = !(">=" !== this.operator && ">" !== this.operator || ">=" !== e.operator && ">" !== e.operator), + o = !("<=" !== this.operator && "<" !== this.operator || "<=" !== e.operator && "<" !== e.operator), + i = this.semver.version === e.semver.version, + s = !(">=" !== this.operator && "<=" !== this.operator || ">=" !== e.operator && "<=" !== e.operator), + a = ne(this.semver, "<", e.semver, t) && (">=" === this.operator || ">" === this.operator) && ("<=" === e.operator || "<" === e.operator), + c = ne(this.semver, ">", e.semver, t) && ("<=" === this.operator || "<" === this.operator) && (">=" === e.operator || ">" === e.operator); + return r || o || i && s || a || c + }, t.Range = ie, ie.prototype.format = function() { + return this.range = this.set.map((function(e) { + return e.join(" ").trim() + })).join("||").trim(), this.range + }, ie.prototype.toString = function() { + return this.range + }, ie.prototype.parseRange = function(e) { + var t = this.options.loose; + e = e.trim(); + var r = t ? o[B] : o[z]; + e = e.replace(r, ae), n("hyphen replace", e), e = e.replace(o[F], "$1$2$3"), n("comparator trim", e, o[F]), e = (e = (e = e.replace(o[R], "$1~")).replace(o[D], "$1^")).split(/\s+/).join(" "); + var i = t ? o[L] : o[$], + s = e.split(" ").map((function(e) { + return function(e, t) { + return n("comp", e, t), e = function(e, t) { + return e.trim().split(/\s+/).map((function(e) { + return function(e, t) { + n("caret", e, t); + var r = t.loose ? o[q] : o[M]; + return e.replace(r, (function(t, r, o, i, s) { + var a; + return n("caret", e, t, r, o, i, s), se(r) ? a = "" : se(o) ? a = ">=" + r + ".0.0 <" + (+r + 1) + ".0.0" : se(i) ? a = "0" === r ? ">=" + r + "." + o + ".0 <" + r + "." + (+o + 1) + ".0" : ">=" + r + "." + o + ".0 <" + (+r + 1) + ".0.0" : s ? (n("replaceCaret pr", s), a = "0" === r ? "0" === o ? ">=" + r + "." + o + "." + i + "-" + s + " <" + r + "." + o + "." + (+i + 1) : ">=" + r + "." + o + "." + i + "-" + s + " <" + r + "." + (+o + 1) + ".0" : ">=" + r + "." + o + "." + i + "-" + s + " <" + (+r + 1) + ".0.0") : (n("no pr"), a = "0" === r ? "0" === o ? ">=" + r + "." + o + "." + i + " <" + r + "." + o + "." + (+i + 1) : ">=" + r + "." + o + "." + i + " <" + r + "." + (+o + 1) + ".0" : ">=" + r + "." + o + "." + i + " <" + (+r + 1) + ".0.0"), n("caret return", a), a + })) + }(e, t) + })).join(" ") + }(e, t), n("caret", e), e = function(e, t) { + return e.trim().split(/\s+/).map((function(e) { + return function(e, t) { + var r = t.loose ? o[A] : o[O]; + return e.replace(r, (function(t, r, o, i, s) { + var a; + return n("tilde", e, t, r, o, i, s), se(r) ? a = "" : se(o) ? a = ">=" + r + ".0.0 <" + (+r + 1) + ".0.0" : se(i) ? a = ">=" + r + "." + o + ".0 <" + r + "." + (+o + 1) + ".0" : s ? (n("replaceTilde pr", s), a = ">=" + r + "." + o + "." + i + "-" + s + " <" + r + "." + (+o + 1) + ".0") : a = ">=" + r + "." + o + "." + i + " <" + r + "." + (+o + 1) + ".0", n("tilde return", a), a + })) + }(e, t) + })).join(" ") + }(e, t), n("tildes", e), e = function(e, t) { + return n("replaceXRanges", e, t), e.split(/\s+/).map((function(e) { + return function(e, t) { + e = e.trim(); + var r = t.loose ? o[T] : o[S]; + return e.replace(r, (function(t, r, o, i, s, a) { + n("xRange", e, t, r, o, i, s, a); + var c = se(o), + u = c || se(i), + l = u || se(s); + return "=" === r && l && (r = ""), c ? t = ">" === r || "<" === r ? "<0.0.0" : "*" : r && l ? (u && (i = 0), s = 0, ">" === r ? (r = ">=", u ? (o = +o + 1, i = 0, s = 0) : (i = +i + 1, s = 0)) : "<=" === r && (r = "<", u ? o = +o + 1 : i = +i + 1), t = r + o + "." + i + "." + s) : u ? t = ">=" + o + ".0.0 <" + (+o + 1) + ".0.0" : l && (t = ">=" + o + "." + i + ".0 <" + o + "." + (+i + 1) + ".0"), n("xRange return", t), t + })) + }(e, t) + })).join(" ") + }(e, t), n("xrange", e), e = function(e, t) { + return n("replaceStars", e, t), e.trim().replace(o[U], "") + }(e, t), n("stars", e), e + }(e, this.options) + }), this).join(" ").split(/\s+/); + return this.options.loose && (s = s.filter((function(e) { + return !!e.match(i) + }))), s.map((function(e) { + return new re(e, this.options) + }), this) + }, ie.prototype.intersects = function(e, t) { + if (!(e instanceof ie)) throw new TypeError("a Range is required"); + return this.set.some((function(n) { + return n.every((function(n) { + return e.set.some((function(e) { + return e.every((function(e) { + return n.intersects(e, t) + })) + })) + })) + })) + }, t.toComparators = function(e, t) { + return new ie(e, t).set.map((function(e) { + return e.map((function(e) { + return e.value + })).join(" ").trim().split(" ") + })) + }, ie.prototype.test = function(e) { + if (!e) return !1; + "string" == typeof e && (e = new G(e, this.options)); + for (var t = 0; t < this.set.length; t++) + if (ce(this.set[t], e, this.options)) return !0; + return !1 + }, t.satisfies = ue, t.maxSatisfying = function(e, t, n) { + var r = null, + o = null; + try { + var i = new ie(t, n) + } catch (e) { + return null + } + return e.forEach((function(e) { + i.test(e) && (r && -1 !== o.compare(e) || (o = new G(r = e, n))) + })), r + }, t.minSatisfying = function(e, t, n) { + var r = null, + o = null; + try { + var i = new ie(t, n) + } catch (e) { + return null + } + return e.forEach((function(e) { + i.test(e) && (r && 1 !== o.compare(e) || (o = new G(r = e, n))) + })), r + }, t.minVersion = function(e, t) { + e = new ie(e, t); + var n = new G("0.0.0"); + if (e.test(n)) return n; + if (n = new G("0.0.0-0"), e.test(n)) return n; + n = null; + for (var r = 0; r < e.set.length; ++r) e.set[r].forEach((function(e) { + var t = new G(e.semver.version); + switch (e.operator) { + case ">": + 0 === t.prerelease.length ? t.patch++ : t.prerelease.push(0), t.raw = t.format(); + case "": + case ">=": + n && !X(n, t) || (n = t); + break; + case "<": + case "<=": + break; + default: + throw new Error("Unexpected operation: " + e.operator) + } + })); + return n && e.test(n) ? n : null + }, t.validRange = function(e, t) { + try { + return new ie(e, t).range || "*" + } catch (e) { + return null + } + }, t.ltr = function(e, t, n) { + return le(e, t, "<", n) + }, t.gtr = function(e, t, n) { + return le(e, t, ">", n) + }, t.outside = le, t.prerelease = function(e, t) { + var n = W(e, t); + return n && n.prerelease.length ? n.prerelease : null + }, t.intersects = function(e, t, n) { + return e = new ie(e, n), t = new ie(t, n), e.intersects(t) + }, t.coerce = function(e) { + if (e instanceof G) return e; + if ("string" != typeof e) return null; + var t = e.match(o[P]); + return null == t ? null : W(t[1] + "." + (t[2] || "0") + "." + (t[3] || "0")) + } + }, + 4206: (e, t, n) => { + e.exports = n(8057) + }, + 8298: (e, t, n) => { + "use strict"; + var r = n(7485), + o = n(4570), + i = n(574), + s = n(581), + a = n(3685), + c = n(5687), + u = n(4095).http, + l = n(4095).https, + d = n(7310), + p = n(9796), + h = n(9843), + m = n(8524), + f = n(9953), + g = /https:?/; + + function y(e, t, n) { + if (e.hostname = t.host, e.host = t.host, e.port = t.port, e.path = n, t.auth) { + var r = Buffer.from(t.auth.username + ":" + t.auth.password, "utf8").toString("base64"); + e.headers["Proxy-Authorization"] = "Basic " + r + } + e.beforeRedirect = function(e) { + e.headers.host = e.host, y(e, t, e.href) + } + } + e.exports = function(e) { + return new Promise((function(t, n) { + var _ = function(e) { + t(e) + }, + v = function(e) { + n(e) + }, + b = e.data, + k = e.headers; + if ("User-Agent" in k || "user-agent" in k ? k["User-Agent"] || k["user-agent"] || (delete k["User-Agent"], delete k["user-agent"]) : k["User-Agent"] = "axios/" + h.version, b && !r.isStream(b)) { + if (Buffer.isBuffer(b)); + else if (r.isArrayBuffer(b)) b = Buffer.from(new Uint8Array(b)); + else { + if (!r.isString(b)) return v(m("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream", e)); + b = Buffer.from(b, "utf-8") + } + k["Content-Length"] = b.length + } + var w = void 0; + e.auth && (w = (e.auth.username || "") + ":" + (e.auth.password || "")); + var j = i(e.baseURL, e.url), + x = d.parse(j), + E = x.protocol || "http:"; + if (!w && x.auth) { + var C = x.auth.split(":"); + w = (C[0] || "") + ":" + (C[1] || "") + } + w && delete k.Authorization; + var S = g.test(E), + T = S ? e.httpsAgent : e.httpAgent, + P = { + path: s(x.path, e.params, e.paramsSerializer).replace(/^\?/, ""), + method: e.method.toUpperCase(), + headers: k, + agent: T, + agents: { + http: e.httpAgent, + https: e.httpsAgent + }, + auth: w + }; + e.socketPath ? P.socketPath = e.socketPath : (P.hostname = x.hostname, P.port = x.port); + var I, R = e.proxy; + if (!R && !1 !== R) { + var O = E.slice(0, -1) + "_proxy", + A = process.env[O] || process.env[O.toUpperCase()]; + if (A) { + var N = d.parse(A), + D = process.env.no_proxy || process.env.NO_PROXY, + M = !0; + if (D && (M = !D.split(",").map((function(e) { + return e.trim() + })).some((function(e) { + return !!e && ("*" === e || "." === e[0] && x.hostname.substr(x.hostname.length - e.length) === e || x.hostname === e) + }))), M && (R = { + host: N.hostname, + port: N.port, + protocol: N.protocol + }, N.auth)) { + var q = N.auth.split(":"); + R.auth = { + username: q[0], + password: q[1] + } + } + } + } + R && (P.headers.host = x.hostname + (x.port ? ":" + x.port : ""), y(P, R, E + "//" + x.hostname + (x.port ? ":" + x.port : "") + P.path)); + var L = S && (!R || g.test(R.protocol)); + e.transport ? I = e.transport : 0 === e.maxRedirects ? I = L ? c : a : (e.maxRedirects && (P.maxRedirects = e.maxRedirects), I = L ? l : u), e.maxBodyLength > -1 && (P.maxBodyLength = e.maxBodyLength); + var $ = I.request(P, (function(t) { + if (!$.aborted) { + var n = t, + i = t.req || $; + if (204 !== t.statusCode && "HEAD" !== i.method && !1 !== e.decompress) switch (t.headers["content-encoding"]) { + case "gzip": + case "compress": + case "deflate": + n = n.pipe(p.createUnzip()), delete t.headers["content-encoding"] + } + var s = { + status: t.statusCode, + statusText: t.statusMessage, + headers: t.headers, + config: e, + request: i + }; + if ("stream" === e.responseType) s.data = n, o(_, v, s); + else { + var a = [], + c = 0; + n.on("data", (function(t) { + a.push(t), c += t.length, e.maxContentLength > -1 && c > e.maxContentLength && (n.destroy(), v(m("maxContentLength size of " + e.maxContentLength + " exceeded", e, null, i))) + })), n.on("error", (function(t) { + $.aborted || v(f(t, e, null, i)) + })), n.on("end", (function() { + var t = Buffer.concat(a); + "arraybuffer" !== e.responseType && (t = t.toString(e.responseEncoding), e.responseEncoding && "utf8" !== e.responseEncoding || (t = r.stripBOM(t))), s.data = t, o(_, v, s) + })) + } + } + })); + if ($.on("error", (function(t) { + $.aborted && "ERR_FR_TOO_MANY_REDIRECTS" !== t.code || v(f(t, e, null, $)) + })), e.timeout) { + var F = parseInt(e.timeout, 10); + if (isNaN(F)) return void v(m("error trying to parse `config.timeout` to int", e, "ERR_PARSE_TIMEOUT", $)); + $.setTimeout(F, (function() { + $.abort(), v(m("timeout of " + F + "ms exceeded", e, e.transitional && e.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED", $)) + })) + } + e.cancelToken && e.cancelToken.promise.then((function(e) { + $.aborted || ($.abort(), v(e)) + })), r.isStream(b) ? b.on("error", (function(t) { + v(f(t, e, null, $)) + })).pipe($) : $.end(b) + })) + } + }, + 4387: (e, t, n) => { + "use strict"; + var r = n(7485), + o = n(4570), + i = n(2940), + s = n(581), + a = n(574), + c = n(3845), + u = n(8338), + l = n(8524); + e.exports = function(e) { + return new Promise((function(t, n) { + var d = e.data, + p = e.headers, + h = e.responseType; + r.isFormData(d) && delete p["Content-Type"]; + var m = new XMLHttpRequest; + if (e.auth) { + var f = e.auth.username || "", + g = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : ""; + p.Authorization = "Basic " + btoa(f + ":" + g) + } + var y = a(e.baseURL, e.url); + + function _() { + if (m) { + var r = "getAllResponseHeaders" in m ? c(m.getAllResponseHeaders()) : null, + i = { + data: h && "text" !== h && "json" !== h ? m.response : m.responseText, + status: m.status, + statusText: m.statusText, + headers: r, + config: e, + request: m + }; + o(t, n, i), m = null + } + } + if (m.open(e.method.toUpperCase(), s(y, e.params, e.paramsSerializer), !0), m.timeout = e.timeout, "onloadend" in m ? m.onloadend = _ : m.onreadystatechange = function() { + m && 4 === m.readyState && (0 !== m.status || m.responseURL && 0 === m.responseURL.indexOf("file:")) && setTimeout(_) + }, m.onabort = function() { + m && (n(l("Request aborted", e, "ECONNABORTED", m)), m = null) + }, m.onerror = function() { + n(l("Network Error", e, null, m)), m = null + }, m.ontimeout = function() { + var t = "timeout of " + e.timeout + "ms exceeded"; + e.timeoutErrorMessage && (t = e.timeoutErrorMessage), n(l(t, e, e.transitional && e.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED", m)), m = null + }, r.isStandardBrowserEnv()) { + var v = (e.withCredentials || u(y)) && e.xsrfCookieName ? i.read(e.xsrfCookieName) : void 0; + v && (p[e.xsrfHeaderName] = v) + } + "setRequestHeader" in m && r.forEach(p, (function(e, t) { + void 0 === d && "content-type" === t.toLowerCase() ? delete p[t] : m.setRequestHeader(t, e) + })), r.isUndefined(e.withCredentials) || (m.withCredentials = !!e.withCredentials), h && "json" !== h && (m.responseType = e.responseType), "function" == typeof e.onDownloadProgress && m.addEventListener("progress", e.onDownloadProgress), "function" == typeof e.onUploadProgress && m.upload && m.upload.addEventListener("progress", e.onUploadProgress), e.cancelToken && e.cancelToken.promise.then((function(e) { + m && (m.abort(), n(e), m = null) + })), d || (d = null), m.send(d) + })) + } + }, + 8057: (e, t, n) => { + "use strict"; + var r = n(7485), + o = n(875), + i = n(5029), + s = n(4941); + + function a(e) { + var t = new i(e), + n = o(i.prototype.request, t); + return r.extend(n, i.prototype, t), r.extend(n, t), n + } + var c = a(n(3141)); + c.Axios = i, c.create = function(e) { + return a(s(c.defaults, e)) + }, c.Cancel = n(7132), c.CancelToken = n(4603), c.isCancel = n(1475), c.all = function(e) { + return Promise.all(e) + }, c.spread = n(5739), c.isAxiosError = n(5835), e.exports = c, e.exports.default = c + }, + 7132: e => { + "use strict"; + + function t(e) { + this.message = e + } + t.prototype.toString = function() { + return "Cancel" + (this.message ? ": " + this.message : "") + }, t.prototype.__CANCEL__ = !0, e.exports = t + }, + 4603: (e, t, n) => { + "use strict"; + var r = n(7132); + + function o(e) { + if ("function" != typeof e) throw new TypeError("executor must be a function."); + var t; + this.promise = new Promise((function(e) { + t = e + })); + var n = this; + e((function(e) { + n.reason || (n.reason = new r(e), t(n.reason)) + })) + } + o.prototype.throwIfRequested = function() { + if (this.reason) throw this.reason + }, o.source = function() { + var e; + return { + token: new o((function(t) { + e = t + })), + cancel: e + } + }, e.exports = o + }, + 1475: e => { + "use strict"; + e.exports = function(e) { + return !(!e || !e.__CANCEL__) + } + }, + 5029: (e, t, n) => { + "use strict"; + var r = n(7485), + o = n(581), + i = n(8096), + s = n(5009), + a = n(4941), + c = n(6144), + u = c.validators; + + function l(e) { + this.defaults = e, this.interceptors = { + request: new i, + response: new i + } + } + l.prototype.request = function(e) { + "string" == typeof e ? (e = arguments[1] || {}).url = arguments[0] : e = e || {}, (e = a(this.defaults, e)).method ? e.method = e.method.toLowerCase() : this.defaults.method ? e.method = this.defaults.method.toLowerCase() : e.method = "get"; + var t = e.transitional; + void 0 !== t && c.assertOptions(t, { + silentJSONParsing: u.transitional(u.boolean, "1.0.0"), + forcedJSONParsing: u.transitional(u.boolean, "1.0.0"), + clarifyTimeoutError: u.transitional(u.boolean, "1.0.0") + }, !1); + var n = [], + r = !0; + this.interceptors.request.forEach((function(t) { + "function" == typeof t.runWhen && !1 === t.runWhen(e) || (r = r && t.synchronous, n.unshift(t.fulfilled, t.rejected)) + })); + var o, i = []; + if (this.interceptors.response.forEach((function(e) { + i.push(e.fulfilled, e.rejected) + })), !r) { + var l = [s, void 0]; + for (Array.prototype.unshift.apply(l, n), l = l.concat(i), o = Promise.resolve(e); l.length;) o = o.then(l.shift(), l.shift()); + return o + } + for (var d = e; n.length;) { + var p = n.shift(), + h = n.shift(); + try { + d = p(d) + } catch (e) { + h(e); + break + } + } + try { + o = s(d) + } catch (e) { + return Promise.reject(e) + } + for (; i.length;) o = o.then(i.shift(), i.shift()); + return o + }, l.prototype.getUri = function(e) { + return e = a(this.defaults, e), o(e.url, e.params, e.paramsSerializer).replace(/^\?/, "") + }, r.forEach(["delete", "get", "head", "options"], (function(e) { + l.prototype[e] = function(t, n) { + return this.request(a(n || {}, { + method: e, + url: t, + data: (n || {}).data + })) + } + })), r.forEach(["post", "put", "patch"], (function(e) { + l.prototype[e] = function(t, n, r) { + return this.request(a(r || {}, { + method: e, + url: t, + data: n + })) + } + })), e.exports = l + }, + 8096: (e, t, n) => { + "use strict"; + var r = n(7485); + + function o() { + this.handlers = [] + } + o.prototype.use = function(e, t, n) { + return this.handlers.push({ + fulfilled: e, + rejected: t, + synchronous: !!n && n.synchronous, + runWhen: n ? n.runWhen : null + }), this.handlers.length - 1 + }, o.prototype.eject = function(e) { + this.handlers[e] && (this.handlers[e] = null) + }, o.prototype.forEach = function(e) { + r.forEach(this.handlers, (function(t) { + null !== t && e(t) + })) + }, e.exports = o + }, + 574: (e, t, n) => { + "use strict"; + var r = n(2642), + o = n(2288); + e.exports = function(e, t) { + return e && !r(t) ? o(e, t) : t + } + }, + 8524: (e, t, n) => { + "use strict"; + var r = n(9953); + e.exports = function(e, t, n, o, i) { + var s = new Error(e); + return r(s, t, n, o, i) + } + }, + 5009: (e, t, n) => { + "use strict"; + var r = n(7485), + o = n(9212), + i = n(1475), + s = n(3141); + + function a(e) { + e.cancelToken && e.cancelToken.throwIfRequested() + } + e.exports = function(e) { + return a(e), e.headers = e.headers || {}, e.data = o.call(e, e.data, e.headers, e.transformRequest), e.headers = r.merge(e.headers.common || {}, e.headers[e.method] || {}, e.headers), r.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (function(t) { + delete e.headers[t] + })), (e.adapter || s.adapter)(e).then((function(t) { + return a(e), t.data = o.call(e, t.data, t.headers, e.transformResponse), t + }), (function(t) { + return i(t) || (a(e), t && t.response && (t.response.data = o.call(e, t.response.data, t.response.headers, e.transformResponse))), Promise.reject(t) + })) + } + }, + 9953: e => { + "use strict"; + e.exports = function(e, t, n, r, o) { + return e.config = t, n && (e.code = n), e.request = r, e.response = o, e.isAxiosError = !0, e.toJSON = function() { + return { + message: this.message, + name: this.name, + description: this.description, + number: this.number, + fileName: this.fileName, + lineNumber: this.lineNumber, + columnNumber: this.columnNumber, + stack: this.stack, + config: this.config, + code: this.code + } + }, e + } + }, + 4941: (e, t, n) => { + "use strict"; + var r = n(7485); + e.exports = function(e, t) { + t = t || {}; + var n = {}, + o = ["url", "method", "data"], + i = ["headers", "auth", "proxy", "params"], + s = ["baseURL", "transformRequest", "transformResponse", "paramsSerializer", "timeout", "timeoutMessage", "withCredentials", "adapter", "responseType", "xsrfCookieName", "xsrfHeaderName", "onUploadProgress", "onDownloadProgress", "decompress", "maxContentLength", "maxBodyLength", "maxRedirects", "transport", "httpAgent", "httpsAgent", "cancelToken", "socketPath", "responseEncoding"], + a = ["validateStatus"]; + + function c(e, t) { + return r.isPlainObject(e) && r.isPlainObject(t) ? r.merge(e, t) : r.isPlainObject(t) ? r.merge({}, t) : r.isArray(t) ? t.slice() : t + } + + function u(o) { + r.isUndefined(t[o]) ? r.isUndefined(e[o]) || (n[o] = c(void 0, e[o])) : n[o] = c(e[o], t[o]) + } + r.forEach(o, (function(e) { + r.isUndefined(t[e]) || (n[e] = c(void 0, t[e])) + })), r.forEach(i, u), r.forEach(s, (function(o) { + r.isUndefined(t[o]) ? r.isUndefined(e[o]) || (n[o] = c(void 0, e[o])) : n[o] = c(void 0, t[o]) + })), r.forEach(a, (function(r) { + r in t ? n[r] = c(e[r], t[r]) : r in e && (n[r] = c(void 0, e[r])) + })); + var l = o.concat(i).concat(s).concat(a), + d = Object.keys(e).concat(Object.keys(t)).filter((function(e) { + return -1 === l.indexOf(e) + })); + return r.forEach(d, u), n + } + }, + 4570: (e, t, n) => { + "use strict"; + var r = n(8524); + e.exports = function(e, t, n) { + var o = n.config.validateStatus; + n.status && o && !o(n.status) ? t(r("Request failed with status code " + n.status, n.config, null, n.request, n)) : e(n) + } + }, + 9212: (e, t, n) => { + "use strict"; + var r = n(7485), + o = n(3141); + e.exports = function(e, t, n) { + var i = this || o; + return r.forEach(n, (function(n) { + e = n.call(i, e, t) + })), e + } + }, + 3141: (e, t, n) => { + "use strict"; + var r = n(7485), + o = n(1446), + i = n(9953), + s = { + "Content-Type": "application/x-www-form-urlencoded" + }; + + function a(e, t) { + !r.isUndefined(e) && r.isUndefined(e["Content-Type"]) && (e["Content-Type"] = t) + } + var c, u = { + transitional: { + silentJSONParsing: !0, + forcedJSONParsing: !0, + clarifyTimeoutError: !1 + }, + adapter: ("undefined" != typeof XMLHttpRequest ? c = n(4387) : "undefined" != typeof process && "[object process]" === Object.prototype.toString.call(process) && (c = n(8298)), c), + transformRequest: [function(e, t) { + return o(t, "Accept"), o(t, "Content-Type"), r.isFormData(e) || r.isArrayBuffer(e) || r.isBuffer(e) || r.isStream(e) || r.isFile(e) || r.isBlob(e) ? e : r.isArrayBufferView(e) ? e.buffer : r.isURLSearchParams(e) ? (a(t, "application/x-www-form-urlencoded;charset=utf-8"), e.toString()) : r.isObject(e) || t && "application/json" === t["Content-Type"] ? (a(t, "application/json"), function(e, t, n) { + if (r.isString(e)) try { + return (0, JSON.parse)(e), r.trim(e) + } catch (e) { + if ("SyntaxError" !== e.name) throw e + } + return (0, JSON.stringify)(e) + }(e)) : e + }], + transformResponse: [function(e) { + var t = this.transitional, + n = t && t.silentJSONParsing, + o = t && t.forcedJSONParsing, + s = !n && "json" === this.responseType; + if (s || o && r.isString(e) && e.length) try { + return JSON.parse(e) + } catch (e) { + if (s) { + if ("SyntaxError" === e.name) throw i(e, this, "E_JSON_PARSE"); + throw e + } + } + return e + }], + timeout: 0, + xsrfCookieName: "XSRF-TOKEN", + xsrfHeaderName: "X-XSRF-TOKEN", + maxContentLength: -1, + maxBodyLength: -1, + validateStatus: function(e) { + return e >= 200 && e < 300 + }, + headers: { + common: { + Accept: "application/json, text/plain, */*" + } + } + }; + r.forEach(["delete", "get", "head"], (function(e) { + u.headers[e] = {} + })), r.forEach(["post", "put", "patch"], (function(e) { + u.headers[e] = r.merge(s) + })), e.exports = u + }, + 875: e => { + "use strict"; + e.exports = function(e, t) { + return function() { + for (var n = new Array(arguments.length), r = 0; r < n.length; r++) n[r] = arguments[r]; + return e.apply(t, n) + } + } + }, + 581: (e, t, n) => { + "use strict"; + var r = n(7485); + + function o(e) { + return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]") + } + e.exports = function(e, t, n) { + if (!t) return e; + var i; + if (n) i = n(t); + else if (r.isURLSearchParams(t)) i = t.toString(); + else { + var s = []; + r.forEach(t, (function(e, t) { + null != e && (r.isArray(e) ? t += "[]" : e = [e], r.forEach(e, (function(e) { + r.isDate(e) ? e = e.toISOString() : r.isObject(e) && (e = JSON.stringify(e)), s.push(o(t) + "=" + o(e)) + }))) + })), i = s.join("&") + } + if (i) { + var a = e.indexOf("#"); - 1 !== a && (e = e.slice(0, a)), e += (-1 === e.indexOf("?") ? "?" : "&") + i + } + return e + } + }, + 2288: e => { + "use strict"; + e.exports = function(e, t) { + return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e + } + }, + 2940: (e, t, n) => { + "use strict"; + var r = n(7485); + e.exports = r.isStandardBrowserEnv() ? { + write: function(e, t, n, o, i, s) { + var a = []; + a.push(e + "=" + encodeURIComponent(t)), r.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()), r.isString(o) && a.push("path=" + o), r.isString(i) && a.push("domain=" + i), !0 === s && a.push("secure"), document.cookie = a.join("; ") + }, + read: function(e) { + var t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)")); + return t ? decodeURIComponent(t[3]) : null + }, + remove: function(e) { + this.write(e, "", Date.now() - 864e5) + } + } : { + write: function() {}, + read: function() { + return null + }, + remove: function() {} + } + }, + 2642: e => { + "use strict"; + e.exports = function(e) { + return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e) + } + }, + 5835: e => { + "use strict"; + e.exports = function(e) { + return "object" == typeof e && !0 === e.isAxiosError + } + }, + 8338: (e, t, n) => { + "use strict"; + var r = n(7485); + e.exports = r.isStandardBrowserEnv() ? function() { + var e, t = /(msie|trident)/i.test(navigator.userAgent), + n = document.createElement("a"); + + function o(e) { + var r = e; + return t && (n.setAttribute("href", r), r = n.href), n.setAttribute("href", r), { + href: n.href, + protocol: n.protocol ? n.protocol.replace(/:$/, "") : "", + host: n.host, + search: n.search ? n.search.replace(/^\?/, "") : "", + hash: n.hash ? n.hash.replace(/^#/, "") : "", + hostname: n.hostname, + port: n.port, + pathname: "/" === n.pathname.charAt(0) ? n.pathname : "/" + n.pathname + } + } + return e = o(window.location.href), + function(t) { + var n = r.isString(t) ? o(t) : t; + return n.protocol === e.protocol && n.host === e.host + } + }() : function() { + return !0 + } + }, + 1446: (e, t, n) => { + "use strict"; + var r = n(7485); + e.exports = function(e, t) { + r.forEach(e, (function(n, r) { + r !== t && r.toUpperCase() === t.toUpperCase() && (e[t] = n, delete e[r]) + })) + } + }, + 3845: (e, t, n) => { + "use strict"; + var r = n(7485), + o = ["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]; + e.exports = function(e) { + var t, n, i, s = {}; + return e ? (r.forEach(e.split("\n"), (function(e) { + if (i = e.indexOf(":"), t = r.trim(e.substr(0, i)).toLowerCase(), n = r.trim(e.substr(i + 1)), t) { + if (s[t] && o.indexOf(t) >= 0) return; + s[t] = "set-cookie" === t ? (s[t] ? s[t] : []).concat([n]) : s[t] ? s[t] + ", " + n : n + } + })), s) : s + } + }, + 5739: e => { + "use strict"; + e.exports = function(e) { + return function(t) { + return e.apply(null, t) + } + } + }, + 6144: (e, t, n) => { + "use strict"; + var r = n(9843), + o = {}; + ["object", "boolean", "number", "function", "string", "symbol"].forEach((function(e, t) { + o[e] = function(n) { + return typeof n === e || "a" + (t < 1 ? "n " : " ") + e + } + })); + var i = {}, + s = r.version.split("."); + + function a(e, t) { + for (var n = t ? t.split(".") : s, r = e.split("."), o = 0; o < 3; o++) { + if (n[o] > r[o]) return !0; + if (n[o] < r[o]) return !1 + } + return !1 + } + o.transitional = function(e, t, n) { + var o = t && a(t); + + function s(e, t) { + return "[Axios v" + r.version + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "") + } + return function(n, r, a) { + if (!1 === e) throw new Error(s(r, " has been removed in " + t)); + return o && !i[r] && (i[r] = !0, console.warn(s(r, " has been deprecated since v" + t + " and will be removed in the near future"))), !e || e(n, r, a) + } + }, e.exports = { + isOlderVersion: a, + assertOptions: function(e, t, n) { + if ("object" != typeof e) throw new TypeError("options must be an object"); + for (var r = Object.keys(e), o = r.length; o-- > 0;) { + var i = r[o], + s = t[i]; + if (s) { + var a = e[i], + c = void 0 === a || s(a, i, e); + if (!0 !== c) throw new TypeError("option " + i + " must be " + c) + } else if (!0 !== n) throw Error("Unknown option " + i) + } + }, + validators: o + } + }, + 7485: (e, t, n) => { + "use strict"; + var r = n(875), + o = Object.prototype.toString; + + function i(e) { + return "[object Array]" === o.call(e) + } + + function s(e) { + return void 0 === e + } + + function a(e) { + return null !== e && "object" == typeof e + } + + function c(e) { + if ("[object Object]" !== o.call(e)) return !1; + var t = Object.getPrototypeOf(e); + return null === t || t === Object.prototype + } + + function u(e) { + return "[object Function]" === o.call(e) + } + + function l(e, t) { + if (null != e) + if ("object" != typeof e && (e = [e]), i(e)) + for (var n = 0, r = e.length; n < r; n++) t.call(null, e[n], n, e); + else + for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.call(null, e[o], o, e) + } + e.exports = { + isArray: i, + isArrayBuffer: function(e) { + return "[object ArrayBuffer]" === o.call(e) + }, + isBuffer: function(e) { + return null !== e && !s(e) && null !== e.constructor && !s(e.constructor) && "function" == typeof e.constructor.isBuffer && e.constructor.isBuffer(e) + }, + isFormData: function(e) { + return "undefined" != typeof FormData && e instanceof FormData + }, + isArrayBufferView: function(e) { + return "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && e.buffer instanceof ArrayBuffer + }, + isString: function(e) { + return "string" == typeof e + }, + isNumber: function(e) { + return "number" == typeof e + }, + isObject: a, + isPlainObject: c, + isUndefined: s, + isDate: function(e) { + return "[object Date]" === o.call(e) + }, + isFile: function(e) { + return "[object File]" === o.call(e) + }, + isBlob: function(e) { + return "[object Blob]" === o.call(e) + }, + isFunction: u, + isStream: function(e) { + return a(e) && u(e.pipe) + }, + isURLSearchParams: function(e) { + return "undefined" != typeof URLSearchParams && e instanceof URLSearchParams + }, + isStandardBrowserEnv: function() { + return ("undefined" == typeof navigator || "ReactNative" !== navigator.product && "NativeScript" !== navigator.product && "NS" !== navigator.product) && "undefined" != typeof window && "undefined" != typeof document + }, + forEach: l, + merge: function e() { + var t = {}; + + function n(n, r) { + c(t[r]) && c(n) ? t[r] = e(t[r], n) : c(n) ? t[r] = e({}, n) : i(n) ? t[r] = n.slice() : t[r] = n + } + for (var r = 0, o = arguments.length; r < o; r++) l(arguments[r], n); + return t + }, + extend: function(e, t, n) { + return l(t, (function(t, o) { + e[o] = n && "function" == typeof t ? r(t, n) : t + })), e + }, + trim: function(e) { + return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, "") + }, + stripBOM: function(e) { + return 65279 === e.charCodeAt(0) && (e = e.slice(1)), e + } + } + }, + 8308: (e, t) => { + "use strict"; + + function n(e, t, n) { + try { + const r = 0 === n.length ? t : Object.create(t); + n.length > 0 && (r.stack = [...n, t.stack].join("\nFrom:\n").replace("\n\n", "\n")); + try { + e(r) + } catch (t) { + console.error("[callguard 1/2]: guard handler threw error", t), console.error("[callguard 2/2]: while handling", r) + } + } catch (t) { + console.error("[callguard] handle error (probably caused by non-Error throw)]", t) + } + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.asyncGuard = t.syncGuard = void 0, t.syncGuard = function(e, t) { + const r = t && !!t.longStackTraces, + o = t && null != t.defaultReturn ? t.defaultReturn : null, + i = []; + return function(s) { + return r && i.push(new Error("[callguard]").stack), + function(...a) { + r && i.push(new Error("[callguard]").stack); + try { + const r = s(...a); + return t && t.catchAsync && Promise.resolve(r).catch((t => n(e, t, i))), r + } catch (t) { + return n(e, t, i), o + } + } + } + }, t.asyncGuard = function(e, t) { + const r = t && !!t.longStackTraces, + o = t && null != t.defaultReturn ? t.defaultReturn : null, + i = []; + return function(t) { + return r && i.push(new Error("[callguard]").stack), + function(...s) { + r && i.push(new Error("[callguard]").stack); + try { + return Promise.resolve(t(...s)).catch((t => (n(e, t, i), o))) + } catch (t) { + return n(e, t, i), o + } + } + } + } + }, + 2172: (e, t, n) => { + "use strict"; + const r = n(3837), + o = n(9491), + i = n(7267), + s = n(632), + a = "error@context", + c = []; + for (let e in s.providers) c[s.providers[e]] = e; + const u = process.env.DEBUG_CLS_HOOKED; + let l = -1; + + function d(e) { + this.name = e, this.active = null, this._set = [], this.id = null, this._contexts = new Map + } + + function p(e) { + return process.namespaces[e] + } + + function h(e) { + let t = p(e); + o.ok(t, "can't delete nonexistent namespace! \"" + e + '"'), o.ok(t.id, "don't assign to process.namespaces directly! " + r.inspect(t)), process.namespaces[e] = null + } + + function m(e) { + process.env.DEBUG && process._rawDebug(e) + } + + function f(e) { + return e ? "function" == typeof e ? e.name ? e.name : (e.toString().trim().match(/^function\s*([^\s(]+)/) || [])[1] : e.constructor && e.constructor.name ? e.constructor.name : void 0 : e + } + if (e.exports = { + getNamespace: p, + createNamespace: function(e) { + o.ok(e, "namespace must be given a name."), u && m("CREATING NAMESPACE " + e); + let t = new d(e); + return t.id = l, s.addHooks({ + init(n, o, i, s, a) { + l = n, s ? (t._contexts.set(n, t._contexts.get(s)), u && m("PARENTID: " + e + " uid:" + n + " parent:" + s + " provider:" + i)) : t._contexts.set(l, t.active), u && m("INIT " + e + " uid:" + n + " parent:" + s + " provider:" + c[i] + " active:" + r.inspect(t.active, !0)) + }, + pre(n, o) { + l = n; + let i = t._contexts.get(n); + i ? (u && m(" PRE " + e + " uid:" + n + " handle:" + f(o) + " context:" + r.inspect(i)), t.enter(i)) : u && m(" PRE MISSING CONTEXT " + e + " uid:" + n + " handle:" + f(o)) + }, + post(n, o) { + l = n; + let i = t._contexts.get(n); + i ? (u && m(" POST " + e + " uid:" + n + " handle:" + f(o) + " context:" + r.inspect(i)), t.exit(i)) : u && m(" POST MISSING CONTEXT " + e + " uid:" + n + " handle:" + f(o)) + }, + destroy(n) { + l = n, u && m("DESTROY " + e + " uid:" + n + " context:" + r.inspect(t._contexts.get(l)) + " active:" + r.inspect(t.active, !0)), t._contexts.delete(n) + } + }), process.namespaces[e] = t, t + }, + destroyNamespace: h, + reset: function() { + process.namespaces && Object.keys(process.namespaces).forEach((function(e) { + h(e) + })), process.namespaces = Object.create(null) + }, + ERROR_SYMBOL: a + }, d.prototype.set = function(e, t) { + if (!this.active) throw new Error("No context available. ns.run() or ns.bind() must be called first."); + return u && m(" SETTING KEY:" + e + "=" + t + " in ns:" + this.name + " uid:" + l + " active:" + r.inspect(this.active, !0)), this.active[e] = t, t + }, d.prototype.get = function(e) { + if (this.active) return u && m(" GETTING KEY:" + e + "=" + this.active[e] + " " + this.name + " uid:" + l + " active:" + r.inspect(this.active, !0)), this.active[e]; + u && m(" GETTING KEY:" + e + "=undefined " + this.name + " uid:" + l + " active:" + r.inspect(this.active, !0)) + }, d.prototype.createContext = function() { + u && m(" CREATING Context: " + this.name + " uid:" + l + " len:" + this._set.length + " active:" + r.inspect(this.active, !0, 2, !0)); + let e = Object.create(this.active ? this.active : Object.prototype); + return e._ns_name = this.name, e.id = l, u && m(" CREATED Context: " + this.name + " uid:" + l + " len:" + this._set.length + " context:" + r.inspect(e, !0, 2, !0)), e + }, d.prototype.run = function(e) { + let t = this.createContext(); + this.enter(t); + try { + return u && m(" BEFORE RUN: " + this.name + " uid:" + l + " len:" + this._set.length + " " + r.inspect(t)), e(t), t + } catch (e) { + throw e && (e[a] = t), e + } finally { + u && m(" AFTER RUN: " + this.name + " uid:" + l + " len:" + this._set.length + " " + r.inspect(t)), this.exit(t) + } + }, d.prototype.runAndReturn = function(e) { + var t; + return this.run((function(n) { + t = e(n) + })), t + }, d.prototype.runPromise = function(e) { + let t = this.createContext(); + this.enter(t); + let n = e(t); + if (!n || !n.then || !n.catch) throw new Error("fn must return a promise."); + return u && m(" BEFORE runPromise: " + this.name + " uid:" + l + " len:" + this._set.length + " " + r.inspect(t)), n.then((e => (u && m(" AFTER runPromise: " + this.name + " uid:" + l + " len:" + this._set.length + " " + r.inspect(t)), this.exit(t), e))).catch((e => { + throw e[a] = t, u && m(" AFTER runPromise: " + this.name + " uid:" + l + " len:" + this._set.length + " " + r.inspect(t)), this.exit(t), e + })) + }, d.prototype.bind = function(e, t) { + t || (t = this.active ? this.active : this.createContext()); + let n = this; + return function() { + n.enter(t); + try { + return e.apply(this, arguments) + } catch (e) { + throw e && (e[a] = t), e + } finally { + n.exit(t) + } + } + }, d.prototype.enter = function(e) { + o.ok(e, "context must be provided for entering"), u && m(" ENTER " + this.name + " uid:" + l + " len:" + this._set.length + " context: " + r.inspect(e)), this._set.push(this.active), this.active = e + }, d.prototype.exit = function(e) { + if (o.ok(e, "context must be provided for exiting"), u && m(" EXIT " + this.name + " uid:" + l + " len:" + this._set.length + " context: " + r.inspect(e)), this.active === e) return o.ok(this._set.length, "can't remove top context"), void(this.active = this._set.pop()); + let t = this._set.lastIndexOf(e); + t < 0 ? (u && m("??ERROR?? context exiting but not entered - ignoring: " + r.inspect(e)), o.ok(t >= 0, "context not currently entered; can't exit. \n" + r.inspect(this) + "\n" + r.inspect(e))) : (o.ok(t, "can't remove top context"), this._set.splice(t, 1)) + }, d.prototype.bindEmitter = function(e) { + o.ok(e.on && e.addListener && e.emit, "can only bind real EEs"); + let t = this, + n = "context@" + this.name; + i(e, (function(e) { + e && (e["cls@contexts"] || (e["cls@contexts"] = Object.create(null)), e["cls@contexts"][n] = { + namespace: t, + context: t.active + }) + }), (function(e) { + if (!e || !e["cls@contexts"]) return e; + let t = e, + n = e["cls@contexts"]; + return Object.keys(n).forEach((function(e) { + let r = n[e]; + t = r.namespace.bind(t, r.context) + })), t + })) + }, d.prototype.fromException = function(e) { + return e[a] + }, process.namespaces = {}, s._state && !s._state.enabled && s.enable(), u) { + var g = n(6818); + for (var y in g.filter._modifiers) g.filter.deattach(y) + } + }, + 8423: (e, t, n) => { + "use strict"; + const r = n(3837), + o = n(9491), + i = n(7267), + s = n(852), + a = "error@context", + c = process.env.DEBUG_CLS_HOOKED; + let u = -1; + + function l(e) { + this.name = e, this.active = null, this._set = [], this.id = null, this._contexts = new Map, this._indent = 0 + } + + function d(e) { + return process.namespaces[e] + } + + function p(e) { + let t = d(e); + o.ok(t, "can't delete nonexistent namespace! \"" + e + '"'), o.ok(t.id, "don't assign to process.namespaces directly! " + r.inspect(t)), process.namespaces[e] = null + } + + function h(...e) { + c && process._rawDebug(`${r.format(...e)}`) + } + e.exports = { + getNamespace: d, + createNamespace: function(e) { + o.ok(e, "namespace must be given a name."), c && h(`NS-CREATING NAMESPACE (${e})`); + let t = new l(e); + return t.id = u, s.createHook({ + init(n, o, i, a) { + if (u = s.executionAsyncId(), t.active) { + if (t._contexts.set(n, t.active), c) { + h(`${" ".repeat(t._indent<0?0:t._indent)}INIT [${o}] (${e}) asyncId:${n} currentUid:${u} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${a}`) + } + } else if (0 === u) { + const i = s.triggerAsyncId(), + l = t._contexts.get(i); + if (l) { + if (t._contexts.set(n, l), c) { + h(`${" ".repeat(t._indent<0?0:t._indent)}INIT USING CONTEXT FROM TRIGGERID [${o}] (${e}) asyncId:${n} currentUid:${u} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${a}`) + } + } else if (c) { + h(`${" ".repeat(t._indent<0?0:t._indent)}INIT MISSING CONTEXT [${o}] (${e}) asyncId:${n} currentUid:${u} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${a}`) + } + } + if (c && "PROMISE" === o) { + h(r.inspect(a, { + showHidden: !0 + })); + const s = a.parentId; + h(`${" ".repeat(t._indent<0?0:t._indent)}INIT RESOURCE-PROMISE [${o}] (${e}) parentId:${s} asyncId:${n} currentUid:${u} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${a}`) + } + }, + before(n) { + let o; + if (u = s.executionAsyncId(), o = t._contexts.get(n) || t._contexts.get(u), o) { + if (c) { + const i = s.triggerAsyncId(); + h(`${" ".repeat(t._indent<0?0:t._indent)}BEFORE (${e}) asyncId:${n} currentUid:${u} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(o)}`), t._indent += 2 + } + t.enter(o) + } else if (c) { + const o = s.triggerAsyncId(); + h(`${" ".repeat(t._indent<0?0:t._indent)}BEFORE MISSING CONTEXT (${e}) asyncId:${n} currentUid:${u} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} namespace._contexts:${r.inspect(t._contexts,{showHidden:!0,depth:2,colors:!0})}`), t._indent += 2 + } + }, + after(n) { + let o; + if (u = s.executionAsyncId(), o = t._contexts.get(n) || t._contexts.get(u), o) { + if (c) { + const i = s.triggerAsyncId(); + t._indent -= 2; + h(`${" ".repeat(t._indent<0?0:t._indent)}AFTER (${e}) asyncId:${n} currentUid:${u} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(o)}`) + } + t.exit(o) + } else if (c) { + const i = s.triggerAsyncId(); + t._indent -= 2; + h(`${" ".repeat(t._indent<0?0:t._indent)}AFTER MISSING CONTEXT (${e}) asyncId:${n} currentUid:${u} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(o)}`) + } + }, + destroy(n) { + if (u = s.executionAsyncId(), c) { + const o = s.triggerAsyncId(); + h(`${" ".repeat(t._indent<0?0:t._indent)}DESTROY (${e}) currentUid:${u} asyncId:${n} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(t._contexts.get(u))}`) + } + t._contexts.delete(n) + } + }).enable(), process.namespaces[e] = t, t + }, + destroyNamespace: p, + reset: function() { + process.namespaces && Object.keys(process.namespaces).forEach((function(e) { + p(e) + })), process.namespaces = Object.create(null) + }, + ERROR_SYMBOL: a + }, l.prototype.set = function(e, t) { + if (!this.active) throw new Error("No context available. ns.run() or ns.bind() must be called first."); + return this.active[e] = t, c && h(" ".repeat(this._indent < 0 ? 0 : this._indent) + "CONTEXT-SET KEY:" + e + "=" + t + " in ns:" + this.name + " currentUid:" + u + " active:" + r.inspect(this.active, { + showHidden: !0, + depth: 2, + colors: !0 + })), t + }, l.prototype.get = function(e) { + if (this.active) { + if (c) { + const t = s.executionAsyncId(), + n = s.triggerAsyncId(), + o = " ".repeat(this._indent < 0 ? 0 : this._indent); + h(o + "CONTEXT-GETTING KEY:" + e + "=" + this.active[e] + " (" + this.name + ") currentUid:" + u + " active:" + r.inspect(this.active, { + showHidden: !0, + depth: 2, + colors: !0 + })), h(`${o}CONTEXT-GETTING KEY: (${this.name}) ${e}=${this.active[e]} currentUid:${u} asyncHooksCurrentId:${t} triggerId:${n} len:${this._set.length} active:${r.inspect(this.active)}`) + } + return this.active[e] + } + if (c) { + const t = s.currentId(), + n = s.triggerAsyncId(); + h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-GETTING KEY NO ACTIVE NS: (${this.name}) ${e}=undefined currentUid:${u} asyncHooksCurrentId:${t} triggerId:${n} len:${this._set.length}`) + } + }, l.prototype.createContext = function() { + let e = Object.create(this.active ? this.active : Object.prototype); + if (e._ns_name = this.name, e.id = u, c) { + const t = s.executionAsyncId(), + n = s.triggerAsyncId(); + h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-CREATED Context: (${this.name}) currentUid:${u} asyncHooksCurrentId:${t} triggerId:${n} len:${this._set.length} context:${r.inspect(e,{showHidden:!0,depth:2,colors:!0})}`) + } + return e + }, l.prototype.run = function(e) { + let t = this.createContext(); + this.enter(t); + try { + if (c) { + const e = s.triggerAsyncId(), + n = s.executionAsyncId(); + h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-RUN BEGIN: (${this.name}) currentUid:${u} triggerId:${e} asyncHooksCurrentId:${n} len:${this._set.length} context:${r.inspect(t)}`) + } + return e(t), t + } catch (e) { + throw e && (e[a] = t), e + } finally { + if (c) { + const e = s.triggerAsyncId(), + n = s.executionAsyncId(); + h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-RUN END: (${this.name}) currentUid:${u} triggerId:${e} asyncHooksCurrentId:${n} len:${this._set.length} ${r.inspect(t)}`) + } + this.exit(t) + } + }, l.prototype.runAndReturn = function(e) { + let t; + return this.run((function(n) { + t = e(n) + })), t + }, l.prototype.runPromise = function(e) { + let t = this.createContext(); + this.enter(t); + let n = e(t); + if (!n || !n.then || !n.catch) throw new Error("fn must return a promise."); + return c && h("CONTEXT-runPromise BEFORE: (" + this.name + ") currentUid:" + u + " len:" + this._set.length + " " + r.inspect(t)), n.then((e => (c && h("CONTEXT-runPromise AFTER then: (" + this.name + ") currentUid:" + u + " len:" + this._set.length + " " + r.inspect(t)), this.exit(t), e))).catch((e => { + throw e[a] = t, c && h("CONTEXT-runPromise AFTER catch: (" + this.name + ") currentUid:" + u + " len:" + this._set.length + " " + r.inspect(t)), this.exit(t), e + })) + }, l.prototype.bind = function(e, t) { + t || (t = this.active ? this.active : this.createContext()); + let n = this; + return function() { + n.enter(t); + try { + return e.apply(this, arguments) + } catch (e) { + throw e && (e[a] = t), e + } finally { + n.exit(t) + } + } + }, l.prototype.enter = function(e) { + if (o.ok(e, "context must be provided for entering"), c) { + const t = s.executionAsyncId(), + n = s.triggerAsyncId(); + h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-ENTER: (${this.name}) currentUid:${u} triggerId:${n} asyncHooksCurrentId:${t} len:${this._set.length} ${r.inspect(e)}`) + } + this._set.push(this.active), this.active = e + }, l.prototype.exit = function(e) { + if (o.ok(e, "context must be provided for exiting"), c) { + const t = s.executionAsyncId(), + n = s.triggerAsyncId(); + h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-EXIT: (${this.name}) currentUid:${u} triggerId:${n} asyncHooksCurrentId:${t} len:${this._set.length} ${r.inspect(e)}`) + } + if (this.active === e) return o.ok(this._set.length, "can't remove top context"), void(this.active = this._set.pop()); + let t = this._set.lastIndexOf(e); + t < 0 ? (c && h("??ERROR?? context exiting but not entered - ignoring: " + r.inspect(e)), o.ok(t >= 0, "context not currently entered; can't exit. \n" + r.inspect(this) + "\n" + r.inspect(e))) : (o.ok(t, "can't remove top context"), this._set.splice(t, 1)) + }, l.prototype.bindEmitter = function(e) { + o.ok(e.on && e.addListener && e.emit, "can only bind real EEs"); + let t = this, + n = "context@" + this.name; + i(e, (function(e) { + e && (e["cls@contexts"] || (e["cls@contexts"] = Object.create(null)), e["cls@contexts"][n] = { + namespace: t, + context: t.active + }) + }), (function(e) { + if (!e || !e["cls@contexts"]) return e; + let t = e, + n = e["cls@contexts"]; + return Object.keys(n).forEach((function(e) { + let r = n[e]; + t = r.namespace.bind(t, r.context) + })), t + })) + }, l.prototype.fromException = function(e) { + return e[a] + }, process.namespaces = {} + }, + 9172: (e, t, n) => { + "use strict"; + const r = n(2173); + process && r.gte(process.versions.node, "8.0.0") ? e.exports = n(8423) : e.exports = n(2172) + }, + 2173: (e, t) => { + var n; + t = e.exports = G, n = "object" == typeof process && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? function() { + var e = Array.prototype.slice.call(arguments, 0); + e.unshift("SEMVER"), console.log.apply(console, e) + } : function() {}, t.SEMVER_SPEC_VERSION = "2.0.0"; + var r = Number.MAX_SAFE_INTEGER || 9007199254740991, + o = t.re = [], + i = t.src = [], + s = 0, + a = s++; + i[a] = "0|[1-9]\\d*"; + var c = s++; + i[c] = "[0-9]+"; + var u = s++; + i[u] = "\\d*[a-zA-Z-][a-zA-Z0-9-]*"; + var l = s++; + i[l] = "(" + i[a] + ")\\.(" + i[a] + ")\\.(" + i[a] + ")"; + var d = s++; + i[d] = "(" + i[c] + ")\\.(" + i[c] + ")\\.(" + i[c] + ")"; + var p = s++; + i[p] = "(?:" + i[a] + "|" + i[u] + ")"; + var h = s++; + i[h] = "(?:" + i[c] + "|" + i[u] + ")"; + var m = s++; + i[m] = "(?:-(" + i[p] + "(?:\\." + i[p] + ")*))"; + var f = s++; + i[f] = "(?:-?(" + i[h] + "(?:\\." + i[h] + ")*))"; + var g = s++; + i[g] = "[0-9A-Za-z-]+"; + var y = s++; + i[y] = "(?:\\+(" + i[g] + "(?:\\." + i[g] + ")*))"; + var _ = s++, + v = "v?" + i[l] + i[m] + "?" + i[y] + "?"; + i[_] = "^" + v + "$"; + var b = "[v=\\s]*" + i[d] + i[f] + "?" + i[y] + "?", + k = s++; + i[k] = "^" + b + "$"; + var w = s++; + i[w] = "((?:<|>)?=?)"; + var j = s++; + i[j] = i[c] + "|x|X|\\*"; + var x = s++; + i[x] = i[a] + "|x|X|\\*"; + var E = s++; + i[E] = "[v=\\s]*(" + i[x] + ")(?:\\.(" + i[x] + ")(?:\\.(" + i[x] + ")(?:" + i[m] + ")?" + i[y] + "?)?)?"; + var C = s++; + i[C] = "[v=\\s]*(" + i[j] + ")(?:\\.(" + i[j] + ")(?:\\.(" + i[j] + ")(?:" + i[f] + ")?" + i[y] + "?)?)?"; + var S = s++; + i[S] = "^" + i[w] + "\\s*" + i[E] + "$"; + var T = s++; + i[T] = "^" + i[w] + "\\s*" + i[C] + "$"; + var P = s++; + i[P] = "(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])"; + var I = s++; + i[I] = "(?:~>?)"; + var R = s++; + i[R] = "(\\s*)" + i[I] + "\\s+", o[R] = new RegExp(i[R], "g"); + var O = s++; + i[O] = "^" + i[I] + i[E] + "$"; + var A = s++; + i[A] = "^" + i[I] + i[C] + "$"; + var N = s++; + i[N] = "(?:\\^)"; + var D = s++; + i[D] = "(\\s*)" + i[N] + "\\s+", o[D] = new RegExp(i[D], "g"); + var M = s++; + i[M] = "^" + i[N] + i[E] + "$"; + var q = s++; + i[q] = "^" + i[N] + i[C] + "$"; + var L = s++; + i[L] = "^" + i[w] + "\\s*(" + b + ")$|^$"; + var $ = s++; + i[$] = "^" + i[w] + "\\s*(" + v + ")$|^$"; + var F = s++; + i[F] = "(\\s*)" + i[w] + "\\s*(" + b + "|" + i[E] + ")", o[F] = new RegExp(i[F], "g"); + var z = s++; + i[z] = "^\\s*(" + i[E] + ")\\s+-\\s+(" + i[E] + ")\\s*$"; + var B = s++; + i[B] = "^\\s*(" + i[C] + ")\\s+-\\s+(" + i[C] + ")\\s*$"; + var U = s++; + i[U] = "(<|>)?=?\\s*\\*"; + for (var H = 0; H < 35; H++) n(H, i[H]), o[H] || (o[H] = new RegExp(i[H])); + + function W(e, t) { + if (t && "object" == typeof t || (t = { + loose: !!t, + includePrerelease: !1 + }), e instanceof G) return e; + if ("string" != typeof e) return null; + if (e.length > 256) return null; + if (!(t.loose ? o[k] : o[_]).test(e)) return null; + try { + return new G(e, t) + } catch (e) { + return null + } + } + + function G(e, t) { + if (t && "object" == typeof t || (t = { + loose: !!t, + includePrerelease: !1 + }), e instanceof G) { + if (e.loose === t.loose) return e; + e = e.version + } else if ("string" != typeof e) throw new TypeError("Invalid Version: " + e); + if (e.length > 256) throw new TypeError("version is longer than 256 characters"); + if (!(this instanceof G)) return new G(e, t); + n("SemVer", e, t), this.options = t, this.loose = !!t.loose; + var i = e.trim().match(t.loose ? o[k] : o[_]); + if (!i) throw new TypeError("Invalid Version: " + e); + if (this.raw = e, this.major = +i[1], this.minor = +i[2], this.patch = +i[3], this.major > r || this.major < 0) throw new TypeError("Invalid major version"); + if (this.minor > r || this.minor < 0) throw new TypeError("Invalid minor version"); + if (this.patch > r || this.patch < 0) throw new TypeError("Invalid patch version"); + i[4] ? this.prerelease = i[4].split(".").map((function(e) { + if (/^[0-9]+$/.test(e)) { + var t = +e; + if (t >= 0 && t < r) return t + } + return e + })) : this.prerelease = [], this.build = i[5] ? i[5].split(".") : [], this.format() + } + t.parse = W, t.valid = function(e, t) { + var n = W(e, t); + return n ? n.version : null + }, t.clean = function(e, t) { + var n = W(e.trim().replace(/^[=v]+/, ""), t); + return n ? n.version : null + }, t.SemVer = G, G.prototype.format = function() { + return this.version = this.major + "." + this.minor + "." + this.patch, this.prerelease.length && (this.version += "-" + this.prerelease.join(".")), this.version + }, G.prototype.toString = function() { + return this.version + }, G.prototype.compare = function(e) { + return n("SemVer.compare", this.version, this.options, e), e instanceof G || (e = new G(e, this.options)), this.compareMain(e) || this.comparePre(e) + }, G.prototype.compareMain = function(e) { + return e instanceof G || (e = new G(e, this.options)), K(this.major, e.major) || K(this.minor, e.minor) || K(this.patch, e.patch) + }, G.prototype.comparePre = function(e) { + if (e instanceof G || (e = new G(e, this.options)), this.prerelease.length && !e.prerelease.length) return -1; + if (!this.prerelease.length && e.prerelease.length) return 1; + if (!this.prerelease.length && !e.prerelease.length) return 0; + var t = 0; + do { + var r = this.prerelease[t], + o = e.prerelease[t]; + if (n("prerelease compare", t, r, o), void 0 === r && void 0 === o) return 0; + if (void 0 === o) return 1; + if (void 0 === r) return -1; + if (r !== o) return K(r, o) + } while (++t) + }, G.prototype.inc = function(e, t) { + switch (e) { + case "premajor": + this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", t); + break; + case "preminor": + this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", t); + break; + case "prepatch": + this.prerelease.length = 0, this.inc("patch", t), this.inc("pre", t); + break; + case "prerelease": + 0 === this.prerelease.length && this.inc("patch", t), this.inc("pre", t); + break; + case "major": + 0 === this.minor && 0 === this.patch && 0 !== this.prerelease.length || this.major++, this.minor = 0, this.patch = 0, this.prerelease = []; + break; + case "minor": + 0 === this.patch && 0 !== this.prerelease.length || this.minor++, this.patch = 0, this.prerelease = []; + break; + case "patch": + 0 === this.prerelease.length && this.patch++, this.prerelease = []; + break; + case "pre": + if (0 === this.prerelease.length) this.prerelease = [0]; + else { + for (var n = this.prerelease.length; --n >= 0;) "number" == typeof this.prerelease[n] && (this.prerelease[n]++, n = -2); - 1 === n && this.prerelease.push(0) + } + t && (this.prerelease[0] === t ? isNaN(this.prerelease[1]) && (this.prerelease = [t, 0]) : this.prerelease = [t, 0]); + break; + default: + throw new Error("invalid increment argument: " + e) + } + return this.format(), this.raw = this.version, this + }, t.inc = function(e, t, n, r) { + "string" == typeof n && (r = n, n = void 0); + try { + return new G(e, n).inc(t, r).version + } catch (e) { + return null + } + }, t.diff = function(e, t) { + if (Q(e, t)) return null; + var n = W(e), + r = W(t), + o = ""; + if (n.prerelease.length || r.prerelease.length) { + o = "pre"; + var i = "prerelease" + } + for (var s in n) + if (("major" === s || "minor" === s || "patch" === s) && n[s] !== r[s]) return o + s; + return i + }, t.compareIdentifiers = K; + var V = /^[0-9]+$/; + + function K(e, t) { + var n = V.test(e), + r = V.test(t); + return n && r && (e = +e, t = +t), e === t ? 0 : n && !r ? -1 : r && !n ? 1 : e < t ? -1 : 1 + } + + function J(e, t, n) { + return new G(e, n).compare(new G(t, n)) + } + + function X(e, t, n) { + return J(e, t, n) > 0 + } + + function Y(e, t, n) { + return J(e, t, n) < 0 + } + + function Q(e, t, n) { + return 0 === J(e, t, n) + } + + function Z(e, t, n) { + return 0 !== J(e, t, n) + } + + function ee(e, t, n) { + return J(e, t, n) >= 0 + } + + function te(e, t, n) { + return J(e, t, n) <= 0 + } + + function ne(e, t, n, r) { + switch (t) { + case "===": + return "object" == typeof e && (e = e.version), "object" == typeof n && (n = n.version), e === n; + case "!==": + return "object" == typeof e && (e = e.version), "object" == typeof n && (n = n.version), e !== n; + case "": + case "=": + case "==": + return Q(e, n, r); + case "!=": + return Z(e, n, r); + case ">": + return X(e, n, r); + case ">=": + return ee(e, n, r); + case "<": + return Y(e, n, r); + case "<=": + return te(e, n, r); + default: + throw new TypeError("Invalid operator: " + t) + } + } + + function re(e, t) { + if (t && "object" == typeof t || (t = { + loose: !!t, + includePrerelease: !1 + }), e instanceof re) { + if (e.loose === !!t.loose) return e; + e = e.value + } + if (!(this instanceof re)) return new re(e, t); + n("comparator", e, t), this.options = t, this.loose = !!t.loose, this.parse(e), this.semver === oe ? this.value = "" : this.value = this.operator + this.semver.version, n("comp", this) + } + t.rcompareIdentifiers = function(e, t) { + return K(t, e) + }, t.major = function(e, t) { + return new G(e, t).major + }, t.minor = function(e, t) { + return new G(e, t).minor + }, t.patch = function(e, t) { + return new G(e, t).patch + }, t.compare = J, t.compareLoose = function(e, t) { + return J(e, t, !0) + }, t.rcompare = function(e, t, n) { + return J(t, e, n) + }, t.sort = function(e, n) { + return e.sort((function(e, r) { + return t.compare(e, r, n) + })) + }, t.rsort = function(e, n) { + return e.sort((function(e, r) { + return t.rcompare(e, r, n) + })) + }, t.gt = X, t.lt = Y, t.eq = Q, t.neq = Z, t.gte = ee, t.lte = te, t.cmp = ne, t.Comparator = re; + var oe = {}; + + function ie(e, t) { + if (t && "object" == typeof t || (t = { + loose: !!t, + includePrerelease: !1 + }), e instanceof ie) return e.loose === !!t.loose && e.includePrerelease === !!t.includePrerelease ? e : new ie(e.raw, t); + if (e instanceof re) return new ie(e.value, t); + if (!(this instanceof ie)) return new ie(e, t); + if (this.options = t, this.loose = !!t.loose, this.includePrerelease = !!t.includePrerelease, this.raw = e, this.set = e.split(/\s*\|\|\s*/).map((function(e) { + return this.parseRange(e.trim()) + }), this).filter((function(e) { + return e.length + })), !this.set.length) throw new TypeError("Invalid SemVer Range: " + e); + this.format() + } + + function se(e) { + return !e || "x" === e.toLowerCase() || "*" === e + } + + function ae(e, t, n, r, o, i, s, a, c, u, l, d, p) { + return ((t = se(n) ? "" : se(r) ? ">=" + n + ".0.0" : se(o) ? ">=" + n + "." + r + ".0" : ">=" + t) + " " + (a = se(c) ? "" : se(u) ? "<" + (+c + 1) + ".0.0" : se(l) ? "<" + c + "." + (+u + 1) + ".0" : d ? "<=" + c + "." + u + "." + l + "-" + d : "<=" + a)).trim() + } + + function ce(e, t, r) { + for (var o = 0; o < e.length; o++) + if (!e[o].test(t)) return !1; + if (t.prerelease.length && !r.includePrerelease) { + for (o = 0; o < e.length; o++) + if (n(e[o].semver), e[o].semver !== oe && e[o].semver.prerelease.length > 0) { + var i = e[o].semver; + if (i.major === t.major && i.minor === t.minor && i.patch === t.patch) return !0 + } return !1 + } + return !0 + } + + function ue(e, t, n) { + try { + t = new ie(t, n) + } catch (e) { + return !1 + } + return t.test(e) + } + + function le(e, t, n, r) { + var o, i, s, a, c; + switch (e = new G(e, r), t = new ie(t, r), n) { + case ">": + o = X, i = te, s = Y, a = ">", c = ">="; + break; + case "<": + o = Y, i = ee, s = X, a = "<", c = "<="; + break; + default: + throw new TypeError('Must provide a hilo val of "<" or ">"') + } + if (ue(e, t, r)) return !1; + for (var u = 0; u < t.set.length; ++u) { + var l = t.set[u], + d = null, + p = null; + if (l.forEach((function(e) { + e.semver === oe && (e = new re(">=0.0.0")), d = d || e, p = p || e, o(e.semver, d.semver, r) ? d = e : s(e.semver, p.semver, r) && (p = e) + })), d.operator === a || d.operator === c) return !1; + if ((!p.operator || p.operator === a) && i(e, p.semver)) return !1; + if (p.operator === c && s(e, p.semver)) return !1 + } + return !0 + } + re.prototype.parse = function(e) { + var t = this.options.loose ? o[L] : o[$], + n = e.match(t); + if (!n) throw new TypeError("Invalid comparator: " + e); + this.operator = n[1], "=" === this.operator && (this.operator = ""), n[2] ? this.semver = new G(n[2], this.options.loose) : this.semver = oe + }, re.prototype.toString = function() { + return this.value + }, re.prototype.test = function(e) { + return n("Comparator.test", e, this.options.loose), this.semver === oe || ("string" == typeof e && (e = new G(e, this.options)), ne(e, this.operator, this.semver, this.options)) + }, re.prototype.intersects = function(e, t) { + if (!(e instanceof re)) throw new TypeError("a Comparator is required"); + var n; + if (t && "object" == typeof t || (t = { + loose: !!t, + includePrerelease: !1 + }), "" === this.operator) return n = new ie(e.value, t), ue(this.value, n, t); + if ("" === e.operator) return n = new ie(this.value, t), ue(e.semver, n, t); + var r = !(">=" !== this.operator && ">" !== this.operator || ">=" !== e.operator && ">" !== e.operator), + o = !("<=" !== this.operator && "<" !== this.operator || "<=" !== e.operator && "<" !== e.operator), + i = this.semver.version === e.semver.version, + s = !(">=" !== this.operator && "<=" !== this.operator || ">=" !== e.operator && "<=" !== e.operator), + a = ne(this.semver, "<", e.semver, t) && (">=" === this.operator || ">" === this.operator) && ("<=" === e.operator || "<" === e.operator), + c = ne(this.semver, ">", e.semver, t) && ("<=" === this.operator || "<" === this.operator) && (">=" === e.operator || ">" === e.operator); + return r || o || i && s || a || c + }, t.Range = ie, ie.prototype.format = function() { + return this.range = this.set.map((function(e) { + return e.join(" ").trim() + })).join("||").trim(), this.range + }, ie.prototype.toString = function() { + return this.range + }, ie.prototype.parseRange = function(e) { + var t = this.options.loose; + e = e.trim(); + var r = t ? o[B] : o[z]; + e = e.replace(r, ae), n("hyphen replace", e), e = e.replace(o[F], "$1$2$3"), n("comparator trim", e, o[F]), e = (e = (e = e.replace(o[R], "$1~")).replace(o[D], "$1^")).split(/\s+/).join(" "); + var i = t ? o[L] : o[$], + s = e.split(" ").map((function(e) { + return function(e, t) { + return n("comp", e, t), e = function(e, t) { + return e.trim().split(/\s+/).map((function(e) { + return function(e, t) { + n("caret", e, t); + var r = t.loose ? o[q] : o[M]; + return e.replace(r, (function(t, r, o, i, s) { + var a; + return n("caret", e, t, r, o, i, s), se(r) ? a = "" : se(o) ? a = ">=" + r + ".0.0 <" + (+r + 1) + ".0.0" : se(i) ? a = "0" === r ? ">=" + r + "." + o + ".0 <" + r + "." + (+o + 1) + ".0" : ">=" + r + "." + o + ".0 <" + (+r + 1) + ".0.0" : s ? (n("replaceCaret pr", s), a = "0" === r ? "0" === o ? ">=" + r + "." + o + "." + i + "-" + s + " <" + r + "." + o + "." + (+i + 1) : ">=" + r + "." + o + "." + i + "-" + s + " <" + r + "." + (+o + 1) + ".0" : ">=" + r + "." + o + "." + i + "-" + s + " <" + (+r + 1) + ".0.0") : (n("no pr"), a = "0" === r ? "0" === o ? ">=" + r + "." + o + "." + i + " <" + r + "." + o + "." + (+i + 1) : ">=" + r + "." + o + "." + i + " <" + r + "." + (+o + 1) + ".0" : ">=" + r + "." + o + "." + i + " <" + (+r + 1) + ".0.0"), n("caret return", a), a + })) + }(e, t) + })).join(" ") + }(e, t), n("caret", e), e = function(e, t) { + return e.trim().split(/\s+/).map((function(e) { + return function(e, t) { + var r = t.loose ? o[A] : o[O]; + return e.replace(r, (function(t, r, o, i, s) { + var a; + return n("tilde", e, t, r, o, i, s), se(r) ? a = "" : se(o) ? a = ">=" + r + ".0.0 <" + (+r + 1) + ".0.0" : se(i) ? a = ">=" + r + "." + o + ".0 <" + r + "." + (+o + 1) + ".0" : s ? (n("replaceTilde pr", s), a = ">=" + r + "." + o + "." + i + "-" + s + " <" + r + "." + (+o + 1) + ".0") : a = ">=" + r + "." + o + "." + i + " <" + r + "." + (+o + 1) + ".0", n("tilde return", a), a + })) + }(e, t) + })).join(" ") + }(e, t), n("tildes", e), e = function(e, t) { + return n("replaceXRanges", e, t), e.split(/\s+/).map((function(e) { + return function(e, t) { + e = e.trim(); + var r = t.loose ? o[T] : o[S]; + return e.replace(r, (function(t, r, o, i, s, a) { + n("xRange", e, t, r, o, i, s, a); + var c = se(o), + u = c || se(i), + l = u || se(s); + return "=" === r && l && (r = ""), c ? t = ">" === r || "<" === r ? "<0.0.0" : "*" : r && l ? (u && (i = 0), s = 0, ">" === r ? (r = ">=", u ? (o = +o + 1, i = 0, s = 0) : (i = +i + 1, s = 0)) : "<=" === r && (r = "<", u ? o = +o + 1 : i = +i + 1), t = r + o + "." + i + "." + s) : u ? t = ">=" + o + ".0.0 <" + (+o + 1) + ".0.0" : l && (t = ">=" + o + "." + i + ".0 <" + o + "." + (+i + 1) + ".0"), n("xRange return", t), t + })) + }(e, t) + })).join(" ") + }(e, t), n("xrange", e), e = function(e, t) { + return n("replaceStars", e, t), e.trim().replace(o[U], "") + }(e, t), n("stars", e), e + }(e, this.options) + }), this).join(" ").split(/\s+/); + return this.options.loose && (s = s.filter((function(e) { + return !!e.match(i) + }))), s.map((function(e) { + return new re(e, this.options) + }), this) + }, ie.prototype.intersects = function(e, t) { + if (!(e instanceof ie)) throw new TypeError("a Range is required"); + return this.set.some((function(n) { + return n.every((function(n) { + return e.set.some((function(e) { + return e.every((function(e) { + return n.intersects(e, t) + })) + })) + })) + })) + }, t.toComparators = function(e, t) { + return new ie(e, t).set.map((function(e) { + return e.map((function(e) { + return e.value + })).join(" ").trim().split(" ") + })) + }, ie.prototype.test = function(e) { + if (!e) return !1; + "string" == typeof e && (e = new G(e, this.options)); + for (var t = 0; t < this.set.length; t++) + if (ce(this.set[t], e, this.options)) return !0; + return !1 + }, t.satisfies = ue, t.maxSatisfying = function(e, t, n) { + var r = null, + o = null; + try { + var i = new ie(t, n) + } catch (e) { + return null + } + return e.forEach((function(e) { + i.test(e) && (r && -1 !== o.compare(e) || (o = new G(r = e, n))) + })), r + }, t.minSatisfying = function(e, t, n) { + var r = null, + o = null; + try { + var i = new ie(t, n) + } catch (e) { + return null + } + return e.forEach((function(e) { + i.test(e) && (r && 1 !== o.compare(e) || (o = new G(r = e, n))) + })), r + }, t.minVersion = function(e, t) { + e = new ie(e, t); + var n = new G("0.0.0"); + if (e.test(n)) return n; + if (n = new G("0.0.0-0"), e.test(n)) return n; + n = null; + for (var r = 0; r < e.set.length; ++r) e.set[r].forEach((function(e) { + var t = new G(e.semver.version); + switch (e.operator) { + case ">": + 0 === t.prerelease.length ? t.patch++ : t.prerelease.push(0), t.raw = t.format(); + case "": + case ">=": + n && !X(n, t) || (n = t); + break; + case "<": + case "<=": + break; + default: + throw new Error("Unexpected operation: " + e.operator) + } + })); + return n && e.test(n) ? n : null + }, t.validRange = function(e, t) { + try { + return new ie(e, t).range || "*" + } catch (e) { + return null + } + }, t.ltr = function(e, t, n) { + return le(e, t, "<", n) + }, t.gtr = function(e, t, n) { + return le(e, t, ">", n) + }, t.outside = le, t.prerelease = function(e, t) { + var n = W(e, t); + return n && n.prerelease.length ? n.prerelease : null + }, t.intersects = function(e, t, n) { + return e = new ie(e, n), t = new ie(t, n), e.intersects(t) + }, t.coerce = function(e) { + if (e instanceof G) return e; + if ("string" != typeof e) return null; + var t = e.match(o[P]); + return null == t ? null : W(t[1] + "." + (t[2] || "0") + "." + (t[3] || "0")) + } + }, + 2611: (e, t, n) => { + "use strict"; + var r = n(9491), + o = n(7267), + i = "error@context"; + + function s(e) { + this.name = e, this.active = null, this._set = [], this.id = null + } + + function a(e) { + return process.namespaces[e] + } + + function c(e) { + var t = a(e); + r.ok(t, "can't delete nonexistent namespace!"), r.ok(t.id, "don't assign to process.namespaces directly!"), process.removeAsyncListener(t.id), process.namespaces[e] = null + } + + function u() { + process.namespaces && Object.keys(process.namespaces).forEach((function(e) { + c(e) + })), process.namespaces = Object.create(null) + } + process.addAsyncListener || n(1274), s.prototype.set = function(e, t) { + if (!this.active) throw new Error("No context available. ns.run() or ns.bind() must be called first."); + return this.active[e] = t, t + }, s.prototype.get = function(e) { + if (this.active) return this.active[e] + }, s.prototype.createContext = function() { + return Object.create(this.active) + }, s.prototype.run = function(e) { + var t = this.createContext(); + this.enter(t); + try { + return e(t), t + } catch (e) { + throw e && (e[i] = t), e + } finally { + this.exit(t) + } + }, s.prototype.runAndReturn = function(e) { + var t; + return this.run((function(n) { + t = e(n) + })), t + }, s.prototype.bind = function(e, t) { + t || (t = this.active ? this.active : this.createContext()); + var n = this; + return function() { + n.enter(t); + try { + return e.apply(this, arguments) + } catch (e) { + throw e && (e[i] = t), e + } finally { + n.exit(t) + } + } + }, s.prototype.enter = function(e) { + r.ok(e, "context must be provided for entering"), this._set.push(this.active), this.active = e + }, s.prototype.exit = function(e) { + if (r.ok(e, "context must be provided for exiting"), this.active === e) return r.ok(this._set.length, "can't remove top context"), void(this.active = this._set.pop()); + var t = this._set.lastIndexOf(e); + r.ok(t >= 0, "context not currently entered; can't exit"), r.ok(t, "can't remove top context"), this._set.splice(t, 1) + }, s.prototype.bindEmitter = function(e) { + r.ok(e.on && e.addListener && e.emit, "can only bind real EEs"); + var t = this, + n = "context@" + this.name; + o(e, (function(e) { + e && (e["cls@contexts"] || (e["cls@contexts"] = Object.create(null)), e["cls@contexts"][n] = { + namespace: t, + context: t.active + }) + }), (function(e) { + if (!e || !e["cls@contexts"]) return e; + var t = e, + n = e["cls@contexts"]; + return Object.keys(n).forEach((function(e) { + var r = n[e]; + t = r.namespace.bind(t, r.context) + })), t + })) + }, s.prototype.fromException = function(e) { + return e[i] + }, process.namespaces || u(), e.exports = { + getNamespace: a, + createNamespace: function(e) { + r.ok(e, "namespace must be given a name!"); + var t = new s(e); + return t.id = process.addAsyncListener({ + create: function() { + return t.active + }, + before: function(e, n) { + n && t.enter(n) + }, + after: function(e, n) { + n && t.exit(n) + }, + error: function(e) { + e && t.exit(e) + } + }), process.namespaces[e] = t, t + }, + destroyNamespace: c, + reset: u + } + }, + 6725: function(e, t, n) { + var r; + e.exports = (r = n(8112), n(8885), n(4678), n(6165), n(8976), function() { + var e = r, + t = e.lib.BlockCipher, + n = e.algo, + o = [], + i = [], + s = [], + a = [], + c = [], + u = [], + l = [], + d = [], + p = [], + h = []; + ! function() { + for (var e = [], t = 0; t < 256; t++) e[t] = t < 128 ? t << 1 : t << 1 ^ 283; + var n = 0, + r = 0; + for (t = 0; t < 256; t++) { + var m = r ^ r << 1 ^ r << 2 ^ r << 3 ^ r << 4; + m = m >>> 8 ^ 255 & m ^ 99, o[n] = m, i[m] = n; + var f = e[n], + g = e[f], + y = e[g], + _ = 257 * e[m] ^ 16843008 * m; + s[n] = _ << 24 | _ >>> 8, a[n] = _ << 16 | _ >>> 16, c[n] = _ << 8 | _ >>> 24, u[n] = _, _ = 16843009 * y ^ 65537 * g ^ 257 * f ^ 16843008 * n, l[m] = _ << 24 | _ >>> 8, d[m] = _ << 16 | _ >>> 16, p[m] = _ << 8 | _ >>> 24, h[m] = _, n ? (n = f ^ e[e[e[y ^ f]]], r ^= e[e[r]]) : n = r = 1 + } + }(); + var m = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], + f = n.AES = t.extend({ + _doReset: function() { + if (!this._nRounds || this._keyPriorReset !== this._key) { + for (var e = this._keyPriorReset = this._key, t = e.words, n = e.sigBytes / 4, r = 4 * ((this._nRounds = n + 6) + 1), i = this._keySchedule = [], s = 0; s < r; s++) s < n ? i[s] = t[s] : (u = i[s - 1], s % n ? n > 6 && s % n == 4 && (u = o[u >>> 24] << 24 | o[u >>> 16 & 255] << 16 | o[u >>> 8 & 255] << 8 | o[255 & u]) : (u = o[(u = u << 8 | u >>> 24) >>> 24] << 24 | o[u >>> 16 & 255] << 16 | o[u >>> 8 & 255] << 8 | o[255 & u], u ^= m[s / n | 0] << 24), i[s] = i[s - n] ^ u); + for (var a = this._invKeySchedule = [], c = 0; c < r; c++) { + if (s = r - c, c % 4) var u = i[s]; + else u = i[s - 4]; + a[c] = c < 4 || s <= 4 ? u : l[o[u >>> 24]] ^ d[o[u >>> 16 & 255]] ^ p[o[u >>> 8 & 255]] ^ h[o[255 & u]] + } + } + }, + encryptBlock: function(e, t) { + this._doCryptBlock(e, t, this._keySchedule, s, a, c, u, o) + }, + decryptBlock: function(e, t) { + var n = e[t + 1]; + e[t + 1] = e[t + 3], e[t + 3] = n, this._doCryptBlock(e, t, this._invKeySchedule, l, d, p, h, i), n = e[t + 1], e[t + 1] = e[t + 3], e[t + 3] = n + }, + _doCryptBlock: function(e, t, n, r, o, i, s, a) { + for (var c = this._nRounds, u = e[t] ^ n[0], l = e[t + 1] ^ n[1], d = e[t + 2] ^ n[2], p = e[t + 3] ^ n[3], h = 4, m = 1; m < c; m++) { + var f = r[u >>> 24] ^ o[l >>> 16 & 255] ^ i[d >>> 8 & 255] ^ s[255 & p] ^ n[h++], + g = r[l >>> 24] ^ o[d >>> 16 & 255] ^ i[p >>> 8 & 255] ^ s[255 & u] ^ n[h++], + y = r[d >>> 24] ^ o[p >>> 16 & 255] ^ i[u >>> 8 & 255] ^ s[255 & l] ^ n[h++], + _ = r[p >>> 24] ^ o[u >>> 16 & 255] ^ i[l >>> 8 & 255] ^ s[255 & d] ^ n[h++]; + u = f, l = g, d = y, p = _ + } + f = (a[u >>> 24] << 24 | a[l >>> 16 & 255] << 16 | a[d >>> 8 & 255] << 8 | a[255 & p]) ^ n[h++], g = (a[l >>> 24] << 24 | a[d >>> 16 & 255] << 16 | a[p >>> 8 & 255] << 8 | a[255 & u]) ^ n[h++], y = (a[d >>> 24] << 24 | a[p >>> 16 & 255] << 16 | a[u >>> 8 & 255] << 8 | a[255 & l]) ^ n[h++], _ = (a[p >>> 24] << 24 | a[u >>> 16 & 255] << 16 | a[l >>> 8 & 255] << 8 | a[255 & d]) ^ n[h++], e[t] = f, e[t + 1] = g, e[t + 2] = y, e[t + 3] = _ + }, + keySize: 8 + }); + e.AES = t._createHelper(f) + }(), r.AES) + }, + 8976: function(e, t, n) { + var r, o, i, s, a, c, u, l, d, p, h, m, f, g, y, _, v, b, k; + e.exports = (r = n(8112), n(6165), void(r.lib.Cipher || (o = r, i = o.lib, s = i.Base, a = i.WordArray, c = i.BufferedBlockAlgorithm, u = o.enc, u.Utf8, l = u.Base64, d = o.algo.EvpKDF, p = i.Cipher = c.extend({ + cfg: s.extend(), + createEncryptor: function(e, t) { + return this.create(this._ENC_XFORM_MODE, e, t) + }, + createDecryptor: function(e, t) { + return this.create(this._DEC_XFORM_MODE, e, t) + }, + init: function(e, t, n) { + this.cfg = this.cfg.extend(n), this._xformMode = e, this._key = t, this.reset() + }, + reset: function() { + c.reset.call(this), this._doReset() + }, + process: function(e) { + return this._append(e), this._process() + }, + finalize: function(e) { + return e && this._append(e), this._doFinalize() + }, + keySize: 4, + ivSize: 4, + _ENC_XFORM_MODE: 1, + _DEC_XFORM_MODE: 2, + _createHelper: function() { + function e(e) { + return "string" == typeof e ? k : v + } + return function(t) { + return { + encrypt: function(n, r, o) { + return e(r).encrypt(t, n, r, o) + }, + decrypt: function(n, r, o) { + return e(r).decrypt(t, n, r, o) + } + } + } + }() + }), i.StreamCipher = p.extend({ + _doFinalize: function() { + return this._process(!0) + }, + blockSize: 1 + }), h = o.mode = {}, m = i.BlockCipherMode = s.extend({ + createEncryptor: function(e, t) { + return this.Encryptor.create(e, t) + }, + createDecryptor: function(e, t) { + return this.Decryptor.create(e, t) + }, + init: function(e, t) { + this._cipher = e, this._iv = t + } + }), f = h.CBC = function() { + var e = m.extend(); + + function t(e, t, n) { + var r, o = this._iv; + o ? (r = o, this._iv = void 0) : r = this._prevBlock; + for (var i = 0; i < n; i++) e[t + i] ^= r[i] + } + return e.Encryptor = e.extend({ + processBlock: function(e, n) { + var r = this._cipher, + o = r.blockSize; + t.call(this, e, n, o), r.encryptBlock(e, n), this._prevBlock = e.slice(n, n + o) + } + }), e.Decryptor = e.extend({ + processBlock: function(e, n) { + var r = this._cipher, + o = r.blockSize, + i = e.slice(n, n + o); + r.decryptBlock(e, n), t.call(this, e, n, o), this._prevBlock = i + } + }), e + }(), g = (o.pad = {}).Pkcs7 = { + pad: function(e, t) { + for (var n = 4 * t, r = n - e.sigBytes % n, o = r << 24 | r << 16 | r << 8 | r, i = [], s = 0; s < r; s += 4) i.push(o); + var c = a.create(i, r); + e.concat(c) + }, + unpad: function(e) { + var t = 255 & e.words[e.sigBytes - 1 >>> 2]; + e.sigBytes -= t + } + }, i.BlockCipher = p.extend({ + cfg: p.cfg.extend({ + mode: f, + padding: g + }), + reset: function() { + var e; + p.reset.call(this); + var t = this.cfg, + n = t.iv, + r = t.mode; + this._xformMode == this._ENC_XFORM_MODE ? e = r.createEncryptor : (e = r.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == e ? this._mode.init(this, n && n.words) : (this._mode = e.call(r, this, n && n.words), this._mode.__creator = e) + }, + _doProcessBlock: function(e, t) { + this._mode.processBlock(e, t) + }, + _doFinalize: function() { + var e, t = this.cfg.padding; + return this._xformMode == this._ENC_XFORM_MODE ? (t.pad(this._data, this.blockSize), e = this._process(!0)) : (e = this._process(!0), t.unpad(e)), e + }, + blockSize: 4 + }), y = i.CipherParams = s.extend({ + init: function(e) { + this.mixIn(e) + }, + toString: function(e) { + return (e || this.formatter).stringify(this) + } + }), _ = (o.format = {}).OpenSSL = { + stringify: function(e) { + var t = e.ciphertext, + n = e.salt; + return (n ? a.create([1398893684, 1701076831]).concat(n).concat(t) : t).toString(l) + }, + parse: function(e) { + var t, n = l.parse(e), + r = n.words; + return 1398893684 == r[0] && 1701076831 == r[1] && (t = a.create(r.slice(2, 4)), r.splice(0, 4), n.sigBytes -= 16), y.create({ + ciphertext: n, + salt: t + }) + } + }, v = i.SerializableCipher = s.extend({ + cfg: s.extend({ + format: _ + }), + encrypt: function(e, t, n, r) { + r = this.cfg.extend(r); + var o = e.createEncryptor(n, r), + i = o.finalize(t), + s = o.cfg; + return y.create({ + ciphertext: i, + key: n, + iv: s.iv, + algorithm: e, + mode: s.mode, + padding: s.padding, + blockSize: e.blockSize, + formatter: r.format + }) + }, + decrypt: function(e, t, n, r) { + return r = this.cfg.extend(r), t = this._parse(t, r.format), e.createDecryptor(n, r).finalize(t.ciphertext) + }, + _parse: function(e, t) { + return "string" == typeof e ? t.parse(e, this) : e + } + }), b = (o.kdf = {}).OpenSSL = { + execute: function(e, t, n, r) { + r || (r = a.random(8)); + var o = d.create({ + keySize: t + n + }).compute(e, r), + i = a.create(o.words.slice(t), 4 * n); + return o.sigBytes = 4 * t, y.create({ + key: o, + iv: i, + salt: r + }) + } + }, k = i.PasswordBasedCipher = v.extend({ + cfg: v.cfg.extend({ + kdf: b + }), + encrypt: function(e, t, n, r) { + var o = (r = this.cfg.extend(r)).kdf.execute(n, e.keySize, e.ivSize); + r.iv = o.iv; + var i = v.encrypt.call(this, e, t, o.key, r); + return i.mixIn(o), i + }, + decrypt: function(e, t, n, r) { + r = this.cfg.extend(r), t = this._parse(t, r.format); + var o = r.kdf.execute(n, e.keySize, e.ivSize, t.salt); + return r.iv = o.iv, v.decrypt.call(this, e, t, o.key, r) + } + })))) + }, + 8112: function(e, t, n) { + var r; + e.exports = (r = r || function(e, t) { + var r; + if ("undefined" != typeof window && window.crypto && (r = window.crypto), !r && "undefined" != typeof window && window.msCrypto && (r = window.msCrypto), !r && "undefined" != typeof global && global.crypto && (r = global.crypto), !r) try { + r = n(6113) + } catch (e) {} + var o = function() { + if (r) { + if ("function" == typeof r.getRandomValues) try { + return r.getRandomValues(new Uint32Array(1))[0] + } catch (e) {} + if ("function" == typeof r.randomBytes) try { + return r.randomBytes(4).readInt32LE() + } catch (e) {} + } + throw new Error("Native crypto module could not be used to get secure random number.") + }, + i = Object.create || function() { + function e() {} + return function(t) { + var n; + return e.prototype = t, n = new e, e.prototype = null, n + } + }(), + s = {}, + a = s.lib = {}, + c = a.Base = { + extend: function(e) { + var t = i(this); + return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function() { + t.$super.init.apply(this, arguments) + }), t.init.prototype = t, t.$super = this, t + }, + create: function() { + var e = this.extend(); + return e.init.apply(e, arguments), e + }, + init: function() {}, + mixIn: function(e) { + for (var t in e) e.hasOwnProperty(t) && (this[t] = e[t]); + e.hasOwnProperty("toString") && (this.toString = e.toString) + }, + clone: function() { + return this.init.prototype.extend(this) + } + }, + u = a.WordArray = c.extend({ + init: function(e, t) { + e = this.words = e || [], this.sigBytes = null != t ? t : 4 * e.length + }, + toString: function(e) { + return (e || d).stringify(this) + }, + concat: function(e) { + var t = this.words, + n = e.words, + r = this.sigBytes, + o = e.sigBytes; + if (this.clamp(), r % 4) + for (var i = 0; i < o; i++) { + var s = n[i >>> 2] >>> 24 - i % 4 * 8 & 255; + t[r + i >>> 2] |= s << 24 - (r + i) % 4 * 8 + } else + for (i = 0; i < o; i += 4) t[r + i >>> 2] = n[i >>> 2]; + return this.sigBytes += o, this + }, + clamp: function() { + var t = this.words, + n = this.sigBytes; + t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, t.length = e.ceil(n / 4) + }, + clone: function() { + var e = c.clone.call(this); + return e.words = this.words.slice(0), e + }, + random: function(e) { + for (var t = [], n = 0; n < e; n += 4) t.push(o()); + return new u.init(t, e) + } + }), + l = s.enc = {}, + d = l.Hex = { + stringify: function(e) { + for (var t = e.words, n = e.sigBytes, r = [], o = 0; o < n; o++) { + var i = t[o >>> 2] >>> 24 - o % 4 * 8 & 255; + r.push((i >>> 4).toString(16)), r.push((15 & i).toString(16)) + } + return r.join("") + }, + parse: function(e) { + for (var t = e.length, n = [], r = 0; r < t; r += 2) n[r >>> 3] |= parseInt(e.substr(r, 2), 16) << 24 - r % 8 * 4; + return new u.init(n, t / 2) + } + }, + p = l.Latin1 = { + stringify: function(e) { + for (var t = e.words, n = e.sigBytes, r = [], o = 0; o < n; o++) { + var i = t[o >>> 2] >>> 24 - o % 4 * 8 & 255; + r.push(String.fromCharCode(i)) + } + return r.join("") + }, + parse: function(e) { + for (var t = e.length, n = [], r = 0; r < t; r++) n[r >>> 2] |= (255 & e.charCodeAt(r)) << 24 - r % 4 * 8; + return new u.init(n, t) + } + }, + h = l.Utf8 = { + stringify: function(e) { + try { + return decodeURIComponent(escape(p.stringify(e))) + } catch (e) { + throw new Error("Malformed UTF-8 data") + } + }, + parse: function(e) { + return p.parse(unescape(encodeURIComponent(e))) + } + }, + m = a.BufferedBlockAlgorithm = c.extend({ + reset: function() { + this._data = new u.init, this._nDataBytes = 0 + }, + _append: function(e) { + "string" == typeof e && (e = h.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes + }, + _process: function(t) { + var n, r = this._data, + o = r.words, + i = r.sigBytes, + s = this.blockSize, + a = i / (4 * s), + c = (a = t ? e.ceil(a) : e.max((0 | a) - this._minBufferSize, 0)) * s, + l = e.min(4 * c, i); + if (c) { + for (var d = 0; d < c; d += s) this._doProcessBlock(o, d); + n = o.splice(0, c), r.sigBytes -= l + } + return new u.init(n, l) + }, + clone: function() { + var e = c.clone.call(this); + return e._data = this._data.clone(), e + }, + _minBufferSize: 0 + }), + f = (a.Hasher = m.extend({ + cfg: c.extend(), + init: function(e) { + this.cfg = this.cfg.extend(e), this.reset() + }, + reset: function() { + m.reset.call(this), this._doReset() + }, + update: function(e) { + return this._append(e), this._process(), this + }, + finalize: function(e) { + return e && this._append(e), this._doFinalize() + }, + blockSize: 16, + _createHelper: function(e) { + return function(t, n) { + return new e.init(n).finalize(t) + } + }, + _createHmacHelper: function(e) { + return function(t, n) { + return new f.HMAC.init(e, n).finalize(t) + } + } + }), s.algo = {}); + return s + }(Math), r) + }, + 8885: function(e, t, n) { + var r, o, i; + e.exports = (r = n(8112), i = (o = r).lib.WordArray, o.enc.Base64 = { + stringify: function(e) { + var t = e.words, + n = e.sigBytes, + r = this._map; + e.clamp(); + for (var o = [], i = 0; i < n; i += 3) + for (var s = (t[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 16 | (t[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255) << 8 | t[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255, a = 0; a < 4 && i + .75 * a < n; a++) o.push(r.charAt(s >>> 6 * (3 - a) & 63)); + var c = r.charAt(64); + if (c) + for (; o.length % 4;) o.push(c); + return o.join("") + }, + parse: function(e) { + var t = e.length, + n = this._map, + r = this._reverseMap; + if (!r) { + r = this._reverseMap = []; + for (var o = 0; o < n.length; o++) r[n.charCodeAt(o)] = o + } + var s = n.charAt(64); + if (s) { + var a = e.indexOf(s); - 1 !== a && (t = a) + } + return function(e, t, n) { + for (var r = [], o = 0, s = 0; s < t; s++) + if (s % 4) { + var a = n[e.charCodeAt(s - 1)] << s % 4 * 2 | n[e.charCodeAt(s)] >>> 6 - s % 4 * 2; + r[o >>> 2] |= a << 24 - o % 4 * 8, o++ + } return i.create(r, o) + }(e, t, r) + }, + _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" + }, r.enc.Base64) + }, + 8559: function(e, t, n) { + var r; + e.exports = (r = n(8112), function() { + var e = r, + t = e.lib.WordArray, + n = e.enc; + + function o(e) { + return e << 8 & 4278255360 | e >>> 8 & 16711935 + } + n.Utf16 = n.Utf16BE = { + stringify: function(e) { + for (var t = e.words, n = e.sigBytes, r = [], o = 0; o < n; o += 2) { + var i = t[o >>> 2] >>> 16 - o % 4 * 8 & 65535; + r.push(String.fromCharCode(i)) + } + return r.join("") + }, + parse: function(e) { + for (var n = e.length, r = [], o = 0; o < n; o++) r[o >>> 1] |= e.charCodeAt(o) << 16 - o % 2 * 16; + return t.create(r, 2 * n) + } + }, n.Utf16LE = { + stringify: function(e) { + for (var t = e.words, n = e.sigBytes, r = [], i = 0; i < n; i += 2) { + var s = o(t[i >>> 2] >>> 16 - i % 4 * 8 & 65535); + r.push(String.fromCharCode(s)) + } + return r.join("") + }, + parse: function(e) { + for (var n = e.length, r = [], i = 0; i < n; i++) r[i >>> 1] |= o(e.charCodeAt(i) << 16 - i % 2 * 16); + return t.create(r, 2 * n) + } + } + }(), r.enc.Utf16) + }, + 6165: function(e, t, n) { + var r, o, i, s, a, c, u, l; + e.exports = (l = n(8112), n(1284), n(3456), i = (o = (r = l).lib).Base, s = o.WordArray, c = (a = r.algo).MD5, u = a.EvpKDF = i.extend({ + cfg: i.extend({ + keySize: 4, + hasher: c, + iterations: 1 + }), + init: function(e) { + this.cfg = this.cfg.extend(e) + }, + compute: function(e, t) { + for (var n, r = this.cfg, o = r.hasher.create(), i = s.create(), a = i.words, c = r.keySize, u = r.iterations; a.length < c;) { + n && o.update(n), n = o.update(e).finalize(t), o.reset(); + for (var l = 1; l < u; l++) n = o.finalize(n), o.reset(); + i.concat(n) + } + return i.sigBytes = 4 * c, i + } + }), r.EvpKDF = function(e, t, n) { + return u.create(n).compute(e, t) + }, l.EvpKDF) + }, + 1371: function(e, t, n) { + var r, o, i, s; + e.exports = (s = n(8112), n(8976), o = (r = s).lib.CipherParams, i = r.enc.Hex, r.format.Hex = { + stringify: function(e) { + return e.ciphertext.toString(i) + }, + parse: function(e) { + var t = i.parse(e); + return o.create({ + ciphertext: t + }) + } + }, s.format.Hex) + }, + 3456: function(e, t, n) { + var r, o, i; + e.exports = (o = (r = n(8112)).lib.Base, i = r.enc.Utf8, void(r.algo.HMAC = o.extend({ + init: function(e, t) { + e = this._hasher = new e.init, "string" == typeof t && (t = i.parse(t)); + var n = e.blockSize, + r = 4 * n; + t.sigBytes > r && (t = e.finalize(t)), t.clamp(); + for (var o = this._oKey = t.clone(), s = this._iKey = t.clone(), a = o.words, c = s.words, u = 0; u < n; u++) a[u] ^= 1549556828, c[u] ^= 909522486; + o.sigBytes = s.sigBytes = r, this.reset() + }, + reset: function() { + var e = this._hasher; + e.reset(), e.update(this._iKey) + }, + update: function(e) { + return this._hasher.update(e), this + }, + finalize: function(e) { + var t = this._hasher, + n = t.finalize(e); + return t.reset(), t.finalize(this._oKey.clone().concat(n)) + } + }))) + }, + 6679: function(e, t, n) { + var r; + e.exports = (r = n(8112), n(8400), n(3966), n(8559), n(8885), n(4678), n(1284), n(2232), n(3816), n(9039), n(1007), n(1455), n(3787), n(3456), n(9220), n(6165), n(8976), n(8581), n(8258), n(4373), n(5207), n(4800), n(3866), n(7051), n(6863), n(2864), n(6261), n(1371), n(6725), n(9708), n(3954), n(5129), n(8107), r) + }, + 3966: function(e, t, n) { + var r; + e.exports = (r = n(8112), function() { + if ("function" == typeof ArrayBuffer) { + var e = r.lib.WordArray, + t = e.init, + n = e.init = function(e) { + if (e instanceof ArrayBuffer && (e = new Uint8Array(e)), (e instanceof Int8Array || "undefined" != typeof Uint8ClampedArray && e instanceof Uint8ClampedArray || e instanceof Int16Array || e instanceof Uint16Array || e instanceof Int32Array || e instanceof Uint32Array || e instanceof Float32Array || e instanceof Float64Array) && (e = new Uint8Array(e.buffer, e.byteOffset, e.byteLength)), e instanceof Uint8Array) { + for (var n = e.byteLength, r = [], o = 0; o < n; o++) r[o >>> 2] |= e[o] << 24 - o % 4 * 8; + t.call(this, r, n) + } else t.apply(this, arguments) + }; + n.prototype = e + } + }(), r.lib.WordArray) + }, + 4678: function(e, t, n) { + var r; + e.exports = (r = n(8112), function(e) { + var t = r, + n = t.lib, + o = n.WordArray, + i = n.Hasher, + s = t.algo, + a = []; + ! function() { + for (var t = 0; t < 64; t++) a[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0 + }(); + var c = s.MD5 = i.extend({ + _doReset: function() { + this._hash = new o.init([1732584193, 4023233417, 2562383102, 271733878]) + }, + _doProcessBlock: function(e, t) { + for (var n = 0; n < 16; n++) { + var r = t + n, + o = e[r]; + e[r] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8) + } + var i = this._hash.words, + s = e[t + 0], + c = e[t + 1], + h = e[t + 2], + m = e[t + 3], + f = e[t + 4], + g = e[t + 5], + y = e[t + 6], + _ = e[t + 7], + v = e[t + 8], + b = e[t + 9], + k = e[t + 10], + w = e[t + 11], + j = e[t + 12], + x = e[t + 13], + E = e[t + 14], + C = e[t + 15], + S = i[0], + T = i[1], + P = i[2], + I = i[3]; + S = u(S, T, P, I, s, 7, a[0]), I = u(I, S, T, P, c, 12, a[1]), P = u(P, I, S, T, h, 17, a[2]), T = u(T, P, I, S, m, 22, a[3]), S = u(S, T, P, I, f, 7, a[4]), I = u(I, S, T, P, g, 12, a[5]), P = u(P, I, S, T, y, 17, a[6]), T = u(T, P, I, S, _, 22, a[7]), S = u(S, T, P, I, v, 7, a[8]), I = u(I, S, T, P, b, 12, a[9]), P = u(P, I, S, T, k, 17, a[10]), T = u(T, P, I, S, w, 22, a[11]), S = u(S, T, P, I, j, 7, a[12]), I = u(I, S, T, P, x, 12, a[13]), P = u(P, I, S, T, E, 17, a[14]), S = l(S, T = u(T, P, I, S, C, 22, a[15]), P, I, c, 5, a[16]), I = l(I, S, T, P, y, 9, a[17]), P = l(P, I, S, T, w, 14, a[18]), T = l(T, P, I, S, s, 20, a[19]), S = l(S, T, P, I, g, 5, a[20]), I = l(I, S, T, P, k, 9, a[21]), P = l(P, I, S, T, C, 14, a[22]), T = l(T, P, I, S, f, 20, a[23]), S = l(S, T, P, I, b, 5, a[24]), I = l(I, S, T, P, E, 9, a[25]), P = l(P, I, S, T, m, 14, a[26]), T = l(T, P, I, S, v, 20, a[27]), S = l(S, T, P, I, x, 5, a[28]), I = l(I, S, T, P, h, 9, a[29]), P = l(P, I, S, T, _, 14, a[30]), S = d(S, T = l(T, P, I, S, j, 20, a[31]), P, I, g, 4, a[32]), I = d(I, S, T, P, v, 11, a[33]), P = d(P, I, S, T, w, 16, a[34]), T = d(T, P, I, S, E, 23, a[35]), S = d(S, T, P, I, c, 4, a[36]), I = d(I, S, T, P, f, 11, a[37]), P = d(P, I, S, T, _, 16, a[38]), T = d(T, P, I, S, k, 23, a[39]), S = d(S, T, P, I, x, 4, a[40]), I = d(I, S, T, P, s, 11, a[41]), P = d(P, I, S, T, m, 16, a[42]), T = d(T, P, I, S, y, 23, a[43]), S = d(S, T, P, I, b, 4, a[44]), I = d(I, S, T, P, j, 11, a[45]), P = d(P, I, S, T, C, 16, a[46]), S = p(S, T = d(T, P, I, S, h, 23, a[47]), P, I, s, 6, a[48]), I = p(I, S, T, P, _, 10, a[49]), P = p(P, I, S, T, E, 15, a[50]), T = p(T, P, I, S, g, 21, a[51]), S = p(S, T, P, I, j, 6, a[52]), I = p(I, S, T, P, m, 10, a[53]), P = p(P, I, S, T, k, 15, a[54]), T = p(T, P, I, S, c, 21, a[55]), S = p(S, T, P, I, v, 6, a[56]), I = p(I, S, T, P, C, 10, a[57]), P = p(P, I, S, T, y, 15, a[58]), T = p(T, P, I, S, x, 21, a[59]), S = p(S, T, P, I, f, 6, a[60]), I = p(I, S, T, P, w, 10, a[61]), P = p(P, I, S, T, h, 15, a[62]), T = p(T, P, I, S, b, 21, a[63]), i[0] = i[0] + S | 0, i[1] = i[1] + T | 0, i[2] = i[2] + P | 0, i[3] = i[3] + I | 0 + }, + _doFinalize: function() { + var t = this._data, + n = t.words, + r = 8 * this._nDataBytes, + o = 8 * t.sigBytes; + n[o >>> 5] |= 128 << 24 - o % 32; + var i = e.floor(r / 4294967296), + s = r; + n[15 + (o + 64 >>> 9 << 4)] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8), n[14 + (o + 64 >>> 9 << 4)] = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8), t.sigBytes = 4 * (n.length + 1), this._process(); + for (var a = this._hash, c = a.words, u = 0; u < 4; u++) { + var l = c[u]; + c[u] = 16711935 & (l << 8 | l >>> 24) | 4278255360 & (l << 24 | l >>> 8) + } + return a + }, + clone: function() { + var e = i.clone.call(this); + return e._hash = this._hash.clone(), e + } + }); + + function u(e, t, n, r, o, i, s) { + var a = e + (t & n | ~t & r) + o + s; + return (a << i | a >>> 32 - i) + t + } + + function l(e, t, n, r, o, i, s) { + var a = e + (t & r | n & ~r) + o + s; + return (a << i | a >>> 32 - i) + t + } + + function d(e, t, n, r, o, i, s) { + var a = e + (t ^ n ^ r) + o + s; + return (a << i | a >>> 32 - i) + t + } + + function p(e, t, n, r, o, i, s) { + var a = e + (n ^ (t | ~r)) + o + s; + return (a << i | a >>> 32 - i) + t + } + t.MD5 = i._createHelper(c), t.HmacMD5 = i._createHmacHelper(c) + }(Math), r.MD5) + }, + 8581: function(e, t, n) { + var r; + e.exports = (r = n(8112), n(8976), r.mode.CFB = function() { + var e = r.lib.BlockCipherMode.extend(); + + function t(e, t, n, r) { + var o, i = this._iv; + i ? (o = i.slice(0), this._iv = void 0) : o = this._prevBlock, r.encryptBlock(o, 0); + for (var s = 0; s < n; s++) e[t + s] ^= o[s] + } + return e.Encryptor = e.extend({ + processBlock: function(e, n) { + var r = this._cipher, + o = r.blockSize; + t.call(this, e, n, o, r), this._prevBlock = e.slice(n, n + o) + } + }), e.Decryptor = e.extend({ + processBlock: function(e, n) { + var r = this._cipher, + o = r.blockSize, + i = e.slice(n, n + o); + t.call(this, e, n, o, r), this._prevBlock = i + } + }), e + }(), r.mode.CFB) + }, + 4373: function(e, t, n) { + var r; + e.exports = (r = n(8112), n(8976), r.mode.CTRGladman = function() { + var e = r.lib.BlockCipherMode.extend(); + + function t(e) { + if (255 == (e >> 24 & 255)) { + var t = e >> 16 & 255, + n = e >> 8 & 255, + r = 255 & e; + 255 === t ? (t = 0, 255 === n ? (n = 0, 255 === r ? r = 0 : ++r) : ++n) : ++t, e = 0, e += t << 16, e += n << 8, e += r + } else e += 1 << 24; + return e + } + var n = e.Encryptor = e.extend({ + processBlock: function(e, n) { + var r = this._cipher, + o = r.blockSize, + i = this._iv, + s = this._counter; + i && (s = this._counter = i.slice(0), this._iv = void 0), + function(e) { + 0 === (e[0] = t(e[0])) && (e[1] = t(e[1])) + }(s); + var a = s.slice(0); + r.encryptBlock(a, 0); + for (var c = 0; c < o; c++) e[n + c] ^= a[c] + } + }); + return e.Decryptor = n, e + }(), r.mode.CTRGladman) + }, + 8258: function(e, t, n) { + var r, o, i; + e.exports = (i = n(8112), n(8976), i.mode.CTR = (o = (r = i.lib.BlockCipherMode.extend()).Encryptor = r.extend({ + processBlock: function(e, t) { + var n = this._cipher, + r = n.blockSize, + o = this._iv, + i = this._counter; + o && (i = this._counter = o.slice(0), this._iv = void 0); + var s = i.slice(0); + n.encryptBlock(s, 0), i[r - 1] = i[r - 1] + 1 | 0; + for (var a = 0; a < r; a++) e[t + a] ^= s[a] + } + }), r.Decryptor = o, r), i.mode.CTR) + }, + 4800: function(e, t, n) { + var r, o; + e.exports = (o = n(8112), n(8976), o.mode.ECB = ((r = o.lib.BlockCipherMode.extend()).Encryptor = r.extend({ + processBlock: function(e, t) { + this._cipher.encryptBlock(e, t) + } + }), r.Decryptor = r.extend({ + processBlock: function(e, t) { + this._cipher.decryptBlock(e, t) + } + }), r), o.mode.ECB) + }, + 5207: function(e, t, n) { + var r, o, i; + e.exports = (i = n(8112), n(8976), i.mode.OFB = (o = (r = i.lib.BlockCipherMode.extend()).Encryptor = r.extend({ + processBlock: function(e, t) { + var n = this._cipher, + r = n.blockSize, + o = this._iv, + i = this._keystream; + o && (i = this._keystream = o.slice(0), this._iv = void 0), n.encryptBlock(i, 0); + for (var s = 0; s < r; s++) e[t + s] ^= i[s] + } + }), r.Decryptor = o, r), i.mode.OFB) + }, + 3866: function(e, t, n) { + var r; + e.exports = (r = n(8112), n(8976), r.pad.AnsiX923 = { + pad: function(e, t) { + var n = e.sigBytes, + r = 4 * t, + o = r - n % r, + i = n + o - 1; + e.clamp(), e.words[i >>> 2] |= o << 24 - i % 4 * 8, e.sigBytes += o + }, + unpad: function(e) { + var t = 255 & e.words[e.sigBytes - 1 >>> 2]; + e.sigBytes -= t + } + }, r.pad.Ansix923) + }, + 7051: function(e, t, n) { + var r; + e.exports = (r = n(8112), n(8976), r.pad.Iso10126 = { + pad: function(e, t) { + var n = 4 * t, + o = n - e.sigBytes % n; + e.concat(r.lib.WordArray.random(o - 1)).concat(r.lib.WordArray.create([o << 24], 1)) + }, + unpad: function(e) { + var t = 255 & e.words[e.sigBytes - 1 >>> 2]; + e.sigBytes -= t + } + }, r.pad.Iso10126) + }, + 6863: function(e, t, n) { + var r; + e.exports = (r = n(8112), n(8976), r.pad.Iso97971 = { + pad: function(e, t) { + e.concat(r.lib.WordArray.create([2147483648], 1)), r.pad.ZeroPadding.pad(e, t) + }, + unpad: function(e) { + r.pad.ZeroPadding.unpad(e), e.sigBytes-- + } + }, r.pad.Iso97971) + }, + 6261: function(e, t, n) { + var r; + e.exports = (r = n(8112), n(8976), r.pad.NoPadding = { + pad: function() {}, + unpad: function() {} + }, r.pad.NoPadding) + }, + 2864: function(e, t, n) { + var r; + e.exports = (r = n(8112), n(8976), r.pad.ZeroPadding = { + pad: function(e, t) { + var n = 4 * t; + e.clamp(), e.sigBytes += n - (e.sigBytes % n || n) + }, + unpad: function(e) { + var t = e.words, + n = e.sigBytes - 1; + for (n = e.sigBytes - 1; n >= 0; n--) + if (t[n >>> 2] >>> 24 - n % 4 * 8 & 255) { + e.sigBytes = n + 1; + break + } + } + }, r.pad.ZeroPadding) + }, + 9220: function(e, t, n) { + var r, o, i, s, a, c, u, l, d; + e.exports = (d = n(8112), n(1284), n(3456), i = (o = (r = d).lib).Base, s = o.WordArray, c = (a = r.algo).SHA1, u = a.HMAC, l = a.PBKDF2 = i.extend({ + cfg: i.extend({ + keySize: 4, + hasher: c, + iterations: 1 + }), + init: function(e) { + this.cfg = this.cfg.extend(e) + }, + compute: function(e, t) { + for (var n = this.cfg, r = u.create(n.hasher, e), o = s.create(), i = s.create([1]), a = o.words, c = i.words, l = n.keySize, d = n.iterations; a.length < l;) { + var p = r.update(t).finalize(i); + r.reset(); + for (var h = p.words, m = h.length, f = p, g = 1; g < d; g++) { + f = r.finalize(f), r.reset(); + for (var y = f.words, _ = 0; _ < m; _++) h[_] ^= y[_] + } + o.concat(p), c[0]++ + } + return o.sigBytes = 4 * l, o + } + }), r.PBKDF2 = function(e, t, n) { + return l.create(n).compute(e, t) + }, d.PBKDF2) + }, + 8107: function(e, t, n) { + var r; + e.exports = (r = n(8112), n(8885), n(4678), n(6165), n(8976), function() { + var e = r, + t = e.lib.StreamCipher, + n = e.algo, + o = [], + i = [], + s = [], + a = n.RabbitLegacy = t.extend({ + _doReset: function() { + var e = this._key.words, + t = this.cfg.iv, + n = this._X = [e[0], e[3] << 16 | e[2] >>> 16, e[1], e[0] << 16 | e[3] >>> 16, e[2], e[1] << 16 | e[0] >>> 16, e[3], e[2] << 16 | e[1] >>> 16], + r = this._C = [e[2] << 16 | e[2] >>> 16, 4294901760 & e[0] | 65535 & e[1], e[3] << 16 | e[3] >>> 16, 4294901760 & e[1] | 65535 & e[2], e[0] << 16 | e[0] >>> 16, 4294901760 & e[2] | 65535 & e[3], e[1] << 16 | e[1] >>> 16, 4294901760 & e[3] | 65535 & e[0]]; + this._b = 0; + for (var o = 0; o < 4; o++) c.call(this); + for (o = 0; o < 8; o++) r[o] ^= n[o + 4 & 7]; + if (t) { + var i = t.words, + s = i[0], + a = i[1], + u = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8), + l = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8), + d = u >>> 16 | 4294901760 & l, + p = l << 16 | 65535 & u; + for (r[0] ^= u, r[1] ^= d, r[2] ^= l, r[3] ^= p, r[4] ^= u, r[5] ^= d, r[6] ^= l, r[7] ^= p, o = 0; o < 4; o++) c.call(this) + } + }, + _doProcessBlock: function(e, t) { + var n = this._X; + c.call(this), o[0] = n[0] ^ n[5] >>> 16 ^ n[3] << 16, o[1] = n[2] ^ n[7] >>> 16 ^ n[5] << 16, o[2] = n[4] ^ n[1] >>> 16 ^ n[7] << 16, o[3] = n[6] ^ n[3] >>> 16 ^ n[1] << 16; + for (var r = 0; r < 4; r++) o[r] = 16711935 & (o[r] << 8 | o[r] >>> 24) | 4278255360 & (o[r] << 24 | o[r] >>> 8), e[t + r] ^= o[r] + }, + blockSize: 4, + ivSize: 2 + }); + + function c() { + for (var e = this._X, t = this._C, n = 0; n < 8; n++) i[n] = t[n]; + for (t[0] = t[0] + 1295307597 + this._b | 0, t[1] = t[1] + 3545052371 + (t[0] >>> 0 < i[0] >>> 0 ? 1 : 0) | 0, t[2] = t[2] + 886263092 + (t[1] >>> 0 < i[1] >>> 0 ? 1 : 0) | 0, t[3] = t[3] + 1295307597 + (t[2] >>> 0 < i[2] >>> 0 ? 1 : 0) | 0, t[4] = t[4] + 3545052371 + (t[3] >>> 0 < i[3] >>> 0 ? 1 : 0) | 0, t[5] = t[5] + 886263092 + (t[4] >>> 0 < i[4] >>> 0 ? 1 : 0) | 0, t[6] = t[6] + 1295307597 + (t[5] >>> 0 < i[5] >>> 0 ? 1 : 0) | 0, t[7] = t[7] + 3545052371 + (t[6] >>> 0 < i[6] >>> 0 ? 1 : 0) | 0, this._b = t[7] >>> 0 < i[7] >>> 0 ? 1 : 0, n = 0; n < 8; n++) { + var r = e[n] + t[n], + o = 65535 & r, + a = r >>> 16, + c = ((o * o >>> 17) + o * a >>> 15) + a * a, + u = ((4294901760 & r) * r | 0) + ((65535 & r) * r | 0); + s[n] = c ^ u + } + e[0] = s[0] + (s[7] << 16 | s[7] >>> 16) + (s[6] << 16 | s[6] >>> 16) | 0, e[1] = s[1] + (s[0] << 8 | s[0] >>> 24) + s[7] | 0, e[2] = s[2] + (s[1] << 16 | s[1] >>> 16) + (s[0] << 16 | s[0] >>> 16) | 0, e[3] = s[3] + (s[2] << 8 | s[2] >>> 24) + s[1] | 0, e[4] = s[4] + (s[3] << 16 | s[3] >>> 16) + (s[2] << 16 | s[2] >>> 16) | 0, e[5] = s[5] + (s[4] << 8 | s[4] >>> 24) + s[3] | 0, e[6] = s[6] + (s[5] << 16 | s[5] >>> 16) + (s[4] << 16 | s[4] >>> 16) | 0, e[7] = s[7] + (s[6] << 8 | s[6] >>> 24) + s[5] | 0 + } + e.RabbitLegacy = t._createHelper(a) + }(), r.RabbitLegacy) + }, + 5129: function(e, t, n) { + var r; + e.exports = (r = n(8112), n(8885), n(4678), n(6165), n(8976), function() { + var e = r, + t = e.lib.StreamCipher, + n = e.algo, + o = [], + i = [], + s = [], + a = n.Rabbit = t.extend({ + _doReset: function() { + for (var e = this._key.words, t = this.cfg.iv, n = 0; n < 4; n++) e[n] = 16711935 & (e[n] << 8 | e[n] >>> 24) | 4278255360 & (e[n] << 24 | e[n] >>> 8); + var r = this._X = [e[0], e[3] << 16 | e[2] >>> 16, e[1], e[0] << 16 | e[3] >>> 16, e[2], e[1] << 16 | e[0] >>> 16, e[3], e[2] << 16 | e[1] >>> 16], + o = this._C = [e[2] << 16 | e[2] >>> 16, 4294901760 & e[0] | 65535 & e[1], e[3] << 16 | e[3] >>> 16, 4294901760 & e[1] | 65535 & e[2], e[0] << 16 | e[0] >>> 16, 4294901760 & e[2] | 65535 & e[3], e[1] << 16 | e[1] >>> 16, 4294901760 & e[3] | 65535 & e[0]]; + for (this._b = 0, n = 0; n < 4; n++) c.call(this); + for (n = 0; n < 8; n++) o[n] ^= r[n + 4 & 7]; + if (t) { + var i = t.words, + s = i[0], + a = i[1], + u = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8), + l = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8), + d = u >>> 16 | 4294901760 & l, + p = l << 16 | 65535 & u; + for (o[0] ^= u, o[1] ^= d, o[2] ^= l, o[3] ^= p, o[4] ^= u, o[5] ^= d, o[6] ^= l, o[7] ^= p, n = 0; n < 4; n++) c.call(this) + } + }, + _doProcessBlock: function(e, t) { + var n = this._X; + c.call(this), o[0] = n[0] ^ n[5] >>> 16 ^ n[3] << 16, o[1] = n[2] ^ n[7] >>> 16 ^ n[5] << 16, o[2] = n[4] ^ n[1] >>> 16 ^ n[7] << 16, o[3] = n[6] ^ n[3] >>> 16 ^ n[1] << 16; + for (var r = 0; r < 4; r++) o[r] = 16711935 & (o[r] << 8 | o[r] >>> 24) | 4278255360 & (o[r] << 24 | o[r] >>> 8), e[t + r] ^= o[r] + }, + blockSize: 4, + ivSize: 2 + }); + + function c() { + for (var e = this._X, t = this._C, n = 0; n < 8; n++) i[n] = t[n]; + for (t[0] = t[0] + 1295307597 + this._b | 0, t[1] = t[1] + 3545052371 + (t[0] >>> 0 < i[0] >>> 0 ? 1 : 0) | 0, t[2] = t[2] + 886263092 + (t[1] >>> 0 < i[1] >>> 0 ? 1 : 0) | 0, t[3] = t[3] + 1295307597 + (t[2] >>> 0 < i[2] >>> 0 ? 1 : 0) | 0, t[4] = t[4] + 3545052371 + (t[3] >>> 0 < i[3] >>> 0 ? 1 : 0) | 0, t[5] = t[5] + 886263092 + (t[4] >>> 0 < i[4] >>> 0 ? 1 : 0) | 0, t[6] = t[6] + 1295307597 + (t[5] >>> 0 < i[5] >>> 0 ? 1 : 0) | 0, t[7] = t[7] + 3545052371 + (t[6] >>> 0 < i[6] >>> 0 ? 1 : 0) | 0, this._b = t[7] >>> 0 < i[7] >>> 0 ? 1 : 0, n = 0; n < 8; n++) { + var r = e[n] + t[n], + o = 65535 & r, + a = r >>> 16, + c = ((o * o >>> 17) + o * a >>> 15) + a * a, + u = ((4294901760 & r) * r | 0) + ((65535 & r) * r | 0); + s[n] = c ^ u + } + e[0] = s[0] + (s[7] << 16 | s[7] >>> 16) + (s[6] << 16 | s[6] >>> 16) | 0, e[1] = s[1] + (s[0] << 8 | s[0] >>> 24) + s[7] | 0, e[2] = s[2] + (s[1] << 16 | s[1] >>> 16) + (s[0] << 16 | s[0] >>> 16) | 0, e[3] = s[3] + (s[2] << 8 | s[2] >>> 24) + s[1] | 0, e[4] = s[4] + (s[3] << 16 | s[3] >>> 16) + (s[2] << 16 | s[2] >>> 16) | 0, e[5] = s[5] + (s[4] << 8 | s[4] >>> 24) + s[3] | 0, e[6] = s[6] + (s[5] << 16 | s[5] >>> 16) + (s[4] << 16 | s[4] >>> 16) | 0, e[7] = s[7] + (s[6] << 8 | s[6] >>> 24) + s[5] | 0 + } + e.Rabbit = t._createHelper(a) + }(), r.Rabbit) + }, + 3954: function(e, t, n) { + var r; + e.exports = (r = n(8112), n(8885), n(4678), n(6165), n(8976), function() { + var e = r, + t = e.lib.StreamCipher, + n = e.algo, + o = n.RC4 = t.extend({ + _doReset: function() { + for (var e = this._key, t = e.words, n = e.sigBytes, r = this._S = [], o = 0; o < 256; o++) r[o] = o; + o = 0; + for (var i = 0; o < 256; o++) { + var s = o % n, + a = t[s >>> 2] >>> 24 - s % 4 * 8 & 255; + i = (i + r[o] + a) % 256; + var c = r[o]; + r[o] = r[i], r[i] = c + } + this._i = this._j = 0 + }, + _doProcessBlock: function(e, t) { + e[t] ^= i.call(this) + }, + keySize: 8, + ivSize: 0 + }); + + function i() { + for (var e = this._S, t = this._i, n = this._j, r = 0, o = 0; o < 4; o++) { + n = (n + e[t = (t + 1) % 256]) % 256; + var i = e[t]; + e[t] = e[n], e[n] = i, r |= e[(e[t] + e[n]) % 256] << 24 - 8 * o + } + return this._i = t, this._j = n, r + } + e.RC4 = t._createHelper(o); + var s = n.RC4Drop = o.extend({ + cfg: o.cfg.extend({ + drop: 192 + }), + _doReset: function() { + o._doReset.call(this); + for (var e = this.cfg.drop; e > 0; e--) i.call(this) + } + }); + e.RC4Drop = t._createHelper(s) + }(), r.RC4) + }, + 3787: function(e, t, n) { + var r; + e.exports = (r = n(8112), function(e) { + var t = r, + n = t.lib, + o = n.WordArray, + i = n.Hasher, + s = t.algo, + a = o.create([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]), + c = o.create([5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]), + u = o.create([11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6]), + l = o.create([8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]), + d = o.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), + p = o.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), + h = s.RIPEMD160 = i.extend({ + _doReset: function() { + this._hash = o.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]) + }, + _doProcessBlock: function(e, t) { + for (var n = 0; n < 16; n++) { + var r = t + n, + o = e[r]; + e[r] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8) + } + var i, s, h, b, k, w, j, x, E, C, S, T = this._hash.words, + P = d.words, + I = p.words, + R = a.words, + O = c.words, + A = u.words, + N = l.words; + for (w = i = T[0], j = s = T[1], x = h = T[2], E = b = T[3], C = k = T[4], n = 0; n < 80; n += 1) S = i + e[t + R[n]] | 0, S += n < 16 ? m(s, h, b) + P[0] : n < 32 ? f(s, h, b) + P[1] : n < 48 ? g(s, h, b) + P[2] : n < 64 ? y(s, h, b) + P[3] : _(s, h, b) + P[4], S = (S = v(S |= 0, A[n])) + k | 0, i = k, k = b, b = v(h, 10), h = s, s = S, S = w + e[t + O[n]] | 0, S += n < 16 ? _(j, x, E) + I[0] : n < 32 ? y(j, x, E) + I[1] : n < 48 ? g(j, x, E) + I[2] : n < 64 ? f(j, x, E) + I[3] : m(j, x, E) + I[4], S = (S = v(S |= 0, N[n])) + C | 0, w = C, C = E, E = v(x, 10), x = j, j = S; + S = T[1] + h + E | 0, T[1] = T[2] + b + C | 0, T[2] = T[3] + k + w | 0, T[3] = T[4] + i + j | 0, T[4] = T[0] + s + x | 0, T[0] = S + }, + _doFinalize: function() { + var e = this._data, + t = e.words, + n = 8 * this._nDataBytes, + r = 8 * e.sigBytes; + t[r >>> 5] |= 128 << 24 - r % 32, t[14 + (r + 64 >>> 9 << 4)] = 16711935 & (n << 8 | n >>> 24) | 4278255360 & (n << 24 | n >>> 8), e.sigBytes = 4 * (t.length + 1), this._process(); + for (var o = this._hash, i = o.words, s = 0; s < 5; s++) { + var a = i[s]; + i[s] = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8) + } + return o + }, + clone: function() { + var e = i.clone.call(this); + return e._hash = this._hash.clone(), e + } + }); + + function m(e, t, n) { + return e ^ t ^ n + } + + function f(e, t, n) { + return e & t | ~e & n + } + + function g(e, t, n) { + return (e | ~t) ^ n + } + + function y(e, t, n) { + return e & n | t & ~n + } + + function _(e, t, n) { + return e ^ (t | ~n) + } + + function v(e, t) { + return e << t | e >>> 32 - t + } + t.RIPEMD160 = i._createHelper(h), t.HmacRIPEMD160 = i._createHmacHelper(h) + }(Math), r.RIPEMD160) + }, + 1284: function(e, t, n) { + var r, o, i, s, a, c, u, l; + e.exports = (o = (r = l = n(8112)).lib, i = o.WordArray, s = o.Hasher, a = r.algo, c = [], u = a.SHA1 = s.extend({ + _doReset: function() { + this._hash = new i.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]) + }, + _doProcessBlock: function(e, t) { + for (var n = this._hash.words, r = n[0], o = n[1], i = n[2], s = n[3], a = n[4], u = 0; u < 80; u++) { + if (u < 16) c[u] = 0 | e[t + u]; + else { + var l = c[u - 3] ^ c[u - 8] ^ c[u - 14] ^ c[u - 16]; + c[u] = l << 1 | l >>> 31 + } + var d = (r << 5 | r >>> 27) + a + c[u]; + d += u < 20 ? 1518500249 + (o & i | ~o & s) : u < 40 ? 1859775393 + (o ^ i ^ s) : u < 60 ? (o & i | o & s | i & s) - 1894007588 : (o ^ i ^ s) - 899497514, a = s, s = i, i = o << 30 | o >>> 2, o = r, r = d + } + n[0] = n[0] + r | 0, n[1] = n[1] + o | 0, n[2] = n[2] + i | 0, n[3] = n[3] + s | 0, n[4] = n[4] + a | 0 + }, + _doFinalize: function() { + var e = this._data, + t = e.words, + n = 8 * this._nDataBytes, + r = 8 * e.sigBytes; + return t[r >>> 5] |= 128 << 24 - r % 32, t[14 + (r + 64 >>> 9 << 4)] = Math.floor(n / 4294967296), t[15 + (r + 64 >>> 9 << 4)] = n, e.sigBytes = 4 * t.length, this._process(), this._hash + }, + clone: function() { + var e = s.clone.call(this); + return e._hash = this._hash.clone(), e + } + }), r.SHA1 = s._createHelper(u), r.HmacSHA1 = s._createHmacHelper(u), l.SHA1) + }, + 3816: function(e, t, n) { + var r, o, i, s, a, c; + e.exports = (c = n(8112), n(2232), o = (r = c).lib.WordArray, i = r.algo, s = i.SHA256, a = i.SHA224 = s.extend({ + _doReset: function() { + this._hash = new o.init([3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428]) + }, + _doFinalize: function() { + var e = s._doFinalize.call(this); + return e.sigBytes -= 4, e + } + }), r.SHA224 = s._createHelper(a), r.HmacSHA224 = s._createHmacHelper(a), c.SHA224) + }, + 2232: function(e, t, n) { + var r; + e.exports = (r = n(8112), function(e) { + var t = r, + n = t.lib, + o = n.WordArray, + i = n.Hasher, + s = t.algo, + a = [], + c = []; + ! function() { + function t(t) { + for (var n = e.sqrt(t), r = 2; r <= n; r++) + if (!(t % r)) return !1; + return !0 + } + + function n(e) { + return 4294967296 * (e - (0 | e)) | 0 + } + for (var r = 2, o = 0; o < 64;) t(r) && (o < 8 && (a[o] = n(e.pow(r, .5))), c[o] = n(e.pow(r, 1 / 3)), o++), r++ + }(); + var u = [], + l = s.SHA256 = i.extend({ + _doReset: function() { + this._hash = new o.init(a.slice(0)) + }, + _doProcessBlock: function(e, t) { + for (var n = this._hash.words, r = n[0], o = n[1], i = n[2], s = n[3], a = n[4], l = n[5], d = n[6], p = n[7], h = 0; h < 64; h++) { + if (h < 16) u[h] = 0 | e[t + h]; + else { + var m = u[h - 15], + f = (m << 25 | m >>> 7) ^ (m << 14 | m >>> 18) ^ m >>> 3, + g = u[h - 2], + y = (g << 15 | g >>> 17) ^ (g << 13 | g >>> 19) ^ g >>> 10; + u[h] = f + u[h - 7] + y + u[h - 16] + } + var _ = r & o ^ r & i ^ o & i, + v = (r << 30 | r >>> 2) ^ (r << 19 | r >>> 13) ^ (r << 10 | r >>> 22), + b = p + ((a << 26 | a >>> 6) ^ (a << 21 | a >>> 11) ^ (a << 7 | a >>> 25)) + (a & l ^ ~a & d) + c[h] + u[h]; + p = d, d = l, l = a, a = s + b | 0, s = i, i = o, o = r, r = b + (v + _) | 0 + } + n[0] = n[0] + r | 0, n[1] = n[1] + o | 0, n[2] = n[2] + i | 0, n[3] = n[3] + s | 0, n[4] = n[4] + a | 0, n[5] = n[5] + l | 0, n[6] = n[6] + d | 0, n[7] = n[7] + p | 0 + }, + _doFinalize: function() { + var t = this._data, + n = t.words, + r = 8 * this._nDataBytes, + o = 8 * t.sigBytes; + return n[o >>> 5] |= 128 << 24 - o % 32, n[14 + (o + 64 >>> 9 << 4)] = e.floor(r / 4294967296), n[15 + (o + 64 >>> 9 << 4)] = r, t.sigBytes = 4 * n.length, this._process(), this._hash + }, + clone: function() { + var e = i.clone.call(this); + return e._hash = this._hash.clone(), e + } + }); + t.SHA256 = i._createHelper(l), t.HmacSHA256 = i._createHmacHelper(l) + }(Math), r.SHA256) + }, + 1455: function(e, t, n) { + var r; + e.exports = (r = n(8112), n(8400), function(e) { + var t = r, + n = t.lib, + o = n.WordArray, + i = n.Hasher, + s = t.x64.Word, + a = t.algo, + c = [], + u = [], + l = []; + ! function() { + for (var e = 1, t = 0, n = 0; n < 24; n++) { + c[e + 5 * t] = (n + 1) * (n + 2) / 2 % 64; + var r = (2 * e + 3 * t) % 5; + e = t % 5, t = r + } + for (e = 0; e < 5; e++) + for (t = 0; t < 5; t++) u[e + 5 * t] = t + (2 * e + 3 * t) % 5 * 5; + for (var o = 1, i = 0; i < 24; i++) { + for (var a = 0, d = 0, p = 0; p < 7; p++) { + if (1 & o) { + var h = (1 << p) - 1; + h < 32 ? d ^= 1 << h : a ^= 1 << h - 32 + } + 128 & o ? o = o << 1 ^ 113 : o <<= 1 + } + l[i] = s.create(a, d) + } + }(); + var d = []; + ! function() { + for (var e = 0; e < 25; e++) d[e] = s.create() + }(); + var p = a.SHA3 = i.extend({ + cfg: i.cfg.extend({ + outputLength: 512 + }), + _doReset: function() { + for (var e = this._state = [], t = 0; t < 25; t++) e[t] = new s.init; + this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32 + }, + _doProcessBlock: function(e, t) { + for (var n = this._state, r = this.blockSize / 2, o = 0; o < r; o++) { + var i = e[t + 2 * o], + s = e[t + 2 * o + 1]; + i = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8), s = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8), (T = n[o]).high ^= s, T.low ^= i + } + for (var a = 0; a < 24; a++) { + for (var p = 0; p < 5; p++) { + for (var h = 0, m = 0, f = 0; f < 5; f++) h ^= (T = n[p + 5 * f]).high, m ^= T.low; + var g = d[p]; + g.high = h, g.low = m + } + for (p = 0; p < 5; p++) { + var y = d[(p + 4) % 5], + _ = d[(p + 1) % 5], + v = _.high, + b = _.low; + for (h = y.high ^ (v << 1 | b >>> 31), m = y.low ^ (b << 1 | v >>> 31), f = 0; f < 5; f++)(T = n[p + 5 * f]).high ^= h, T.low ^= m + } + for (var k = 1; k < 25; k++) { + var w = (T = n[k]).high, + j = T.low, + x = c[k]; + x < 32 ? (h = w << x | j >>> 32 - x, m = j << x | w >>> 32 - x) : (h = j << x - 32 | w >>> 64 - x, m = w << x - 32 | j >>> 64 - x); + var E = d[u[k]]; + E.high = h, E.low = m + } + var C = d[0], + S = n[0]; + for (C.high = S.high, C.low = S.low, p = 0; p < 5; p++) + for (f = 0; f < 5; f++) { + var T = n[k = p + 5 * f], + P = d[k], + I = d[(p + 1) % 5 + 5 * f], + R = d[(p + 2) % 5 + 5 * f]; + T.high = P.high ^ ~I.high & R.high, T.low = P.low ^ ~I.low & R.low + } + T = n[0]; + var O = l[a]; + T.high ^= O.high, T.low ^= O.low + } + }, + _doFinalize: function() { + var t = this._data, + n = t.words, + r = (this._nDataBytes, 8 * t.sigBytes), + i = 32 * this.blockSize; + n[r >>> 5] |= 1 << 24 - r % 32, n[(e.ceil((r + 1) / i) * i >>> 5) - 1] |= 128, t.sigBytes = 4 * n.length, this._process(); + for (var s = this._state, a = this.cfg.outputLength / 8, c = a / 8, u = [], l = 0; l < c; l++) { + var d = s[l], + p = d.high, + h = d.low; + p = 16711935 & (p << 8 | p >>> 24) | 4278255360 & (p << 24 | p >>> 8), h = 16711935 & (h << 8 | h >>> 24) | 4278255360 & (h << 24 | h >>> 8), u.push(h), u.push(p) + } + return new o.init(u, a) + }, + clone: function() { + for (var e = i.clone.call(this), t = e._state = this._state.slice(0), n = 0; n < 25; n++) t[n] = t[n].clone(); + return e + } + }); + t.SHA3 = i._createHelper(p), t.HmacSHA3 = i._createHmacHelper(p) + }(Math), r.SHA3) + }, + 1007: function(e, t, n) { + var r, o, i, s, a, c, u, l; + e.exports = (l = n(8112), n(8400), n(9039), o = (r = l).x64, i = o.Word, s = o.WordArray, a = r.algo, c = a.SHA512, u = a.SHA384 = c.extend({ + _doReset: function() { + this._hash = new s.init([new i.init(3418070365, 3238371032), new i.init(1654270250, 914150663), new i.init(2438529370, 812702999), new i.init(355462360, 4144912697), new i.init(1731405415, 4290775857), new i.init(2394180231, 1750603025), new i.init(3675008525, 1694076839), new i.init(1203062813, 3204075428)]) + }, + _doFinalize: function() { + var e = c._doFinalize.call(this); + return e.sigBytes -= 16, e + } + }), r.SHA384 = c._createHelper(u), r.HmacSHA384 = c._createHmacHelper(u), l.SHA384) + }, + 9039: function(e, t, n) { + var r; + e.exports = (r = n(8112), n(8400), function() { + var e = r, + t = e.lib.Hasher, + n = e.x64, + o = n.Word, + i = n.WordArray, + s = e.algo; + + function a() { + return o.create.apply(o, arguments) + } + var c = [a(1116352408, 3609767458), a(1899447441, 602891725), a(3049323471, 3964484399), a(3921009573, 2173295548), a(961987163, 4081628472), a(1508970993, 3053834265), a(2453635748, 2937671579), a(2870763221, 3664609560), a(3624381080, 2734883394), a(310598401, 1164996542), a(607225278, 1323610764), a(1426881987, 3590304994), a(1925078388, 4068182383), a(2162078206, 991336113), a(2614888103, 633803317), a(3248222580, 3479774868), a(3835390401, 2666613458), a(4022224774, 944711139), a(264347078, 2341262773), a(604807628, 2007800933), a(770255983, 1495990901), a(1249150122, 1856431235), a(1555081692, 3175218132), a(1996064986, 2198950837), a(2554220882, 3999719339), a(2821834349, 766784016), a(2952996808, 2566594879), a(3210313671, 3203337956), a(3336571891, 1034457026), a(3584528711, 2466948901), a(113926993, 3758326383), a(338241895, 168717936), a(666307205, 1188179964), a(773529912, 1546045734), a(1294757372, 1522805485), a(1396182291, 2643833823), a(1695183700, 2343527390), a(1986661051, 1014477480), a(2177026350, 1206759142), a(2456956037, 344077627), a(2730485921, 1290863460), a(2820302411, 3158454273), a(3259730800, 3505952657), a(3345764771, 106217008), a(3516065817, 3606008344), a(3600352804, 1432725776), a(4094571909, 1467031594), a(275423344, 851169720), a(430227734, 3100823752), a(506948616, 1363258195), a(659060556, 3750685593), a(883997877, 3785050280), a(958139571, 3318307427), a(1322822218, 3812723403), a(1537002063, 2003034995), a(1747873779, 3602036899), a(1955562222, 1575990012), a(2024104815, 1125592928), a(2227730452, 2716904306), a(2361852424, 442776044), a(2428436474, 593698344), a(2756734187, 3733110249), a(3204031479, 2999351573), a(3329325298, 3815920427), a(3391569614, 3928383900), a(3515267271, 566280711), a(3940187606, 3454069534), a(4118630271, 4000239992), a(116418474, 1914138554), a(174292421, 2731055270), a(289380356, 3203993006), a(460393269, 320620315), a(685471733, 587496836), a(852142971, 1086792851), a(1017036298, 365543100), a(1126000580, 2618297676), a(1288033470, 3409855158), a(1501505948, 4234509866), a(1607167915, 987167468), a(1816402316, 1246189591)], + u = []; + ! function() { + for (var e = 0; e < 80; e++) u[e] = a() + }(); + var l = s.SHA512 = t.extend({ + _doReset: function() { + this._hash = new i.init([new o.init(1779033703, 4089235720), new o.init(3144134277, 2227873595), new o.init(1013904242, 4271175723), new o.init(2773480762, 1595750129), new o.init(1359893119, 2917565137), new o.init(2600822924, 725511199), new o.init(528734635, 4215389547), new o.init(1541459225, 327033209)]) + }, + _doProcessBlock: function(e, t) { + for (var n = this._hash.words, r = n[0], o = n[1], i = n[2], s = n[3], a = n[4], l = n[5], d = n[6], p = n[7], h = r.high, m = r.low, f = o.high, g = o.low, y = i.high, _ = i.low, v = s.high, b = s.low, k = a.high, w = a.low, j = l.high, x = l.low, E = d.high, C = d.low, S = p.high, T = p.low, P = h, I = m, R = f, O = g, A = y, N = _, D = v, M = b, q = k, L = w, $ = j, F = x, z = E, B = C, U = S, H = T, W = 0; W < 80; W++) { + var G, V, K = u[W]; + if (W < 16) V = K.high = 0 | e[t + 2 * W], G = K.low = 0 | e[t + 2 * W + 1]; + else { + var J = u[W - 15], + X = J.high, + Y = J.low, + Q = (X >>> 1 | Y << 31) ^ (X >>> 8 | Y << 24) ^ X >>> 7, + Z = (Y >>> 1 | X << 31) ^ (Y >>> 8 | X << 24) ^ (Y >>> 7 | X << 25), + ee = u[W - 2], + te = ee.high, + ne = ee.low, + re = (te >>> 19 | ne << 13) ^ (te << 3 | ne >>> 29) ^ te >>> 6, + oe = (ne >>> 19 | te << 13) ^ (ne << 3 | te >>> 29) ^ (ne >>> 6 | te << 26), + ie = u[W - 7], + se = ie.high, + ae = ie.low, + ce = u[W - 16], + ue = ce.high, + le = ce.low; + V = (V = (V = Q + se + ((G = Z + ae) >>> 0 < Z >>> 0 ? 1 : 0)) + re + ((G += oe) >>> 0 < oe >>> 0 ? 1 : 0)) + ue + ((G += le) >>> 0 < le >>> 0 ? 1 : 0), K.high = V, K.low = G + } + var de, pe = q & $ ^ ~q & z, + he = L & F ^ ~L & B, + me = P & R ^ P & A ^ R & A, + fe = I & O ^ I & N ^ O & N, + ge = (P >>> 28 | I << 4) ^ (P << 30 | I >>> 2) ^ (P << 25 | I >>> 7), + ye = (I >>> 28 | P << 4) ^ (I << 30 | P >>> 2) ^ (I << 25 | P >>> 7), + _e = (q >>> 14 | L << 18) ^ (q >>> 18 | L << 14) ^ (q << 23 | L >>> 9), + ve = (L >>> 14 | q << 18) ^ (L >>> 18 | q << 14) ^ (L << 23 | q >>> 9), + be = c[W], + ke = be.high, + we = be.low, + je = U + _e + ((de = H + ve) >>> 0 < H >>> 0 ? 1 : 0), + xe = ye + fe; + U = z, H = B, z = $, B = F, $ = q, F = L, q = D + (je = (je = (je = je + pe + ((de += he) >>> 0 < he >>> 0 ? 1 : 0)) + ke + ((de += we) >>> 0 < we >>> 0 ? 1 : 0)) + V + ((de += G) >>> 0 < G >>> 0 ? 1 : 0)) + ((L = M + de | 0) >>> 0 < M >>> 0 ? 1 : 0) | 0, D = A, M = N, A = R, N = O, R = P, O = I, P = je + (ge + me + (xe >>> 0 < ye >>> 0 ? 1 : 0)) + ((I = de + xe | 0) >>> 0 < de >>> 0 ? 1 : 0) | 0 + } + m = r.low = m + I, r.high = h + P + (m >>> 0 < I >>> 0 ? 1 : 0), g = o.low = g + O, o.high = f + R + (g >>> 0 < O >>> 0 ? 1 : 0), _ = i.low = _ + N, i.high = y + A + (_ >>> 0 < N >>> 0 ? 1 : 0), b = s.low = b + M, s.high = v + D + (b >>> 0 < M >>> 0 ? 1 : 0), w = a.low = w + L, a.high = k + q + (w >>> 0 < L >>> 0 ? 1 : 0), x = l.low = x + F, l.high = j + $ + (x >>> 0 < F >>> 0 ? 1 : 0), C = d.low = C + B, d.high = E + z + (C >>> 0 < B >>> 0 ? 1 : 0), T = p.low = T + H, p.high = S + U + (T >>> 0 < H >>> 0 ? 1 : 0) + }, + _doFinalize: function() { + var e = this._data, + t = e.words, + n = 8 * this._nDataBytes, + r = 8 * e.sigBytes; + return t[r >>> 5] |= 128 << 24 - r % 32, t[30 + (r + 128 >>> 10 << 5)] = Math.floor(n / 4294967296), t[31 + (r + 128 >>> 10 << 5)] = n, e.sigBytes = 4 * t.length, this._process(), this._hash.toX32() + }, + clone: function() { + var e = t.clone.call(this); + return e._hash = this._hash.clone(), e + }, + blockSize: 32 + }); + e.SHA512 = t._createHelper(l), e.HmacSHA512 = t._createHmacHelper(l) + }(), r.SHA512) + }, + 9708: function(e, t, n) { + var r; + e.exports = (r = n(8112), n(8885), n(4678), n(6165), n(8976), function() { + var e = r, + t = e.lib, + n = t.WordArray, + o = t.BlockCipher, + i = e.algo, + s = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4], + a = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32], + c = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], + u = [{ + 0: 8421888, + 268435456: 32768, + 536870912: 8421378, + 805306368: 2, + 1073741824: 512, + 1342177280: 8421890, + 1610612736: 8389122, + 1879048192: 8388608, + 2147483648: 514, + 2415919104: 8389120, + 2684354560: 33280, + 2952790016: 8421376, + 3221225472: 32770, + 3489660928: 8388610, + 3758096384: 0, + 4026531840: 33282, + 134217728: 0, + 402653184: 8421890, + 671088640: 33282, + 939524096: 32768, + 1207959552: 8421888, + 1476395008: 512, + 1744830464: 8421378, + 2013265920: 2, + 2281701376: 8389120, + 2550136832: 33280, + 2818572288: 8421376, + 3087007744: 8389122, + 3355443200: 8388610, + 3623878656: 32770, + 3892314112: 514, + 4160749568: 8388608, + 1: 32768, + 268435457: 2, + 536870913: 8421888, + 805306369: 8388608, + 1073741825: 8421378, + 1342177281: 33280, + 1610612737: 512, + 1879048193: 8389122, + 2147483649: 8421890, + 2415919105: 8421376, + 2684354561: 8388610, + 2952790017: 33282, + 3221225473: 514, + 3489660929: 8389120, + 3758096385: 32770, + 4026531841: 0, + 134217729: 8421890, + 402653185: 8421376, + 671088641: 8388608, + 939524097: 512, + 1207959553: 32768, + 1476395009: 8388610, + 1744830465: 2, + 2013265921: 33282, + 2281701377: 32770, + 2550136833: 8389122, + 2818572289: 514, + 3087007745: 8421888, + 3355443201: 8389120, + 3623878657: 0, + 3892314113: 33280, + 4160749569: 8421378 + }, { + 0: 1074282512, + 16777216: 16384, + 33554432: 524288, + 50331648: 1074266128, + 67108864: 1073741840, + 83886080: 1074282496, + 100663296: 1073758208, + 117440512: 16, + 134217728: 540672, + 150994944: 1073758224, + 167772160: 1073741824, + 184549376: 540688, + 201326592: 524304, + 218103808: 0, + 234881024: 16400, + 251658240: 1074266112, + 8388608: 1073758208, + 25165824: 540688, + 41943040: 16, + 58720256: 1073758224, + 75497472: 1074282512, + 92274688: 1073741824, + 109051904: 524288, + 125829120: 1074266128, + 142606336: 524304, + 159383552: 0, + 176160768: 16384, + 192937984: 1074266112, + 209715200: 1073741840, + 226492416: 540672, + 243269632: 1074282496, + 260046848: 16400, + 268435456: 0, + 285212672: 1074266128, + 301989888: 1073758224, + 318767104: 1074282496, + 335544320: 1074266112, + 352321536: 16, + 369098752: 540688, + 385875968: 16384, + 402653184: 16400, + 419430400: 524288, + 436207616: 524304, + 452984832: 1073741840, + 469762048: 540672, + 486539264: 1073758208, + 503316480: 1073741824, + 520093696: 1074282512, + 276824064: 540688, + 293601280: 524288, + 310378496: 1074266112, + 327155712: 16384, + 343932928: 1073758208, + 360710144: 1074282512, + 377487360: 16, + 394264576: 1073741824, + 411041792: 1074282496, + 427819008: 1073741840, + 444596224: 1073758224, + 461373440: 524304, + 478150656: 0, + 494927872: 16400, + 511705088: 1074266128, + 528482304: 540672 + }, { + 0: 260, + 1048576: 0, + 2097152: 67109120, + 3145728: 65796, + 4194304: 65540, + 5242880: 67108868, + 6291456: 67174660, + 7340032: 67174400, + 8388608: 67108864, + 9437184: 67174656, + 10485760: 65792, + 11534336: 67174404, + 12582912: 67109124, + 13631488: 65536, + 14680064: 4, + 15728640: 256, + 524288: 67174656, + 1572864: 67174404, + 2621440: 0, + 3670016: 67109120, + 4718592: 67108868, + 5767168: 65536, + 6815744: 65540, + 7864320: 260, + 8912896: 4, + 9961472: 256, + 11010048: 67174400, + 12058624: 65796, + 13107200: 65792, + 14155776: 67109124, + 15204352: 67174660, + 16252928: 67108864, + 16777216: 67174656, + 17825792: 65540, + 18874368: 65536, + 19922944: 67109120, + 20971520: 256, + 22020096: 67174660, + 23068672: 67108868, + 24117248: 0, + 25165824: 67109124, + 26214400: 67108864, + 27262976: 4, + 28311552: 65792, + 29360128: 67174400, + 30408704: 260, + 31457280: 65796, + 32505856: 67174404, + 17301504: 67108864, + 18350080: 260, + 19398656: 67174656, + 20447232: 0, + 21495808: 65540, + 22544384: 67109120, + 23592960: 256, + 24641536: 67174404, + 25690112: 65536, + 26738688: 67174660, + 27787264: 65796, + 28835840: 67108868, + 29884416: 67109124, + 30932992: 67174400, + 31981568: 4, + 33030144: 65792 + }, { + 0: 2151682048, + 65536: 2147487808, + 131072: 4198464, + 196608: 2151677952, + 262144: 0, + 327680: 4198400, + 393216: 2147483712, + 458752: 4194368, + 524288: 2147483648, + 589824: 4194304, + 655360: 64, + 720896: 2147487744, + 786432: 2151678016, + 851968: 4160, + 917504: 4096, + 983040: 2151682112, + 32768: 2147487808, + 98304: 64, + 163840: 2151678016, + 229376: 2147487744, + 294912: 4198400, + 360448: 2151682112, + 425984: 0, + 491520: 2151677952, + 557056: 4096, + 622592: 2151682048, + 688128: 4194304, + 753664: 4160, + 819200: 2147483648, + 884736: 4194368, + 950272: 4198464, + 1015808: 2147483712, + 1048576: 4194368, + 1114112: 4198400, + 1179648: 2147483712, + 1245184: 0, + 1310720: 4160, + 1376256: 2151678016, + 1441792: 2151682048, + 1507328: 2147487808, + 1572864: 2151682112, + 1638400: 2147483648, + 1703936: 2151677952, + 1769472: 4198464, + 1835008: 2147487744, + 1900544: 4194304, + 1966080: 64, + 2031616: 4096, + 1081344: 2151677952, + 1146880: 2151682112, + 1212416: 0, + 1277952: 4198400, + 1343488: 4194368, + 1409024: 2147483648, + 1474560: 2147487808, + 1540096: 64, + 1605632: 2147483712, + 1671168: 4096, + 1736704: 2147487744, + 1802240: 2151678016, + 1867776: 4160, + 1933312: 2151682048, + 1998848: 4194304, + 2064384: 4198464 + }, { + 0: 128, + 4096: 17039360, + 8192: 262144, + 12288: 536870912, + 16384: 537133184, + 20480: 16777344, + 24576: 553648256, + 28672: 262272, + 32768: 16777216, + 36864: 537133056, + 40960: 536871040, + 45056: 553910400, + 49152: 553910272, + 53248: 0, + 57344: 17039488, + 61440: 553648128, + 2048: 17039488, + 6144: 553648256, + 10240: 128, + 14336: 17039360, + 18432: 262144, + 22528: 537133184, + 26624: 553910272, + 30720: 536870912, + 34816: 537133056, + 38912: 0, + 43008: 553910400, + 47104: 16777344, + 51200: 536871040, + 55296: 553648128, + 59392: 16777216, + 63488: 262272, + 65536: 262144, + 69632: 128, + 73728: 536870912, + 77824: 553648256, + 81920: 16777344, + 86016: 553910272, + 90112: 537133184, + 94208: 16777216, + 98304: 553910400, + 102400: 553648128, + 106496: 17039360, + 110592: 537133056, + 114688: 262272, + 118784: 536871040, + 122880: 0, + 126976: 17039488, + 67584: 553648256, + 71680: 16777216, + 75776: 17039360, + 79872: 537133184, + 83968: 536870912, + 88064: 17039488, + 92160: 128, + 96256: 553910272, + 100352: 262272, + 104448: 553910400, + 108544: 0, + 112640: 553648128, + 116736: 16777344, + 120832: 262144, + 124928: 537133056, + 129024: 536871040 + }, { + 0: 268435464, + 256: 8192, + 512: 270532608, + 768: 270540808, + 1024: 268443648, + 1280: 2097152, + 1536: 2097160, + 1792: 268435456, + 2048: 0, + 2304: 268443656, + 2560: 2105344, + 2816: 8, + 3072: 270532616, + 3328: 2105352, + 3584: 8200, + 3840: 270540800, + 128: 270532608, + 384: 270540808, + 640: 8, + 896: 2097152, + 1152: 2105352, + 1408: 268435464, + 1664: 268443648, + 1920: 8200, + 2176: 2097160, + 2432: 8192, + 2688: 268443656, + 2944: 270532616, + 3200: 0, + 3456: 270540800, + 3712: 2105344, + 3968: 268435456, + 4096: 268443648, + 4352: 270532616, + 4608: 270540808, + 4864: 8200, + 5120: 2097152, + 5376: 268435456, + 5632: 268435464, + 5888: 2105344, + 6144: 2105352, + 6400: 0, + 6656: 8, + 6912: 270532608, + 7168: 8192, + 7424: 268443656, + 7680: 270540800, + 7936: 2097160, + 4224: 8, + 4480: 2105344, + 4736: 2097152, + 4992: 268435464, + 5248: 268443648, + 5504: 8200, + 5760: 270540808, + 6016: 270532608, + 6272: 270540800, + 6528: 270532616, + 6784: 8192, + 7040: 2105352, + 7296: 2097160, + 7552: 0, + 7808: 268435456, + 8064: 268443656 + }, { + 0: 1048576, + 16: 33555457, + 32: 1024, + 48: 1049601, + 64: 34604033, + 80: 0, + 96: 1, + 112: 34603009, + 128: 33555456, + 144: 1048577, + 160: 33554433, + 176: 34604032, + 192: 34603008, + 208: 1025, + 224: 1049600, + 240: 33554432, + 8: 34603009, + 24: 0, + 40: 33555457, + 56: 34604032, + 72: 1048576, + 88: 33554433, + 104: 33554432, + 120: 1025, + 136: 1049601, + 152: 33555456, + 168: 34603008, + 184: 1048577, + 200: 1024, + 216: 34604033, + 232: 1, + 248: 1049600, + 256: 33554432, + 272: 1048576, + 288: 33555457, + 304: 34603009, + 320: 1048577, + 336: 33555456, + 352: 34604032, + 368: 1049601, + 384: 1025, + 400: 34604033, + 416: 1049600, + 432: 1, + 448: 0, + 464: 34603008, + 480: 33554433, + 496: 1024, + 264: 1049600, + 280: 33555457, + 296: 34603009, + 312: 1, + 328: 33554432, + 344: 1048576, + 360: 1025, + 376: 34604032, + 392: 33554433, + 408: 34603008, + 424: 0, + 440: 34604033, + 456: 1049601, + 472: 1024, + 488: 33555456, + 504: 1048577 + }, { + 0: 134219808, + 1: 131072, + 2: 134217728, + 3: 32, + 4: 131104, + 5: 134350880, + 6: 134350848, + 7: 2048, + 8: 134348800, + 9: 134219776, + 10: 133120, + 11: 134348832, + 12: 2080, + 13: 0, + 14: 134217760, + 15: 133152, + 2147483648: 2048, + 2147483649: 134350880, + 2147483650: 134219808, + 2147483651: 134217728, + 2147483652: 134348800, + 2147483653: 133120, + 2147483654: 133152, + 2147483655: 32, + 2147483656: 134217760, + 2147483657: 2080, + 2147483658: 131104, + 2147483659: 134350848, + 2147483660: 0, + 2147483661: 134348832, + 2147483662: 134219776, + 2147483663: 131072, + 16: 133152, + 17: 134350848, + 18: 32, + 19: 2048, + 20: 134219776, + 21: 134217760, + 22: 134348832, + 23: 131072, + 24: 0, + 25: 131104, + 26: 134348800, + 27: 134219808, + 28: 134350880, + 29: 133120, + 30: 2080, + 31: 134217728, + 2147483664: 131072, + 2147483665: 2048, + 2147483666: 134348832, + 2147483667: 133152, + 2147483668: 32, + 2147483669: 134348800, + 2147483670: 134217728, + 2147483671: 134219808, + 2147483672: 134350880, + 2147483673: 134217760, + 2147483674: 134219776, + 2147483675: 0, + 2147483676: 133120, + 2147483677: 2080, + 2147483678: 131104, + 2147483679: 134350848 + }], + l = [4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679], + d = i.DES = o.extend({ + _doReset: function() { + for (var e = this._key.words, t = [], n = 0; n < 56; n++) { + var r = s[n] - 1; + t[n] = e[r >>> 5] >>> 31 - r % 32 & 1 + } + for (var o = this._subKeys = [], i = 0; i < 16; i++) { + var u = o[i] = [], + l = c[i]; + for (n = 0; n < 24; n++) u[n / 6 | 0] |= t[(a[n] - 1 + l) % 28] << 31 - n % 6, u[4 + (n / 6 | 0)] |= t[28 + (a[n + 24] - 1 + l) % 28] << 31 - n % 6; + for (u[0] = u[0] << 1 | u[0] >>> 31, n = 1; n < 7; n++) u[n] = u[n] >>> 4 * (n - 1) + 3; + u[7] = u[7] << 5 | u[7] >>> 27 + } + var d = this._invSubKeys = []; + for (n = 0; n < 16; n++) d[n] = o[15 - n] + }, + encryptBlock: function(e, t) { + this._doCryptBlock(e, t, this._subKeys) + }, + decryptBlock: function(e, t) { + this._doCryptBlock(e, t, this._invSubKeys) + }, + _doCryptBlock: function(e, t, n) { + this._lBlock = e[t], this._rBlock = e[t + 1], p.call(this, 4, 252645135), p.call(this, 16, 65535), h.call(this, 2, 858993459), h.call(this, 8, 16711935), p.call(this, 1, 1431655765); + for (var r = 0; r < 16; r++) { + for (var o = n[r], i = this._lBlock, s = this._rBlock, a = 0, c = 0; c < 8; c++) a |= u[c][((s ^ o[c]) & l[c]) >>> 0]; + this._lBlock = s, this._rBlock = i ^ a + } + var d = this._lBlock; + this._lBlock = this._rBlock, this._rBlock = d, p.call(this, 1, 1431655765), h.call(this, 8, 16711935), h.call(this, 2, 858993459), p.call(this, 16, 65535), p.call(this, 4, 252645135), e[t] = this._lBlock, e[t + 1] = this._rBlock + }, + keySize: 2, + ivSize: 2, + blockSize: 2 + }); + + function p(e, t) { + var n = (this._lBlock >>> e ^ this._rBlock) & t; + this._rBlock ^= n, this._lBlock ^= n << e + } + + function h(e, t) { + var n = (this._rBlock >>> e ^ this._lBlock) & t; + this._lBlock ^= n, this._rBlock ^= n << e + } + e.DES = o._createHelper(d); + var m = i.TripleDES = o.extend({ + _doReset: function() { + var e = this._key.words; + if (2 !== e.length && 4 !== e.length && e.length < 6) throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192."); + var t = e.slice(0, 2), + r = e.length < 4 ? e.slice(0, 2) : e.slice(2, 4), + o = e.length < 6 ? e.slice(0, 2) : e.slice(4, 6); + this._des1 = d.createEncryptor(n.create(t)), this._des2 = d.createEncryptor(n.create(r)), this._des3 = d.createEncryptor(n.create(o)) + }, + encryptBlock: function(e, t) { + this._des1.encryptBlock(e, t), this._des2.decryptBlock(e, t), this._des3.encryptBlock(e, t) + }, + decryptBlock: function(e, t) { + this._des3.decryptBlock(e, t), this._des2.encryptBlock(e, t), this._des1.decryptBlock(e, t) + }, + keySize: 6, + ivSize: 2, + blockSize: 2 + }); + e.TripleDES = o._createHelper(m) + }(), r.TripleDES) + }, + 8400: function(e, t, n) { + var r, o, i, s, a, c; + e.exports = (r = n(8112), i = (o = r).lib, s = i.Base, a = i.WordArray, (c = o.x64 = {}).Word = s.extend({ + init: function(e, t) { + this.high = e, this.low = t + } + }), c.WordArray = s.extend({ + init: function(e, t) { + e = this.words = e || [], this.sigBytes = null != t ? t : 8 * e.length + }, + toX32: function() { + for (var e = this.words, t = e.length, n = [], r = 0; r < t; r++) { + var o = e[r]; + n.push(o.high), n.push(o.low) + } + return a.create(n, this.sigBytes) + }, + clone: function() { + for (var e = s.clone.call(this), t = e.words = this.words.slice(0), n = t.length, r = 0; r < n; r++) t[r] = t[r].clone(); + return e + } + }), r) + }, + 6292: (e, t, n) => { + t.formatArgs = function(t) { + if (t[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + t[0] + (this.useColors ? "%c " : " ") + "+" + e.exports.humanize(this.diff), !this.useColors) return; + const n = "color: " + this.color; + t.splice(1, 0, n, "color: inherit"); + let r = 0, + o = 0; + t[0].replace(/%[a-zA-Z%]/g, (e => { + "%%" !== e && (r++, "%c" === e && (o = r)) + })), t.splice(o, 0, n) + }, t.save = function(e) { + try { + e ? t.storage.setItem("debug", e) : t.storage.removeItem("debug") + } catch (e) {} + }, t.load = function() { + let e; + try { + e = t.storage.getItem("debug") + } catch (e) {} + return !e && "undefined" != typeof process && "env" in process && (e = process.env.DEBUG), e + }, t.useColors = function() { + return !("undefined" == typeof window || !window.process || "renderer" !== window.process.type && !window.process.__nwjs) || ("undefined" == typeof navigator || !navigator.userAgent || !navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) && ("undefined" != typeof document && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || "undefined" != typeof window && window.console && (window.console.firebug || window.console.exception && window.console.table) || "undefined" != typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || "undefined" != typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)) + }, t.storage = function() { + try { + return localStorage + } catch (e) {} + }(), t.destroy = (() => { + let e = !1; + return () => { + e || (e = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")) + } + })(), t.colors = ["#0000CC", "#0000FF", "#0033CC", "#0033FF", "#0066CC", "#0066FF", "#0099CC", "#0099FF", "#00CC00", "#00CC33", "#00CC66", "#00CC99", "#00CCCC", "#00CCFF", "#3300CC", "#3300FF", "#3333CC", "#3333FF", "#3366CC", "#3366FF", "#3399CC", "#3399FF", "#33CC00", "#33CC33", "#33CC66", "#33CC99", "#33CCCC", "#33CCFF", "#6600CC", "#6600FF", "#6633CC", "#6633FF", "#66CC00", "#66CC33", "#9900CC", "#9900FF", "#9933CC", "#9933FF", "#99CC00", "#99CC33", "#CC0000", "#CC0033", "#CC0066", "#CC0099", "#CC00CC", "#CC00FF", "#CC3300", "#CC3333", "#CC3366", "#CC3399", "#CC33CC", "#CC33FF", "#CC6600", "#CC6633", "#CC9900", "#CC9933", "#CCCC00", "#CCCC33", "#FF0000", "#FF0033", "#FF0066", "#FF0099", "#FF00CC", "#FF00FF", "#FF3300", "#FF3333", "#FF3366", "#FF3399", "#FF33CC", "#FF33FF", "#FF6600", "#FF6633", "#FF9900", "#FF9933", "#FFCC00", "#FFCC33"], t.log = console.debug || console.log || (() => {}), e.exports = n(9374)(t); + const { + formatters: r + } = e.exports; + r.j = function(e) { + try { + return JSON.stringify(e) + } catch (e) { + return "[UnexpectedJSONParseError]: " + e.message + } + } + }, + 9374: (e, t, n) => { + e.exports = function(e) { + function t(e) { + let n, o = null; + + function i(...e) { + if (!i.enabled) return; + const r = i, + o = Number(new Date), + s = o - (n || o); + r.diff = s, r.prev = n, r.curr = o, n = o, e[0] = t.coerce(e[0]), "string" != typeof e[0] && e.unshift("%O"); + let a = 0; + e[0] = e[0].replace(/%([a-zA-Z%])/g, ((n, o) => { + if ("%%" === n) return "%"; + a++; + const i = t.formatters[o]; + if ("function" == typeof i) { + const t = e[a]; + n = i.call(r, t), e.splice(a, 1), a-- + } + return n + })), t.formatArgs.call(r, e), (r.log || t.log).apply(r, e) + } + return i.namespace = e, i.useColors = t.useColors(), i.color = t.selectColor(e), i.extend = r, i.destroy = t.destroy, Object.defineProperty(i, "enabled", { + enumerable: !0, + configurable: !1, + get: () => null === o ? t.enabled(e) : o, + set: e => { + o = e + } + }), "function" == typeof t.init && t.init(i), i + } + + function r(e, n) { + const r = t(this.namespace + (void 0 === n ? ":" : n) + e); + return r.log = this.log, r + } + + function o(e) { + return e.toString().substring(2, e.toString().length - 2).replace(/\.\*\?$/, "*") + } + return t.debug = t, t.default = t, t.coerce = function(e) { + return e instanceof Error ? e.stack || e.message : e + }, t.disable = function() { + const e = [...t.names.map(o), ...t.skips.map(o).map((e => "-" + e))].join(","); + return t.enable(""), e + }, t.enable = function(e) { + let n; + t.save(e), t.names = [], t.skips = []; + const r = ("string" == typeof e ? e : "").split(/[\s,]+/), + o = r.length; + for (n = 0; n < o; n++) r[n] && ("-" === (e = r[n].replace(/\*/g, ".*?"))[0] ? t.skips.push(new RegExp("^" + e.substr(1) + "$")) : t.names.push(new RegExp("^" + e + "$"))) + }, t.enabled = function(e) { + if ("*" === e[e.length - 1]) return !0; + let n, r; + for (n = 0, r = t.skips.length; n < r; n++) + if (t.skips[n].test(e)) return !1; + for (n = 0, r = t.names.length; n < r; n++) + if (t.names[n].test(e)) return !0; + return !1 + }, t.humanize = n(8628), t.destroy = function() { + console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.") + }, Object.keys(e).forEach((n => { + t[n] = e[n] + })), t.names = [], t.skips = [], t.formatters = {}, t.selectColor = function(e) { + let n = 0; + for (let t = 0; t < e.length; t++) n = (n << 5) - n + e.charCodeAt(t), n |= 0; + return t.colors[Math.abs(n) % t.colors.length] + }, t.enable(t.load()), t + } + }, + 1241: (e, t, n) => { + "undefined" == typeof process || "renderer" === process.type || !0 === process.browser || process.__nwjs ? e.exports = n(6292) : e.exports = n(4428) + }, + 4428: (e, t, n) => { + const r = n(6224), + o = n(3837); + t.init = function(e) { + e.inspectOpts = {}; + const n = Object.keys(t.inspectOpts); + for (let r = 0; r < n.length; r++) e.inspectOpts[n[r]] = t.inspectOpts[n[r]] + }, t.log = function(...e) { + return process.stderr.write(o.format(...e) + "\n") + }, t.formatArgs = function(n) { + const { + namespace: r, + useColors: o + } = this; + if (o) { + const t = this.color, + o = "[3" + (t < 8 ? t : "8;5;" + t), + i = ` ${o};1m${r} `; + n[0] = i + n[0].split("\n").join("\n" + i), n.push(o + "m+" + e.exports.humanize(this.diff) + "") + } else n[0] = (t.inspectOpts.hideDate ? "" : (new Date).toISOString() + " ") + r + " " + n[0] + }, t.save = function(e) { + e ? process.env.DEBUG = e : delete process.env.DEBUG + }, t.load = function() { + return process.env.DEBUG + }, t.useColors = function() { + return "colors" in t.inspectOpts ? Boolean(t.inspectOpts.colors) : r.isatty(process.stderr.fd) + }, t.destroy = o.deprecate((() => {}), "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."), t.colors = [6, 2, 3, 4, 5, 1]; + try { + const e = n(6974); + e && (e.stderr || e).level >= 2 && (t.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221]) + } catch (e) {} + t.inspectOpts = Object.keys(process.env).filter((e => /^debug_/i.test(e))).reduce(((e, t) => { + const n = t.substring(6).toLowerCase().replace(/_([a-z])/g, ((e, t) => t.toUpperCase())); + let r = process.env[t]; + return r = !!/^(yes|on|true|enabled)$/i.test(r) || !/^(no|off|false|disabled)$/i.test(r) && ("null" === r ? null : Number(r)), e[n] = r, e + }), {}), e.exports = n(9374)(t); + const { + formatters: i + } = e.exports; + i.o = function(e) { + return this.inspectOpts.colors = this.useColors, o.inspect(e, this.inspectOpts).split("\n").map((e => e.trim())).join(" ") + }, i.O = function(e) { + return this.inspectOpts.colors = this.useColors, o.inspect(e, this.inspectOpts) + } + }, + 2784: function(e, t, n) { + "use strict"; + var r = this && this.__assign || Object.assign || function(e) { + for (var t, n = 1, r = arguments.length; n < r; n++) + for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); + return e + }; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var o = n(6932); + t.AzureMonitorSymbol = "Azure_Monitor_Tracer"; + var i = function() { + function e() {} + return e.prototype.onStart = function(e) {}, e.prototype.onEnd = function(e) { + o.channel.publish("azure-coretracing", e) + }, e.prototype.shutdown = function() {}, e + }(); + t.azureCoreTracing = { + versionSpecifier: ">= 1.0.0 < 2.0.0", + patch: function(e) { + try { + var s = new(0, n(8028).BasicTracer)(o.channel.spanContextPropagator ? { + scopeManager: o.channel.spanContextPropagator + } : void 0), + a = s.startSpan; + s.startSpan = function(e, t) { + if (!t || !t.parent) { + var n = s.getCurrentSpan(); + n && n.operation && n.operation.traceparent && (t = r({}, t, { + parent: { + traceId: n.operation.traceparent.traceId, + spanId: n.operation.traceparent.spanId + } + })) + } + var o = a.call(this, e, t); + return o.addEvent("Application Insights Integration enabled"), o + }, s.addSpanProcessor(new i), s[t.AzureMonitorSymbol] = !0, e.setTracer(s) + } catch (e) {} + return e + } + }, t.enable = function() { + o.channel.registerMonkeyPatch("@azure/core-tracing", t.azureCoreTracing) + } + }, + 248: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = n(6932); + t.bunyan = { + versionSpecifier: ">= 1.0.0 < 2.0.0", + patch: function(e) { + var t = e.prototype._emit; + return e.prototype._emit = function(e, n) { + var o = t.apply(this, arguments); + if (!n) { + var i = o; + i || (i = t.call(this, e, !0)), r.channel.publish("bunyan", { + level: e.level, + result: i + }) + } + return o + }, e + } + }, t.enable = function() { + r.channel.registerMonkeyPatch("bunyan", t.bunyan) + } + }, + 8159: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = n(6932), + o = n(2781); + t.console = { + versionSpecifier: ">= 4.0.0", + patch: function(e) { + var t = new o.Writable, + n = new o.Writable; + t.write = function(e) { + if (!e) return !0; + var t = e.toString(); + return r.channel.publish("console", { + message: t + }), !0 + }, n.write = function(e) { + if (!e) return !0; + var t = e.toString(); + return r.channel.publish("console", { + message: t, + stderr: !0 + }), !0 + }; + for (var i = new e.Console(t, n), s = function(t) { + var n = e[t]; + n && (e[t] = function() { + if (i[t]) try { + i[t].apply(i, arguments) + } catch (e) {} + return n.apply(e, arguments) + }) + }, a = 0, c = ["log", "info", "warn", "error", "dir", "time", "timeEnd", "trace", "assert"]; a < c.length; a++) s(c[a]); + return e + } + }, t.enable = function() { + r.channel.registerMonkeyPatch("console", t.console), n(6206) + } + }, + 6315: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = n(2784); + t.azuresdk = r; + var o = n(248); + t.bunyan = o; + var i = n(8159); + t.console = i; + var s = n(7834); + t.mongodbCore = s; + var a = n(4826); + t.mongodb = a; + var c = n(5856); + t.mysql = c; + var u = n(8345); + t.pgPool = u; + var l = n(7726); + t.pg = l; + var d = n(4765); + t.redis = d; + var p = n(1624); + t.tedious = p; + var h = n(8041); + t.winston = h, t.enable = function() { + o.enable(), i.enable(), s.enable(), a.enable(), c.enable(), l.enable(), u.enable(), d.enable(), h.enable(), r.enable(), p.enable() + } + }, + 7834: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = n(6932); + t.mongoCore = { + versionSpecifier: ">= 2.0.0 < 4.0.0", + patch: function(e) { + var t = e.Server.prototype.connect; + return e.Server.prototype.connect = function() { + var e = t.apply(this, arguments), + n = this.s.pool.write; + this.s.pool.write = function() { + var e = "function" == typeof arguments[1] ? 1 : 2; + return "function" == typeof arguments[e] && (arguments[e] = r.channel.bindToContext(arguments[e])), n.apply(this, arguments) + }; + var o = this.s.pool.logout; + return this.s.pool.logout = function() { + return "function" == typeof arguments[1] && (arguments[1] = r.channel.bindToContext(arguments[1])), o.apply(this, arguments) + }, e + }, e + } + }, t.enable = function() { + r.channel.registerMonkeyPatch("mongodb-core", t.mongoCore) + } + }, + 4826: function(e, t, n) { + "use strict"; + var r = this && this.__assign || Object.assign || function(e) { + for (var t, n = 1, r = arguments.length; n < r; n++) + for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); + return e + }; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var o = n(6932); + t.mongo2 = { + versionSpecifier: ">= 2.0.0 <= 3.0.5", + patch: function(e) { + var t = e.instrument({ + operationIdGenerator: { + next: function() { + return o.channel.bindToContext((function(e) { + return e() + })) + } + } + }), + n = {}; + return t.on("started", (function(e) { + n[e.requestId] || (n[e.requestId] = r({}, e, { + time: new Date + })) + })), t.on("succeeded", (function(e) { + var t = n[e.requestId]; + t && delete n[e.requestId], "function" == typeof e.operationId ? e.operationId((function() { + return o.channel.publish("mongodb", { + startedData: t, + event: e, + succeeded: !0 + }) + })) : o.channel.publish("mongodb", { + startedData: t, + event: e, + succeeded: !0 + }) + })), t.on("failed", (function(e) { + var t = n[e.requestId]; + t && delete n[e.requestId], "function" == typeof e.operationId ? e.operationId((function() { + return o.channel.publish("mongodb", { + startedData: t, + event: e, + succeeded: !1 + }) + })) : o.channel.publish("mongodb", { + startedData: t, + event: e, + succeeded: !1 + }) + })), e + } + }, t.mongo3 = { + versionSpecifier: "> 3.0.5 < 3.3.0", + patch: function(e) { + var t = e.instrument(), + n = {}, + i = {}; + return t.on("started", (function(e) { + n[e.requestId] || (i[e.requestId] = o.channel.bindToContext((function(e) { + return e() + })), n[e.requestId] = r({}, e, { + time: new Date + })) + })), t.on("succeeded", (function(e) { + var t = n[e.requestId]; + t && delete n[e.requestId], "object" == typeof e && "function" == typeof i[e.requestId] && (i[e.requestId]((function() { + return o.channel.publish("mongodb", { + startedData: t, + event: e, + succeeded: !0 + }) + })), delete i[e.requestId]) + })), t.on("failed", (function(e) { + var t = n[e.requestId]; + t && delete n[e.requestId], "object" == typeof e && "function" == typeof i[e.requestId] && (i[e.requestId]((function() { + return o.channel.publish("mongodb", { + startedData: t, + event: e, + succeeded: !1 + }) + })), delete i[e.requestId]) + })), e + } + }, t.mongo330 = { + versionSpecifier: ">= 3.3.0 < 4.0.0", + patch: function(e) { + ! function(e) { + var t = e.Server.prototype.connect; + e.Server.prototype.connect = function() { + var e = t.apply(this, arguments), + n = this.s.coreTopology.s.pool.write; + this.s.coreTopology.s.pool.write = function() { + var e = "function" == typeof arguments[1] ? 1 : 2; + return "function" == typeof arguments[e] && (arguments[e] = o.channel.bindToContext(arguments[e])), n.apply(this, arguments) + }; + var r = this.s.coreTopology.s.pool.logout; + return this.s.coreTopology.s.pool.logout = function() { + return "function" == typeof arguments[1] && (arguments[1] = o.channel.bindToContext(arguments[1])), r.apply(this, arguments) + }, e + } + }(e); + var t = e.instrument(), + n = {}, + r = {}; + return t.on("started", (function(e) { + n[e.requestId] || (r[e.requestId] = o.channel.bindToContext((function(e) { + return e() + })), n[e.requestId] = e) + })), t.on("succeeded", (function(e) { + var t = n[e.requestId]; + t && delete n[e.requestId], "object" == typeof e && "function" == typeof r[e.requestId] && (r[e.requestId]((function() { + return o.channel.publish("mongodb", { + startedData: t, + event: e, + succeeded: !0 + }) + })), delete r[e.requestId]) + })), t.on("failed", (function(e) { + var t = n[e.requestId]; + t && delete n[e.requestId], "object" == typeof e && "function" == typeof r[e.requestId] && (r[e.requestId]((function() { + return o.channel.publish("mongodb", { + startedData: t, + event: e, + succeeded: !1 + }) + })), delete r[e.requestId]) + })), e + } + }, t.enable = function() { + o.channel.registerMonkeyPatch("mongodb", t.mongo2), o.channel.registerMonkeyPatch("mongodb", t.mongo3), o.channel.registerMonkeyPatch("mongodb", t.mongo330) + } + }, + 5856: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = n(6932), + o = n(1017); + t.mysql = { + versionSpecifier: ">= 2.0.0 < 3.0.0", + patch: function(e, t) { + var i = function(e, t) { + return function(t, n) { + var o = e[t]; + o && (e[t] = function() { + for (var e = arguments.length - 1, t = arguments.length - 1; t >= 0; --t) { + if ("function" == typeof arguments[t]) { + e = t; + break + } + if (void 0 !== arguments[t]) break + } + var i = arguments[e], + s = { + result: null, + startTime: null, + startDate: null + }; + "function" == typeof i && (n ? (s.startTime = process.hrtime(), s.startDate = new Date, arguments[e] = r.channel.bindToContext(n(s, i))) : arguments[e] = r.channel.bindToContext(i)); + var a = o.apply(this, arguments); + return s.result = a, a + }) + } + }, + s = function(e, t) { + return i(e.prototype) + }, + a = n(1055)(o.dirname(t) + "/lib/Connection"); + ["connect", "changeUser", "ping", "statistics", "end"].forEach((function(e) { + return s(a)(e) + })), i(a)("createQuery", (function(e, t) { + return function(n) { + var o = process.hrtime(e.startTime), + i = 1e3 * o[0] + o[1] / 1e6 | 0; + r.channel.publish("mysql", { + query: e.result, + callbackArgs: arguments, + err: n, + duration: i, + time: e.startDate + }), t.apply(this, arguments) + } + })); + var c = n(6990)(o.dirname(t) + "/lib/Pool"); + return ["_enqueueCallback"].forEach((function(e) { + return s(c)(e) + })), e + } + }, t.enable = function() { + r.channel.registerMonkeyPatch("mysql", t.mysql) + } + }, + 8345: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = n(6932); + t.postgresPool1 = { + versionSpecifier: ">= 1.0.0 < 3.0.0", + patch: function(e) { + var t = e.prototype.connect; + return e.prototype.connect = function(e) { + return e && (arguments[0] = r.channel.bindToContext(e)), t.apply(this, arguments) + }, e + } + }, t.enable = function() { + r.channel.registerMonkeyPatch("pg-pool", t.postgresPool1) + } + }, + 7726: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = n(6932), + o = n(2361); + t.postgres6 = { + versionSpecifier: "6.*", + patch: function(e, t) { + var n = e.Client.prototype.query, + i = "__diagnosticOriginalFunc"; + return e.Client.prototype.query = function(e, t, s) { + var a, c = { + query: {}, + database: { + host: this.connectionParameters.host, + port: this.connectionParameters.port + }, + result: null, + error: null, + duration: 0, + time: new Date + }, + u = process.hrtime(); + + function l(e) { + e && e[i] && (e = e[i]); + var t = r.channel.bindToContext((function(t, n) { + var i = process.hrtime(u); + if (c.result = n && { + rowCount: n.rowCount, + command: n.command + }, c.error = t, c.duration = Math.ceil(1e3 * i[0] + i[1] / 1e6), r.channel.publish("postgres", c), t) { + if (e) return e.apply(this, arguments); + a && a instanceof o.EventEmitter && a.emit("error", t) + } else e && e.apply(this, arguments) + })); + try { + return Object.defineProperty(t, i, { + value: e + }), t + } catch (t) { + return e + } + } + try { + "string" == typeof e ? t instanceof Array ? (c.query.preparable = { + text: e, + args: t + }, s = l(s)) : (c.query.text = e, s ? s = l(s) : t = l(t)) : ("string" == typeof e.name ? c.query.plan = e.name : e.values instanceof Array ? c.query.preparable = { + text: e.text, + args: e.values + } : c.query.text = e.text, s ? s = l(s) : t ? t = l(t) : e.callback = l(e.callback)) + } catch (e) { + return n.apply(this, arguments) + } + return arguments[0] = e, arguments[1] = t, arguments[2] = s, arguments.length = arguments.length > 3 ? arguments.length : 3, a = n.apply(this, arguments) + }, e + } + }, t.postgres7 = { + versionSpecifier: ">=7.* <=8.*", + patch: function(e, t) { + var n = e.Client.prototype.query, + i = "__diagnosticOriginalFunc"; + return e.Client.prototype.query = function(e, t, s) { + var a, c = this, + u = !!s, + l = { + query: {}, + database: { + host: this.connectionParameters.host, + port: this.connectionParameters.port + }, + result: null, + error: null, + duration: 0, + time: new Date + }, + d = process.hrtime(); + + function p(e) { + e && e[i] && (e = e[i]); + var t = r.channel.bindToContext((function(t, n) { + var i = process.hrtime(d); + if (l.result = n && { + rowCount: n.rowCount, + command: n.command + }, l.error = t, l.duration = Math.ceil(1e3 * i[0] + i[1] / 1e6), r.channel.publish("postgres", l), t) { + if (e) return e.apply(this, arguments); + a && a instanceof o.EventEmitter && a.emit("error", t) + } else e && e.apply(this, arguments) + })); + try { + return Object.defineProperty(t, i, { + value: e + }), t + } catch (t) { + return e + } + } + try { + "string" == typeof e ? t instanceof Array ? (l.query.preparable = { + text: e, + args: t + }, s = (u = "function" == typeof s) ? p(s) : s) : (l.query.text = e, s ? s = (u = "function" == typeof s) ? p(s) : s : t = (u = "function" == typeof t) ? p(t) : t) : ("string" == typeof e.name ? l.query.plan = e.name : e.values instanceof Array ? l.query.preparable = { + text: e.text, + args: e.values + } : l.query.text = e.text, s ? (u = "function" == typeof s, s = p(s)) : t ? t = (u = "function" == typeof t) ? p(t) : t : (u = "function" == typeof e.callback, e.callback = u ? p(e.callback) : e.callback)) + } catch (e) { + return n.apply(this, arguments) + } + return arguments[0] = e, arguments[1] = t, arguments[2] = s, arguments.length = arguments.length > 3 ? arguments.length : 3, a = n.apply(this, arguments), u ? a : a.then((function(e) { + return p()(void 0, e), new c._Promise((function(t, n) { + t(e) + })) + })).catch((function(e) { + return p()(e, void 0), new c._Promise((function(t, n) { + n(e) + })) + })) + }, e + } + }, t.enable = function() { + r.channel.registerMonkeyPatch("pg", t.postgres6), r.channel.registerMonkeyPatch("pg", t.postgres7) + } + }, + 4765: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = n(6932); + t.redis = { + versionSpecifier: ">= 2.0.0 < 4.0.0", + patch: function(e) { + var t = e.RedisClient.prototype.internal_send_command; + return e.RedisClient.prototype.internal_send_command = function(e) { + if (e) { + var n = e.callback; + if (!n || !n.pubsubBound) { + var o = this.address, + i = process.hrtime(), + s = new Date; + e.callback = r.channel.bindToContext((function(t, a) { + var c = process.hrtime(i), + u = 1e3 * c[0] + c[1] / 1e6 | 0; + r.channel.publish("redis", { + duration: u, + address: o, + commandObj: e, + err: t, + result: a, + time: s + }), "function" == typeof n && n.apply(this, arguments) + })), e.callback.pubsubBound = !0 + } + } + return t.call(this, e) + }, e + } + }, t.enable = function() { + r.channel.registerMonkeyPatch("redis", t.redis) + } + }, + 1624: function(e, t, n) { + "use strict"; + var r = this && this.__assign || Object.assign || function(e) { + for (var t, n = 1, r = arguments.length; n < r; n++) + for (var o in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); + return e + }; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var o = n(6932); + t.tedious = { + versionSpecifier: ">= 6.0.0 < 9.0.0", + patch: function(e) { + var t = e.Connection.prototype.makeRequest; + return e.Connection.prototype.makeRequest = function() { + function e(e) { + var t = process.hrtime(), + n = { + query: {}, + database: { + host: null, + port: null + }, + result: null, + error: null, + duration: 0 + }; + return o.channel.bindToContext((function(i, s, a) { + var c = process.hrtime(t); + n = r({}, n, { + database: { + host: this.connection.config.server, + port: this.connection.config.options.port + }, + result: !i && { + rowCount: s, + rows: a + }, + query: { + text: this.parametersByName.statement.value + }, + error: i, + duration: Math.ceil(1e3 * c[0] + c[1] / 1e6) + }), o.channel.publish("tedious", n), e.call(this, i, s, a) + })) + } + var n = arguments[0]; + arguments[0].callback = e(n.callback), t.apply(this, arguments) + }, e + } + }, t.enable = function() { + o.channel.registerMonkeyPatch("tedious", t.tedious) + } + }, + 8041: function(e, t, n) { + "use strict"; + var r, o = this && this.__extends || (r = Object.setPrototypeOf || { + __proto__: [] + } + instanceof Array && function(e, t) { + e.__proto__ = t + } || function(e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]) + }, + function(e, t) { + function n() { + this.constructor = e + } + r(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) + }), + i = this && this.__rest || function(e, t) { + var n = {}; + for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]); + if (null != e && "function" == typeof Object.getOwnPropertySymbols) { + var o = 0; + for (r = Object.getOwnPropertySymbols(e); o < r.length; o++) t.indexOf(r[o]) < 0 && (n[r[o]] = e[r[o]]) + } + return n + }; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var s = n(6932); + t.winston3 = { + versionSpecifier: "3.x", + patch: function(e) { + var t = function(e) { + function t(t, n) { + var r = e.call(this, n) || this; + return r.winston = t, r + } + return o(t, e), t.prototype.log = function(e, t) { + var n = e.message, + r = e.level, + o = e.meta, + a = i(e, ["message", "level", "meta"]); + r = "function" == typeof Symbol.for ? e[Symbol.for("level")] : r, n = e instanceof Error ? e : n; + var c = function(e, t) { + return null != e.config.npm.levels[t] ? "npm" : null != e.config.syslog.levels[t] ? "syslog" : "unknown" + }(this.winston, r); + for (var u in o = o || {}, a) a.hasOwnProperty(u) && (o[u] = a[u]); + s.channel.publish("winston", { + message: n, + level: r, + levelKind: c, + meta: o + }), t() + }, t + }(e.Transport); + + function n() { + var n, r = arguments[0].levels || e.config.npm.levels; + for (var o in r) r.hasOwnProperty(o) && (n = void 0 === n || r[o] > r[n] ? o : n); + this.add(new t(e, { + level: n + })) + } + var r = e.createLogger; + e.createLogger = function() { + var o, i = arguments[0].levels || e.config.npm.levels; + for (var s in i) i.hasOwnProperty(s) && (o = void 0 === o || i[s] > i[o] ? s : o); + var a = r.apply(this, arguments); + a.add(new t(e, { + level: o + })); + var c = a.configure; + return a.configure = function() { + c.apply(this, arguments), n.apply(this, arguments) + }, a + }; + var a = e.createLogger; + return e.configure = function() { + a.apply(this, arguments), n.apply(this, arguments) + }, e.add(new t(e)), e + } + }, t.winston2 = { + versionSpecifier: "2.x", + patch: function(e) { + var t, n = e.Logger.prototype.log, + r = function(n, r, o) { + var i; + return i = t === e.config.npm.levels ? "npm" : t === e.config.syslog.levels ? "syslog" : "unknown", s.channel.publish("winston", { + level: n, + message: r, + meta: o, + levelKind: i + }), r + }; + return e.Logger.prototype.log = function() { + return t = this.levels, this.filters && 0 !== this.filters.length ? this.filters[this.filters.length - 1] !== r && (this.filters = this.filters.filter((function(e) { + return e !== r + })), this.filters.push(r)) : this.filters = [r], n.apply(this, arguments) + }, e + } + }, t.enable = function() { + s.channel.registerMonkeyPatch("winston", t.winston2), s.channel.registerMonkeyPatch("winston", t.winston3) + } + }, + 1055: e => { + function t(e) { + var t = new Error("Cannot find module '" + e + "'"); + throw t.code = "MODULE_NOT_FOUND", t + } + t.keys = () => [], t.resolve = t, t.id = 1055, e.exports = t + }, + 6990: e => { + function t(e) { + var t = new Error("Cannot find module '" + e + "'"); + throw t.code = "MODULE_NOT_FOUND", t + } + t.keys = () => [], t.resolve = t, t.id = 6990, e.exports = t + }, + 6932: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = n(8497), + o = n(8497); + t.makePatchingRequire = o.makePatchingRequire; + var i = function(e) { + return !0 + }, + s = function() { + function e() { + this.version = n(9674).i8, this.subscribers = {}, this.contextPreservationFunction = function(e) { + return e + }, this.knownPatches = {}, this.currentlyPublishing = !1 + } + return e.prototype.shouldPublish = function(e) { + var t = this.subscribers[e]; + return !!t && t.some((function(e) { + var t = e.filter; + return !t || t(!1) + })) + }, e.prototype.publish = function(e, t) { + if (!this.currentlyPublishing) { + var n = this.subscribers[e]; + if (n) { + var r = { + timestamp: Date.now(), + data: t + }; + this.currentlyPublishing = !0, n.forEach((function(e) { + var t = e.listener, + n = e.filter; + try { + n && n(!0) && t(r) + } catch (e) {} + })), this.currentlyPublishing = !1 + } + } + }, e.prototype.subscribe = function(e, t, n) { + void 0 === n && (n = i), this.subscribers[e] || (this.subscribers[e] = []), this.subscribers[e].push({ + listener: t, + filter: n + }) + }, e.prototype.unsubscribe = function(e, t, n) { + void 0 === n && (n = i); + var r = this.subscribers[e]; + if (r) + for (var o = 0; o < r.length; ++o) + if (r[o].listener === t && r[o].filter === n) return r.splice(o, 1), !0; + return !1 + }, e.prototype.reset = function() { + var e = this; + this.subscribers = {}, this.contextPreservationFunction = function(e) { + return e + }, Object.getOwnPropertyNames(this.knownPatches).forEach((function(t) { + return delete e.knownPatches[t] + })) + }, e.prototype.bindToContext = function(e) { + return this.contextPreservationFunction(e) + }, e.prototype.addContextPreservation = function(e) { + var t = this.contextPreservationFunction; + this.contextPreservationFunction = function(n) { + return e(t(n)) + } + }, e.prototype.registerMonkeyPatch = function(e, t) { + this.knownPatches[e] || (this.knownPatches[e] = []), this.knownPatches[e].push(t) + }, e.prototype.getPatchesObject = function() { + return this.knownPatches + }, e + }(); + global.diagnosticsSource || (global.diagnosticsSource = new s, n(8188).prototype.require = r.makePatchingRequire(global.diagnosticsSource.getPatchesObject())), t.channel = global.diagnosticsSource + }, + 8497: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + var r = n(1017), + o = n(6190), + i = n(8188), + s = Object.keys(process.binding("natives")), + a = i.prototype.require; + t.makePatchingRequire = function(e) { + var t = {}; + return function(n) { + var c = a.apply(this, arguments); + if (e[n]) { + var u = i._resolveFilename(n, this); + if (t.hasOwnProperty(u)) return t[u]; + var l = void 0; + if (s.indexOf(n) < 0) try { + l = a.call(this, r.join(n, "package.json")).version + } catch (e) { + return c + } else l = process.version.substring(1); + var d = l.indexOf("-"); + d >= 0 && (l = l.substring(0, d)); + for (var p = c, h = 0, m = e[n]; h < m.length; h++) { + var f = m[h]; + o.satisfies(l, f.versionSpecifier) && (p = f.patch(p, u)) + } + return t[u] = p + } + return c + } + } + }, + 6190: (e, t) => { + var n; + t = e.exports = G, n = "object" == typeof process && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? function() { + var e = Array.prototype.slice.call(arguments, 0); + e.unshift("SEMVER"), console.log.apply(console, e) + } : function() {}, t.SEMVER_SPEC_VERSION = "2.0.0"; + var r = Number.MAX_SAFE_INTEGER || 9007199254740991, + o = t.re = [], + i = t.src = [], + s = 0, + a = s++; + i[a] = "0|[1-9]\\d*"; + var c = s++; + i[c] = "[0-9]+"; + var u = s++; + i[u] = "\\d*[a-zA-Z-][a-zA-Z0-9-]*"; + var l = s++; + i[l] = "(" + i[a] + ")\\.(" + i[a] + ")\\.(" + i[a] + ")"; + var d = s++; + i[d] = "(" + i[c] + ")\\.(" + i[c] + ")\\.(" + i[c] + ")"; + var p = s++; + i[p] = "(?:" + i[a] + "|" + i[u] + ")"; + var h = s++; + i[h] = "(?:" + i[c] + "|" + i[u] + ")"; + var m = s++; + i[m] = "(?:-(" + i[p] + "(?:\\." + i[p] + ")*))"; + var f = s++; + i[f] = "(?:-?(" + i[h] + "(?:\\." + i[h] + ")*))"; + var g = s++; + i[g] = "[0-9A-Za-z-]+"; + var y = s++; + i[y] = "(?:\\+(" + i[g] + "(?:\\." + i[g] + ")*))"; + var _ = s++, + v = "v?" + i[l] + i[m] + "?" + i[y] + "?"; + i[_] = "^" + v + "$"; + var b = "[v=\\s]*" + i[d] + i[f] + "?" + i[y] + "?", + k = s++; + i[k] = "^" + b + "$"; + var w = s++; + i[w] = "((?:<|>)?=?)"; + var j = s++; + i[j] = i[c] + "|x|X|\\*"; + var x = s++; + i[x] = i[a] + "|x|X|\\*"; + var E = s++; + i[E] = "[v=\\s]*(" + i[x] + ")(?:\\.(" + i[x] + ")(?:\\.(" + i[x] + ")(?:" + i[m] + ")?" + i[y] + "?)?)?"; + var C = s++; + i[C] = "[v=\\s]*(" + i[j] + ")(?:\\.(" + i[j] + ")(?:\\.(" + i[j] + ")(?:" + i[f] + ")?" + i[y] + "?)?)?"; + var S = s++; + i[S] = "^" + i[w] + "\\s*" + i[E] + "$"; + var T = s++; + i[T] = "^" + i[w] + "\\s*" + i[C] + "$"; + var P = s++; + i[P] = "(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])"; + var I = s++; + i[I] = "(?:~>?)"; + var R = s++; + i[R] = "(\\s*)" + i[I] + "\\s+", o[R] = new RegExp(i[R], "g"); + var O = s++; + i[O] = "^" + i[I] + i[E] + "$"; + var A = s++; + i[A] = "^" + i[I] + i[C] + "$"; + var N = s++; + i[N] = "(?:\\^)"; + var D = s++; + i[D] = "(\\s*)" + i[N] + "\\s+", o[D] = new RegExp(i[D], "g"); + var M = s++; + i[M] = "^" + i[N] + i[E] + "$"; + var q = s++; + i[q] = "^" + i[N] + i[C] + "$"; + var L = s++; + i[L] = "^" + i[w] + "\\s*(" + b + ")$|^$"; + var $ = s++; + i[$] = "^" + i[w] + "\\s*(" + v + ")$|^$"; + var F = s++; + i[F] = "(\\s*)" + i[w] + "\\s*(" + b + "|" + i[E] + ")", o[F] = new RegExp(i[F], "g"); + var z = s++; + i[z] = "^\\s*(" + i[E] + ")\\s+-\\s+(" + i[E] + ")\\s*$"; + var B = s++; + i[B] = "^\\s*(" + i[C] + ")\\s+-\\s+(" + i[C] + ")\\s*$"; + var U = s++; + i[U] = "(<|>)?=?\\s*\\*"; + for (var H = 0; H < 35; H++) n(H, i[H]), o[H] || (o[H] = new RegExp(i[H])); + + function W(e, t) { + if (t && "object" == typeof t || (t = { + loose: !!t, + includePrerelease: !1 + }), e instanceof G) return e; + if ("string" != typeof e) return null; + if (e.length > 256) return null; + if (!(t.loose ? o[k] : o[_]).test(e)) return null; + try { + return new G(e, t) + } catch (e) { + return null + } + } + + function G(e, t) { + if (t && "object" == typeof t || (t = { + loose: !!t, + includePrerelease: !1 + }), e instanceof G) { + if (e.loose === t.loose) return e; + e = e.version + } else if ("string" != typeof e) throw new TypeError("Invalid Version: " + e); + if (e.length > 256) throw new TypeError("version is longer than 256 characters"); + if (!(this instanceof G)) return new G(e, t); + n("SemVer", e, t), this.options = t, this.loose = !!t.loose; + var i = e.trim().match(t.loose ? o[k] : o[_]); + if (!i) throw new TypeError("Invalid Version: " + e); + if (this.raw = e, this.major = +i[1], this.minor = +i[2], this.patch = +i[3], this.major > r || this.major < 0) throw new TypeError("Invalid major version"); + if (this.minor > r || this.minor < 0) throw new TypeError("Invalid minor version"); + if (this.patch > r || this.patch < 0) throw new TypeError("Invalid patch version"); + i[4] ? this.prerelease = i[4].split(".").map((function(e) { + if (/^[0-9]+$/.test(e)) { + var t = +e; + if (t >= 0 && t < r) return t + } + return e + })) : this.prerelease = [], this.build = i[5] ? i[5].split(".") : [], this.format() + } + t.parse = W, t.valid = function(e, t) { + var n = W(e, t); + return n ? n.version : null + }, t.clean = function(e, t) { + var n = W(e.trim().replace(/^[=v]+/, ""), t); + return n ? n.version : null + }, t.SemVer = G, G.prototype.format = function() { + return this.version = this.major + "." + this.minor + "." + this.patch, this.prerelease.length && (this.version += "-" + this.prerelease.join(".")), this.version + }, G.prototype.toString = function() { + return this.version + }, G.prototype.compare = function(e) { + return n("SemVer.compare", this.version, this.options, e), e instanceof G || (e = new G(e, this.options)), this.compareMain(e) || this.comparePre(e) + }, G.prototype.compareMain = function(e) { + return e instanceof G || (e = new G(e, this.options)), K(this.major, e.major) || K(this.minor, e.minor) || K(this.patch, e.patch) + }, G.prototype.comparePre = function(e) { + if (e instanceof G || (e = new G(e, this.options)), this.prerelease.length && !e.prerelease.length) return -1; + if (!this.prerelease.length && e.prerelease.length) return 1; + if (!this.prerelease.length && !e.prerelease.length) return 0; + var t = 0; + do { + var r = this.prerelease[t], + o = e.prerelease[t]; + if (n("prerelease compare", t, r, o), void 0 === r && void 0 === o) return 0; + if (void 0 === o) return 1; + if (void 0 === r) return -1; + if (r !== o) return K(r, o) + } while (++t) + }, G.prototype.inc = function(e, t) { + switch (e) { + case "premajor": + this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", t); + break; + case "preminor": + this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", t); + break; + case "prepatch": + this.prerelease.length = 0, this.inc("patch", t), this.inc("pre", t); + break; + case "prerelease": + 0 === this.prerelease.length && this.inc("patch", t), this.inc("pre", t); + break; + case "major": + 0 === this.minor && 0 === this.patch && 0 !== this.prerelease.length || this.major++, this.minor = 0, this.patch = 0, this.prerelease = []; + break; + case "minor": + 0 === this.patch && 0 !== this.prerelease.length || this.minor++, this.patch = 0, this.prerelease = []; + break; + case "patch": + 0 === this.prerelease.length && this.patch++, this.prerelease = []; + break; + case "pre": + if (0 === this.prerelease.length) this.prerelease = [0]; + else { + for (var n = this.prerelease.length; --n >= 0;) "number" == typeof this.prerelease[n] && (this.prerelease[n]++, n = -2); - 1 === n && this.prerelease.push(0) + } + t && (this.prerelease[0] === t ? isNaN(this.prerelease[1]) && (this.prerelease = [t, 0]) : this.prerelease = [t, 0]); + break; + default: + throw new Error("invalid increment argument: " + e) + } + return this.format(), this.raw = this.version, this + }, t.inc = function(e, t, n, r) { + "string" == typeof n && (r = n, n = void 0); + try { + return new G(e, n).inc(t, r).version + } catch (e) { + return null + } + }, t.diff = function(e, t) { + if (Q(e, t)) return null; + var n = W(e), + r = W(t), + o = ""; + if (n.prerelease.length || r.prerelease.length) { + o = "pre"; + var i = "prerelease" + } + for (var s in n) + if (("major" === s || "minor" === s || "patch" === s) && n[s] !== r[s]) return o + s; + return i + }, t.compareIdentifiers = K; + var V = /^[0-9]+$/; + + function K(e, t) { + var n = V.test(e), + r = V.test(t); + return n && r && (e = +e, t = +t), e === t ? 0 : n && !r ? -1 : r && !n ? 1 : e < t ? -1 : 1 + } + + function J(e, t, n) { + return new G(e, n).compare(new G(t, n)) + } + + function X(e, t, n) { + return J(e, t, n) > 0 + } + + function Y(e, t, n) { + return J(e, t, n) < 0 + } + + function Q(e, t, n) { + return 0 === J(e, t, n) + } + + function Z(e, t, n) { + return 0 !== J(e, t, n) + } + + function ee(e, t, n) { + return J(e, t, n) >= 0 + } + + function te(e, t, n) { + return J(e, t, n) <= 0 + } + + function ne(e, t, n, r) { + switch (t) { + case "===": + return "object" == typeof e && (e = e.version), "object" == typeof n && (n = n.version), e === n; + case "!==": + return "object" == typeof e && (e = e.version), "object" == typeof n && (n = n.version), e !== n; + case "": + case "=": + case "==": + return Q(e, n, r); + case "!=": + return Z(e, n, r); + case ">": + return X(e, n, r); + case ">=": + return ee(e, n, r); + case "<": + return Y(e, n, r); + case "<=": + return te(e, n, r); + default: + throw new TypeError("Invalid operator: " + t) + } + } + + function re(e, t) { + if (t && "object" == typeof t || (t = { + loose: !!t, + includePrerelease: !1 + }), e instanceof re) { + if (e.loose === !!t.loose) return e; + e = e.value + } + if (!(this instanceof re)) return new re(e, t); + n("comparator", e, t), this.options = t, this.loose = !!t.loose, this.parse(e), this.semver === oe ? this.value = "" : this.value = this.operator + this.semver.version, n("comp", this) + } + t.rcompareIdentifiers = function(e, t) { + return K(t, e) + }, t.major = function(e, t) { + return new G(e, t).major + }, t.minor = function(e, t) { + return new G(e, t).minor + }, t.patch = function(e, t) { + return new G(e, t).patch + }, t.compare = J, t.compareLoose = function(e, t) { + return J(e, t, !0) + }, t.rcompare = function(e, t, n) { + return J(t, e, n) + }, t.sort = function(e, n) { + return e.sort((function(e, r) { + return t.compare(e, r, n) + })) + }, t.rsort = function(e, n) { + return e.sort((function(e, r) { + return t.rcompare(e, r, n) + })) + }, t.gt = X, t.lt = Y, t.eq = Q, t.neq = Z, t.gte = ee, t.lte = te, t.cmp = ne, t.Comparator = re; + var oe = {}; + + function ie(e, t) { + if (t && "object" == typeof t || (t = { + loose: !!t, + includePrerelease: !1 + }), e instanceof ie) return e.loose === !!t.loose && e.includePrerelease === !!t.includePrerelease ? e : new ie(e.raw, t); + if (e instanceof re) return new ie(e.value, t); + if (!(this instanceof ie)) return new ie(e, t); + if (this.options = t, this.loose = !!t.loose, this.includePrerelease = !!t.includePrerelease, this.raw = e, this.set = e.split(/\s*\|\|\s*/).map((function(e) { + return this.parseRange(e.trim()) + }), this).filter((function(e) { + return e.length + })), !this.set.length) throw new TypeError("Invalid SemVer Range: " + e); + this.format() + } + + function se(e) { + return !e || "x" === e.toLowerCase() || "*" === e + } + + function ae(e, t, n, r, o, i, s, a, c, u, l, d, p) { + return ((t = se(n) ? "" : se(r) ? ">=" + n + ".0.0" : se(o) ? ">=" + n + "." + r + ".0" : ">=" + t) + " " + (a = se(c) ? "" : se(u) ? "<" + (+c + 1) + ".0.0" : se(l) ? "<" + c + "." + (+u + 1) + ".0" : d ? "<=" + c + "." + u + "." + l + "-" + d : "<=" + a)).trim() + } + + function ce(e, t, r) { + for (var o = 0; o < e.length; o++) + if (!e[o].test(t)) return !1; + if (t.prerelease.length && !r.includePrerelease) { + for (o = 0; o < e.length; o++) + if (n(e[o].semver), e[o].semver !== oe && e[o].semver.prerelease.length > 0) { + var i = e[o].semver; + if (i.major === t.major && i.minor === t.minor && i.patch === t.patch) return !0 + } return !1 + } + return !0 + } + + function ue(e, t, n) { + try { + t = new ie(t, n) + } catch (e) { + return !1 + } + return t.test(e) + } + + function le(e, t, n, r) { + var o, i, s, a, c; + switch (e = new G(e, r), t = new ie(t, r), n) { + case ">": + o = X, i = te, s = Y, a = ">", c = ">="; + break; + case "<": + o = Y, i = ee, s = X, a = "<", c = "<="; + break; + default: + throw new TypeError('Must provide a hilo val of "<" or ">"') + } + if (ue(e, t, r)) return !1; + for (var u = 0; u < t.set.length; ++u) { + var l = t.set[u], + d = null, + p = null; + if (l.forEach((function(e) { + e.semver === oe && (e = new re(">=0.0.0")), d = d || e, p = p || e, o(e.semver, d.semver, r) ? d = e : s(e.semver, p.semver, r) && (p = e) + })), d.operator === a || d.operator === c) return !1; + if ((!p.operator || p.operator === a) && i(e, p.semver)) return !1; + if (p.operator === c && s(e, p.semver)) return !1 + } + return !0 + } + re.prototype.parse = function(e) { + var t = this.options.loose ? o[L] : o[$], + n = e.match(t); + if (!n) throw new TypeError("Invalid comparator: " + e); + this.operator = n[1], "=" === this.operator && (this.operator = ""), n[2] ? this.semver = new G(n[2], this.options.loose) : this.semver = oe + }, re.prototype.toString = function() { + return this.value + }, re.prototype.test = function(e) { + return n("Comparator.test", e, this.options.loose), this.semver === oe || ("string" == typeof e && (e = new G(e, this.options)), ne(e, this.operator, this.semver, this.options)) + }, re.prototype.intersects = function(e, t) { + if (!(e instanceof re)) throw new TypeError("a Comparator is required"); + var n; + if (t && "object" == typeof t || (t = { + loose: !!t, + includePrerelease: !1 + }), "" === this.operator) return n = new ie(e.value, t), ue(this.value, n, t); + if ("" === e.operator) return n = new ie(this.value, t), ue(e.semver, n, t); + var r = !(">=" !== this.operator && ">" !== this.operator || ">=" !== e.operator && ">" !== e.operator), + o = !("<=" !== this.operator && "<" !== this.operator || "<=" !== e.operator && "<" !== e.operator), + i = this.semver.version === e.semver.version, + s = !(">=" !== this.operator && "<=" !== this.operator || ">=" !== e.operator && "<=" !== e.operator), + a = ne(this.semver, "<", e.semver, t) && (">=" === this.operator || ">" === this.operator) && ("<=" === e.operator || "<" === e.operator), + c = ne(this.semver, ">", e.semver, t) && ("<=" === this.operator || "<" === this.operator) && (">=" === e.operator || ">" === e.operator); + return r || o || i && s || a || c + }, t.Range = ie, ie.prototype.format = function() { + return this.range = this.set.map((function(e) { + return e.join(" ").trim() + })).join("||").trim(), this.range + }, ie.prototype.toString = function() { + return this.range + }, ie.prototype.parseRange = function(e) { + var t = this.options.loose; + e = e.trim(); + var r = t ? o[B] : o[z]; + e = e.replace(r, ae), n("hyphen replace", e), e = e.replace(o[F], "$1$2$3"), n("comparator trim", e, o[F]), e = (e = (e = e.replace(o[R], "$1~")).replace(o[D], "$1^")).split(/\s+/).join(" "); + var i = t ? o[L] : o[$], + s = e.split(" ").map((function(e) { + return function(e, t) { + return n("comp", e, t), e = function(e, t) { + return e.trim().split(/\s+/).map((function(e) { + return function(e, t) { + n("caret", e, t); + var r = t.loose ? o[q] : o[M]; + return e.replace(r, (function(t, r, o, i, s) { + var a; + return n("caret", e, t, r, o, i, s), se(r) ? a = "" : se(o) ? a = ">=" + r + ".0.0 <" + (+r + 1) + ".0.0" : se(i) ? a = "0" === r ? ">=" + r + "." + o + ".0 <" + r + "." + (+o + 1) + ".0" : ">=" + r + "." + o + ".0 <" + (+r + 1) + ".0.0" : s ? (n("replaceCaret pr", s), a = "0" === r ? "0" === o ? ">=" + r + "." + o + "." + i + "-" + s + " <" + r + "." + o + "." + (+i + 1) : ">=" + r + "." + o + "." + i + "-" + s + " <" + r + "." + (+o + 1) + ".0" : ">=" + r + "." + o + "." + i + "-" + s + " <" + (+r + 1) + ".0.0") : (n("no pr"), a = "0" === r ? "0" === o ? ">=" + r + "." + o + "." + i + " <" + r + "." + o + "." + (+i + 1) : ">=" + r + "." + o + "." + i + " <" + r + "." + (+o + 1) + ".0" : ">=" + r + "." + o + "." + i + " <" + (+r + 1) + ".0.0"), n("caret return", a), a + })) + }(e, t) + })).join(" ") + }(e, t), n("caret", e), e = function(e, t) { + return e.trim().split(/\s+/).map((function(e) { + return function(e, t) { + var r = t.loose ? o[A] : o[O]; + return e.replace(r, (function(t, r, o, i, s) { + var a; + return n("tilde", e, t, r, o, i, s), se(r) ? a = "" : se(o) ? a = ">=" + r + ".0.0 <" + (+r + 1) + ".0.0" : se(i) ? a = ">=" + r + "." + o + ".0 <" + r + "." + (+o + 1) + ".0" : s ? (n("replaceTilde pr", s), a = ">=" + r + "." + o + "." + i + "-" + s + " <" + r + "." + (+o + 1) + ".0") : a = ">=" + r + "." + o + "." + i + " <" + r + "." + (+o + 1) + ".0", n("tilde return", a), a + })) + }(e, t) + })).join(" ") + }(e, t), n("tildes", e), e = function(e, t) { + return n("replaceXRanges", e, t), e.split(/\s+/).map((function(e) { + return function(e, t) { + e = e.trim(); + var r = t.loose ? o[T] : o[S]; + return e.replace(r, (function(t, r, o, i, s, a) { + n("xRange", e, t, r, o, i, s, a); + var c = se(o), + u = c || se(i), + l = u || se(s); + return "=" === r && l && (r = ""), c ? t = ">" === r || "<" === r ? "<0.0.0" : "*" : r && l ? (u && (i = 0), s = 0, ">" === r ? (r = ">=", u ? (o = +o + 1, i = 0, s = 0) : (i = +i + 1, s = 0)) : "<=" === r && (r = "<", u ? o = +o + 1 : i = +i + 1), t = r + o + "." + i + "." + s) : u ? t = ">=" + o + ".0.0 <" + (+o + 1) + ".0.0" : l && (t = ">=" + o + "." + i + ".0 <" + o + "." + (+i + 1) + ".0"), n("xRange return", t), t + })) + }(e, t) + })).join(" ") + }(e, t), n("xrange", e), e = function(e, t) { + return n("replaceStars", e, t), e.trim().replace(o[U], "") + }(e, t), n("stars", e), e + }(e, this.options) + }), this).join(" ").split(/\s+/); + return this.options.loose && (s = s.filter((function(e) { + return !!e.match(i) + }))), s.map((function(e) { + return new re(e, this.options) + }), this) + }, ie.prototype.intersects = function(e, t) { + if (!(e instanceof ie)) throw new TypeError("a Range is required"); + return this.set.some((function(n) { + return n.every((function(n) { + return e.set.some((function(e) { + return e.every((function(e) { + return n.intersects(e, t) + })) + })) + })) + })) + }, t.toComparators = function(e, t) { + return new ie(e, t).set.map((function(e) { + return e.map((function(e) { + return e.value + })).join(" ").trim().split(" ") + })) + }, ie.prototype.test = function(e) { + if (!e) return !1; + "string" == typeof e && (e = new G(e, this.options)); + for (var t = 0; t < this.set.length; t++) + if (ce(this.set[t], e, this.options)) return !0; + return !1 + }, t.satisfies = ue, t.maxSatisfying = function(e, t, n) { + var r = null, + o = null; + try { + var i = new ie(t, n) + } catch (e) { + return null + } + return e.forEach((function(e) { + i.test(e) && (r && -1 !== o.compare(e) || (o = new G(r = e, n))) + })), r + }, t.minSatisfying = function(e, t, n) { + var r = null, + o = null; + try { + var i = new ie(t, n) + } catch (e) { + return null + } + return e.forEach((function(e) { + i.test(e) && (r && 1 !== o.compare(e) || (o = new G(r = e, n))) + })), r + }, t.minVersion = function(e, t) { + e = new ie(e, t); + var n = new G("0.0.0"); + if (e.test(n)) return n; + if (n = new G("0.0.0-0"), e.test(n)) return n; + n = null; + for (var r = 0; r < e.set.length; ++r) e.set[r].forEach((function(e) { + var t = new G(e.semver.version); + switch (e.operator) { + case ">": + 0 === t.prerelease.length ? t.patch++ : t.prerelease.push(0), t.raw = t.format(); + case "": + case ">=": + n && !X(n, t) || (n = t); + break; + case "<": + case "<=": + break; + default: + throw new Error("Unexpected operation: " + e.operator) + } + })); + return n && e.test(n) ? n : null + }, t.validRange = function(e, t) { + try { + return new ie(e, t).range || "*" + } catch (e) { + return null + } + }, t.ltr = function(e, t, n) { + return le(e, t, "<", n) + }, t.gtr = function(e, t, n) { + return le(e, t, ">", n) + }, t.outside = le, t.prerelease = function(e, t) { + var n = W(e, t); + return n && n.prerelease.length ? n.prerelease : null + }, t.intersects = function(e, t, n) { + return e = new ie(e, n), t = new ie(t, n), e.intersects(t) + }, t.coerce = function(e) { + if (e instanceof G) return e; + if ("string" != typeof e) return null; + var t = e.match(o[P]); + return null == t ? null : W(t[1] + "." + (t[2] || "0") + "." + (t[3] || "0")) + } + }, + 7267: (e, t, n) => { + "use strict"; + var r = n(4403), + o = r.wrap, + i = r.unwrap, + s = "wrap@before"; + + function a(e, t, n) { + var r = !!e[t] && e.propertyIsEnumerable(t); + Object.defineProperty(e, t, { + configurable: !0, + enumerable: r, + writable: !0, + value: n + }) + } + + function c(e, t) { + var n; + return n = e._events && e._events[t], Array.isArray(n) || (n = n ? [n] : []), n + } + + function u(e, t) { + if (e) { + var n = e; + if ("function" == typeof e) n = t(e); + else if (Array.isArray(e)) { + n = []; + for (var r = 0; r < e.length; r++) n[r] = t(e[r]) + } + return n + } + } + e.exports = function(e, t, n) { + if (!(e && e.on && e.addListener && e.removeListener && e.emit)) throw new Error("can only wrap real EEs"); + if (!t) throw new Error("must have function to run on listener addition"); + if (!n) throw new Error("must have function to wrap listeners when emitting"); + + function r(e) { + return function(t, n) { + var i = c(this, t).slice(); + try { + var a = e.call(this, t, n); + return function(e, t, n) { + var r = c(e, t).filter((function(e) { + return -1 === n.indexOf(e) + })); + r.length > 0 && function(e, t) { + for (var n = t.length, r = 0; r < n; r++) { + var o = t[r], + i = e[s]; + if ("function" == typeof i) i(o); + else if (Array.isArray(i)) + for (var a = i.length, c = 0; c < a; c++) i[c](o) + } + }(e, r) + }(this, t, i), a + } finally { + this.on.__wrapped || o(this, "on", r), this.addListener.__wrapped || o(this, "addListener", r) + } + } + } + e[s] ? "function" == typeof e[s] ? a(e, s, [e[s], t]) : Array.isArray(e[s]) && e[s].push(t) : a(e, s, t), e.__wrapped || (o(e, "addListener", r), o(e, "on", r), o(e, "emit", (function(e) { + return function(t) { + if (!this._events || !this._events[t]) return e.apply(this, arguments); + var r = this._events[t]; + + function s(e) { + return function() { + this._events[t] = r; + try { + return e.apply(this, arguments) + } finally { + r = this._events[t], this._events[t] = u(r, n) + } + } + } + o(this, "removeListener", s); + try { + return this._events[t] = u(r, n), e.apply(this, arguments) + } finally { + i(this, "removeListener"), this._events[t] = r + } + } + })), a(e, "__unwrap", (function() { + i(e, "addListener"), i(e, "on"), i(e, "emit"), delete e[s], delete e.__wrapped + })), a(e, "__wrapped", !0)) + } + }, + 6471: e => { + "use strict"; + e.exports = function e(t, n) { + if (t === n) return !0; + if (t && n && "object" == typeof t && "object" == typeof n) { + if (t.constructor !== n.constructor) return !1; + var r, o, i; + if (Array.isArray(t)) { + if ((r = t.length) != n.length) return !1; + for (o = r; 0 != o--;) + if (!e(t[o], n[o])) return !1; + return !0 + } + if (t.constructor === RegExp) return t.source === n.source && t.flags === n.flags; + if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === n.valueOf(); + if (t.toString !== Object.prototype.toString) return t.toString() === n.toString(); + if ((r = (i = Object.keys(t)).length) !== Object.keys(n).length) return !1; + for (o = r; 0 != o--;) + if (!Object.prototype.hasOwnProperty.call(n, i[o])) return !1; + for (o = r; 0 != o--;) { + var s = i[o]; + if (!e(t[s], n[s])) return !1 + } + return !0 + } + return t != t && n != n + } + }, + 1045: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.CookieJar = t.TimeoutError = t.AbortError = t.Response = t.Request = t.Headers = t.DataBody = t.StreamBody = t.JsonBody = t.Body = t.AbortController = t.onPush = t.disconnectAll = t.disconnect = t.fetch = t.context = t.setup = void 0; + const r = n(3078); + Object.defineProperty(t, "AbortController", { + enumerable: !0, + get: function() { + return r.AbortController + } + }); + const o = n(5224); + Object.defineProperty(t, "Body", { + enumerable: !0, + get: function() { + return o.Body + } + }), Object.defineProperty(t, "DataBody", { + enumerable: !0, + get: function() { + return o.DataBody + } + }), Object.defineProperty(t, "JsonBody", { + enumerable: !0, + get: function() { + return o.JsonBody + } + }), Object.defineProperty(t, "StreamBody", { + enumerable: !0, + get: function() { + return o.StreamBody + } + }); + const i = n(9690), + s = n(5282); + Object.defineProperty(t, "CookieJar", { + enumerable: !0, + get: function() { + return s.CookieJar + } + }); + const a = n(3602); + Object.defineProperty(t, "AbortError", { + enumerable: !0, + get: function() { + return a.AbortError + } + }), Object.defineProperty(t, "TimeoutError", { + enumerable: !0, + get: function() { + return a.TimeoutError + } + }); + const c = n(7716); + Object.defineProperty(t, "Headers", { + enumerable: !0, + get: function() { + return c.Headers + } + }); + const u = n(563); + Object.defineProperty(t, "Request", { + enumerable: !0, + get: function() { + return u.Request + } + }); + const l = n(4591); + Object.defineProperty(t, "Response", { + enumerable: !0, + get: function() { + return l.Response + } + }); + const d = new i.Context; + t.setup = e => d.setup(e), t.fetch = (e, t) => d.fetch(e, t), t.disconnect = e => d.disconnect(e), t.disconnectAll = () => d.disconnectAll(), t.onPush = e => d.onPush(e), t.context = function(e) { + const t = new i.Context(e); + return { + disconnect: t.disconnect.bind(t), + disconnectAll: t.disconnectAll.bind(t), + fetch: t.fetch.bind(t), + onPush: t.onPush.bind(t), + setup: t.setup.bind(t) + } + } + }, + 3078: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.AbortController = t.signalEvent = void 0; + const r = n(2361); + t.signalEvent = "internal-abort"; + class o extends r.EventEmitter { + constructor() { + super(), this.aborted = !1, this.onabort = () => {}, this.once(t.signalEvent, (() => { + this.aborted = !0, this.emit("abort"), this.onabort && this.onabort() + })) + } + } + t.AbortController = class { + constructor() { + this.signal = new o, this.abort = () => { + this.signal.emit(t.signalEvent) + } + } + } + }, + 5224: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.BodyInspector = t.DataBody = t.StreamBody = t.JsonBody = t.Body = void 0; + const r = n(6113), + o = n(7968), + i = n(1561), + s = n(2953), + a = n(7540), + c = new(n(3602).AbortError)("Response aborted"); + + function u() { + return new Error("Unknown body data") + } + + function l(e) { + return e && "readable" in Object(e) + } + const d = new ArrayBuffer(0); + class p { + constructor() { + this._length = null, this._used = !1, Object.defineProperties(this, { + bodyUsed: { + enumerable: !0, + get: () => this._used + } + }) + } + async arrayBuffer(e = !1) { + if (this._ensureUnused(), this._ensureNotAborted(), null == this._body) return this.validateIntegrity(d, e); + if (l(this._body)) return this.awaitBuffer(this._body).then((t => this.validateIntegrity(t, e))).then((e => a(e))); + if (Buffer.isBuffer(this._body)) return this.validateIntegrity(a(this._body), e); + throw u() + } + async formData() { + throw new Error("Body.formData() is not yet implemented") + } + async json() { + if (this._ensureUnused(), this._ensureNotAborted(), null == this._body) return Promise.resolve(this.validateIntegrity(d, !1)).then((() => this._body)); + if (l(this._body)) return this.awaitBuffer(this._body).then(o.tap((e => this.validateIntegrity(e, !1)))).then((e => JSON.parse(e.toString()))); + if (Buffer.isBuffer(this._body)) return Promise.resolve(this._body).then(o.tap((e => this.validateIntegrity(e, !1)))).then((e => JSON.parse(e.toString()))); + throw u() + } + async text(e = !1) { + if (this._ensureUnused(), this._ensureNotAborted(), null == this._body) return Promise.resolve(this.validateIntegrity(d, e)).then((() => this._body)); + if (l(this._body)) return this.awaitBuffer(this._body).then(o.tap((t => this.validateIntegrity(t, e)))).then((e => e.toString())); + if (Buffer.isBuffer(this._body)) return Promise.resolve(this._body).then(o.tap((t => this.validateIntegrity(t, e)))).then((e => e.toString())); + throw u() + } + async readable() { + if (this._ensureUnused(), this._ensureNotAborted(), null == this._body) { + const e = s(); + return e.end(), Promise.resolve(e) + } + if (l(this._body)) return Promise.resolve(this._body); + if (Buffer.isBuffer(this._body)) return Promise.resolve(s()).then((e => (e.write(this._body), e.end(), e))); + throw u() + } + setSignal(e) { + this._signal = e + } + hasBody() { + return "_body" in this + } + setBody(e, t, n, r = null) { + this._ensureUnused(), this._length = r, this._used = !1, e instanceof p ? (e._ensureUnused(), this._body = e._body, this._mime = e._mime) : this._body = "string" == typeof e ? Buffer.from(e) : e, Buffer.isBuffer(this._body) && (this._length = this._body.length), t && (this._mime = t), n && (this._integrity = n) + } + async awaitBuffer(e) { + if (!this._signal) return i.buffer(e); + let t = () => {}; + const n = new Promise(((e, n) => { + var r; + t = () => { + n(c) + }, null === (r = this._signal) || void 0 === r || r.addListener("abort", t) + })); + try { + return this._ensureNotAborted(), await Promise.race([i.buffer(e), n]) + } finally { + this._signal.removeListener("abort", t), n.catch((() => {})) + } + } + validateIntegrity(e, t) { + if (this._ensureNotAborted(), t || null == this._length || e.byteLength === this._length || function() { + throw new RangeError("Resource length mismatch (possibly incomplete body)") + }(), !this._integrity) return e; + const { + algorithm: n, + hash: o + } = function(e) { + const [t, ...n] = e.split("-"); + return { + algorithm: t, + hash: n.join("-") + } + }(this._integrity), i = r.createHash(n).update((s = e, s && s.constructor && "ArrayBuffer" === s.constructor.name ? new DataView(e) : e)).digest("base64"); + var s; + return o.toLowerCase() !== i.toLowerCase() && function() { + throw new Error("Resource integrity mismatch") + }(), e + } + _ensureNotAborted() { + if (this._signal && this._signal.aborted) throw c + } + _ensureUnused() { + if (this._used) throw new ReferenceError("Body already used"); + this._used = !0 + } + async blob() { + throw new Error("Body.blob() is not implemented (makes no sense in Node.js), use another getter.") + } + } + t.Body = p, t.JsonBody = class extends p { + constructor(e) { + super(); + const t = Buffer.from(JSON.stringify(e)); + this.setBody(t, "application/json") + } + }, t.StreamBody = class extends p { + constructor(e) { + super(), this.setBody(e) + } + }, t.DataBody = class extends p { + constructor(e) { + super(), this.setBody(e) + } + }, t.BodyInspector = class extends p { + constructor(e) { + super(), this._ref = e + } + _getMime() { + return this._mime + } + _getLength() { + return this._length + } + _getBody() { + return this._body + } + get mime() { + return this._getMime.call(this._ref) + } + get length() { + return this._getLength.call(this._ref) + } + get stream() { + const e = this._getBody.call(this._ref); + return e && l(e) ? e : void 0 + } + } + }, + 1518: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.H1Context = t.OriginPool = void 0; + const r = n(3685), + o = n(5687), + i = n(1808), + s = n(7310), + a = n(7968), + c = n(3602), + u = n(5193); + class l { + constructor(e, t, n, r, o) { + this.usedSockets = new Set, this.unusedSockets = new Set, this.waiting = [], this.keepAlive = e, this.keepAliveMsecs = t, this.maxSockets = n, this.maxFreeSockets = r, this.connOpts = null == o ? {} : { + timeout: o + } + } + connect(e) { + const t = "https:" === e.protocol ? o.request : r.request, + n = { + ...e + }; + return null != n.rejectUnauthorized && "https" !== e.protocol || delete n.rejectUnauthorized, t({ + ...this.connOpts, + ...n + }) + } + addUsed(e) { + return this.keepAlive && e.setKeepAlive(!0, this.keepAliveMsecs), e.once("close", (() => { + this.usedSockets.delete(e), this.unusedSockets.delete(e) + })), this.usedSockets.add(e), this.makeCleaner(e) + } + getFreeSocket() { + const e = this.getFirstUnused(); + return e ? { + ...e, + shouldCreateNew: !1 + } : { + shouldCreateNew: this.maxSockets >= this.usedSockets.size + } + } + waitForSocket() { + const e = a.defer(); + return this.waiting.push(e), this.pumpWaiting(), e.promise + } + async disconnectAll() { + await Promise.all([...this.usedSockets, ...this.unusedSockets].map((e => e.destroyed ? void 0 : this.disconnectSocket(e)))); + const e = this.waiting; + this.waiting.length = 0, e.forEach((e => e.reject(new Error("Disconnected")))) + } + getFirstUnused() { + for (const e of this.unusedSockets.values()) return this.moveToUsed(e), { + socket: e, + cleanup: this.makeCleaner(e) + }; + return null + } + tryReuse(e) { + return 0 !== this.waiting.length && (this.waiting.shift().resolve({ + socket: e, + cleanup: this.makeCleaner(e) + }), !0) + } + pumpWaiting() { + for (; this.waiting.length > 0 && this.unusedSockets.size > 0;) { + const e = this.getFirstUnused(); + this.waiting.shift().resolve(e) + } + } + async disconnectSocket(e) { + e.destroy() + } + makeCleaner(e) { + let t = !1; + return () => { + t || (t = !0, e.destroyed || this.moveToUnused(e)) + } + } + async moveToUnused(e) { + this.tryReuse(e) || (this.usedSockets.delete(e), this.maxFreeSockets < this.unusedSockets.size + 1 ? await this.disconnectSocket(e) : (this.unusedSockets.add(e), e.unref())) + } + moveToUsed(e) { + return this.unusedSockets.delete(e), this.usedSockets.add(e), e.ref(), e + } + } + t.OriginPool = l; + class d { + constructor(e) { + this.pools = new Map, this.keepAlive = c.parsePerOrigin(e.keepAlive, !0), this.keepAliveMsecs = c.parsePerOrigin(e.keepAliveMsecs, 1e3), this.maxSockets = c.parsePerOrigin(e.maxSockets, 256), this.maxFreeSockets = c.parsePerOrigin(e.maxFreeSockets, 1 / 0), this.timeout = c.parsePerOrigin(e.timeout, void 0) + } + hasOrigin(e) { + return this.pools.has(e) + } + getOriginPool(e) { + const t = this.pools.get(e); + if (!t) { + const t = c.getByOrigin(this.keepAlive, e), + n = c.getByOrigin(this.keepAliveMsecs, e), + r = c.getByOrigin(this.maxSockets, e), + o = c.getByOrigin(this.maxFreeSockets, e), + i = c.getByOrigin(this.timeout, e), + s = new l(t, n, r, o, i); + return this.pools.set(e, s), s + } + return t + } + async disconnect(e) { + const t = this.pools.get(e); + t && await t.disconnectAll() + } + async disconnectAll() { + const e = [...this.pools.values()]; + await Promise.all(e.map((e => e.disconnectAll()))) + } + } + t.H1Context = class { + constructor(e) { + this.contextPool = new d(e) + } + getSessionForOrigin(e) { + return this.contextPool.getOriginPool(e) + } + getFreeSocketForSession(e) { + return e.getFreeSocket() + } + addUsedSocket(e, t) { + return e.addUsed(t) + } + waitForSocketBySession(e) { + return e.waitForSocket() + } + connect(e, t, n) { + const { + origin: r, + protocol: o, + hostname: i, + password: s, + pathname: a, + search: c, + username: l + } = e, d = a + c, p = parseInt(u.parseInput(e.href).port, 10), h = { + ...t, + agent: !1, + hostname: i, + method: n.method, + path: d, + port: p, + protocol: o, + ...l || s ? { + auth: `${l}:${s}` + } : {} + }; + return h.headers || (h.headers = {}), h.headers.connection = this.contextPool.keepAlive ? "keep-alive" : "close", this.contextPool.getOriginPool(r).connect(h) + } + async makeNewConnection(e) { + return new Promise(((t, n) => { + const { + hostname: r, + port: o + } = u.parseInput(e), s = i.createConnection(parseInt(o, 10), r, (() => { + t(s) + })); + return s.once("error", n), s + })) + } + disconnect(e) { + const { + origin: t + } = new s.URL(e); + this.contextPool.disconnect(t) + } + disconnectAll() { + this.contextPool.disconnectAll() + } + } + }, + 1841: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.H2Context = void 0; + const r = n(5158), + o = n(7310), + i = n(8308), + s = n(3602), + a = n(563), + c = n(4591), + u = n(5193), + l = n(2180), + { + HTTP2_HEADER_PATH: d + } = r.constants; + t.H2Context = class { + constructor(e, t) { + if (this._h2sessions = new Map, this._h2staleSessions = new Map, this._getDecoders = e, this._getSessionOptions = t, process.env.DEBUG_FETCH_H2) { + const e = (e, ...t) => { + console.error(e, ...t) + }, + t = (t, n) => { + e(" First origin:", t), e(" Ref-counter:", n.__fetch_h2_refcount), e(" Destroyed:", n.destroyed), e(" Destroyed mark:", n.__fetch_h2_destroyed) + }; + process.on("SIGUSR2", (() => { + e("[Debug fetch-h2]: H2 sessions"), e(" Active sessions"), [...this._h2sessions.entries()].forEach((([e, { + session: n + }]) => { + t(e, n) + })), e(" Stale sessions"), [...this._h2staleSessions.entries()].forEach((([e, n]) => { + [...n].forEach((n => { + t(e, n) + })) + })) + })) + } + } + createHttp2(e, t, n) { + const r = this.connectHttp2(e, n), + { + promise: o + } = r; + o.then((n => { + n.once("close", (() => this.disconnect(e, n))), n.once("goaway", ((r, o, i) => { + l.setGotGoaway(n), t(), this.releaseSession(e) + })) + })).catch((() => { + r.session && this.disconnect(e, r.session) + })), this._h2sessions.set(e, r); + const { + promise: i, + ref: s, + unref: a + } = r; + return { + ref: s, + unref: a, + session: i + } + } + disconnectSession(e) { + return new Promise((t => { + if (e.destroyed) return t(); + e.once("close", (() => t())), e.destroy() + })) + } + releaseSession(e) { + const t = this.deleteActiveSession(e); + t && (this._h2staleSessions.has(e) || this._h2staleSessions.set(e, new Set), this._h2staleSessions.get(e).add(t.session)) + } + deleteActiveSession(e) { + const t = this._h2sessions.get(e); + if (t) return this._h2sessions.delete(e), t.session.unref(), l.setDestroyed(t.session), t + } + async disconnectStaleSessions(e) { + const t = [], + n = this._h2staleSessions.get(e); + if (n) { + this._h2staleSessions.delete(e); + for (const e of n) t.push(this.disconnectSession(e)); + return Promise.all(t).then((() => {})) + } + } + disconnectAll() { + const e = []; + for (const t of this._h2sessions.values()) e.push(this.handleDisconnect(t)); + this._h2sessions.clear(); + for (const t of this._h2staleSessions.keys()) e.push(this.disconnectStaleSessions(t)); + return Promise.all(e).then((() => {})) + } + disconnect(e, t) { + const { + origin: n + } = new o.URL(e), r = [], i = this.deleteActiveSession(n); + if (!i || t && i.session !== t || r.push(this.handleDisconnect(i)), t) { + if (this._h2staleSessions.has(n)) { + const e = this._h2staleSessions.get(n); + e.has(t) && (e.delete(t), r.push(this.disconnectSession(t))) + } + } else r.push(this.disconnectStaleSessions(n)); + return Promise.all(r).then((() => {})) + } + handleDisconnect(e) { + const { + promise: t, + session: n + } = e; + return n && n.destroy(), t.then((e => {})).catch((e => {})) + } + handlePush(e, t, n, r, o) { + if (!this._pushHandler) return; + const u = n[d]; + Object.keys(n).filter((e => ":" === e.charAt(0))).forEach((e => { + delete n[e] + })); + const l = new a.Request(u, { + headers: n, + allowForbiddenHeaders: !0 + }); + r(); + const p = new Promise(((n, r) => { + const a = i.syncGuard(r, { + catchAsync: !0 + }); + t.once("close", o), t.once("aborted", (() => r(new s.AbortError("Response aborted")))), t.once("frameError", (() => r(new Error("Push request failed")))), t.once("error", r), t.once("push", a((r => { + const o = new c.StreamResponse(this._getDecoders(e), u, t, r, !1, {}, void 0, 2, !1); + n(o) + }))) + })); + return p.catch((e => {})), this._pushHandler(e, l, (() => p)) + } + connectHttp2(e, t = {}) { + let n; + const o = i.asyncGuard(console.error.bind(console)), + a = {}, + c = { + ...this._getSessionOptions(e), + ...t + }, + d = new Promise(((t, i) => { + n = r.connect(e, c, (() => t(n))), (e => { + const t = e; + t.__fetch_h2_refcount = 1, a.ref = () => { + l.isDestroyed(e) || (0 === t.__fetch_h2_refcount && e.ref(), ++t.__fetch_h2_refcount) + }, a.unref = () => { + l.isDestroyed(e) || (--t.__fetch_h2_refcount, 0 === t.__fetch_h2_refcount && e.unref()) + } + })(n), n.on("stream", o(((t, n) => this.handlePush(e, t, n, (() => a.ref()), (() => a.unref()))))), n.once("close", (() => i(u.makeOkError(new Error("Connection closed"))))), n.once("timeout", (() => i(new s.TimeoutError(`Connection timeout to ${e}`)))), n.once("error", i) + })); + return { + firstOrigin: e, + promise: d, + ref: () => a.ref(), + session: n, + unref: () => a.unref() + } + } + } + }, + 3009: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.connectTLS = void 0; + const r = n(4404), + o = n(7489), + i = ["12", "13"].includes(process.versions.node.split(".")[0]), + s = { + http1: Buffer.from("\bhttp/1.1"), + http2: Buffer.from("h2") + }, + a = ["http2", "http1"]; + t.connectTLS = function(e, t, n, c) { + const u = new Set, + l = n.filter((e => !("http1" !== e && "http2" !== e || u.has(e) || (u.add(e), 0)))), + d = { + ...c, + ALPNProtocols: Buffer.concat((0 !== l.length ? l : a).map((e => s[e]))), + servername: e + }; + return new Promise(((n, s) => { + const a = r.connect(parseInt(t, 10), e, d, (() => { + const { + authorized: e, + authorizationError: t, + alpnProtocol: r = "" + } = a, i = a.getPeerCertificate(), c = o.parseOrigin(i); + return e || !1 === d.rejectUnauthorized ? ["h2", "http/1.1", "http/1.0"].includes(r) ? void n({ + socket: a, + protocol: "h2" === r ? "http2" : "http1", + altNameMatch: c + }) : 1 === l.length ? n({ + altNameMatch: c, + protocol: l[0], + socket: a + }) : n({ + altNameMatch: c, + protocol: "http1", + socket: a + }) : s(t) + })); + i && a.once("secureConnect", (() => { + a.secureConnecting = !1 + })), a.once("error", s) + })) + } + }, + 9690: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.Context = void 0; + const r = n(7310), + o = n(7968), + i = n(1518), + s = n(1841), + a = n(3009), + c = n(5282), + u = n(3602), + l = n(6613), + d = n(5058), + p = n(7938), + h = n(563), + m = n(5193), + f = n(7836), + g = `fetch-h2/${p.version} (+https://github.com/grantila/fetch-h2) nodejs/${process.versions.node} nghttp2/${process.versions.nghttp2} uv/${process.versions.uv}`; + t.Context = class { + constructor(e) { + this._httpsFunnel = o.funnel(), this._http1Funnel = o.funnel(), this._http2Funnel = o.funnel(), this._originCache = new f.default, this._userAgent = "", this._overwriteUserAgent = !1, this._accept = "", this._cookieJar = void 0, this._decoders = [], this._sessionOptions = {}, this._httpProtocol = "http1", this._httpsProtocols = ["http2", "http1"], this._http1Options = {}, this.setup(e), this.h1Context = new i.H1Context(this._http1Options), this.h2Context = new s.H2Context(this.decoders.bind(this), this.sessionOptions.bind(this)) + } + setup(e) { + e = e || {}, this._cookieJar = "cookieJar" in e && e.cookieJar || new c.CookieJar, this._userAgent = u.parsePerOrigin(e.userAgent, ""), this._overwriteUserAgent = u.parsePerOrigin(e.overwriteUserAgent, !1), this._accept = u.parsePerOrigin(e.accept, "application/json,text/*;q=0.9,*/*;q=0.8"), this._decoders = u.parsePerOrigin(e.decoders, []), this._sessionOptions = u.parsePerOrigin(e.session, {}), this._httpProtocol = u.parsePerOrigin(e.httpProtocol, "http1"), this._httpsProtocols = u.parsePerOrigin(e.httpsProtocols, ["http2", "http1"]), Object.assign(this._http1Options, e.http1 || {}) + } + userAgent(e) { + return ((e, t) => { + const n = t ? "" : g; + return e ? n ? e + " " + n : e : n + })(u.getByOrigin(this._userAgent, e), u.getByOrigin(this._overwriteUserAgent, e)) + } + decoders(e) { + return u.getByOrigin(this._decoders, e) + } + sessionOptions(e) { + return u.getByOrigin(this._sessionOptions, e) + } + onPush(e) { + this.h2Context._pushHandler = e + } + async fetch(e, t) { + return this.retryFetch(e, t) + } + async disconnect(e) { + const { + origin: t + } = this.parseInput(e); + this._originCache.disconnect(t), await Promise.all([this.h1Context.disconnect(e), this.h2Context.disconnect(e)]) + } + async disconnectAll() { + this._originCache.disconnectAll(), await Promise.all([this.h1Context.disconnectAll(), this.h2Context.disconnectAll()]) + } + async retryFetch(e, t, n, r = 0) { + return ++r, this.retryableFetch(e, t, n).catch(o.specific(u.RetryError, (o => { + if (r > 10) throw o; + return this.retryFetch(e, t, n, r) + }))) + } + async retryableFetch(e, t, n) { + const { + hostname: r, + origin: i, + port: s, + protocol: a, + url: c + } = this.parseInput(e), p = e instanceof h.Request ? e.url !== c ? e.clone(c) : e : new h.Request(e, { + ...t || {}, + url: c + }), { + rejectUnauthorized: m + } = this.sessionOptions(i), f = e => ({ + accept: () => u.getByOrigin(this._accept, i), + contentDecoders: () => u.getByOrigin(this._decoders, i), + cookieJar: this._cookieJar, + protocol: e, + userAgent: () => this.userAgent(i), + newFetch: this.retryFetch.bind(this) + }), g = (e, r) => { + const o = { + get: t => ({ + cleanup: r, + req: this.getHttp1(t, e, p, m) + }), + ...f("http1") + }; + return l.fetch(o, p, t, n) + }, y = async e => { + const { + session: r, + unref: i + } = e, s = o.once(i); + try { + const e = { + get: () => ({ + session: r, + cleanup: s + }), + ...f("http2") + }; + return await d.fetch(e, p, t, n) + } catch (e) { + throw s(), e + } + }, _ = async e => { + const { + socket: t, + cleanup: n, + shouldCreateNew: r + } = this.h1Context.getFreeSocketForSession(e); + if (t) return g(t, n); + if (!r) { + const { + socket: t, + cleanup: n + } = await this.h1Context.waitForSocketBySession(e); + return g(t, n) + } + }; + return "http1" === a ? this._http1Funnel((async (e, t, n) => { + var r; + if (e()) return t(); + const o = this._originCache.get("http1", i), + s = null !== (r = null == o ? void 0 : o.session) && void 0 !== r ? r : this.h1Context.getSessionForOrigin(i), + a = await _(s); + if (a) return a; + const u = await this.h1Context.makeNewConnection(c); + this._originCache.set(i, "http1", s), n(); + const l = this.h1Context.addUsedSocket(s, u); + return g(u, l) + })) : "http2" === a ? this._http2Funnel((async (e, t, n) => { + const r = this._originCache.get("http2", i); + if (r) return r.session.ref(), n(), y(r.session); + const o = this.h2Context.createHttp2(i, (() => { + this._originCache.delete(o) + })); + return this._originCache.set(i, "http2", o), n(), y(o) + })) : this._httpsFunnel(((e, t, n) => e() ? t() : this.connectSequenciallyTLS(n, r, s, i, _, g, y))) + } + async connectSequenciallyTLS(e, t, n, r, i, s, c) { + var l, d; + const p = null !== (l = this._originCache.get("https2", r)) && void 0 !== l ? l : this._originCache.get("https1", r); + if (p) + if ("https1" === p.protocol) { + e(); + const t = await i(p.session); + if (t) return t + } else if ("https2" === p.protocol) return p.session.ref(), e(), c(p.session); + const { + protocol: h, + socket: m, + altNameMatch: f + } = await a.connectTLS(t, n, u.getByOrigin(this._httpsProtocols, r), u.getByOrigin(this._sessionOptions, r)), g = o.once((() => { + m.destroyed || (m.destroy(), m.unref()) + })); + if ("http2" === h) { + const t = this.h2Context.createHttp2(r, (() => { + this._originCache.delete(t) + }), { + createConnection: () => m + }); + return this._originCache.set(r, "https2", t, f, g), e(), c(t) + } { + const t = null !== (d = null == p ? void 0 : p.session) && void 0 !== d ? d : this.h1Context.getSessionForOrigin(r); + p || this._originCache.set(r, "https1", t, f, g); + const n = this.h1Context.addUsedSocket(t, m); + return e(), s(m, n) + } + } + getHttp1(e, t, n, o) { + return this.h1Context.connect(new r.URL(e), { + createConnection: () => t, + rejectUnauthorized: o + }, n) + } + parseInput(e) { + const { + hostname: t, + origin: n, + port: r, + protocol: o, + url: i + } = m.parseInput("string" != typeof e ? e.url : e), s = this._httpProtocol; + if ("http" === o && "http1" === s || "http1" === o) return { + hostname: t, + origin: n, + port: r, + protocol: "http1", + url: i + }; + if ("http" === o && "http2" === s || "http2" === o) return { + hostname: t, + origin: n, + port: r, + protocol: "http2", + url: i + }; + if ("https" === o) return { + hostname: t, + origin: n, + port: r, + protocol: "https", + url: i + }; + throw new u.FetchError(`Invalid protocol "${o}"`) + } + } + }, + 5282: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.CookieJar = void 0; + const r = n(7738); + t.CookieJar = class { + constructor(e = new r.CookieJar) { + this._jar = e + } + reset(e = new r.CookieJar) { + this._jar = e + } + setCookie(e, t) { + return new Promise(((n, r) => { + this._jar.setCookie(e, t, ((e, t) => { + if (e) return r(e); + n(t) + })) + })) + } + setCookies(e, t) { + return Promise.all(e.map((e => this.setCookie(e, t)))) + } + getCookies(e) { + return new Promise(((t, n) => { + this._jar.getCookies(e, ((e, r) => { + if (e) return n(e); + t(r) + })) + })) + } + } + }, + 3602: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.parsePerOrigin = t.getByOrigin = t.RetryError = t.TimeoutError = t.AbortError = t.FetchError = void 0; + class n extends Error { + constructor(e) { + super(e), Object.setPrototypeOf(this, n.prototype) + } + } + t.FetchError = n; + class r extends Error { + constructor(e) { + super(e), Object.setPrototypeOf(this, r.prototype) + } + } + t.AbortError = r; + class o extends Error { + constructor(e) { + super(e), Object.setPrototypeOf(this, o.prototype) + } + } + t.TimeoutError = o; + class i extends Error { + constructor(e) { + super(e), Object.setPrototypeOf(this, i.prototype) + } + } + t.RetryError = i, t.getByOrigin = function(e, t) { + return "function" == typeof e ? e(t) : e + }, t.parsePerOrigin = function(e, t) { + return null == e ? t : "function" == typeof e ? n => { + const r = e(n); + return null == r ? t : r + } : e + } + }, + 8869: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.makeRedirectionMethodError = t.makeRedirectionError = t.makeIllegalRedirectError = t.makeTimeoutError = t.makeAbortedError = t.make100Error = t.handleSignalAndTimeout = t.setupFetch = void 0; + const r = n(5158), + o = n(7310), + i = n(7968), + s = n(5224), + a = n(3602), + c = n(7716), + u = n(5193), + { + HTTP2_HEADER_METHOD: l, + HTTP2_HEADER_SCHEME: d, + HTTP2_HEADER_PATH: p, + HTTP2_HEADER_AUTHORITY: h, + HTTP2_METHOD_GET: m, + HTTP2_METHOD_HEAD: f, + HTTP2_HEADER_USER_AGENT: g, + HTTP2_HEADER_ACCEPT: y, + HTTP2_HEADER_COOKIE: _, + HTTP2_HEADER_CONTENT_TYPE: v, + HTTP2_HEADER_CONTENT_LENGTH: b, + HTTP2_HEADER_ACCEPT_ENCODING: k + } = r.constants, + w = (e = 1) => u.hasBuiltinBrotli() ? [{ + name: "br", + score: 1 * e + }, { + name: "gzip", + score: .8 * e + }, { + name: "deflate", + score: .5 * e + }] : [{ + name: "gzip", + score: 1 * e + }, { + name: "deflate", + score: .5 * e + }], + j = w(), + x = w(.8), + E = e => e.map((e => (e => `${e.name};q=${e.score}`)(e))).join(", "); + t.setupFetch = async function(e, t, n = {}, r) { + const { + redirected: i + } = r; + ! function(e) { + const t = [...e], + n = t.pop(); + for (let e = 0; e < t.length; ++e) + if (t[e] === n) { + const n = new Error("Redirection loop detected"); + throw n.urls = t.slice(e), n + } + }(i); + const { + url: w, + method: C, + redirect: S, + integrity: T + } = t, { + signal: P, + onTrailers: I + } = n, { + origin: R, + protocol: O, + host: A, + pathname: N, + search: D, + hash: M + } = new o.URL(w), q = N + D + M, L = C === m || C === f, $ = new c.Headers(t.headers), F = (await e.cookieJar.getCookies(w)).map((e => e.cookieString())), z = e.contentDecoders(), B = function(e) { + if (0 === e.length) return E(j); + const t = t => 1 - t / e.length * .2; + return E([...e.map((({ + name: e + }, n) => ({ + name: e, + score: t(n) + }))), ...x]) + }(z); + $.has(_) && F.push(...u.arrayify($.get(_))), $.has("host") || $.set("host", A); + const U = { + ..."http1" === e.protocol ? {} : { + [l]: C, + [d]: O.replace(/:.*/, ""), + [p]: q + }, + [y]: e.accept(), + [g]: e.userAgent(), + [k]: B + }; + F.length > 0 && (U[_] = F.join("; ")); + for (const [t, n] of $.entries()) "host" === t && "http2" === e.protocol ? U[h] = n : t !== _ && (U[t] = n); + const H = new s.BodyInspector(t); + + function W() { + return new a.TimeoutError(`${C} ${w} timed out after ${n.timeout} ms`) + } + L || null == H.length || t.headers.has(b) || (U[b] = "" + H.length), L || t.headers.has("content-type") || !H.mime || (U[v] = H.mime); + const G = r.timeoutAt || ("timeout" in n && "number" == typeof n.timeout ? Date.now() + n.timeout : void 0), + V = function() { + if (!G) return null; + const e = Date.now(); + if (e >= G) throw W(); + let t; + return { + clear: () => { + t && clearTimeout(t) + }, + promise: new Promise(((n, r) => { + t = setTimeout((() => { + t = null, r(W()) + }), G - e) + })) + } + }(); + + function K() { + return new a.AbortError(`${C} ${w} aborted`) + } + if (P && P.aborted) throw K(); + let J; + const X = P ? new Promise(((e, t) => { + P.once("abort", J = () => { + t(K()) + }) + })) : null; + return { + cleanup: function() { + var e, t; + null === (e = null == V ? void 0 : V.clear) || void 0 === e || e.call(V), null === (t = null == V ? void 0 : V.promise) || void 0 === t || t.catch((e => {})), P && J && P.removeListener("abort", J) + }, + contentDecoders: z, + endStream: L, + headersToSend: U, + integrity: T, + method: C, + onTrailers: I, + origin: R, + redirect: S, + redirected: i, + request: t, + signal: P, + signalPromise: X, + timeoutAt: G, + timeoutInfo: V, + url: w + } + }, t.handleSignalAndTimeout = function(e, t, n, r, o) { + return Promise.race([e, t && t.promise, r().catch(i.rethrow(o))].filter((e => e))).then(...i.Finally(n)) + }, t.make100Error = function() { + return new Error("Request failed with 100 continue. This can't happen unless a server failure") + }, t.makeAbortedError = function() { + return new a.AbortError("Request aborted") + }, t.makeTimeoutError = function() { + return new a.TimeoutError("Request timed out") + }, t.makeIllegalRedirectError = function() { + return new Error("Server responded illegally with a redirect code but missing 'location' header") + }, t.makeRedirectionError = function(e) { + return new Error(`URL got redirected to ${e}`) + }, t.makeRedirectionMethodError = function(e, t) { + return new Error(`URL got redirected to ${e}, which 'fetch-h2' doesn't support for ${t}`) + } + }, + 6613: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.fetch = t.fetchImpl = void 0; + const r = n(5158), + o = n(8308), + i = n(3078), + s = n(8869), + a = n(7716), + c = n(4591), + u = n(5193), + { + HTTP2_HEADER_LOCATION: l, + HTTP2_HEADER_SET_COOKIE: d + } = r.constants; + async function p(e, t, n = {}, r) { + const { + cleanup: h, + contentDecoders: m, + endStream: f, + headersToSend: g, + integrity: y, + method: _, + onTrailers: v, + redirect: b, + redirected: k, + request: w, + signal: j, + signalPromise: x, + timeoutAt: E, + timeoutInfo: C, + url: S + } = await s.setupFetch(e, t, n, r), { + req: T, + cleanup: P + } = e.get(S); + return s.handleSignalAndTimeout(x, C, h, (async () => { + for (const [e, t] of Object.entries(g)) null != t && T.setHeader(e, t); + const h = new Promise(((h, g) => { + const x = o.syncGuard(g, { + catchAsync: !0 + }); + T.once("error", g), T.once("aborted", x((() => { + g(s.makeAbortedError()) + }))), T.once("continue", x((() => { + g(s.make100Error()) + }))), T.once("information", x((e => { + h(new c.Response(null, { + status: e.statusCode + })) + }))), T.once("timeout", x((() => { + g(s.makeTimeoutError()), T.abort() + }))), T.once("upgrade", x(((e, t, n) => { + g(new Error("Upgrade not implemented!")), T.abort() + }))), T.once("response", x((o => { + o.once("end", P); + const { + signal: C, + abort: I + } = j ? new i.AbortController : {}; + if (j) { + const e = () => { + I(), T.abort(), o.destroy() + }; + if (j.aborted) return void e(); + j.once("abort", e), o.once("end", (() => { + j.removeListener("abort", e) + })) + } + const { + headers: R, + statusCode: O + } = o; + o.once("end", x((() => { + if (v) try { + const { + trailers: e + } = o, t = new a.GuardedHeaders("response"); + Object.keys(e).forEach((n => { + null != e[n] && t.set(n, "" + e[n]) + })), v(t) + } catch (e) { + console.warn("Trailer handling failed", e) + } + }))); + const A = u.parseLocation(R[l], S), + N = u.isRedirectStatus["" + O]; + if (R[d]) { + const t = u.arrayify(R[d]); + e.cookieJar.setCookies(t, S) + } + if (t.allowForbiddenHeaders || (delete R["set-cookie"], delete R["set-cookie2"]), N && !A) return g(s.makeIllegalRedirectError()); + if (!N || "manual" === b) return h(new c.StreamResponse(m, S, o, R, "manual" !== b && r.redirected.length > 0, { + status: o.statusCode, + statusText: o.statusMessage + }, C, 1, t.allowForbiddenHeaders, y)); + const { + url: D, + isRelative: M + } = A; + return "error" === b ? g(s.makeRedirectionError(D)) : f ? (o.destroy(), void h(M ? p(e, w.clone(D), { + signal: j, + onTrailers: v + }, { + redirected: k.concat(S), + timeoutAt: E + }) : e.newFetch(w.clone(D), n, { + timeoutAt: E, + redirected: k.concat(S) + }))) : g(s.makeRedirectionMethodError(D, _)) + }))) + })); + return f ? T.end() : await w.readable().then((e => { + u.pipeline(e, T).catch((e => {})) + })), h + }), P) + } + t.fetchImpl = p, t.fetch = function(e, t, n, r) { + var o; + return p(e, t, n, r = { + timeoutAt: null == r ? void 0 : r.timeoutAt, + redirected: null !== (o = null == r ? void 0 : r.redirected) && void 0 !== o ? o : [] + }) + } + }, + 5058: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.fetch = void 0; + const r = n(5158), + o = n(8308), + i = n(3078), + s = n(3602), + a = n(8869), + c = n(7716), + u = n(4591), + l = n(5193), + d = n(2180), + { + HTTP2_HEADER_STATUS: p, + HTTP2_HEADER_LOCATION: h, + HTTP2_HEADER_SET_COOKIE: m, + NGHTTP2_NO_ERROR: f + } = r.constants; + async function g(e, t, n = {}, r) { + const { + cleanup: y, + contentDecoders: _, + endStream: v, + headersToSend: b, + integrity: k, + method: w, + onTrailers: j, + origin: x, + redirect: E, + redirected: C, + request: S, + signal: T, + signalPromise: P, + timeoutAt: I, + timeoutInfo: R, + url: O + } = await a.setupFetch(e, t, n, r), { + raceConditionedGoaway: A + } = r, N = e.get(); + return a.handleSignalAndTimeout(P, R, y, (async function() { + const { + session: y, + cleanup: P + } = N, R = await y, D = t => !(A.has(x) || !d.hasGotGoaway(R) || (A.add(x), t(g(e, S, { + signal: T, + onTrailers: j + }, { + raceConditionedGoaway: A, + redirected: C, + timeoutAt: I + })), 0)); + let M, q = !0; + try { + M = R.request(b, { + endStream: v + }) + } catch (e) { + if ("ERR_HTTP2_GOAWAY_SESSION" === e.code) throw new s.RetryError(e.code); + throw e + } + const L = new Promise(((d, y) => { + const b = o.syncGuard(y, { + catchAsync: !0 + }); + M.on("aborted", b(((...e) => { + y(a.makeAbortedError()) + }))), M.on("error", b((e => { + e && "ERR_HTTP2_STREAM_ERROR" === e.code && e.message && e.message.includes("NGHTTP2_REFUSED_STREAM") && D(d) || y(e) + }))), M.on("frameError", b(((e, t, n) => { + -516 === t && v && D(d) || y(new Error("Request failed")) + }))), M.on("close", b((() => { + q && P(), M.rstCode === f && y(new s.AbortError("Stream prematurely closed")) + }))), M.on("timeout", b(((...e) => { + y(a.makeTimeoutError()) + }))), M.on("trailers", b(((e, t) => { + if (j) try { + const t = new c.GuardedHeaders("response"); + Object.keys(e).forEach((n => { + Array.isArray(e[n]) ? e[n].forEach((e => t.append(n, e))) : t.set(n, "" + e[n]) + })), j(t) + } catch (e) { + console.warn("Trailer handling failed", e) + } + }))), M.on("continue", b(((...e) => { + y(a.make100Error()) + }))), M.on("headers", b(((e, t) => { + const n = e[p]; + y(new Error(`Request failed with a ${n} status. Any 1xx error is unexpected to fetch() and shouldn't happen.`)) + }))), M.on("response", b((o => { + const { + signal: s, + abort: c + } = T ? new i.AbortController : {}; + if (T) { + const e = () => { + c(), M.destroy() + }; + if (T.aborted) return void e(); + T.once("abort", e), M.once("close", (() => { + T.removeListener("abort", e) + })) + } + const f = "" + o[p], + b = l.parseLocation(o[h], O), + j = l.isRedirectStatus[f]; + if (o[m]) { + const t = l.arrayify(o[m]); + e.cookieJar.setCookies(t, O) + } + if (t.allowForbiddenHeaders || (delete o["set-cookie"], delete o["set-cookie2"]), j && !b) return y(a.makeIllegalRedirectError()); + if (!j || "manual" === E) return d(new u.StreamResponse(_, O, M, o, "manual" !== E && r.redirected.length > 0, {}, s, 2, t.allowForbiddenHeaders, k)); + const { + url: x, + isRelative: P + } = b; + return "error" === E ? y(a.makeRedirectionError(x)) : v ? b ? void(P ? (q = !1, M.destroy(), d(g(e, S.clone(x), n, { + raceConditionedGoaway: A, + redirected: C.concat(O), + timeoutAt: I + }))) : d(e.newFetch(S.clone(x), n, { + timeoutAt: I, + redirected: C.concat(O) + }))) : y(a.makeIllegalRedirectError()) : y(a.makeRedirectionMethodError(x, w)) + }))) + })); + return v || await S.readable().then((e => { + l.pipeline(e, M).catch((e => {})) + })), L + }), N.cleanup) + } + t.fetch = function(e, t, n, r) { + var o; + return g(e, t, n, { + timeoutAt: null == r ? void 0 : r.timeoutAt, + redirected: null !== (o = null == r ? void 0 : r.redirected) && void 0 !== o ? o : [], + raceConditionedGoaway: new Set + }) + } + }, + 7938: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.version = void 0, t.version = "3.0.0" + }, + 7716: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ensureHeaders = t.GuardedHeaders = t.Headers = void 0; + const r = n(5193), + o = ["accept-charset", "accept-encoding", "access-control-request-headers", "access-control-request-method", "connection", "content-length", "cookie", "cookie2", "date", "dnt", "expect", "host", "keep-alive", "origin", "referer", "te", "trailer", "transfer-encoding", "upgrade", "via"]; + + function i(e) { + if (/[^A-Za-z0-9\-#$%&'*+.\^_`|~]/.test(e)) throw new TypeError("Invalid character in header field name: " + e); + return e.toLowerCase() + } + + function s(e, t, n) { + if ("immutable" === e) throw new TypeError("Header guard error: Cannot change immutable header"); + if (t) { + if ("request" === e && function(e) { + return !e.startsWith("proxy-") && !e.startsWith("sec-") && o.includes(e) + }(t)) throw new TypeError(`Header guard error: Cannot set forbidden header for requests (${t})`); + if ("request-no-cors" === e && ! function(e, t) { + if (["accept", "accept-language", "content-language", "dpr", "downlink", "save-data", "viewport-width", "width"].includes(e)) return !0; + if ("content-type" !== e) return !1; + if (null == t) return !1; + const n = t.replace(/;.*/, "").toLowerCase(); + return ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"].includes(n) + }(t, n)) throw new TypeError(`Header guard error: Cannot set non-simple header for no-cors requests (${t})`); + if ("response" === e && function(e) { + return ["set-cookie", "set-cookie2"].includes(e) + }(t)) throw new TypeError(`Header guard error: Cannot set forbidden response header for response (${t})`) + } + } + let a = null; + class c { + constructor(e) { + this._guard = a || "none", a = null, this._data = new Map; + const t = (e, t) => { + if (1 === t.length) this.set(e, t[0]); + else + for (const n of t) this.append(e, n) + }; + if (e) + if (e instanceof c) + for (const [n, r] of e._data.entries()) t(n, r); + else + for (const n of Object.keys(e)) t(i(n), [...r.arrayify(e[n]).map((e => `${e}`))]) + } + get[Symbol.toStringTag]() { + return "Map" + } [Symbol.iterator]() { + return this.entries() + } + append(e, t) { + const n = i(e); + s(this._guard, n, t), this._data.has(n) ? this._data.get(n).push(t) : this._data.set(n, [t]) + } + delete(e) { + const t = i(e); + s(this._guard), this._data.delete(t) + }* entries() { + for (const [e, t] of this._data.entries()) yield [e, t.join(",")] + } + get(e) { + const t = i(e); + return this._data.has(t) ? this._data.get(t).join(",") : null + } + has(e) { + return this._data.has(i(e)) + } + keys() { + return this._data.keys() + } + set(e, t) { + const n = i(e); + s(this._guard, n, t), this._data.set(n, [t]) + }* values() { + for (const e of this._data.values()) yield e.join(",") + } + toJSON() { + return [...this.entries()].reduce(((e, [t, n]) => Object.assign(e, { + [t]: n + })), {}) + } + } + t.Headers = c, t.GuardedHeaders = class extends c { + constructor(e, t) { + super((a = e, t)), a = null + } + }, t.ensureHeaders = function(e) { + return e instanceof c ? e : new c(e) + } + }, + 7836: (e, t) => { + "use strict"; + + function n(e, t) { + return e + ":" + t + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.default = class { + constructor() { + this.sessionMap = new Map, this.staticMap = new Map + } + get(e, t) { + const r = n(e, t), + o = this.staticMap.get(r); + if (o) return { + protocol: o.protocol, + session: o.session, + firstOrigin: o.firstOrigin + }; + const i = [...this.sessionMap.values()].find((n => n.protocol === e && n.match && n.match.dynamic && n.match.dynamic(t))); + return i ? (i.resolved.push(t), this.staticMap.set(r, i), { + protocol: i.protocol, + session: i.session, + firstOrigin: i.firstOrigin + }) : void 0 + } + set(e, t, r, o, i) { + const s = { + protocol: t, + firstOrigin: e, + session: r, + match: o, + resolved: [], + cleanup: i + }; + this.sessionMap.set(r, s), o && o.names.forEach((e => { + this.staticMap.set(n(t, e), s) + })), this.staticMap.set(n(t, e), s) + } + delete(e) { + var t, r; + const o = this.sessionMap.get(e); + return !!o && ([o.firstOrigin, ...o.resolved, ...null !== (r = null === (t = o.match) || void 0 === t ? void 0 : t.names) && void 0 !== r ? r : []].forEach((e => { + this.staticMap.delete(n(o.protocol, e)) + })), this.sessionMap.delete(e), !0) + } + disconnectAll() { + [...this.sessionMap].forEach((([e, t]) => { + var n; + null === (n = t.cleanup) || void 0 === n || n.call(t) + })), this.sessionMap.clear(), this.staticMap.clear() + } + disconnect(e) { + [this.get("https1", e), this.get("https2", e), this.get("http1", e), this.get("http2", e)].filter((e => !!e)).forEach((({ + session: e + }) => { + var t, n; + null === (n = null === (t = this.sessionMap.get(e)) || void 0 === t ? void 0 : t.cleanup) || void 0 === n || n.call(t), this.delete(e) + })) + } + } + }, + 563: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.Request = void 0; + const r = n(5224), + o = n(7716), + i = { + allowForbiddenHeaders: !1, + cache: "default", + credentials: "omit", + method: "GET", + mode: "same-origin", + redirect: "manual", + referrer: "client" + }; + class s extends r.Body { + constructor(e, t) { + super(); + const { + url: n + } = t || {}; + this._url = e instanceof s ? n || e._url : n || e, e instanceof s && (e.hasBody() && this.setBody(e), t = Object.assign({}, e, t)), this._init = Object.assign({}, i, t); + const a = this._init.allowForbiddenHeaders, + c = new o.GuardedHeaders(a ? "none" : "no-cors" === this._init.mode ? "request-no-cors" : "request", this._init.headers); + if (this._init.body && this._init.json) throw new Error("Cannot specify both 'body' and 'json'"); + !this.hasBody() && this._init.body ? c.has("content-type") ? this.setBody(this._init.body, c.get("content-type")) : this.setBody(this._init.body) : !this.hasBody() && this._init.json && this.setBody(new r.JsonBody(this._init.json)), Object.defineProperties(this, { + allowForbiddenHeaders: { + enumerable: !0, + value: a + }, + cache: { + enumerable: !0, + value: this._init.cache + }, + credentials: { + enumerable: !0, + value: this._init.credentials + }, + headers: { + enumerable: !0, + value: c + }, + integrity: { + enumerable: !0, + value: this._init.integrity + }, + method: { + enumerable: !0, + value: this._init.method + }, + mode: { + enumerable: !0, + value: this._init.mode + }, + redirect: { + enumerable: !0, + value: this._init.redirect + }, + referrer: { + enumerable: !0, + value: this._init.referrer + }, + referrerPolicy: { + enumerable: !0, + value: this._init.referrerPolicy + }, + url: { + enumerable: !0, + value: this._url + } + }) + } + clone(e) { + return new s(this, { + url: e + }) + } + } + t.Request = s + }, + 4591: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.StreamResponse = t.Response = void 0; + const r = n(5158), + o = n(2781), + i = n(9796), + { + HTTP2_HEADER_LOCATION: s, + HTTP2_HEADER_STATUS: a, + HTTP2_HEADER_CONTENT_TYPE: c, + HTTP2_HEADER_CONTENT_ENCODING: u, + HTTP2_HEADER_CONTENT_LENGTH: l + } = r.constants, + d = n(5193), + p = n(7716), + h = n(5224); + class m extends h.Body { + constructor(e = null, t = {}, n) { + super(); + const r = p.ensureHeaders(t.allowForbiddenHeaders ? new p.GuardedHeaders("none", t.headers) : t.headers), + o = n || {}, + i = o.type || "basic", + s = !!o.redirected || !1, + a = o.url || "", + d = o.integrity || null; + if (this.setSignal(o.signal), e) { + const t = r.get(c), + n = r.get(l), + o = r.get(u), + i = null == n || null != o ? null : parseInt(n, 10); + t ? this.setBody(e, t, d, i) : this.setBody(e, null, d, i) + } + Object.defineProperties(this, { + headers: { + enumerable: !0, + value: r + }, + httpVersion: { + enumerable: !0, + value: o.httpVersion + }, + ok: { + enumerable: !0, + get: () => this.status >= 200 && this.status < 300 + }, + redirected: { + enumerable: !0, + value: s + }, + status: { + enumerable: !0, + value: t.status || 200 + }, + statusText: { + enumerable: !0, + value: t.statusText || "" + }, + type: { + enumerable: !0, + value: i + }, + url: { + enumerable: !0, + value: a + }, + useFinalURL: { + enumerable: !0, + value: void 0 + } + }) + } + static error() { + const e = new p.GuardedHeaders("immutable"); + return new m(null, { + headers: e, + status: 521, + statusText: "Web Server Is Down" + }, { + type: "error" + }) + } + static redirect(e, t) { + return new m(null, { + headers: { + [s]: e + }, + status: t = t || 302 + }) + } + clone() { + const { + headers: e, + status: t, + statusText: n + } = this; + return new m(this, { + headers: e, + status: t, + statusText: n + }) + } + } + + function f(e, t) { + const n = new p.GuardedHeaders(t ? "none" : "response"); + for (const t of Object.keys(e)) { + if (t.startsWith(":")) continue; + const r = e[t]; + Array.isArray(r) ? r.forEach((e => n.append(t, e))) : null != r && n.set(t, r) + } + return n + } + + function g(e, t) { + return { + headers: f(e, t) + } + } + + function y(e, t) { + return { + status: parseInt("" + e[a], 10), + statusText: "", + headers: f(e, t) + } + } + t.Response = m, t.StreamResponse = class extends m { + constructor(e, t, n, r, s, a, c, l, p, h) { + super(function(e, t, n) { + const r = n[u]; + if (!r) return t; + const s = e => {}, + a = { + flush: i.constants.Z_SYNC_FLUSH, + finishFlush: i.constants.Z_SYNC_FLUSH + }, + c = { + deflate: e => o.pipeline(e, i.createInflate(), s), + gzip: e => o.pipeline(e, i.createGunzip(a), s) + }; + d.hasBuiltinBrotli() && (c.br = e => o.pipeline(e, i.createBrotliDecompress(), s)), e.forEach((e => { + c[e.name] = e.decode + })); + const l = c[r]; + return l ? l(t) : t + }(e, n, r), { + ...a, + allowForbiddenHeaders: p, + ...1 === l ? g(r, p) : y(r, p) + }, function(e, t, n, r, o) { + return { + httpVersion: e, + redirected: n, + integrity: o, + signal: r, + type: "basic", + url: t + } + }(l, t, s, c, h)) + } + } + }, + 7489: (e, t) => { + "use strict"; + + function n(e) { + return "^" + e.split("*").map((e => e.replace(/[^a-zA-Z0-9]/g, (e => `\\${e}`)))).join("[^.]+") + "$" + } + + function r(e) { + return t => e.some((e => t.match(e))) + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.parseOrigin = t.makeRegex = void 0, t.makeRegex = n, t.parseOrigin = function(e) { + const t = [], + o = []; + return e && function(e) { + var t, n; + const r = null === (t = e.subject) || void 0 === t ? void 0 : t.CN, + o = (null !== (n = e.subjectaltname) && void 0 !== n ? n : "").split(",").map((e => e.trim())).filter((e => e.startsWith("DNS:"))).map((e => e.substr(4))); + return e.subjectaltname ? [...new Set(o)] : [r] + }(e).forEach((e => { + if (e.match(/.*\*.*\*.*/)) throw new Error(`Invalid CN/subjectAltNames: ${e}`); + e.includes("*") ? o.push(new RegExp(n(e))) : t.push(e) + })), { + names: t, + ...o.length ? { + dynamic: r(o) + } : {} + } + } + }, + 2180: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.setDestroyed = t.isDestroyed = t.setGotGoaway = t.hasGotGoaway = void 0, t.hasGotGoaway = function(e) { + return !!e.__fetch_h2_goaway + }, t.setGotGoaway = function(e) { + e.__fetch_h2_goaway = !0 + }, t.isDestroyed = function(e) { + const t = e; + return t.destroyed || t.__fetch_h2_destroyed + }, t.setDestroyed = function(e) { + e.__fetch_h2_destroyed = !0 + } + }, + 5193: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.hasBuiltinBrotli = t.uniq = t.identity = t.parseInput = t.makeOkError = t.isRedirectStatus = t.parseLocation = t.arrayify = t.pipeline = void 0; + const r = n(7310), + o = n(9796), + i = n(3837), + s = n(2781); + t.pipeline = i.promisify(s.pipeline), t.arrayify = function(e) { + return null != e && Array.isArray(e) ? e : null == e ? [] : Array.isArray(e) ? [...e] : [e] + }, t.parseLocation = function(e, t) { + if ("string" != typeof e) return null; + const n = new r.URL(t), + o = new r.URL(e, t); + return { + url: o.href, + isRelative: n.origin === o.origin + } + }, t.isRedirectStatus = { + 300: !0, + 301: !0, + 302: !0, + 303: !0, + 305: !0, + 307: !0, + 308: !0 + }, t.makeOkError = function(e) { + return e.metaData = e.metaData || {}, e.metaData.ok = !0, e + }, t.parseInput = function(e) { + const t = e.startsWith("http2://") || e.startsWith("http1://") ? e.substr(0, 5) : null; + e = e.replace(/^http[12]:\/\//, "http://"); + const { + origin: n, + hostname: o, + port: i, + protocol: s + } = new r.URL(e); + return { + hostname: o, + origin: n, + port: i || ("https:" === s ? "443" : "80"), + protocol: t || s.replace(":", ""), + url: e + } + }, t.identity = e => e, t.uniq = function(e, t) { + if (!t) return Array.from(new Set(e)); + const n = new Set; + return e.filter((e => { + const r = t(e), + o = !n.has(r); + return n.add(r), o + })) + }, t.hasBuiltinBrotli = function() { + return "function" == typeof o.createBrotliCompress + } + }, + 6276: (e, t, n) => { + var r; + e.exports = function() { + if (!r) { + try { + r = n(1241)("follow-redirects") + } catch (e) {} + "function" != typeof r && (r = function() {}) + } + r.apply(null, arguments) + } + }, + 4095: (e, t, n) => { + var r = n(7310), + o = r.URL, + i = n(3685), + s = n(5687), + a = n(2781).Writable, + c = n(9491), + u = n(6276), + l = ["abort", "aborted", "connect", "error", "socket", "timeout"], + d = Object.create(null); + l.forEach((function(e) { + d[e] = function(t, n, r) { + this._redirectable.emit(e, t, n, r) + } + })); + var p = k("ERR_FR_REDIRECTION_FAILURE", "Redirected request failed"), + h = k("ERR_FR_TOO_MANY_REDIRECTS", "Maximum number of redirects exceeded"), + m = k("ERR_FR_MAX_BODY_LENGTH_EXCEEDED", "Request body larger than maxBodyLength limit"), + f = k("ERR_STREAM_WRITE_AFTER_END", "write after end"); + + function g(e, t) { + a.call(this), this._sanitizeOptions(e), this._options = e, this._ended = !1, this._ending = !1, this._redirectCount = 0, this._redirects = [], this._requestBodyLength = 0, this._requestBodyBuffers = [], t && this.on("response", t); + var n = this; + this._onNativeResponse = function(e) { + n._processResponse(e) + }, this._performRequest() + } + + function y(e) { + var t = { + maxRedirects: 21, + maxBodyLength: 10485760 + }, + n = {}; + return Object.keys(e).forEach((function(i) { + var s = i + ":", + a = n[s] = e[i], + l = t[i] = Object.create(a); + Object.defineProperties(l, { + request: { + value: function(e, i, a) { + if ("string" == typeof e) { + var l = e; + try { + e = v(new o(l)) + } catch (t) { + e = r.parse(l) + } + } else o && e instanceof o ? e = v(e) : (a = i, i = e, e = { + protocol: s + }); + return "function" == typeof i && (a = i, i = null), (i = Object.assign({ + maxRedirects: t.maxRedirects, + maxBodyLength: t.maxBodyLength + }, e, i)).nativeProtocols = n, c.equal(i.protocol, s, "protocol mismatch"), u("options", i), new g(i, a) + }, + configurable: !0, + enumerable: !0, + writable: !0 + }, + get: { + value: function(e, t, n) { + var r = l.request(e, t, n); + return r.end(), r + }, + configurable: !0, + enumerable: !0, + writable: !0 + } + }) + })), t + } + + function _() {} + + function v(e) { + var t = { + protocol: e.protocol, + hostname: e.hostname.startsWith("[") ? e.hostname.slice(1, -1) : e.hostname, + hash: e.hash, + search: e.search, + pathname: e.pathname, + path: e.pathname + e.search, + href: e.href + }; + return "" !== e.port && (t.port = Number(e.port)), t + } + + function b(e, t) { + var n; + for (var r in t) e.test(r) && (n = t[r], delete t[r]); + return null == n ? void 0 : String(n).trim() + } + + function k(e, t) { + function n(e) { + Error.captureStackTrace(this, this.constructor), e ? (this.message = t + ": " + e.message, this.cause = e) : this.message = t + } + return n.prototype = new Error, n.prototype.constructor = n, n.prototype.name = "Error [" + e + "]", n.prototype.code = e, n + } + + function w(e) { + for (var t = 0; t < l.length; t++) e.removeListener(l[t], d[l[t]]); + e.on("error", _), e.abort() + } + g.prototype = Object.create(a.prototype), g.prototype.abort = function() { + w(this._currentRequest), this.emit("abort") + }, g.prototype.write = function(e, t, n) { + if (this._ending) throw new f; + if (!("string" == typeof e || "object" == typeof e && "length" in e)) throw new TypeError("data should be a string, Buffer or Uint8Array"); + "function" == typeof t && (n = t, t = null), 0 !== e.length ? this._requestBodyLength + e.length <= this._options.maxBodyLength ? (this._requestBodyLength += e.length, this._requestBodyBuffers.push({ + data: e, + encoding: t + }), this._currentRequest.write(e, t, n)) : (this.emit("error", new m), this.abort()) : n && n() + }, g.prototype.end = function(e, t, n) { + if ("function" == typeof e ? (n = e, e = t = null) : "function" == typeof t && (n = t, t = null), e) { + var r = this, + o = this._currentRequest; + this.write(e, t, (function() { + r._ended = !0, o.end(null, null, n) + })), this._ending = !0 + } else this._ended = this._ending = !0, this._currentRequest.end(null, null, n) + }, g.prototype.setHeader = function(e, t) { + this._options.headers[e] = t, this._currentRequest.setHeader(e, t) + }, g.prototype.removeHeader = function(e) { + delete this._options.headers[e], this._currentRequest.removeHeader(e) + }, g.prototype.setTimeout = function(e, t) { + var n = this; + + function r(t) { + t.setTimeout(e), t.removeListener("timeout", t.destroy), t.addListener("timeout", t.destroy) + } + + function o(t) { + n._timeout && clearTimeout(n._timeout), n._timeout = setTimeout((function() { + n.emit("timeout"), i() + }), e), r(t) + } + + function i() { + n._timeout && (clearTimeout(n._timeout), n._timeout = null), n.removeListener("abort", i), n.removeListener("error", i), n.removeListener("response", i), t && n.removeListener("timeout", t), n.socket || n._currentRequest.removeListener("socket", o) + } + return t && this.on("timeout", t), this.socket ? o(this.socket) : this._currentRequest.once("socket", o), this.on("socket", r), this.on("abort", i), this.on("error", i), this.on("response", i), this + }, ["flushHeaders", "getHeader", "setNoDelay", "setSocketKeepAlive"].forEach((function(e) { + g.prototype[e] = function(t, n) { + return this._currentRequest[e](t, n) + } + })), ["aborted", "connection", "socket"].forEach((function(e) { + Object.defineProperty(g.prototype, e, { + get: function() { + return this._currentRequest[e] + } + }) + })), g.prototype._sanitizeOptions = function(e) { + if (e.headers || (e.headers = {}), e.host && (e.hostname || (e.hostname = e.host), delete e.host), !e.pathname && e.path) { + var t = e.path.indexOf("?"); + t < 0 ? e.pathname = e.path : (e.pathname = e.path.substring(0, t), e.search = e.path.substring(t)) + } + }, g.prototype._performRequest = function() { + var e = this._options.protocol, + t = this._options.nativeProtocols[e]; + if (t) { + if (this._options.agents) { + var n = e.substr(0, e.length - 1); + this._options.agent = this._options.agents[n] + } + var o = this._currentRequest = t.request(this._options, this._onNativeResponse); + this._currentUrl = r.format(this._options), o._redirectable = this; + for (var i = 0; i < l.length; i++) o.on(l[i], d[l[i]]); + if (this._isRedirect) { + var s = 0, + a = this, + c = this._requestBodyBuffers; + ! function e(t) { + if (o === a._currentRequest) + if (t) a.emit("error", t); + else if (s < c.length) { + var n = c[s++]; + o.finished || o.write(n.data, n.encoding, e) + } else a._ended && o.end() + }() + } + } else this.emit("error", new TypeError("Unsupported protocol " + e)) + }, g.prototype._processResponse = function(e) { + var t = e.statusCode; + this._options.trackRedirects && this._redirects.push({ + url: this._currentUrl, + headers: e.headers, + statusCode: t + }); + var n = e.headers.location; + if (n && !1 !== this._options.followRedirects && t >= 300 && t < 400) { + if (w(this._currentRequest), e.destroy(), ++this._redirectCount > this._options.maxRedirects) return void this.emit("error", new h); + ((301 === t || 302 === t) && "POST" === this._options.method || 303 === t && !/^(?:GET|HEAD)$/.test(this._options.method)) && (this._options.method = "GET", this._requestBodyBuffers = [], b(/^content-/i, this._options.headers)); + var o, i = b(/^host$/i, this._options.headers), + s = r.parse(this._currentUrl), + a = i || s.host, + c = /^\w+:/.test(n) ? this._currentUrl : r.format(Object.assign(s, { + host: a + })); + try { + o = r.resolve(c, n) + } catch (e) { + return void this.emit("error", new p(e)) + } + u("redirecting to", o), this._isRedirect = !0; + var l = r.parse(o); + if (Object.assign(this._options, l), l.host === a || function(e, t) { + const n = e.length - t.length - 1; + return n > 0 && "." === e[n] && e.endsWith(t) + }(l.host, a) || b(/^(?:authorization|cookie)$/i, this._options.headers), "function" == typeof this._options.beforeRedirect) { + var d = { + headers: e.headers + }; + try { + this._options.beforeRedirect.call(null, this._options, d) + } catch (e) { + return void this.emit("error", e) + } + this._sanitizeOptions(this._options) + } + try { + this._performRequest() + } catch (e) { + this.emit("error", new p(e)) + } + } else e.responseUrl = this._currentUrl, e.redirects = this._redirects, this.emit("response", e), this._requestBodyBuffers = [] + }, e.exports = y({ + http: i, + https: s + }), e.exports.wrap = y + }, + 3619: (e, t, n) => { + "use strict"; + const { + PassThrough: r + } = n(2781); + e.exports = e => { + e = { + ...e + }; + const { + array: t + } = e; + let { + encoding: n + } = e; + const o = "buffer" === n; + let i = !1; + t ? i = !(n || o) : n = n || "utf8", o && (n = null); + const s = new r({ + objectMode: i + }); + n && s.setEncoding(n); + let a = 0; + const c = []; + return s.on("data", (e => { + c.push(e), i ? a = c.length : a += e.length + })), s.getBufferedValue = () => t ? c : o ? Buffer.concat(c, a) : c.join(""), s.getBufferedLength = () => a, s + } + }, + 1561: (e, t, n) => { + "use strict"; + const { + constants: r + } = n(4300), o = n(2781), { + promisify: i + } = n(3837), s = n(3619), a = i(o.pipeline); + class c extends Error { + constructor() { + super("maxBuffer exceeded"), this.name = "MaxBufferError" + } + } + async function u(e, t) { + if (!e) throw new Error("Expected a stream"); + t = { + maxBuffer: 1 / 0, + ...t + }; + const { + maxBuffer: n + } = t, o = s(t); + return await new Promise(((t, i) => { + const s = e => { + e && o.getBufferedLength() <= r.MAX_LENGTH && (e.bufferedData = o.getBufferedValue()), i(e) + }; + (async () => { + try { + await a(e, o), t() + } catch (e) { + s(e) + } + })(), o.on("data", (() => { + o.getBufferedLength() > n && s(new c) + })) + })), o.getBufferedValue() + } + e.exports = u, e.exports.buffer = (e, t) => u(e, { + ...t, + encoding: "buffer" + }), e.exports.array = (e, t) => u(e, { + ...t, + array: !0 + }), e.exports.MaxBufferError = c + }, + 1875: e => { + "use strict"; + e.exports = (e, t) => { + t = t || process.argv; + const n = e.startsWith("-") ? "" : 1 === e.length ? "-" : "--", + r = t.indexOf(n + e), + o = t.indexOf("--"); + return -1 !== r && (-1 === o || r < o) + } + }, + 1800: (e, t, n) => { + try { + var r = n(3837); + if ("function" != typeof r.inherits) throw ""; + e.exports = r.inherits + } catch (t) { + e.exports = n(87) + } + }, + 87: e => { + "function" == typeof Object.create ? e.exports = function(e, t) { + t && (e.super_ = t, e.prototype = Object.create(t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0 + } + })) + } : e.exports = function(e, t) { + if (t) { + e.super_ = t; + var n = function() {}; + n.prototype = t.prototype, e.prototype = new n, e.prototype.constructor = e + } + } + }, + 5127: e => { + "use strict"; + var t = e.exports = function(e, t, r) { + "function" == typeof t && (r = t, t = {}), n(t, "function" == typeof(r = t.cb || r) ? r : r.pre || function() {}, r.post || function() {}, e, "", e) + }; + + function n(e, r, o, i, s, a, c, u, l, d) { + if (i && "object" == typeof i && !Array.isArray(i)) { + for (var p in r(i, s, a, c, u, l, d), i) { + var h = i[p]; + if (Array.isArray(h)) { + if (p in t.arrayKeywords) + for (var m = 0; m < h.length; m++) n(e, r, o, h[m], s + "/" + p + "/" + m, a, s, p, i, m) + } else if (p in t.propsKeywords) { + if (h && "object" == typeof h) + for (var f in h) n(e, r, o, h[f], s + "/" + p + "/" + f.replace(/~/g, "~0").replace(/\//g, "~1"), a, s, p, i, f) + } else(p in t.keywords || e.allKeys && !(p in t.skipKeywords)) && n(e, r, o, h, s + "/" + p, a, s, p, i) + } + o(i, s, a, c, u, l, d) + } + } + t.keywords = { + additionalItems: !0, + items: !0, + contains: !0, + additionalProperties: !0, + propertyNames: !0, + not: !0, + if: !0, + then: !0, + else: !0 + }, t.arrayKeywords = { + items: !0, + allOf: !0, + anyOf: !0, + oneOf: !0 + }, t.propsKeywords = { + $defs: !0, + definitions: !0, + properties: !0, + patternProperties: !0, + dependencies: !0 + }, t.skipKeywords = { + default: !0, + enum: !0, + const: !0, + required: !0, + maximum: !0, + minimum: !0, + exclusiveMaximum: !0, + exclusiveMinimum: !0, + multipleOf: !0, + maxLength: !0, + minLength: !0, + pattern: !0, + format: !0, + maxItems: !0, + minItems: !0, + uniqueItems: !0, + maxProperties: !0, + minProperties: !0 + } + }, + 8628: e => { + var t = 1e3, + n = 60 * t, + r = 60 * n, + o = 24 * r; + + function i(e, t, n, r) { + var o = t >= 1.5 * n; + return Math.round(e / n) + " " + r + (o ? "s" : "") + } + e.exports = function(e, s) { + s = s || {}; + var a, c, u = typeof e; + if ("string" === u && e.length > 0) return function(e) { + if (!((e = String(e)).length > 100)) { + var i = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e); + if (i) { + var s = parseFloat(i[1]); + switch ((i[2] || "ms").toLowerCase()) { + case "years": + case "year": + case "yrs": + case "yr": + case "y": + return 315576e5 * s; + case "weeks": + case "week": + case "w": + return 6048e5 * s; + case "days": + case "day": + case "d": + return s * o; + case "hours": + case "hour": + case "hrs": + case "hr": + case "h": + return s * r; + case "minutes": + case "minute": + case "mins": + case "min": + case "m": + return s * n; + case "seconds": + case "second": + case "secs": + case "sec": + case "s": + return s * t; + case "milliseconds": + case "millisecond": + case "msecs": + case "msec": + case "ms": + return s; + default: + return + } + } + } + }(e); + if ("number" === u && isFinite(e)) return s.long ? (a = e, (c = Math.abs(a)) >= o ? i(a, c, o, "day") : c >= r ? i(a, c, r, "hour") : c >= n ? i(a, c, n, "minute") : c >= t ? i(a, c, t, "second") : a + " ms") : function(e) { + var i = Math.abs(e); + return i >= o ? Math.round(e / o) + "d" : i >= r ? Math.round(e / r) + "h" : i >= n ? Math.round(e / n) + "m" : i >= t ? Math.round(e / t) + "s" : e + "ms" + }(e); + throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(e)) + } + }, + 4107: (e, t, n) => { + "use strict"; + var r = n(5477), + o = {}; + o.rules = n(3763).map((function(e) { + return { + rule: e, + suffix: e.replace(/^(\*\.|\!)/, ""), + punySuffix: -1, + wildcard: "*" === e.charAt(0), + exception: "!" === e.charAt(0) + } + })), o.endsWith = function(e, t) { + return -1 !== e.indexOf(t, e.length - t.length) + }, o.findRule = function(e) { + var t = r.toASCII(e); + return o.rules.reduce((function(e, n) { + return -1 === n.punySuffix && (n.punySuffix = r.toASCII(n.suffix)), o.endsWith(t, "." + n.punySuffix) || t === n.punySuffix ? n : e + }), null) + }, t.errorCodes = { + DOMAIN_TOO_SHORT: "Domain name too short.", + DOMAIN_TOO_LONG: "Domain name too long. It should be no more than 255 chars.", + LABEL_STARTS_WITH_DASH: "Domain name label can not start with a dash.", + LABEL_ENDS_WITH_DASH: "Domain name label can not end with a dash.", + LABEL_TOO_LONG: "Domain name label should be at most 63 chars long.", + LABEL_TOO_SHORT: "Domain name label should be at least 1 character long.", + LABEL_INVALID_CHARS: "Domain name label can only contain alphanumeric characters or dashes." + }, o.validate = function(e) { + var t = r.toASCII(e); + if (t.length < 1) return "DOMAIN_TOO_SHORT"; + if (t.length > 255) return "DOMAIN_TOO_LONG"; + for (var n, o = t.split("."), i = 0; i < o.length; ++i) { + if (!(n = o[i]).length) return "LABEL_TOO_SHORT"; + if (n.length > 63) return "LABEL_TOO_LONG"; + if ("-" === n.charAt(0)) return "LABEL_STARTS_WITH_DASH"; + if ("-" === n.charAt(n.length - 1)) return "LABEL_ENDS_WITH_DASH"; + if (!/^[a-z0-9\-]+$/.test(n)) return "LABEL_INVALID_CHARS" + } + }, t.parse = function(e) { + if ("string" != typeof e) throw new TypeError("Domain name must be a string."); + var n = e.slice(0).toLowerCase(); + "." === n.charAt(n.length - 1) && (n = n.slice(0, n.length - 1)); + var i = o.validate(n); + if (i) return { + input: e, + error: { + message: t.errorCodes[i], + code: i + } + }; + var s = { + input: e, + tld: null, + sld: null, + domain: null, + subdomain: null, + listed: !1 + }, + a = n.split("."); + if ("local" === a[a.length - 1]) return s; + var c = function() { + return /xn--/.test(n) ? (s.domain && (s.domain = r.toASCII(s.domain)), s.subdomain && (s.subdomain = r.toASCII(s.subdomain)), s) : s + }, + u = o.findRule(n); + if (!u) return a.length < 2 ? s : (s.tld = a.pop(), s.sld = a.pop(), s.domain = [s.sld, s.tld].join("."), a.length && (s.subdomain = a.pop()), c()); + s.listed = !0; + var l = u.suffix.split("."), + d = a.slice(0, a.length - l.length); + return u.exception && d.push(l.shift()), s.tld = l.join("."), d.length ? (u.wildcard && (l.unshift(d.pop()), s.tld = l.join(".")), d.length ? (s.sld = d.pop(), s.domain = [s.sld, s.tld].join("."), d.length && (s.subdomain = d.join(".")), c()) : c()) : c() + }, t.get = function(e) { + return e && t.parse(e).domain || null + }, t.isValid = function(e) { + var n = t.parse(e); + return Boolean(n.domain && n.listed) + } + }, + 461: e => { + "use strict"; + const t = {}; + + function n(e, n, r) { + r || (r = Error); + class o extends r { + constructor(e, t, r) { + super(function(e, t, r) { + return "string" == typeof n ? n : n(e, t, r) + }(e, t, r)) + } + } + o.prototype.name = r.name, o.prototype.code = e, t[e] = o + } + + function r(e, t) { + if (Array.isArray(e)) { + const n = e.length; + return e = e.map((e => String(e))), n > 2 ? `one of ${t} ${e.slice(0,n-1).join(", ")}, or ` + e[n - 1] : 2 === n ? `one of ${t} ${e[0]} or ${e[1]}` : `of ${t} ${e[0]}` + } + return `of ${t} ${String(e)}` + } + n("ERR_INVALID_OPT_VALUE", (function(e, t) { + return 'The value "' + t + '" is invalid for option "' + e + '"' + }), TypeError), n("ERR_INVALID_ARG_TYPE", (function(e, t, n) { + let o; + var i; + let s; + if ("string" == typeof t && (i = "not ", t.substr(0, i.length) === i) ? (o = "must not be", t = t.replace(/^not /, "")) : o = "must be", function(e, t, n) { + return (void 0 === n || n > e.length) && (n = e.length), e.substring(n - t.length, n) === t + }(e, " argument")) s = `The ${e} ${o} ${r(t,"type")}`; + else { + s = `The "${e}" ${"number"!=typeof c&&(c=0),c+".".length>(a=e).length||-1===a.indexOf(".",c)?"argument":"property"} ${o} ${r(t,"type")}` + } + var a, c; + return s += ". Received type " + typeof n, s + }), TypeError), n("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), n("ERR_METHOD_NOT_IMPLEMENTED", (function(e) { + return "The " + e + " method is not implemented" + })), n("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), n("ERR_STREAM_DESTROYED", (function(e) { + return "Cannot call " + e + " after a stream was destroyed" + })), n("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), n("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), n("ERR_STREAM_WRITE_AFTER_END", "write after end"), n("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), n("ERR_UNKNOWN_ENCODING", (function(e) { + return "Unknown encoding: " + e + }), TypeError), n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), e.exports.q = t + }, + 4439: (e, t, n) => { + "use strict"; + var r = Object.keys || function(e) { + var t = []; + for (var n in e) t.push(n); + return t + }; + e.exports = u; + var o = n(5327), + i = n(4567); + n(1800)(u, o); + for (var s = r(i.prototype), a = 0; a < s.length; a++) { + var c = s[a]; + u.prototype[c] || (u.prototype[c] = i.prototype[c]) + } + + function u(e) { + if (!(this instanceof u)) return new u(e); + o.call(this, e), i.call(this, e), this.allowHalfOpen = !0, e && (!1 === e.readable && (this.readable = !1), !1 === e.writable && (this.writable = !1), !1 === e.allowHalfOpen && (this.allowHalfOpen = !1, this.once("end", l))) + } + + function l() { + this._writableState.ended || process.nextTick(d, this) + } + + function d(e) { + e.end() + } + Object.defineProperty(u.prototype, "writableHighWaterMark", { + enumerable: !1, + get: function() { + return this._writableState.highWaterMark + } + }), Object.defineProperty(u.prototype, "writableBuffer", { + enumerable: !1, + get: function() { + return this._writableState && this._writableState.getBuffer() + } + }), Object.defineProperty(u.prototype, "writableLength", { + enumerable: !1, + get: function() { + return this._writableState.length + } + }), Object.defineProperty(u.prototype, "destroyed", { + enumerable: !1, + get: function() { + return void 0 !== this._readableState && void 0 !== this._writableState && this._readableState.destroyed && this._writableState.destroyed + }, + set: function(e) { + void 0 !== this._readableState && void 0 !== this._writableState && (this._readableState.destroyed = e, this._writableState.destroyed = e) + } + }) + }, + 3754: (e, t, n) => { + "use strict"; + e.exports = o; + var r = n(2175); + + function o(e) { + if (!(this instanceof o)) return new o(e); + r.call(this, e) + } + n(1800)(o, r), o.prototype._transform = function(e, t, n) { + n(null, e) + } + }, + 5327: (e, t, n) => { + "use strict"; + var r; + e.exports = x, x.ReadableState = j, n(2361).EventEmitter; + var o, i = function(e, t) { + return e.listeners(t).length + }, + s = n(2266), + a = n(4300).Buffer, + c = global.Uint8Array || function() {}, + u = n(3837); + o = u && u.debuglog ? u.debuglog("stream") : function() {}; + var l, d, p, h = n(7712), + m = n(7640), + f = n(5985).getHighWaterMark, + g = n(461).q, + y = g.ERR_INVALID_ARG_TYPE, + _ = g.ERR_STREAM_PUSH_AFTER_EOF, + v = g.ERR_METHOD_NOT_IMPLEMENTED, + b = g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; + n(1800)(x, s); + var k = m.errorOrDestroy, + w = ["error", "close", "destroy", "pause", "resume"]; + + function j(e, t, o) { + r = r || n(4439), e = e || {}, "boolean" != typeof o && (o = t instanceof r), this.objectMode = !!e.objectMode, o && (this.objectMode = this.objectMode || !!e.readableObjectMode), this.highWaterMark = f(this, e, "readableHighWaterMark", o), this.buffer = new h, this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = !1 !== e.emitClose, this.autoDestroy = !!e.autoDestroy, this.destroyed = !1, this.defaultEncoding = e.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, e.encoding && (l || (l = n(4361).s), this.decoder = new l(e.encoding), this.encoding = e.encoding) + } + + function x(e) { + if (r = r || n(4439), !(this instanceof x)) return new x(e); + var t = this instanceof r; + this._readableState = new j(e, this, t), this.readable = !0, e && ("function" == typeof e.read && (this._read = e.read), "function" == typeof e.destroy && (this._destroy = e.destroy)), s.call(this) + } + + function E(e, t, n, r, i) { + o("readableAddChunk", t); + var s, u = e._readableState; + if (null === t) u.reading = !1, + function(e, t) { + if (o("onEofChunk"), !t.ended) { + if (t.decoder) { + var n = t.decoder.end(); + n && n.length && (t.buffer.push(n), t.length += t.objectMode ? 1 : n.length) + } + t.ended = !0, t.sync ? P(e) : (t.needReadable = !1, t.emittedReadable || (t.emittedReadable = !0, I(e))) + } + }(e, u); + else if (i || (s = function(e, t) { + var n, r; + return r = t, a.isBuffer(r) || r instanceof c || "string" == typeof t || void 0 === t || e.objectMode || (n = new y("chunk", ["string", "Buffer", "Uint8Array"], t)), n + }(u, t)), s) k(e, s); + else if (u.objectMode || t && t.length > 0) + if ("string" == typeof t || u.objectMode || Object.getPrototypeOf(t) === a.prototype || (t = function(e) { + return a.from(e) + }(t)), r) u.endEmitted ? k(e, new b) : C(e, u, t, !0); + else if (u.ended) k(e, new _); + else { + if (u.destroyed) return !1; + u.reading = !1, u.decoder && !n ? (t = u.decoder.write(t), u.objectMode || 0 !== t.length ? C(e, u, t, !1) : R(e, u)) : C(e, u, t, !1) + } else r || (u.reading = !1, R(e, u)); + return !u.ended && (u.length < u.highWaterMark || 0 === u.length) + } + + function C(e, t, n, r) { + t.flowing && 0 === t.length && !t.sync ? (t.awaitDrain = 0, e.emit("data", n)) : (t.length += t.objectMode ? 1 : n.length, r ? t.buffer.unshift(n) : t.buffer.push(n), t.needReadable && P(e)), R(e, t) + } + Object.defineProperty(x.prototype, "destroyed", { + enumerable: !1, + get: function() { + return void 0 !== this._readableState && this._readableState.destroyed + }, + set: function(e) { + this._readableState && (this._readableState.destroyed = e) + } + }), x.prototype.destroy = m.destroy, x.prototype._undestroy = m.undestroy, x.prototype._destroy = function(e, t) { + t(e) + }, x.prototype.push = function(e, t) { + var n, r = this._readableState; + return r.objectMode ? n = !0 : "string" == typeof e && ((t = t || r.defaultEncoding) !== r.encoding && (e = a.from(e, t), t = ""), n = !0), E(this, e, t, !1, n) + }, x.prototype.unshift = function(e) { + return E(this, e, null, !0, !1) + }, x.prototype.isPaused = function() { + return !1 === this._readableState.flowing + }, x.prototype.setEncoding = function(e) { + l || (l = n(4361).s); + var t = new l(e); + this._readableState.decoder = t, this._readableState.encoding = this._readableState.decoder.encoding; + for (var r = this._readableState.buffer.head, o = ""; null !== r;) o += t.write(r.data), r = r.next; + return this._readableState.buffer.clear(), "" !== o && this._readableState.buffer.push(o), this._readableState.length = o.length, this + }; + var S = 1073741824; + + function T(e, t) { + return e <= 0 || 0 === t.length && t.ended ? 0 : t.objectMode ? 1 : e != e ? t.flowing && t.length ? t.buffer.head.data.length : t.length : (e > t.highWaterMark && (t.highWaterMark = function(e) { + return e >= S ? e = S : (e--, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e++), e + }(e)), e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, 0)) + } + + function P(e) { + var t = e._readableState; + o("emitReadable", t.needReadable, t.emittedReadable), t.needReadable = !1, t.emittedReadable || (o("emitReadable", t.flowing), t.emittedReadable = !0, process.nextTick(I, e)) + } + + function I(e) { + var t = e._readableState; + o("emitReadable_", t.destroyed, t.length, t.ended), t.destroyed || !t.length && !t.ended || (e.emit("readable"), t.emittedReadable = !1), t.needReadable = !t.flowing && !t.ended && t.length <= t.highWaterMark, M(e) + } + + function R(e, t) { + t.readingMore || (t.readingMore = !0, process.nextTick(O, e, t)) + } + + function O(e, t) { + for (; !t.reading && !t.ended && (t.length < t.highWaterMark || t.flowing && 0 === t.length);) { + var n = t.length; + if (o("maybeReadMore read 0"), e.read(0), n === t.length) break + } + t.readingMore = !1 + } + + function A(e) { + var t = e._readableState; + t.readableListening = e.listenerCount("readable") > 0, t.resumeScheduled && !t.paused ? t.flowing = !0 : e.listenerCount("data") > 0 && e.resume() + } + + function N(e) { + o("readable nexttick read 0"), e.read(0) + } + + function D(e, t) { + o("resume", t.reading), t.reading || e.read(0), t.resumeScheduled = !1, e.emit("resume"), M(e), t.flowing && !t.reading && e.read(0) + } + + function M(e) { + var t = e._readableState; + for (o("flow", t.flowing); t.flowing && null !== e.read();); + } + + function q(e, t) { + return 0 === t.length ? null : (t.objectMode ? n = t.buffer.shift() : !e || e >= t.length ? (n = t.decoder ? t.buffer.join("") : 1 === t.buffer.length ? t.buffer.first() : t.buffer.concat(t.length), t.buffer.clear()) : n = t.buffer.consume(e, t.decoder), n); + var n + } + + function L(e) { + var t = e._readableState; + o("endReadable", t.endEmitted), t.endEmitted || (t.ended = !0, process.nextTick($, t, e)) + } + + function $(e, t) { + if (o("endReadableNT", e.endEmitted, e.length), !e.endEmitted && 0 === e.length && (e.endEmitted = !0, t.readable = !1, t.emit("end"), e.autoDestroy)) { + var n = t._writableState; + (!n || n.autoDestroy && n.finished) && t.destroy() + } + } + + function F(e, t) { + for (var n = 0, r = e.length; n < r; n++) + if (e[n] === t) return n; + return -1 + } + x.prototype.read = function(e) { + o("read", e), e = parseInt(e, 10); + var t = this._readableState, + n = e; + if (0 !== e && (t.emittedReadable = !1), 0 === e && t.needReadable && ((0 !== t.highWaterMark ? t.length >= t.highWaterMark : t.length > 0) || t.ended)) return o("read: emitReadable", t.length, t.ended), 0 === t.length && t.ended ? L(this) : P(this), null; + if (0 === (e = T(e, t)) && t.ended) return 0 === t.length && L(this), null; + var r, i = t.needReadable; + return o("need readable", i), (0 === t.length || t.length - e < t.highWaterMark) && o("length less than watermark", i = !0), t.ended || t.reading ? o("reading or ended", i = !1) : i && (o("do read"), t.reading = !0, t.sync = !0, 0 === t.length && (t.needReadable = !0), this._read(t.highWaterMark), t.sync = !1, t.reading || (e = T(n, t))), null === (r = e > 0 ? q(e, t) : null) ? (t.needReadable = t.length <= t.highWaterMark, e = 0) : (t.length -= e, t.awaitDrain = 0), 0 === t.length && (t.ended || (t.needReadable = !0), n !== e && t.ended && L(this)), null !== r && this.emit("data", r), r + }, x.prototype._read = function(e) { + k(this, new v("_read()")) + }, x.prototype.pipe = function(e, t) { + var n = this, + r = this._readableState; + switch (r.pipesCount) { + case 0: + r.pipes = e; + break; + case 1: + r.pipes = [r.pipes, e]; + break; + default: + r.pipes.push(e) + } + r.pipesCount += 1, o("pipe count=%d opts=%j", r.pipesCount, t); + var s = t && !1 === t.end || e === process.stdout || e === process.stderr ? m : a; + + function a() { + o("onend"), e.end() + } + r.endEmitted ? process.nextTick(s) : n.once("end", s), e.on("unpipe", (function t(i, s) { + o("onunpipe"), i === n && s && !1 === s.hasUnpiped && (s.hasUnpiped = !0, o("cleanup"), e.removeListener("close", p), e.removeListener("finish", h), e.removeListener("drain", c), e.removeListener("error", d), e.removeListener("unpipe", t), n.removeListener("end", a), n.removeListener("end", m), n.removeListener("data", l), u = !0, !r.awaitDrain || e._writableState && !e._writableState.needDrain || c()) + })); + var c = function(e) { + return function() { + var t = e._readableState; + o("pipeOnDrain", t.awaitDrain), t.awaitDrain && t.awaitDrain--, 0 === t.awaitDrain && i(e, "data") && (t.flowing = !0, M(e)) + } + }(n); + e.on("drain", c); + var u = !1; + + function l(t) { + o("ondata"); + var i = e.write(t); + o("dest.write", i), !1 === i && ((1 === r.pipesCount && r.pipes === e || r.pipesCount > 1 && -1 !== F(r.pipes, e)) && !u && (o("false write response, pause", r.awaitDrain), r.awaitDrain++), n.pause()) + } + + function d(t) { + o("onerror", t), m(), e.removeListener("error", d), 0 === i(e, "error") && k(e, t) + } + + function p() { + e.removeListener("finish", h), m() + } + + function h() { + o("onfinish"), e.removeListener("close", p), m() + } + + function m() { + o("unpipe"), n.unpipe(e) + } + return n.on("data", l), + function(e, t, n) { + if ("function" == typeof e.prependListener) return e.prependListener(t, n); + e._events && e._events.error ? Array.isArray(e._events.error) ? e._events.error.unshift(n) : e._events.error = [n, e._events.error] : e.on(t, n) + }(e, "error", d), e.once("close", p), e.once("finish", h), e.emit("pipe", n), r.flowing || (o("pipe resume"), n.resume()), e + }, x.prototype.unpipe = function(e) { + var t = this._readableState, + n = { + hasUnpiped: !1 + }; + if (0 === t.pipesCount) return this; + if (1 === t.pipesCount) return e && e !== t.pipes || (e || (e = t.pipes), t.pipes = null, t.pipesCount = 0, t.flowing = !1, e && e.emit("unpipe", this, n)), this; + if (!e) { + var r = t.pipes, + o = t.pipesCount; + t.pipes = null, t.pipesCount = 0, t.flowing = !1; + for (var i = 0; i < o; i++) r[i].emit("unpipe", this, { + hasUnpiped: !1 + }); + return this + } + var s = F(t.pipes, e); + return -1 === s || (t.pipes.splice(s, 1), t.pipesCount -= 1, 1 === t.pipesCount && (t.pipes = t.pipes[0]), e.emit("unpipe", this, n)), this + }, x.prototype.on = function(e, t) { + var n = s.prototype.on.call(this, e, t), + r = this._readableState; + return "data" === e ? (r.readableListening = this.listenerCount("readable") > 0, !1 !== r.flowing && this.resume()) : "readable" === e && (r.endEmitted || r.readableListening || (r.readableListening = r.needReadable = !0, r.flowing = !1, r.emittedReadable = !1, o("on readable", r.length, r.reading), r.length ? P(this) : r.reading || process.nextTick(N, this))), n + }, x.prototype.addListener = x.prototype.on, x.prototype.removeListener = function(e, t) { + var n = s.prototype.removeListener.call(this, e, t); + return "readable" === e && process.nextTick(A, this), n + }, x.prototype.removeAllListeners = function(e) { + var t = s.prototype.removeAllListeners.apply(this, arguments); + return "readable" !== e && void 0 !== e || process.nextTick(A, this), t + }, x.prototype.resume = function() { + var e = this._readableState; + return e.flowing || (o("resume"), e.flowing = !e.readableListening, function(e, t) { + t.resumeScheduled || (t.resumeScheduled = !0, process.nextTick(D, e, t)) + }(this, e)), e.paused = !1, this + }, x.prototype.pause = function() { + return o("call pause flowing=%j", this._readableState.flowing), !1 !== this._readableState.flowing && (o("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this + }, x.prototype.wrap = function(e) { + var t = this, + n = this._readableState, + r = !1; + for (var i in e.on("end", (function() { + if (o("wrapped end"), n.decoder && !n.ended) { + var e = n.decoder.end(); + e && e.length && t.push(e) + } + t.push(null) + })), e.on("data", (function(i) { + o("wrapped data"), n.decoder && (i = n.decoder.write(i)), n.objectMode && null == i || (n.objectMode || i && i.length) && (t.push(i) || (r = !0, e.pause())) + })), e) void 0 === this[i] && "function" == typeof e[i] && (this[i] = function(t) { + return function() { + return e[t].apply(e, arguments) + } + }(i)); + for (var s = 0; s < w.length; s++) e.on(w[s], this.emit.bind(this, w[s])); + return this._read = function(t) { + o("wrapped _read", t), r && (r = !1, e.resume()) + }, this + }, "function" == typeof Symbol && (x.prototype[Symbol.asyncIterator] = function() { + return void 0 === d && (d = n(4157)), d(this) + }), Object.defineProperty(x.prototype, "readableHighWaterMark", { + enumerable: !1, + get: function() { + return this._readableState.highWaterMark + } + }), Object.defineProperty(x.prototype, "readableBuffer", { + enumerable: !1, + get: function() { + return this._readableState && this._readableState.buffer + } + }), Object.defineProperty(x.prototype, "readableFlowing", { + enumerable: !1, + get: function() { + return this._readableState.flowing + }, + set: function(e) { + this._readableState && (this._readableState.flowing = e) + } + }), x._fromList = q, Object.defineProperty(x.prototype, "readableLength", { + enumerable: !1, + get: function() { + return this._readableState.length + } + }), "function" == typeof Symbol && (x.from = function(e, t) { + return void 0 === p && (p = n(6963)), p(x, e, t) + }) + }, + 2175: (e, t, n) => { + "use strict"; + e.exports = l; + var r = n(461).q, + o = r.ERR_METHOD_NOT_IMPLEMENTED, + i = r.ERR_MULTIPLE_CALLBACK, + s = r.ERR_TRANSFORM_ALREADY_TRANSFORMING, + a = r.ERR_TRANSFORM_WITH_LENGTH_0, + c = n(4439); + + function u(e, t) { + var n = this._transformState; + n.transforming = !1; + var r = n.writecb; + if (null === r) return this.emit("error", new i); + n.writechunk = null, n.writecb = null, null != t && this.push(t), r(e); + var o = this._readableState; + o.reading = !1, (o.needReadable || o.length < o.highWaterMark) && this._read(o.highWaterMark) + } + + function l(e) { + if (!(this instanceof l)) return new l(e); + c.call(this, e), this._transformState = { + afterTransform: u.bind(this), + needTransform: !1, + transforming: !1, + writecb: null, + writechunk: null, + writeencoding: null + }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && ("function" == typeof e.transform && (this._transform = e.transform), "function" == typeof e.flush && (this._flush = e.flush)), this.on("prefinish", d) + } + + function d() { + var e = this; + "function" != typeof this._flush || this._readableState.destroyed ? p(this, null, null) : this._flush((function(t, n) { + p(e, t, n) + })) + } + + function p(e, t, n) { + if (t) return e.emit("error", t); + if (null != n && e.push(n), e._writableState.length) throw new a; + if (e._transformState.transforming) throw new s; + return e.push(null) + } + n(1800)(l, c), l.prototype.push = function(e, t) { + return this._transformState.needTransform = !1, c.prototype.push.call(this, e, t) + }, l.prototype._transform = function(e, t, n) { + n(new o("_transform()")) + }, l.prototype._write = function(e, t, n) { + var r = this._transformState; + if (r.writecb = n, r.writechunk = e, r.writeencoding = t, !r.transforming) { + var o = this._readableState; + (r.needTransform || o.needReadable || o.length < o.highWaterMark) && this._read(o.highWaterMark) + } + }, l.prototype._read = function(e) { + var t = this._transformState; + null === t.writechunk || t.transforming ? t.needTransform = !0 : (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) + }, l.prototype._destroy = function(e, t) { + c.prototype._destroy.call(this, e, (function(e) { + t(e) + })) + } + }, + 4567: (e, t, n) => { + "use strict"; + + function r(e) { + var t = this; + this.next = null, this.entry = null, this.finish = function() { + ! function(e, t, n) { + var r = e.entry; + for (e.entry = null; r;) { + var o = r.callback; + t.pendingcb--, o(undefined), r = r.next + } + t.corkedRequestsFree.next = e + }(t, e) + } + } + var o; + e.exports = x, x.WritableState = j; + var i, s = { + deprecate: n(9911) + }, + a = n(2266), + c = n(4300).Buffer, + u = global.Uint8Array || function() {}, + l = n(7640), + d = n(5985).getHighWaterMark, + p = n(461).q, + h = p.ERR_INVALID_ARG_TYPE, + m = p.ERR_METHOD_NOT_IMPLEMENTED, + f = p.ERR_MULTIPLE_CALLBACK, + g = p.ERR_STREAM_CANNOT_PIPE, + y = p.ERR_STREAM_DESTROYED, + _ = p.ERR_STREAM_NULL_VALUES, + v = p.ERR_STREAM_WRITE_AFTER_END, + b = p.ERR_UNKNOWN_ENCODING, + k = l.errorOrDestroy; + + function w() {} + + function j(e, t, i) { + o = o || n(4439), e = e || {}, "boolean" != typeof i && (i = t instanceof o), this.objectMode = !!e.objectMode, i && (this.objectMode = this.objectMode || !!e.writableObjectMode), this.highWaterMark = d(this, e, "writableHighWaterMark", i), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; + var s = !1 === e.decodeStrings; + this.decodeStrings = !s, this.defaultEncoding = e.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(e) { + ! function(e, t) { + var n = e._writableState, + r = n.sync, + o = n.writecb; + if ("function" != typeof o) throw new f; + if (function(e) { + e.writing = !1, e.writecb = null, e.length -= e.writelen, e.writelen = 0 + }(n), t) ! function(e, t, n, r, o) { + --t.pendingcb, n ? (process.nextTick(o, r), process.nextTick(I, e, t), e._writableState.errorEmitted = !0, k(e, r)) : (o(r), e._writableState.errorEmitted = !0, k(e, r), I(e, t)) + }(e, n, r, t, o); + else { + var i = T(n) || e.destroyed; + i || n.corked || n.bufferProcessing || !n.bufferedRequest || S(e, n), r ? process.nextTick(C, e, n, i, o) : C(e, n, i, o) + } + }(t, e) + }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = !1 !== e.emitClose, this.autoDestroy = !!e.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new r(this) + } + + function x(e) { + var t = this instanceof(o = o || n(4439)); + if (!t && !i.call(x, this)) return new x(e); + this._writableState = new j(e, this, t), this.writable = !0, e && ("function" == typeof e.write && (this._write = e.write), "function" == typeof e.writev && (this._writev = e.writev), "function" == typeof e.destroy && (this._destroy = e.destroy), "function" == typeof e.final && (this._final = e.final)), a.call(this) + } + + function E(e, t, n, r, o, i, s) { + t.writelen = r, t.writecb = s, t.writing = !0, t.sync = !0, t.destroyed ? t.onwrite(new y("write")) : n ? e._writev(o, t.onwrite) : e._write(o, i, t.onwrite), t.sync = !1 + } + + function C(e, t, n, r) { + n || function(e, t) { + 0 === t.length && t.needDrain && (t.needDrain = !1, e.emit("drain")) + }(e, t), t.pendingcb--, r(), I(e, t) + } + + function S(e, t) { + t.bufferProcessing = !0; + var n = t.bufferedRequest; + if (e._writev && n && n.next) { + var o = t.bufferedRequestCount, + i = new Array(o), + s = t.corkedRequestsFree; + s.entry = n; + for (var a = 0, c = !0; n;) i[a] = n, n.isBuf || (c = !1), n = n.next, a += 1; + i.allBuffers = c, E(e, t, !0, t.length, i, "", s.finish), t.pendingcb++, t.lastBufferedRequest = null, s.next ? (t.corkedRequestsFree = s.next, s.next = null) : t.corkedRequestsFree = new r(t), t.bufferedRequestCount = 0 + } else { + for (; n;) { + var u = n.chunk, + l = n.encoding, + d = n.callback; + if (E(e, t, !1, t.objectMode ? 1 : u.length, u, l, d), n = n.next, t.bufferedRequestCount--, t.writing) break + } + null === n && (t.lastBufferedRequest = null) + } + t.bufferedRequest = n, t.bufferProcessing = !1 + } + + function T(e) { + return e.ending && 0 === e.length && null === e.bufferedRequest && !e.finished && !e.writing + } + + function P(e, t) { + e._final((function(n) { + t.pendingcb--, n && k(e, n), t.prefinished = !0, e.emit("prefinish"), I(e, t) + })) + } + + function I(e, t) { + var n = T(t); + if (n && (function(e, t) { + t.prefinished || t.finalCalled || ("function" != typeof e._final || t.destroyed ? (t.prefinished = !0, e.emit("prefinish")) : (t.pendingcb++, t.finalCalled = !0, process.nextTick(P, e, t))) + }(e, t), 0 === t.pendingcb && (t.finished = !0, e.emit("finish"), t.autoDestroy))) { + var r = e._readableState; + (!r || r.autoDestroy && r.endEmitted) && e.destroy() + } + return n + } + n(1800)(x, a), j.prototype.getBuffer = function() { + for (var e = this.bufferedRequest, t = []; e;) t.push(e), e = e.next; + return t + }, + function() { + try { + Object.defineProperty(j.prototype, "buffer", { + get: s.deprecate((function() { + return this.getBuffer() + }), "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") + }) + } catch (e) {} + }(), "function" == typeof Symbol && Symbol.hasInstance && "function" == typeof Function.prototype[Symbol.hasInstance] ? (i = Function.prototype[Symbol.hasInstance], Object.defineProperty(x, Symbol.hasInstance, { + value: function(e) { + return !!i.call(this, e) || this === x && e && e._writableState instanceof j + } + })) : i = function(e) { + return e instanceof this + }, x.prototype.pipe = function() { + k(this, new g) + }, x.prototype.write = function(e, t, n) { + var r, o = this._writableState, + i = !1, + s = !o.objectMode && (r = e, c.isBuffer(r) || r instanceof u); + return s && !c.isBuffer(e) && (e = function(e) { + return c.from(e) + }(e)), "function" == typeof t && (n = t, t = null), s ? t = "buffer" : t || (t = o.defaultEncoding), "function" != typeof n && (n = w), o.ending ? function(e, t) { + var n = new v; + k(e, n), process.nextTick(t, n) + }(this, n) : (s || function(e, t, n, r) { + var o; + return null === n ? o = new _ : "string" == typeof n || t.objectMode || (o = new h("chunk", ["string", "Buffer"], n)), !o || (k(e, o), process.nextTick(r, o), !1) + }(this, o, e, n)) && (o.pendingcb++, i = function(e, t, n, r, o, i) { + if (!n) { + var s = function(e, t, n) { + return e.objectMode || !1 === e.decodeStrings || "string" != typeof t || (t = c.from(t, n)), t + }(t, r, o); + r !== s && (n = !0, o = "buffer", r = s) + } + var a = t.objectMode ? 1 : r.length; + t.length += a; + var u = t.length < t.highWaterMark; + if (u || (t.needDrain = !0), t.writing || t.corked) { + var l = t.lastBufferedRequest; + t.lastBufferedRequest = { + chunk: r, + encoding: o, + isBuf: n, + callback: i, + next: null + }, l ? l.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, t.bufferedRequestCount += 1 + } else E(e, t, !1, a, r, o, i); + return u + }(this, o, s, e, t, n)), i + }, x.prototype.cork = function() { + this._writableState.corked++ + }, x.prototype.uncork = function() { + var e = this._writableState; + e.corked && (e.corked--, e.writing || e.corked || e.bufferProcessing || !e.bufferedRequest || S(this, e)) + }, x.prototype.setDefaultEncoding = function(e) { + if ("string" == typeof e && (e = e.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((e + "").toLowerCase()) > -1)) throw new b(e); + return this._writableState.defaultEncoding = e, this + }, Object.defineProperty(x.prototype, "writableBuffer", { + enumerable: !1, + get: function() { + return this._writableState && this._writableState.getBuffer() + } + }), Object.defineProperty(x.prototype, "writableHighWaterMark", { + enumerable: !1, + get: function() { + return this._writableState.highWaterMark + } + }), x.prototype._write = function(e, t, n) { + n(new m("_write()")) + }, x.prototype._writev = null, x.prototype.end = function(e, t, n) { + var r = this._writableState; + return "function" == typeof e ? (n = e, e = null, t = null) : "function" == typeof t && (n = t, t = null), null != e && this.write(e, t), r.corked && (r.corked = 1, this.uncork()), r.ending || function(e, t, n) { + t.ending = !0, I(e, t), n && (t.finished ? process.nextTick(n) : e.once("finish", n)), t.ended = !0, e.writable = !1 + }(this, r, n), this + }, Object.defineProperty(x.prototype, "writableLength", { + enumerable: !1, + get: function() { + return this._writableState.length + } + }), Object.defineProperty(x.prototype, "destroyed", { + enumerable: !1, + get: function() { + return void 0 !== this._writableState && this._writableState.destroyed + }, + set: function(e) { + this._writableState && (this._writableState.destroyed = e) + } + }), x.prototype.destroy = l.destroy, x.prototype._undestroy = l.undestroy, x.prototype._destroy = function(e, t) { + t(e) + } + }, + 4157: (e, t, n) => { + "use strict"; + var r; + + function o(e, t, n) { + return t in e ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = n, e + } + var i = n(5027), + s = Symbol("lastResolve"), + a = Symbol("lastReject"), + c = Symbol("error"), + u = Symbol("ended"), + l = Symbol("lastPromise"), + d = Symbol("handlePromise"), + p = Symbol("stream"); + + function h(e, t) { + return { + value: e, + done: t + } + } + + function m(e) { + var t = e[s]; + if (null !== t) { + var n = e[p].read(); + null !== n && (e[l] = null, e[s] = null, e[a] = null, t(h(n, !1))) + } + } + + function f(e) { + process.nextTick(m, e) + } + var g = Object.getPrototypeOf((function() {})), + y = Object.setPrototypeOf((o(r = { + get stream() { + return this[p] + }, + next: function() { + var e = this, + t = this[c]; + if (null !== t) return Promise.reject(t); + if (this[u]) return Promise.resolve(h(void 0, !0)); + if (this[p].destroyed) return new Promise((function(t, n) { + process.nextTick((function() { + e[c] ? n(e[c]) : t(h(void 0, !0)) + })) + })); + var n, r = this[l]; + if (r) n = new Promise(function(e, t) { + return function(n, r) { + e.then((function() { + t[u] ? n(h(void 0, !0)) : t[d](n, r) + }), r) + } + }(r, this)); + else { + var o = this[p].read(); + if (null !== o) return Promise.resolve(h(o, !1)); + n = new Promise(this[d]) + } + return this[l] = n, n + } + }, Symbol.asyncIterator, (function() { + return this + })), o(r, "return", (function() { + var e = this; + return new Promise((function(t, n) { + e[p].destroy(null, (function(e) { + e ? n(e) : t(h(void 0, !0)) + })) + })) + })), r), g); + e.exports = function(e) { + var t, n = Object.create(y, (o(t = {}, p, { + value: e, + writable: !0 + }), o(t, s, { + value: null, + writable: !0 + }), o(t, a, { + value: null, + writable: !0 + }), o(t, c, { + value: null, + writable: !0 + }), o(t, u, { + value: e._readableState.endEmitted, + writable: !0 + }), o(t, d, { + value: function(e, t) { + var r = n[p].read(); + r ? (n[l] = null, n[s] = null, n[a] = null, e(h(r, !1))) : (n[s] = e, n[a] = t) + }, + writable: !0 + }), t)); + return n[l] = null, i(e, (function(e) { + if (e && "ERR_STREAM_PREMATURE_CLOSE" !== e.code) { + var t = n[a]; + return null !== t && (n[l] = null, n[s] = null, n[a] = null, t(e)), void(n[c] = e) + } + var r = n[s]; + null !== r && (n[l] = null, n[s] = null, n[a] = null, r(h(void 0, !0))), n[u] = !0 + })), e.on("readable", f.bind(null, n)), n + } + }, + 7712: (e, t, n) => { + "use strict"; + + function r(e, t) { + var n = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(e); + t && (r = r.filter((function(t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + }))), n.push.apply(n, r) + } + return n + } + + function o(e, t, n) { + return t in e ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = n, e + } + + function i(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r) + } + } + var s = n(4300).Buffer, + a = n(3837).inspect, + c = a && a.custom || "inspect"; + e.exports = function() { + function e() { + ! function(e, t) { + if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") + }(this, e), this.head = null, this.tail = null, this.length = 0 + } + var t, n; + return t = e, n = [{ + key: "push", + value: function(e) { + var t = { + data: e, + next: null + }; + this.length > 0 ? this.tail.next = t : this.head = t, this.tail = t, ++this.length + } + }, { + key: "unshift", + value: function(e) { + var t = { + data: e, + next: this.head + }; + 0 === this.length && (this.tail = t), this.head = t, ++this.length + } + }, { + key: "shift", + value: function() { + if (0 !== this.length) { + var e = this.head.data; + return 1 === this.length ? this.head = this.tail = null : this.head = this.head.next, --this.length, e + } + } + }, { + key: "clear", + value: function() { + this.head = this.tail = null, this.length = 0 + } + }, { + key: "join", + value: function(e) { + if (0 === this.length) return ""; + for (var t = this.head, n = "" + t.data; t = t.next;) n += e + t.data; + return n + } + }, { + key: "concat", + value: function(e) { + if (0 === this.length) return s.alloc(0); + for (var t, n, r, o = s.allocUnsafe(e >>> 0), i = this.head, a = 0; i;) t = i.data, n = o, r = a, s.prototype.copy.call(t, n, r), a += i.data.length, i = i.next; + return o + } + }, { + key: "consume", + value: function(e, t) { + var n; + return e < this.head.data.length ? (n = this.head.data.slice(0, e), this.head.data = this.head.data.slice(e)) : n = e === this.head.data.length ? this.shift() : t ? this._getString(e) : this._getBuffer(e), n + } + }, { + key: "first", + value: function() { + return this.head.data + } + }, { + key: "_getString", + value: function(e) { + var t = this.head, + n = 1, + r = t.data; + for (e -= r.length; t = t.next;) { + var o = t.data, + i = e > o.length ? o.length : e; + if (i === o.length ? r += o : r += o.slice(0, e), 0 == (e -= i)) { + i === o.length ? (++n, t.next ? this.head = t.next : this.head = this.tail = null) : (this.head = t, t.data = o.slice(i)); + break + }++n + } + return this.length -= n, r + } + }, { + key: "_getBuffer", + value: function(e) { + var t = s.allocUnsafe(e), + n = this.head, + r = 1; + for (n.data.copy(t), e -= n.data.length; n = n.next;) { + var o = n.data, + i = e > o.length ? o.length : e; + if (o.copy(t, t.length - e, 0, i), 0 == (e -= i)) { + i === o.length ? (++r, n.next ? this.head = n.next : this.head = this.tail = null) : (this.head = n, n.data = o.slice(i)); + break + }++r + } + return this.length -= r, t + } + }, { + key: c, + value: function(e, t) { + return a(this, function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}; + t % 2 ? r(Object(n), !0).forEach((function(t) { + o(e, t, n[t]) + })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r(Object(n)).forEach((function(t) { + Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) + })) + } + return e + }({}, t, { + depth: 0, + customInspect: !1 + })) + } + }], n && i(t.prototype, n), e + }() + }, + 7640: e => { + "use strict"; + + function t(e, t) { + r(e, t), n(e) + } + + function n(e) { + e._writableState && !e._writableState.emitClose || e._readableState && !e._readableState.emitClose || e.emit("close") + } + + function r(e, t) { + e.emit("error", t) + } + e.exports = { + destroy: function(e, o) { + var i = this, + s = this._readableState && this._readableState.destroyed, + a = this._writableState && this._writableState.destroyed; + return s || a ? (o ? o(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, process.nextTick(r, this, e)) : process.nextTick(r, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, (function(e) { + !o && e ? i._writableState ? i._writableState.errorEmitted ? process.nextTick(n, i) : (i._writableState.errorEmitted = !0, process.nextTick(t, i, e)) : process.nextTick(t, i, e) : o ? (process.nextTick(n, i), o(e)) : process.nextTick(n, i) + })), this) + }, + undestroy: function() { + this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1) + }, + errorOrDestroy: function(e, t) { + var n = e._readableState, + r = e._writableState; + n && n.autoDestroy || r && r.autoDestroy ? e.destroy(t) : e.emit("error", t) + } + } + }, + 5027: (e, t, n) => { + "use strict"; + var r = n(461).q.ERR_STREAM_PREMATURE_CLOSE; + + function o() {} + e.exports = function e(t, n, i) { + if ("function" == typeof n) return e(t, null, n); + n || (n = {}), i = function(e) { + var t = !1; + return function() { + if (!t) { + t = !0; + for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++) r[o] = arguments[o]; + e.apply(this, r) + } + } + }(i || o); + var s = n.readable || !1 !== n.readable && t.readable, + a = n.writable || !1 !== n.writable && t.writable, + c = function() { + t.writable || l() + }, + u = t._writableState && t._writableState.finished, + l = function() { + a = !1, u = !0, s || i.call(t) + }, + d = t._readableState && t._readableState.endEmitted, + p = function() { + s = !1, d = !0, a || i.call(t) + }, + h = function(e) { + i.call(t, e) + }, + m = function() { + var e; + return s && !d ? (t._readableState && t._readableState.ended || (e = new r), i.call(t, e)) : a && !u ? (t._writableState && t._writableState.ended || (e = new r), i.call(t, e)) : void 0 + }, + f = function() { + t.req.on("finish", l) + }; + return function(e) { + return e.setHeader && "function" == typeof e.abort + }(t) ? (t.on("complete", l), t.on("abort", m), t.req ? f() : t.on("request", f)) : a && !t._writableState && (t.on("end", c), t.on("close", c)), t.on("end", p), t.on("finish", l), !1 !== n.error && t.on("error", h), t.on("close", m), + function() { + t.removeListener("complete", l), t.removeListener("abort", m), t.removeListener("request", f), t.req && t.req.removeListener("finish", l), t.removeListener("end", c), t.removeListener("close", c), t.removeListener("finish", l), t.removeListener("end", p), t.removeListener("error", h), t.removeListener("close", m) + } + } + }, + 6963: (e, t, n) => { + "use strict"; + + function r(e, t, n, r, o, i, s) { + try { + var a = e[i](s), + c = a.value + } catch (e) { + return void n(e) + } + a.done ? t(c) : Promise.resolve(c).then(r, o) + } + + function o(e) { + return function() { + var t = this, + n = arguments; + return new Promise((function(o, i) { + var s = e.apply(t, n); + + function a(e) { + r(s, o, i, a, c, "next", e) + } + + function c(e) { + r(s, o, i, a, c, "throw", e) + } + a(void 0) + })) + } + } + + function i(e, t) { + var n = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var r = Object.getOwnPropertySymbols(e); + t && (r = r.filter((function(t) { + return Object.getOwnPropertyDescriptor(e, t).enumerable + }))), n.push.apply(n, r) + } + return n + } + + function s(e, t, n) { + return t in e ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = n, e + } + var a = n(461).q.ERR_INVALID_ARG_TYPE; + e.exports = function(e, t, n) { + var r; + if (t && "function" == typeof t.next) r = t; + else if (t && t[Symbol.asyncIterator]) r = t[Symbol.asyncIterator](); + else { + if (!t || !t[Symbol.iterator]) throw new a("iterable", ["Iterable"], t); + r = t[Symbol.iterator]() + } + var c = new e(function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = null != arguments[t] ? arguments[t] : {}; + t % 2 ? i(Object(n), !0).forEach((function(t) { + s(e, t, n[t]) + })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i(Object(n)).forEach((function(t) { + Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)) + })) + } + return e + }({ + objectMode: !0 + }, n)), + u = !1; + + function l() { + return d.apply(this, arguments) + } + + function d() { + return (d = o((function*() { + try { + var e = yield r.next(), t = e.value; + e.done ? c.push(null) : c.push(yield t) ? l() : u = !1 + } catch (e) { + c.destroy(e) + } + }))).apply(this, arguments) + } + return c._read = function() { + u || (u = !0, l()) + }, c + } + }, + 410: (e, t, n) => { + "use strict"; + var r, o = n(461).q, + i = o.ERR_MISSING_ARGS, + s = o.ERR_STREAM_DESTROYED; + + function a(e) { + if (e) throw e + } + + function c(e, t, o, i) { + i = function(e) { + var t = !1; + return function() { + t || (t = !0, e.apply(void 0, arguments)) + } + }(i); + var a = !1; + e.on("close", (function() { + a = !0 + })), void 0 === r && (r = n(5027)), r(e, { + readable: t, + writable: o + }, (function(e) { + if (e) return i(e); + a = !0, i() + })); + var c = !1; + return function(t) { + if (!a && !c) return c = !0, + function(e) { + return e.setHeader && "function" == typeof e.abort + }(e) ? e.abort() : "function" == typeof e.destroy ? e.destroy() : void i(t || new s("pipe")) + } + } + + function u(e) { + e() + } + + function l(e, t) { + return e.pipe(t) + } + + function d(e) { + return e.length ? "function" != typeof e[e.length - 1] ? a : e.pop() : a + } + e.exports = function() { + for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; + var r, o = d(t); + if (Array.isArray(t[0]) && (t = t[0]), t.length < 2) throw new i("streams"); + var s = t.map((function(e, n) { + var i = n < t.length - 1; + return c(e, i, n > 0, (function(e) { + r || (r = e), e && s.forEach(u), i || (s.forEach(u), o(r)) + })) + })); + return t.reduce(l) + } + }, + 5985: (e, t, n) => { + "use strict"; + var r = n(461).q.ERR_INVALID_OPT_VALUE; + e.exports = { + getHighWaterMark: function(e, t, n, o) { + var i = function(e, t, n) { + return null != e.highWaterMark ? e.highWaterMark : t ? e[n] : null + }(t, o, n); + if (null != i) { + if (!isFinite(i) || Math.floor(i) !== i || i < 0) throw new r(o ? n : "highWaterMark", i); + return Math.floor(i) + } + return e.objectMode ? 16 : 16384 + } + } + }, + 2266: (e, t, n) => { + e.exports = n(2781) + }, + 4669: (e, t, n) => { + var r = n(2781); + "disable" === process.env.READABLE_STREAM && r ? (e.exports = r.Readable, Object.assign(e.exports, r), e.exports.Stream = r) : ((t = e.exports = n(5327)).Stream = r || t, t.Readable = t, t.Writable = n(4567), t.Duplex = n(4439), t.Transform = n(2175), t.PassThrough = n(3754), t.finished = n(5027), t.pipeline = n(410)) + }, + 7172: (e, t, n) => { + var r = n(4300), + o = r.Buffer; + + function i(e, t) { + for (var n in e) t[n] = e[n] + } + + function s(e, t, n) { + return o(e, t, n) + } + o.from && o.alloc && o.allocUnsafe && o.allocUnsafeSlow ? e.exports = r : (i(r, t), t.Buffer = s), s.prototype = Object.create(o.prototype), i(o, s), s.from = function(e, t, n) { + if ("number" == typeof e) throw new TypeError("Argument must not be a number"); + return o(e, t, n) + }, s.alloc = function(e, t, n) { + if ("number" != typeof e) throw new TypeError("Argument must be a number"); + var r = o(e); + return void 0 !== t ? "string" == typeof n ? r.fill(t, n) : r.fill(t) : r.fill(0), r + }, s.allocUnsafe = function(e) { + if ("number" != typeof e) throw new TypeError("Argument must be a number"); + return o(e) + }, s.allocUnsafeSlow = function(e) { + if ("number" != typeof e) throw new TypeError("Argument must be a number"); + return r.SlowBuffer(e) + } + }, + 4403: e => { + "use strict"; + + function t(e) { + return "function" == typeof e + } + var n = console.error.bind(console); + + function r(e, t, n) { + var r = !!e[t] && e.propertyIsEnumerable(t); + Object.defineProperty(e, t, { + configurable: !0, + enumerable: r, + writable: !0, + value: n + }) + } + + function o(e) { + e && e.logger && (t(e.logger) ? n = e.logger : n("new logger isn't a function, not replacing")) + } + + function i(e, o, i) { + if (e && e[o]) { + if (!i) return n("no wrapper function"), void n((new Error).stack); + if (t(e[o]) && t(i)) { + var s = e[o], + a = i(s, o); + return r(a, "__original", s), r(a, "__unwrap", (function() { + e[o] === a && r(e, o, s) + })), r(a, "__wrapped", !0), r(e, o, a), a + } + n("original object and wrapper must be functions") + } else n("no original function " + o + " to wrap") + } + + function s(e, t) { + return e && e[t] ? e[t].__unwrap ? e[t].__unwrap() : void n("no original to unwrap to -- has " + t + " already been unwrapped?") : (n("no function to unwrap."), void n((new Error).stack)) + } + o.wrap = i, o.massWrap = function(e, t, r) { + if (!e) return n("must provide one or more modules to patch"), void n((new Error).stack); + Array.isArray(e) || (e = [e]), t && Array.isArray(t) ? e.forEach((function(e) { + t.forEach((function(t) { + i(e, t, r) + })) + })) : n("must provide one or more functions to wrap on modules") + }, o.unwrap = s, o.massUnwrap = function(e, t) { + if (!e) return n("must provide one or more modules to patch"), void n((new Error).stack); + Array.isArray(e) || (e = [e]), t && Array.isArray(t) ? e.forEach((function(e) { + t.forEach((function(t) { + s(e, t) + })) + })) : n("must provide one or more functions to unwrap on modules") + }, e.exports = o + }, + 3031: e => { + e.exports = function(e, t) { + var n = []; + n.push(function(e) { + try { + return Error.prototype.toString.call(e) + } catch (e) { + try { + return "" + } catch (e) { + return "" + } + } + }(e)); + for (var r = 0; r < t.length; r++) { + var o, i = t[r]; + try { + o = i.toString() + } catch (e) { + try { + o = "" + } catch (e) { + o = "" + } + } + n.push(" at " + o) + } + return n.join("\n") + } + }, + 6818: (e, t, n) => { + if (global._stackChain) { + if (global._stackChain.version !== n(735).i8) throw new Error("Conflicting version of stack-chain found"); + e.exports = global._stackChain + } else e.exports = global._stackChain = n(2396) + }, + 2396: (e, t, n) => { + var r = n(3031); + + function o() { + this.extend = new a, this.filter = new a, this.format = new c, this.version = n(735).i8 + } + var i = !1; + o.prototype.callSite = function e(t) { + t || (t = {}), i = !0; + var n = {}; + Error.captureStackTrace(n, e); + var r = n.stack; + return i = !1, r = r.slice(t.slice || 0), t.extend && (r = this.extend._modify(n, r)), t.filter && (r = this.filter._modify(n, r)), r + }; + var s = new o; + + function a() { + this._modifiers = [] + } + + function c() { + this._formater = r, this._previous = void 0 + } + a.prototype._modify = function(e, t) { + for (var n = 0, r = this._modifiers.length; n < r; n++) t = this._modifiers[n](e, t); + return t + }, a.prototype.attach = function(e) { + this._modifiers.push(e) + }, a.prototype.deattach = function(e) { + var t = this._modifiers.indexOf(e); + return -1 !== t && (this._modifiers.splice(t, 1), !0) + }, c.prototype.replace = function(e) { + e ? this._formater = e : this.restore() + }, c.prototype.restore = function() { + this._formater = r, this._previous = void 0 + }, c.prototype._backup = function() { + this._previous = this._formater + }, c.prototype._roolback = function() { + this._previous === r ? this.replace(void 0) : this.replace(this._previous), this._previous = void 0 + }, Error.prepareStackTrace && s.format.replace(Error.prepareStackTrace); + var u = !1; + + function l(e, t) { + if (i) return t; + if (u) return r(e, t); + var n = t.concat(); + n = s.extend._modify(e, n), n = (n = s.filter._modify(e, n)).slice(0, Error.stackTraceLimit), Object.isExtensible(e) && void 0 === Object.getOwnPropertyDescriptor(e, "callSite") && (e.callSite = { + original: t, + mutated: n + }), u = !0; + var o = s.format._formater(e, n); + return u = !1, o + } + Object.defineProperty(Error, "prepareStackTrace", { + get: function() { + return l + }, + set: function(e) { + e === l ? s.format._roolback() : (s.format._backup(), s.format.replace(e)) + } + }), Object.defineProperty(Error.prototype, "callSite", { + get: function() { + return this.stack, this.callSite + }, + set: function(e) { + Object.defineProperty(this, "callSite", { + value: e, + writable: !0, + configurable: !0 + }) + }, + configurable: !0 + }), e.exports = s + }, + 4361: (e, t, n) => { + "use strict"; + var r = n(7172).Buffer, + o = r.isEncoding || function(e) { + switch ((e = "" + e) && e.toLowerCase()) { + case "hex": + case "utf8": + case "utf-8": + case "ascii": + case "binary": + case "base64": + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + case "raw": + return !0; + default: + return !1 + } + }; + + function i(e) { + var t; + switch (this.encoding = function(e) { + var t = function(e) { + if (!e) return "utf8"; + for (var t;;) switch (e) { + case "utf8": + case "utf-8": + return "utf8"; + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return "utf16le"; + case "latin1": + case "binary": + return "latin1"; + case "base64": + case "ascii": + case "hex": + return e; + default: + if (t) return; + e = ("" + e).toLowerCase(), t = !0 + } + }(e); + if ("string" != typeof t && (r.isEncoding === o || !o(e))) throw new Error("Unknown encoding: " + e); + return t || e + }(e), this.encoding) { + case "utf16le": + this.text = c, this.end = u, t = 4; + break; + case "utf8": + this.fillLast = a, t = 4; + break; + case "base64": + this.text = l, this.end = d, t = 3; + break; + default: + return this.write = p, void(this.end = h) + } + this.lastNeed = 0, this.lastTotal = 0, this.lastChar = r.allocUnsafe(t) + } + + function s(e) { + return e <= 127 ? 0 : e >> 5 == 6 ? 2 : e >> 4 == 14 ? 3 : e >> 3 == 30 ? 4 : e >> 6 == 2 ? -1 : -2 + } + + function a(e) { + var t = this.lastTotal - this.lastNeed, + n = function(e, t, n) { + if (128 != (192 & t[0])) return e.lastNeed = 0, "�"; + if (e.lastNeed > 1 && t.length > 1) { + if (128 != (192 & t[1])) return e.lastNeed = 1, "�"; + if (e.lastNeed > 2 && t.length > 2 && 128 != (192 & t[2])) return e.lastNeed = 2, "�" + } + }(this, e); + return void 0 !== n ? n : this.lastNeed <= e.length ? (e.copy(this.lastChar, t, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (e.copy(this.lastChar, t, 0, e.length), void(this.lastNeed -= e.length)) + } + + function c(e, t) { + if ((e.length - t) % 2 == 0) { + var n = e.toString("utf16le", t); + if (n) { + var r = n.charCodeAt(n.length - 1); + if (r >= 55296 && r <= 56319) return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = e[e.length - 2], this.lastChar[1] = e[e.length - 1], n.slice(0, -1) + } + return n + } + return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = e[e.length - 1], e.toString("utf16le", t, e.length - 1) + } + + function u(e) { + var t = e && e.length ? this.write(e) : ""; + if (this.lastNeed) { + var n = this.lastTotal - this.lastNeed; + return t + this.lastChar.toString("utf16le", 0, n) + } + return t + } + + function l(e, t) { + var n = (e.length - t) % 3; + return 0 === n ? e.toString("base64", t) : (this.lastNeed = 3 - n, this.lastTotal = 3, 1 === n ? this.lastChar[0] = e[e.length - 1] : (this.lastChar[0] = e[e.length - 2], this.lastChar[1] = e[e.length - 1]), e.toString("base64", t, e.length - n)) + } + + function d(e) { + var t = e && e.length ? this.write(e) : ""; + return this.lastNeed ? t + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : t + } + + function p(e) { + return e.toString(this.encoding) + } + + function h(e) { + return e && e.length ? this.write(e) : "" + } + t.s = i, i.prototype.write = function(e) { + if (0 === e.length) return ""; + var t, n; + if (this.lastNeed) { + if (void 0 === (t = this.fillLast(e))) return ""; + n = this.lastNeed, this.lastNeed = 0 + } else n = 0; + return n < e.length ? t ? t + this.text(e, n) : this.text(e, n) : t || "" + }, i.prototype.end = function(e) { + var t = e && e.length ? this.write(e) : ""; + return this.lastNeed ? t + "�" : t + }, i.prototype.text = function(e, t) { + var n = function(e, t, n) { + var r = t.length - 1; + if (r < n) return 0; + var o = s(t[r]); + return o >= 0 ? (o > 0 && (e.lastNeed = o - 1), o) : --r < n || -2 === o ? 0 : (o = s(t[r])) >= 0 ? (o > 0 && (e.lastNeed = o - 2), o) : --r < n || -2 === o ? 0 : (o = s(t[r])) >= 0 ? (o > 0 && (2 === o ? o = 0 : e.lastNeed = o - 3), o) : 0 + }(this, e, t); + if (!this.lastNeed) return e.toString("utf8", t); + this.lastTotal = n; + var r = e.length - (n - this.lastNeed); + return e.copy(this.lastChar, 0, r), e.toString("utf8", t, r) + }, i.prototype.fillLast = function(e) { + if (this.lastNeed <= e.length) return e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal); + e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, e.length), this.lastNeed -= e.length + } + }, + 6974: (e, t, n) => { + "use strict"; + const r = n(2037), + o = n(1875), + i = process.env; + let s; + + function a(e) { + const t = function(e) { + if (!1 === s) return 0; + if (o("color=16m") || o("color=full") || o("color=truecolor")) return 3; + if (o("color=256")) return 2; + if (e && !e.isTTY && !0 !== s) return 0; + const t = s ? 1 : 0; + if ("win32" === process.platform) { + const e = r.release().split("."); + return Number(process.versions.node.split(".")[0]) >= 8 && Number(e[0]) >= 10 && Number(e[2]) >= 10586 ? Number(e[2]) >= 14931 ? 3 : 2 : 1 + } + if ("CI" in i) return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((e => e in i)) || "codeship" === i.CI_NAME ? 1 : t; + if ("TEAMCITY_VERSION" in i) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION) ? 1 : 0; + if ("truecolor" === i.COLORTERM) return 3; + if ("TERM_PROGRAM" in i) { + const e = parseInt((i.TERM_PROGRAM_VERSION || "").split(".")[0], 10); + switch (i.TERM_PROGRAM) { + case "iTerm.app": + return e >= 3 ? 3 : 2; + case "Apple_Terminal": + return 2 + } + } + return /-256(color)?$/i.test(i.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM) || "COLORTERM" in i ? 1 : (i.TERM, t) + }(e); + return function(e) { + return 0 !== e && { + level: e, + hasBasic: !0, + has256: e >= 2, + has16m: e >= 3 + } + }(t) + } + o("no-color") || o("no-colors") || o("color=false") ? s = !1 : (o("color") || o("colors") || o("color=true") || o("color=always")) && (s = !0), "FORCE_COLOR" in i && (s = 0 === i.FORCE_COLOR.length || 0 !== parseInt(i.FORCE_COLOR, 10)), e.exports = { + supportsColor: a, + stdout: a(process.stdout), + stderr: a(process.stderr) + } + }, + 7084: e => { + "use strict"; + + function t(e, t, n, r) { + this.resolve = e, this.fn = t, this.self = n || null, this.args = r + } + + function n() { + this._s1 = [], this._s2 = [] + } + e.exports = function(r) { + var o; + + function i(e, r) { + var i = new n; + + function s(n, r, s) { + if (e) { + e--; + var c = new o((function(e) { + e(n.apply(r, s)) + })); + return c.then(a, a), c + } + return new o((function(e) { + i.push(new t(e, n, r, s)) + })) + } + + function a() { + if (e++, !i.isEmpty()) { + var t = i.shift(); + t.resolve(s(t.fn, t.self, t.args)) + } + } + if ("function" == typeof e) { + var c = r; + r = e, e = c + } + if ("number" != typeof e) throw new TypeError("Expected throat size to be a number but got " + typeof e); + if (void 0 !== r && "function" != typeof r) throw new TypeError("Expected throat fn to be a function but got " + typeof r); + return "function" == typeof r ? function() { + for (var e = [], t = 0; t < arguments.length; t++) e.push(arguments[t]); + return s(r, this, e) + } : function(e) { + if ("function" != typeof e) throw new TypeError("Expected throat fn to be a function but got " + typeof e); + for (var t = [], n = 1; n < arguments.length; n++) t.push(arguments[n]); + return s(e, this, t) + } + } + if (1 === arguments.length && "function" == typeof r) return o = r, i; + if ("function" != typeof(o = e.exports.Promise)) throw new Error("You must provide a Promise polyfill for this library to work in older environments"); + return i(arguments[0], arguments[1]) + }, e.exports.default = e.exports, "function" == typeof Promise && (e.exports.Promise = Promise), n.prototype.push = function(e) { + this._s1.push(e) + }, n.prototype.shift = function() { + var e = this._s2; + if (0 === e.length) { + var t = this._s1; + if (0 === t.length) return; + this._s1 = e, e = this._s2 = t.reverse() + } + return e.pop() + }, n.prototype.isEmpty = function() { + return !this._s1.length && !this._s2.length + } + }, + 2953: (e, t, n) => { + const { + Transform: r + } = n(4669); + + function o(e) { + return (t, n, r) => ("function" == typeof t && (r = n, n = t, t = {}), "function" != typeof n && (n = (e, t, n) => n(null, e)), "function" != typeof r && (r = null), e(t, n, r)) + } + const i = o(((e, t, n) => { + const o = new r(e); + return o._transform = t, n && (o._flush = n), o + })), + s = o(((e, t, n) => { + function o(i) { + if (!(this instanceof o)) return new o(i); + this.options = Object.assign({}, e, i), r.call(this, this.options), this._transform = t, n && (this._flush = n) + } + var i, s; + return s = r, (i = o).super_ = s, i.prototype = Object.create(s.prototype, { + constructor: { + value: i, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), o + })), + a = o((function(e, t, n) { + const o = new r(Object.assign({ + objectMode: !0, + highWaterMark: 16 + }, e)); + return o._transform = t, n && (o._flush = n), o + })); + e.exports = i, e.exports.ctor = s, e.exports.obj = a + }, + 7540: (e, t, n) => { + var r = n(4300).Buffer; + e.exports = function(e) { + if (e instanceof Uint8Array) { + if (0 === e.byteOffset && e.byteLength === e.buffer.byteLength) return e.buffer; + if ("function" == typeof e.buffer.slice) return e.buffer.slice(e.byteOffset, e.byteOffset + e.byteLength) + } + if (r.isBuffer(e)) { + for (var t = new Uint8Array(e.length), n = e.length, o = 0; o < n; o++) t[o] = e[o]; + return t.buffer + } + throw new Error("Argument must be a Buffer") + } + }, + 7738: (e, t, n) => { + "use strict"; + const r = n(5477), + o = n(7310).parse, + i = n(3837), + s = n(5281), + a = n(7532).y, + c = n(5629).m, + u = n(3043).U, + l = n(822), + { + fromCallback: d + } = n(6767), + p = /^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/, + h = /[\x00-\x1F]/, + m = ["\n", "\r", "\0"], + f = /[\x20-\x3A\x3C-\x7E]+/, + g = /[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/, + y = { + jan: 0, + feb: 1, + mar: 2, + apr: 3, + may: 4, + jun: 5, + jul: 6, + aug: 7, + sep: 8, + oct: 9, + nov: 10, + dec: 11 + }, + _ = 2147483647e3, + v = 'Invalid sameSiteContext option for getCookies(); expected one of "strict", "lax", or "none"'; + + function b(e) { + const t = String(e).toLowerCase(); + return "none" === t || "lax" === t || "strict" === t ? t : null + } + const k = Object.freeze({ + SILENT: "silent", + STRICT: "strict", + DISABLED: "unsafe-disabled" + }); + var w = /(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-f\d]{1,4}:){7}(?:[a-f\d]{1,4}|:)|(?:[a-f\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-f\d]{1,4}|:)|(?:[a-f\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,2}|:)|(?:[a-f\d]{1,4}:){4}(?:(?::[a-f\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,3}|:)|(?:[a-f\d]{1,4}:){3}(?:(?::[a-f\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,4}|:)|(?:[a-f\d]{1,4}:){2}(?:(?::[a-f\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,5}|:)|(?:[a-f\d]{1,4}:){1}(?:(?::[a-f\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,6}|:)|(?::(?:(?::[a-f\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,7}|:)))$)/; + + function j(e, t, n, r) { + let o = 0; + for (; o < e.length;) { + const t = e.charCodeAt(o); + if (t <= 47 || t >= 58) break; + o++ + } + return o < t || o > n ? null : r || o == e.length ? parseInt(e.substr(0, o), 10) : null + } + + function x(e) { + const t = e.split(":"), + n = [0, 0, 0]; + if (3 !== t.length) return null; + for (let e = 0; e < 3; e++) { + const r = 2 == e, + o = j(t[e], 1, 2, r); + if (null === o) return null; + n[e] = o + } + return n + } + + function E(e) { + e = String(e).substr(0, 3).toLowerCase(); + const t = y[e]; + return t >= 0 ? t : null + } + + function C(e) { + if (!e) return; + const t = e.split(g); + if (!t) return; + let n = null, + r = null, + o = null, + i = null, + s = null, + a = null; + for (let e = 0; e < t.length; e++) { + const c = t[e].trim(); + if (!c.length) continue; + let u; + null === o && (u = x(c), u) ? (n = u[0], r = u[1], o = u[2]) : null !== i || (u = j(c, 1, 2, !0), null === u) ? null !== s || (u = E(c), null === u) ? null === a && (u = j(c, 2, 4, !0), null !== u && (a = u, a >= 70 && a <= 99 ? a += 1900 : a >= 0 && a <= 69 && (a += 2e3))) : s = u : i = u + } + return null === i || null === s || null === a || null === o || i < 1 || i > 31 || a < 1601 || n > 23 || r > 59 || o > 59 ? void 0 : new Date(Date.UTC(a, s, i, n, r, o)) + } + + function S(e) { + return e.toUTCString() + } + + function T(e) { + return null == e ? null : (e = e.trim().replace(/^\./, ""), r && /[^\u0001-\u007f]/.test(e) && (e = r.toASCII(e)), e.toLowerCase()) + } + + function P(e, t, n) { + if (null == e || null == t) return null; + if (!1 !== n && (e = T(e), t = T(t)), e == t) return !0; + const r = e.indexOf(t); + return !(r <= 0 || e.length !== t.length + r || "." !== e.substr(r - 1, 1) || w.test(e)) + } + + function I(e) { + if (!e || "/" !== e.substr(0, 1)) return "/"; + if ("/" === e) return e; + const t = e.lastIndexOf("/"); + return 0 === t ? "/" : e.slice(0, t) + } + + function R(e, t) { + t && "object" == typeof t || (t = {}); + const n = (e = e.trim()).indexOf(";"), + r = function(e, t) { + let n, r, o = (e = function(e) { + for (let t = 0; t < m.length; t++) { + const n = e.indexOf(m[t]); - 1 !== n && (e = e.substr(0, n)) + } + return e + }(e)).indexOf("="); + if (t) 0 === o && (o = (e = e.substr(1)).indexOf("=")); + else if (o <= 0) return; + if (o <= 0 ? (n = "", r = e.trim()) : (n = e.substr(0, o).trim(), r = e.substr(o + 1).trim()), h.test(n) || h.test(r)) return; + const i = new q; + return i.key = n, i.value = r, i + }(-1 === n ? e : e.substr(0, n), !!t.loose); + if (!r) return; + if (-1 === n) return r; + const o = e.slice(n + 1).trim(); + if (0 === o.length) return r; + const i = o.split(";"); + for (; i.length;) { + const e = i.shift().trim(); + if (0 === e.length) continue; + const t = e.indexOf("="); + let n, o; + switch (-1 === t ? (n = e, o = null) : (n = e.substr(0, t), o = e.substr(t + 1)), n = n.trim().toLowerCase(), o && (o = o.trim()), n) { + case "expires": + if (o) { + const e = C(o); + e && (r.expires = e) + } + break; + case "max-age": + if (o && /^-?[0-9]+$/.test(o)) { + const e = parseInt(o, 10); + r.setMaxAge(e) + } + break; + case "domain": + if (o) { + const e = o.trim().replace(/^\./, ""); + e && (r.domain = e.toLowerCase()) + } + break; + case "path": + r.path = o && "/" === o[0] ? o : null; + break; + case "secure": + r.secure = !0; + break; + case "httponly": + r.httpOnly = !0; + break; + case "samesite": + switch (o ? o.toLowerCase() : "") { + case "strict": + r.sameSite = "strict"; + break; + case "lax": + r.sameSite = "lax" + } + break; + default: + r.extensions = r.extensions || [], r.extensions.push(e) + } + } + return r + } + + function O(e) { + let t; + try { + t = JSON.parse(e) + } catch (e) { + return e + } + return t + } + + function A(e) { + if (!e) return null; + let t; + if ("string" == typeof e) { + if (t = O(e), t instanceof Error) return null + } else t = e; + const n = new q; + for (let e = 0; e < q.serializableProperties.length; e++) { + const r = q.serializableProperties[e]; + void 0 !== t[r] && t[r] !== M[r] && ("expires" === r || "creation" === r || "lastAccessed" === r ? null === t[r] ? n[r] = null : n[r] = "Infinity" == t[r] ? "Infinity" : new Date(t[r]) : n[r] = t[r]) + } + return n + } + + function N(e, t) { + let n = 0; + const r = e.path ? e.path.length : 0; + return n = (t.path ? t.path.length : 0) - r, 0 !== n || (n = (e.creation ? e.creation.getTime() : _) - (t.creation ? t.creation.getTime() : _), 0 !== n || (n = e.creationIndex - t.creationIndex)), n + } + + function D(e) { + if (e instanceof Object) return e; + try { + e = decodeURI(e) + } catch (e) {} + return o(e) + } + const M = { + key: "", + value: "", + expires: "Infinity", + maxAge: null, + domain: null, + path: null, + secure: !1, + httpOnly: !1, + extensions: null, + hostOnly: null, + pathIsDefault: null, + creation: null, + lastAccessed: null, + sameSite: "none" + }; + class q { + constructor(e = {}) { + i.inspect.custom && (this[i.inspect.custom] = this.inspect), Object.assign(this, M, e), this.creation = this.creation || new Date, Object.defineProperty(this, "creationIndex", { + configurable: !1, + enumerable: !1, + writable: !0, + value: ++q.cookiesCreated + }) + } + inspect() { + const e = Date.now(), + t = null != this.hostOnly ? this.hostOnly : "?", + n = this.creation ? e - this.creation.getTime() + "ms" : "?", + r = this.lastAccessed ? e - this.lastAccessed.getTime() + "ms" : "?"; + return `Cookie="${this.toString()}; hostOnly=${t}; aAge=${r}; cAge=${n}"` + } + toJSON() { + const e = {}; + for (const t of q.serializableProperties) this[t] !== M[t] && ("expires" === t || "creation" === t || "lastAccessed" === t ? null === this[t] ? e[t] = null : e[t] = "Infinity" == this[t] ? "Infinity" : this[t].toISOString() : "maxAge" === t ? null !== this[t] && (e[t] = this[t] == 1 / 0 || this[t] == -1 / 0 ? this[t].toString() : this[t]) : this[t] !== M[t] && (e[t] = this[t])); + return e + } + clone() { + return A(this.toJSON()) + } + validate() { + if (!p.test(this.value)) return !1; + if (!(this.expires == 1 / 0 || this.expires instanceof Date || C(this.expires))) return !1; + if (null != this.maxAge && this.maxAge <= 0) return !1; + if (null != this.path && !f.test(this.path)) return !1; + const e = this.cdomain(); + if (e) { + if (e.match(/\.$/)) return !1; + if (null == s.getPublicSuffix(e)) return !1 + } + return !0 + } + setExpires(e) { + e instanceof Date ? this.expires = e : this.expires = C(e) || "Infinity" + } + setMaxAge(e) { + this.maxAge = e === 1 / 0 || e === -1 / 0 ? e.toString() : e + } + cookieString() { + let e = this.value; + return null == e && (e = ""), "" === this.key ? e : `${this.key}=${e}` + } + toString() { + let e = this.cookieString(); + if (this.expires != 1 / 0 && (this.expires instanceof Date ? e += `; Expires=${S(this.expires)}` : e += `; Expires=${this.expires}`), null != this.maxAge && this.maxAge != 1 / 0 && (e += `; Max-Age=${this.maxAge}`), this.domain && !this.hostOnly && (e += `; Domain=${this.domain}`), this.path && (e += `; Path=${this.path}`), this.secure && (e += "; Secure"), this.httpOnly && (e += "; HttpOnly"), this.sameSite && "none" !== this.sameSite) { + const t = q.sameSiteCanonical[this.sameSite.toLowerCase()]; + e += `; SameSite=${t||this.sameSite}` + } + return this.extensions && this.extensions.forEach((t => { + e += `; ${t}` + })), e + } + TTL(e) { + if (null != this.maxAge) return this.maxAge <= 0 ? 0 : 1e3 * this.maxAge; + let t = this.expires; + return t != 1 / 0 ? (t instanceof Date || (t = C(t) || 1 / 0), t == 1 / 0 ? 1 / 0 : t.getTime() - (e || Date.now())) : 1 / 0 + } + expiryTime(e) { + if (null != this.maxAge) { + const t = e || this.creation || new Date, + n = this.maxAge <= 0 ? -1 / 0 : 1e3 * this.maxAge; + return t.getTime() + n + } + return this.expires == 1 / 0 ? 1 / 0 : this.expires.getTime() + } + expiryDate(e) { + const t = this.expiryTime(e); + return t == 1 / 0 ? new Date(_) : t == -1 / 0 ? new Date(0) : new Date(t) + } + isPersistent() { + return null != this.maxAge || this.expires != 1 / 0 + } + canonicalizedDomain() { + return null == this.domain ? null : T(this.domain) + } + cdomain() { + return this.canonicalizedDomain() + } + } + q.cookiesCreated = 0, q.parse = R, q.fromJSON = A, q.serializableProperties = Object.keys(M), q.sameSiteLevel = { + strict: 3, + lax: 2, + none: 1 + }, q.sameSiteCanonical = { + strict: "Strict", + lax: "Lax" + }; + class L { + constructor(e, t = { + rejectPublicSuffixes: !0 + }) { + "boolean" == typeof t && (t = { + rejectPublicSuffixes: t + }), this.rejectPublicSuffixes = t.rejectPublicSuffixes, this.enableLooseMode = !!t.looseMode, this.allowSpecialUseDomain = !!t.allowSpecialUseDomain, this.store = e || new c, this.prefixSecurity = function(e) { + if (null != e) { + const t = e.toLowerCase(); + switch (t) { + case k.STRICT: + case k.SILENT: + case k.DISABLED: + return t + } + } + return k.SILENT + }(t.prefixSecurity), this._cloneSync = $("clone"), this._importCookiesSync = $("_importCookies"), this.getCookiesSync = $("getCookies"), this.getCookieStringSync = $("getCookieString"), this.getSetCookieStringsSync = $("getSetCookieStrings"), this.removeAllCookiesSync = $("removeAllCookies"), this.setCookieSync = $("setCookie"), this.serializeSync = $("serialize") + } + setCookie(e, t, n, r) { + let o; + const i = D(t); + "function" == typeof n && (r = n, n = {}); + const a = T(i.hostname), + c = n.loose || this.enableLooseMode; + let u = null; + if (n.sameSiteContext && (u = b(n.sameSiteContext), !u)) return r(new Error(v)); + if ("string" == typeof e || e instanceof String) { + if (!(e = q.parse(e, { + loose: c + }))) return o = new Error("Cookie failed to parse"), r(n.ignoreError ? null : o) + } else if (!(e instanceof q)) return o = new Error("First argument to setCookie must be a Cookie object or string"), r(n.ignoreError ? null : o); + const l = n.now || new Date; + if (this.rejectPublicSuffixes && e.domain && null == s.getPublicSuffix(e.cdomain())) return o = new Error("Cookie has domain set to a public suffix"), r(n.ignoreError ? null : o); + if (e.domain) { + if (!P(a, e.cdomain(), !1)) return o = new Error(`Cookie not in this host's domain. Cookie:${e.cdomain()} Request:${a}`), r(n.ignoreError ? null : o); + null == e.hostOnly && (e.hostOnly = !1) + } else e.hostOnly = !0, e.domain = a; + if (e.path && "/" === e.path[0] || (e.path = I(i.pathname), e.pathIsDefault = !0), !1 === n.http && e.httpOnly) return o = new Error("Cookie is HttpOnly and this isn't an HTTP API"), r(n.ignoreError ? null : o); + if ("none" !== e.sameSite && u && "none" === u) return o = new Error("Cookie is SameSite but this is a cross-origin request"), r(n.ignoreError ? null : o); + const d = this.prefixSecurity === k.SILENT; + if (this.prefixSecurity !== k.DISABLED) { + let t, o = !1; + if (function(e) { + return !e.key.startsWith("__Secure-") || e.secure + }(e) ? function(e) { + return !e.key.startsWith("__Host-") || e.secure && e.hostOnly && null != e.path && "/" === e.path + }(e) || (o = !0, t = "Cookie has __Host prefix but either Secure or HostOnly attribute is not set or Path is not '/'") : (o = !0, t = "Cookie has __Secure prefix but Secure attribute is not set"), o) return r(n.ignoreError || d ? null : new Error(t)) + } + const p = this.store; + p.updateCookie || (p.updateCookie = function(e, t, n) { + this.putCookie(t, n) + }), p.findCookie(e.domain, e.path, e.key, (function(t, o) { + if (t) return r(t); + const i = function(t) { + if (t) return r(t); + r(null, e) + }; + if (o) { + if (!1 === n.http && o.httpOnly) return t = new Error("old Cookie is HttpOnly and this isn't an HTTP API"), r(n.ignoreError ? null : t); + e.creation = o.creation, e.creationIndex = o.creationIndex, e.lastAccessed = l, p.updateCookie(o, e, i) + } else e.creation = e.lastAccessed = l, p.putCookie(e, i) + })) + } + getCookies(e, t, n) { + const r = D(e); + "function" == typeof t && (n = t, t = {}); + const o = T(r.hostname), + i = r.pathname || "/"; + let s = t.secure; + null != s || !r.protocol || "https:" != r.protocol && "wss:" != r.protocol || (s = !0); + let a = 0; + if (t.sameSiteContext) { + const e = b(t.sameSiteContext); + if (a = q.sameSiteLevel[e], !a) return n(new Error(v)) + } + let c = t.http; + null == c && (c = !0); + const l = t.now || Date.now(), + d = !1 !== t.expire, + p = !!t.allPaths, + h = this.store; + + function m(e) { + if (e.hostOnly) { + if (e.domain != o) return !1 + } else if (!P(o, e.domain, !1)) return !1; + return !(!p && !u(i, e.path)) && (!(e.secure && !s) && (!(e.httpOnly && !c) && (!(a && q.sameSiteLevel[e.sameSite || "none"] > a) && !(d && e.expiryTime() <= l && (h.removeCookie(e.domain, e.path, e.key, (() => {})), 1))))) + } + h.findCookies(o, p ? null : i, this.allowSpecialUseDomain, ((e, r) => { + if (e) return n(e); + r = r.filter(m), !1 !== t.sort && (r = r.sort(N)); + const o = new Date; + for (const e of r) e.lastAccessed = o; + n(null, r) + })) + } + getCookieString(...e) { + const t = e.pop(); + e.push((function(e, n) { + e ? t(e) : t(null, n.sort(N).map((e => e.cookieString())).join("; ")) + })), this.getCookies.apply(this, e) + } + getSetCookieStrings(...e) { + const t = e.pop(); + e.push((function(e, n) { + e ? t(e) : t(null, n.map((e => e.toString()))) + })), this.getCookies.apply(this, e) + } + serialize(e) { + let t = this.store.constructor.name; + "Object" === t && (t = null); + const n = { + version: `tough-cookie@${l}`, + storeType: t, + rejectPublicSuffixes: !!this.rejectPublicSuffixes, + cookies: [] + }; + if (!this.store.getAllCookies || "function" != typeof this.store.getAllCookies) return e(new Error("store does not support getAllCookies and cannot be serialized")); + this.store.getAllCookies(((t, r) => t ? e(t) : (n.cookies = r.map((e => (delete(e = e instanceof q ? e.toJSON() : e).creationIndex, e))), e(null, n)))) + } + toJSON() { + return this.serializeSync() + } + _importCookies(e, t) { + let n = e.cookies; + if (!n || !Array.isArray(n)) return t(new Error("serialized jar has no cookies array")); + n = n.slice(); + const r = e => { + if (e) return t(e); + if (!n.length) return t(e, this); + let o; + try { + o = A(n.shift()) + } catch (e) { + return t(e) + } + if (null === o) return r(null); + this.store.putCookie(o, r) + }; + r() + } + clone(e, t) { + 1 === arguments.length && (t = e, e = null), this.serialize(((n, r) => { + if (n) return t(n); + L.deserialize(r, e, t) + })) + } + cloneSync(e) { + if (0 === arguments.length) return this._cloneSync(); + if (!e.synchronous) throw new Error("CookieJar clone destination store is not synchronous; use async API instead."); + return this._cloneSync(e) + } + removeAllCookies(e) { + const t = this.store; + if ("function" == typeof t.removeAllCookies && t.removeAllCookies !== a.prototype.removeAllCookies) return t.removeAllCookies(e); + t.getAllCookies(((n, r) => { + if (n) return e(n); + if (0 === r.length) return e(null); + let o = 0; + const i = []; + + function s(t) { + if (t && i.push(t), o++, o === r.length) return e(i.length ? i[0] : null) + } + r.forEach((e => { + t.removeCookie(e.domain, e.path, e.key, s) + })) + })) + } + static deserialize(e, t, n) { + let r; + if (3 !== arguments.length && (n = t, t = null), "string" == typeof e) { + if (r = O(e), r instanceof Error) return n(r) + } else r = e; + const o = new L(t, r.rejectPublicSuffixes); + o._importCookies(r, (e => { + if (e) return n(e); + n(null, o) + })) + } + static deserializeSync(e, t) { + const n = "string" == typeof e ? JSON.parse(e) : e, + r = new L(t, n.rejectPublicSuffixes); + if (!r.store.synchronous) throw new Error("CookieJar store is not synchronous; use async API instead."); + return r._importCookiesSync(n), r + } + } + + function $(e) { + return function(...t) { + if (!this.store.synchronous) throw new Error("CookieJar store is not synchronous; use async API instead."); + let n, r; + if (this[e](...t, ((e, t) => { + n = e, r = t + })), n) throw n; + return r + } + } + L.fromJSON = L.deserializeSync, ["_importCookies", "clone", "getCookies", "getCookieString", "getSetCookieStrings", "removeAllCookies", "serialize", "setCookie"].forEach((e => { + L.prototype[e] = d(L.prototype[e]) + })), L.deserialize = d(L.deserialize), t.version = l, t.CookieJar = L, t.Cookie = q, t.Store = a, t.MemoryCookieStore = c, t.parseDate = C, t.formatDate = S, t.parse = R, t.fromJSON = A, t.domainMatch = P, t.defaultPath = I, t.pathMatch = u, t.getPublicSuffix = s.getPublicSuffix, t.cookieCompare = N, t.permuteDomain = n(9206).permuteDomain, t.permutePath = function(e) { + if ("/" === e) return ["/"]; + const t = [e]; + for (; e.length > 1;) { + const n = e.lastIndexOf("/"); + if (0 === n) break; + e = e.substr(0, n), t.push(e) + } + return t.push("/"), t + }, t.canonicalDomain = T, t.PrefixSecurityEnum = k + }, + 5629: (e, t, n) => { + "use strict"; + const { + fromCallback: r + } = n(6767), o = n(7532).y, i = n(9206).permuteDomain, s = n(3043).U, a = n(3837); + class c extends o { + constructor() { + super(), this.synchronous = !0, this.idx = {}, a.inspect.custom && (this[a.inspect.custom] = this.inspect) + } + inspect() { + return `{ idx: ${a.inspect(this.idx,!1,2)} }` + } + findCookie(e, t, n, r) { + return this.idx[e] && this.idx[e][t] ? r(null, this.idx[e][t][n] || null) : r(null, void 0) + } + findCookies(e, t, n, r) { + const o = []; + if ("function" == typeof n && (r = n, n = !1), !e) return r(null, []); + let a; + a = t ? function(e) { + Object.keys(e).forEach((n => { + if (s(t, n)) { + const t = e[n]; + for (const e in t) o.push(t[e]) + } + })) + } : function(e) { + for (const t in e) { + const n = e[t]; + for (const e in n) o.push(n[e]) + } + }; + const c = i(e, n) || [e], + u = this.idx; + c.forEach((e => { + const t = u[e]; + t && a(t) + })), r(null, o) + } + putCookie(e, t) { + this.idx[e.domain] || (this.idx[e.domain] = {}), this.idx[e.domain][e.path] || (this.idx[e.domain][e.path] = {}), this.idx[e.domain][e.path][e.key] = e, t(null) + } + updateCookie(e, t, n) { + this.putCookie(t, n) + } + removeCookie(e, t, n, r) { + this.idx[e] && this.idx[e][t] && this.idx[e][t][n] && delete this.idx[e][t][n], r(null) + } + removeCookies(e, t, n) { + return this.idx[e] && (t ? delete this.idx[e][t] : delete this.idx[e]), n(null) + } + removeAllCookies(e) { + return this.idx = {}, e(null) + } + getAllCookies(e) { + const t = [], + n = this.idx; + Object.keys(n).forEach((e => { + Object.keys(n[e]).forEach((r => { + Object.keys(n[e][r]).forEach((o => { + null !== o && t.push(n[e][r][o]) + })) + })) + })), t.sort(((e, t) => (e.creationIndex || 0) - (t.creationIndex || 0))), e(null, t) + } + } ["findCookie", "findCookies", "putCookie", "updateCookie", "removeCookie", "removeCookies", "removeAllCookies", "getAllCookies"].forEach((e => { + c[e] = r(c.prototype[e]) + })), t.m = c + }, + 3043: (e, t) => { + "use strict"; + t.U = function(e, t) { + if (t === e) return !0; + if (0 === e.indexOf(t)) { + if ("/" === t.substr(-1)) return !0; + if ("/" === e.substr(t.length, 1)) return !0 + } + return !1 + } + }, + 9206: (e, t, n) => { + "use strict"; + const r = n(5281), + o = ["local"]; + t.permuteDomain = function(e, t) { + let n = null; + if (t) { + const t = e.split("."); + n = o.includes(t[t.length - 1]) ? `${t[t.length-2]}.${t[t.length-1]}` : r.getPublicSuffix(e) + } else n = r.getPublicSuffix(e); + if (!n) return null; + if (n == e) return [e]; + const i = e.slice(0, -(n.length + 1)).split(".").reverse(); + let s = n; + const a = [s]; + for (; i.length;) s = `${i.shift()}.${s}`, a.push(s); + return a + } + }, + 5281: (e, t, n) => { + "use strict"; + const r = n(4107); + t.getPublicSuffix = function(e) { + return r.get(e) + } + }, + 7532: (e, t) => { + "use strict"; + t.y = class { + constructor() { + this.synchronous = !1 + } + findCookie(e, t, n, r) { + throw new Error("findCookie is not implemented") + } + findCookies(e, t, n, r) { + throw new Error("findCookies is not implemented") + } + putCookie(e, t) { + throw new Error("putCookie is not implemented") + } + updateCookie(e, t, n) { + throw new Error("updateCookie is not implemented") + } + removeCookie(e, t, n, r) { + throw new Error("removeCookie is not implemented") + } + removeCookies(e, t, n) { + throw new Error("removeCookies is not implemented") + } + removeAllCookies(e) { + throw new Error("removeAllCookies is not implemented") + } + getAllCookies(e) { + throw new Error("getAllCookies is not implemented (therefore jar cannot be serialized)") + } + } + }, + 822: e => { + e.exports = "4.0.0" + }, + 3406: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.GitHubDeviceFlow = void 0; + const r = n(4206), + o = "Iv1.b507a08c87ecfe98"; + async function i(e) { + return (await r.default.post("https://github.com/login/oauth/access_token", { + client_id: o, + device_code: e, + grant_type: "urn:ietf:params:oauth:grant-type:device_code" + }, { + headers: { + Accept: "application/json" + } + })).data + } + async function s(e) { + return (await r.default.get("https://api.github.com/user", { + headers: { + Authorization: `Bearer ${e}`, + Accept: "application/json" + } + })).data + } + t.GitHubDeviceFlow = class { + async getToken() { + const e = await async function() { + return (await r.default.post("https://github.com/login/device/code", { + client_id: o, + scope: "read:user" + }, { + headers: { + Accept: "application/json" + } + })).data + }(), t = new Promise((async (t, n) => { + let r, o = e.expires_in; + for (; o > 0;) { + const n = await i(e.device_code); + if (o -= e.interval, await new Promise((t => setTimeout(t, 1e3 * e.interval))), r = n.access_token, r) return void t({ + user: (await s(r)).login, + oauth_token: r + }) + } + n("Timed out waiting for login to complete") + })); + return { + ...e, + waitForAuth: t + } + } + } + }, + 9321: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.createRequestContext = t.AuthManager = void 0; + const r = n(5765), + o = n(150), + i = n(5611), + s = n(5381); + class a { + constructor(e, t) { + this.persistenceManager = e, this.mkTokenManager = t, this._pendingSignIn = void 0 + } + getCopilotTokenManager() { + return this._copilotTokenManager + } + setPendingSignIn(e) { + this._pendingSignIn = e + } + getPendingSignIn() { + return this._pendingSignIn + } + async checkAndUpdateStatus(e, t) { + var n; + const r = null !== (n = null == t ? void 0 : t.localChecksOnly) && void 0 !== n && n; + let o; + if ("true" === process.env.CODESPACES && process.env.GITHUB_TOKEN && (o = { + user: process.env.GITHUB_USER || "codespace-user", + oauth_token: process.env.GITHUB_TOKEN + }), void 0 === o && (o = await this.getAuthRecord()), void 0 === o) return this._copilotTokenManager = void 0, { + status: "NotSignedIn" + }; + if (r) return { + status: "MaybeOK", + user: o.user + }; + const i = this.mkTokenManager(o.oauth_token), + s = await i.checkCopilotToken(e); + return "OK" !== s ? (this._copilotTokenManager = void 0, { + status: s.reason, + user: o.user + }) : !1 === await this.getTelemetryConsent(o.user) ? (this._copilotTokenManager = void 0, { + status: "NoTelemetryConsent", + user: o.user + }) : (this._copilotTokenManager = i, { + status: "OK", + user: o.user + }) + } + async getAuthRecord() { + return await this.persistenceManager.read("hosts", "github.com") + } + async setAuthRecord(e) { + await this.persistenceManager.update("hosts", "github.com", e) + } + async deleteAuthRecord() { + await this.persistenceManager.delete("hosts", "github.com") + } + async getTelemetryConsent(e) { + const t = await this.persistenceManager.read("terms", e); + return !(!(null == t ? void 0 : t.version) || t.version !== o.LAST_TELEMETRY_TERMS_UPDATE) + } + async recordTelemetryConsent(e) { + await this.persistenceManager.update("terms", e, { + version: o.LAST_TELEMETRY_TERMS_UPDATE + }) + } + } + t.AuthManager = a, t.createRequestContext = async function(e, t) { + let n = t; + if (void 0 === n && (n = e.get(a).getCopilotTokenManager()), void 0 === n) { + const t = await e.get(a).checkAndUpdateStatus(e); + if ("OK" !== t.status) return { + code: s.ErrorCode.NoCopilotToken, + message: `Not authenticated: ${t.status}` + }; + if (n = e.get(a).getCopilotTokenManager(), void 0 === n) return { + code: s.ErrorCode.InternalError, + message: "Unexpected missing Copilot token" + } + } + const o = new i.Context(e); + return o.set(r.CopilotTokenManager, n), o + } + }, + 9582: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.CancellationTokenSource = void 0; + const n = Object.freeze((function(e, t) { + const n = setTimeout(e.bind(t), 0); + return { + dispose() { + clearTimeout(n) + } + } + })), + r = Object.freeze({ + isCancellationRequested: !1, + onCancellationRequested: () => ({ + dispose: () => {} + }) + }), + o = Object.freeze({ + isCancellationRequested: !0, + onCancellationRequested: n + }); + class i { + constructor() { + this._isCancelled = !1, this.handlers = [] + } + cancel() { + this._isCancelled || (this._isCancelled = !0, this.handlers.forEach((e => e(void 0)))) + } + get isCancellationRequested() { + return this._isCancelled + } + onCancellationRequested(e, t, r) { + return this._isCancelled ? n(e, t) : (this.handlers.push(e.bind(t)), { + dispose: () => {} + }) + } + dispose() { + this.handlers = [] + } + } + t.CancellationTokenSource = class { + constructor(e) { + this._token = void 0, this._parentListener = void 0, this._parentListener = e && e.onCancellationRequested(this.cancel, this) + } + get token() { + return this._token || (this._token = new i), this._token + } + cancel() { + this._token ? this._token instanceof i && this._token.cancel() : this._token = o + } + dispose(e = !1) { + e && this.cancel(), this._parentListener && this._parentListener.dispose(), this._token ? this._token instanceof i && this._token.dispose() : this._token = r + } + } + }, + 8212: (e, t) => { + "use strict"; + var n, r; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.extensions = t.workspace = t.env = t.UIKind = t.EndOfLine = void 0, (r = t.EndOfLine || (t.EndOfLine = {}))[r.LF = 1] = "LF", r[r.CRLF = 2] = "CRLF", + function(e) { + e[e.Web = 0] = "Web", e[e.Desktop = 1] = "Desktop" + }(n = t.UIKind || (t.UIKind = {})), t.env = { + isTelemetryEnabled: !0, + uiKind: n.Desktop, + appRoot: "/non-existent-path" + }, t.workspace = { + onDidChangeConfiguration: () => {}, + getConfiguration: () => ({}) + }, t.extensions = { + getExtension: e => {} + } + }, + 3895: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.AgentEditorInfo = t.AgentConfigProvider = void 0; + const r = n(9800); + class o extends r.DefaultsOnlyConfigProvider { + dumpConfig() { + return { + AGENT_DUMP_CONFIG_UNIMPLMEMENTED: "" + } + } + } + t.AgentConfigProvider = o; + class i extends r.EditorAndPluginInfo { + setEditorAndPluginInfo(e, t) { + this._editorInfo = e, this._editorPluginInfo = t + } + getEditorInfo(e) { + return this._editorInfo ? this._editorInfo : { + name: "unknown-editor", + version: "0" + } + } + getEditorPluginInfo(e) { + return this._editorPluginInfo ? this._editorPluginInfo : { + name: "unknown-editor-plugin", + version: "0" + } + } + } + t.AgentEditorInfo = i + }, + 3007: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.CopilotCompletionCache = void 0; + const r = n(140); + class o extends r.LRUCache { + constructor(e = 100) { + super(e) + } + } + t.CopilotCompletionCache = o + }, + 9841: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.NotificationLogger = void 0; + const r = n(7089), + o = n(5798), + i = n(7214); + class s extends o.LogTarget { + constructor(e) { + super(), this.debugMode = e + } + logIt(e, t, n, ...s) { + const a = { + level: t, + message: `${n} ${s.map(o.toPlainText)}`, + metadataStr: n, + extra: s.map(o.toPlainText) + }; + e.get(i.NotificationSender).sendNotification(new r.NotificationType("LogMessage"), a) + } + shouldLog(e, t) { + return !!this.debugMode || t > o.LogLevel.DEBUG + } + } + t.NotificationLogger = s + }, + 1926: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.NotificationStatusReporter = void 0; + const r = n(7089), + o = n(7214); + t.NotificationStatusReporter = class { + constructor(e) { + this.ctx = e, this.notificationEndpoint = "statusNotification" + } + setProgress() { + this.ctx.get(o.NotificationSender).sendNotification(new r.NotificationType(this.notificationEndpoint), { + status: "InProgress", + message: "" + }) + } + removeProgress() { + this.ctx.get(o.NotificationSender).sendNotification(new r.NotificationType(this.notificationEndpoint), { + status: "RemoveProgress", + message: "" + }) + } + setWarning() { + this.ctx.get(o.NotificationSender).sendNotification(new r.NotificationType(this.notificationEndpoint), { + status: "Warning", + message: "" + }) + } + setError(e) { + const t = { + status: "Error", + message: e + }; + this.ctx.get(o.NotificationSender).sendNotification(new r.NotificationType(this.notificationEndpoint), t) + } + } + }, + 6021: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.agentFileSystem = void 0; + const r = n(7147); + t.agentFileSystem = { + readFile: function(e) { + return r.promises.readFile(e) + }, + mtime: async function(e) { + return (await r.promises.stat(e)).mtimeMs + }, + stat: async function(e) { + const t = await r.promises.stat(e); + return { + ctime: t.ctimeMs, + mtime: t.mtimeMs, + size: t.size + } + } + } + }, + 9729: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.sessionId = t.getMachineId = void 0; + const r = n(6113), + o = n(2037), + i = n(7057), + s = new Set(["00:00:00:00:00:00", "ff:ff:ff:ff:ff:ff", "ac:de:48:00:11:22"]); + + function a(e) { + const t = e.replace(/-/g, ":").toLowerCase(); + return !s.has(t) + } + let c; + t.getMachineId = function() { + if (!c) { + const e = function() { + try { + const e = function() { + const e = (0, o.networkInterfaces)(); + for (const t in e) { + const n = e[t]; + if (n) + for (const { + mac: e + } of n) + if (a(e)) return e + } + throw new Error("Unable to retrieve mac address (unexpected format)") + }(); + return r.createHash("sha256").update(e, "utf8").digest("hex") + } catch (e) { + return + } + }(); + c = e || i.v4() + } + return c + }, t.sessionId = i.v4() + Date.now() + }, + 6995: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.init = void 0; + const r = n(39), + o = n(9321), + i = n(5611), + s = n(585), + a = n(5765), + c = n(3406), + u = n(598), + l = n(9800), + d = n(7590), + p = n(5332), + h = n(5798), + m = n(3895), + f = n(2137), + g = n(5489), + y = n(3007), + _ = n(2369), + v = n(2401), + b = n(6905), + k = n(9729), + w = n(6021), + j = n(4617), + x = n(446); + t.init = function() { + const e = new i.Context; + e.set(l.ConfigProvider, new m.AgentConfigProvider), e.set(f.Clock, new f.Clock), e.set(l.BuildInfo, new l.BuildInfo), e.set(d.TestMode, new d.TestMode(!1)); + const t = (0, s.makeXdgPersistenceManager)(); + e.set(s.PersistenceManager, t); + const n = new o.AuthManager(t, (e => new a.CopilotTokenManagerFromGitHubToken(e))); + e.set(c.GitHubDeviceFlow, new c.GitHubDeviceFlow), e.set(o.AuthManager, n); + const E = new l.VscInfo(k.sessionId, (0, k.getMachineId)(), (0, l.getVersion)(e)); + e.set(l.VscInfo, E), e.set(l.EditorAndPluginInfo, new m.AgentEditorInfo), e.set(u.OpenAIFetcher, new u.LiveOpenAIFetcher), e.set(l.BlockModeConfig, new l.FixedBlockModeConfig(l.BlockMode.Server)), e.set(p.MethodHandlers, (0, p.getAllMethods)()), e.set(p.NotificationHandlers, (0, p.getAllNotifications)()), e.set(y.CopilotCompletionCache, new y.CopilotCompletionCache), e.set(_.LocationFactory, new v.AgentLocationFactory), e.set(b.Features, new b.Features), e.set(j.FileSystem, w.agentFileSystem); + let C = !1; + if ("COPILOT_AGENT_VERBOSE" in process.env) { + const e = process.env.COPILOT_AGENT_VERBOSE; + C = "1" === e || "true" === e + } + return e.set(h.LogVerbose, new h.LogVerbose(C)), (0, r.init)((0, l.getVersion)(e)), e.set(g.TelemetryEndpointUrlOverride, g.noTelemetryEndpointUrlOverride), e.set(g.TelemetryReporters, (0, g.setupStandardReporters)(e, "agent")), (0, x.registerDefaultHandlers)(e, "agent"), process.on("exit", (() => { + try { + e.get(g.TelemetryReporters).deactivate() + } catch (e) {} + })), e + } + }, + 6934: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5381), + o = n(6236), + i = n(9321), + s = (new o.default).compile({ + type: "object", + properties: { + options: { + type: "object", + required: [], + properties: { + localChecksOnly: { + type: "boolean" + } + } + } + } + }); + t.default = async function(e, t) { + if (s(t)) return [await e.get(i.AuthManager).checkAndUpdateStatus(e, t.options), null]; { + const e = (0, r.extractAjvErrors)(s.errors); + return [null, { + code: r.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } + } + }, + 3340: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.handleGetCompletionsCycling = t.handleGetCompletions = void 0; + const r = n(5381), + o = n(6236), + i = n(702), + s = n(4090), + a = n(3993), + c = n(5611), + u = n(9321), + l = n(9800), + d = n(9582), + p = n(3007), + h = n(2369), + m = n(2401), + f = n(6630), + g = n(7057), + y = n(6159), + _ = n(2930), + v = { + type: "object", + required: ["doc"], + properties: { + doc: { + type: "object", + required: ["path", "relativePath", "source", "position", "languageId"], + properties: { + path: { + type: "string" + }, + relativePath: { + type: "string" + }, + source: { + type: "string" + }, + position: { + type: "object", + required: ["line", "character"], + properties: { + line: { + type: "number" + }, + character: { + type: "number" + } + } + }, + languageId: { + type: "string" + }, + tabSize: { + type: "number" + }, + insertSpaces: { + type: "boolean" + } + } + }, + options: { + type: "object", + required: [], + properties: { + ...y.testingOptionsSchemaProperties + } + } + } + }, + b = (new o.default).compile(v); + let k; + async function w(e, t, n, o) { + var v; + if (k && (k.cancel(), k.dispose()), k = new d.CancellationTokenSource, b(t)) { + let r; + void 0 !== (null === (v = t.options) || void 0 === v ? void 0 : v.testingCtx) && (e = (0, y.getTestingContext)(t.options.testingCtx)); + try { + r = e.get(_.CompletionDocuments) + } catch (e) {} + if (r) { + const e = o ? 3 : 1; + return [{ + completions: r.documents.slice(0, e).map((e => { + const n = e.split("\n"); + let r = t.doc.position, + o = t.doc.position, + i = n[t.doc.position.line]; + const s = i.indexOf("%"); - 1 !== s && (i = i.substring(0, s) + i.substring(s + 1), r = { + line: t.doc.position.line, + character: s + }); + const a = i.indexOf("^"); + if (-1 !== a) { + const e = i.indexOf("^", a + 1); + if (-1 === e) throw new Error("Challenge document must contain zero or two ^ characters."); + i = i.substring(0, a) + i.substring(a + 1, e) + i.substring(e + 1), r = { + line: t.doc.position.line, + character: t.doc.position.character + }, o = { + line: t.doc.position.line, + character: t.doc.position.character + e - a - 1 + } + } + const c = [i.slice(Math.min(r.character, t.doc.position.character))].concat(n.slice(t.doc.position.line + 1)).join("\n"); + return { + uuid: g.v4(), + text: c, + displayText: c, + position: t.doc.position, + range: { + start: r, + end: o + } + } + })) + }, null] + } + const d = await (0, u.createRequestContext)(e, n); + if (!(d instanceof c.Context)) return [null, d]; + const b = f.URI.file(t.doc.path), + w = new m.AgentTextDocument(b, t.doc.languageId, 0, t.doc.source, t.doc.relativePath), + j = w.offsetAt(d.get(h.LocationFactory).position(t.doc.position.line, t.doc.position.character)), + x = w.positionAt(j), + E = await (0, s.extractPrompt)(e, w, t.doc.position); + if ("contextTooShort" === E.type) return [{ + completions: [] + }, null]; + const C = l.BlockMode.Server, + S = await (0, i.getGhostText)(d, w, x, E, C, o, k.token); + if (!S) return [{ + completions: [] + }, null]; + const [T, P] = S, I = (0, a.completionsFromGhostTextResults)(e, T, P, w, x, t.doc), R = e.get(p.CopilotCompletionCache); + for (const e of I) R.put(e.uuid, e); + return [{ + completions: I.map((e => ({ + uuid: e.uuid, + text: e.text, + range: e.range, + displayText: e.displayText, + position: e.position + }))) + }, null] + } { + const e = (0, r.extractAjvErrors)(b.errors); + return [null, { + code: r.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } + } + t.handleGetCompletions = async function(e, t, n) { + return w(e, t, n, !1) + }, t.handleGetCompletionsCycling = async function(e, t, n) { + return w(e, t, n, !0) + } + }, + 9638: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.handleGetPanelCompletions = void 0; + const r = n(5381), + o = n(6236), + i = n(5611), + s = n(9321), + a = n(9800), + c = n(9582), + u = n(2369), + l = n(2401), + d = n(6630), + p = n(6317), + h = n(5489), + m = n(5680), + f = n(6679), + g = n(5809), + y = n(7214), + _ = (new o.default).compile({ + type: "object", + required: ["doc", "panelId"], + properties: { + doc: { + type: "object", + required: ["path", "relativePath", "source", "position", "languageId"], + properties: { + path: { + type: "string" + }, + relativePath: { + type: "string" + }, + source: { + type: "string" + }, + position: { + type: "object", + required: ["line", "character"], + properties: { + line: { + type: "number" + }, + character: { + type: "number" + } + } + }, + languageId: { + type: "string" + } + } + }, + panelId: { + type: "string" + }, + options: { + type: "object", + required: [], + properties: {} + } + } + }); + class v { + constructor(e, t, n, r, o) { + this.textDocument = e, this.startPosition = t, this.completionContext = n, this.solutionCountTarget = r, this.cancellationTokenSource = o, this.savedTelemetryData = h.TelemetryData.createAndMarkAsIssued() + } + reportCancelled() {} + getCancellationToken() { + return this.cancellationTokenSource.token + } + async getDocument() { + return this.textDocument + } + } + async function b(e, t, n, r, o) { + const i = await r; + switch (i.status) { + case "Solution": + n.sendNotification(new g.NotificationType("PanelSolution"), function(e, t, n) { + const r = (0, p.normalizeCompletionText)(n.completionText); + return { + panelId: e, + range: t, + completionText: n.completionText, + displayText: n.displayText, + score: n.meanProb, + solutionId: (0, f.SHA256)(r).toString() + } + }(e, t, i.solution)), await b(e, t, n, i.next, o); + break; + case "FinishedNormally": + n.sendNotification(new g.NotificationType("PanelSolutionsDone"), { + status: "OK", + panelId: e + }), o(); + break; + case "FinishedWithError": + n.sendNotification(new g.NotificationType("PanelSolutionsDone"), { + status: "Error", + message: i.error, + panelId: e + }), o() + } + } + let k; + t.handleGetPanelCompletions = async function(e, t, n, o) { + if (k && (k.cancel(), k.dispose()), k = new c.CancellationTokenSource, !_(t)) { + const e = (0, r.extractAjvErrors)(_.errors); + return [null, { + code: r.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } + const h = await (0, s.createRequestContext)(e, n); + if (!(h instanceof i.Context)) return [null, h]; + const f = d.URI.file(t.doc.path), + g = new l.AgentTextDocument(f, t.doc.languageId, 0, t.doc.source, t.doc.relativePath), + w = g.offsetAt(h.get(u.LocationFactory).position(t.doc.position.line, t.doc.position.character)), + j = g.positionAt(w), + x = (0, a.getConfig)(e, a.ConfigKey.ListCount), + E = (0, m.completionContextForDocument)(e, g, j), + C = new v(g, j, E, x, k), + S = (0, p.launchSolutions)(h, C); + return setImmediate((() => b(t.panelId, h.get(u.LocationFactory).range(j, j), e.get(y.NotificationSender), S, null != o ? o : () => {}))), [{ + solutionCountTarget: x + }, null] + } + }, + 1025: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5381), + o = n(6236), + i = n(9800), + s = (new o.default).compile({ + type: "object" + }); + t.default = async function(e, t) { + if (s(t)) return [{ + version: (0, i.getVersion)(e) + }, null]; { + const e = (0, r.extractAjvErrors)(s.errors); + return [null, { + code: r.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } + } + }, + 2389: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5381), + o = n(6236), + i = n(1045), + s = (new o.default).compile({ + type: "object", + required: ["url"], + properties: { + method: { + type: "string" + }, + headers: { + type: "object", + additionalProperties: { + type: "string" + } + }, + body: { + type: "string" + }, + json: {}, + timeout: { + type: "number" + } + } + }); + t.default = async function(e, t) { + if (!s(t)) { + const e = (0, r.extractAjvErrors)(s.errors); + return [null, { + code: r.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } { + const e = {}; + "method" in t && (e.method = t.method), "body" in t && (e.body = t.body), "json" in t && (e.json = t.json); + const n = t.timeout; + null != n && (e.timeout = n), t.headers && (e.headers = t.headers); + try { + const n = await (0, i.fetch)(t.url, e), + r = await n.text(); + return [{ + status: n.status, + statusText: n.statusText, + headers: n.headers.toJSON(), + body: r + }, null] + } catch (e) { + return [null, { + code: r.ErrorCode.InternalError, + message: e.message + }] + } + } + } + }, + 5332: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getAllNotifications = t.NotificationHandlers = t.getAllMethods = t.MethodHandlers = void 0; + const r = n(3340), + o = n(9638), + i = n(1025), + s = n(2389), + a = n(1451), + c = n(6934), + u = n(4885), + l = n(6885), + d = n(6656), + p = n(1300), + h = n(5581), + m = n(1382), + f = n(8269), + g = n(2229), + y = n(2930), + _ = n(8127), + v = n(9629); + class b { + constructor(e) { + this.handlers = e + } + } + t.MethodHandlers = b, t.getAllMethods = function() { + const e = new Map; + return e.set("getCompletions", r.handleGetCompletions), e.set("getCompletionsCycling", r.handleGetCompletionsCycling), e.set("getPanelCompletions", o.handleGetPanelCompletions), e.set("httpRequest", s.default), e.set("getVersion", i.default), e.set("setEditorInfo", v.handleSetEditorInfo), e.set("checkStatus", c.default), e.set("signInInitiate", a.default), e.set("signInConfirm", l.default), e.set("signOut", d.default), e.set("recordTelemetryConsent", u.default), e.set("notifyShown", p.notifyShown), e.set("notifyAccepted", h.notifyAccepted), e.set("notifyRejected", m.notifyRejected), e.set("testing/createContext", f.default), e.set("testing/useTestingToken", g.default), e.set("testing/setCompletionDocuments", y.default), e.set("debug/verifyState", _.handleVerifyState), new b(e) + }; + class k { + constructor(e) { + this.handlers = e + } + } + t.NotificationHandlers = k, t.getAllNotifications = function() { + const e = new Map; + return new k(e) + } + }, + 5581: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.notifyAccepted = void 0; + const r = n(6236), + o = n(3402), + i = n(3007), + s = n(5381), + a = n(6159), + c = { + type: "object", + required: ["uuid"], + properties: { + uuid: { + type: "string", + minLength: 1 + }, + options: { + type: "object", + required: [], + properties: { + ...a.testingOptionsSchemaProperties + } + } + } + }, + u = (new r.default).compile(c); + t.notifyAccepted = async function(e, t) { + var n; + if (u(t)) { + void 0 !== (null === (n = t.options) || void 0 === n ? void 0 : n.testingCtx) && (e = (0, a.getTestingContext)(t.options.testingCtx)); + const r = e.get(i.CopilotCompletionCache), + s = r.get(t.uuid); + return s && (r.deleteKey(t.uuid), (0, o.postInsertionTasks)(e, "ghostText", s.text, s.offset, s.file, s.telemetry)), ["OK", null] + } { + const e = (0, s.extractAjvErrors)(u.errors); + return [null, { + code: s.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } + } + }, + 1382: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.notifyRejected = void 0; + const r = n(6236), + o = n(3402), + i = n(3007), + s = n(5381), + a = n(6159), + c = { + type: "object", + required: ["uuids"], + properties: { + uuids: { + type: "array", + items: { + type: "string" + }, + minItems: 1 + }, + options: { + type: "object", + required: [], + properties: { + ...a.testingOptionsSchemaProperties + } + } + } + }, + u = (new r.default).compile(c); + t.notifyRejected = async function(e, t) { + var n; + if (u(t)) { + void 0 !== (null === (n = t.options) || void 0 === n ? void 0 : n.testingCtx) && (e = (0, a.getTestingContext)(t.options.testingCtx)); + const r = e.get(i.CopilotCompletionCache), + s = t.uuids.flatMap((e => { + var t; + return null !== (t = r.get(e)) && void 0 !== t ? t : [] + })); + if (s.length > 0) { + const n = s[0]; + for (const e of t.uuids) r.deleteKey(e); + const i = s.map((e => ({ + completionText: e.displayText, + completionTelemetryData: e.telemetry + }))); + (0, o.postRejectionTasks)(e, "ghostText", n.offset, n.file, i) + } + return ["OK", null] + } { + const e = (0, s.extractAjvErrors)(u.errors); + return [null, { + code: s.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } + } + }, + 1300: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.notifyShown = void 0; + const r = n(6236), + o = n(702), + i = n(1749), + s = n(3007), + a = n(5381), + c = n(6159), + u = { + type: "object", + required: ["uuid"], + properties: { + uuid: { + type: "string", + minLength: 1 + }, + options: { + type: "object", + required: [], + properties: { + ...c.testingOptionsSchemaProperties + } + } + } + }, + l = (new r.default).compile(u); + t.notifyShown = async function(e, t) { + var n; + if (l(t)) { + void 0 !== (null === (n = t.options) || void 0 === n ? void 0 : n.testingCtx) && (e = (0, c.getTestingContext)(t.options.testingCtx)); + const r = e.get(s.CopilotCompletionCache).get(t.uuid); + if (r) { + const t = !(r.resultType === o.ResultType.Network); + (0, i.telemetryShown)(e, "ghostText", r.telemetry, t) + } + return ["OK", null] + } { + const e = (0, a.extractAjvErrors)(l.errors); + return [null, { + code: a.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } + } + }, + 4885: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5381), + o = n(6236), + i = n(9321), + s = (new o.default).compile({ + type: "object", + properties: { + options: { + type: "object", + required: [], + properties: {} + } + } + }); + t.default = async function(e, t) { + if (s(t)) { + const t = await e.get(i.AuthManager).getAuthRecord(); + return t ? (e.get(i.AuthManager).recordTelemetryConsent(t.user), [await e.get(i.AuthManager).checkAndUpdateStatus(e), null]) : [null, { + code: r.ErrorCode.InvalidRequest, + message: "Trying to record telemetry consent but the user is not signed in" + }] + } { + const e = (0, r.extractAjvErrors)(s.errors); + return [null, { + code: r.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } + } + }, + 9629: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.handleSetEditorInfo = void 0; + const r = n(5381), + o = n(6236), + i = n(9800), + s = { + type: "object", + required: ["name", "version"], + properties: { + name: { + type: "string" + }, + version: { + type: "string" + } + } + }, + a = { + type: "object", + required: ["editorInfo", "editorPluginInfo"], + properties: { + editorInfo: s, + editorPluginInfo: s, + options: { + type: "object", + required: [], + properties: {} + } + } + }, + c = (new o.default).compile(a); + t.handleSetEditorInfo = async function(e, t) { + if (!c(t)) { + const e = (0, r.extractAjvErrors)(c.errors); + return [null, { + code: r.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } + return e.get(i.EditorAndPluginInfo).setEditorAndPluginInfo(t.editorInfo, t.editorPluginInfo), ["OK", null] + } + }, + 6885: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5381), + o = n(6236), + i = n(9321), + s = (new o.default).compile({ + type: "object", + properties: { + options: { + type: "object", + required: [], + properties: {} + } + } + }); + t.default = async function(e, t) { + if (!s(t)) { + const e = (0, r.extractAjvErrors)(s.errors); + return [null, { + code: r.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } { + const t = e.get(i.AuthManager).getPendingSignIn(); + if (void 0 === t) return [null, { + code: r.ErrorCode.InvalidRequest, + message: "No pending sign in" + }]; + let n; + try { + return n = await t, [n, null] + } catch (e) { + return [null, { + code: r.ErrorCode.DeviceFlowFailed, + message: e.toString() + }] + } finally { + e.get(i.AuthManager).setPendingSignIn(void 0) + } + } + } + }, + 1451: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5381), + o = n(6236), + i = n(3406), + s = n(9321), + a = (new o.default).compile({ + type: "object", + properties: { + options: { + type: "object", + required: [], + properties: {} + } + } + }); + t.default = async function(e, t) { + if (a(t)) { + const t = await e.get(s.AuthManager).checkAndUpdateStatus(e); + if ("OK" === t.status) return [{ + status: "AlreadySignedIn", + user: t.user + }, null]; + const n = await e.get(i.GitHubDeviceFlow).getToken(), + r = n.waitForAuth.then((async t => (await e.get(s.AuthManager).setAuthRecord(t), await e.get(s.AuthManager).checkAndUpdateStatus(e)))); + return e.get(s.AuthManager).setPendingSignIn(r), [{ + status: "PromptUserDeviceFlow", + userCode: n.user_code, + verificationUri: n.verification_uri, + expiresIn: n.expires_in, + interval: n.interval + }, null] + } { + const e = (0, r.extractAjvErrors)(a.errors); + return [null, { + code: r.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } + } + }, + 6656: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5381), + o = n(6236), + i = n(9321), + s = (new o.default).compile({ + type: "object", + properties: { + options: { + type: "object", + required: [], + properties: {} + } + } + }); + t.default = async function(e, t) { + if (s(t)) return await e.get(i.AuthManager).deleteAuthRecord(), [await e.get(i.AuthManager).checkAndUpdateStatus(e), null]; { + const e = (0, r.extractAjvErrors)(s.errors); + return [null, { + code: r.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } + } + }, + 8269: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5381), + o = n(6236), + i = n(6159), + s = (new o.default).compile({ + type: "object", + properties: { + options: { + type: "object", + required: [], + properties: {} + } + } + }); + t.default = async function(e, t) { + if (s(t)) return [(0, i.newTestingContext)(e), null]; { + const e = (0, r.extractAjvErrors)(s.errors); + return [null, { + code: r.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } + } + }, + 2930: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.CompletionDocuments = void 0; + const r = n(5381), + o = n(6236), + i = n(6159), + s = (new o.default).compile({ + type: "object", + required: ["testingCtx", "documents"], + properties: { + testingCtx: { + type: "number" + }, + documents: { + type: "array", + items: { + type: "string" + } + }, + options: { + type: "object", + required: [], + properties: {} + } + } + }); + class a { + constructor(e) { + this.documents = e + } + } + t.CompletionDocuments = a, t.default = async function(e, t) { + if (s(t)) return (0, i.getTestingContext)(t.testingCtx).forceSet(a, new a(t.documents)), ["OK", null]; { + const e = (0, r.extractAjvErrors)(s.errors); + return [null, { + code: r.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } + } + }, + 2229: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }); + const r = n(5381), + o = n(6236), + i = n(6159), + s = n(5922), + a = n(9321), + c = (new o.default).compile({ + type: "object", + properties: { + options: { + type: "object", + required: [], + properties: {} + } + } + }); + class u extends a.AuthManager { + constructor(e) { + super(void 0, (t => e)), this.tokenManager = e + } + getCopilotTokenManager() { + return this.tokenManager + } + } + t.default = async function(e, t) { + if (c(t)) { + const e = (0, s.makeTestingCopilotTokenManager)(); + return (0, i.getTestingContext)(t.testingCtx).forceSet(a.AuthManager, new u(e)), ["OK", null] + } { + const e = (0, r.extractAjvErrors)(c.errors); + return [null, { + code: r.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } + } + }, + 8127: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.handleVerifyState = void 0; + const r = n(6236), + o = n(6630), + i = n(819), + s = n(5381), + a = (new r.default).compile({ + type: "object", + required: ["uri", "source", "languageId", "version"], + properties: { + uri: { + type: "string" + }, + source: { + type: "string" + }, + languageId: { + type: "string" + }, + version: { + type: "number" + } + } + }); + t.handleVerifyState = async function(e, t, n) { + if (a(t)) { + const n = e.get(i.TextDocumentManager), + r = await n.getTextDocument(o.URI.parse(t.uri)); + return r ? r.languageId !== t.languageId ? [{ + status: !1, + message: `Language id mismatch: [State] ${r.languageId} !== [Request] ${t.languageId}` + }, null] : r.getText() !== t.source ? [{ + status: !1, + message: `Source mismatch: [State] ${r.getText()} !== [Request] ${t.source}` + }, null] : r.version !== t.version ? [{ + status: !1, + message: `Version mismatch: [State] ${r.version} !== [Request] ${t.version}` + }, null] : [{ + status: !0, + message: "" + }, null] : [{ + status: !1, + message: "Document not found" + }, null] + } { + const e = (0, s.extractAjvErrors)(a.errors); + return [null, { + code: s.ErrorCode.InvalidParams, + message: "Invalid params: " + e.join(";") + }] + } + } + }, + 7214: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ConnectionNotificationSender = t.NotificationSender = void 0; + class n {} + t.NotificationSender = n, t.ConnectionNotificationSender = class extends n { + constructor(e) { + super(), this.connection = e + } + sendNotification(e, t) { + this.connection.sendNotification(e, t) + } + } + }, + 585: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.makeXdgPersistenceManager = t.PersistenceManager = void 0; + const r = n(7147), + o = n(2037), + i = n(7282); + class s { + constructor(e) { + this.directory = e + } + async read(e, t) { + const n = `${this.directory}/${e}.json`; + try { + const e = await r.promises.readFile(n, { + encoding: "utf8" + }); + return JSON.parse(e)[t] + } catch (e) { + return + } + } + async update(e, t, n) { + await r.promises.mkdir(this.directory, { + recursive: !0, + mode: 448 + }); + const o = `${this.directory}/${e}.json`; + let i = {}; + try { + const e = await r.promises.readFile(o, { + encoding: "utf8" + }); + i = JSON.parse(e) + } catch (e) {} + i[t] = n, await r.promises.writeFile(o, JSON.stringify(i) + "\n", { + encoding: "utf8" + }) + } + async delete(e, t) { + const n = `${this.directory}/${e}.json`; + try { + const e = await r.promises.readFile(n, { + encoding: "utf8" + }), + o = JSON.parse(e); + delete o[t], await r.promises.writeFile(n, JSON.stringify(o) + "\n", { + encoding: "utf8" + }) + } catch (e) {} + } + } + t.PersistenceManager = s, t.makeXdgPersistenceManager = function() { + return new s(i.env.XDG_CONFIG_HOME ? i.env.XDG_CONFIG_HOME + "/github-copilot" : "win32" === (0, o.platform)() ? i.env.USERPROFILE + "\\AppData\\Local\\github-copilot" : i.env.HOME + "/.config/github-copilot") + } + }, + 5381: (e, t) => { + "use strict"; + var n; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.extractAjvErrors = t.ErrorCode = void 0, (n = t.ErrorCode || (t.ErrorCode = {}))[n.ParseError = -32700] = "ParseError", n[n.InvalidRequest = -32600] = "InvalidRequest", n[n.MethodNotFound = -32601] = "MethodNotFound", n[n.InvalidParams = -32602] = "InvalidParams", n[n.InternalError = -32603] = "InternalError", n[n.NoCopilotToken = 1e3] = "NoCopilotToken", n[n.DeviceFlowFailed = 1001] = "DeviceFlowFailed", t.extractAjvErrors = function(e) { + return e.map((e => `${e.instancePath} ${e.message}`)) + } + }, + 2879: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.CreateCopilotService = t.CopilotService = void 0; + const r = n(7089), + o = n(5611), + i = n(819), + s = n(5798), + a = n(6995), + c = n(5332), + u = n(5381), + l = n(540), + d = n(6635), + p = n(9841), + h = n(1926), + m = n(7214), + f = n(5225); + class g { + constructor(e, t, n) { + this.connection = t, this.ctx = new o.Context(e), this.ctx.set(i.TextDocumentManager, new l.AgentTextDocumentManager(t)), (0, f.registerDocumentTracker)(this.ctx), this.ctx.set(m.NotificationSender, new m.ConnectionNotificationSender(t)), this.ctx.set(d.StatusReporter, new h.NotificationStatusReporter(this.ctx)); + const a = new p.NotificationLogger(n); + this.ctx.set(s.LogTarget, a), t.onRequest(this.messageHandler.bind(this)), t.onNotification(this.notificationHandler.bind(this)), t.onInitialize((async e => ({ + capabilities: { + textDocumentSync: { + openClose: !0, + change: r.TextDocumentSyncKind.Incremental + } + } + }))) + } + async messageHandler(e, t, n) { + const o = this.ctx.get(c.MethodHandlers).handlers.get(e); + if (!o) return new r.ResponseError(u.ErrorCode.MethodNotFound, `Method not found: ${e}`); + Array.isArray(t) && (t = t[0]); + const [i, s] = await o(this.ctx, t); + return s ? new r.ResponseError(s.code, s.message, s.data) : i + } + async notificationHandler(e, t) { + const n = this.ctx.get(c.NotificationHandlers).handlers.get(e); + n && (Array.isArray(t) && (t = t[0]), await n(this.ctx, t)) + } + listen() { + this.connection.listen() + } + } + t.CopilotService = g, t.CreateCopilotService = function(e) { + const t = (0, a.init)(), + n = (0, r.createConnection)(r.ProposedFeatures.all, new r.StreamMessageReader(e), new r.StreamMessageWriter(e)); + new g(t, n, !1).listen() + } + }, + 6159: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getTestingContext = t.newTestingContext = t.testingOptionsSchemaProperties = void 0; + const n = new Map; + let r = 0; + t.testingOptionsSchemaProperties = { + testingCtx: { + type: "number" + } + }, t.newTestingContext = function(e) { + const t = r; + return n.set(t, e), r++, t + }, t.getTestingContext = function(e) { + const t = n.get(e); + if (void 0 === t) throw new Error(`Testing context ${e} not found`); + return t + } + }, + 2401: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.AgentTextDocument = t.AgentLocationFactory = void 0; + const r = n(2369), + o = n(1674), + i = n(6813); + class s extends r.LocationFactory { + range(e, t, n, r) { + return void 0 !== n && void 0 !== r ? o.Range.create(e, t, n, r) : o.Range.create(e, t) + } + position(e, t) { + return o.Position.create(e, t) + } + } + t.AgentLocationFactory = s, t.AgentTextDocument = class { + constructor(e, t, n, r, o) { + this._uri = e, this._textDocument = i.TextDocument.create(e.toString(), t, n, r), this._relativePath = o + } + get uri() { + return this._uri + } + get relativePath() { + return this._relativePath + } + get fileName() { + return this._uri.fsPath + } + get languageId() { + return this._textDocument.languageId + } + get version() { + return this._textDocument.version + } + get lineCount() { + return this._textDocument.lineCount + } + getText(e) { + return this._textDocument.getText(e) + } + positionAt(e) { + return this._textDocument.positionAt(e) + } + offsetAt(e) { + return this._textDocument.offsetAt(e) + } + lineAt(e) { + const t = "number" == typeof e ? e : e.line, + n = this.getText().split("\n")[t], + r = o.Range.create(o.Position.create(t, 0), o.Position.create(t, n.length)), + i = 0 === n.trim().length; + return { + text: n, + range: r, + isEmptyOrWhitespace: i + } + } + getWordRangeAtPosition(e) {} + update(e, t) { + i.TextDocument.update(this._textDocument, e, t) + } + } + }, + 540: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.AgentTextDocumentManager = void 0; + const r = n(2361), + o = n(5809), + i = n(6630), + s = n(819), + a = n(2401); + class c { + constructor() { + this.emitter = new r + } + create(e, t, n, r) { + return new a.AgentTextDocument(i.URI.parse(e), t, n, r) + } + update(e, t, n) { + const r = []; + for (const n of t) + if (o.TextDocumentContentChangeEvent.isIncremental(n)) { + const t = { + range: n.range, + rangeOffset: e.offsetAt(n.range.start), + rangeLength: e.offsetAt(n.range.end) - e.offsetAt(n.range.start), + text: n.text + }; + r.push(t) + } const i = { + document: e, + contentChanges: r + }; + return this.emitter.emit("change", i), e.update(t, n), e + } + } + class u extends s.TextDocumentManager { + constructor(e) { + super(), this.connection = e, this.onDidChangeTextDocument = (e, t, n) => { + const r = e.bind(t); + return this._textDocumentConfiguration.emitter.on("change", r), { + dispose: () => { + this._textDocumentConfiguration.emitter.removeListener("change", r) + } + } + }, this.onDidFocusTextDocument = (e, t, n) => (this.connection.onNotification("textDocument/didFocus", (n => { + const r = i.URI.parse(n.uri); + e.call(t, { + document: { + uri: r + } + }) + })), { + dispose: () => {} + }), this._textDocumentConfiguration = new c, this._textDocumentListener = new o.TextDocuments(this._textDocumentConfiguration), this._textDocumentListener.listen(e) + } + get textDocuments() { + return this._textDocumentListener.all() + } + async getTextDocument(e) { + return this._textDocumentListener.get(e.toString()) + } + async getRelativePath(e) { + var t; + return null === (t = this._textDocumentListener.get(e.toString())) || void 0 === t ? void 0 : t.relativePath + } + } + t.AgentTextDocumentManager = u + }, + 9316: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ABExperiments = t.getConstantExperimentGroups = void 0; + const r = n(5489), + o = n(6679), + i = n(7590), + s = n(9800), + a = n(2137); + var c; + ! function(e) { + e[e.ByUser = 0] = "ByUser", e[e.BySession = 1] = "BySession", e[e.ByMachine = 2] = "ByMachine", e[e.ByCall = 3] = "ByCall" + }(c || (c = {})); + let u = 0; + t.getConstantExperimentGroups = function(e) { + const n = {}; + for (const r in t.ABExperiments) { + n[r] = "[VARIABLE]"; + const o = t.ABExperiments[r]; + o.granularity !== c.ByCall && (n[r] = o.getGroup(e)) + } + return n + }, t.ABExperiments = { + treesitter_server_trimming_unbuffered: new class { + constructor(e, t, n, r) { + this.counter = Math.floor(Date.now() / 1e3), this.granularity = e, this.timeRange = r ? [r[0], r[1]] : [void 0, void 0]; + let o = 0; + this.default = n; + for (const e in t) { + if ("" === e) throw new Error("Group names cannot be empty"); + if (t[e] < 0) throw new Error("Classes must have positive numbers"); + o += t[e] + } + this.groups = {}; + for (const e in t) this.groups[e] = t[e] / o; + this.uniqueExperimentId = u++ + } + getGroup(e) { + const t = e.get(a.Clock).now(), + n = e.get(s.VscInfo); + if ((0, i.inTestMode)(e) || !(0, s.isProduction)(e)) return this.default; + if (void 0 !== this.timeRange[0] && t < this.timeRange[0] || void 0 !== this.timeRange[1] && t > this.timeRange[1]) return this.default; + if (this.currentGroup) return this.currentGroup; + switch (this.granularity) { + case c.ByUser: + return r.copilotTrackingId ? (this.currentGroup = this.getGroupFromString(r.copilotTrackingId), this.currentGroup) : this.default; + case c.BySession: + return this.currentGroup = this.getGroupFromString(n.sessionId), this.currentGroup; + case c.ByMachine: + return this.currentGroup = this.getGroupFromString(n.machineId), this.currentGroup; + case c.ByCall: + return this.getGroupFromString(String(this.counter++)) + } + } + hash(e) { + return (0, o.SHA256)(e).words[0] + } + getGroupFromString(e) { + let t = this.hash(e + this.uniqueExperimentId); + t = Math.abs(t); + const n = Math.pow(2, 31); + for (const e in this.groups) { + const r = this.groups[e] * n; + if (t < r) return e; + t -= r + } + return this.default + } + }(c.ByUser, { + parsing: 50, + server: 50 + }, "parsing", [void 0, new Date("2021-11-10")]) + } + }, + 5765: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.CopilotTokenManagerFromGitHubToken = t.FixedCopilotTokenManager = t.CopilotTokenManager = t.setTrackingIdFromToken = t.extractTrackingIdFromToken = t.authFromGitHubToken = t.nowSeconds = void 0; + const r = n(5798), + o = n(1045), + i = n(5489), + s = new r.Logger(r.LogLevel.INFO, "auth"); + + function a() { + return Math.floor(Date.now() / 1e3) + } + async function c(e, t) { + var n; + (0, i.telemetry)(e, "auth.new_login"); + const r = await (0, o.fetch)("https://api.github.com/copilot_internal/v2/token", { + headers: { + Authorization: `token ${t}` + } + }); + if (!r) return s.info(e, "Failed to get copilot token"), (0, i.telemetryError)(e, "auth.request_failed"), { + kind: "failure", + reason: "FailedToGetToken" + }; + const c = await r.json(); + if (!c) return s.info(e, "Failed to get copilot token"), (0, i.telemetryError)(e, "auth.request_read_failed"), { + kind: "failure", + reason: "FailedToGetToken" + }; + if (!r.ok || !c.token) return s.info(e, `Invalid copilot token: missing token: ${r.status} ${r.statusText}`), (0, i.telemetryError)(e, "auth.invalid_token", i.TelemetryData.createAndMarkAsIssued({ + status: r.status.toString(), + status_text: r.statusText + })), { + kind: "failure", + reason: "NotAuthorized" + }; + const u = a(); + return c.expires_at > u ? (l(c.token), (0, i.telemetry)(e, "auth.new_token"), { + kind: "success", + ...c + }) : (s.info(e, `Invalid copilot token: invalid expires_at:${c.expires_at} now:${u}`), (0, i.telemetryError)(e, "auth.invalid_expires_at", i.TelemetryData.createAndMarkAsIssued({ + expires_at: null !== (n = JSON.stringify(c.expires_at)) && void 0 !== n ? n : "undefined", + now: u.toString() + })), { + kind: "failure", + reason: "FailedToGetToken" + }) + } + + function u(e) { + const t = null == e ? void 0 : e.split(":")[0]; + if (!t.includes("=")) return t; { + const e = null == t ? void 0 : t.split(";"); + for (const t of e) { + const [e, n] = t.split("="); + if ("tid" === e) return n + } + } + } + + function l(e) { + const t = u(e); + void 0 !== t && (0, i.setTrackingId)(t) + } + t.nowSeconds = a, t.authFromGitHubToken = c, t.extractTrackingIdFromToken = u, t.setTrackingIdFromToken = l; + class d {} + t.CopilotTokenManager = d, t.FixedCopilotTokenManager = class extends d { + constructor(e) { + super(), this.token = e, l(e) + } + async getCopilotToken(e) { + return this.token + } + resetCopilotToken(e, t) {} + }, t.CopilotTokenManagerFromGitHubToken = class extends d { + constructor(e) { + super(), this.githubToken = e, this.copilotToken = void 0 + } + async getCopilotToken(e) { + var t; + if (!this.copilotToken || this.copilotToken.expires_at < a()) { + const n = await c(e, this.githubToken); + if ("failure" === n.kind) throw Error(`Failed to get copilot token: ${n.reason.toString()} ${null!==(t=n.message)&&void 0!==t?t:""}`); + this.copilotToken = { + ...n + } + } + return this.copilotToken.token + } + async checkCopilotToken(e) { + if (!this.copilotToken || this.copilotToken.expires_at < a()) { + const t = await c(e, this.githubToken); + if ("failure" === t.kind) return t; + this.copilotToken = t + } + return "OK" + } + resetCopilotToken(e, t) { + (0, i.telemetry)(e, "auth.reset_token_" + t), s.debug(e, `Resetting copilot token on HTTP error ${t}`), this.copilotToken = void 0 + } + } + }, + 150: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.TELEMETRY_TERMS_URL = t.LAST_TELEMETRY_TERMS_UPDATE = void 0, t.LAST_TELEMETRY_TERMS_UPDATE = "2021-10-14", t.TELEMETRY_TERMS_URL = "https://github.co/copilot-telemetry-terms" + }, + 5135: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ChangeTracker = void 0; + const r = n(819); + t.ChangeTracker = class { + constructor(e, t, n) { + this._referenceCount = 0, this._isDisposed = !1, this._offset = n; + const o = e.get(r.TextDocumentManager); + this._tracker = o.onDidChangeTextDocument((async e => { + if (e.document.uri === t) + for (const t of e.contentChanges) + if (t.rangeOffset + t.rangeLength <= this.offset) { + const e = t.text.length - t.rangeLength; + this._offset = this._offset + e + } + })) + } + get offset() { + return this._offset + } + push(e, t) { + if (this._isDisposed) throw new Error("Unable to push new actions to a disposed ChangeTracker"); + this._referenceCount++, setTimeout((() => { + e(), this._referenceCount--, 0 === this._referenceCount && (this._tracker.dispose(), this._isDisposed = !0) + }), t) + } + } + }, + 2137: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.Clock = void 0, t.Clock = class { + now() { + return new Date + } + } + }, + 140: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.LRUCache = t.keyForPrompt = void 0; + const r = n(6679); + t.keyForPrompt = function(e) { + return (0, r.SHA256)(e.prefix + e.suffix).toString() + }, t.LRUCache = class { + constructor(e = 10) { + this.values = new Map, this.lruKeys = [], this.size = e + } + removeKeyFromLRU(e) { + const t = this.lruKeys.indexOf(e); - 1 !== t && this.lruKeys.splice(t, 1) + } + touchKeyInLRU(e) { + this.removeKeyFromLRU(e), this.lruKeys.push(e) + } + clear() { + this.values.clear(), this.lruKeys = [] + } + deleteKey(e) { + this.removeKeyFromLRU(e), void 0 !== this.values.get(e) && this.values.delete(e) + } + get(e) { + if (this.values.has(e)) { + const t = this.values.get(e); + return this.touchKeyInLRU(e), t + } + } + put(e, t) { + let n = []; + this.values.has(e) ? n = [e] : this.lruKeys.length >= this.size && (n = this.lruKeys.splice(0, 1)); + for (const e of n) this.deleteKey(e); + this.values.set(e, t), this.touchKeyInLRU(e) + } + } + }, + 3940: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.debounce = t.debouncePromise = void 0, t.debouncePromise = function(e, t) { + let n; + return (...r) => (n && clearTimeout(n), new Promise((o => { + n = setTimeout((async () => { + const e = await t(...r); + o(e) + }), e) + }))) + }, t.debounce = function(e, t) { + let n; + return (...r) => (n && clearTimeout(n), new Promise((o => { + n = setTimeout((() => { + const e = t(...r); + o(e) + }), e) + }))) + } + }, + 1661: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.asyncIterableFromArray = t.asyncIterableMapFilter = t.asyncIterableFilter = t.asyncIterableMap = void 0, t.asyncIterableMap = async function*(e, t) { + for await (const n of e) yield t(n) + }, t.asyncIterableFilter = async function*(e, t) { + for await (const n of e) await t(n) && (yield n) + }, t.asyncIterableMapFilter = async function*(e, t) { + for await (const n of e) { + const e = await t(n); + void 0 !== e && (yield e) + } + }, t.asyncIterableFromArray = async function*(e) { + for (const t of e) yield t + } + }, + 9800: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.EditorAndPluginInfo = t.formatNameAndVersion = t.getTestVscInfo = t.VscInfo = t.getVersion = t.getBuild = t.getBuildType = t.isProduction = t.BuildInfo = t.getEnabledConfig = t.getLanguageConfig = t.dumpConfig = t.isDefaultSettingOverwritten = t.getConfig = t.getConfigDefaultForObjectKey = t.getConfigDefaultForKey = t.DefaultsOnlyConfigProvider = t.ConfigProvider = t.FixedBlockModeConfig = t.BlockModeConfig = t.BuildType = t.BlockMode = t.ConfigKey = void 0; + const r = n(8139), + o = n(9876); + var i, s; + t.ConfigKey = { + Enable: "enable", + InlineSuggestEnable: "inlineSuggest.enable", + DisplayStyle: ["advanced", "displayStyle"], + SecretKey: ["advanced", "secret_key"], + SolutionLength: ["advanced", "length"], + Stops: ["advanced", "stops"], + Temperature: ["advanced", "temperature"], + TopP: ["advanced", "top_p"], + IndentationMode: ["advanced", "indentationMode"], + InlineSuggestCount: ["advanced", "inlineSuggestCount"], + ListCount: ["advanced", "listCount"], + DebugOverrideProxyUrl: ["advanced", "debug.overrideProxyUrl"], + DebugTestOverrideProxyUrl: ["advanced", "debug.testOverrideProxyUrl"], + DebugOverrideEngine: ["advanced", "debug.overrideEngine"], + DebugShowScores: ["advanced", "debug.showScores"], + DebugOverrideLogLevels: ["advanced", "debug.overrideLogLevels"], + DebugFilterLogCategories: ["advanced", "debug.filterLogCategories"], + DebugLimitPrompts: ["advanced", "debug.limitPrompts"], + DebugIgnoreRepo: ["advanced", "debug.ignoreRepo"] + }, (s = t.BlockMode || (t.BlockMode = {})).Parsing = "parsing", s.Indentation = "indentation", s.Server = "server", (i = t.BuildType || (t.BuildType = {})).DEV = "dev", i.PROD = "prod", i.NIGHTLY = "nightly"; + class a {} + t.BlockModeConfig = a, t.FixedBlockModeConfig = class extends a { + constructor(e) { + super(), this.blockMode = e + } + forLanguage(e, t) { + return this.blockMode + } + }; + class c {} + + function u(e) { + try { + const t = o.contributes.configuration[0].properties[`${r.CopilotConfigPrefix}.${e}`].default; + if (void 0 === t) throw new Error(`Missing config default value: ${r.CopilotConfigPrefix}.${e}`); + return t + } catch (t) { + throw new Error(`Error inspecting config default value ${r.CopilotConfigPrefix}.${e}: ${t}`) + } + } + + function l(e, t) { + try { + const n = o.contributes.configuration[0].properties[`${r.CopilotConfigPrefix}.${e}`].properties[t].default; + if (void 0 === n) throw new Error(`Missing config default value: ${r.CopilotConfigPrefix}.${e}`); + return n + } catch (n) { + throw new Error(`Error inspecting config default value ${r.CopilotConfigPrefix}.${e}.${t}: ${n}`) + } + } + + function d(e, t, n) { + return e.get(c).getLanguageConfig(t, n) + } + t.ConfigProvider = c, t.DefaultsOnlyConfigProvider = class extends c { + getConfig(e) { + return Array.isArray(e) ? l(e[0], e[1]) : u(e) + } + isDefaultSettingOverwritten(e) { + return !1 + } + dumpConfig() { + return { + DUMP_CONFIG: "NOT_IMPLEMENTED" + } + } + getLanguageConfig(e, t) { + const n = this.getConfig(e); + return t && t in n ? n[t] : n["*"] + } + }, t.getConfigDefaultForKey = u, t.getConfigDefaultForObjectKey = l, t.getConfig = function(e, t) { + return e.get(c).getConfig(t) + }, t.isDefaultSettingOverwritten = function(e, t) { + return e.get(c).isDefaultSettingOverwritten(t) + }, t.dumpConfig = function(e) { + return e.get(c).dumpConfig() + }, t.getLanguageConfig = d, t.getEnabledConfig = function(e, n) { + return d(e, t.ConfigKey.Enable, n) + }; + class p { + constructor() { + this.packageJson = o + } + isProduction() { + return "dev" != this.getBuildType() + } + getBuildType() { + return this.packageJson.buildType + } + getVersion() { + return this.packageJson.version + } + getBuild() { + return this.packageJson.build + } + } + t.BuildInfo = p, t.isProduction = function(e) { + return e.get(p).isProduction() + }, t.getBuildType = function(e) { + return e.get(p).getBuildType() + }, t.getBuild = function(e) { + return e.get(p).getBuild() + }, t.getVersion = function(e) { + return e.get(p).getVersion() + }; + class h { + constructor(e, t, n) { + this.sessionId = e, this.machineId = t, this.vsCodeVersion = n + } + } + t.VscInfo = h, t.getTestVscInfo = function() { + return new h("test-session-id", "test-machine-id", "test-vscode-version") + }, t.formatNameAndVersion = function({ + name: e, + version: t + }) { + return `${e}/${t}` + }, t.EditorAndPluginInfo = class {} + }, + 8139: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.PreviewTokens = t.CopilotConfigPrefix = void 0, t.CopilotConfigPrefix = "github.copilot", t.PreviewTokens = 21 + }, + 5611: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.Context = void 0, t.Context = class { + constructor(e) { + var t; + this.baseContext = e, this.constructionStack = [], this.instances = new Map; + const n = null === (t = (new Error).stack) || void 0 === t ? void 0 : t.split("\n"); + n && this.constructionStack.push(...n.slice(1)) + } + get(e) { + const t = this.tryGet(e); + if (t) return t; + throw new Error(`No instance of ${e.name} has been registered.\n${this}`) + } + tryGet(e) { + return this.instances.get(e) || (this.baseContext ? this.baseContext.tryGet(e) : void 0) + } + set(e, t) { + if (this.tryGet(e)) throw new Error(`An instance of ${e.name} has already been registered. Use forceSet() if you're sure it's a good idea.`); + this.instances.set(e, t) + } + forceSet(e, t) { + this.instances.set(e, t) + } + toString() { + var e, t; + let n = " Context created at:\n"; + for (const e of this.constructionStack || []) n += ` ${e}\n`; + return n += null !== (t = null === (e = this.baseContext) || void 0 === e ? void 0 : e.toString()) && void 0 !== t ? t : "", n + } + get debug() { + const e = {}; + for (const [t, n] of this.instances) e[t.name] = n; + return e + } + } + }, + 5680: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.completionContextForDocument = t.CompletionContext = t.completionTypeToString = t.CompletionType = void 0; + const r = n(2369); + var o; + ! function(e) { + e[e.OPEN_COPILOT = 2] = "OPEN_COPILOT", e[e.TODO_QUICK_FIX = 3] = "TODO_QUICK_FIX", e[e.UNKNOWN_FUNCTION_QUICK_FIX = 4] = "UNKNOWN_FUNCTION_QUICK_FIX" + }(o = t.CompletionType || (t.CompletionType = {})), t.completionTypeToString = function(e) { + switch (e) { + case o.OPEN_COPILOT: + return "open copilot"; + case o.TODO_QUICK_FIX: + return "todo quick fix"; + case o.UNKNOWN_FUNCTION_QUICK_FIX: + return "unknown function quick fix"; + default: + return "unknown" + } + }; + class i { + constructor(e, t, n) { + this.prependToCompletion = "", this.appendToCompletion = "", this.indentation = null, this.completionType = o.OPEN_COPILOT, this.insertPosition = e.get(r.LocationFactory).position(t.line, t.character), this.completionType = n + } + static fromJSONParse(e, t) { + const n = e.get(r.LocationFactory).position(t.insertPosition.line, t.insertPosition.character), + o = new i(e, n, t.completionType); + return o.prependToCompletion = t.prependToCompletion, o.appendToCompletion = t.appendToCompletion, o.indentation = t.indentation, o + } + } + t.CompletionContext = i, t.completionContextForDocument = function(e, t, n) { + let r = n; + const s = t.lineAt(n.line); + return s.isEmptyOrWhitespace || (r = s.range.end), new i(e, r, o.OPEN_COPILOT) + } + }, + 6317: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.launchSolutions = t.normalizeCompletionText = void 0; + const r = n(7057), + o = n(598), + i = n(5798), + s = n(5489), + a = n(2273), + c = n(7917), + u = n(1661), + l = n(3883), + d = n(5680), + p = n(7553), + h = n(4090), + m = n(9800), + f = n(6635), + g = n(2369), + y = n(3591), + _ = new i.Logger(i.LogLevel.INFO, "solutions"); + async function v(e, t, n) { + if (t.isCancellationRequested) return e.removeProgress(), { + status: "FinishedWithError", + error: "Cancelled" + }; + const r = await n.next(); + return !0 === r.done ? (e.removeProgress(), { + status: "FinishedNormally" + }) : { + status: "Solution", + solution: r.value, + next: v(e, t, n) + } + } + t.normalizeCompletionText = function(e) { + return e.replace(/\s+/g, "") + }, t.launchSolutions = async function(e, t) { + var n, i; + const b = t.completionContext.insertPosition, + k = t.completionContext.prependToCompletion, + w = t.completionContext.indentation, + j = e.get(g.LocationFactory), + x = await t.getDocument(), + E = await (0, h.extractPrompt)(e, x, b); + if ("contextTooShort" === E.type) return t.reportCancelled(), { + status: "FinishedWithError", + error: "Context too short" + }; + const C = E.prompt, + S = E.trailingWs; + S.length > 0 && (t.startPosition = j.position(t.startPosition.line, t.startPosition.character - S.length)); + const T = t.getCancellationToken(), + P = r.v4(); + if (t.savedTelemetryData = s.TelemetryData.createAndMarkAsIssued({ + headerRequestId: P, + languageId: x.languageId, + source: (0, d.completionTypeToString)(t.completionContext.completionType) + }, { + ...(0, s.telemetrizePromptLength)(C), + solutionCount: t.solutionCountTarget, + promptEndPos: x.offsetAt(b) + }), t.completionContext.completionType === d.CompletionType.TODO_QUICK_FIX) { + const e = C.prefix.split("\n"), + t = e.pop(), + n = e.pop(); + if (n) { + const r = /^\W+(todo:?\s+)/i.exec(n); + if (r) { + const o = r[1], + i = n.replace(o, ""); + C.prefix = e.join("\n") + "\n" + i + "\n" + t + } + } + } + t.completionContext.completionType === d.CompletionType.UNKNOWN_FUNCTION_QUICK_FIX && (C.prefix += t.completionContext.prependToCompletion), _.info(e, `prompt: ${JSON.stringify(C)}`), _.debug(e, `prependToCompletion: ${k}`), (0, s.telemetry)(e, "solution.requested", t.savedTelemetryData); + const I = e.get(m.BlockModeConfig).forLanguage(e, x.languageId), + R = (0, a.isSupportedLanguageId)(x.languageId), + O = (0, c.contextIndentation)(x, b), + A = { + stream: !0, + extra: { + language: x.languageId, + next_indent: null !== (n = O.next) && void 0 !== n ? n : 0 + } + }; + "parsing" !== I || R || (A.stop = ["\n\n", "\r\n\r\n"]); + const N = { + prompt: C, + languageId: x.languageId, + repoInfo: (0, y.extractRepoInfoInBackground)(e, x.fileName), + ourRequestId: P, + engineUrl: (0, p.getEngineURL)(e), + count: t.solutionCountTarget, + uiKind: o.CopilotUiKind.Panel, + postOptions: A + }; + let D; + const M = t.completionContext.completionType === d.CompletionType.UNKNOWN_FUNCTION_QUICK_FIX ? [d.CompletionType.UNKNOWN_FUNCTION_QUICK_FIX, t.completionContext.prependToCompletion] : t.completionContext.completionType; + switch (I) { + case m.BlockMode.Indentation: + D = (0, c.indentationBlockFinished)(O, void 0); + break; + case m.BlockMode.Server: + D = async e => {}, A.extra.force_indent = null !== (i = O.prev) && void 0 !== i ? i : -1; + break; + case m.BlockMode.Parsing: + default: + D = R ? function(e, t, n, r) { + return async o => { + if (r instanceof Array) { + const [i, s] = r; + return (0, c.isBlockBodyFinishedWithPrefix)(e, t, n, o, s) + } + return (0, c.isBlockBodyFinished)(e, t, n, o) + } + }(e, x, t.startPosition, M) : async e => {} + } + e.get(f.StatusReporter).setProgress(); + const q = await e.get(o.OpenAIFetcher).fetchAndStreamCompletions(e, N, D, T); + if ("Failed" === q || "Cancelled" === q) return t.reportCancelled(), e.get(f.StatusReporter).removeProgress(), { + status: "FinishedWithError", + error: q + }; + let L = q.choices; + L = async function*(e, t) { + for await (const n of e) { + const e = { + ...n + }; + e.completionText = t + e.completionText.trimRight(), yield e + } + }(L, k), null !== w && (L = (0, o.cleanupIndentChoices)(L, w)), L = (0, u.asyncIterableMapFilter)(L, (async t => (0, l.postProcessChoice)(e, "solution", x, b, t, !1, _))); + const $ = (0, u.asyncIterableMapFilter)(L, (async n => { + let r = n.completionText; + if (_.info(e, `Open Copilot completion: [${n.completionText}]`), t.completionContext.completionType === d.CompletionType.OPEN_COPILOT || t.completionContext.completionType === d.CompletionType.TODO_QUICK_FIX) { + let t = ""; + const o = await (0, c.getNodeStart)(e, x, b, n.completionText); + if (o)[t] = (0, h.trimLastLine)(x.getText(j.range(j.position(o.line, o.character), b))); + else { + const e = j.position(b.line, 0); + t = x.getText(j.range(e, b)) + } + r = t + r + } + let o = n.completionText; + t.completionContext.completionType === d.CompletionType.TODO_QUICK_FIX && (x.lineAt(b.line).isEmptyOrWhitespace || (o += "\n")), S.length > 0 && o.startsWith(S) && (o = o.substring(S.length)); + const i = n.meanLogProb; + return { + displayText: r, + meanProb: void 0 !== i ? Math.exp(i) : 0, + meanLogProb: i || 0, + completionText: o, + requestId: n.requestId, + choiceIndex: n.choiceIndex, + prependToCompletion: k + } + })); + return v(e.get(f.StatusReporter), T, $[Symbol.asyncIterator]()) + } + }, + 446: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.registerDefaultHandlers = void 0; + const r = n(1045), + o = n(5489); + t.registerDefaultHandlers = function(e, t) { + process.addListener("uncaughtException", (t => { + const n = new Error("Uncaught exception logged to restricted telemetry"); + o.telemetryException(e, n, o.TelemetryData.createAndMarkAsIssued({ + origin: "uncaughtException" + }), !1), o.telemetryException(e, t, o.TelemetryData.createAndMarkAsIssued({ + origin: "uncaughtException" + }), !0) + })), process.addListener("unhandledRejection", ((n, i) => { + if ("vscode" === t && !n) return; + if ("aborted" === n.type || n instanceof r.AbortError) return; + if ("vscode" === t && ["ENOTFOUND", "ECONNREFUSED", "ECONNRESET", "ETIMEDOUT", "ENETDOWN", "ENETUNREACH", "EADDRNOTAVAIL"].includes(n.code)) return; + if ("ENOENT" == n.code) return; + let s = ""; + try { + s = `${n.message} (${n.code})`, s = JSON.stringify(n) + } catch (e) { + s = "[actual reason JSON was cyclic]" + } + "vscode" === t && "{}" === s || (o.telemetryError(e, "unhandledRejection", o.TelemetryData.createAndMarkAsIssued({ + origin: "unhandledRejection", + reason: "Unhandled rejection logged to restricted telemetry" + }), !1), o.telemetryError(e, "unhandledRejection", o.TelemetryData.createAndMarkAsIssued({ + origin: "unhandledRejection", + reason: s + }), !0)) + })) + } + }, + 5225: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.registerDocumentTracker = t.sortByAccessTimes = void 0; + const r = n(819), + o = new Map; + t.sortByAccessTimes = function(e) { + return [...e].sort(((e, t) => { + var n, r; + const i = null !== (n = o.get(e.uri.toString())) && void 0 !== n ? n : 0; + return (null !== (r = o.get(t.uri.toString())) && void 0 !== r ? r : 0) - i + })) + }, t.registerDocumentTracker = e => e.get(r.TextDocumentManager).onDidFocusTextDocument((e => { + e && o.set(e.document.uri.toString(), Date.now()) + })) + }, + 6905: (e, t) => { + "use strict"; + var n, r; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.Features = t.Experiments = t.IncludePrompt = void 0, + function(e) { + e.None = "none", e.Conservative = "conservatively", e.Medium = "medium", e.Eager = "eager", e.LittleEager = "little_eager" + }(n = t.IncludePrompt || (t.IncludePrompt = {})), + function(e) { + e.AA = "copilotaa", e.IncludePrompt = "copilotincludeprompt", e.Ghgh = "copilotghgh2", e.Set1 = "copilotset1", e.Fim = "copilotfim", e.CustomEngine = "copilotcustomengine" + }(r = t.Experiments || (t.Experiments = {})), t.Features = class { + constructor() { + this._map = new Map, this.TimeBucket = "" + } + set(e, t) { + void 0 === t ? this._map.delete(e) : "boolean" == typeof t ? this._map.set(e, t ? "true" : "false") : "string" == typeof t && this._map.set(e, t) + } + getMap() { + return this._map + } + stringify() { + return JSON.stringify(Object.fromEntries(this._map)) + } + inAA() { + var e; + return null !== (e = this.string2bool(this._map.get(r.AA))) && void 0 !== e && e + } + inSet1() { + return this.string2bool(this._map.get(r.Set1)) + } + inGhgh() { + var e; + return null !== (e = this.string2bool(this._map.get(r.Ghgh))) && void 0 !== e && e + } + inFim() { + var e; + return null !== (e = this.string2bool(this._map.get(r.Fim))) && void 0 !== e && e + } + customEngine() { + var e; + return null !== (e = this._map.get(r.CustomEngine)) && void 0 !== e ? e : "" + } + includePrompt() { + const e = this._map.get(r.IncludePrompt); + return "conservatively" === e ? n.Conservative : "medium" === e ? n.Medium : "eager" === e ? n.Eager : "little_eager" === e ? n.LittleEager : n.None + } + string2bool(e) { + if (void 0 !== e) return "true" === e + } + } + }, + 3993: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.completionsFromGhostTextResults = void 0; + const r = n(702), + o = n(5034), + i = n(7057), + s = n(2369); + t.completionsFromGhostTextResults = function(e, t, n, a, c, u, l) { + const d = e.get(s.LocationFactory), + p = a.lineAt(c); + let h = t.map((e => { + let t, r = ""; + if (u && (e.completion = (0, o.normalizeIndentCharacter)(u, e.completion, p.isEmptyOrWhitespace)), e.completion.displayNeedsWsOffset && p.isEmptyOrWhitespace) t = d.range(d.position(c.line, 0), c), r = e.completion.completionText; + else if (p.isEmptyOrWhitespace && e.completion.completionText.startsWith(p.text)) t = d.range(d.position(c.line, 0), c), r = e.completion.completionText; + else { + const n = !1; + if (e.isMiddleOfTheLine) { + const n = a.lineAt(c), + o = d.range(d.position(c.line, 0), c), + i = a.getText(o); + t = e.coversSuffix ? n.range : o, r = i + e.completion.displayText + } else if (n) { + const o = a.getText(n); + t = d.range(n.start, c), r = o + e.completion.completionText + } else { + const n = d.range(d.position(c.line, 0), c); + t = n, r = a.getText(n) + e.completion.displayText + } + } + return { + uuid: (0, i.v4)(), + text: r, + range: t, + file: a.uri, + index: e.completion.completionIndex, + telemetry: e.telemetry, + displayText: e.completion.displayText, + position: c, + offset: a.offsetAt(c), + resultType: n + } + })); + if (n === r.ResultType.TypingAsSuggested && void 0 !== l) { + const e = h.find((e => e.index === l)); + if (e) { + const t = h.filter((e => e.index !== l)); + h = [e, ...t] + } + } + return h + } + }, + 702: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getGhostText = t.completionCache = t.ResultType = t.ghostTextLogger = void 0; + const r = n(4617), + o = n(1045), + i = n(7057), + s = n(140), + a = n(3940), + c = n(1661), + u = n(9800), + l = n(8139), + d = n(5798), + p = n(7553), + h = n(2031), + m = n(598), + f = n(6635), + g = n(7917), + y = n(4090), + _ = n(3591), + v = n(1153), + b = n(3883), + k = n(5489), + w = n(7590), + j = n(2369); + var x; + let E, C; + async function S(e, n, r, i) { + var s, a; + t.ghostTextLogger.debug(e, "Getting all completions from network"); + const c = P(e, n), + u = (0, m.getTemperatureForSamples)(e, c), + l = { + stream: !0, + n: c, + temperature: u, + extra: { + language: n.languageId, + next_indent: null !== (s = n.indentation.next) && void 0 !== s ? s : 0 + } + }; + n.multiline || (l.stop = ["\n"]); + const d = Date.now(), + f = (0, p.getEngineURL)(e), + g = k.TelemetryData.createAndMarkAsIssued({ + endpoint: "completions", + engineName: (0, h.extractEngineName)(e, f), + uiKind: h.CopilotUiKind.GhostText, + isCycling: JSON.stringify(n.isCycling), + temperature: JSON.stringify(u), + n: JSON.stringify(c), + stop: null !== (a = JSON.stringify(l.stop)) && void 0 !== a ? a : "unset" + }, (0, k.telemetrizePromptLength)(n.prompt)); + try { + const o = { + prompt: n.prompt, + languageId: n.languageId, + repoInfo: n.repoInfo, + ourRequestId: n.ourRequestId, + engineUrl: f, + count: c, + uiKind: h.CopilotUiKind.GhostText, + postOptions: l + }, + s = await e.get(h.OpenAIFetcher).fetchAndStreamCompletions(e, o, i, r); + if ("Failed" === s) return; + if ("Cancelled" === s) return void t.ghostTextLogger.debug(e, "Cancelled after awaiting fetchCompletions"); + const a = s.choices, + u = []; + for await (const n of a) { + if (null == r ? void 0 : r.isCancellationRequested) { + t.ghostTextLogger.debug(e, "Cancelled after awaiting choices iterator"); + break + } + if (n.completionText.trimEnd()) { + if (-1 !== u.findIndex((e => e.completionText.trim() === n.completionText.trim()))) continue; + u.push(n) + } + } + if (u.length > 0) { + N(e, n, { + multiline: n.multiline, + choices: u + }); + const t = Date.now() - d, + r = s.getProcessingTime(), + o = t - r, + i = u[0], + a = g.extendedBy({}, { + completionCharLen: i.completionText.length, + requestTimeMs: t, + processingTimeMs: r, + deltaMs: o, + meanLogProb: i.meanLogProb || NaN, + meanAlternativeLogProb: i.meanAlternativeLogProb || NaN, + numTokens: i.numTokens + }); + a.extendWithRequestId(i.requestId), (0, k.telemetry)(e, "ghostText.cyclingPerformance", a) + } + return u + } catch (n) { + if (n instanceof o.AbortError) { + const t = g.extendedBy({ + cancelledNetworkRequest: JSON.stringify(!0) + }, { + timeSinceIssuedMs: Date.now() - d + }); + (0, k.telemetry)(e, "ghostText.canceled", t) + } else if (t.ghostTextLogger.error(e, `Error on ghost text request ${n}`), (0, w.inTestMode)(e)) throw n + } + } + + function T(e, t) { + const n = { + ...e + }; + return n.completionText = e.completionText.trimEnd(), t.forceSingleLine && (n.completionText = n.completionText.split("\n")[0]), n + } + + function P(e, t) { + return t.blockMode == u.BlockMode.Server && t.isCycling ? 2 : t.blockMode == u.BlockMode.Server ? 1 : t.blockMode == u.BlockMode.Parsing && t.isCycling && !t.multiline ? 2 : t.multiline ? (0, u.getConfig)(e, u.ConfigKey.InlineSuggestCount) : 1 + } + t.ghostTextLogger = new d.Logger(d.LogLevel.INFO, "ghostText"), + function(e) { + e[e.Network = 0] = "Network", e[e.Cache = 1] = "Cache", e[e.TypingAsSuggested = 2] = "TypingAsSuggested", e[e.Cycling = 3] = "Cycling" + }(x = t.ResultType || (t.ResultType = {})), t.completionCache = new s.LRUCache(100); + const I = (0, a.debouncePromise)(75, (async function(e, n, r, i) { + var s, a; + t.ghostTextLogger.debug(e, "Getting completions from network"); + const c = P(e, n), + u = (0, m.getTemperatureForSamples)(e, c), + l = { + stream: !0, + n: c, + temperature: u, + extra: { + language: n.languageId, + next_indent: null !== (s = n.indentation.next) && void 0 !== s ? s : 0 + } + }; + n.multiline || (l.stop = ["\n"]); + const d = Date.now(), + f = (0, p.getEngineURL)(e), + g = k.TelemetryData.createAndMarkAsIssued({ + endpoint: "completions", + engineName: (0, h.extractEngineName)(e, f), + uiKind: h.CopilotUiKind.GhostText, + isCycling: JSON.stringify(n.isCycling), + temperature: JSON.stringify(u), + n: JSON.stringify(c), + stop: null !== (a = JSON.stringify(l.stop)) && void 0 !== a ? a : "unset" + }, (0, k.telemetrizePromptLength)(n.prompt)); + try { + const o = { + prompt: n.prompt, + languageId: n.languageId, + repoInfo: n.repoInfo, + ourRequestId: n.ourRequestId, + engineUrl: f, + count: c, + uiKind: h.CopilotUiKind.GhostText, + postOptions: l + }, + s = await e.get(h.OpenAIFetcher).fetchAndStreamCompletions(e, o, i, r); + if ("Failed" == s) return; + if ("Cancelled" == s) return void t.ghostTextLogger.debug(e, "Cancelled after awaiting fetchCompletions"); + const a = s.choices[Symbol.asyncIterator](), + u = await a.next(); + if (u.done) return void t.ghostTextLogger.debug(e, "All choices redacted"); + if (null == r ? void 0 : r.isCancellationRequested) return void t.ghostTextLogger.debug(e, "Cancelled after awaiting redactedChoices iterator"); + const p = u.value; + if (void 0 === p) return void t.ghostTextLogger.debug(e, "Got undefined choice from redactedChoices iterator"); + const m = Date.now() - d, + y = s.getProcessingTime(), + _ = m - y, + v = g.extendedBy({}, { + completionCharLen: p.completionText.length, + requestTimeMs: m, + processingTimeMs: y, + deltaMs: _, + meanLogProb: p.meanLogProb || NaN, + meanAlternativeLogProb: p.meanAlternativeLogProb || NaN, + numTokens: p.numTokens + }); + v.extendWithRequestId(p.requestId), (0, k.telemetry)(e, "ghostText.performance", v); + const b = c - 1; + t.ghostTextLogger.debug(e, `Awaited first result, id: ${p.choiceIndex}`), A(e, n, { + multiline: n.multiline, + choices: [p] + }); + const j = []; + for (let e = 0; e < b; e++) j.push(a.next()); + const x = Promise.all(j).then((r => { + t.ghostTextLogger.debug(e, `Awaited remaining results, number of results: ${r.length}`); + const o = []; + for (const n of r) { + const r = n.value; + if (void 0 !== r && (t.ghostTextLogger.info(e, `GhostText later completion: [${r.completionText}]`), r.completionText.trimEnd())) { + if (-1 !== o.findIndex((e => e.completionText.trim() === r.completionText.trim()))) continue; + if (r.completionText.trim() === p.completionText.trim()) continue; + o.push(r) + } + } + o.length > 0 && N(e, n, { + multiline: n.multiline, + choices: o + }) + })); + return (0, w.inTestMode)(e) && await x, T(u.value, { + forceSingleLine: !1 + }) + } catch (n) { + if (n instanceof o.AbortError) { + const t = g.extendedBy({ + cancelledNetworkRequest: JSON.stringify(!0) + }, { + timeSinceIssuedMs: Date.now() - d + }); + (0, k.telemetry)(e, "ghostText.canceled", t) + } else if (t.ghostTextLogger.error(e, `Error on ghost text request ${n}`), (0, w.inTestMode)(e)) throw n + } + })), + R = (0, a.debouncePromise)(75, (async function(e, n, r) { + t.ghostTextLogger.debug(e, "Getting indentation mode completions from network"); + const i = (0, m.getTemperatureForSamples)(e, 1), + s = { + stream: !0, + temperature: i + }, + a = Date.now(), + c = (0, p.getEngineURL)(e), + d = k.TelemetryData.createAndMarkAsIssued({ + endpoint: "completions", + engineName: (0, h.extractEngineName)(e, c), + uiKind: h.CopilotUiKind.GhostText, + isCycling: JSON.stringify(n.isCycling), + temperature: JSON.stringify(i), + n: JSON.stringify(1), + blockMode: "indentation" + }, (0, k.telemetrizePromptLength)(n.prompt)); + async function f(n, o, i) { + var u; + const l = { + max_tokens: o, + ...s + }, + p = { + prompt: n.prompt, + languageId: n.languageId, + ourRequestId: n.ourRequestId, + repoInfo: n.repoInfo, + engineUrl: c, + count: 1, + uiKind: h.CopilotUiKind.GhostText, + allowEmptyChoices: void 0 !== i, + postOptions: l + }, + m = (0, g.indentationBlockFinished)(n.indentation, i), + f = await e.get(h.OpenAIFetcher).fetchAndStreamCompletions(e, p, m, r); + if ("Failed" === f) return; + if ("Cancelled" === f) return void t.ghostTextLogger.debug(e, "Cancelled after awaiting fetch in single completion"); + const y = f.choices[Symbol.asyncIterator](), + _ = await y.next(); + if (_.done) return void t.ghostTextLogger.debug(e, "No single completion received"); + if (null == r ? void 0 : r.isCancellationRequested) return void t.ghostTextLogger.debug(e, "Cancelled after awaiting streamChoices in single completion"); + const v = _.value, + b = Date.now() - a, + k = f.getProcessingTime(), + w = b - k, + j = d.extendedBy({ + headerRequestId: v.requestId.headerRequestId, + completionId: v.requestId.completionId, + created: v.requestId.created.toString(), + serverExperiments: v.requestId.serverExperiments, + blockFinished: null !== (u = JSON.stringify(v.blockFinished)) && void 0 !== u ? u : "unknown" + }, { + completionCharLen: v.completionText.length, + requestTimeMs: b, + processingTimeMs: k, + deltaMs: w, + meanLogProb: v.meanLogProb || NaN, + meanAlternativeLogProb: v.meanAlternativeLogProb || NaN, + numTokens: v.numTokens + }); + return [v, j] + } + try { + const r = (0, u.getConfig)(e, u.ConfigKey.SolutionLength) - l.PreviewTokens, + o = await f(n, l.PreviewTokens, void 0); + if (void 0 === o) return; + const [i, s] = o; + if ((0, k.telemetry)(e, "ghostText.preview", s), t.ghostTextLogger.info(e, `Received preview. Preview ${i.blockFinished?"finished":"did not finish"} the block`), i.blockFinished) return A(e, n, { + multiline: !0, + choices: [i] + }), T(i, { + forceSingleLine: !1 + }); { + const o = { + prefix: n.prompt.prefix + i.completionText, + suffix: n.prompt.suffix + }, + a = await f({ + ...n, + prompt: o + }, r, i.completionText); + if (void 0 === a) return T(i, { + forceSingleLine: !1 + }); + const [c, u] = a, l = u.extendedBy({ + previewHeaderRequestId: i.requestId.headerRequestId, + previewCompletionId: i.requestId.completionId + }, { + totalCompletionCharLen: i.completionText.length + c.completionText.length, + totalRequestTimeMs: s.measurements.requestTimeMs + u.measurements.requestTimeMs, + totalTokens: i.numTokens + c.numTokens + }); + (0, k.telemetry)(e, "ghostText.continuation", l); + const d = { + completionText: i.completionText + c.completionText, + meanLogProb: i.meanLogProb, + meanAlternativeLogProb: i.meanAlternativeLogProb, + choiceIndex: 0, + requestId: i.requestId, + modelInfo: i.modelInfo, + tokens: i.tokens.concat(c.tokens), + numTokens: i.numTokens + c.numTokens, + blockFinished: c.blockFinished + }; + return t.ghostTextLogger.info(e, `Received continuation. Continuation ${c.blockFinished?"finished":"did not finish"} the block`), A(e, n, { + multiline: !0, + choices: [d] + }), T(d, { + forceSingleLine: !1 + }) + } + } catch (n) { + if (n instanceof o.AbortError) { + const t = d.extendedBy({ + cancelledNetworkRequest: JSON.stringify(!0) + }, { + timeSinceIssuedMs: Date.now() - a + }); + (0, k.telemetry)(e, "ghostText.canceled", t) + } else if (t.ghostTextLogger.error(e, `Error on ghost text request ${n}`), (0, w.inTestMode)(e)) throw n + } + })); + + function O(e, t) { + E = e, C = t + } + + function A(e, n, r) { + const o = (0, s.keyForPrompt)(n.prompt); + O(n.prefix, o), t.completionCache.put(o, r), t.ghostTextLogger.debug(e, `Cached ghost text for key: ${o}, multiline: ${r.multiline}, number of suggestions: ${r.choices.length}`) + } + + function N(e, n, r) { + const o = (0, s.keyForPrompt)(n.prompt), + i = t.completionCache.get(o); + i && i.multiline === r.multiline ? t.completionCache.put(o, { + multiline: i.multiline, + choices: i.choices.concat(r.choices) + }) : t.completionCache.put(o, r), t.ghostTextLogger.debug(e, `Appended cached ghost text for key: ${o}, multiline: ${r.multiline}, number of suggestions: ${r.choices.length}`) + } + + function D(e, n) { + const r = t.completionCache.get(e); + if (r && (!n || r.multiline)) return r.choices + } + + function M(e, t, n) { + if (n.length > 0) { + if (t.startsWith(n)) return { + completionIndex: e, + completionText: t, + displayText: t.substr(n.length), + displayNeedsWsOffset: !1 + }; { + const r = t.substr(0, t.length - t.trimLeft().length); + return n.startsWith(r) ? { + completionIndex: e, + completionText: t, + displayText: t.trimLeft(), + displayNeedsWsOffset: !0 + } : { + completionIndex: e, + completionText: t, + displayText: t, + displayNeedsWsOffset: !1 + } + } + } + return { + completionIndex: e, + completionText: t, + displayText: t, + displayNeedsWsOffset: !1 + } + } + + function q(e, n, r) { + const o = n.requestId, + i = { + choiceIndex: n.choiceIndex.toString() + }, + s = { + numTokens: n.numTokens, + compCharLen: n.completionText.length, + numLines: n.completionText.split("\n").length + }; + n.meanLogProb && (s.meanLogProb = n.meanLogProb), n.meanAlternativeLogProb && (s.meanAlternativeLogProb = n.meanAlternativeLogProb); + const a = r.extendedBy(i, s); + return a.extendWithRequestId(o), a.measurements.confidence = (0, v.ghostTextScoreConfidence)(e, a), a.measurements.quantile = (0, v.ghostTextScoreQuantile)(e, a), t.ghostTextLogger.debug(e, `Extended telemetry for ${r.properties.headerRequestId} with retention confidence ${a.measurements.confidence} (expected as good or better than about ${a.measurements.quantile} of all suggestions)`), a + } + t.getGhostText = async function(e, n, o, a, l, d, p) { + var h, m; + const v = function(e, t) { + const n = (o = t, 0 != e.lineAt(o).text.substr(o.character).trim().length), + r = function(e, t) { + const n = t.lineAt(e).text.substr(e.character).trim(); + return /^\s*[)}\]"'`]*\s*[:{;,]?\s*$/.test(n) + }(t, e); + var o; + if (!n || r) return n && r + }(n, o); + if (void 0 === v) return void t.ghostTextLogger.debug(e, "Breaking, invalid middle of the line"); + const w = a.trailingWs, + P = e.get(f.StatusReporter), + A = e.get(j.LocationFactory), + N = l !== u.BlockMode.Parsing || await async function(e, t, n, o) { + if (t.lineCount >= 8e3)(0, k.telemetry)(e, "ghostText.longFileMultilineSkip", k.TelemetryData.createAndMarkAsIssued({ + languageId: t.languageId, + lineCount: String(t.lineCount), + currentLine: String(n.line) + })); + else { + if (!o && (0, r.isSupportedLanguageId)(t.languageId)) return await (0, g.isEmptyBlockStart)(t, n); + if (o && (0, r.isSupportedLanguageId)(t.languageId)) return await (0, g.isEmptyBlockStart)(t, n) || await (0, g.isEmptyBlockStart)(t, t.lineAt(n).range.end) + } + return !1 + }(e, n, o, v); + if (null == p ? void 0 : p.isCancellationRequested) return void t.ghostTextLogger.info(e, "Cancelled after requestMultiline"); + const [L] = (0, y.trimLastLine)(n.getText(A.range(A.position(0, 0), o))), $ = l === u.BlockMode.Server && d || l == u.BlockMode.Parsing && d && !N; + let F = function(e, n, r, o) { + const i = function(e, n, r) { + if (!E || !C || !n.startsWith(E)) return; + const o = D(C, r); + if (!o) return; + const i = n.substring(E.length); + t.ghostTextLogger.debug(e, `Getting completions for user-typing flow - remaining prefix: ${i}`); + const s = []; + return o.forEach((e => { + const t = T(e, { + forceSingleLine: !1 + }); + t.completionText.startsWith(i) && (t.completionText = t.completionText.substring(i.length), s.push(t)) + })), s + }(e, n, o); + if (i && i.length > 0) return [i, x.TypingAsSuggested]; + const a = function(e, n, r, o) { + const i = (0, s.keyForPrompt)(r); + t.ghostTextLogger.debug(e, `Trying to get completions from cache for key: ${i}`); + const a = D(i, o); + if (a) { + t.ghostTextLogger.debug(e, `Got completions from cache for key: ${i}`); + const r = []; + a.forEach((e => { + const t = T(e, { + forceSingleLine: !o + }); + r.push(t) + })); + const s = r.filter((e => e.completionText)); + return s.length > 0 && O(n, i), s + } + }(e, n, r, o); + return a && a.length > 0 ? [a, x.Cache] : void 0 + }(e, L, a.prompt, N); + const z = i.v4(), + B = function(e, t, n, r, o, i, s, a) { + const c = e.get(j.LocationFactory), + l = t.lineAt(n.line), + d = t.getText(c.range(l.range.start, n)), + p = t.getText(c.range(n, l.range.end)), + h = (0, k.ghostTextTelemetry)(t, n, r.prompt, d, p); + if (h.properties.promptChoices = JSON.stringify(r.promptChoices, ((e, t) => t instanceof Map ? Array.from(t.entries()).reduce(((e, [t, n]) => ({ + ...e, + [t]: n + })), {}) : t)), h.measurements.promptComputeTimeMs = r.computeTimeMs, !(0, u.getConfig)(e, u.ConfigKey.DebugIgnoreRepo)) { + const n = (0, _.extractRepoInfoInBackground)(e, t.uri.toString()); + h.properties.gitRepoInformation = void 0 === n ? "unavailable" : n === _.ComputationStatus.PENDING ? "pending" : "available", void 0 !== n && n !== _.ComputationStatus.PENDING && (h.properties.gitRepoUrl = n.url, h.properties.gitRepoHost = n.hostname, h.properties.gitRepoOwner = n.owner, h.properties.gitRepoName = n.repo) + } + return h.properties.isMultiline = JSON.stringify(o), h.properties.blockMode = i, h.properties.isCycling = JSON.stringify(s), h.properties.headerRequestId = a, (0, k.telemetry)(e, "ghostText.issued", h), h + }(e, n, o, a, N, l, $, z); + if ($ && (null !== (h = null == F ? void 0 : F[0].length) && void 0 !== h ? h : 0) > 1 || !$ && void 0 !== F) t.ghostTextLogger.info(e, "Found inline suggestions locally"); + else { + null == P || P.setProgress(); + const t = { + blockMode: l, + languageId: n.languageId, + repoInfo: (0, _.extractRepoInfoInBackground)(e, n.fileName), + ourRequestId: z, + prefix: L, + prompt: a.prompt, + multiline: N, + indentation: (0, g.contextIndentation)(n, o), + isCycling: d + }; + let r; + switch (l) { + case u.BlockMode.Indentation: { + const n = await R(e, t, p); + n && (r = [n]); + break + } + case u.BlockMode.Server: { + const n = async e => {}; + if ($) r = await S(e, t, p, n); + else { + const o = await I(e, t, p, n); + o && (r = [o]) + } + break + } + case u.BlockMode.Parsing: + default: { + const i = async t => { + if (!N) return; + let r; + return r = w.length > 0 && !a.prompt.prefix.endsWith(w) ? A.position(o.line, Math.max(o.character - w.length, 0)) : o, (0, g.isBlockBodyFinished)(e, n, r, t) + }; + if ($ && !N) r = await S(e, t, p, i); + else { + const n = await I(e, t, p, i); + n && (r = [n]) + } + } + } + if (r && $) { + const e = null !== (m = null == F ? void 0 : F[0]) && void 0 !== m ? m : []; + r.forEach((t => { + -1 === e.findIndex((e => e.completionText.trim() === t.completionText.trim())) && e.push(t) + })), F = [e, x.Cycling] + } else r && !$ && (F = [r, x.Network]); + null == P || P.removeProgress() + } + if (!F) return void t.ghostTextLogger.info(e, "Breaking, no choices"); + const [U, H] = F, W = (0, c.asyncIterableMapFilter)((0, c.asyncIterableFromArray)(U), (async r => (0, b.postProcessChoice)(e, "ghostText", n, o, r, v, t.ghostTextLogger))), G = []; + for await (const r of W) { + const i = v && (0, b.checkSuffix)(n, o, r); + if (null == p ? void 0 : p.isCancellationRequested) return void t.ghostTextLogger.info(e, "Cancelled after post processing completions"); + const s = q(e, r, B), + a = { + completion: M(r.choiceIndex, r.completionText, w), + telemetry: s, + isMiddleOfTheLine: v, + coversSuffix: i + }; + G.push(a) + } + return [G, H] + } + }, + 5034: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.normalizeIndentCharacter = void 0, t.normalizeIndentCharacter = function(e, t, n) { + function r(e, t, n) { + const r = new RegExp(`^(${t})+`, "g"); + return e.split("\n").map((e => { + const t = e.replace(r, ""), + o = e.length - t.length; + return n(o) + t + })).join("\n") + } + let o; + if (o = void 0 === e.tabSize || "string" == typeof e.tabSize ? 4 : e.tabSize, !1 === e.insertSpaces) { + const e = e => r(e, " ", (e => "\t".repeat(Math.floor(e / o)) + " ".repeat(e % o))); + t.displayText = e(t.displayText), t.completionText = e(t.completionText) + } else if (!0 === e.insertSpaces) { + const e = e => r(e, "\t", (e => " ".repeat(e * o))); + if (t.displayText = e(t.displayText), t.completionText = e(t.completionText), n) { + const e = e => { + const t = e.length - e.trimLeft().length, + n = t % o; + return 0 !== n && t > 0 ? r(e, " ".repeat(n), (e => " ".repeat((Math.floor(e / o) + 1) * o))) : e + }; + t.displayText = e(t.displayText), t.completionText = e(t.completionText) + } + } + return t + } + }, + 1749: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.telemetryRejected = t.telemetryAccepted = t.telemetryShown = void 0; + const r = n(5489); + t.telemetryShown = function(e, t, n, o) { + n.markAsDisplayed(); + const i = o ? `${t}.shownFromCache` : `${t}.shown`; + (0, r.telemetry)(e, i, n) + }, t.telemetryAccepted = function(e, t, n) { + const o = t + ".accepted"; + (0, r.telemetry)(e, o, n) + }, t.telemetryRejected = function(e, t, n) { + const o = t + ".rejected"; + (0, r.telemetry)(e, o, n) + } + }, + 5798: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.logger = t.toPlainText = t.Logger = t.MultiLog = t.OutputChannelLog = t.ConsoleLog = t.LogTarget = t.verboseLogging = t.LogVerbose = t.LogLevel = void 0; + const r = n(5489), + o = n(9800), + i = n(2137); + var s; + ! function(e) { + e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR" + }(s = t.LogLevel || (t.LogLevel = {})); + class a { + constructor(e) { + this.logVerbose = e + } + } + + function c(e) { + return e.get(a).logVerbose + } + t.LogVerbose = a, t.verboseLogging = c; + class u { + shouldLog(e, t) {} + } + t.LogTarget = u, t.ConsoleLog = class extends u { + constructor(e) { + super(), this.console = e + } + logIt(e, t, n, ...r) { + c(e) || t == s.ERROR ? this.console.error(n, ...r) : t == s.WARN && this.console.warn(n, ...r) + } + }, t.OutputChannelLog = class extends u { + constructor(e) { + super(), this.output = e + } + logIt(e, t, n, ...r) { + this.output.appendLine(`${n} ${r.map(d)}`) + } + }, t.MultiLog = class extends u { + constructor(e) { + super(), this.targets = e + } + logIt(e, t, n, ...r) { + this.targets.forEach((o => o.logIt(e, t, n, ...r))) + } + }; + class l { + constructor(e, t) { + this.minLoggedLevel = e, this.context = t + } + setLevel(e) { + this.minLoggedLevel = e + } + stringToLevel(e) { + return s[e] + } + log(e, t, n, ...o) { + const a = s[t]; + t == s.ERROR && (0, r.telemetryError)(e, "log", r.TelemetryData.createAndMarkAsIssued({ + context: this.context, + level: a, + message: o.length > 0 ? JSON.stringify(o) : "no msg" + }), n); + const c = e.get(u), + l = c.shouldLog(e, t); + if (!1 === l) return; + if (void 0 === l && !this.shouldLog(e, t, this.context)) return; + const d = e.get(i.Clock).now().toISOString(), + p = `[${a}] [${this.context}] [${d}]`; + c.logIt(e, t, p, ...o) + } + shouldLog(e, t, n) { + var r, i; + if (c(e)) return !0; + const s = (0, o.getConfig)(e, o.ConfigKey.DebugFilterLogCategories); + if (s.length > 0 && !s.includes(n)) return !1; + if ((0, o.isProduction)(e)) return t >= this.minLoggedLevel; + const a = (0, o.getConfig)(e, o.ConfigKey.DebugOverrideLogLevels); + return t >= (null !== (i = null !== (r = this.stringToLevel(a["*"])) && void 0 !== r ? r : this.stringToLevel(a[this.context])) && void 0 !== i ? i : this.minLoggedLevel) + } + debug(e, ...t) { + this.log(e, s.DEBUG, !1, ...t) + } + info(e, ...t) { + this.log(e, s.INFO, !1, ...t) + } + warn(e, ...t) { + this.log(e, s.WARN, !1, ...t) + } + error(e, ...t) { + this.log(e, s.ERROR, !1, ...t) + } + secureError(e, t, ...n) { + this.log(e, s.ERROR, !1, t), this.log(e, s.ERROR, !0, t, ...n) + } + } + + function d(e) { + return "object" == typeof e ? JSON.stringify(e) : String(e) + } + t.Logger = l, t.toPlainText = d, t.logger = new l(s.INFO, "default") + }, + 39: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.postRequest = t.init = void 0; + const r = n(3837), + o = n(1045), + i = n(5489); + let s, a = !1; + t.init = function(e) { + if (a) { + if (e !== s) throw new Error(`Networking re-initialized with mismatched version (old: ${s}, new: ${e})`) + } else s = e, a = !0 + }, t.postRequest = function(e, t, n, c, u, l, d, p) { + if (!a) throw new Error("Networking must be initialized before being used"); + const h = { + Authorization: r.format("Bearer %s", n), + "X-Request-Id": l, + "Openai-Organization": "github-copilot", + "VScode-SessionId": u.sessionId, + "VScode-MachineId": u.machineId, + "Editor-Version": "vscode/" + u.vsCodeVersion, + "Editor-Plugin-Version": "copilot/" + s + }; + c && (h["OpenAI-Intent"] = c); + const m = { + method: "POST", + headers: h, + json: d, + timeout: 3e4 + }; + if (p) { + const t = new o.AbortController; + p.onCancellationRequested((() => { + (0, i.telemetry)(e, "networking.cancelRequest", i.TelemetryData.createAndMarkAsIssued({ + headerRequestId: l + })), t.abort() + })), m.signal = t.signal + } + return o.fetch(t, m).catch((n => { + if ("ECONNRESET" == n.code || "ETIMEDOUT" == n.code || "ERR_HTTP2_INVALID_SESSION" == n.code || "ERR_HTTP2_GOAWAY_SESSION" == n.message) return (0, i.telemetry)(e, "networking.disconnectAll"), o.disconnectAll().then((() => o.fetch(t, m))); + throw n + })) + } + }, + 7553: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getEngineURL = t.TEST_ENGINE_PATHS = t.OPENAI_PROXY_HOST = void 0; + const r = n(9800), + o = n(6905), + i = n(7590); + t.OPENAI_PROXY_HOST = "https://copilot-proxy.githubusercontent.com"; + const s = "/v1/engines/copilot-codex", + a = "/v1/engines/copilotset1", + c = "/v1/engines/copilotset1_control"; + t.TEST_ENGINE_PATHS = [s, a, c], t.getEngineURL = function(e) { + return function(e, n) { + let o = function(e) { + return (0, i.inTestMode)(e) ? (0, r.getConfig)(e, r.ConfigKey.DebugTestOverrideProxyUrl) : (0, r.getConfig)(e, r.ConfigKey.DebugOverrideProxyUrl) + }(e); + return 0 == o.length && (o = t.OPENAI_PROXY_HOST), `${o}${n}` + }(e, function(e) { + const t = (0, r.getConfig)(e, r.ConfigKey.DebugOverrideEngine); + if (t) return `/v1/engines/${t}`; + switch (e.get(o.Features).inSet1()) { + case !0: + return a; + case !1: + return c + } + const n = e.get(o.Features).customEngine(); + return "" !== n ? `/v1/engines/${n}` : s + }(e)) + } + }, + 2031: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.LiveOpenAIFetcher = t.postProcessChoices = t.fetchWithInstrumentation = t.OpenAIFetcher = t.extractEngineName = t.getProcessingTime = t.getRequestId = t.CopilotUiKind = void 0; + const r = n(1045), + o = n(3837), + i = n(5765), + s = n(1661), + a = n(9800), + c = n(5798), + u = n(39), + l = n(6635), + d = n(3591), + p = n(5489), + h = n(598), + m = n(4586), + f = new c.Logger(c.LogLevel.INFO, "fetch"); + var g; + + function y(e, t) { + return { + headerRequestId: e.headers.get("x-request-id") || "", + completionId: t && t.id ? t.id : "", + created: t && t.created ? t.created : 0, + serverExperiments: e.headers.get("X-Copilot-Experiment") || "", + clusterName: e.headers.get("X-Copilot-Cluster-Name") || "", + modelEndpoint: e.headers.get("X-Copilot-Model-Endpoint") || "" + } + } + + function _(e) { + const t = e.headers.get("openai-processing-ms"); + return t ? parseInt(t, 10) : 0 + } + + function v(e, t) { + return t.split("/").pop() || (f.error(e, "Malformed engine URL: " + t), t) + }! function(e) { + e.GhostText = "ghostText", e.Panel = "synthesize", e.Sidebar = "sidebar" + }(g = t.CopilotUiKind || (t.CopilotUiKind = {})), t.getRequestId = y, t.getProcessingTime = _, t.extractEngineName = v; + class b {} + + function k(e, t, n, i, s, a, d, h, m, f) { + var _; + const b = e.get(l.StatusReporter), + k = o.format("%s/%s", n, i); + if (!d) return void c.logger.error(e, `Failed to send request to ${k} due to missing key`); + const w = p.TelemetryData.createAndMarkAsIssued({ + endpoint: i, + engineName: v(e, n), + uiKind: m + }, (0, p.telemetrizePromptLength)(t)); + for (const [e, t] of Object.entries(a)) "prompt" != e && "suffix" != e && (w.properties[`request.option.${e}`] = null !== (_ = JSON.stringify(t)) && void 0 !== _ ? _ : "undefined"); + w.properties.headerRequestId = s, (0, p.telemetry)(e, "request.sent", w); + const j = (0, p.now)(), + x = function(e) { + switch (e) { + case g.GhostText: + return "copilot-ghost"; + case g.Panel: + return "copilot-panel"; + case g.Sidebar: + return "copilot-sidebar" + } + }(m); + return (0, u.postRequest)(e, k, d, x, h, s, a, f).then((n => { + const r = y(n, void 0); + w.extendWithRequestId(r); + const o = (0, p.now)() - j; + return w.measurements.totalTimeMs = o, c.logger.info(e, `request.response: [${k}] took ${o} ms`), c.logger.debug(e, "request.response properties", w.properties), c.logger.debug(e, "request.response measurements", w.measurements), c.logger.debug(e, `prompt: ${JSON.stringify(t)}`), (0, p.telemetry)(e, "request.response", w), (0, p.logEnginePrompt)(e, t, w), n + })).catch((t => { + var n, o, i, s; + if (t instanceof r.AbortError) throw t; + b.setWarning(), w.properties.code = String(null !== (n = t.code) && void 0 !== n ? n : ""), w.properties.errno = String(null !== (o = t.errno) && void 0 !== o ? o : ""), w.properties.message = String(null !== (i = t.message) && void 0 !== i ? i : ""), w.properties.type = String(null !== (s = t.type) && void 0 !== s ? s : ""); + const a = (0, p.now)() - j; + throw w.measurements.totalTimeMs = a, c.logger.debug(e, `request.response: [${k}] took ${a} ms`), c.logger.debug(e, "request.error properties", w.properties), c.logger.debug(e, "request.error measurements", w.measurements), c.logger.error(e, `Request Error: ${t.message}`), (0, p.telemetry)(e, "request.error", w), t + })) + } + + function w(e, t) { + return null != t && t ? e : (0, s.asyncIterableFilter)(e, (async e => e.completionText.trim().length > 0)) + } + t.OpenAIFetcher = b, t.fetchWithInstrumentation = k, t.postProcessChoices = w, t.LiveOpenAIFetcher = class extends b { + async fetchAndStreamCompletions(e, t, n, r) { + const o = e.get(l.StatusReporter), + u = { + prompt: t.prompt.prefix, + suffix: t.prompt.suffix, + max_tokens: (0, a.getConfig)(e, a.ConfigKey.SolutionLength), + temperature: (0, h.getTemperatureForSamples)(e, t.count), + top_p: (0, a.getConfig)(e, a.ConfigKey.TopP), + n: t.count + }; + "copilot-alpha" !== (0, a.getConfig)(e, a.ConfigKey.DebugOverrideEngine) && (u.logprobs = 2, u.stop = (0, a.getLanguageConfig)(e, a.ConfigKey.Stops)), e.get(a.BlockModeConfig).forLanguage(e, t.languageId) === a.BlockMode.Server && (u.feature_flags = ["trim_to_block"]); + const p = (0, d.tryGetGitHubNWO)(t.repoInfo); + void 0 !== p && (u.nwo = p), t.postOptions && Object.assign(u, t.postOptions), c.logger.info(e, `[fetchCompletions] engine ${t.engineUrl}`); + const g = await k(e, t.prompt, t.engineUrl, "completions", t.ourRequestId, u, await e.get(i.CopilotTokenManager).getCopilotToken(e), await e.get(a.VscInfo), t.uiKind, r); + if (null == r ? void 0 : r.isCancellationRequested) { + const t = await g.readable(); + try { + t.destroy() + } catch (t) { + c.logger.error(e, `Error destroying stream: ${t}`) + } + return "Cancelled" + } + if (void 0 === g) return o.setWarning(), "Failed"; + if (200 !== g.status) { + if (o.setWarning(), 401 === g.status || 403 === g.status) return e.get(i.CopilotTokenManager).resetCopilotToken(e, g.status), "Failed"; + if (410 === g.status) return e.get(i.CopilotTokenManager).resetCopilotToken(e, g.status), "Failed"; + if (499 === g.status) return f.info(e, "Cancelled by server"), "Failed"; + const t = await g.text(); + return f.error(e, "Unhandled status from server:", g.status, t), "Failed" + } + return { + choices: w((0, s.asyncIterableMap)((0, m.processSSE)(e, g, n, r), (async t => (0, m.prepareSolutionForReturn)(e, t))), t.allowEmptyChoices), + getProcessingTime: () => _(g) + } + } + } + }, + 598: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getTemperatureForSamples = t.calculateMeanAlternativeLogProb = t.calculateMeanLogProb = t.cleanupIndentChoices = t.convertToAPIChoice = t.DEFAULT_CHARACTER_MULTIPLIER = t.MAX_PROMPT_LENGTH = t.LiveOpenAIFetcher = t.OpenAIFetcher = t.CopilotUiKind = t.getRequestId = void 0; + const r = n(7590), + o = n(5798), + i = n(5489), + s = n(9800); + var a = n(2031); + + function c(e, t) { + if (t.logprobs.token_logprobs) try { + let e = 0, + n = 0, + r = 50; + for (let o = 0; o < t.logprobs.token_logprobs.length - 1 && r > 0; o++, r--) e += t.logprobs.token_logprobs[o], n += 1; + return n > 0 ? e / n : void 0 + } catch (t) { + o.logger.error(e, `Error calculating mean prob: ${t}`) + } + } + + function u(e, t) { + if (t.logprobs.top_logprobs) try { + let e = 0, + n = 0, + r = 50; + for (let o = 0; o < t.logprobs.token_logprobs.length - 1 && r > 0; o++, r--) { + const r = { + ...t.logprobs.top_logprobs[o] + }; + delete r[t.logprobs.tokens[o]], e += Math.max(...Object.values(r)), n += 1 + } + return n > 0 ? e / n : void 0 + } catch (t) { + o.logger.error(e, `Error calculating mean prob: ${t}`) + } + } + Object.defineProperty(t, "getRequestId", { + enumerable: !0, + get: function() { + return a.getRequestId + } + }), Object.defineProperty(t, "CopilotUiKind", { + enumerable: !0, + get: function() { + return a.CopilotUiKind + } + }), Object.defineProperty(t, "OpenAIFetcher", { + enumerable: !0, + get: function() { + return a.OpenAIFetcher + } + }), Object.defineProperty(t, "LiveOpenAIFetcher", { + enumerable: !0, + get: function() { + return a.LiveOpenAIFetcher + } + }), t.MAX_PROMPT_LENGTH = 1500, t.DEFAULT_CHARACTER_MULTIPLIER = 3, t.convertToAPIChoice = function(e, t, n, r, o, s, a) { + return (0, i.logEngineCompletion)(e, t, n, o, r), { + completionText: t, + meanLogProb: c(e, n), + meanAlternativeLogProb: u(e, n), + choiceIndex: r, + requestId: o, + modelInfo: a, + blockFinished: s, + tokens: n.logprobs.tokens, + numTokens: n.logprobs.tokens.length + } + }, t.cleanupIndentChoices = async function*(e, t) { + for await (const n of e) { + const e = { + ...n + }, + r = e.completionText.split("\n"); + for (let e = 0; e < r.length; ++e) { + const n = r[e].trimLeft(); + r[e] = "" === n ? n : t + n + } + e.completionText = r.join("\n"), yield e + } + }, t.calculateMeanLogProb = c, t.calculateMeanAlternativeLogProb = u, t.getTemperatureForSamples = function(e, t) { + if ((0, r.inTestMode)(e)) return 0; + const n = parseFloat((0, s.getConfig)(e, s.ConfigKey.Temperature)); + return n >= 0 && n <= 1 ? n : t <= 1 ? 0 : t < 10 ? .2 : t < 20 ? .4 : .8 + } + }, + 4586: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.prepareSolutionForReturn = t.processSSE = t.splitChunk = void 0; + const r = n(5798), + o = n(598), + i = new r.Logger(r.LogLevel.INFO, "streamChoices"); + + function s(e) { + const t = e.split("\n"), + n = t.pop(); + return [t.filter((e => "" != e)), n] + } + t.splitChunk = s, t.processSSE = async function*(e, t, n, r) { + var a, c, u, l, d, p, h, m; + const f = await t.readable(); + f.setEncoding("utf8"); + let g = (0, o.getRequestId)(t); + i.debug(e, `requestId: ${g.headerRequestId}`); + const y = {}; + let _ = ""; + for await (const v of f) { + if (null == r ? void 0 : r.isCancellationRequested) return i.info(e, "Cancelled after awaiting body chunk"), void f.destroy(); + i.debug(e, "chunk", v.toString()); + const [b, k] = s(_ + v.toString()); + _ = k; + for (const s of b) { + const _ = s.slice("data:".length).trim(); + if ("[DONE]" == _) { + for (const [t, n] of Object.entries(y)) { + const o = Number(t); + if (null != n && (yield { + solution: n, + finishOffset: void 0, + reason: "DONE", + requestId: g, + index: o + }, null == r ? void 0 : r.isCancellationRequested)) return i.debug(e, "Cancelled after yielding on DONE"), void f.destroy() + } + return + } + let v; + try { + v = JSON.parse(_) + } catch (t) { + i.error(e, "Error parsing JSON stream data", s); + continue + } + if (void 0 !== v.choices || void 0 === v.error) { + 0 == g.created && (g = (0, o.getRequestId)(t, v), 0 == g.created && i.error(e, `Request id invalid, should have "completionId" and "created": ${g}`, g)); + for (let t = 0; t < v.choices.length; t++) { + const o = v.choices[t]; + i.debug(e, "choice", o), o.index in y || (y[o.index] = { + logprobs: [], + top_logprobs: [], + text: [], + text_offset: [], + tokens: [] + }); + const s = y[o.index]; + if (null == s) continue; + let _; + if (s.text.push(o.text), s.tokens.push(null !== (c = null === (a = o.logprobs) || void 0 === a ? void 0 : a.tokens) && void 0 !== c ? c : []), s.text_offset.push(null !== (l = null === (u = o.logprobs) || void 0 === u ? void 0 : u.text_offset) && void 0 !== l ? l : []), s.logprobs.push(null !== (p = null === (d = o.logprobs) || void 0 === d ? void 0 : d.token_logprobs) && void 0 !== p ? p : []), s.top_logprobs.push(null !== (m = null === (h = o.logprobs) || void 0 === h ? void 0 : h.top_logprobs) && void 0 !== m ? m : []), (o.finish_reason || o.text.indexOf("\n") > -1) && (_ = await n(s.text.join("")), null == r ? void 0 : r.isCancellationRequested)) return i.debug(e, "Cancelled after awaiting finishedCb"), void f.destroy(); + if (o.finish_reason || void 0 !== _) { + if (yield { + solution: s, + finishOffset: _, + reason: JSON.stringify(o.finish_reason), + requestId: g, + index: o.index + }, null == r ? void 0 : r.isCancellationRequested) return i.debug(e, "Cancelled after yielding finished choice"), void f.destroy(); + y[o.index] = null + } + } + } else i.error(e, "Error in response:", v.error.message) + } + } + for (const [t, n] of Object.entries(y)) { + const o = Number(t); + if (null != n && (yield { + solution: n, + finishOffset: void 0, + reason: "Iteration Done", + requestId: g, + index: o + }, null == r ? void 0 : r.isCancellationRequested)) return i.debug(e, "Cancelled after yielding after iteration done"), void f.destroy() + } + if (_.length > 0) try { + const t = JSON.parse(_); + void 0 !== t.error && i.error(e, `Error in response: ${t.error.message}`, t.error) + } catch (t) { + i.error(e, `Error parsing extraData: ${_}`) + } + }, t.prepareSolutionForReturn = function(e, t) { + let n = t.solution.text.join(""), + r = !1; + void 0 !== t.finishOffset && (i.debug(e, `solution ${t.index}: early finish at offset ${t.finishOffset}`), n = n.substring(0, t.finishOffset), r = !0), i.info(e, `solution ${t.index} returned. finish reason: [${t.reason}] finishOffset: [${t.finishOffset}] completionId: [{${t.requestId.completionId}}] created: [{${t.requestId.created}}]`); + const s = function(e, t) { + const n = t.text.length, + r = t.tokens.length, + o = t.text_offset.length, + s = t.logprobs.length; + n === r && n === o && r === s || i.error(e, `Invalid streamingData: numText:${n}, numTokens:${r}, numOffsets:${o}, numLogprobs:${s}`); + const a = t.text.join(""), + c = t.tokens.map((e => e.join(""))).join(""); + c.indexOf(a) < 0 && i.secureError(e, "Invalid streamingData", `joinedText:[${a}] not a substring of joinedTokens:[${c}]`); + return { + text: a, + logprobs: { + token_logprobs: t.logprobs.reduce(((e, t) => e.concat(t)), []), + top_logprobs: t.top_logprobs.reduce(((e, t) => e.concat(t)), []), + text_offset: t.text_offset.reduce(((e, t) => e.concat(t)), []), + tokens: t.tokens.reduce(((e, t) => e.concat(t)), []) + } + } + }(e, t.solution); + return (0, o.convertToAPIChoice)(e, n, s, t.index, t.requestId, r) + } + }, + 3402: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.postInsertionTasks = t.postRejectionTasks = t.captureCode = void 0; + const r = n(5135), + o = n(1749), + i = n(5798), + s = n(7917), + a = n(4090), + c = n(9558), + u = n(5489), + l = n(819), + d = new i.Logger(i.LogLevel.INFO, "post-insertion"), + p = [{ + seconds: 30, + captureCode: !0, + captureRejection: !0 + }, { + seconds: 120, + captureCode: !1, + captureRejection: !1 + }, { + seconds: 300, + captureCode: !1, + captureRejection: !1 + }, { + seconds: 600, + captureCode: !1, + captureRejection: !1 + }]; + async function h(e, t, n) { + const r = await e.get(l.TextDocumentManager).getTextDocument(t); + if (!r) return d.warn(e, `Could not get document for ${t.fsPath}`), { + prompt: { + prefix: "", + suffix: "" + }, + capturedCode: "", + terminationOffset: 0 + }; + const o = r.getText(), + i = o.substring(0, n), + c = r.positionAt(n), + u = await (0, a.extractPrompt)(e, r, c), + p = "prompt" === u.type ? u.prompt : { + prefix: i, + suffix: "" + }, + h = o.substring(n), + m = (0, s.contextIndentationFromText)(i, n, r.languageId), + f = (0, s.indentationBlockFinished)(m, void 0), + g = await f(h), + y = Math.min(o.length, n + (g ? 2 * g : 500)); + return { + prompt: p, + capturedCode: o.substring(n, y), + terminationOffset: null != g ? g : -1 + } + } + + function m(e, t, n, r) { + const o = e.substring(Math.max(0, r - n), Math.min(e.length, r + t.length + n)), + i = (0, c.lexEditDistance)(o, t), + s = i.lexDistance / i.needleLexLength, + { + distance: a + } = (0, c.editDistance)(o.substring(i.startOffset, i.endOffset), t); + return { + relativeLexEditDistance: s, + charEditDistance: a, + completionLexLength: i.needleLexLength, + foundOffset: i.startOffset + Math.max(0, r - n), + lexEditDistance: i.lexDistance, + stillInCodeHeuristic: s <= .5 ? 1 : 0 + } + } + t.captureCode = h, t.postRejectionTasks = function(e, t, n, i, s) { + s.forEach((({ + completionText: n, + completionTelemetryData: r + }) => { + d.debug(e, `${t}.rejected choiceIndex: ${r.properties.choiceIndex}`), (0, o.telemetryRejected)(e, t, r) + })); + const a = new r.ChangeTracker(e, i, n); + p.filter((e => e.captureRejection)).map((r => { + a.push((async () => { + d.debug(e, `Original offset: ${n}, Tracked offset: ${a.offset}`); + const { + completionTelemetryData: o + } = s[0], { + prompt: c, + capturedCode: l, + terminationOffset: p + } = await h(e, i, a.offset); + let m; + m = 0 == c.suffix.length ? { + hypotheticalPromptJson: JSON.stringify(c.prefix) + } : { + hypotheticalPromptPrefixJson: JSON.stringify(c.prefix), + hypotheticalPromptSuffixJson: JSON.stringify(c.suffix) + }; + const f = o.extendedBy({ + ...m, + capturedCodeJson: JSON.stringify(l) + }, { + timeout: r.seconds, + insertionOffset: n, + trackedOffset: a.offset, + terminationOffsetInCapturedCode: p + }); + d.debug(e, `${t}.capturedAfterRejected choiceIndex: ${o.properties.choiceIndex}`, f), (0, u.telemetry)(e, t + ".capturedAfterRejected", f, !0) + }), 1e3 * r.seconds) + })) + }, t.postInsertionTasks = async function(e, t, n, i, s, a) { + d.debug(e, `${t}.accepted choiceIndex: ${a.properties.choiceIndex}`), (0, o.telemetryAccepted)(e, t, a); + const c = new r.ChangeTracker(e, s, i), + f = n.trim(); + p.map((n => c.push((() => async function(e, t, n, r, o, i, s, a) { + const c = await e.get(l.TextDocumentManager).getTextDocument(o); + if (c) { + const l = c.getText(); + let p = m(l, n, 50, a.offset); + p.stillInCodeHeuristic || (p = m(l, n, 1500, a.offset)), d.debug(e, `stillInCode: ${p.stillInCodeHeuristic?"Found":"Not found"}! Completion '${n}' in file ${o.fsPath}. lexEditDistance fraction was ${p.relativeLexEditDistance}. Char edit distance was ${p.charEditDistance}. Inserted at ${r}, tracked at ${a.offset}, found at ${p.foundOffset}. choiceIndex: ${s.properties.choiceIndex}`); + const f = s.extendedBy({}, { + timeout: i.seconds, + insertionOffset: r, + trackedOffset: a.offset + }).extendedBy({}, p); + if ((0, u.telemetry)(e, t + ".stillInCode", f), i.captureCode) { + const { + prompt: n, + capturedCode: c, + terminationOffset: l + } = await h(e, o, a.offset), p = s.extendedBy({ + hypotheticalPromptJson: JSON.stringify(n), + capturedCodeJson: JSON.stringify(c) + }, { + timeout: i.seconds, + insertionOffset: r, + trackedOffset: a.offset, + terminationOffsetInCapturedCode: l + }); + d.debug(e, `${t}.capturedAfterAccepted choiceIndex: ${s.properties.choiceIndex}`, f), (0, u.telemetry)(e, t + ".capturedAfterAccepted", p, !0) + } + } + }(e, t, f, i, s, n, a, c)), 1e3 * n.seconds))) + } + }, + 6635: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.NoOpStatusReporter = t.StatusReporter = void 0; + class n {} + t.StatusReporter = n, t.NoOpStatusReporter = class extends n { + setProgress() {} + removeProgress() {} + setWarning() {} + setError(e) {} + } + }, + 7917: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.indentationBlockFinished = t.completionCutOrContinue = t.contextIndentationFromText = t.contextIndentation = t.getNodeStart = t.isBlockBodyFinishedWithPrefix = t.isBlockBodyFinished = t.isEmptyBlockStart = void 0; + const r = n(2273), + o = n(2369); + t.isEmptyBlockStart = function(e, t) { + return r.isEmptyBlockStart(e.languageId, e.getText(), e.offsetAt(t)) + }, t.isBlockBodyFinished = function(e, t, n, i) { + const s = e.get(o.LocationFactory), + a = t.getText(s.range(s.position(0, 0), n)), + c = t.offsetAt(n); + return r.isBlockBodyFinished(t.languageId, a, i, c) + }, t.isBlockBodyFinishedWithPrefix = function(e, t, n, i, s) { + const a = e.get(o.LocationFactory), + c = t.getText(a.range(a.position(0, 0), n)), + u = t.offsetAt(n); + return r.isBlockBodyFinished(t.languageId, c + s, i, u + s.length) + }, t.getNodeStart = async function(e, t, n, i) { + const s = e.get(o.LocationFactory), + a = t.getText(s.range(s.position(0, 0), n)) + i, + c = await r.getNodeStart(t.languageId, a, t.offsetAt(n)); + if (c) return t.positionAt(c) + }; + const i = ["\\{", "\\}", "\\[", "\\]", "\\(", "\\)"].concat(["then", "else", "elseif", "elif", "catch", "finally", "fi", "done", "end", "loop", "until", "where", "when"].map((e => e + "\\b"))), + s = new RegExp(`^(${i.join("|")})`); + + function a(e) { + return s.test(e.trimLeft().toLowerCase()) + } + + function c(e) { + const t = /^(\s*)([^]*)$/.exec(e); + return t && t[2] && t[2].length > 0 ? t[1].length : void 0 + } + + function u(e, t, n) { + const r = e.slice(0, t).split("\n"), + o = e.slice(t).split("\n"); + + function i(e, t, r) { + let o, i, s = t; + for (; void 0 === o && s >= 0 && s < e.length;) o = c(e[s]), i = s, s += r; + if ("python" === n && -1 === r) { + s++; + const t = e[s].trim(); + if (t.endsWith('"""')) { + if (!t.startsWith('"""') || '"""' === t) + for (s--; s >= 0 && !e[s].trim().startsWith('"""');) s--; + if (s >= 0) + for (o = void 0, s--; void 0 === o && s >= 0;) o = c(e[s]), i = s, s-- + } + } + return [o, i] + } + const [s, a] = i(r, r.length - 1, -1), u = (() => { + if (void 0 !== s && void 0 !== a) + for (let e = a - 1; e >= 0; e--) { + const t = c(r[e]); + if (void 0 !== t && t < s) return t + } + })(), [l] = i(o, 1, 1); + return { + prev: u, + current: null != s ? s : 0, + next: l + } + } + + function l(e, t, n) { + var r; + const o = e.split("\n"), + i = void 0 !== n, + s = null == n ? void 0 : n.split("\n").pop(); + let u = 0; + if (i && "" != (null == s ? void 0 : s.trim()) && "" !== o[0].trim() && u++, i || u++, o.length === u) return "continue"; + const l = Math.max(t.current, null !== (r = t.next) && void 0 !== r ? r : 0); + for (let e = u; e < o.length; e++) { + let t = o[e]; + 0 == e && void 0 !== s && (t = s + t); + const n = c(t); + if (void 0 !== n && (n < l || n === l && !a(t))) return o.slice(0, e).join("\n").length + } + return "continue" + } + t.contextIndentation = function(e, t) { + return u(e.getText(), e.offsetAt(t), e.languageId) + }, t.contextIndentationFromText = u, t.completionCutOrContinue = l, t.indentationBlockFinished = function(e, t) { + return async n => { + const r = l(n, e, t); + return "continue" === r ? void 0 : r + } + } + }, + 4090: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.extractPrompt = t.trimLastLine = t._contextTooShort = t.MIN_PROMPT_CHARS = void 0; + const r = n(4617), + o = n(9800), + i = n(5225), + s = n(819), + a = n(2273); + + function c(e) { + const t = e.split("\n"), + n = t[t.length - 1], + r = n.length - n.trimRight().length, + o = e.slice(0, e.length - r), + i = e.substr(o.length); + return [n.length == r ? o : e, i] + } + async function u(e, n, u, l, d, p) { + if (("copilot-alpha" === (0, o.getConfig)(e, o.ConfigKey.DebugOverrideEngine) ? n.length : u) < t.MIN_PROMPT_CHARS) return t._contextTooShort; + const h = Date.now(), + { + prefix: m, + suffix: f, + promptChoices: g + } = await async function(e, t, n, c, u, l) { + let d = []; + d = await async function(e, t, n) { + const r = [], + o = (0, i.sortByAccessTimes)(e.get(s.TextDocumentManager).textDocuments); + let a = 0; + for (const i of o) { + if (r.length + 1 > 20 || a + i.getText().length > 2e5) break; + "file" == i.uri.scheme && i.fileName !== t && i.languageId === n && (r.push({ + uri: i.uri.toString(), + relativePath: await e.get(s.TextDocumentManager).getRelativePath(i.uri), + languageId: i.languageId, + source: i.getText() + }), a += i.getText().length) + } + return r + }(e, u.fsPath, l); + const p = { + uri: u.toString(), + source: t, + offset: n, + relativePath: c, + languageId: l + }, + h = 2048 - (0, o.getConfig)(e, o.ConfigKey.SolutionLength); + let m = r.NeighboringTabsOption.Eager; + (0, o.getConfig)(e, o.ConfigKey.DebugLimitPrompts) && (m = r.NeighboringTabsOption.None); + let f = { + maxPromptLength: h, + neighboringTabs: m + }; + "copilot-alpha" === (0, o.getConfig)(e, o.ConfigKey.DebugOverrideEngine) && (f = { + ...f, + includeSiblingFunctions: r.SiblingOption.NoSiblings, + suffixPercent: 15 + }); + const g = e.get(r.FileSystem); + return await (0, a.getPrompt)(g, p, f, d) + }(e, n, u, l, d, p), [y, _] = c(m); + return { + type: "prompt", + prompt: { + prefix: y, + suffix: f + }, + trailingWs: _, + promptChoices: g, + computeTimeMs: Date.now() - h + } + } + async function l(e, t, n) { + const r = await e.get(s.TextDocumentManager).getRelativePath(t.uri); + return u(e, t.getText(), t.offsetAt(n), r, t.uri, t.languageId) + } + t.MIN_PROMPT_CHARS = 10, t._contextTooShort = { + type: "contextTooShort" + }, t.trimLastLine = c, t.extractPrompt = function(e, t, n) { + return void 0 === t.notebook ? l(e, t, n) : async function(e, t, n) { + const r = t.notebook.getCells().find((e => e.document.uri === t.uri)); + if (r) { + const o = t.notebook.getCells().filter((e => e.index < r.index && e.document.languageId === r.document.languageId)), + i = o.length > 0 ? o.map((e => e.document.getText())).join("\n\n") + "\n\n" : "", + a = i + t.getText(), + c = i.length + t.offsetAt(n), + l = await e.get(s.TextDocumentManager).getRelativePath(t.uri); + return u(e, a, c, l, t.uri, r.document.languageId) + } + return l(e, t, n) + }(e, t, n) + } + }, + 2273: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.parsesWithoutError = t.getPrompt = t.getNodeStart = t.getFunctionPositions = t.getBlockCloseToken = t.isSupportedLanguageId = t.isBlockBodyFinished = t.isEmptyBlockStart = t.terminate = t.init = void 0; + const r = n(4617); + let o = null; + const i = new Map; + let s = 0; + t.init = function(t, l, d = console) { + if (!l) { + const t = n(3094); + for (const n of [...a, ...c]) e.exports[n] = t[n]; + return + } + for (const t of a) e.exports[t] = u(t); + e.exports.getPrompt = function(e, ...t) { + const n = s++; + return new Promise(((e, r) => { + i.set(n, { + resolve: e, + reject: r + }), null == o || o.postMessage({ + id: n, + fn: "getPrompt", + args: t + }) + })) + }, o = r.createWorker(), i.clear(), s = 0; + const p = t.get(r.FileSystem); + + function h(e) { + d.error(e); + for (const t of i.values()) t.reject(e); + i.clear() + } + o.on("message", (({ + id: e, + err: t, + res: n + }) => { + const r = i.get(e); + r && (i.delete(e), t ? r.reject(t) : r.resolve(n)) + })), o.on("error", h), o.on("exit", (e => { + 0 !== e && h(new Error(`Worker thread exited with code ${e}.`)) + })), o.on("readFileReq", (e => { + p.readFile(e).then((e => { + null == o || o.emit("readFileRes", e) + })).catch(h) + })), o.on("mtimeRes", (e => { + p.mtime(e).then((e => { + null == o || o.emit("mtimeRes", e) + })).catch(h) + })) + }, t.terminate = function() { + o && (o.removeAllListeners(), o.terminate(), o = null, i.clear()) + }; + const a = ["getFunctionPositions", "isEmptyBlockStart", "isBlockBodyFinished", "getNodeStart", "parsesWithoutError"], + c = ["isSupportedLanguageId", "getBlockCloseToken"]; + + function u(e) { + return function(...t) { + const n = s++; + return new Promise(((r, s) => { + i.set(n, { + resolve: r, + reject: s + }), null == o || o.postMessage({ + id: n, + fn: e, + args: t + }) + })) + } + } + t.isEmptyBlockStart = r.isEmptyBlockStart, t.isBlockBodyFinished = r.isBlockBodyFinished, t.isSupportedLanguageId = r.isSupportedLanguageId, t.getBlockCloseToken = r.getBlockCloseToken, t.getFunctionPositions = r.getFunctionPositions, t.getNodeStart = r.getNodeStart, t.getPrompt = r.getPrompt, t.parsesWithoutError = r.parsesWithoutError + }, + 3591: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ComputationStatus = t.getRepoUrlUsingChildProcess = t.getRepoUrlFromConfigText = t.parseRepoUrl = t.extractRepoInfoInBackground = t.tryGetGitHubNWO = void 0; + const r = n(1017), + o = n(140), + i = n(2081), + s = n(4617); + t.tryGetGitHubNWO = function(e) { + if (void 0 !== e && e !== d.PENDING) return "github.com" === e.hostname ? e.owner + "/" + e.repo : void 0 + }, t.extractRepoInfoInBackground = function(e, t) { + if (!t) return; + const n = (0, r.dirname)(t); + return a(e, n) + }; + const a = function(e, t) { + const n = new o.LRUCache(1e4), + i = new Set; + return (...e) => { + const t = JSON.stringify(e), + o = n.get(t); + if (o) return o.result; + if (i.has(t)) return d.PENDING; + const a = async function(e, t) { + var n; + const o = await async function(e, t) { + let n = t + "_add_to_make_longer"; + const o = e.get(s.FileSystem); + for (; t.length > 1 && t.length < n.length;) { + const e = (0, r.join)(t, ".git", "config"); + if (await o.stat(e).then((() => !0), (() => !1))) return t; + n = t, t = (0, r.dirname)(t) + } + }(e, t); + if (!o) return; + const i = e.get(s.FileSystem), + a = (0, r.join)(o, ".git", "config"), + c = (await i.readFile(a)).toString(), + d = null !== (n = l(c)) && void 0 !== n ? n : ""; + return { + baseFolder: o, + url: d, + ...u(d) + } + }(...e); + return i.add(t), a.then((e => { + n.put(t, new p(e)), i.delete(t) + })), d.PENDING + } + }(), + c = /([^:/@]+)[:/]([^/:]+)\/([^/]+)+/; + + function u(e) { + var t, n, r, o; + const i = null !== (t = e.match(c)) && void 0 !== t ? t : []; + return { + hostname: null !== (n = i[1]) && void 0 !== n ? n : "", + owner: null !== (r = i[2]) && void 0 !== r ? r : "", + repo: i[3] && i[3].endsWith(".git") ? i[3].slice(0, -4) : null !== (o = i[3]) && void 0 !== o ? o : "" + } + } + + function l(e) { + var t; + const n = /^\s*\[\s*remote\s+"((\\\\|\\"|[^\\"])+)"/, + r = /^\s*\[remote.([^"\s]+)/, + o = /^\s*url\s*=\s*([^\s#;]+)/, + i = /^\s*\[/; + let s, a, c = !1; + for (const u of e.split("\n")) + if (c && void 0 !== s) { + if (s += u, u.endsWith("\\")) s = s.substring(0, s.length - 1); + else if (c = !1, "origin" === a) return s + } else { + const e = null !== (t = u.match(n)) && void 0 !== t ? t : u.match(r); + if (e) a = e[1]; + else if (u.match(i)) a = void 0; + else { + if (s && "origin" !== a) continue; { + const e = u.match(o); + if (e) + if (s = e[1], s.endsWith("\\")) s = s.substring(0, s.length - 1), c = !0; + else if ("origin" === a) return s + } + } + } return s + } + var d; + t.parseRepoUrl = u, t.getRepoUrlFromConfigText = l, t.getRepoUrlUsingChildProcess = async function(e) { + const t = (0, r.dirname)(e), + n = (0, i.execFile)("git", ["config", "--get", "remote.origin.url"], { + cwd: t, + encoding: "utf8" + }); + return await new Promise(((e, t) => { + var r; + null === (r = n.stdout) || void 0 === r || r.on("data", (t => { + t = null == t ? void 0 : t.replace(/\n$/, ""), e(t || void 0) + })), n.on("exit", (() => { + e(void 0) + })) + })) + }, + function(e) { + e[e.PENDING = 0] = "PENDING" + }(d = t.ComputationStatus || (t.ComputationStatus = {})); + class p { + constructor(e) { + this.result = e + } + } + }, + 4604: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.isRepetitive = void 0; + const n = [{ + max_token_sequence_length: 1, + last_tokens_to_consider: 10 + }, { + max_token_sequence_length: 10, + last_tokens_to_consider: 30 + }, { + max_token_sequence_length: 20, + last_tokens_to_consider: 45 + }, { + max_token_sequence_length: 30, + last_tokens_to_consider: 60 + }]; + + function r(e) { + const t = function(e) { + const t = Array(e.length).fill(0); + t[0] = -1; + let n = -1; + for (let r = 1; r < e.length; r++) { + for (; n >= 0 && e[n + 1] !== e[r];) n = t[n]; + e[n + 1] === e[r] && n++, t[r] = n + } + return t + }(e); + for (const r of n) + if (!(e.length < r.last_tokens_to_consider) && r.last_tokens_to_consider - 1 - t[r.last_tokens_to_consider - 1] <= r.max_token_sequence_length) return !0; + return !1 + } + t.isRepetitive = function(e) { + return r(e.reverse()) || r(e.reverse().filter((e => e.trim().length > 0))) + } + }, + 9558: (e, t) => { + "use strict"; + + function n(e, t, n = ((e, t) => e === t ? 0 : 1)) { + if (0 === t.length || 0 === e.length) return { + distance: t.length, + startOffset: 0, + endOffset: 0 + }; + let r = new Array(t.length + 1).fill(0), + o = new Array(t.length + 1).fill(0), + i = new Array(e.length + 1).fill(0), + s = new Array(e.length + 1).fill(0), + a = t[0]; + for (let t = 0; t < e.length + 1; t++) r[t] = 0 === t ? 1 : n(e[t - 1], a, t - 1, 0), o[t] = t > 0 ? t - 1 : 0; + for (let c = 1; c < t.length; c++) { + let u = i; + i = r, r = u, u = s, s = o, o = u, a = t[c], r[0] = c + 1; + for (let t = 1; t < e.length + 1; t++) { + const u = 1 + i[t], + l = 1 + r[t - 1], + d = n(e[t - 1], a, t - 1, c) + i[t - 1]; + r[t] = Math.min(l, u, d), r[t] === d ? o[t] = s[t - 1] : r[t] === u ? o[t] = s[t] : o[t] = o[t - 1] + } + } + let c = 0; + for (let t = 0; t < e.length + 1; t++) r[t] < r[c] && (c = t); + return { + distance: r[c], + startOffset: o[c], + endOffset: c + } + } + + function r() { + return new Map + } + + function o(e) { + const t = new Array(e.size); + for (const [n, r] of e) t[r] = n; + return t + } + + function* i(e) { + let t, n = ""; + ! function(e) { + e[e.Word = 0] = "Word", e[e.Space = 1] = "Space", e[e.Other = 2] = "Other" + }(t || (t = {})); + let r = t.Word; + for (const o of e) { + let e; + e = /(\p{L}|\p{Nd}|_)/u.test(o) ? t.Word : " " === o ? t.Space : t.Other, e === r && e !== t.Other ? n += o : (n.length > 0 && (yield n), n = o, r = e) + } + n.length > 0 && (yield n) + } + + function s(e, t, n, r) { + const o = []; + let i = 0; + for (const s of n(e)) r(s) && (t.has(s) || t.set(s, t.size), o.push([t.get(s), i])), i += s.length; + return [o, t] + } + + function a(e) { + return " " !== e + } + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.lexEditDistance = t.lexicalAnalyzer = t.lexGeneratorWords = t.reverseLexDictionary = t.emptyLexDictionary = t.editDistance = void 0, t.editDistance = n, t.emptyLexDictionary = r, t.reverseLexDictionary = o, t.lexGeneratorWords = i, t.lexicalAnalyzer = s, t.lexEditDistance = function(e, t, c = i) { + const [u, l] = s(e, r(), c, a), [d, p] = s(t, l, c, a); + if (0 === d.length || 0 === u.length) return { + lexDistance: d.length, + startOffset: 0, + endOffset: 0, + haystackLexLength: u.length, + needleLexLength: d.length + }; + const h = o(p), + m = d.length, + f = h[d[0][0]], + g = h[d[m - 1][0]], + y = n(u.map((e => e[0])), d.map((e => e[0])), (function(e, t, n, r) { + if (0 === r || r === m - 1) { + const e = h[u[n][0]]; + return 0 == r && e.endsWith(f) || r == m - 1 && e.startsWith(g) ? 0 : 1 + } + return e === t ? 0 : 1 + })), + _ = u[y.startOffset][1]; + let v = y.endOffset < u.length ? u[y.endOffset][1] : e.length; + return v > 0 && " " === e[v - 1] && --v, { + lexDistance: y.distance, + startOffset: _, + endOffset: v, + haystackLexLength: u.length, + needleLexLength: d.length + } + } + }, + 1523: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ghostTextDisplayQuantiles = t.ghostTextDisplayLanguageParameters = t.ghostTextDisplayMeanAlternativeLogProbParameter = t.ghostTextDisplayMeanLogProbParameter = t.ghostTextDisplayLog1pcompCharLenParameter = t.ghostTextDisplayInterceptParameter = void 0, t.ghostTextDisplayInterceptParameter = 2.98410452738298, t.ghostTextDisplayLog1pcompCharLenParameter = -.838732736843507, t.ghostTextDisplayMeanLogProbParameter = 1.50314646255716, t.ghostTextDisplayMeanAlternativeLogProbParameter = -.237798634012662, t.ghostTextDisplayLanguageParameters = { + python: .314368072478742 + }, t.ghostTextDisplayQuantiles = { + .01: .225800751784931, + .02: .290204307767402, + .03: .333153496466045, + .05: .404516749849559, + .1: .513216040545626, + .2: .626904979128674, + .3: .694880719658273, + .4: .743100684947291, + .5: .782524520571946, + .6: .816856186092243, + .7: .84922977716585, + .8: .883694877241999, + .9: .921859050950077, + .95: .944571268106974, + .99: .969535563141733 + } + }, + 1153: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.ghostTextScoreQuantile = t.ghostTextScoreConfidence = void 0; + const r = n(1523), + o = n(5798), + i = new o.Logger(o.LogLevel.INFO, "restraint"), + s = { + link: e => Math.exp(e) / (1 + Math.exp(e)), + unlink: e => Math.log(e / (1 - e)) + }; + class a { + constructor(e, t, n) { + this.name = e, this.coefficient = t, this.transformation = n || (e => e) + } + contribution(e) { + return this.coefficient * this.transformation(e) + } + } + const c = new class { + constructor(e, t, n) { + if (this.link = s, this.intercept = e, this.coefficients = t, this.logitsToQuantiles = new Map, this.logitsToQuantiles.set(0, 0), this.logitsToQuantiles.set(1, 1), n) + for (const e in n) this.logitsToQuantiles.set(n[e], Number(e)) + } + predict(e, t) { + let n = this.intercept; + for (const r of this.coefficients) { + const o = t[r.name]; + if (void 0 === o) return i.error(e, `No value found for ${r.name} -- only got ${JSON.stringify(t)}`), NaN; + n += r.contribution(o) + } + return this.link.link(n) + } + quantile(e, t) { + return function(e, t) { + const n = Math.min(...Array.from(t.keys()).filter((t => t >= e))), + r = Math.max(...Array.from(t.keys()).filter((t => t < e))), + o = t.get(n), + i = t.get(r); + return i + (o - i) * (e - r) / (n - r) + }(this.predict(e, t), this.logitsToQuantiles) + } + }(r.ghostTextDisplayInterceptParameter, [new a("compCharLen", r.ghostTextDisplayLog1pcompCharLenParameter, (e => Math.log(1 + e))), new a("meanLogProb", r.ghostTextDisplayMeanLogProbParameter), new a("meanAlternativeLogProb", r.ghostTextDisplayMeanAlternativeLogProbParameter)].concat(Object.entries(r.ghostTextDisplayLanguageParameters).map((e => new a(e[0], e[1])))), r.ghostTextDisplayQuantiles); + t.ghostTextScoreConfidence = function(e, t) { + const n = { + ...t.measurements + }; + return Object.keys(r.ghostTextDisplayLanguageParameters).forEach((e => { + n[e] = t.properties["customDimensions.languageId"] == e ? 1 : 0 + })), c.predict(e, n) + }, t.ghostTextScoreQuantile = function(e, t) { + const n = { + ...t.measurements + }; + return Object.keys(r.ghostTextDisplayLanguageParameters).forEach((e => { + n[e] = t.properties["customDimensions.languageId"] == e ? 1 : 0 + })), c.quantile(e, n) + } + }, + 3883: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.checkSuffix = t.postProcessChoice = void 0; + const r = n(4604), + o = n(7590), + i = n(2273), + s = n(5489); + t.postProcessChoice = async function(e, t, n, a, c, u, l) { + if ((0, r.isRepetitive)(c.tokens)) { + const t = s.TelemetryData.createAndMarkAsIssued(); + return t.extendWithRequestId(c.requestId), (0, s.telemetry)(e, "repetition.detected", t, !0), void l.info(e, "Filtered out repetitive solution") + } + const d = { + ...c + }; + if (function(e, t, n) { + let r = "", + o = t.line + 1; + for (; + "" === r && o < e.lineCount;) { + if (r = e.lineAt(o).text.trim(), r === n.trim()) return !0; + o++ + } + return !1 + }(n, a, d.completionText)) { + const t = s.TelemetryData.createAndMarkAsIssued(); + return t.extendWithRequestId(c.requestId), (0, s.telemetry)(e, "completion.alreadyInDocument", t), (0, s.telemetry)(e, "completion.alreadyInDocument", t.extendedBy({ + completionTextJson: JSON.stringify(d.completionText) + }), !0), void l.info(e, "Filtered out solution matching next line") + } + return d.completionText = await async function(e, t, n, r, s) { + var a; + if ("" === r) return r; + let c = "}"; + try { + c = null !== (a = (0, i.getBlockCloseToken)(t.languageId)) && void 0 !== a ? a : "}" + } catch (e) {} + let u = r.length; + do { + const i = r.lastIndexOf("\n", u - 2) + 1, + a = r.substring(i, u); + if (a.trim() === c) { + for (let e = n.line; e < t.lineCount; e++) { + let o = t.lineAt(e).text; + if (e === n.line && (o = o.substr(n.character)), o.startsWith(a.trimRight())) return r.substring(0, Math.max(0, s ? i : i - 1)); + if ("" !== o.trim()) break + } + break + } + if (u === i) { + if ((0, o.inTestMode)(e)) throw Error(`Aborting: maybeSnipCompletion would have looped on completion: ${r}`); + break + } + u = i + } while (u > 1); + return r + }(e, n, a, d.completionText, u), d.completionText ? d : void 0 + }, t.checkSuffix = function(e, t, n) { + const r = e.lineAt(t.line).text.substring(t.character); + if (r.length > 0) { + if (-1 !== n.completionText.indexOf(r)) return !0; { + let e = 0; + for (const t of r) { + const r = n.completionText.indexOf(t, e + 1); + if (!(r > e)) { + e = -1; + break + } + e = r + } + return -1 !== e + } + } + return !1 + } + }, + 5489: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.setTrackingId = t.logEnginePrompt = t.logEngineCompletion = t.telemetryError = t.telemetryException = t.telemetry = t.configureReporter = t.noTelemetryEndpointUrlOverride = t.TelemetryEndpointUrlOverride = t.sleep = t.now = t.ghostTextTelemetry = t.telemetrizePromptLength = t.TelemetryData = t.setupStandardReporters = t.copilotTrackingId = t.TelemetryReporters = t.APP_INSIGHTS_KEY_SECURE = t.APP_INSIGHTS_KEY = void 0; + const r = n(6236), + o = (n(8212), n(9929)), + i = n(9316), + s = n(9800), + a = n(7590); + t.APP_INSIGHTS_KEY = "7d7048df-6dd0-4048-bb23-b716c1461f8f", t.APP_INSIGHTS_KEY_SECURE = "3fdd7f28-937a-48c8-9a21-ba337db23bd1"; + class c { + constructor(e, t) { + this.reporter = e, this.reporterSecure = t + } + async deactivate() { + let e = Promise.resolve(); + this.reporter && (e = this.reporter.dispose(), this.reporter = void 0); + let t = Promise.resolve(); + this.reporterSecure && (t = this.reporterSecure.dispose(), this.reporterSecure = void 0), await Promise.all([e, t]) + } + } + let u; + + function l(e, t, n, r) { + const i = new o.default(t, n, r); + return f(e, i, r), i + } + t.TelemetryReporters = c, t.copilotTrackingId = u, t.setupStandardReporters = function(e, n) { + const r = (0, s.getVersion)(e), + o = l(e, n, r, t.APP_INSIGHTS_KEY), + i = l(e, n, r, t.APP_INSIGHTS_KEY_SECURE); + return new c(o, i) + }, o.default.TELEMETRY_CONFIG_ID = "copilot"; + class d { + constructor(e, t, n) { + this.properties = e, this.measurements = t, this.issuedTime = n + } + static createAndMarkAsIssued(e, t) { + return new d(e || {}, t || {}, h()) + } + extendedBy(e, t) { + const n = { + ...this.properties, + ...e + }, + r = { + ...this.measurements, + ...t + }, + o = new d(n, r, this.issuedTime); + return o.displayedTime = this.displayedTime, o + } + markAsDisplayed() { + void 0 === this.displayedTime && (this.displayedTime = h()) + } + extendWithABExperimentGroups(e) { + const t = (0, i.getConstantExperimentGroups)(e); + t && (this.properties.experimentGroups = JSON.stringify(t)) + } + extendWithEditorAgnosticFields(e) { + this.properties.editor_version = (0, s.formatNameAndVersion)(e.get(s.EditorAndPluginInfo).getEditorInfo(e)), this.properties.editor_plugin_version = (0, s.formatNameAndVersion)(e.get(s.EditorAndPluginInfo).getEditorPluginInfo(e)), this.properties.agent_version = `agent/${(0,s.getVersion)(e)}` + } + extendWithConfigProperties(e) { + const t = (0, s.dumpConfig)(e); + try { + t["copilot.build"] = (0, s.getBuild)(e), t["copilot.buildType"] = (0, s.getBuildType)(e) + } catch (e) {} + u && (t["copilot.trackingId"] = u), this.properties = { + ...this.properties, + ...t + } + } + extendWithRequestId(e) { + const t = { + completionId: e.completionId, + created: e.created.toString(), + headerRequestId: e.headerRequestId, + serverExperiments: e.serverExperiments, + clusterName: e.clusterName, + modelEndpoint: e.modelEndpoint + }; + this.properties = { + ...this.properties, + ...t + } + } + sanitizeKeys() { + this.properties = d.sanitizeKeys(this.properties), this.measurements = d.sanitizeKeys(this.measurements) + } + static sanitizeKeys(e) { + e = e || {}; + const t = {}; + for (const n in e) t[n.replace(/\./g, "_")] = e[n]; + return t + } + updateTimeSinceIssuedAndDisplayed() { + const e = h() - this.issuedTime; + if (this.measurements.timeSinceIssuedMs = e, void 0 !== this.displayedTime) { + const e = h() - this.displayedTime; + this.measurements.timeSinceDisplayedMs = e + } + } + validateData(e, t) { + var n; + let r; + if (d.validateTelemetryProperties(this.properties) || (r = { + problem: "properties", + error: JSON.stringify(d.validateTelemetryProperties.errors) + }), !d.validateTelemetryMeasurements(this.measurements)) { + const e = JSON.stringify(d.validateTelemetryMeasurements.errors); + void 0 === r ? r = { + problem: "measurements", + error: e + } : (r.problem = "both", r.error += `; ${e}`) + } + if (void 0 === r) return !0; + if ((0, a.inTestMode)(e)) throw new Error(`Invalid telemetry data: ${r.problem} ${r.error} properties=${JSON.stringify(this.properties)} measurements=${JSON.stringify(this.measurements)}`); + return y(e, "invalidTelemetryData", d.createAndMarkAsIssued({ + properties: JSON.stringify(this.properties), + measurements: JSON.stringify(this.measurements), + problem: r.problem, + validationError: r.error + }), t), t && y(e, "invalidTelemetryData_in_secure", d.createAndMarkAsIssued({ + problem: r.problem, + requestId: null !== (n = this.properties.requestId) && void 0 !== n ? n : "unknown" + }), !1), !1 + } + makeReadyForSending(e, t) { + this.extendWithConfigProperties(e), this.extendWithEditorAgnosticFields(e), this.extendWithABExperimentGroups(e), this.sanitizeKeys(), this.updateTimeSinceIssuedAndDisplayed(), this.validateData(e, t) || (this.properties.telemetry_failed_validation = "true") + } + } + + function p(e) { + return 0 == e.suffix.length ? { + promptCharLen: e.prefix.length + } : { + promptPrefixCharLen: e.prefix.length, + promptSuffixCharLen: e.suffix.length + } + } + + function h() { + return (new Date).getTime() + } + t.TelemetryData = d, d.ajv = new r.default({ + strictNumbers: !1 + }), d.validateTelemetryProperties = d.ajv.compile({ + type: "object", + additionalProperties: { + type: "string" + }, + required: [] + }), d.validateTelemetryMeasurements = d.ajv.compile({ + type: "object", + properties: { + meanLogProb: { + type: "number", + nullable: !0 + }, + meanAlternativeLogProb: { + type: "number", + nullable: !0 + } + }, + additionalProperties: { + type: "number" + }, + required: [] + }), t.telemetrizePromptLength = p, t.ghostTextTelemetry = function(e, t, n, r, o) { + const i = { + languageId: e.languageId, + beforeCursorWhitespace: JSON.stringify("" === r.trim()), + afterCursorWhitespace: JSON.stringify("" === o.trim()) + }, + s = { + ...p(n), + promptEndPos: e.offsetAt(t), + documentLength: e.getText().length + }; + return d.createAndMarkAsIssued(i, s) + }, t.now = h, t.sleep = function(e) { + return new Promise((t => setTimeout(t, e))) + }; + class m { + constructor(e) { + this.url = e + } + } + + function f(e, t, n) { + const r = t; + if (r.appInsightsClient || (r.userOptIn = !0, r.createAppInsightsClient(n)), r.appInsightsClient) { + const t = r.appInsightsClient.commonProperties, + n = d.sanitizeKeys(t); + r.appInsightsClient.commonProperties = n, r.appInsightsClient.context.tags[r.appInsightsClient.context.keys.cloudRoleInstance] = "REDACTED"; + const o = e.get(m).url; + void 0 !== o && (r.appInsightsClient.config.endpointUrl = o) + } + } + + function g(e, t, n, r) { + (n = n || d.createAndMarkAsIssued({}, {})).makeReadyForSending(e, null != r && r); + const o = r ? e.get(c).reporterSecure : e.get(c).reporter; + o && o.sendTelemetryEvent(t, n.properties, n.measurements) + } + + function y(e, t, n, r) { + (n = n || d.createAndMarkAsIssued({}, {})).makeReadyForSending(e, null != r && r); + const o = r ? e.get(c).reporterSecure : e.get(c).reporter; + o && o.sendTelemetryErrorEvent(t, n.properties, n.measurements) + } + t.TelemetryEndpointUrlOverride = m, t.noTelemetryEndpointUrlOverride = new m, t.configureReporter = f, t.telemetry = g, t.telemetryException = function(e, t, n, r) { + const o = t instanceof Error ? t : new Error("Non-error thrown: " + t); + (n = n || d.createAndMarkAsIssued({}, {})).makeReadyForSending(e, null != r && r); + const i = r ? e.get(c).reporterSecure : e.get(c).reporter; + i && i.sendTelemetryException(o, n.properties, n.measurements) + }, t.telemetryError = y, t.logEngineCompletion = function(e, t, n, r, o) { + var i; + const s = d.createAndMarkAsIssued({ + completionTextJson: JSON.stringify(t), + choiceIndex: o.toString() + }); + for (const [e, t] of Object.entries(n.logprobs)) s.properties["logprobs_" + e] = null !== (i = JSON.stringify(t)) && void 0 !== i ? i : "unset"; + s.extendWithRequestId(r), g(e, "engine.completion", s, !0) + }, t.logEnginePrompt = function(e, t, n) { + let r; + r = 0 == t.suffix.length ? { + promptJson: JSON.stringify(t.prefix) + } : { + promptPrefixJson: JSON.stringify(t.prefix), + promptSuffixJson: JSON.stringify(t.suffix) + }, g(e, "engine.prompt", n.extendedBy(r), !0) + }, t.setTrackingId = function(e) { + t.copilotTrackingId = u = e + } + }, + 5922: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.readTestingGitHubToken = t.makeTestingCopilotTokenManager = void 0; + const r = n(5765), + o = n(7147); + + function i() { + const e = `${process.env.HOME}/.copilot-testing-gh-token`; + if (o.existsSync(e)) return o.readFileSync(e).toString(); + throw new Error(`Tests: either GH_COPILOT_TOKEN, or GITHUB_TOKEN, must be set, or there must be a GitHub token from an app with access to Copilot in ${e}. Run "npm run get_token" to get one.`) + } + t.makeTestingCopilotTokenManager = function() { + if (process.env.GH_COPILOT_TOKEN) return new r.FixedCopilotTokenManager(process.env.GH_COPILOT_TOKEN); + if (process.env.GITHUB_TOKEN) return new r.CopilotTokenManagerFromGitHubToken(process.env.GITHUB_TOKEN); + const e = i(); + return process.env.GITHUB_TOKEN = e, new r.CopilotTokenManagerFromGitHubToken(e) + }, t.readTestingGitHubToken = i + }, + 7590: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.inTestMode = t.TestMode = void 0; + class n { + constructor(e) { + this.testMode = e + } + } + t.TestMode = n, t.inTestMode = function(e) { + return e.get(n).testMode + } + }, + 2369: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.LocationFactory = void 0, t.LocationFactory = class {} + }, + 819: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.TextDocumentManager = void 0, t.TextDocumentManager = class {} + }, + 5614: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.defaultFileSystem = t.FileSystem = void 0; + const r = n(7147); + t.FileSystem = class {}, t.defaultFileSystem = { + readFile: e => r.promises.readFile(e), + mtime: async e => (await r.promises.stat(e)).mtimeMs, + stat: async function(e) { + const t = await r.promises.stat(e); + return { + ctime: t.ctimeMs, + mtime: t.mtimeMs, + size: t.size + } + } + } + }, + 3272: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getPathMarker = t.getLanguageMarker = t.comment = t.hasLanguageMarker = t.languageCommentMarkers = void 0, t.languageCommentMarkers = { + abap: { + start: '"', + end: "" + }, + bat: { + start: "REM", + end: "" + }, + bibtex: { + start: "%", + end: "" + }, + clojure: { + start: ";", + end: "" + }, + coffeescript: { + start: "//", + end: "" + }, + c: { + start: "//", + end: "" + }, + cpp: { + start: "//", + end: "" + }, + csharp: { + start: "//", + end: "" + }, + css: { + start: "/*", + end: "*/" + }, + dockerfile: { + start: "#", + end: "" + }, + fsharp: { + start: "//", + end: "" + }, + go: { + start: "//", + end: "" + }, + groovy: { + start: "//", + end: "" + }, + handlebars: { + start: "{{!", + end: "}}" + }, + haml: { + start: "-#", + end: "" + }, + html: { + start: "\x3c!--", + end: "--\x3e" + }, + ini: { + start: ";", + end: "" + }, + java: { + start: "//", + end: "" + }, + javascript: { + start: "//", + end: "" + }, + javascriptreact: { + start: "//", + end: "" + }, + jsonc: { + start: "//", + end: "" + }, + jsx: { + start: "//", + end: "" + }, + latex: { + start: "%", + end: "" + }, + less: { + start: "//", + end: "" + }, + lua: { + start: "--", + end: "" + }, + makefile: { + start: "#", + end: "" + }, + markdown: { + start: "[]: #", + end: "" + }, + "objective-c": { + start: "//", + end: "" + }, + "objective-cpp": { + start: "//", + end: "" + }, + perl: { + start: "#", + end: "" + }, + php: { + start: "//", + end: "" + }, + pug: { + start: "//", + end: "" + }, + python: { + start: "#", + end: "" + }, + r: { + start: "#", + end: "" + }, + razor: { + start: "\x3c!--", + end: "--\x3e" + }, + ruby: { + start: "#", + end: "" + }, + rust: { + start: "//", + end: "" + }, + scss: { + start: "//", + end: "" + }, + sass: { + start: "//", + end: "" + }, + shellscript: { + start: "#", + end: "" + }, + slim: { + start: "/", + end: "" + }, + sql: { + start: "--", + end: "" + }, + stylus: { + start: "//", + end: "" + }, + swift: { + start: "//", + end: "" + }, + typescript: { + start: "//", + end: "" + }, + tex: { + start: "%", + end: "" + }, + vb: { + start: "'", + end: "" + }, + vue: { + start: "//", + end: "" + }, + "vue-html": { + start: "\x3c!--", + end: "--\x3e" + }, + xml: { + start: "\x3c!--", + end: "--\x3e" + }, + xsl: { + start: "\x3c!--", + end: "--\x3e" + }, + yaml: { + start: "#", + end: "" + } + }; + const n = ["php", "plaintext"], + r = { + shellscript: "#!/bin/sh", + python: "#!/usr/bin/env python3", + ruby: "#!/usr/bin/env ruby", + html: "", + yaml: "# YAML data" + }; + + function o({ + source: e + }) { + return e.startsWith("#!") || e.startsWith(" { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.extractLocalImportContext = t.getDocComment = void 0; + const r = n(1017), + o = n(2133); + + function i(e, t) { + var n; + let o = null === (n = t.namedChild(1)) || void 0 === n ? void 0 : n.text.slice(1, -1); + if (!o || !o.startsWith(".")) return null; + if ("" === (0, r.extname)(o)) o += ".ts"; + else if (".ts" !== (0, r.extname)(o)) return null; + return (0, r.join)((0, r.dirname)(e), o) + } + + function s(e) { + var t, n, r, o, i; + let s = []; + if ("import_clause" === (null === (t = e.namedChild(0)) || void 0 === t ? void 0 : t.type)) { + let t = e.namedChild(0); + if ("named_imports" === (null === (n = null == t ? void 0 : t.namedChild(0)) || void 0 === n ? void 0 : n.type)) { + let e = t.namedChild(0); + for (let t of null !== (r = null == e ? void 0 : e.namedChildren) && void 0 !== r ? r : []) + if ("import_specifier" === t.type) { + const e = null === (o = t.childForFieldName("name")) || void 0 === o ? void 0 : o.text; + if (e) { + const n = null === (i = t.childForFieldName("alias")) || void 0 === i ? void 0 : i.text; + s.push({ + name: e, + alias: n + }) + } + } + } + } + return s + } + const a = new Map; + + function c(e, t) { + var n, r; + let o = null !== (r = null === (n = null == t ? void 0 : t.childForFieldName("name")) || void 0 === n ? void 0 : n.text) && void 0 !== r ? r : ""; + switch (null == t ? void 0 : t.type) { + case "ambient_declaration": + return c(e, t.namedChild(0)); + case "interface_declaration": + case "enum_declaration": + case "type_alias_declaration": + return { + name: o, decl: t.text + }; + case "function_declaration": + case "function_signature": + return { + name: o, decl: u(e, t) + }; + case "class_declaration": { + let n = function(e, t) { + let n = t.childForFieldName("body"); + if (n) return n.namedChildren.map((t => d(e, t))).filter((e => e)) + }(e, t), + r = ""; + if (n) { + let o = t.childForFieldName("body"); + r = `declare ${e.substring(t.startIndex,o.startIndex+1)}`, r += n.map((e => "\n" + e)).join(""), r += "\n}" + } + return { + name: o, + decl: r + } + } + } + return { + name: o, + decl: "" + } + } + + function u(e, t) { + var n, r, o; + const i = null !== (r = null === (n = t.childForFieldName("return_type")) || void 0 === n ? void 0 : n.endIndex) && void 0 !== r ? r : null === (o = t.childForFieldName("parameters")) || void 0 === o ? void 0 : o.endIndex; + if (void 0 !== i) { + let n = e.substring(t.startIndex, i) + ";"; + return "function_declaration" === t.type || "function_signature" === t.type ? "declare " + n : n + } + return "" + } + + function l(e, t) { + const n = (0, o.getFirstPrecedingComment)(t); + return n ? e.substring(n.startIndex, t.startIndex) : "" + } + + function d(e, t) { + var n, r, i, s, a; + if ("accessibility_modifier" === (null === (n = null == t ? void 0 : t.firstChild) || void 0 === n ? void 0 : n.type) && "private" === t.firstChild.text) return ""; + const c = (0, o.getFirstPrecedingComment)(t), + p = null !== (r = function(e, t) { + let n = t.startIndex - 1; + for (; n >= 0 && (" " === e[n] || "\t" === e[n]);) n--; + if (n < 0 || "\n" === e[n]) return e.substring(n + 1, t.startIndex) + }(e, null != c ? c : t)) && void 0 !== r ? r : " ", + h = l(e, t); + switch (t.type) { + case "ambient_declaration": + const n = t.namedChild(0); + return n ? p + h + d(e, n) : ""; + case "method_definition": + case "method_signature": + return p + h + u(e, t); + case "public_field_definition": { + let n = null !== (s = null === (i = t.childForFieldName("type")) || void 0 === i ? void 0 : i.endIndex) && void 0 !== s ? s : null === (a = t.childForFieldName("name")) || void 0 === a ? void 0 : a.endIndex; + if (void 0 !== n) return p + h + e.substring(t.startIndex, n) + ";" + } + } + return "" + } + async function p(e, t, n) { + let r = new Map, + i = -1; + try { + i = await n.mtime(e) + } catch { + return r + } + let s = a.get(e); + if (s && s.mtime === i) return s.exports; + if ("typescript" === t) { + let i = null; + try { + let s = (await n.readFile(e)).toString(); + i = await (0, o.parseTree)(t, s); + for (let e of (0, o.queryExports)(t, i.rootNode)) + for (let t of e.captures) { + let e = t.node; + if ("export_statement" === e.type) { + let t = e.childForFieldName("declaration"); + if (null == t ? void 0 : t.hasError()) continue; + let { + name: n, + decl: o + } = c(s, t); + if (n) { + o = l(s, e) + o; + let t = r.get(n); + t || (t = [], r.set(n, t)), t.push(o) + } + } + } + } catch {} finally { + i && i.delete() + } + } + if (a.size > 2e3) + for (let e of a.keys()) + if (a.delete(e), r.size <= 1e3) break; + return a.set(e, { + mtime: i, + exports: r + }), r + } + t.getDocComment = l; + const h = /^\s*import\s*(type|)\s*\{[^}]*\}\s*from\s*['"]\./gm; + t.extractLocalImportContext = async function(e, t) { + let { + source: n, + uri: r, + languageId: a + } = e; + return t && "typescript" === a ? async function(e, t, n) { + let r = "typescript", + a = []; + const c = function(e) { + let t, n = -1; + h.lastIndex = -1; + do { + t = h.exec(e), t && (n = h.lastIndex + t.length) + } while (t); + if (-1 === n) return -1; + const r = e.indexOf("\n", n); + return -1 !== r ? r : e.length + }(e); + if (-1 === c) return a; + e = e.substring(0, c); + let u = await (0, o.parseTree)(r, e); + try { + for (let e of function(e) { + let t = []; + for (let n of e.namedChildren) "import_statement" === n.type && t.push(n); + return t + }(u.rootNode)) { + let o = i(t, e); + if (!o) continue; + let c = s(e); + if (0 === c.length) continue; + let u = await p(o, r, n); + for (let e of c) u.has(e.name) && a.push(...u.get(e.name)) + } + } finally { + u.delete() + } + return a + }(n, r, t): [] + } + }, + 8629: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getNeighborSnippets = void 0; + const r = n(3272), + o = n(9872), + i = { + none: { + windowLength: 1, + threshold: -1, + numberOfNeighbors: 0 + }, + conservative: { + windowLength: 10, + threshold: .3, + numberOfNeighbors: 1 + }, + medium: { + windowLength: 20, + threshold: .1, + numberOfNeighbors: 2 + }, + eager: { + windowLength: 60, + threshold: 0, + numberOfNeighbors: 4 + }, + eagerButLittle: { + windowLength: 10, + threshold: 0, + numberOfNeighbors: 1 + } + }; + + function s(e) { + return [e.relativePath ? "Compare this snippet from " + e.relativePath + ":" : "Compare this snippet:"].concat(e.snippet.split("\n")) + } + t.getNeighborSnippets = async function(e, t, n) { + const a = i[n], + c = { + uri: e.uri, + languageId: e.languageId, + source: e.source.slice(0, e.offset).split("\n").slice(-a.windowLength).join("\n") + }; + return t.filter((e => e.source.length < 1e4 && e.source.length > 0)).slice(0, 20).map((e => ({ + relativePath: e.relativePath, + ...(0, o.findBestJaccardMatch)(e, c, a.windowLength) + }))).filter((e => e.score && e.snippet && e.score > a.threshold)).sort(((e, t) => e.score - t.score)).slice(-a.numberOfNeighbors).map(s).map((t => t.map((t => (0, r.comment)(t, e.languageId) + "\n")).join(""))) + } + }, + 2133: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getFunctionPositions = t.getFirstPrecedingComment = t.isFunctionDefinition = t.isFunction = t.getAncestorWithSiblingFunctions = t.queryPythonIsDocstring = t.queryGlobalVars = t.queryExports = t.queryImports = t.queryFunctions = t.getBlockCloseToken = t.parsesWithoutError = t.parseTree = t.getLanguage = t.languageIdToWasmLanguage = t.isSupportedLanguageId = t.WASMLanguage = void 0; + const r = n(1017), + o = n(7908), + i = n(7908); + var s; + ! function(e) { + e.Python = "python", e.JavaScript = "javascript", e.TypeScript = "typescript", e.Go = "go", e.Ruby = "ruby" + }(s = t.WASMLanguage || (t.WASMLanguage = {})); + const a = { + python: s.Python, + javascript: s.JavaScript, + javascriptreact: s.JavaScript, + jsx: s.JavaScript, + typescript: s.TypeScript, + typescriptreact: s.TypeScript, + go: s.Go, + ruby: s.Ruby + }; + + function c(e) { + if (!(e in a)) throw new Error(`Unrecognized language: ${e}`); + return a[e] + } + t.isSupportedLanguageId = function(e) { + return e in a + }, t.languageIdToWasmLanguage = c; + const u = { + python: [ + ["(function_definition body: (block\n (expression_statement (string))? @docstring) @body) @function"], + ['(ERROR ("def" (identifier) (parameters))) @function'] + ], + javascript: [ + ["[\n (function body: (statement_block) @body)\n (function_declaration body: (statement_block) @body)\n (generator_function body: (statement_block) @body)\n (generator_function_declaration body: (statement_block) @body)\n (method_definition body: (statement_block) @body)\n ] @function"] + ], + typescript: [ + ["[\n (function body: (statement_block) @body)\n (function_declaration body: (statement_block) @body)\n (generator_function body: (statement_block) @body)\n (generator_function_declaration body: (statement_block) @body)\n (method_definition body: (statement_block) @body)\n ] @function"] + ], + go: [ + ["[\n (function_declaration body: (block) @body)\n (method_declaration body: (block) @body)\n ] @function"] + ], + ruby: [ + ['[\n (method name: (_) parameters: (method_parameters)? @params [(_)+ "end"] @body)\n (singleton_method name: (_) parameters: (method_parameters)? @params [(_)+ "end"] @body)\n ] @function'] + ] + }, + l = '(variable_declarator value: (call_expression function: ((identifier) @req (#eq? @req "require"))))', + d = `\n (lexical_declaration ${l}+)\n (variable_declaration ${l}+)\n`, + p = { + python: [ + ["(module (future_import_statement) @import)"], + ["(module (import_statement) @import)"], + ["(module (import_from_statement) @import)"] + ], + javascript: [ + [`(program [ ${d} ] @import)`], + ["(program [ (import_statement) ] @import)"] + ], + typescript: [ + [`(program [ ${d} ] @import)`], + ["(program [ (import_statement) (import_alias) ] @import)"] + ], + go: [], + ruby: [] + }, + h = { + python: [], + javascript: [ + ["(program (export_statement) @export)"] + ], + typescript: [ + ["(program (export_statement) @export)"] + ], + go: [], + ruby: [] + }, + m = { + python: [ + ["(module (global_statement) @globalVar)"], + ["(module (expression_statement) @globalVar)"] + ], + javascript: [], + typescript: [], + go: [], + ruby: [] + }, + f = { + python: new Set(["function_definition"]), + javascript: new Set(["function", "function_declaration", "generator_function", "generator_function_declaration", "method_definition", "arrow_function"]), + typescript: new Set(["function", "function_declaration", "generator_function", "generator_function_declaration", "method_definition", "arrow_function"]), + go: new Set(["function_declaration", "method_declaration"]), + ruby: new Set(["method", "singleton_method"]) + }, + g = { + python: e => { + var t; + return "module" === e.type || "block" === e.type && "class_definition" === (null === (t = e.parent) || void 0 === t ? void 0 : t.type) + }, + javascript: e => "program" === e.type || "class_body" === e.type, + typescript: e => "program" === e.type || "class_body" === e.type, + go: e => "source_file" === e.type, + ruby: e => "program" === e.type || "class" === e.type + }, + y = new Map; + async function _(e) { + const t = c(e); + if (!y.has(t)) { + const e = await async function(e) { + await o.init(); + const t = (0, r.resolve)(__dirname, "..", "dist", `tree-sitter-${e}.wasm`); + return i.Language.load(t) + }(t); + y.set(t, e) + } + return y.get(t) + } + async function v(e, t) { + let n = await _(e); + const r = new o; + r.setLanguage(n); + const i = r.parse(t); + return r.delete(), i + } + + function b(e, t) { + const n = []; + for (const r of e) { + if (!r[1]) { + const e = t.tree.getLanguage(); + r[1] = e.query(r[0]) + } + n.push(...r[1].matches(t)) + } + return n + } + + function k(e, t) { + return b(u[c(e)], t) + } + t.getLanguage = _, t.parseTree = v, t.parsesWithoutError = async function(e, t) { + const n = await v(e, t), + r = !n.rootNode.hasError(); + return n.delete(), r + }, t.getBlockCloseToken = function(e) { + switch (c(e)) { + case s.Python: + return null; + case s.JavaScript: + case s.TypeScript: + case s.Go: + return "}"; + case s.Ruby: + return "end" + } + }, t.queryFunctions = k, t.queryImports = function(e, t) { + return b(p[c(e)], t) + }, t.queryExports = function(e, t) { + return b(h[c(e)], t) + }, t.queryGlobalVars = function(e, t) { + return b(m[c(e)], t) + }; + const w = ["[\n (class_definition (block (expression_statement (string))))\n (function_definition (block (expression_statement (string))))\n]"]; + + function j(e, t) { + return f[c(e)].has(t.type) + } + t.queryPythonIsDocstring = function(e) { + return 1 == b([w], e).length + }, t.getAncestorWithSiblingFunctions = function(e, t) { + const n = g[c(e)]; + for (; t.parent;) { + if (n(t.parent)) return t; + t = t.parent + } + return t.parent ? t : null + }, t.isFunction = j, t.isFunctionDefinition = function(e, t) { + switch (c(e)) { + case s.Python: + case s.Go: + case s.Ruby: + return j(e, t); + case s.JavaScript: + case s.TypeScript: + if ("function_declaration" === t.type || "generator_function_declaration" === t.type || "method_definition" === t.type) return !0; + if ("lexical_declaration" === t.type || "variable_declaration" === t.type) { + if (t.namedChildCount > 1) return !1; + let n = t.namedChild(0); + if (null == n) return !1; + let r = n.namedChild(1); + return null !== r && j(e, r) + } + if ("expression_statement" === t.type) { + let n = t.namedChild(0); + if ("assignment_expression" === (null == n ? void 0 : n.type)) { + let t = n.namedChild(1); + return null !== t && j(e, t) + } + } + return !1 + } + }, t.getFirstPrecedingComment = function(e) { + var t; + let n = e; + for (; + "comment" === (null === (t = n.previousSibling) || void 0 === t ? void 0 : t.type);) { + let e = n.previousSibling; + if (e.endPosition.row < n.startPosition.row - 1) break; + n = e + } + return "comment" === (null == n ? void 0 : n.type) ? n : null + }, t.getFunctionPositions = async function(e, t) { + return k(e, (await v(e, t)).rootNode).map((e => { + const t = e.captures.find((e => "function" === e.name)).node; + return { + startIndex: t.startIndex, + endIndex: t.endIndex + } + })) + } + }, + 4343: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getNodeStart = t.isBlockBodyFinished = t.isEmptyBlockStart = t.getBlockParser = void 0; + const r = n(2133); + class o { + constructor(e, t, n) { + this.languageId = e, this.nodeMatch = t, this.nodeTypesWithBlockOrStmtChild = n + } + async getNodeMatchAtPosition(e, t, n) { + const o = await (0, r.parseTree)(this.languageId, e); + try { + let e = o.rootNode.descendantForIndex(t); + for (; e;) { + const t = this.nodeMatch[e.type]; + if (t) { + if (!this.nodeTypesWithBlockOrStmtChild.has(e.type)) break; + const n = this.nodeTypesWithBlockOrStmtChild.get(e.type), + r = "" == n ? e.namedChildren[0] : e.childForFieldName(n); + if ((null == r ? void 0 : r.type) == t) break + } + e = e.parent + } + if (!e) return; + return n(e) + } finally { + o.delete() + } + } + getNextBlockAtPosition(e, t, n) { + return this.getNodeMatchAtPosition(e, t, (e => { + let t = e.children.reverse().find((t => t.type == this.nodeMatch[e.type])); + if (t) { + if ("python" == this.languageId && t.parent) { + const e = ":" == t.parent.type ? t.parent.parent : t.parent; + let n = null == e ? void 0 : e.nextSibling; + for (; n && "comment" == n.type;) { + const r = n.startPosition.row == t.endPosition.row && n.startPosition.column >= t.endPosition.column, + o = n.startPosition.row > e.endPosition.row && n.startPosition.column > e.startPosition.column; + if (!r && !o) break; + t = n, n = n.nextSibling + } + } + if (!(t.endIndex >= t.tree.rootNode.endIndex - 1 && (t.hasError() || t.parent.hasError()))) return n(t) + } + })) + } + async isBlockBodyFinished(e, t, n) { + const r = (e + t).trimEnd(), + o = await this.getNextBlockAtPosition(r, n, (e => e.endIndex)); + if (void 0 !== o && o < r.length) { + const t = o - e.length; + return t > 0 ? t : void 0 + } + } + getNodeStart(e, t) { + const n = e.trimEnd(); + return this.getNodeMatchAtPosition(n, t, (e => e.startIndex)) + } + } + class i extends o { + constructor(e, t, n, r, o) { + super(e, r, o), this.blockEmptyMatch = t, this.lineMatch = n + } + isBlockStart(e) { + return this.lineMatch.test(e.trimStart()) + } + async isBlockBodyEmpty(e, t) { + const n = await this.getNextBlockAtPosition(e, t, (n => { + n.startIndex < t && (t = n.startIndex); + let r = e.substring(t, n.endIndex).trim(); + return "" == r || r.replace(/\s/g, "") == this.blockEmptyMatch + })); + return void 0 === n || n + } + async isEmptyBlockStart(e, t) { + return t = s(e, t), this.isBlockStart(function(e, t) { + const n = e.lastIndexOf("\n", t - 1); + let r = e.indexOf("\n", t); + return r < 0 && (r = e.length), e.slice(n + 1, r) + }(e, t)) && this.isBlockBodyEmpty(e, t) + } + } + + function s(e, t) { + let n = t; + for (; n > 0 && /\s/.test(e.charAt(n - 1));) n--; + return n + } + + function a(e, t) { + const n = e.startIndex, + r = e.startIndex - e.startPosition.column, + o = t.substring(r, n); + if (/^\s*$/.test(o)) return o + } + + function c(e, t, n) { + if (t.startPosition.row <= e.startPosition.row) return !1; + const r = a(e, n), + o = a(t, n); + return void 0 !== r && void 0 !== o && r.startsWith(o) + } + class u extends o { + constructor(e, t, n, r, o, i, s) { + super(e, t, n), this.startKeywords = r, this.blockNodeType = o, this.emptyStatementType = i, this.curlyBraceLanguage = s + } + isBlockEmpty(e, t) { + var n, o; + let i = e.text.trim(); + return this.curlyBraceLanguage && (i.startsWith("{") && (i = i.slice(1)), i.endsWith("}") && (i = i.slice(0, -1)), i = i.trim()), 0 == i.length || !("python" != this.languageId || "class_definition" != (null === (n = e.parent) || void 0 === n ? void 0 : n.type) && "function_definition" != (null === (o = e.parent) || void 0 === o ? void 0 : o.type) || 1 != e.children.length || !(0, r.queryPythonIsDocstring)(e.parent)) + } + async isEmptyBlockStart(e, t) { + var n, o, i; + if (t > e.length) throw new RangeError("Invalid offset"); + for (let n = t; n < e.length && "\n" != e.charAt(n); n++) + if (/\S/.test(e.charAt(n))) return !1; + t = s(e, t); + const a = await (0, r.parseTree)(this.languageId, e); + try { + const r = a.rootNode.descendantForIndex(t - 1); + if (null == r) return !1; + if (this.curlyBraceLanguage && "}" == r.type) return !1; + if (("javascript" == this.languageId || "typescript" == this.languageId) && r.parent && "object" == r.parent.type && "{" == r.parent.text.trim()) return !0; + if ("typescript" == this.languageId) { + let n = r; + for (; n.parent;) { + if ("function_signature" == n.type || "method_signature" == n.type) { + const o = r.nextSibling; + return !!(o && n.hasError() && c(n, o, e)) || !n.children.find((e => ";" == e.type)) && n.endIndex <= t + } + n = n.parent + } + } + let s = null, + u = null, + l = null, + d = r; + for (; null != d;) { + if (d.type == this.blockNodeType) { + u = d; + break + } + if (this.nodeMatch[d.type]) { + l = d; + break + } + if ("ERROR" == d.type) { + s = d; + break + } + d = d.parent + } + if (null != u) { + if (!u.parent || !this.nodeMatch[u.parent.type]) return !1; + if ("python" == this.languageId) { + const e = u.previousSibling; + if (null != e && e.hasError() && (e.text.startsWith('"""') || e.text.startsWith("'''"))) return !0 + } + return this.isBlockEmpty(u, t) + } + if (null != s) { + if ("module" == (null === (n = s.previousSibling) || void 0 === n ? void 0 : n.type) || "internal_module" == (null === (o = s.previousSibling) || void 0 === o ? void 0 : o.type)) return !0; + const e = [...s.children].reverse(), + a = e.find((e => this.startKeywords.includes(e.type))); + let c = e.find((e => e.type == this.blockNodeType)); + if (a) { + switch (this.languageId) { + case "python": { + "try" == a.type && "identifier" == r.type && r.text.length > 4 && (c = null === (i = e.find((e => e.hasError()))) || void 0 === i ? void 0 : i.children.find((e => "block" == e.type))); + const t = e.find((e => ":" == e.type)); + if (t && a.endIndex <= t.startIndex && t.nextSibling) { + if ("def" == a.type) { + const e = t.nextSibling; + if ('"' == e.type || "'" == e.type) return !0; + if ("ERROR" == e.type && ('"""' == e.text || "'''" == e.text)) return !0 + } + return !1 + } + break + } + case "javascript": { + const t = e.find((e => "formal_parameters" == e.type)); + if ("class" == a.type && t) return !0; + const n = e.find((e => "{" == e.type)); + if (n && n.startIndex > a.endIndex && null != n.nextSibling) return !1; + if (e.find((e => "do" == e.type)) && "while" == a.type) return !1; + if ("=>" == a.type && a.nextSibling && "{" != a.nextSibling.type) return !1; + break + } + case "typescript": { + const t = e.find((e => "{" == e.type)); + if (t && t.startIndex > a.endIndex && null != t.nextSibling) return !1; + if (e.find((e => "do" == e.type)) && "while" == a.type) return !1; + if ("=>" == a.type && a.nextSibling && "{" != a.nextSibling.type) return !1; + break + } + } + return !(c && c.startIndex > a.endIndex) || this.isBlockEmpty(c, t) + } + } + if (null != l) { + const e = this.nodeMatch[l.type], + n = l.children.slice().reverse().find((t => t.type == e)); + if (n) return this.isBlockEmpty(n, t); + if (this.nodeTypesWithBlockOrStmtChild.has(l.type)) { + const e = this.nodeTypesWithBlockOrStmtChild.get(l.type), + t = "" == e ? l.children[0] : l.childForFieldName(e); + if (t && t.type != this.blockNodeType && t.type != this.emptyStatementType) return !1 + } + return !0 + } + return !1 + } finally { + a.delete() + } + } + } + const l = { + python: new u("python", { + class_definition: "block", + elif_clause: "block", + else_clause: "block", + except_clause: "block", + finally_clause: "block", + for_statement: "block", + function_definition: "block", + if_statement: "block", + try_statement: "block", + while_statement: "block", + with_statement: "block" + }, new Map, ["def", "class", "if", "elif", "else", "for", "while", "try", "except", "finally", "with"], "block", null, !1), + javascript: new u("javascript", { + arrow_function: "statement_block", + catch_clause: "statement_block", + do_statement: "statement_block", + else_clause: "statement_block", + finally_clause: "statement_block", + for_in_statement: "statement_block", + for_statement: "statement_block", + function: "statement_block", + function_declaration: "statement_block", + generator_function: "statement_block", + generator_function_declaration: "statement_block", + if_statement: "statement_block", + method_definition: "statement_block", + try_statement: "statement_block", + while_statement: "statement_block", + with_statement: "statement_block", + class: "class_body", + class_declaration: "class_body" + }, new Map([ + ["arrow_function", "body"], + ["do_statement", "body"], + ["else_clause", ""], + ["for_in_statement", "body"], + ["for_statement", "body"], + ["if_statement", "consequence"], + ["while_statement", "body"], + ["with_statement", "body"] + ]), ["=>", "try", "catch", "finally", "do", "for", "if", "else", "while", "with", "function", "function*", "class"], "statement_block", "empty_statement", !0), + typescript: new u("typescript", { + ambient_declaration: "statement_block", + arrow_function: "statement_block", + catch_clause: "statement_block", + do_statement: "statement_block", + else_clause: "statement_block", + finally_clause: "statement_block", + for_in_statement: "statement_block", + for_statement: "statement_block", + function: "statement_block", + function_declaration: "statement_block", + generator_function: "statement_block", + generator_function_declaration: "statement_block", + if_statement: "statement_block", + internal_module: "statement_block", + method_definition: "statement_block", + module: "statement_block", + try_statement: "statement_block", + while_statement: "statement_block", + abstract_class_declaration: "class_body", + class: "class_body", + class_declaration: "class_body" + }, new Map([ + ["arrow_function", "body"], + ["do_statement", "body"], + ["else_clause", ""], + ["for_in_statement", "body"], + ["for_statement", "body"], + ["if_statement", "consequence"], + ["while_statement", "body"], + ["with_statement", "body"] + ]), ["declare", "=>", "try", "catch", "finally", "do", "for", "if", "else", "while", "with", "function", "function*", "class"], "statement_block", "empty_statement", !0), + go: new i("go", "{}", /\b(func|if|else|for)\b/, { + communication_case: "block", + default_case: "block", + expression_case: "block", + for_statement: "block", + func_literal: "block", + function_declaration: "block", + if_statement: "block", + labeled_statement: "block", + method_declaration: "block", + type_case: "block" + }, new Map), + ruby: new i("ruby", "end", /\b(BEGIN|END|case|class|def|do|else|elsif|for|if|module|unless|until|while)\b|->/, { + begin_block: "}", + block: "}", + end_block: "}", + lambda: "block", + for: "do", + until: "do", + while: "do", + case: "end", + do: "end", + if: "end", + method: "end", + module: "end", + unless: "end", + do_block: "end" + }, new Map) + }; + + function d(e) { + return l[(0, r.languageIdToWasmLanguage)(e)] + } + t.getBlockParser = d, t.isEmptyBlockStart = async function(e, t, n) { + return !!(0, r.isSupportedLanguageId)(e) && d(e).isEmptyBlockStart(t, n) + }, t.isBlockBodyFinished = async function(e, t, n, o) { + if ((0, r.isSupportedLanguageId)(e)) return d(e).isBlockBodyFinished(t, n, o) + }, t.getNodeStart = async function(e, t, n) { + if ((0, r.isSupportedLanguageId)(e)) return d(e).getNodeStart(t, n) + } + }, + 8684: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getPrompt = t.newLineEnded = t.normalizeLanguageId = t.PromptOptions = t.SuffixOption = t.LineEndingOptions = t.LocalImportContextOption = t.NeighboringTabsOption = t.SiblingOption = t.PathMarkerOption = t.LanguageMarkerOption = t.TOKENS_RESERVED_FOR_SUFFIX_ENCODING = t.MAX_PROMPT_LENGTH = void 0; + const r = n(5037), + o = n(3272), + i = n(1986), + s = n(8629), + a = n(1729), + c = n(5037), + u = n(7503); + var l, d, p, h, m, f, g; + t.MAX_PROMPT_LENGTH = 1500, t.TOKENS_RESERVED_FOR_SUFFIX_ENCODING = 5, + function(e) { + e.NoMarker = "nomarker", e.Top = "top", e.Always = "always" + }(l = t.LanguageMarkerOption || (t.LanguageMarkerOption = {})), + function(e) { + e.NoMarker = "nomarker", e.Top = "top", e.Always = "always" + }(d = t.PathMarkerOption || (t.PathMarkerOption = {})), + function(e) { + e.NoSiblings = "nosiblings", e.SiblingsOverContext = "siblingabove", e.ContextOverSiblings = "contextabove" + }(p = t.SiblingOption || (t.SiblingOption = {})), + function(e) { + e.None = "none", e.Conservative = "conservative", e.Medium = "medium", e.Eager = "eager", e.EagerButLittle = "eagerButLittle" + }(h = t.NeighboringTabsOption || (t.NeighboringTabsOption = {})), + function(e) { + e.NoContext = "nocontext", e.Declarations = "declarations" + }(m = t.LocalImportContextOption || (t.LocalImportContextOption = {})), + function(e) { + e.ConvertToUnix = "unix", e.KeepOriginal = "keep" + }(f = t.LineEndingOptions || (t.LineEndingOptions = {})), (g = t.SuffixOption || (t.SuffixOption = {})).None = "none", g.FifteenPercent = "fifteenPercent"; + class y { + constructor(e, n) { + if (this.fs = e, this.maxPromptLength = t.MAX_PROMPT_LENGTH, this.languageMarker = l.Top, this.pathMarker = d.Top, this.includeSiblingFunctions = p.ContextOverSiblings, this.localImportContext = m.Declarations, this.neighboringTabs = h.Eager, this.lineEnding = f.ConvertToUnix, this.suffixPercent = 0, n) + for (const e in n) this[e] = n[e]; + if (this.suffixPercent < 0 || this.suffixPercent > 100) throw new Error(`suffixPercent must be between 0 and 100, but was ${this.suffixPercent}`); + if (this.suffixPercent > 0 && this.includeSiblingFunctions != p.NoSiblings) throw new Error(`Invalid option combination. Cannot set suffixPercent > 0 (${this.suffixPercent}) and includeSiblingFunctions ${this.includeSiblingFunctions}`) + } + } + t.PromptOptions = y; + const _ = { + javascriptreact: "javascript", + jsx: "javascript", + typescriptreact: "typescript", + jade: "pug", + cshtml: "razor" + }; + + function v(e) { + var t; + return e = e.toLowerCase(), null !== (t = _[e]) && void 0 !== t ? t : e + } + + function b(e) { + return "" == e || e.endsWith("\n") ? e : e + "\n" + } + t.normalizeLanguageId = v, t.newLineEnded = b, t.getPrompt = async function(e, n, f = {}, g = []) { + const _ = new y(e, f), + { + source: k, + offset: w + } = n; + if (w < 0 || w > k.length) throw new Error(`Offset ${w} is out of range.`); + n.languageId = v(n.languageId); + const j = new u.Priorities, + x = j.justBelow(u.Priorities.TOP), + E = _.pathMarker == d.Always ? j.justBelow(u.Priorities.TOP) : j.justBelow(x), + C = _.languageMarker == l.Always ? j.justBelow(u.Priorities.TOP) : j.justBelow(x), + S = _.includeSiblingFunctions == p.ContextOverSiblings ? j.justBelow(x) : j.justAbove(x), + T = j.justBelow(x, S), + P = j.justBelow(T), + I = new u.PromptWishlist(_.lineEnding); + let R, O; + if (_.languageMarker != l.NoMarker) { + const e = b((0, o.getLanguageMarker)(n)); + R = I.append(e, u.PromptElementKind.LanguageMarker, C) + } + if (_.pathMarker != d.NoMarker) { + const e = b((0, o.getPathMarker)(n)); + O = I.append(e, u.PromptElementKind.PathMarker, E) + } + if (_.localImportContext != m.NoContext) + for (const e of await (0, i.extractLocalImportContext)(n, _.fs)) I.append(b(e), u.PromptElementKind.ImportedFile, T); + _.neighboringTabs != h.None && g.length > 0 && (await (0, s.getNeighborSnippets)(n, g, _.neighboringTabs)).forEach((e => I.append(e, u.PromptElementKind.SimilarFile, P))); + let A = []; + if (_.includeSiblingFunctions == p.NoSiblings) A = I.appendLineForLine(k.substring(0, w), u.PromptElementKind.BeforeCursor, x); + else { + const { + siblings: e, + beforeInsertion: t, + afterInsertion: r + } = await (0, a.getSiblingFunctions)(n); + I.appendLineForLine(t, u.PromptElementKind.BeforeCursor, x); + let o = S; + e.forEach((e => { + I.append(e, u.PromptElementKind.AfterCursor, o), o = j.justBelow(o) + })), A = I.appendLineForLine(r, u.PromptElementKind.BeforeCursor, x) + } + if (l.Top == _.languageMarker && A.length > 0 && void 0 !== R && I.require(R, A[0]), d.Top == _.pathMarker && A.length > 0 && void 0 !== O && (R ? I.require(O, R) : I.require(O, A[0])), 0 == _.suffixPercent) return I.fulfill(_.maxPromptLength); { + const e = _.maxPromptLength - t.TOKENS_RESERVED_FOR_SUFFIX_ENCODING; + let o = Math.floor(e * (100 - _.suffixPercent) / 100), + i = I.fulfill(o); + const s = e - i.prefixLength, + a = (0, r.takeFirstTokens)(k.slice(n.offset), s), + u = (0, c.tokenLength)(a); + return u <= s - 3 && (o += s - u, i = I.fulfill(o)), i.suffix = a, i.suffixLength = u, i + } + } + }, + 9872: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.splitIntoWords = t.findBestJaccardMatch = void 0; + const n = new class { + constructor(e) { + this.keys = [], this.cache = {}, this.size = e + } + put(e, t) { + var n; + if (this.cache[e] = t, this.keys.length > this.size) { + this.keys.push(e); + const t = null !== (n = this.keys.shift()) && void 0 !== n ? n : ""; + delete this.cache[t] + } + } + get(e) { + return this.cache[e] + } + }(20); + + function r(e, t) { + const n = new Set; + return e.forEach((e => { + t.has(e) && n.add(e) + })), n.size / (e.size + t.size - n.size) + } + + function o(e) { + return e.split(/[^a-zA-Z0-9]/).filter((e => e.length > 0)) + } + t.findBestJaccardMatch = function(e, t, i) { + var c, u; + if (0 === e.source.length || 0 === t.source.length) return; + const l = null !== (c = a.get(t.languageId)) && void 0 !== c ? c : s, + d = new Set(o(t.source).filter((e => !l.has(e)))), + p = e.source.split("\n"), + h = i.toString() + ":" + e.source, + m = null !== (u = n.get(h)) && void 0 !== u ? u : [], + f = 0 == m.length, + g = f ? p.map((e => new Set(o(e).filter((e => !l.has(e)))))) : []; + let y = -1, + _ = 0; + for (let e = 0; 0 == e || e < p.length - i; e++) { + const t = Math.min(e + i, p.length); + if (f) { + const n = new Set; + g.slice(e, t).forEach((e => e.forEach(n.add, n))), m.push(n) + } + const n = r(m[e], d); + n > _ && (_ = n, y = e) + } + if (f && n.put(h, m), -1 !== y) { + const e = y, + t = Math.min(e + i, p.length); + return { + snippet: p.slice(e, t).join("\n"), + score: _ + } + } + }, t.splitIntoWords = o; + const i = new Set(["we", "our", "you", "it", "its", "they", "them", "their", "this", "that", "these", "those", "is", "are", "was", "were", "be", "been", "being", "have", "has", "had", "having", "do", "does", "did", "doing", "can", "don", "t", "s", "will", "would", "should", "what", "which", "who", "when", "where", "why", "how", "a", "an", "the", "and", "or", "not", "no", "but", "because", "as", "until", "again", "further", "then", "once", "here", "there", "all", "any", "both", "each", "few", "more", "most", "other", "some", "such", "above", "below", "to", "during", "before", "after", "of", "at", "by", "about", "between", "into", "through", "from", "up", "down", "in", "out", "on", "off", "over", "under", "only", "own", "same", "so", "than", "too", "very", "just", "now"]), + s = new Set(["if", "then", "else", "for", "while", "with", "def", "function", "return", "TODO", "import", "try", "catch", "raise", "finally", "repeat", "switch", "case", "match", "assert", "continue", "break", "const", "class", "enum", "struct", "static", "new", "super", "this", "var", ...i]), + a = new Map([]) + }, + 1729: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getSiblingFunctions = void 0; + const r = n(8684), + o = n(2133); + t.getSiblingFunctions = async function({ + source: e, + offset: t, + languageId: n + }) { + var i, s; + const a = []; + let c = "", + u = e.substring(0, t); + if ((0, o.isSupportedLanguageId)(n)) { + const l = await (0, o.parseTree)(n, e); + try { + let d = t; + for (; d >= 0 && /\s/.test(e[d]);) d--; + const p = l.rootNode.descendantForIndex(d), + h = (0, o.getAncestorWithSiblingFunctions)(n, p); + if (h) { + const l = (0, o.getFirstPrecedingComment)(h), + d = null !== (i = null == l ? void 0 : l.startIndex) && void 0 !== i ? i : h.startIndex; + let p, m = 0; + for (; + " " == (p = e[d - m - 1]) || "\t" == p;) m++; + const f = e.substring(d - m, d); + for (let i = h.nextSibling; i; i = i.nextSibling) + if ((0, o.isFunctionDefinition)(n, i)) { + const n = (0, o.getFirstPrecedingComment)(i), + c = null !== (s = null == n ? void 0 : n.startIndex) && void 0 !== s ? s : i.startIndex; + if (c < t) continue; + const u = e.substring(c, i.endIndex), + l = (0, r.newLineEnded)(u) + "\n" + f; + a.push(l) + } c = e.substring(0, d), u = e.substring(d, t) + } + } finally { + l.delete() + } + } + return { + siblings: a, + beforeInsertion: c, + afterInsertion: u + } + } + }, + 7503: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.Priorities = t.PromptWishlist = t.PromptChoices = t.PromptElementKind = void 0; + const r = n(8684), + o = n(5037); + var i; + (i = t.PromptElementKind || (t.PromptElementKind = {})).BeforeCursor = "BeforeCursor", i.AfterCursor = "AfterCursor", i.SimilarFile = "SimilarFile", i.ImportedFile = "ImportedFile", i.LanguageMarker = "LanguageMarker", i.PathMarker = "PathMarker"; + class s { + constructor() { + this.used = new Map, this.unused = new Map + } + markUsed(e) { + this.used.set(e.kind, (this.used.get(e.kind) || 0) + e.tokens) + } + undoMarkUsed(e) { + this.used.set(e.kind, (this.used.get(e.kind) || 0) - e.tokens) + } + markUnused(e) { + this.unused.set(e.kind, (this.used.get(e.kind) || 0) + e.tokens) + } + } + t.PromptChoices = s, t.PromptWishlist = class { + constructor(e) { + this.content = [], this.lineEndingOption = e + } + getContent() { + return [...this.content] + } + convertLineEndings(e) { + return this.lineEndingOption === r.LineEndingOptions.ConvertToUnix && (e = e.replace(/\r\n/g, "\n").replace(/\r/g, "\n")), e + } + append(e, t, n, r = (0, o.tokenLength)(e)) { + e = this.convertLineEndings(e); + const i = this.content.length; + return this.content.push({ + id: i, + text: e, + kind: t, + priority: n, + tokens: r, + requires: [], + excludes: [] + }), i + } + appendLineForLine(e, t, n) { + const r = (e = this.convertLineEndings(e)).split("\n"); + for (let e = 0; e < r.length - 1; e++) r[e] += "\n"; + const o = []; + r.forEach(((e, t) => { + "\n" === e && o.length > 0 && !o[o.length - 1].endsWith("\n\n") ? o[o.length - 1] += "\n" : o.push(e) + })); + const i = []; + return o.forEach(((e, r) => { + "" !== e && (i.push(this.append(e, t, n)), r > 0 && (this.content[this.content.length - 2].requires = [this.content[this.content.length - 1]])) + })), i + } + require(e, t) { + const n = this.content.find((t => t.id === e)), + r = this.content.find((e => e.id === t)); + n && r && n.requires.push(r) + } + exclude(e, t) { + const n = this.content.find((t => t.id === e)), + r = this.content.find((e => e.id === t)); + n && r && n.excludes.push(r) + } + fulfill(e) { + const t = new s, + n = this.content.map(((e, t) => ({ + element: e, + index: t + }))); + n.sort(((e, t) => e.element.priority === t.element.priority ? t.index - e.index : t.element.priority - e.element.priority)); + const r = new Set, + i = new Set; + let a; + const c = []; + let u = e; + n.forEach((e => { + var n; + const o = e.element, + s = e.index; + if (u >= 0 && (u > 0 || void 0 === a) && o.requires.every((e => r.has(e.id))) && !i.has(o.id)) { + let l = o.tokens; + const d = null === (n = function(e, t) { + let n, r = 1 / 0; + for (const o of e) o.index > t && o.index < r && (n = o, r = o.index); + return n + }(c, s)) || void 0 === n ? void 0 : n.element; + o.text.endsWith("\n\n") && d && !d.text.match(/^\s/) && l++, u >= l ? (u -= l, r.add(o.id), o.excludes.forEach((e => i.add(e.id))), t.markUsed(o), c.push(e)) : a = null != a ? a : e + } else t.markUnused(o) + })), c.sort(((e, t) => e.index - t.index)); + let l = c.reduce(((e, t) => e + t.element.text), ""), + d = (0, o.tokenLength)(l); + for (; d > e;) { + c.sort(((e, t) => t.element.priority === e.element.priority ? t.index - e.index : t.element.priority - e.element.priority)); + const e = c.pop(); + e && (t.undoMarkUsed(e.element), t.markUnused(e.element), a = void 0), c.sort(((e, t) => e.index - t.index)), l = c.reduce(((e, t) => e + t.element.text), ""), d = (0, o.tokenLength)(l) + } + const p = [...c]; + if (void 0 !== a) { + p.push(a), p.sort(((e, t) => e.index - t.index)); + const n = p.reduce(((e, t) => e + t.element.text), ""), + r = (0, o.tokenLength)(n); + if (r <= e) return t.markUsed(a.element), { + prefix: n, + suffix: "", + prefixLength: r, + suffixLength: 0, + promptChoices: t + }; + t.markUnused(a.element) + } + return { + prefix: l, + suffix: "", + prefixLength: d, + suffixLength: 0, + promptChoices: t + } + } + }; + class a { + constructor() { + this.registeredPriorities = [0, 1] + } + register(e) { + if (e > a.TOP || e < a.BOTTOM) throw new Error("Priority must be between 0 and 1"); + return this.registeredPriorities.push(e), e + } + justAbove(...e) { + const t = Math.max(...e), + n = Math.min(...this.registeredPriorities.filter((e => e > t))); + return this.register((n + t) / 2) + } + justBelow(...e) { + const t = Math.min(...e), + n = Math.max(...this.registeredPriorities.filter((e => e < t))); + return this.register((n + t) / 2) + } + between(e, t) { + if (this.registeredPriorities.some((n => n > e && n < t)) || !this.registeredPriorities.includes(e) || !this.registeredPriorities.includes(t)) throw new Error("Priorities must be adjacent in the list of priorities"); + return this.register((e + t) / 2) + } + } + t.Priorities = a, a.TOP = 1, a.BOTTOM = 0 + }, + 6767: (e, t) => { + "use strict"; + t.fromCallback = function(e) { + return Object.defineProperty((function() { + if ("function" != typeof arguments[arguments.length - 1]) return new Promise(((t, n) => { + arguments[arguments.length] = (e, r) => { + if (e) return n(e); + t(r) + }, arguments.length++, e.apply(this, arguments) + })); + e.apply(this, arguments) + }), "name", { + value: e.name + }) + }, t.fromPromise = function(e) { + return Object.defineProperty((function() { + const t = arguments[arguments.length - 1]; + if ("function" != typeof t) return e.apply(this, arguments); + e.apply(this, arguments).then((e => t(null, e)), t) + }), "name", { + value: e.name + }) + } + }, + 2371: function(e, t) { + ! function(e) { + "use strict"; + + function t() { + for (var e = arguments.length, t = Array(e), n = 0; n < e; n++) t[n] = arguments[n]; + if (t.length > 1) { + t[0] = t[0].slice(0, -1); + for (var r = t.length - 1, o = 1; o < r; ++o) t[o] = t[o].slice(1, -1); + return t[r] = t[r].slice(1), t.join("") + } + return t[0] + } + + function n(e) { + return "(?:" + e + ")" + } + + function r(e) { + return void 0 === e ? "undefined" : null === e ? "null" : Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase() + } + + function o(e) { + return e.toUpperCase() + } + + function i(e) { + var r = "[A-Za-z]", + o = "[0-9]", + i = t(o, "[A-Fa-f]"), + s = n(n("%[EFef]" + i + "%" + i + i + "%" + i + i) + "|" + n("%[89A-Fa-f]" + i + "%" + i + i) + "|" + n("%" + i + i)), + a = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", + c = t("[\\:\\/\\?\\#\\[\\]\\@]", a), + u = e ? "[\\uE000-\\uF8FF]" : "[]", + l = t(r, o, "[\\-\\.\\_\\~]", e ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]"), + d = n(r + t(r, o, "[\\+\\-\\.]") + "*"), + p = n(n(s + "|" + t(l, a, "[\\:]")) + "*"), + h = (n(n("25[0-5]") + "|" + n("2[0-4][0-9]") + "|" + n("1[0-9][0-9]") + "|" + n("[1-9][0-9]") + "|" + o), n(n("25[0-5]") + "|" + n("2[0-4][0-9]") + "|" + n("1[0-9][0-9]") + "|" + n("0?[1-9][0-9]") + "|0?0?" + o)), + m = n(h + "\\." + h + "\\." + h + "\\." + h), + f = n(i + "{1,4}"), + g = n(n(f + "\\:" + f) + "|" + m), + y = n(n(f + "\\:") + "{6}" + g), + _ = n("\\:\\:" + n(f + "\\:") + "{5}" + g), + v = n(n(f) + "?\\:\\:" + n(f + "\\:") + "{4}" + g), + b = n(n(n(f + "\\:") + "{0,1}" + f) + "?\\:\\:" + n(f + "\\:") + "{3}" + g), + k = n(n(n(f + "\\:") + "{0,2}" + f) + "?\\:\\:" + n(f + "\\:") + "{2}" + g), + w = n(n(n(f + "\\:") + "{0,3}" + f) + "?\\:\\:" + f + "\\:" + g), + j = n(n(n(f + "\\:") + "{0,4}" + f) + "?\\:\\:" + g), + x = n(n(n(f + "\\:") + "{0,5}" + f) + "?\\:\\:" + f), + E = n(n(n(f + "\\:") + "{0,6}" + f) + "?\\:\\:"), + C = n([y, _, v, b, k, w, j, x, E].join("|")), + S = n(n(l + "|" + s) + "+"), + T = (n(C + "\\%25" + S), n(C + n("\\%25|\\%(?!" + i + "{2})") + S)), + P = n("[vV]" + i + "+\\." + t(l, a, "[\\:]") + "+"), + I = n("\\[" + n(T + "|" + C + "|" + P) + "\\]"), + R = n(n(s + "|" + t(l, a)) + "*"), + O = n(I + "|" + m + "(?!" + R + ")|" + R), + A = n("[0-9]*"), + N = n(n(p + "@") + "?" + O + n("\\:" + A) + "?"), + D = n(s + "|" + t(l, a, "[\\:\\@]")), + M = n(D + "*"), + q = n(D + "+"), + L = n(n(s + "|" + t(l, a, "[\\@]")) + "+"), + $ = n(n("\\/" + M) + "*"), + F = n("\\/" + n(q + $) + "?"), + z = n(L + $), + B = n(q + $), + U = "(?!" + D + ")", + H = (n($ + "|" + F + "|" + z + "|" + B + "|" + U), n(n(D + "|" + t("[\\/\\?]", u)) + "*")), + W = n(n(D + "|[\\/\\?]") + "*"), + G = n(n("\\/\\/" + N + $) + "|" + F + "|" + B + "|" + U), + V = n(d + "\\:" + G + n("\\?" + H) + "?" + n("\\#" + W) + "?"), + K = n(n("\\/\\/" + N + $) + "|" + F + "|" + z + "|" + U), + J = n(K + n("\\?" + H) + "?" + n("\\#" + W) + "?"); + return n(V + "|" + J), n(d + "\\:" + G + n("\\?" + H) + "?"), n(n("\\/\\/(" + n("(" + p + ")@") + "?(" + O + ")" + n("\\:(" + A + ")") + "?)") + "?(" + $ + "|" + F + "|" + B + "|" + U + ")"), n("\\?(" + H + ")"), n("\\#(" + W + ")"), n(n("\\/\\/(" + n("(" + p + ")@") + "?(" + O + ")" + n("\\:(" + A + ")") + "?)") + "?(" + $ + "|" + F + "|" + z + "|" + U + ")"), n("\\?(" + H + ")"), n("\\#(" + W + ")"), n(n("\\/\\/(" + n("(" + p + ")@") + "?(" + O + ")" + n("\\:(" + A + ")") + "?)") + "?(" + $ + "|" + F + "|" + B + "|" + U + ")"), n("\\?(" + H + ")"), n("\\#(" + W + ")"), n("(" + p + ")@"), n("\\:(" + A + ")"), { + NOT_SCHEME: new RegExp(t("[^]", r, o, "[\\+\\-\\.]"), "g"), + NOT_USERINFO: new RegExp(t("[^\\%\\:]", l, a), "g"), + NOT_HOST: new RegExp(t("[^\\%\\[\\]\\:]", l, a), "g"), + NOT_PATH: new RegExp(t("[^\\%\\/\\:\\@]", l, a), "g"), + NOT_PATH_NOSCHEME: new RegExp(t("[^\\%\\/\\@]", l, a), "g"), + NOT_QUERY: new RegExp(t("[^\\%]", l, a, "[\\:\\@\\/\\?]", u), "g"), + NOT_FRAGMENT: new RegExp(t("[^\\%]", l, a, "[\\:\\@\\/\\?]"), "g"), + ESCAPE: new RegExp(t("[^]", l, a), "g"), + UNRESERVED: new RegExp(l, "g"), + OTHER_CHARS: new RegExp(t("[^\\%]", l, c), "g"), + PCT_ENCODED: new RegExp(s, "g"), + IPV4ADDRESS: new RegExp("^(" + m + ")$"), + IPV6ADDRESS: new RegExp("^\\[?(" + C + ")" + n(n("\\%25|\\%(?!" + i + "{2})") + "(" + S + ")") + "?\\]?$") + } + } + var s = i(!1), + a = i(!0), + c = function(e, t) { + if (Array.isArray(e)) return e; + if (Symbol.iterator in Object(e)) return function(e, t) { + var n = [], + r = !0, + o = !1, + i = void 0; + try { + for (var s, a = e[Symbol.iterator](); !(r = (s = a.next()).done) && (n.push(s.value), !t || n.length !== t); r = !0); + } catch (e) { + o = !0, i = e + } finally { + try { + !r && a.return && a.return() + } finally { + if (o) throw i + } + } + return n + }(e, t); + throw new TypeError("Invalid attempt to destructure non-iterable instance") + }, + u = 2147483647, + l = 36, + d = /^xn--/, + p = /[^\0-\x7E]/, + h = /[\x2E\u3002\uFF0E\uFF61]/g, + m = { + overflow: "Overflow: input needs wider integers to process", + "not-basic": "Illegal input >= 0x80 (not a basic code point)", + "invalid-input": "Invalid input" + }, + f = Math.floor, + g = String.fromCharCode; + + function y(e) { + throw new RangeError(m[e]) + } + + function _(e, t) { + var n = e.split("@"), + r = ""; + return n.length > 1 && (r = n[0] + "@", e = n[1]), r + function(e, t) { + for (var n = [], r = e.length; r--;) n[r] = t(e[r]); + return n + }((e = e.replace(h, ".")).split("."), t).join(".") + } + + function v(e) { + for (var t = [], n = 0, r = e.length; n < r;) { + var o = e.charCodeAt(n++); + if (o >= 55296 && o <= 56319 && n < r) { + var i = e.charCodeAt(n++); + 56320 == (64512 & i) ? t.push(((1023 & o) << 10) + (1023 & i) + 65536) : (t.push(o), n--) + } else t.push(o) + } + return t + } + var b = function(e, t) { + return e + 22 + 75 * (e < 26) - ((0 != t) << 5) + }, + k = function(e, t, n) { + var r = 0; + for (e = n ? f(e / 700) : e >> 1, e += f(e / t); e > 455; r += l) e = f(e / 35); + return f(r + 36 * e / (e + 38)) + }, + w = function(e) { + var t, n = [], + r = e.length, + o = 0, + i = 128, + s = 72, + a = e.lastIndexOf("-"); + a < 0 && (a = 0); + for (var c = 0; c < a; ++c) e.charCodeAt(c) >= 128 && y("not-basic"), n.push(e.charCodeAt(c)); + for (var d = a > 0 ? a + 1 : 0; d < r;) { + for (var p = o, h = 1, m = l;; m += l) { + d >= r && y("invalid-input"); + var g = (t = e.charCodeAt(d++)) - 48 < 10 ? t - 22 : t - 65 < 26 ? t - 65 : t - 97 < 26 ? t - 97 : l; + (g >= l || g > f((u - o) / h)) && y("overflow"), o += g * h; + var _ = m <= s ? 1 : m >= s + 26 ? 26 : m - s; + if (g < _) break; + var v = l - _; + h > f(u / v) && y("overflow"), h *= v + } + var b = n.length + 1; + s = k(o - p, b, 0 == p), f(o / b) > u - i && y("overflow"), i += f(o / b), o %= b, n.splice(o++, 0, i) + } + return String.fromCodePoint.apply(String, n) + }, + j = function(e) { + var t = [], + n = (e = v(e)).length, + r = 128, + o = 0, + i = 72, + s = !0, + a = !1, + c = void 0; + try { + for (var d, p = e[Symbol.iterator](); !(s = (d = p.next()).done); s = !0) { + var h = d.value; + h < 128 && t.push(g(h)) + } + } catch (e) { + a = !0, c = e + } finally { + try { + !s && p.return && p.return() + } finally { + if (a) throw c + } + } + var m = t.length, + _ = m; + for (m && t.push("-"); _ < n;) { + var w = u, + j = !0, + x = !1, + E = void 0; + try { + for (var C, S = e[Symbol.iterator](); !(j = (C = S.next()).done); j = !0) { + var T = C.value; + T >= r && T < w && (w = T) + } + } catch (e) { + x = !0, E = e + } finally { + try { + !j && S.return && S.return() + } finally { + if (x) throw E + } + } + var P = _ + 1; + w - r > f((u - o) / P) && y("overflow"), o += (w - r) * P, r = w; + var I = !0, + R = !1, + O = void 0; + try { + for (var A, N = e[Symbol.iterator](); !(I = (A = N.next()).done); I = !0) { + var D = A.value; + if (D < r && ++o > u && y("overflow"), D == r) { + for (var M = o, q = l;; q += l) { + var L = q <= i ? 1 : q >= i + 26 ? 26 : q - i; + if (M < L) break; + var $ = M - L, + F = l - L; + t.push(g(b(L + $ % F, 0))), M = f($ / F) + } + t.push(g(b(M, 0))), i = k(o, P, _ == m), o = 0, ++_ + } + } + } catch (e) { + R = !0, O = e + } finally { + try { + !I && N.return && N.return() + } finally { + if (R) throw O + } + }++o, ++r + } + return t.join("") + }, + x = function(e) { + return _(e, (function(e) { + return p.test(e) ? "xn--" + j(e) : e + })) + }, + E = function(e) { + return _(e, (function(e) { + return d.test(e) ? w(e.slice(4).toLowerCase()) : e + })) + }, + C = {}; + + function S(e) { + var t = e.charCodeAt(0); + return t < 16 ? "%0" + t.toString(16).toUpperCase() : t < 128 ? "%" + t.toString(16).toUpperCase() : t < 2048 ? "%" + (t >> 6 | 192).toString(16).toUpperCase() + "%" + (63 & t | 128).toString(16).toUpperCase() : "%" + (t >> 12 | 224).toString(16).toUpperCase() + "%" + (t >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (63 & t | 128).toString(16).toUpperCase() + } + + function T(e) { + for (var t = "", n = 0, r = e.length; n < r;) { + var o = parseInt(e.substr(n + 1, 2), 16); + if (o < 128) t += String.fromCharCode(o), n += 3; + else if (o >= 194 && o < 224) { + if (r - n >= 6) { + var i = parseInt(e.substr(n + 4, 2), 16); + t += String.fromCharCode((31 & o) << 6 | 63 & i) + } else t += e.substr(n, 6); + n += 6 + } else if (o >= 224) { + if (r - n >= 9) { + var s = parseInt(e.substr(n + 4, 2), 16), + a = parseInt(e.substr(n + 7, 2), 16); + t += String.fromCharCode((15 & o) << 12 | (63 & s) << 6 | 63 & a) + } else t += e.substr(n, 9); + n += 9 + } else t += e.substr(n, 3), n += 3 + } + return t + } + + function P(e, t) { + function n(e) { + var n = T(e); + return n.match(t.UNRESERVED) ? n : e + } + return e.scheme && (e.scheme = String(e.scheme).replace(t.PCT_ENCODED, n).toLowerCase().replace(t.NOT_SCHEME, "")), void 0 !== e.userinfo && (e.userinfo = String(e.userinfo).replace(t.PCT_ENCODED, n).replace(t.NOT_USERINFO, S).replace(t.PCT_ENCODED, o)), void 0 !== e.host && (e.host = String(e.host).replace(t.PCT_ENCODED, n).toLowerCase().replace(t.NOT_HOST, S).replace(t.PCT_ENCODED, o)), void 0 !== e.path && (e.path = String(e.path).replace(t.PCT_ENCODED, n).replace(e.scheme ? t.NOT_PATH : t.NOT_PATH_NOSCHEME, S).replace(t.PCT_ENCODED, o)), void 0 !== e.query && (e.query = String(e.query).replace(t.PCT_ENCODED, n).replace(t.NOT_QUERY, S).replace(t.PCT_ENCODED, o)), void 0 !== e.fragment && (e.fragment = String(e.fragment).replace(t.PCT_ENCODED, n).replace(t.NOT_FRAGMENT, S).replace(t.PCT_ENCODED, o)), e + } + + function I(e) { + return e.replace(/^0*(.*)/, "$1") || "0" + } + + function R(e, t) { + var n = e.match(t.IPV4ADDRESS) || [], + r = c(n, 2)[1]; + return r ? r.split(".").map(I).join(".") : e + } + + function O(e, t) { + var n = e.match(t.IPV6ADDRESS) || [], + r = c(n, 3), + o = r[1], + i = r[2]; + if (o) { + for (var s = o.toLowerCase().split("::").reverse(), a = c(s, 2), u = a[0], l = a[1], d = l ? l.split(":").map(I) : [], p = u.split(":").map(I), h = t.IPV4ADDRESS.test(p[p.length - 1]), m = h ? 7 : 8, f = p.length - m, g = Array(m), y = 0; y < m; ++y) g[y] = d[y] || p[f + y] || ""; + h && (g[m - 1] = R(g[m - 1], t)); + var _ = g.reduce((function(e, t, n) { + if (!t || "0" === t) { + var r = e[e.length - 1]; + r && r.index + r.length === n ? r.length++ : e.push({ + index: n, + length: 1 + }) + } + return e + }), []).sort((function(e, t) { + return t.length - e.length + }))[0], + v = void 0; + if (_ && _.length > 1) { + var b = g.slice(0, _.index), + k = g.slice(_.index + _.length); + v = b.join(":") + "::" + k.join(":") + } else v = g.join(":"); + return i && (v += "%" + i), v + } + return e + } + var A = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i, + N = void 0 === "".match(/(){0}/)[1]; + + function D(e) { + var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, + n = {}, + r = !1 !== t.iri ? a : s; + "suffix" === t.reference && (e = (t.scheme ? t.scheme + ":" : "") + "//" + e); + var o = e.match(A); + if (o) { + N ? (n.scheme = o[1], n.userinfo = o[3], n.host = o[4], n.port = parseInt(o[5], 10), n.path = o[6] || "", n.query = o[7], n.fragment = o[8], isNaN(n.port) && (n.port = o[5])) : (n.scheme = o[1] || void 0, n.userinfo = -1 !== e.indexOf("@") ? o[3] : void 0, n.host = -1 !== e.indexOf("//") ? o[4] : void 0, n.port = parseInt(o[5], 10), n.path = o[6] || "", n.query = -1 !== e.indexOf("?") ? o[7] : void 0, n.fragment = -1 !== e.indexOf("#") ? o[8] : void 0, isNaN(n.port) && (n.port = e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? o[4] : void 0)), n.host && (n.host = O(R(n.host, r), r)), void 0 !== n.scheme || void 0 !== n.userinfo || void 0 !== n.host || void 0 !== n.port || n.path || void 0 !== n.query ? void 0 === n.scheme ? n.reference = "relative" : void 0 === n.fragment ? n.reference = "absolute" : n.reference = "uri" : n.reference = "same-document", t.reference && "suffix" !== t.reference && t.reference !== n.reference && (n.error = n.error || "URI is not a " + t.reference + " reference."); + var i = C[(t.scheme || n.scheme || "").toLowerCase()]; + if (t.unicodeSupport || i && i.unicodeSupport) P(n, r); + else { + if (n.host && (t.domainHost || i && i.domainHost)) try { + n.host = x(n.host.replace(r.PCT_ENCODED, T).toLowerCase()) + } catch (e) { + n.error = n.error || "Host's domain name can not be converted to ASCII via punycode: " + e + } + P(n, s) + } + i && i.parse && i.parse(n, t) + } else n.error = n.error || "URI can not be parsed."; + return n + } + + function M(e, t) { + var n = !1 !== t.iri ? a : s, + r = []; + return void 0 !== e.userinfo && (r.push(e.userinfo), r.push("@")), void 0 !== e.host && r.push(O(R(String(e.host), n), n).replace(n.IPV6ADDRESS, (function(e, t, n) { + return "[" + t + (n ? "%25" + n : "") + "]" + }))), "number" != typeof e.port && "string" != typeof e.port || (r.push(":"), r.push(String(e.port))), r.length ? r.join("") : void 0 + } + var q = /^\.\.?\//, + L = /^\/\.(\/|$)/, + $ = /^\/\.\.(\/|$)/, + F = /^\/?(?:.|\n)*?(?=\/|$)/; + + function z(e) { + for (var t = []; e.length;) + if (e.match(q)) e = e.replace(q, ""); + else if (e.match(L)) e = e.replace(L, "/"); + else if (e.match($)) e = e.replace($, "/"), t.pop(); + else if ("." === e || ".." === e) e = ""; + else { + var n = e.match(F); + if (!n) throw new Error("Unexpected dot segment condition"); + var r = n[0]; + e = e.slice(r.length), t.push(r) + } + return t.join("") + } + + function B(e) { + var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, + n = t.iri ? a : s, + r = [], + o = C[(t.scheme || e.scheme || "").toLowerCase()]; + if (o && o.serialize && o.serialize(e, t), e.host) + if (n.IPV6ADDRESS.test(e.host)); + else if (t.domainHost || o && o.domainHost) try { + e.host = t.iri ? E(e.host) : x(e.host.replace(n.PCT_ENCODED, T).toLowerCase()) + } catch (n) { + e.error = e.error || "Host's domain name can not be converted to " + (t.iri ? "Unicode" : "ASCII") + " via punycode: " + n + } + P(e, n), "suffix" !== t.reference && e.scheme && (r.push(e.scheme), r.push(":")); + var i = M(e, t); + if (void 0 !== i && ("suffix" !== t.reference && r.push("//"), r.push(i), e.path && "/" !== e.path.charAt(0) && r.push("/")), void 0 !== e.path) { + var c = e.path; + t.absolutePath || o && o.absolutePath || (c = z(c)), void 0 === i && (c = c.replace(/^\/\//, "/%2F")), r.push(c) + } + return void 0 !== e.query && (r.push("?"), r.push(e.query)), void 0 !== e.fragment && (r.push("#"), r.push(e.fragment)), r.join("") + } + + function U(e, t) { + var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, + r = {}; + return arguments[3] || (e = D(B(e, n), n), t = D(B(t, n), n)), !(n = n || {}).tolerant && t.scheme ? (r.scheme = t.scheme, r.userinfo = t.userinfo, r.host = t.host, r.port = t.port, r.path = z(t.path || ""), r.query = t.query) : (void 0 !== t.userinfo || void 0 !== t.host || void 0 !== t.port ? (r.userinfo = t.userinfo, r.host = t.host, r.port = t.port, r.path = z(t.path || ""), r.query = t.query) : (t.path ? ("/" === t.path.charAt(0) ? r.path = z(t.path) : (void 0 === e.userinfo && void 0 === e.host && void 0 === e.port || e.path ? e.path ? r.path = e.path.slice(0, e.path.lastIndexOf("/") + 1) + t.path : r.path = t.path : r.path = "/" + t.path, r.path = z(r.path)), r.query = t.query) : (r.path = e.path, void 0 !== t.query ? r.query = t.query : r.query = e.query), r.userinfo = e.userinfo, r.host = e.host, r.port = e.port), r.scheme = e.scheme), r.fragment = t.fragment, r + } + + function H(e, t) { + return e && e.toString().replace(t && t.iri ? a.PCT_ENCODED : s.PCT_ENCODED, T) + } + var W = { + scheme: "http", + domainHost: !0, + parse: function(e, t) { + return e.host || (e.error = e.error || "HTTP URIs must have a host."), e + }, + serialize: function(e, t) { + var n = "https" === String(e.scheme).toLowerCase(); + return e.port !== (n ? 443 : 80) && "" !== e.port || (e.port = void 0), e.path || (e.path = "/"), e + } + }, + G = { + scheme: "https", + domainHost: W.domainHost, + parse: W.parse, + serialize: W.serialize + }; + + function V(e) { + return "boolean" == typeof e.secure ? e.secure : "wss" === String(e.scheme).toLowerCase() + } + var K = { + scheme: "ws", + domainHost: !0, + parse: function(e, t) { + var n = e; + return n.secure = V(n), n.resourceName = (n.path || "/") + (n.query ? "?" + n.query : ""), n.path = void 0, n.query = void 0, n + }, + serialize: function(e, t) { + if (e.port !== (V(e) ? 443 : 80) && "" !== e.port || (e.port = void 0), "boolean" == typeof e.secure && (e.scheme = e.secure ? "wss" : "ws", e.secure = void 0), e.resourceName) { + var n = e.resourceName.split("?"), + r = c(n, 2), + o = r[0], + i = r[1]; + e.path = o && "/" !== o ? o : void 0, e.query = i, e.resourceName = void 0 + } + return e.fragment = void 0, e + } + }, + J = { + scheme: "wss", + domainHost: K.domainHost, + parse: K.parse, + serialize: K.serialize + }, + X = {}, + Y = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", + Q = "[0-9A-Fa-f]", + Z = n(n("%[EFef][0-9A-Fa-f]%" + Q + Q + "%" + Q + Q) + "|" + n("%[89A-Fa-f][0-9A-Fa-f]%" + Q + Q) + "|" + n("%" + Q + Q)), + ee = t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", '[\\"\\\\]'), + te = new RegExp(Y, "g"), + ne = new RegExp(Z, "g"), + re = new RegExp(t("[^]", "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", "[\\.]", '[\\"]', ee), "g"), + oe = new RegExp(t("[^]", Y, "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"), "g"), + ie = oe; + + function se(e) { + var t = T(e); + return t.match(te) ? t : e + } + var ae = { + scheme: "mailto", + parse: function(e, t) { + var n = e, + r = n.to = n.path ? n.path.split(",") : []; + if (n.path = void 0, n.query) { + for (var o = !1, i = {}, s = n.query.split("&"), a = 0, c = s.length; a < c; ++a) { + var u = s[a].split("="); + switch (u[0]) { + case "to": + for (var l = u[1].split(","), d = 0, p = l.length; d < p; ++d) r.push(l[d]); + break; + case "subject": + n.subject = H(u[1], t); + break; + case "body": + n.body = H(u[1], t); + break; + default: + o = !0, i[H(u[0], t)] = H(u[1], t) + } + } + o && (n.headers = i) + } + n.query = void 0; + for (var h = 0, m = r.length; h < m; ++h) { + var f = r[h].split("@"); + if (f[0] = H(f[0]), t.unicodeSupport) f[1] = H(f[1], t).toLowerCase(); + else try { + f[1] = x(H(f[1], t).toLowerCase()) + } catch (e) { + n.error = n.error || "Email address's domain name can not be converted to ASCII via punycode: " + e + } + r[h] = f.join("@") + } + return n + }, + serialize: function(e, t) { + var n, r = e, + i = null != (n = e.to) ? n instanceof Array ? n : "number" != typeof n.length || n.split || n.setInterval || n.call ? [n] : Array.prototype.slice.call(n) : []; + if (i) { + for (var s = 0, a = i.length; s < a; ++s) { + var c = String(i[s]), + u = c.lastIndexOf("@"), + l = c.slice(0, u).replace(ne, se).replace(ne, o).replace(re, S), + d = c.slice(u + 1); + try { + d = t.iri ? E(d) : x(H(d, t).toLowerCase()) + } catch (e) { + r.error = r.error || "Email address's domain name can not be converted to " + (t.iri ? "Unicode" : "ASCII") + " via punycode: " + e + } + i[s] = l + "@" + d + } + r.path = i.join(",") + } + var p = e.headers = e.headers || {}; + e.subject && (p.subject = e.subject), e.body && (p.body = e.body); + var h = []; + for (var m in p) p[m] !== X[m] && h.push(m.replace(ne, se).replace(ne, o).replace(oe, S) + "=" + p[m].replace(ne, se).replace(ne, o).replace(ie, S)); + return h.length && (r.query = h.join("&")), r + } + }, + ce = /^([^\:]+)\:(.*)/, + ue = { + scheme: "urn", + parse: function(e, t) { + var n = e.path && e.path.match(ce), + r = e; + if (n) { + var o = t.scheme || r.scheme || "urn", + i = n[1].toLowerCase(), + s = n[2], + a = o + ":" + (t.nid || i), + c = C[a]; + r.nid = i, r.nss = s, r.path = void 0, c && (r = c.parse(r, t)) + } else r.error = r.error || "URN can not be parsed."; + return r + }, + serialize: function(e, t) { + var n = t.scheme || e.scheme || "urn", + r = e.nid, + o = n + ":" + (t.nid || r), + i = C[o]; + i && (e = i.serialize(e, t)); + var s = e, + a = e.nss; + return s.path = (r || t.nid) + ":" + a, s + } + }, + le = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, + de = { + scheme: "urn:uuid", + parse: function(e, t) { + var n = e; + return n.uuid = n.nss, n.nss = void 0, t.tolerant || n.uuid && n.uuid.match(le) || (n.error = n.error || "UUID is not valid."), n + }, + serialize: function(e, t) { + var n = e; + return n.nss = (e.uuid || "").toLowerCase(), n + } + }; + C[W.scheme] = W, C[G.scheme] = G, C[K.scheme] = K, C[J.scheme] = J, C[ae.scheme] = ae, C[ue.scheme] = ue, C[de.scheme] = de, e.SCHEMES = C, e.pctEncChar = S, e.pctDecChars = T, e.parse = D, e.removeDotSegments = z, e.serialize = B, e.resolveComponents = U, e.resolve = function(e, t, n) { + var r = function(e, t) { + var n = e; + if (t) + for (var r in t) n[r] = t[r]; + return n + }({ + scheme: "null" + }, n); + return B(U(D(e, r), D(t, r), r, !0), r) + }, e.normalize = function(e, t) { + return "string" == typeof e ? e = B(D(e, t), t) : "object" === r(e) && (e = D(B(e, t), t)), e + }, e.equal = function(e, t, n) { + return "string" == typeof e ? e = B(D(e, n), n) : "object" === r(e) && (e = B(e, n)), "string" == typeof t ? t = B(D(t, n), n) : "object" === r(t) && (t = B(t, n)), e === t + }, e.escapeComponent = function(e, t) { + return e && e.toString().replace(t && t.iri ? a.ESCAPE : s.ESCAPE, S) + }, e.unescapeComponent = H, Object.defineProperty(e, "__esModule", { + value: !0 + }) + }(t) + }, + 9911: (e, t, n) => { + e.exports = n(3837).deprecate + }, + 7057: (e, t, n) => { + "use strict"; + n.r(t), n.d(t, { + NIL: () => w, + parse: () => y, + stringify: () => d, + v1: () => g, + v3: () => v, + v4: () => b, + v5: () => k, + validate: () => u, + version: () => j + }); + var r = n(6113), + o = n.n(r); + const i = new Uint8Array(256); + let s = i.length; + + function a() { + return s > i.length - 16 && (o().randomFillSync(i), s = 0), i.slice(s, s += 16) + } + const c = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i, + u = function(e) { + return "string" == typeof e && c.test(e) + }, + l = []; + for (let e = 0; e < 256; ++e) l.push((e + 256).toString(16).substr(1)); + const d = function(e, t = 0) { + const n = (l[e[t + 0]] + l[e[t + 1]] + l[e[t + 2]] + l[e[t + 3]] + "-" + l[e[t + 4]] + l[e[t + 5]] + "-" + l[e[t + 6]] + l[e[t + 7]] + "-" + l[e[t + 8]] + l[e[t + 9]] + "-" + l[e[t + 10]] + l[e[t + 11]] + l[e[t + 12]] + l[e[t + 13]] + l[e[t + 14]] + l[e[t + 15]]).toLowerCase(); + if (!u(n)) throw TypeError("Stringified UUID is invalid"); + return n + }; + let p, h, m = 0, + f = 0; + const g = function(e, t, n) { + let r = t && n || 0; + const o = t || new Array(16); + let i = (e = e || {}).node || p, + s = void 0 !== e.clockseq ? e.clockseq : h; + if (null == i || null == s) { + const t = e.random || (e.rng || a)(); + null == i && (i = p = [1 | t[0], t[1], t[2], t[3], t[4], t[5]]), null == s && (s = h = 16383 & (t[6] << 8 | t[7])) + } + let c = void 0 !== e.msecs ? e.msecs : Date.now(), + u = void 0 !== e.nsecs ? e.nsecs : f + 1; + const l = c - m + (u - f) / 1e4; + if (l < 0 && void 0 === e.clockseq && (s = s + 1 & 16383), (l < 0 || c > m) && void 0 === e.nsecs && (u = 0), u >= 1e4) throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + m = c, f = u, h = s, c += 122192928e5; + const g = (1e4 * (268435455 & c) + u) % 4294967296; + o[r++] = g >>> 24 & 255, o[r++] = g >>> 16 & 255, o[r++] = g >>> 8 & 255, o[r++] = 255 & g; + const y = c / 4294967296 * 1e4 & 268435455; + o[r++] = y >>> 8 & 255, o[r++] = 255 & y, o[r++] = y >>> 24 & 15 | 16, o[r++] = y >>> 16 & 255, o[r++] = s >>> 8 | 128, o[r++] = 255 & s; + for (let e = 0; e < 6; ++e) o[r + e] = i[e]; + return t || d(o) + }, + y = function(e) { + if (!u(e)) throw TypeError("Invalid UUID"); + let t; + const n = new Uint8Array(16); + return n[0] = (t = parseInt(e.slice(0, 8), 16)) >>> 24, n[1] = t >>> 16 & 255, n[2] = t >>> 8 & 255, n[3] = 255 & t, n[4] = (t = parseInt(e.slice(9, 13), 16)) >>> 8, n[5] = 255 & t, n[6] = (t = parseInt(e.slice(14, 18), 16)) >>> 8, n[7] = 255 & t, n[8] = (t = parseInt(e.slice(19, 23), 16)) >>> 8, n[9] = 255 & t, n[10] = (t = parseInt(e.slice(24, 36), 16)) / 1099511627776 & 255, n[11] = t / 4294967296 & 255, n[12] = t >>> 24 & 255, n[13] = t >>> 16 & 255, n[14] = t >>> 8 & 255, n[15] = 255 & t, n + }; + + function _(e, t, n) { + function r(e, r, o, i) { + if ("string" == typeof e && (e = function(e) { + e = unescape(encodeURIComponent(e)); + const t = []; + for (let n = 0; n < e.length; ++n) t.push(e.charCodeAt(n)); + return t + }(e)), "string" == typeof r && (r = y(r)), 16 !== r.length) throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); + let s = new Uint8Array(16 + e.length); + if (s.set(r), s.set(e, r.length), s = n(s), s[6] = 15 & s[6] | t, s[8] = 63 & s[8] | 128, o) { + i = i || 0; + for (let e = 0; e < 16; ++e) o[i + e] = s[e]; + return o + } + return d(s) + } + try { + r.name = e + } catch (e) {} + return r.DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", r.URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8", r + } + const v = _("v3", 48, (function(e) { + return Array.isArray(e) ? e = Buffer.from(e) : "string" == typeof e && (e = Buffer.from(e, "utf8")), o().createHash("md5").update(e).digest() + })), + b = function(e, t, n) { + const r = (e = e || {}).random || (e.rng || a)(); + if (r[6] = 15 & r[6] | 64, r[8] = 63 & r[8] | 128, t) { + n = n || 0; + for (let e = 0; e < 16; ++e) t[n + e] = r[e]; + return t + } + return d(r) + }, + k = _("v5", 80, (function(e) { + return Array.isArray(e) ? e = Buffer.from(e) : "string" == typeof e && (e = Buffer.from(e, "utf8")), o().createHash("sha1").update(e).digest() + })), + w = "00000000-0000-0000-0000-000000000000", + j = function(e) { + if (!u(e)) throw TypeError("Invalid UUID"); + return parseInt(e.substr(14, 1), 16) + } + }, + 9929: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL = !0; + var r = n(7147), + o = n(2037), + i = n(1017), + s = n(8212), + a = n(8144), + c = function() { + function e(e, t, n, o) { + var a = this; + this.extensionId = e, this.extensionVersion = t, this.firstParty = !1, this.userOptIn = !1, this.firstParty = !!o; + var c = process.env.VSCODE_LOGS || ""; + c && e && "trace" === process.env.VSCODE_LOG_LEVEL && (c = i.join(c, e + ".txt"), this.logStream = r.createWriteStream(c, { + flags: "a", + encoding: "utf8", + autoClose: !0 + })), this.updateUserOptIn(n), void 0 !== s.env.onDidChangeTelemetryEnabled ? this.optOutListener = s.env.onDidChangeTelemetryEnabled((function() { + return a.updateUserOptIn(n) + })) : this.optOutListener = s.workspace.onDidChangeConfiguration((function() { + return a.updateUserOptIn(n) + })) + } + return e.prototype.updateUserOptIn = function(t) { + var n = s.workspace.getConfiguration(e.TELEMETRY_CONFIG_ID), + r = void 0 === s.env.isTelemetryEnabled ? n.get(e.TELEMETRY_CONFIG_ENABLED_ID, !0) : s.env.isTelemetryEnabled; + this.userOptIn !== r && (this.userOptIn = r, this.userOptIn ? this.createAppInsightsClient(t) : this.dispose()) + }, e.prototype.createAppInsightsClient = function(e) { + a.defaultClient ? (this.appInsightsClient = new a.TelemetryClient(e), this.appInsightsClient.channel.setUseDiskRetryCaching(!0)) : (a.setup(e).setAutoCollectRequests(!1).setAutoCollectPerformance(!1).setAutoCollectExceptions(!1).setAutoCollectDependencies(!1).setAutoDependencyCorrelation(!1).setAutoCollectConsole(!1).setUseDiskRetryCaching(!0).start(), this.appInsightsClient = a.defaultClient), this.appInsightsClient.commonProperties = this.getCommonProperties(), s && s.env && (this.appInsightsClient.context.tags[this.appInsightsClient.context.keys.userId] = s.env.machineId, this.appInsightsClient.context.tags[this.appInsightsClient.context.keys.sessionId] = s.env.sessionId), e && 0 === e.indexOf("AIF-") && (this.appInsightsClient.config.endpointUrl = "https://vortex.data.microsoft.com/collect/v1", this.firstParty = !0) + }, e.prototype.getCommonProperties = function() { + var e = Object.create(null); + if (e["common.os"] = o.platform(), e["common.platformversion"] = (o.release() || "").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/, "$1$2$3"), e["common.extname"] = this.extensionId, e["common.extversion"] = this.extensionVersion, s && s.env) { + switch (e["common.vscodemachineid"] = s.env.machineId, e["common.vscodesessionid"] = s.env.sessionId, e["common.vscodeversion"] = s.version, e["common.isnewappinstall"] = s.env.isNewAppInstall, s.env.uiKind) { + case s.UIKind.Web: + e["common.uikind"] = "web"; + break; + case s.UIKind.Desktop: + e["common.uikind"] = "desktop"; + break; + default: + e["common.uikind"] = "unknown" + } + e["common.remotename"] = this.cleanRemoteName(s.env.remoteName) + } + return e + }, e.prototype.cleanRemoteName = function(e) { + if (!e) return "none"; + var t = "other"; + return ["ssh-remote", "dev-container", "attached-container", "wsl"].forEach((function(n) { + 0 === e.indexOf(n + "+") && (t = n) + })), t + }, e.prototype.shouldSendErrorTelemetry = function() { + return !this.firstParty || "other" !== this.cleanRemoteName(s.env.remoteName) || void 0 !== this.extension && this.extension.extensionKind !== s.ExtensionKind.Workspace && s.env.uiKind !== s.UIKind.Web + }, Object.defineProperty(e.prototype, "extension", { + get: function() { + return void 0 === this._extension && (this._extension = s.extensions.getExtension(this.extensionId)), this._extension + }, + enumerable: !1, + configurable: !0 + }), e.prototype.cloneAndChange = function(e, t) { + if (null === e || "object" != typeof e) return e; + if ("function" != typeof t) return e; + var n = {}; + for (var r in e) n[r] = t(r, e[r]); + return n + }, e.prototype.anonymizeFilePaths = function(e, t) { + if (null == e) return ""; + var n = [new RegExp(s.env.appRoot.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "gi")]; + this.extension && n.push(new RegExp(this.extension.extensionPath.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "gi")); + var r = e; + if (t) { + for (var o = [], i = 0, a = n; i < a.length; i++) + for (var c = a[i];;) { + var u = c.exec(e); + if (!u) break; + o.push([u.index, c.lastIndex]) + } + var l = /^[\\\/]?(node_modules|node_modules\.asar)[\\\/]/, + d = /(file:\/\/)?([a-zA-Z]:(\\\\|\\|\/)|(\\\\|\\|\/))?([\w-\._]+(\\\\|\\|\/))+[\w-\._]*/g, + p = 0; + r = ""; + for (var h = function() { + var t = d.exec(e); + if (!t) return "break"; + !l.test(t[0]) && o.every((function(e) { + var n = e[0], + r = e[1]; + return t.index < n || t.index >= r + })) && (r += e.substring(p, t.index) + "", p = d.lastIndex) + }; + "break" !== h();); + p < e.length && (r += e.substr(p)) + } + for (var m = 0, f = n; m < f.length; m++) c = f[m], r = r.replace(c, ""); + return r + }, e.prototype.sendTelemetryEvent = function(e, t, n) { + var r = this; + if (this.userOptIn && e && this.appInsightsClient) { + var o = this.cloneAndChange(t, (function(e, t) { + return r.anonymizeFilePaths(t, r.firstParty) + })); + this.appInsightsClient.trackEvent({ + name: this.extensionId + "/" + e, + properties: o, + measurements: n + }), this.logStream && this.logStream.write("telemetry/" + e + " " + JSON.stringify({ + properties: t, + measurements: n + }) + "\n") + } + }, e.prototype.sendTelemetryErrorEvent = function(e, t, n, r) { + var o = this; + if (this.userOptIn && e && this.appInsightsClient) { + var i = this.cloneAndChange(t, (function(e, t) { + return o.shouldSendErrorTelemetry() ? o.anonymizeFilePaths(t, o.firstParty) : void 0 === r || -1 !== r.indexOf(e) ? "REDACTED" : o.anonymizeFilePaths(t, o.firstParty) + })); + this.appInsightsClient.trackEvent({ + name: this.extensionId + "/" + e, + properties: i, + measurements: n + }), this.logStream && this.logStream.write("telemetry/" + e + " " + JSON.stringify({ + properties: t, + measurements: n + }) + "\n") + } + }, e.prototype.sendTelemetryException = function(e, t, n) { + var r = this; + if (this.shouldSendErrorTelemetry() && this.userOptIn && e && this.appInsightsClient) { + var o = this.cloneAndChange(t, (function(e, t) { + return r.anonymizeFilePaths(t, r.firstParty) + })); + this.appInsightsClient.trackException({ + exception: e, + properties: o, + measurements: n + }), this.logStream && this.logStream.write("telemetry/" + e.name + " " + e.message + " " + JSON.stringify({ + properties: t, + measurements: n + }) + "\n") + } + }, e.prototype.dispose = function() { + var e = this; + this.optOutListener.dispose(); + var t = new Promise((function(t) { + if (!e.logStream) return t(void 0); + e.logStream.on("finish", t), e.logStream.end() + })), + n = new Promise((function(t) { + e.appInsightsClient ? e.appInsightsClient.flush({ + callback: function() { + e.appInsightsClient = void 0, t(void 0) + } + }) : t(void 0) + })); + return Promise.all([n, t]) + }, e.TELEMETRY_CONFIG_ID = "telemetry", e.TELEMETRY_CONFIG_ENABLED_ID = "enableTelemetry", e + }(); + t.default = c + }, + 6630: (e, t, n) => { + "use strict"; + var r; + n.r(t), n.d(t, { + URI: () => o, + Utils: () => i + }), r = (() => { + var e = { + 470: e => { + function t(e) { + if ("string" != typeof e) throw new TypeError("Path must be a string. Received " + JSON.stringify(e)) + } + + function n(e, t) { + for (var n, r = "", o = 0, i = -1, s = 0, a = 0; a <= e.length; ++a) { + if (a < e.length) n = e.charCodeAt(a); + else { + if (47 === n) break; + n = 47 + } + if (47 === n) { + if (i === a - 1 || 1 === s); + else if (i !== a - 1 && 2 === s) { + if (r.length < 2 || 2 !== o || 46 !== r.charCodeAt(r.length - 1) || 46 !== r.charCodeAt(r.length - 2)) + if (r.length > 2) { + var c = r.lastIndexOf("/"); + if (c !== r.length - 1) { + -1 === c ? (r = "", o = 0) : o = (r = r.slice(0, c)).length - 1 - r.lastIndexOf("/"), i = a, s = 0; + continue + } + } else if (2 === r.length || 1 === r.length) { + r = "", o = 0, i = a, s = 0; + continue + } + t && (r.length > 0 ? r += "/.." : r = "..", o = 2) + } else r.length > 0 ? r += "/" + e.slice(i + 1, a) : r = e.slice(i + 1, a), o = a - i - 1; + i = a, s = 0 + } else 46 === n && -1 !== s ? ++s : s = -1 + } + return r + } + var r = { + resolve: function() { + for (var e, r = "", o = !1, i = arguments.length - 1; i >= -1 && !o; i--) { + var s; + i >= 0 ? s = arguments[i] : (void 0 === e && (e = process.cwd()), s = e), t(s), 0 !== s.length && (r = s + "/" + r, o = 47 === s.charCodeAt(0)) + } + return r = n(r, !o), o ? r.length > 0 ? "/" + r : "/" : r.length > 0 ? r : "." + }, + normalize: function(e) { + if (t(e), 0 === e.length) return "."; + var r = 47 === e.charCodeAt(0), + o = 47 === e.charCodeAt(e.length - 1); + return 0 !== (e = n(e, !r)).length || r || (e = "."), e.length > 0 && o && (e += "/"), r ? "/" + e : e + }, + isAbsolute: function(e) { + return t(e), e.length > 0 && 47 === e.charCodeAt(0) + }, + join: function() { + if (0 === arguments.length) return "."; + for (var e, n = 0; n < arguments.length; ++n) { + var o = arguments[n]; + t(o), o.length > 0 && (void 0 === e ? e = o : e += "/" + o) + } + return void 0 === e ? "." : r.normalize(e) + }, + relative: function(e, n) { + if (t(e), t(n), e === n) return ""; + if ((e = r.resolve(e)) === (n = r.resolve(n))) return ""; + for (var o = 1; o < e.length && 47 === e.charCodeAt(o); ++o); + for (var i = e.length, s = i - o, a = 1; a < n.length && 47 === n.charCodeAt(a); ++a); + for (var c = n.length - a, u = s < c ? s : c, l = -1, d = 0; d <= u; ++d) { + if (d === u) { + if (c > u) { + if (47 === n.charCodeAt(a + d)) return n.slice(a + d + 1); + if (0 === d) return n.slice(a + d) + } else s > u && (47 === e.charCodeAt(o + d) ? l = d : 0 === d && (l = 0)); + break + } + var p = e.charCodeAt(o + d); + if (p !== n.charCodeAt(a + d)) break; + 47 === p && (l = d) + } + var h = ""; + for (d = o + l + 1; d <= i; ++d) d !== i && 47 !== e.charCodeAt(d) || (0 === h.length ? h += ".." : h += "/.."); + return h.length > 0 ? h + n.slice(a + l) : (a += l, 47 === n.charCodeAt(a) && ++a, n.slice(a)) + }, + _makeLong: function(e) { + return e + }, + dirname: function(e) { + if (t(e), 0 === e.length) return "."; + for (var n = e.charCodeAt(0), r = 47 === n, o = -1, i = !0, s = e.length - 1; s >= 1; --s) + if (47 === (n = e.charCodeAt(s))) { + if (!i) { + o = s; + break + } + } else i = !1; + return -1 === o ? r ? "/" : "." : r && 1 === o ? "//" : e.slice(0, o) + }, + basename: function(e, n) { + if (void 0 !== n && "string" != typeof n) throw new TypeError('"ext" argument must be a string'); + t(e); + var r, o = 0, + i = -1, + s = !0; + if (void 0 !== n && n.length > 0 && n.length <= e.length) { + if (n.length === e.length && n === e) return ""; + var a = n.length - 1, + c = -1; + for (r = e.length - 1; r >= 0; --r) { + var u = e.charCodeAt(r); + if (47 === u) { + if (!s) { + o = r + 1; + break + } + } else -1 === c && (s = !1, c = r + 1), a >= 0 && (u === n.charCodeAt(a) ? -1 == --a && (i = r) : (a = -1, i = c)) + } + return o === i ? i = c : -1 === i && (i = e.length), e.slice(o, i) + } + for (r = e.length - 1; r >= 0; --r) + if (47 === e.charCodeAt(r)) { + if (!s) { + o = r + 1; + break + } + } else -1 === i && (s = !1, i = r + 1); + return -1 === i ? "" : e.slice(o, i) + }, + extname: function(e) { + t(e); + for (var n = -1, r = 0, o = -1, i = !0, s = 0, a = e.length - 1; a >= 0; --a) { + var c = e.charCodeAt(a); + if (47 !== c) - 1 === o && (i = !1, o = a + 1), 46 === c ? -1 === n ? n = a : 1 !== s && (s = 1) : -1 !== n && (s = -1); + else if (!i) { + r = a + 1; + break + } + } + return -1 === n || -1 === o || 0 === s || 1 === s && n === o - 1 && n === r + 1 ? "" : e.slice(n, o) + }, + format: function(e) { + if (null === e || "object" != typeof e) throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof e); + return function(e, t) { + var n = t.dir || t.root, + r = t.base || (t.name || "") + (t.ext || ""); + return n ? n === t.root ? n + r : n + "/" + r : r + }(0, e) + }, + parse: function(e) { + t(e); + var n = { + root: "", + dir: "", + base: "", + ext: "", + name: "" + }; + if (0 === e.length) return n; + var r, o = e.charCodeAt(0), + i = 47 === o; + i ? (n.root = "/", r = 1) : r = 0; + for (var s = -1, a = 0, c = -1, u = !0, l = e.length - 1, d = 0; l >= r; --l) + if (47 !== (o = e.charCodeAt(l))) - 1 === c && (u = !1, c = l + 1), 46 === o ? -1 === s ? s = l : 1 !== d && (d = 1) : -1 !== s && (d = -1); + else if (!u) { + a = l + 1; + break + } + return -1 === s || -1 === c || 0 === d || 1 === d && s === c - 1 && s === a + 1 ? -1 !== c && (n.base = n.name = 0 === a && i ? e.slice(1, c) : e.slice(a, c)) : (0 === a && i ? (n.name = e.slice(1, s), n.base = e.slice(1, c)) : (n.name = e.slice(a, s), n.base = e.slice(a, c)), n.ext = e.slice(s, c)), a > 0 ? n.dir = e.slice(0, a - 1) : i && (n.dir = "/"), n + }, + sep: "/", + delimiter: ":", + win32: null, + posix: null + }; + r.posix = r, e.exports = r + }, + 447: (e, t, n) => { + var r; + if (n.r(t), n.d(t, { + URI: () => m, + Utils: () => E + }), "object" == typeof process) r = "win32" === process.platform; + else if ("object" == typeof navigator) { + var o = navigator.userAgent; + r = o.indexOf("Windows") >= 0 + } + var i, s, a = (i = function(e, t) { + return (i = Object.setPrototypeOf || { + __proto__: [] + } + instanceof Array && function(e, t) { + e.__proto__ = t + } || function(e, t) { + for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]) + })(e, t) + }, function(e, t) { + function n() { + this.constructor = e + } + i(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n) + }), + c = /^\w[\w\d+.-]*$/, + u = /^\//, + l = /^\/\//, + d = "", + p = "/", + h = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/, + m = function() { + function e(e, t, n, r, o, i) { + void 0 === i && (i = !1), "object" == typeof e ? (this.scheme = e.scheme || d, this.authority = e.authority || d, this.path = e.path || d, this.query = e.query || d, this.fragment = e.fragment || d) : (this.scheme = function(e, t) { + return e || t ? e : "file" + }(e, i), this.authority = t || d, this.path = function(e, t) { + switch (e) { + case "https": + case "http": + case "file": + t ? t[0] !== p && (t = p + t) : t = p + } + return t + }(this.scheme, n || d), this.query = r || d, this.fragment = o || d, function(e, t) { + if (!e.scheme && t) throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "' + e.authority + '", path: "' + e.path + '", query: "' + e.query + '", fragment: "' + e.fragment + '"}'); + if (e.scheme && !c.test(e.scheme)) throw new Error("[UriError]: Scheme contains illegal characters."); + if (e.path) + if (e.authority) { + if (!u.test(e.path)) throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character') + } else if (l.test(e.path)) throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")') + }(this, i)) + } + return e.isUri = function(t) { + return t instanceof e || !!t && "string" == typeof t.authority && "string" == typeof t.fragment && "string" == typeof t.path && "string" == typeof t.query && "string" == typeof t.scheme && "function" == typeof t.fsPath && "function" == typeof t.with && "function" == typeof t.toString + }, Object.defineProperty(e.prototype, "fsPath", { + get: function() { + return b(this, !1) + }, + enumerable: !1, + configurable: !0 + }), e.prototype.with = function(e) { + if (!e) return this; + var t = e.scheme, + n = e.authority, + r = e.path, + o = e.query, + i = e.fragment; + return void 0 === t ? t = this.scheme : null === t && (t = d), void 0 === n ? n = this.authority : null === n && (n = d), void 0 === r ? r = this.path : null === r && (r = d), void 0 === o ? o = this.query : null === o && (o = d), void 0 === i ? i = this.fragment : null === i && (i = d), t === this.scheme && n === this.authority && r === this.path && o === this.query && i === this.fragment ? this : new g(t, n, r, o, i) + }, e.parse = function(e, t) { + void 0 === t && (t = !1); + var n = h.exec(e); + return n ? new g(n[2] || d, x(n[4] || d), x(n[5] || d), x(n[7] || d), x(n[9] || d), t) : new g(d, d, d, d, d) + }, e.file = function(e) { + var t = d; + if (r && (e = e.replace(/\\/g, p)), e[0] === p && e[1] === p) { + var n = e.indexOf(p, 2); - 1 === n ? (t = e.substring(2), e = p) : (t = e.substring(2, n), e = e.substring(n) || p) + } + return new g("file", t, e, d, d) + }, e.from = function(e) { + return new g(e.scheme, e.authority, e.path, e.query, e.fragment) + }, e.prototype.toString = function(e) { + return void 0 === e && (e = !1), k(this, e) + }, e.prototype.toJSON = function() { + return this + }, e.revive = function(t) { + if (t) { + if (t instanceof e) return t; + var n = new g(t); + return n._formatted = t.external, n._fsPath = t._sep === f ? t.fsPath : null, n + } + return t + }, e + }(), + f = r ? 1 : void 0, + g = function(e) { + function t() { + var t = null !== e && e.apply(this, arguments) || this; + return t._formatted = null, t._fsPath = null, t + } + return a(t, e), Object.defineProperty(t.prototype, "fsPath", { + get: function() { + return this._fsPath || (this._fsPath = b(this, !1)), this._fsPath + }, + enumerable: !1, + configurable: !0 + }), t.prototype.toString = function(e) { + return void 0 === e && (e = !1), e ? k(this, !0) : (this._formatted || (this._formatted = k(this, !1)), this._formatted) + }, t.prototype.toJSON = function() { + var e = { + $mid: 1 + }; + return this._fsPath && (e.fsPath = this._fsPath, e._sep = f), this._formatted && (e.external = this._formatted), this.path && (e.path = this.path), this.scheme && (e.scheme = this.scheme), this.authority && (e.authority = this.authority), this.query && (e.query = this.query), this.fragment && (e.fragment = this.fragment), e + }, t + }(m), + y = ((s = {})[58] = "%3A", s[47] = "%2F", s[63] = "%3F", s[35] = "%23", s[91] = "%5B", s[93] = "%5D", s[64] = "%40", s[33] = "%21", s[36] = "%24", s[38] = "%26", s[39] = "%27", s[40] = "%28", s[41] = "%29", s[42] = "%2A", s[43] = "%2B", s[44] = "%2C", s[59] = "%3B", s[61] = "%3D", s[32] = "%20", s); + + function _(e, t) { + for (var n = void 0, r = -1, o = 0; o < e.length; o++) { + var i = e.charCodeAt(o); + if (i >= 97 && i <= 122 || i >= 65 && i <= 90 || i >= 48 && i <= 57 || 45 === i || 46 === i || 95 === i || 126 === i || t && 47 === i) - 1 !== r && (n += encodeURIComponent(e.substring(r, o)), r = -1), void 0 !== n && (n += e.charAt(o)); + else { + void 0 === n && (n = e.substr(0, o)); + var s = y[i]; + void 0 !== s ? (-1 !== r && (n += encodeURIComponent(e.substring(r, o)), r = -1), n += s) : -1 === r && (r = o) + } + } + return -1 !== r && (n += encodeURIComponent(e.substring(r))), void 0 !== n ? n : e + } + + function v(e) { + for (var t = void 0, n = 0; n < e.length; n++) { + var r = e.charCodeAt(n); + 35 === r || 63 === r ? (void 0 === t && (t = e.substr(0, n)), t += y[r]) : void 0 !== t && (t += e[n]) + } + return void 0 !== t ? t : e + } + + function b(e, t) { + var n; + return n = e.authority && e.path.length > 1 && "file" === e.scheme ? "//" + e.authority + e.path : 47 === e.path.charCodeAt(0) && (e.path.charCodeAt(1) >= 65 && e.path.charCodeAt(1) <= 90 || e.path.charCodeAt(1) >= 97 && e.path.charCodeAt(1) <= 122) && 58 === e.path.charCodeAt(2) ? t ? e.path.substr(1) : e.path[1].toLowerCase() + e.path.substr(2) : e.path, r && (n = n.replace(/\//g, "\\")), n + } + + function k(e, t) { + var n = t ? v : _, + r = "", + o = e.scheme, + i = e.authority, + s = e.path, + a = e.query, + c = e.fragment; + if (o && (r += o, r += ":"), (i || "file" === o) && (r += p, r += p), i) { + var u = i.indexOf("@"); + if (-1 !== u) { + var l = i.substr(0, u); + i = i.substr(u + 1), -1 === (u = l.indexOf(":")) ? r += n(l, !1) : (r += n(l.substr(0, u), !1), r += ":", r += n(l.substr(u + 1), !1)), r += "@" + } - 1 === (u = (i = i.toLowerCase()).indexOf(":")) ? r += n(i, !1) : (r += n(i.substr(0, u), !1), r += i.substr(u)) + } + if (s) { + if (s.length >= 3 && 47 === s.charCodeAt(0) && 58 === s.charCodeAt(2))(d = s.charCodeAt(1)) >= 65 && d <= 90 && (s = "/" + String.fromCharCode(d + 32) + ":" + s.substr(3)); + else if (s.length >= 2 && 58 === s.charCodeAt(1)) { + var d; + (d = s.charCodeAt(0)) >= 65 && d <= 90 && (s = String.fromCharCode(d + 32) + ":" + s.substr(2)) + } + r += n(s, !0) + } + return a && (r += "?", r += n(a, !1)), c && (r += "#", r += t ? c : _(c, !1)), r + } + + function w(e) { + try { + return decodeURIComponent(e) + } catch (t) { + return e.length > 3 ? e.substr(0, 3) + w(e.substr(3)) : e + } + } + var j = /(%[0-9A-Za-z][0-9A-Za-z])+/g; + + function x(e) { + return e.match(j) ? e.replace(j, (function(e) { + return w(e) + })) : e + } + var E, C = n(470), + S = function() { + for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length; + var r = Array(e), + o = 0; + for (t = 0; t < n; t++) + for (var i = arguments[t], s = 0, a = i.length; s < a; s++, o++) r[o] = i[s]; + return r + }, + T = C.posix || C; + ! function(e) { + e.joinPath = function(e) { + for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; + return e.with({ + path: T.join.apply(T, S([e.path], t)) + }) + }, e.resolvePath = function(e) { + for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; + var r = e.path || "/"; + return e.with({ + path: T.resolve.apply(T, S([r], t)) + }) + }, e.dirname = function(e) { + var t = T.dirname(e.path); + return 1 === t.length && 46 === t.charCodeAt(0) ? e : e.with({ + path: t + }) + }, e.basename = function(e) { + return T.basename(e.path) + }, e.extname = function(e) { + return T.extname(e.path) + } + }(E || (E = {})) + } + }, + t = {}; + + function n(r) { + if (t[r]) return t[r].exports; + var o = t[r] = { + exports: {} + }; + return e[r](o, o.exports, n), o.exports + } + return n.d = (e, t) => { + for (var r in t) n.o(t, r) && !n.o(e, r) && Object.defineProperty(e, r, { + enumerable: !0, + get: t[r] + }) + }, n.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t), n.r = e => { + "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { + value: "Module" + }), Object.defineProperty(e, "__esModule", { + value: !0 + }) + }, n(447) + })(); + const { + URI: o, + Utils: i + } = r + }, + 7908: (e, t, n) => { + var r, o = void 0 !== o ? o : {}; + void 0 === (r = function() { + var t, r = {}; + for (t in o) o.hasOwnProperty(t) && (r[t] = o[t]); + var i, s, a = [], + c = "./this.program", + u = function(e, t) { + throw t + }, + l = !1, + d = !1; + l = "object" == typeof window, d = "function" == typeof importScripts, i = "object" == typeof process && "object" == typeof process.versions && "string" == typeof process.versions.node, s = !l && !i && !d; + var p, h, m, f, g, y = ""; + i ? (y = d ? n(1017).dirname(y) + "/" : __dirname + "/", p = function(e, t) { + return f || (f = n(7147)), g || (g = n(1017)), e = g.normalize(e), f.readFileSync(e, t ? null : "utf8") + }, m = function(e) { + var t = p(e, !0); + return t.buffer || (t = new Uint8Array(t)), R(t.buffer), t + }, process.argv.length > 1 && (c = process.argv[1].replace(/\\/g, "/")), a = process.argv.slice(2), e.exports = o, u = function(e) { + process.exit(e) + }, o.inspect = function() { + return "[Emscripten Module object]" + }) : s ? ("undefined" != typeof read && (p = function(e) { + return read(e) + }), m = function(e) { + var t; + return "function" == typeof readbuffer ? new Uint8Array(readbuffer(e)) : (R("object" == typeof(t = read(e, "binary"))), t) + }, "undefined" != typeof scriptArgs ? a = scriptArgs : void 0 !== arguments && (a = arguments), "function" == typeof quit && (u = function(e) { + quit(e) + }), "undefined" != typeof print && ("undefined" == typeof console && (console = {}), console.log = print, console.warn = console.error = "undefined" != typeof printErr ? printErr : print)) : (l || d) && (d ? y = self.location.href : "undefined" != typeof document && document.currentScript && (y = document.currentScript.src), y = 0 !== y.indexOf("blob:") ? y.substr(0, y.lastIndexOf("/") + 1) : "", p = function(e) { + var t = new XMLHttpRequest; + return t.open("GET", e, !1), t.send(null), t.responseText + }, d && (m = function(e) { + var t = new XMLHttpRequest; + return t.open("GET", e, !1), t.responseType = "arraybuffer", t.send(null), new Uint8Array(t.response) + }), h = function(e, t, n) { + var r = new XMLHttpRequest; + r.open("GET", e, !0), r.responseType = "arraybuffer", r.onload = function() { + 200 == r.status || 0 == r.status && r.response ? t(r.response) : n() + }, r.onerror = n, r.send(null) + }), o.print || console.log.bind(console); + var _ = o.printErr || console.warn.bind(console); + for (t in r) r.hasOwnProperty(t) && (o[t] = r[t]); + r = null, o.arguments && (a = o.arguments), o.thisProgram && (c = o.thisProgram), o.quit && (u = o.quit); + var v, b = 16, + k = []; + + function w(e, t) { + if (!v) { + v = new WeakMap; + for (var n = 0; n < J.length; n++) { + var r = J.get(n); + r && v.set(r, n) + } + } + if (v.has(e)) return v.get(e); + var o = function() { + if (k.length) return k.pop(); + try { + J.grow(1) + } catch (e) { + if (!(e instanceof RangeError)) throw e; + throw "Unable to grow wasm table. Set ALLOW_TABLE_GROWTH." + } + return J.length - 1 + }(); + try { + J.set(o, e) + } catch (n) { + if (!(n instanceof TypeError)) throw n; + var i = function(e, t) { + if ("function" == typeof WebAssembly.Function) { + for (var n = { + i: "i32", + j: "i64", + f: "f32", + d: "f64" + }, r = { + parameters: [], + results: "v" == t[0] ? [] : [n[t[0]]] + }, o = 1; o < t.length; ++o) r.parameters.push(n[t[o]]); + return new WebAssembly.Function(r, e) + } + var i = [1, 0, 1, 96], + s = t.slice(0, 1), + a = t.slice(1), + c = { + i: 127, + j: 126, + f: 125, + d: 124 + }; + for (i.push(a.length), o = 0; o < a.length; ++o) i.push(c[a[o]]); + "v" == s ? i.push(0) : i = i.concat([1, c[s]]), i[1] = i.length - 2; + var u = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0].concat(i, [2, 7, 1, 1, 101, 1, 102, 0, 0, 7, 5, 1, 1, 102, 0, 0])), + l = new WebAssembly.Module(u); + return new WebAssembly.Instance(l, { + e: { + f: e + } + }).exports.f + }(e, t); + J.set(o, i) + } + return v.set(e, o), o + } + var j, x = function(e) {}, + E = o.dynamicLibraries || []; + o.wasmBinary && (j = o.wasmBinary); + var C, S = o.noExitRuntime || !0; + + function T(e, t, n, r) { + switch ("*" === (n = n || "i8").charAt(n.length - 1) && (n = "i32"), n) { + case "i1": + case "i8": + A[e >> 0] = t; + break; + case "i16": + D[e >> 1] = t; + break; + case "i32": + M[e >> 2] = t; + break; + case "i64": + pe = [t >>> 0, (de = t, +Math.abs(de) >= 1 ? de > 0 ? (0 | Math.min(+Math.floor(de / 4294967296), 4294967295)) >>> 0 : ~~+Math.ceil((de - +(~~de >>> 0)) / 4294967296) >>> 0 : 0)], M[e >> 2] = pe[0], M[e + 4 >> 2] = pe[1]; + break; + case "float": + q[e >> 2] = t; + break; + case "double": + L[e >> 3] = t; + break; + default: + se("invalid type for setValue: " + n) + } + } + + function P(e, t, n) { + switch ("*" === (t = t || "i8").charAt(t.length - 1) && (t = "i32"), t) { + case "i1": + case "i8": + return A[e >> 0]; + case "i16": + return D[e >> 1]; + case "i32": + case "i64": + return M[e >> 2]; + case "float": + return q[e >> 2]; + case "double": + return L[e >> 3]; + default: + se("invalid type for getValue: " + t) + } + return null + } + "object" != typeof WebAssembly && se("no native wasm support detected"); + var I = !1; + + function R(e, t) { + e || se("Assertion failed: " + t) + } + var O, A, N, D, M, q, L, $ = 1, + F = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0; + + function z(e, t, n) { + for (var r = t + n, o = t; e[o] && !(o >= r);) ++o; + if (o - t > 16 && e.subarray && F) return F.decode(e.subarray(t, o)); + for (var i = ""; t < o;) { + var s = e[t++]; + if (128 & s) { + var a = 63 & e[t++]; + if (192 != (224 & s)) { + var c = 63 & e[t++]; + if ((s = 224 == (240 & s) ? (15 & s) << 12 | a << 6 | c : (7 & s) << 18 | a << 12 | c << 6 | 63 & e[t++]) < 65536) i += String.fromCharCode(s); + else { + var u = s - 65536; + i += String.fromCharCode(55296 | u >> 10, 56320 | 1023 & u) + } + } else i += String.fromCharCode((31 & s) << 6 | a) + } else i += String.fromCharCode(s) + } + return i + } + + function B(e, t) { + return e ? z(N, e, t) : "" + } + + function U(e, t, n, r) { + if (!(r > 0)) return 0; + for (var o = n, i = n + r - 1, s = 0; s < e.length; ++s) { + var a = e.charCodeAt(s); + if (a >= 55296 && a <= 57343 && (a = 65536 + ((1023 & a) << 10) | 1023 & e.charCodeAt(++s)), a <= 127) { + if (n >= i) break; + t[n++] = a + } else if (a <= 2047) { + if (n + 1 >= i) break; + t[n++] = 192 | a >> 6, t[n++] = 128 | 63 & a + } else if (a <= 65535) { + if (n + 2 >= i) break; + t[n++] = 224 | a >> 12, t[n++] = 128 | a >> 6 & 63, t[n++] = 128 | 63 & a + } else { + if (n + 3 >= i) break; + t[n++] = 240 | a >> 18, t[n++] = 128 | a >> 12 & 63, t[n++] = 128 | a >> 6 & 63, t[n++] = 128 | 63 & a + } + } + return t[n] = 0, n - o + } + + function H(e, t, n) { + return U(e, N, t, n) + } + + function W(e) { + for (var t = 0, n = 0; n < e.length; ++n) { + var r = e.charCodeAt(n); + r >= 55296 && r <= 57343 && (r = 65536 + ((1023 & r) << 10) | 1023 & e.charCodeAt(++n)), r <= 127 ? ++t : t += r <= 2047 ? 2 : r <= 65535 ? 3 : 4 + } + return t + } + + function G(e) { + var t = W(e) + 1, + n = Ge(t); + return U(e, A, n, t), n + } + + function V(e) { + O = e, o.HEAP8 = A = new Int8Array(e), o.HEAP16 = D = new Int16Array(e), o.HEAP32 = M = new Int32Array(e), o.HEAPU8 = N = new Uint8Array(e), o.HEAPU16 = new Uint16Array(e), o.HEAPU32 = new Uint32Array(e), o.HEAPF32 = q = new Float32Array(e), o.HEAPF64 = L = new Float64Array(e) + } + var K = o.INITIAL_MEMORY || 33554432; + (C = o.wasmMemory ? o.wasmMemory : new WebAssembly.Memory({ + initial: K / 65536, + maximum: 32768 + })) && (O = C.buffer), K = O.byteLength, V(O); + var J = new WebAssembly.Table({ + initial: 13, + element: "anyfunc" + }), + X = [], + Y = [], + Q = [], + Z = [], + ee = !1, + te = 0, + ne = null, + re = null; + + function oe(e) { + te++, o.monitorRunDependencies && o.monitorRunDependencies(te) + } + + function ie(e) { + if (te--, o.monitorRunDependencies && o.monitorRunDependencies(te), 0 == te && (null !== ne && (clearInterval(ne), ne = null), re)) { + var t = re; + re = null, t() + } + } + + function se(e) { + throw o.onAbort && o.onAbort(e), _(e += ""), I = !0, e = "abort(" + e + "). Build with -s ASSERTIONS=1 for more info.", new WebAssembly.RuntimeError(e) + } + o.preloadedImages = {}, o.preloadedAudios = {}, o.preloadedWasm = {}; + var ae = "data:application/octet-stream;base64,"; + + function ce(e) { + return e.startsWith(ae) + } + + function ue(e) { + return e.startsWith("file://") + } + var le, de, pe, he = "tree-sitter.wasm"; + + function me(e) { + try { + if (e == he && j) return new Uint8Array(j); + if (m) return m(e); + throw "both async and sync fetching of the wasm failed" + } catch (e) { + se(e) + } + } + ce(he) || (le = he, he = o.locateFile ? o.locateFile(le, y) : y + le); + var fe = {}, + ge = { + get: function(e, t) { + return fe[t] || (fe[t] = new WebAssembly.Global({ + value: "i32", + mutable: !0 + })), fe[t] + } + }; + + function ye(e) { + for (; e.length > 0;) { + var t = e.shift(); + if ("function" != typeof t) { + var n = t.func; + "number" == typeof n ? void 0 === t.arg ? J.get(n)() : J.get(n)(t.arg) : n(void 0 === t.arg ? null : t.arg) + } else t(o) + } + } + + function _e(e) { + var t = 0; + + function n() { + for (var n = 0, r = 1;;) { + var o = e[t++]; + if (n += (127 & o) * r, r *= 128, !(128 & o)) break + } + return n + } + if (e instanceof WebAssembly.Module) { + var r = WebAssembly.Module.customSections(e, "dylink"); + R(0 != r.length, "need dylink section"), e = new Int8Array(r[0]) + } else R(1836278016 == new Uint32Array(new Uint8Array(e.subarray(0, 24)).buffer)[0], "need to see wasm magic number"), R(0 === e[8], "need the dylink section to be first"), t = 9, n(), R(6 === e[t]), R(e[++t] === "d".charCodeAt(0)), R(e[++t] === "y".charCodeAt(0)), R(e[++t] === "l".charCodeAt(0)), R(e[++t] === "i".charCodeAt(0)), R(e[++t] === "n".charCodeAt(0)), R(e[++t] === "k".charCodeAt(0)), t++; + var o = {}; + o.memorySize = n(), o.memoryAlign = n(), o.tableSize = n(), o.tableAlign = n(); + var i = n(); + o.neededDynlibs = []; + for (var s = 0; s < i; ++s) { + var a = n(), + c = e.subarray(t, t + a); + t += a; + var u = z(c, 0); + o.neededDynlibs.push(u) + } + return o + } + var ve = 0; + + function be() { + return S || ve > 0 + } + + function ke(e) { + return 0 == e.indexOf("dynCall_") || ["stackAlloc", "stackSave", "stackRestore"].includes(e) ? e : "_" + e + } + + function we(e, t) { + for (var n in e) + if (e.hasOwnProperty(n)) { + ze.hasOwnProperty(n) || (ze[n] = e[n]); + var r = ke(n); + o.hasOwnProperty(r) || (o[r] = e[n]) + } + } + var je = { + nextHandle: 1, + loadedLibs: {}, + loadedLibNames: {} + }; + + function xe(e, t, n) { + return e.includes("j") ? function(e, t, n) { + var r = o["dynCall_" + e]; + return n && n.length ? r.apply(null, [t].concat(n)) : r.call(null, t) + }(e, t, n) : J.get(t).apply(null, n) + } + var Ee = 5250816; + + function Ce(e) { + return ["__cpp_exception", "__wasm_apply_data_relocs", "__dso_handle", "__set_stack_limits"].includes(e) + } + + function Se(e, t) { + var n = {}; + for (var r in e) { + var o = e[r]; + "object" == typeof o && (o = o.value), "number" == typeof o && (o += t), n[r] = o + } + return function(e) { + for (var t in e) + if (!Ce(t)) { + var n = !1, + r = e[t]; + t.startsWith("orig$") && (t = t.split("$")[1], n = !0), fe[t] || (fe[t] = new WebAssembly.Global({ + value: "i32", + mutable: !0 + })), (n || 0 == fe[t].value) && ("function" == typeof r ? fe[t].value = w(r) : "number" == typeof r ? fe[t].value = r : _("unhandled export type for `" + t + "`: " + typeof r)) + } + }(n), n + } + + function Te(e, t) { + var n, r; + return t && (n = ze["orig$" + e]), n || (n = ze[e]), n || (n = o[ke(e)]), !n && e.startsWith("invoke_") && (r = e.split("_")[1], n = function() { + var e = He(); + try { + return xe(r, arguments[0], Array.prototype.slice.call(arguments, 1)) + } catch (t) { + if (We(e), t !== t + 0 && "longjmp" !== t) throw t; + Ve(1, 0) + } + }), n + } + + function Pe(e, t) { + var n = _e(e); + + function r() { + var r = Math.pow(2, n.memoryAlign); + r = Math.max(r, b); + var o, i, s, a = (o = function(e) { + if (ee) return Be(e); + var t = Ee, + n = t + e + 15 & -16; + return Ee = n, fe.__heap_base.value = n, t + }(n.memorySize + r), (i = r) || (i = b), Math.ceil(o / i) * i), + c = J.length; + J.grow(n.tableSize); + for (var u = a; u < a + n.memorySize; u++) A[u] = 0; + for (u = c; u < c + n.tableSize; u++) J.set(u, null); + var l = new Proxy({}, { + get: function(e, t) { + switch (t) { + case "__memory_base": + return a; + case "__table_base": + return c + } + return t in ze ? ze[t] : (t in e || (e[t] = function() { + return n || (n = function(e) { + var t = Te(e, !1); + return t || (t = s[e]), t + }(t)), n.apply(null, arguments) + }), e[t]); + var n + } + }), + d = { + "GOT.mem": new Proxy({}, ge), + "GOT.func": new Proxy({}, ge), + env: l, + wasi_snapshot_preview1: l + }; + + function p(e) { + for (var r = 0; r < n.tableSize; r++) { + var o = J.get(c + r); + o && v.set(o, c + r) + } + s = Se(e.exports, a), t.allowUndefined || Re(); + var i = s.__wasm_call_ctors; + return i || (i = s.__post_instantiate), i && (ee ? i() : Y.push(i)), s + } + if (t.loadAsync) { + if (e instanceof WebAssembly.Module) { + var h = new WebAssembly.Instance(e, d); + return Promise.resolve(p(h)) + } + return WebAssembly.instantiate(e, d).then((function(e) { + return p(e.instance) + })) + } + var m = e instanceof WebAssembly.Module ? e : new WebAssembly.Module(e); + return p(h = new WebAssembly.Instance(m, d)) + } + return t.loadAsync ? n.neededDynlibs.reduce((function(e, n) { + return e.then((function() { + return Ie(n, t) + })) + }), Promise.resolve()).then((function() { + return r() + })) : (n.neededDynlibs.forEach((function(e) { + Ie(e, t) + })), r()) + } + + function Ie(e, t) { + "__main__" != e || je.loadedLibNames[e] || (je.loadedLibs[-1] = { + refcount: 1 / 0, + name: "__main__", + module: o.asm, + global: !0 + }, je.loadedLibNames.__main__ = -1), t = t || { + global: !0, + nodelete: !0 + }; + var n, r = je.loadedLibNames[e]; + if (r) return n = je.loadedLibs[r], t.global && !n.global && (n.global = !0, "loading" !== n.module && we(n.module)), t.nodelete && n.refcount !== 1 / 0 && (n.refcount = 1 / 0), n.refcount++, t.loadAsync ? Promise.resolve(r) : r; + + function i(e) { + if (t.fs) { + var n = t.fs.readFile(e, { + encoding: "binary" + }); + return n instanceof Uint8Array || (n = new Uint8Array(n)), t.loadAsync ? Promise.resolve(n) : n + } + return t.loadAsync ? (r = e, fetch(r, { + credentials: "same-origin" + }).then((function(e) { + if (!e.ok) throw "failed to load binary file at '" + r + "'"; + return e.arrayBuffer() + })).then((function(e) { + return new Uint8Array(e) + }))) : m(e); + var r + } + + function s() { + if (void 0 !== o.preloadedWasm && void 0 !== o.preloadedWasm[e]) { + var n = o.preloadedWasm[e]; + return t.loadAsync ? Promise.resolve(n) : n + } + return t.loadAsync ? i(e).then((function(e) { + return Pe(e, t) + })) : Pe(i(e), t) + } + + function a(e) { + n.global && we(e), n.module = e + } + return r = je.nextHandle++, n = { + refcount: t.nodelete ? 1 / 0 : 1, + name: e, + module: "loading", + global: t.global + }, je.loadedLibNames[e] = r, je.loadedLibs[r] = n, t.loadAsync ? s().then((function(e) { + return a(e), r + })) : (a(s()), r) + } + + function Re() { + for (var e in fe) + if (0 == fe[e].value) { + var t = Te(e, !0); + "function" == typeof t ? fe[e].value = w(t, t.sig) : "number" == typeof t ? fe[e].value = t : R(!1, "bad export type for `" + e + "`: " + typeof t) + } + } + o.___heap_base = Ee; + var Oe, Ae = new WebAssembly.Global({ + value: "i32", + mutable: !0 + }, 5250816); + + function Ne() { + se() + } + o._abort = Ne, Ne.sig = "v", Oe = i ? function() { + var e = process.hrtime(); + return 1e3 * e[0] + e[1] / 1e6 + } : "undefined" != typeof dateNow ? dateNow : function() { + return performance.now() + }; + var De = !0; + + function Me(e, t) { + var n; + if (0 === e) n = Date.now(); + else { + if (1 !== e && 4 !== e || !De) return 28, M[Ue() >> 2] = 28, -1; + n = Oe() + } + return M[t >> 2] = n / 1e3 | 0, M[t + 4 >> 2] = n % 1e3 * 1e3 * 1e3 | 0, 0 + } + + function qe(e) { + try { + return C.grow(e - O.byteLength + 65535 >>> 16), V(C.buffer), 1 + } catch (e) {} + } + + function Le(e) { + Ye(e) + } + + function $e(e) { + x(e) + } + Me.sig = "iii", Le.sig = "vi", $e.sig = "vi"; + var Fe, ze = { + __heap_base: Ee, + __indirect_function_table: J, + __memory_base: 1024, + __stack_pointer: Ae, + __table_base: 1, + abort: Ne, + clock_gettime: Me, + emscripten_memcpy_big: function(e, t, n) { + N.copyWithin(e, t, t + n) + }, + emscripten_resize_heap: function(e) { + var t, n = N.length; + if ((e >>>= 0) > 2147483648) return !1; + for (var r = 1; r <= 4; r *= 2) { + var o = n * (1 + .2 / r); + if (o = Math.min(o, e + 100663296), qe(Math.min(2147483648, ((t = Math.max(e, o)) % 65536 > 0 && (t += 65536 - t % 65536), t)))) return !0 + } + return !1 + }, + exit: Le, + memory: C, + setTempRet0: $e, + tree_sitter_log_callback: function(e, t) { + if (mt) { + const n = B(t); + mt(n, 0 !== e) + } + }, + tree_sitter_parse_callback: function(e, t, n, r, o) { + var i = ht(t, { + row: n, + column: r + }); + "string" == typeof i ? (T(o, i.length, "i32"), function(e, t, n) { + if (void 0 === n && (n = 2147483647), n < 2) return 0; + for (var r = (n -= 2) < 2 * e.length ? n / 2 : e.length, o = 0; o < r; ++o) { + var i = e.charCodeAt(o); + D[t >> 1] = i, t += 2 + } + D[t >> 1] = 0 + }(i, e, 10240)) : T(o, 0, "i32") + } + }, + Be = (function() { + var e = { + env: ze, + wasi_snapshot_preview1: ze, + "GOT.mem": new Proxy(ze, ge), + "GOT.func": new Proxy(ze, ge) + }; + + function t(e, t) { + var n = e.exports; + n = Se(n, 1024), o.asm = n; + var r, i = _e(t); + i.neededDynlibs && (E = i.neededDynlibs.concat(E)), we(n), r = o.asm.__wasm_call_ctors, Y.unshift(r), ie() + } + + function n(e) { + t(e.instance, e.module) + } + + function r(t) { + return function() { + if (!j && (l || d)) { + if ("function" == typeof fetch && !ue(he)) return fetch(he, { + credentials: "same-origin" + }).then((function(e) { + if (!e.ok) throw "failed to load wasm binary file at '" + he + "'"; + return e.arrayBuffer() + })).catch((function() { + return me(he) + })); + if (h) return new Promise((function(e, t) { + h(he, (function(t) { + e(new Uint8Array(t)) + }), t) + })) + } + return Promise.resolve().then((function() { + return me(he) + })) + }().then((function(t) { + return WebAssembly.instantiate(t, e) + })).then(t, (function(e) { + _("failed to asynchronously prepare wasm: " + e), se(e) + })) + } + if (oe(), o.instantiateWasm) try { + return o.instantiateWasm(e, t) + } catch (e) { + return _("Module.instantiateWasm callback failed with error: " + e), !1 + } + j || "function" != typeof WebAssembly.instantiateStreaming || ce(he) || ue(he) || "function" != typeof fetch ? r(n) : fetch(he, { + credentials: "same-origin" + }).then((function(t) { + return WebAssembly.instantiateStreaming(t, e).then(n, (function(e) { + return _("wasm streaming compile failed: " + e), _("falling back to ArrayBuffer instantiation"), r(n) + })) + })) + }(), o.___wasm_call_ctors = function() { + return (o.___wasm_call_ctors = o.asm.__wasm_call_ctors).apply(null, arguments) + }, o._malloc = function() { + return (Be = o._malloc = o.asm.malloc).apply(null, arguments) + }), + Ue = (o._ts_language_symbol_count = function() { + return (o._ts_language_symbol_count = o.asm.ts_language_symbol_count).apply(null, arguments) + }, o._ts_language_version = function() { + return (o._ts_language_version = o.asm.ts_language_version).apply(null, arguments) + }, o._ts_language_field_count = function() { + return (o._ts_language_field_count = o.asm.ts_language_field_count).apply(null, arguments) + }, o._ts_language_symbol_name = function() { + return (o._ts_language_symbol_name = o.asm.ts_language_symbol_name).apply(null, arguments) + }, o._ts_language_symbol_for_name = function() { + return (o._ts_language_symbol_for_name = o.asm.ts_language_symbol_for_name).apply(null, arguments) + }, o._ts_language_symbol_type = function() { + return (o._ts_language_symbol_type = o.asm.ts_language_symbol_type).apply(null, arguments) + }, o._ts_language_field_name_for_id = function() { + return (o._ts_language_field_name_for_id = o.asm.ts_language_field_name_for_id).apply(null, arguments) + }, o._memcpy = function() { + return (o._memcpy = o.asm.memcpy).apply(null, arguments) + }, o._free = function() { + return (o._free = o.asm.free).apply(null, arguments) + }, o._calloc = function() { + return (o._calloc = o.asm.calloc).apply(null, arguments) + }, o._ts_parser_delete = function() { + return (o._ts_parser_delete = o.asm.ts_parser_delete).apply(null, arguments) + }, o._ts_parser_reset = function() { + return (o._ts_parser_reset = o.asm.ts_parser_reset).apply(null, arguments) + }, o._ts_parser_set_language = function() { + return (o._ts_parser_set_language = o.asm.ts_parser_set_language).apply(null, arguments) + }, o._ts_parser_timeout_micros = function() { + return (o._ts_parser_timeout_micros = o.asm.ts_parser_timeout_micros).apply(null, arguments) + }, o._ts_parser_set_timeout_micros = function() { + return (o._ts_parser_set_timeout_micros = o.asm.ts_parser_set_timeout_micros).apply(null, arguments) + }, o._memcmp = function() { + return (o._memcmp = o.asm.memcmp).apply(null, arguments) + }, o._ts_query_new = function() { + return (o._ts_query_new = o.asm.ts_query_new).apply(null, arguments) + }, o._ts_query_delete = function() { + return (o._ts_query_delete = o.asm.ts_query_delete).apply(null, arguments) + }, o._iswspace = function() { + return (o._iswspace = o.asm.iswspace).apply(null, arguments) + }, o._iswalnum = function() { + return (o._iswalnum = o.asm.iswalnum).apply(null, arguments) + }, o._ts_query_pattern_count = function() { + return (o._ts_query_pattern_count = o.asm.ts_query_pattern_count).apply(null, arguments) + }, o._ts_query_capture_count = function() { + return (o._ts_query_capture_count = o.asm.ts_query_capture_count).apply(null, arguments) + }, o._ts_query_string_count = function() { + return (o._ts_query_string_count = o.asm.ts_query_string_count).apply(null, arguments) + }, o._ts_query_capture_name_for_id = function() { + return (o._ts_query_capture_name_for_id = o.asm.ts_query_capture_name_for_id).apply(null, arguments) + }, o._ts_query_string_value_for_id = function() { + return (o._ts_query_string_value_for_id = o.asm.ts_query_string_value_for_id).apply(null, arguments) + }, o._ts_query_predicates_for_pattern = function() { + return (o._ts_query_predicates_for_pattern = o.asm.ts_query_predicates_for_pattern).apply(null, arguments) + }, o._ts_tree_copy = function() { + return (o._ts_tree_copy = o.asm.ts_tree_copy).apply(null, arguments) + }, o._ts_tree_delete = function() { + return (o._ts_tree_delete = o.asm.ts_tree_delete).apply(null, arguments) + }, o._ts_init = function() { + return (o._ts_init = o.asm.ts_init).apply(null, arguments) + }, o._ts_parser_new_wasm = function() { + return (o._ts_parser_new_wasm = o.asm.ts_parser_new_wasm).apply(null, arguments) + }, o._ts_parser_enable_logger_wasm = function() { + return (o._ts_parser_enable_logger_wasm = o.asm.ts_parser_enable_logger_wasm).apply(null, arguments) + }, o._ts_parser_parse_wasm = function() { + return (o._ts_parser_parse_wasm = o.asm.ts_parser_parse_wasm).apply(null, arguments) + }, o._ts_language_type_is_named_wasm = function() { + return (o._ts_language_type_is_named_wasm = o.asm.ts_language_type_is_named_wasm).apply(null, arguments) + }, o._ts_language_type_is_visible_wasm = function() { + return (o._ts_language_type_is_visible_wasm = o.asm.ts_language_type_is_visible_wasm).apply(null, arguments) + }, o._ts_tree_root_node_wasm = function() { + return (o._ts_tree_root_node_wasm = o.asm.ts_tree_root_node_wasm).apply(null, arguments) + }, o._ts_tree_edit_wasm = function() { + return (o._ts_tree_edit_wasm = o.asm.ts_tree_edit_wasm).apply(null, arguments) + }, o._ts_tree_get_changed_ranges_wasm = function() { + return (o._ts_tree_get_changed_ranges_wasm = o.asm.ts_tree_get_changed_ranges_wasm).apply(null, arguments) + }, o._ts_tree_cursor_new_wasm = function() { + return (o._ts_tree_cursor_new_wasm = o.asm.ts_tree_cursor_new_wasm).apply(null, arguments) + }, o._ts_tree_cursor_delete_wasm = function() { + return (o._ts_tree_cursor_delete_wasm = o.asm.ts_tree_cursor_delete_wasm).apply(null, arguments) + }, o._ts_tree_cursor_reset_wasm = function() { + return (o._ts_tree_cursor_reset_wasm = o.asm.ts_tree_cursor_reset_wasm).apply(null, arguments) + }, o._ts_tree_cursor_goto_first_child_wasm = function() { + return (o._ts_tree_cursor_goto_first_child_wasm = o.asm.ts_tree_cursor_goto_first_child_wasm).apply(null, arguments) + }, o._ts_tree_cursor_goto_next_sibling_wasm = function() { + return (o._ts_tree_cursor_goto_next_sibling_wasm = o.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null, arguments) + }, o._ts_tree_cursor_goto_parent_wasm = function() { + return (o._ts_tree_cursor_goto_parent_wasm = o.asm.ts_tree_cursor_goto_parent_wasm).apply(null, arguments) + }, o._ts_tree_cursor_current_node_type_id_wasm = function() { + return (o._ts_tree_cursor_current_node_type_id_wasm = o.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null, arguments) + }, o._ts_tree_cursor_current_node_is_named_wasm = function() { + return (o._ts_tree_cursor_current_node_is_named_wasm = o.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null, arguments) + }, o._ts_tree_cursor_current_node_is_missing_wasm = function() { + return (o._ts_tree_cursor_current_node_is_missing_wasm = o.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null, arguments) + }, o._ts_tree_cursor_current_node_id_wasm = function() { + return (o._ts_tree_cursor_current_node_id_wasm = o.asm.ts_tree_cursor_current_node_id_wasm).apply(null, arguments) + }, o._ts_tree_cursor_start_position_wasm = function() { + return (o._ts_tree_cursor_start_position_wasm = o.asm.ts_tree_cursor_start_position_wasm).apply(null, arguments) + }, o._ts_tree_cursor_end_position_wasm = function() { + return (o._ts_tree_cursor_end_position_wasm = o.asm.ts_tree_cursor_end_position_wasm).apply(null, arguments) + }, o._ts_tree_cursor_start_index_wasm = function() { + return (o._ts_tree_cursor_start_index_wasm = o.asm.ts_tree_cursor_start_index_wasm).apply(null, arguments) + }, o._ts_tree_cursor_end_index_wasm = function() { + return (o._ts_tree_cursor_end_index_wasm = o.asm.ts_tree_cursor_end_index_wasm).apply(null, arguments) + }, o._ts_tree_cursor_current_field_id_wasm = function() { + return (o._ts_tree_cursor_current_field_id_wasm = o.asm.ts_tree_cursor_current_field_id_wasm).apply(null, arguments) + }, o._ts_tree_cursor_current_node_wasm = function() { + return (o._ts_tree_cursor_current_node_wasm = o.asm.ts_tree_cursor_current_node_wasm).apply(null, arguments) + }, o._ts_node_symbol_wasm = function() { + return (o._ts_node_symbol_wasm = o.asm.ts_node_symbol_wasm).apply(null, arguments) + }, o._ts_node_child_count_wasm = function() { + return (o._ts_node_child_count_wasm = o.asm.ts_node_child_count_wasm).apply(null, arguments) + }, o._ts_node_named_child_count_wasm = function() { + return (o._ts_node_named_child_count_wasm = o.asm.ts_node_named_child_count_wasm).apply(null, arguments) + }, o._ts_node_child_wasm = function() { + return (o._ts_node_child_wasm = o.asm.ts_node_child_wasm).apply(null, arguments) + }, o._ts_node_named_child_wasm = function() { + return (o._ts_node_named_child_wasm = o.asm.ts_node_named_child_wasm).apply(null, arguments) + }, o._ts_node_child_by_field_id_wasm = function() { + return (o._ts_node_child_by_field_id_wasm = o.asm.ts_node_child_by_field_id_wasm).apply(null, arguments) + }, o._ts_node_next_sibling_wasm = function() { + return (o._ts_node_next_sibling_wasm = o.asm.ts_node_next_sibling_wasm).apply(null, arguments) + }, o._ts_node_prev_sibling_wasm = function() { + return (o._ts_node_prev_sibling_wasm = o.asm.ts_node_prev_sibling_wasm).apply(null, arguments) + }, o._ts_node_next_named_sibling_wasm = function() { + return (o._ts_node_next_named_sibling_wasm = o.asm.ts_node_next_named_sibling_wasm).apply(null, arguments) + }, o._ts_node_prev_named_sibling_wasm = function() { + return (o._ts_node_prev_named_sibling_wasm = o.asm.ts_node_prev_named_sibling_wasm).apply(null, arguments) + }, o._ts_node_parent_wasm = function() { + return (o._ts_node_parent_wasm = o.asm.ts_node_parent_wasm).apply(null, arguments) + }, o._ts_node_descendant_for_index_wasm = function() { + return (o._ts_node_descendant_for_index_wasm = o.asm.ts_node_descendant_for_index_wasm).apply(null, arguments) + }, o._ts_node_named_descendant_for_index_wasm = function() { + return (o._ts_node_named_descendant_for_index_wasm = o.asm.ts_node_named_descendant_for_index_wasm).apply(null, arguments) + }, o._ts_node_descendant_for_position_wasm = function() { + return (o._ts_node_descendant_for_position_wasm = o.asm.ts_node_descendant_for_position_wasm).apply(null, arguments) + }, o._ts_node_named_descendant_for_position_wasm = function() { + return (o._ts_node_named_descendant_for_position_wasm = o.asm.ts_node_named_descendant_for_position_wasm).apply(null, arguments) + }, o._ts_node_start_point_wasm = function() { + return (o._ts_node_start_point_wasm = o.asm.ts_node_start_point_wasm).apply(null, arguments) + }, o._ts_node_end_point_wasm = function() { + return (o._ts_node_end_point_wasm = o.asm.ts_node_end_point_wasm).apply(null, arguments) + }, o._ts_node_start_index_wasm = function() { + return (o._ts_node_start_index_wasm = o.asm.ts_node_start_index_wasm).apply(null, arguments) + }, o._ts_node_end_index_wasm = function() { + return (o._ts_node_end_index_wasm = o.asm.ts_node_end_index_wasm).apply(null, arguments) + }, o._ts_node_to_string_wasm = function() { + return (o._ts_node_to_string_wasm = o.asm.ts_node_to_string_wasm).apply(null, arguments) + }, o._ts_node_children_wasm = function() { + return (o._ts_node_children_wasm = o.asm.ts_node_children_wasm).apply(null, arguments) + }, o._ts_node_named_children_wasm = function() { + return (o._ts_node_named_children_wasm = o.asm.ts_node_named_children_wasm).apply(null, arguments) + }, o._ts_node_descendants_of_type_wasm = function() { + return (o._ts_node_descendants_of_type_wasm = o.asm.ts_node_descendants_of_type_wasm).apply(null, arguments) + }, o._ts_node_is_named_wasm = function() { + return (o._ts_node_is_named_wasm = o.asm.ts_node_is_named_wasm).apply(null, arguments) + }, o._ts_node_has_changes_wasm = function() { + return (o._ts_node_has_changes_wasm = o.asm.ts_node_has_changes_wasm).apply(null, arguments) + }, o._ts_node_has_error_wasm = function() { + return (o._ts_node_has_error_wasm = o.asm.ts_node_has_error_wasm).apply(null, arguments) + }, o._ts_node_is_missing_wasm = function() { + return (o._ts_node_is_missing_wasm = o.asm.ts_node_is_missing_wasm).apply(null, arguments) + }, o._ts_query_matches_wasm = function() { + return (o._ts_query_matches_wasm = o.asm.ts_query_matches_wasm).apply(null, arguments) + }, o._ts_query_captures_wasm = function() { + return (o._ts_query_captures_wasm = o.asm.ts_query_captures_wasm).apply(null, arguments) + }, o._iswdigit = function() { + return (o._iswdigit = o.asm.iswdigit).apply(null, arguments) + }, o._iswalpha = function() { + return (o._iswalpha = o.asm.iswalpha).apply(null, arguments) + }, o._iswlower = function() { + return (o._iswlower = o.asm.iswlower).apply(null, arguments) + }, o._towupper = function() { + return (o._towupper = o.asm.towupper).apply(null, arguments) + }, o.___errno_location = function() { + return (Ue = o.___errno_location = o.asm.__errno_location).apply(null, arguments) + }), + He = (o._memchr = function() { + return (o._memchr = o.asm.memchr).apply(null, arguments) + }, o._strlen = function() { + return (o._strlen = o.asm.strlen).apply(null, arguments) + }, o.stackSave = function() { + return (He = o.stackSave = o.asm.stackSave).apply(null, arguments) + }), + We = o.stackRestore = function() { + return (We = o.stackRestore = o.asm.stackRestore).apply(null, arguments) + }, + Ge = o.stackAlloc = function() { + return (Ge = o.stackAlloc = o.asm.stackAlloc).apply(null, arguments) + }, + Ve = o._setThrew = function() { + return (Ve = o._setThrew = o.asm.setThrew).apply(null, arguments) + }; + + function Ke(e) { + this.name = "ExitStatus", this.message = "Program terminated with exit(" + e + ")", this.status = e + } + o.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm = function() { + return (o.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm = o.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null, arguments) + }, o.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev = function() { + return (o.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev = o.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null, arguments) + }, o.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm = function() { + return (o.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm = o.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null, arguments) + }, o.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm = function() { + return (o.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm = o.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null, arguments) + }, o.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc = function() { + return (o.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc = o.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null, arguments) + }, o.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm = function() { + return (o.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm = o.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null, arguments) + }, o.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev = function() { + return (o.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev = o.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null, arguments) + }, o.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw = function() { + return (o.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw = o.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null, arguments) + }, o.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_ = function() { + return (o.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_ = o.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_).apply(null, arguments) + }, o.__Znwm = function() { + return (o.__Znwm = o.asm._Znwm).apply(null, arguments) + }, o.__ZdlPv = function() { + return (o.__ZdlPv = o.asm._ZdlPv).apply(null, arguments) + }, o.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv = function() { + return (o.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv = o.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null, arguments) + }, o._orig$ts_parser_timeout_micros = function() { + return (o._orig$ts_parser_timeout_micros = o.asm.orig$ts_parser_timeout_micros).apply(null, arguments) + }, o._orig$ts_parser_set_timeout_micros = function() { + return (o._orig$ts_parser_set_timeout_micros = o.asm.orig$ts_parser_set_timeout_micros).apply(null, arguments) + }, o.allocate = function(e, t) { + var n; + return n = t == $ ? Ge(e.length) : Be(e.length), e.subarray || e.slice ? N.set(e, n) : N.set(new Uint8Array(e), n), n + }, re = function e() { + Fe || Xe(), Fe || (re = e) + }; + var Je = !1; + + function Xe(e) { + function t() { + Fe || (Fe = !0, o.calledRun = !0, I || (ee = !0, ye(Y), ye(Q), o.onRuntimeInitialized && o.onRuntimeInitialized(), Qe && function(e) { + var t = o._main; + if (t) { + var n = (e = e || []).length + 1, + r = Ge(4 * (n + 1)); + M[r >> 2] = G(c); + for (var i = 1; i < n; i++) M[(r >> 2) + i] = G(e[i - 1]); + M[(r >> 2) + n] = 0; + try { + Ye(t(n, r), !0) + } catch (e) { + if (e instanceof Ke) return; + if ("unwind" == e) return; + var s = e; + e && "object" == typeof e && e.stack && (s = [e, e.stack]), _("exception thrown: " + s), u(1, e) + } + } + }(e), function() { + if (o.postRun) + for ("function" == typeof o.postRun && (o.postRun = [o.postRun]); o.postRun.length;) e = o.postRun.shift(), Z.unshift(e); + var e; + ye(Z) + }())) + } + e = e || a, te > 0 || !Je && (function() { + if (E.length) { + if (!m) return oe(), void E.reduce((function(e, t) { + return e.then((function() { + return Ie(t, { + loadAsync: !0, + global: !0, + nodelete: !0, + allowUndefined: !0 + }) + })) + }), Promise.resolve()).then((function() { + ie(), Re() + })); + E.forEach((function(e) { + Ie(e, { + global: !0, + nodelete: !0, + allowUndefined: !0 + }) + })), Re() + } else Re() + }(), Je = !0, te > 0) || (function() { + if (o.preRun) + for ("function" == typeof o.preRun && (o.preRun = [o.preRun]); o.preRun.length;) e = o.preRun.shift(), X.unshift(e); + var e; + ye(X) + }(), te > 0 || (o.setStatus ? (o.setStatus("Running..."), setTimeout((function() { + setTimeout((function() { + o.setStatus("") + }), 1), t() + }), 1)) : t())) + } + + function Ye(e, t) { + t && be() && 0 === e || (be() || (o.onExit && o.onExit(e), I = !0), u(e, new Ke(e))) + } + if (o.run = Xe, o.preInit) + for ("function" == typeof o.preInit && (o.preInit = [o.preInit]); o.preInit.length > 0;) o.preInit.pop()(); + var Qe = !0; + o.noInitialRun && (Qe = !1), Xe(); + const Ze = o, + et = {}, + tt = 4, + nt = 5 * tt, + rt = 2 * tt, + ot = 2 * tt + 2 * rt, + it = { + row: 0, + column: 0 + }, + st = /[\w-.]*/g, + at = 1, + ct = 2, + ut = /^_?tree_sitter_\w+/; + var lt, dt, pt, ht, mt, ft = new Promise((e => { + o.onRuntimeInitialized = e + })).then((() => { + pt = Ze._ts_init(), lt = P(pt, "i32"), dt = P(pt + tt, "i32") + })); + class gt { + static init() { + return ft + } + constructor() { + if (null == pt) throw new Error("You must first call Parser.init() and wait for it to resolve."); + Ze._ts_parser_new_wasm(), this[0] = P(pt, "i32"), this[1] = P(pt + tt, "i32") + } + delete() { + Ze._ts_parser_delete(this[0]), Ze._free(this[1]), this[0] = 0, this[1] = 0 + } + setLanguage(e) { + let t; + if (e) { + if (e.constructor !== bt) throw new Error("Argument must be a Language"); { + t = e[0]; + const n = Ze._ts_language_version(t); + if (n < dt || lt < n) throw new Error(`Incompatible language version ${n}. Compatibility range ${dt} through ${lt}.`) + } + } else t = 0, e = null; + return this.language = e, Ze._ts_parser_set_language(this[0], t), this + } + getLanguage() { + return this.language + } + parse(e, t, n) { + if ("string" == typeof e) ht = (t, n, r) => e.slice(t, r); + else { + if ("function" != typeof e) throw new Error("Argument must be a string or a function"); + ht = e + } + this.logCallback ? (mt = this.logCallback, Ze._ts_parser_enable_logger_wasm(this[0], 1)) : (mt = null, Ze._ts_parser_enable_logger_wasm(this[0], 0)); + let r = 0, + o = 0; + if (n && n.includedRanges) { + r = n.includedRanges.length; + let e = o = Ze._calloc(r, ot); + for (let t = 0; t < r; t++) Ot(e, n.includedRanges[t]), e += ot + } + const i = Ze._ts_parser_parse_wasm(this[0], this[1], t ? t[0] : 0, o, r); + if (!i) throw ht = null, mt = null, new Error("Parsing failed"); + const s = new yt(et, i, this.language, ht); + return ht = null, mt = null, s + } + reset() { + Ze._ts_parser_reset(this[0]) + } + setTimeoutMicros(e) { + Ze._ts_parser_set_timeout_micros(this[0], e) + } + getTimeoutMicros() { + return Ze._ts_parser_timeout_micros(this[0]) + } + setLogger(e) { + if (e) { + if ("function" != typeof e) throw new Error("Logger callback must be a function") + } else e = null; + return this.logCallback = e, this + } + getLogger() { + return this.logCallback + } + } + class yt { + constructor(e, t, n, r) { + xt(e), this[0] = t, this.language = n, this.textCallback = r + } + copy() { + const e = Ze._ts_tree_copy(this[0]); + return new yt(et, e, this.language, this.textCallback) + } + delete() { + Ze._ts_tree_delete(this[0]), this[0] = 0 + } + edit(e) { + ! function(e) { + let t = pt; + It(t, e.startPosition), It(t += rt, e.oldEndPosition), It(t += rt, e.newEndPosition), T(t += rt, e.startIndex, "i32"), T(t += tt, e.oldEndIndex, "i32"), T(t += tt, e.newEndIndex, "i32"), t += tt + }(e), Ze._ts_tree_edit_wasm(this[0]) + } + get rootNode() { + return Ze._ts_tree_root_node_wasm(this[0]), St(this) + } + getLanguage() { + return this.language + } + walk() { + return this.rootNode.walk() + } + getChangedRanges(e) { + if (e.constructor !== yt) throw new TypeError("Argument must be a Tree"); + Ze._ts_tree_get_changed_ranges_wasm(this[0], e[0]); + const t = P(pt, "i32"), + n = P(pt + tt, "i32"), + r = new Array(t); + if (t > 0) { + let e = n; + for (let n = 0; n < t; n++) r[n] = At(e), e += ot; + Ze._free(n) + } + return r + } + } + class _t { + constructor(e, t) { + xt(e), this.tree = t + } + get typeId() { + return Ct(this), Ze._ts_node_symbol_wasm(this.tree[0]) + } + get type() { + return this.tree.language.types[this.typeId] || "ERROR" + } + get endPosition() { + return Ct(this), Ze._ts_node_end_point_wasm(this.tree[0]), Rt(pt) + } + get endIndex() { + return Ct(this), Ze._ts_node_end_index_wasm(this.tree[0]) + } + get text() { + return wt(this.tree, this.startIndex, this.endIndex) + } + isNamed() { + return Ct(this), 1 === Ze._ts_node_is_named_wasm(this.tree[0]) + } + hasError() { + return Ct(this), 1 === Ze._ts_node_has_error_wasm(this.tree[0]) + } + hasChanges() { + return Ct(this), 1 === Ze._ts_node_has_changes_wasm(this.tree[0]) + } + isMissing() { + return Ct(this), 1 === Ze._ts_node_is_missing_wasm(this.tree[0]) + } + equals(e) { + return this.id === e.id + } + child(e) { + return Ct(this), Ze._ts_node_child_wasm(this.tree[0], e), St(this.tree) + } + namedChild(e) { + return Ct(this), Ze._ts_node_named_child_wasm(this.tree[0], e), St(this.tree) + } + childForFieldId(e) { + return Ct(this), Ze._ts_node_child_by_field_id_wasm(this.tree[0], e), St(this.tree) + } + childForFieldName(e) { + const t = this.tree.language.fields.indexOf(e); + if (-1 !== t) return this.childForFieldId(t) + } + get childCount() { + return Ct(this), Ze._ts_node_child_count_wasm(this.tree[0]) + } + get namedChildCount() { + return Ct(this), Ze._ts_node_named_child_count_wasm(this.tree[0]) + } + get firstChild() { + return this.child(0) + } + get firstNamedChild() { + return this.namedChild(0) + } + get lastChild() { + return this.child(this.childCount - 1) + } + get lastNamedChild() { + return this.namedChild(this.namedChildCount - 1) + } + get children() { + if (!this._children) { + Ct(this), Ze._ts_node_children_wasm(this.tree[0]); + const e = P(pt, "i32"), + t = P(pt + tt, "i32"); + if (this._children = new Array(e), e > 0) { + let n = t; + for (let t = 0; t < e; t++) this._children[t] = St(this.tree, n), n += nt; + Ze._free(t) + } + } + return this._children + } + get namedChildren() { + if (!this._namedChildren) { + Ct(this), Ze._ts_node_named_children_wasm(this.tree[0]); + const e = P(pt, "i32"), + t = P(pt + tt, "i32"); + if (this._namedChildren = new Array(e), e > 0) { + let n = t; + for (let t = 0; t < e; t++) this._namedChildren[t] = St(this.tree, n), n += nt; + Ze._free(t) + } + } + return this._namedChildren + } + descendantsOfType(e, t, n) { + Array.isArray(e) || (e = [e]), t || (t = it), n || (n = it); + const r = [], + o = this.tree.language.types; + for (let t = 0, n = o.length; t < n; t++) e.includes(o[t]) && r.push(t); + const i = Ze._malloc(tt * r.length); + for (let e = 0, t = r.length; e < t; e++) T(i + e * tt, r[e], "i32"); + Ct(this), Ze._ts_node_descendants_of_type_wasm(this.tree[0], i, r.length, t.row, t.column, n.row, n.column); + const s = P(pt, "i32"), + a = P(pt + tt, "i32"), + c = new Array(s); + if (s > 0) { + let e = a; + for (let t = 0; t < s; t++) c[t] = St(this.tree, e), e += nt + } + return Ze._free(a), Ze._free(i), c + } + get nextSibling() { + return Ct(this), Ze._ts_node_next_sibling_wasm(this.tree[0]), St(this.tree) + } + get previousSibling() { + return Ct(this), Ze._ts_node_prev_sibling_wasm(this.tree[0]), St(this.tree) + } + get nextNamedSibling() { + return Ct(this), Ze._ts_node_next_named_sibling_wasm(this.tree[0]), St(this.tree) + } + get previousNamedSibling() { + return Ct(this), Ze._ts_node_prev_named_sibling_wasm(this.tree[0]), St(this.tree) + } + get parent() { + return Ct(this), Ze._ts_node_parent_wasm(this.tree[0]), St(this.tree) + } + descendantForIndex(e, t = e) { + if ("number" != typeof e || "number" != typeof t) throw new Error("Arguments must be numbers"); + Ct(this); + let n = pt + nt; + return T(n, e, "i32"), T(n + tt, t, "i32"), Ze._ts_node_descendant_for_index_wasm(this.tree[0]), St(this.tree) + } + namedDescendantForIndex(e, t = e) { + if ("number" != typeof e || "number" != typeof t) throw new Error("Arguments must be numbers"); + Ct(this); + let n = pt + nt; + return T(n, e, "i32"), T(n + tt, t, "i32"), Ze._ts_node_named_descendant_for_index_wasm(this.tree[0]), St(this.tree) + } + descendantForPosition(e, t = e) { + if (!Et(e) || !Et(t)) throw new Error("Arguments must be {row, column} objects"); + Ct(this); + let n = pt + nt; + return It(n, e), It(n + rt, t), Ze._ts_node_descendant_for_position_wasm(this.tree[0]), St(this.tree) + } + namedDescendantForPosition(e, t = e) { + if (!Et(e) || !Et(t)) throw new Error("Arguments must be {row, column} objects"); + Ct(this); + let n = pt + nt; + return It(n, e), It(n + rt, t), Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]), St(this.tree) + } + walk() { + return Ct(this), Ze._ts_tree_cursor_new_wasm(this.tree[0]), new vt(et, this.tree) + } + toString() { + Ct(this); + const e = Ze._ts_node_to_string_wasm(this.tree[0]), + t = function(e) { + for (var t = "";;) { + var n = N[e++ >> 0]; + if (!n) return t; + t += String.fromCharCode(n) + } + }(e); + return Ze._free(e), t + } + } + class vt { + constructor(e, t) { + xt(e), this.tree = t, Pt(this) + } + delete() { + Tt(this), Ze._ts_tree_cursor_delete_wasm(this.tree[0]), this[0] = this[1] = this[2] = 0 + } + reset(e) { + Ct(e), Tt(this, pt + nt), Ze._ts_tree_cursor_reset_wasm(this.tree[0]), Pt(this) + } + get nodeType() { + return this.tree.language.types[this.nodeTypeId] || "ERROR" + } + get nodeTypeId() { + return Tt(this), Ze._ts_tree_cursor_current_node_type_id_wasm(this.tree[0]) + } + get nodeId() { + return Tt(this), Ze._ts_tree_cursor_current_node_id_wasm(this.tree[0]) + } + get nodeIsNamed() { + return Tt(this), 1 === Ze._ts_tree_cursor_current_node_is_named_wasm(this.tree[0]) + } + get nodeIsMissing() { + return Tt(this), 1 === Ze._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0]) + } + get nodeText() { + Tt(this); + const e = Ze._ts_tree_cursor_start_index_wasm(this.tree[0]), + t = Ze._ts_tree_cursor_end_index_wasm(this.tree[0]); + return wt(this.tree, e, t) + } + get startPosition() { + return Tt(this), Ze._ts_tree_cursor_start_position_wasm(this.tree[0]), Rt(pt) + } + get endPosition() { + return Tt(this), Ze._ts_tree_cursor_end_position_wasm(this.tree[0]), Rt(pt) + } + get startIndex() { + return Tt(this), Ze._ts_tree_cursor_start_index_wasm(this.tree[0]) + } + get endIndex() { + return Tt(this), Ze._ts_tree_cursor_end_index_wasm(this.tree[0]) + } + currentNode() { + return Tt(this), Ze._ts_tree_cursor_current_node_wasm(this.tree[0]), St(this.tree) + } + currentFieldId() { + return Tt(this), Ze._ts_tree_cursor_current_field_id_wasm(this.tree[0]) + } + currentFieldName() { + return this.tree.language.fields[this.currentFieldId()] + } + gotoFirstChild() { + Tt(this); + const e = Ze._ts_tree_cursor_goto_first_child_wasm(this.tree[0]); + return Pt(this), 1 === e + } + gotoNextSibling() { + Tt(this); + const e = Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]); + return Pt(this), 1 === e + } + gotoParent() { + Tt(this); + const e = Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]); + return Pt(this), 1 === e + } + } + class bt { + constructor(e, t) { + xt(e), this[0] = t, this.types = new Array(Ze._ts_language_symbol_count(this[0])); + for (let e = 0, t = this.types.length; e < t; e++) Ze._ts_language_symbol_type(this[0], e) < 2 && (this.types[e] = B(Ze._ts_language_symbol_name(this[0], e))); + this.fields = new Array(Ze._ts_language_field_count(this[0]) + 1); + for (let e = 0, t = this.fields.length; e < t; e++) { + const t = Ze._ts_language_field_name_for_id(this[0], e); + this.fields[e] = 0 !== t ? B(t) : null + } + } + get version() { + return Ze._ts_language_version(this[0]) + } + get fieldCount() { + return this.fields.length - 1 + } + fieldIdForName(e) { + const t = this.fields.indexOf(e); + return -1 !== t ? t : null + } + fieldNameForId(e) { + return this.fields[e] || null + } + idForNodeType(e, t) { + const n = W(e), + r = Ze._malloc(n + 1); + H(e, r, n + 1); + const o = Ze._ts_language_symbol_for_name(this[0], r, n, t); + return Ze._free(r), o || null + } + get nodeTypeCount() { + return Ze._ts_language_symbol_count(this[0]) + } + nodeTypeForId(e) { + const t = Ze._ts_language_symbol_name(this[0], e); + return t ? B(t) : null + } + nodeTypeIsNamed(e) { + return !!Ze._ts_language_type_is_named_wasm(this[0], e) + } + nodeTypeIsVisible(e) { + return !!Ze._ts_language_type_is_visible_wasm(this[0], e) + } + query(e) { + const t = W(e), + n = Ze._malloc(t + 1); + H(e, n, t + 1); + const r = Ze._ts_query_new(this[0], n, t, pt, pt + tt); + if (!r) { + const t = P(pt + tt, "i32"), + r = B(n, P(pt, "i32")).length, + o = e.substr(r, 100).split("\n")[0]; + let i, s = o.match(st)[0]; + switch (t) { + case 2: + i = new RangeError(`Bad node name '${s}'`); + break; + case 3: + i = new RangeError(`Bad field name '${s}'`); + break; + case 4: + i = new RangeError(`Bad capture name @${s}`); + break; + case 5: + i = new TypeError(`Bad pattern structure at offset ${r}: '${o}'...`), s = ""; + break; + default: + i = new SyntaxError(`Bad syntax at offset ${r}: '${o}'...`), s = "" + } + throw i.index = r, i.length = s.length, Ze._free(n), i + } + const o = Ze._ts_query_string_count(r), + i = Ze._ts_query_capture_count(r), + s = Ze._ts_query_pattern_count(r), + a = new Array(i), + c = new Array(o); + for (let e = 0; e < i; e++) { + const t = Ze._ts_query_capture_name_for_id(r, e, pt), + n = P(pt, "i32"); + a[e] = B(t, n) + } + for (let e = 0; e < o; e++) { + const t = Ze._ts_query_string_value_for_id(r, e, pt), + n = P(pt, "i32"); + c[e] = B(t, n) + } + const u = new Array(s), + l = new Array(s), + d = new Array(s), + p = new Array(s), + h = new Array(s); + for (let e = 0; e < s; e++) { + const t = Ze._ts_query_predicates_for_pattern(r, e, pt), + n = P(pt, "i32"); + p[e] = [], h[e] = []; + const o = []; + let i = t; + for (let t = 0; t < n; t++) { + const t = P(i, "i32"), + n = P(i += tt, "i32"); + if (i += tt, t === at) o.push({ + type: "capture", + name: a[n] + }); + else if (t === ct) o.push({ + type: "string", + value: c[n] + }); + else if (o.length > 0) { + if ("string" !== o[0].type) throw new Error("Predicates must begin with a literal value"); + const t = o[0].value; + let n = !0; + switch (t) { + case "not-eq?": + n = !1; + case "eq?": + if (3 !== o.length) throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got " + (o.length - 1)); + if ("capture" !== o[1].type) throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${o[1].value}"`); + if ("capture" === o[2].type) { + const t = o[1].name, + r = o[2].name; + h[e].push((function(e) { + let o, i; + for (const n of e) n.name === t && (o = n.node), n.name === r && (i = n.node); + return o.text === i.text === n + })) + } else { + const t = o[1].name, + r = o[2].value; + h[e].push((function(e) { + for (const o of e) + if (o.name === t) return o.node.text === r === n; + return !1 + })) + } + break; + case "not-match?": + n = !1; + case "match?": + if (3 !== o.length) throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${o.length-1}.`); + if ("capture" !== o[1].type) throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${o[1].value}".`); + if ("string" !== o[2].type) throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${o[2].value}.`); + const r = o[1].name, + i = new RegExp(o[2].value); + h[e].push((function(e) { + for (const t of e) + if (t.name === r) return i.test(t.node.text) === n; + return !1 + })); + break; + case "set!": + if (o.length < 2 || o.length > 3) throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${o.length-1}.`); + if (o.some((e => "string" !== e.type))) throw new Error('Arguments to `#set!` predicate must be a strings.".'); + u[e] || (u[e] = {}), u[e][o[1].value] = o[2] ? o[2].value : null; + break; + case "is?": + case "is-not?": + if (o.length < 2 || o.length > 3) throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${o.length-1}.`); + if (o.some((e => "string" !== e.type))) throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`); + const s = "is?" === t ? l : d; + s[e] || (s[e] = {}), s[e][o[1].value] = o[2] ? o[2].value : null; + break; + default: + p[e].push({ + operator: t, + operands: o.slice(1) + }) + } + o.length = 0 + } + } + Object.freeze(u[e]), Object.freeze(l[e]), Object.freeze(d[e]) + } + return Ze._free(n), new kt(et, r, a, h, p, Object.freeze(u), Object.freeze(l), Object.freeze(d)) + } + static load(e) { + let t; + if (e instanceof Uint8Array) t = Promise.resolve(e); + else { + const r = e; + if ("undefined" != typeof process && process.versions && process.versions.node) { + const e = n(7147); + t = Promise.resolve(e.readFileSync(r)) + } else t = fetch(r).then((e => e.arrayBuffer().then((t => { + if (e.ok) return new Uint8Array(t); { + const n = new TextDecoder("utf-8").decode(t); + throw new Error(`Language.load failed with status ${e.status}.\n\n${n}`) + } + })))) + } + const r = "function" == typeof loadSideModule ? loadSideModule : Pe; + return t.then((e => r(e, { + loadAsync: !0 + }))).then((e => { + const t = Object.keys(e), + n = t.find((e => ut.test(e) && !e.includes("external_scanner_"))); + n || console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`); + const r = e[n](); + return new bt(et, r) + })) + } + } + class kt { + constructor(e, t, n, r, o, i, s, a) { + xt(e), this[0] = t, this.captureNames = n, this.textPredicates = r, this.predicates = o, this.setProperties = i, this.assertedProperties = s, this.refutedProperties = a, this.exceededMatchLimit = !1 + } + delete() { + Ze._ts_query_delete(this[0]), this[0] = 0 + } + matches(e, t, n) { + t || (t = it), n || (n = it), Ct(e), Ze._ts_query_matches_wasm(this[0], e.tree[0], t.row, t.column, n.row, n.column); + const r = P(pt, "i32"), + o = P(pt + tt, "i32"), + i = P(pt + 2 * tt, "i32"), + s = new Array(r); + this.exceededMatchLimit = !!i; + let a = 0, + c = o; + for (let t = 0; t < r; t++) { + const n = P(c, "i32"), + r = P(c += tt, "i32"); + c += tt; + const o = new Array(r); + if (c = jt(this, e.tree, c, o), this.textPredicates[n].every((e => e(o)))) { + s[a++] = { + pattern: n, + captures: o + }; + const e = this.setProperties[n]; + e && (s[t].setProperties = e); + const r = this.assertedProperties[n]; + r && (s[t].assertedProperties = r); + const i = this.refutedProperties[n]; + i && (s[t].refutedProperties = i) + } + } + return s.length = a, Ze._free(o), s + } + captures(e, t, n) { + t || (t = it), n || (n = it), Ct(e), Ze._ts_query_captures_wasm(this[0], e.tree[0], t.row, t.column, n.row, n.column); + const r = P(pt, "i32"), + o = P(pt + tt, "i32"), + i = P(pt + 2 * tt, "i32"), + s = []; + this.exceededMatchLimit = !!i; + const a = []; + let c = o; + for (let t = 0; t < r; t++) { + const t = P(c, "i32"), + n = P(c += tt, "i32"), + r = P(c += tt, "i32"); + if (c += tt, a.length = n, c = jt(this, e.tree, c, a), this.textPredicates[t].every((e => e(a)))) { + const e = a[r], + n = this.setProperties[t]; + n && (e.setProperties = n); + const o = this.assertedProperties[t]; + o && (e.assertedProperties = o); + const i = this.refutedProperties[t]; + i && (e.refutedProperties = i), s.push(e) + } + } + return Ze._free(o), s + } + predicatesForPattern(e) { + return this.predicates[e] + } + didExceedMatchLimit() { + return this.exceededMatchLimit + } + } + + function wt(e, t, n) { + const r = n - t; + let o = e.textCallback(t, null, n); + for (t += o.length; t < n;) { + const r = e.textCallback(t, null, n); + if (!(r && r.length > 0)) break; + t += r.length, o += r + } + return t > n && (o = o.slice(0, r)), o + } + + function jt(e, t, n, r) { + for (let o = 0, i = r.length; o < i; o++) { + const i = P(n, "i32"), + s = St(t, n += tt); + n += nt, r[o] = { + name: e.captureNames[i], + node: s + } + } + return n + } + + function xt(e) { + if (e !== et) throw new Error("Illegal constructor") + } + + function Et(e) { + return e && "number" == typeof e.row && "number" == typeof e.column + } + + function Ct(e) { + let t = pt; + T(t, e.id, "i32"), T(t += tt, e.startIndex, "i32"), T(t += tt, e.startPosition.row, "i32"), T(t += tt, e.startPosition.column, "i32"), T(t += tt, e[0], "i32") + } + + function St(e, t = pt) { + const n = P(t, "i32"); + if (0 === n) return null; + const r = P(t += tt, "i32"), + o = P(t += tt, "i32"), + i = P(t += tt, "i32"), + s = P(t += tt, "i32"), + a = new _t(et, e); + return a.id = n, a.startIndex = r, a.startPosition = { + row: o, + column: i + }, a[0] = s, a + } + + function Tt(e, t = pt) { + T(t + 0 * tt, e[0], "i32"), T(t + 1 * tt, e[1], "i32"), T(t + 2 * tt, e[2], "i32") + } + + function Pt(e) { + e[0] = P(pt + 0 * tt, "i32"), e[1] = P(pt + 1 * tt, "i32"), e[2] = P(pt + 2 * tt, "i32") + } + + function It(e, t) { + T(e, t.row, "i32"), T(e + tt, t.column, "i32") + } + + function Rt(e) { + return { + row: P(e, "i32"), + column: P(e + tt, "i32") + } + } + + function Ot(e, t) { + It(e, t.startPosition), It(e += rt, t.endPosition), T(e += rt, t.startIndex, "i32"), T(e += tt, t.endIndex, "i32"), e += tt + } + + function At(e) { + const t = {}; + return t.startPosition = Rt(e), e += rt, t.endPosition = Rt(e), e += rt, t.startIndex = P(e, "i32"), e += tt, t.endIndex = P(e, "i32"), t + } + return gt.Language = bt, gt.Parser = gt, gt + }.apply(t, [])) || (e.exports = r) + }, + 4617: (e, t, n) => { + var r, o, i; + r = { + 271: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.defaultFileSystem = t.FileSystem = void 0; + const r = n(747); + t.FileSystem = class {}, t.defaultFileSystem = { + readFile: e => r.promises.readFile(e), + mtime: async e => (await r.promises.stat(e)).mtimeMs, + stat: async function(e) { + const t = await r.promises.stat(e); + return { + ctime: t.ctimeMs, + mtime: t.mtimeMs, + size: t.size + } + } + } + }, + 417: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getPathMarker = t.getLanguageMarker = t.comment = t.hasLanguageMarker = t.languageCommentMarkers = void 0, t.languageCommentMarkers = { + abap: { + start: '"', + end: "" + }, + bat: { + start: "REM", + end: "" + }, + bibtex: { + start: "%", + end: "" + }, + clojure: { + start: ";", + end: "" + }, + coffeescript: { + start: "//", + end: "" + }, + c: { + start: "//", + end: "" + }, + cpp: { + start: "//", + end: "" + }, + csharp: { + start: "//", + end: "" + }, + css: { + start: "/*", + end: "*/" + }, + dockerfile: { + start: "#", + end: "" + }, + fsharp: { + start: "//", + end: "" + }, + go: { + start: "//", + end: "" + }, + groovy: { + start: "//", + end: "" + }, + handlebars: { + start: "{{!", + end: "}}" + }, + haml: { + start: "-#", + end: "" + }, + html: { + start: "\x3c!--", + end: "--\x3e" + }, + ini: { + start: ";", + end: "" + }, + java: { + start: "//", + end: "" + }, + javascript: { + start: "//", + end: "" + }, + javascriptreact: { + start: "//", + end: "" + }, + jsonc: { + start: "//", + end: "" + }, + jsx: { + start: "//", + end: "" + }, + latex: { + start: "%", + end: "" + }, + less: { + start: "//", + end: "" + }, + lua: { + start: "--", + end: "" + }, + makefile: { + start: "#", + end: "" + }, + markdown: { + start: "[]: #", + end: "" + }, + "objective-c": { + start: "//", + end: "" + }, + "objective-cpp": { + start: "//", + end: "" + }, + perl: { + start: "#", + end: "" + }, + php: { + start: "//", + end: "" + }, + pug: { + start: "//", + end: "" + }, + python: { + start: "#", + end: "" + }, + r: { + start: "#", + end: "" + }, + razor: { + start: "\x3c!--", + end: "--\x3e" + }, + ruby: { + start: "#", + end: "" + }, + rust: { + start: "//", + end: "" + }, + scss: { + start: "//", + end: "" + }, + sass: { + start: "//", + end: "" + }, + shellscript: { + start: "#", + end: "" + }, + slim: { + start: "/", + end: "" + }, + sql: { + start: "--", + end: "" + }, + stylus: { + start: "//", + end: "" + }, + swift: { + start: "//", + end: "" + }, + typescript: { + start: "//", + end: "" + }, + tex: { + start: "%", + end: "" + }, + vb: { + start: "'", + end: "" + }, + vue: { + start: "//", + end: "" + }, + "vue-html": { + start: "\x3c!--", + end: "--\x3e" + }, + xml: { + start: "\x3c!--", + end: "--\x3e" + }, + xsl: { + start: "\x3c!--", + end: "--\x3e" + }, + yaml: { + start: "#", + end: "" + } + }; + const n = ["php", "plaintext"], + r = { + shellscript: "#!/bin/sh", + python: "#!/usr/bin/env python3", + ruby: "#!/usr/bin/env ruby", + html: "", + yaml: "# YAML data" + }; + + function o({ + source: e + }) { + return e.startsWith("#!") || e.startsWith(" { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.extractLocalImportContext = t.getDocComment = void 0; + const r = n(622), + o = n(306); + + function i(e, t) { + var n; + let o = null === (n = t.namedChild(1)) || void 0 === n ? void 0 : n.text.slice(1, -1); + if (!o || !o.startsWith(".")) return null; + if ("" === r.extname(o)) o += ".ts"; + else if (".ts" !== r.extname(o)) return null; + return r.join(r.dirname(e), o) + } + + function s(e) { + var t, n, r, o, i; + let s = []; + if ("import_clause" === (null === (t = e.namedChild(0)) || void 0 === t ? void 0 : t.type)) { + let t = e.namedChild(0); + if ("named_imports" === (null === (n = null == t ? void 0 : t.namedChild(0)) || void 0 === n ? void 0 : n.type)) { + let e = t.namedChild(0); + for (let t of null !== (r = null == e ? void 0 : e.namedChildren) && void 0 !== r ? r : []) + if ("import_specifier" === t.type) { + const e = null === (o = t.childForFieldName("name")) || void 0 === o ? void 0 : o.text; + if (e) { + const n = null === (i = t.childForFieldName("alias")) || void 0 === i ? void 0 : i.text; + s.push({ + name: e, + alias: n + }) + } + } + } + } + return s + } + const a = new Map; + + function c(e, t) { + var n, r; + let o = null !== (r = null === (n = null == t ? void 0 : t.childForFieldName("name")) || void 0 === n ? void 0 : n.text) && void 0 !== r ? r : ""; + switch (null == t ? void 0 : t.type) { + case "ambient_declaration": + return c(e, t.namedChild(0)); + case "interface_declaration": + case "enum_declaration": + case "type_alias_declaration": + return { + name: o, decl: t.text + }; + case "function_declaration": + case "function_signature": + return { + name: o, decl: u(e, t) + }; + case "class_declaration": { + let n = function(e, t) { + let n = t.childForFieldName("body"); + if (n) return n.namedChildren.map((t => d(e, t))).filter((e => e)) + }(e, t), + r = ""; + if (n) { + let o = t.childForFieldName("body"); + r = `declare ${e.substring(t.startIndex,o.startIndex+1)}`, r += n.map((e => "\n" + e)).join(""), r += "\n}" + } + return { + name: o, + decl: r + } + } + } + return { + name: o, + decl: "" + } + } + + function u(e, t) { + var n, r, o; + const i = null !== (r = null === (n = t.childForFieldName("return_type")) || void 0 === n ? void 0 : n.endIndex) && void 0 !== r ? r : null === (o = t.childForFieldName("parameters")) || void 0 === o ? void 0 : o.endIndex; + if (void 0 !== i) { + let n = e.substring(t.startIndex, i) + ";"; + return "function_declaration" === t.type || "function_signature" === t.type ? "declare " + n : n + } + return "" + } + + function l(e, t) { + const n = o.getFirstPrecedingComment(t); + return n ? e.substring(n.startIndex, t.startIndex) : "" + } + + function d(e, t) { + var n, r, i, s, a; + if ("accessibility_modifier" === (null === (n = null == t ? void 0 : t.firstChild) || void 0 === n ? void 0 : n.type) && "private" === t.firstChild.text) return ""; + const c = o.getFirstPrecedingComment(t), + p = null !== (r = function(e, t) { + let n = t.startIndex - 1; + for (; n >= 0 && (" " === e[n] || "\t" === e[n]);) n--; + if (n < 0 || "\n" === e[n]) return e.substring(n + 1, t.startIndex) + }(e, null != c ? c : t)) && void 0 !== r ? r : " ", + h = l(e, t); + switch (t.type) { + case "ambient_declaration": + const n = t.namedChild(0); + return n ? p + h + d(e, n) : ""; + case "method_definition": + case "method_signature": + return p + h + u(e, t); + case "public_field_definition": { + let n = null !== (s = null === (i = t.childForFieldName("type")) || void 0 === i ? void 0 : i.endIndex) && void 0 !== s ? s : null === (a = t.childForFieldName("name")) || void 0 === a ? void 0 : a.endIndex; + if (void 0 !== n) return p + h + e.substring(t.startIndex, n) + ";" + } + } + return "" + } + async function p(e, t, n) { + let r = new Map, + i = -1; + try { + i = await n.mtime(e) + } catch { + return r + } + let s = a.get(e); + if (s && s.mtime === i) return s.exports; + if ("typescript" === t) { + let i = null; + try { + let s = (await n.readFile(e)).toString(); + i = await o.parseTree(t, s); + for (let e of o.queryExports(t, i.rootNode)) + for (let t of e.captures) { + let e = t.node; + if ("export_statement" === e.type) { + let t = e.childForFieldName("declaration"); + if (null == t ? void 0 : t.hasError()) continue; + let { + name: n, + decl: o + } = c(s, t); + if (n) { + o = l(s, e) + o; + let t = r.get(n); + t || (t = [], r.set(n, t)), t.push(o) + } + } + } + } catch {} finally { + i && i.delete() + } + } + if (a.size > 2e3) + for (let e of a.keys()) + if (a.delete(e), r.size <= 1e3) break; + return a.set(e, { + mtime: i, + exports: r + }), r + } + t.getDocComment = l; + const h = /^\s*import\s*(type|)\s*\{[^}]*\}\s*from\s*['"]\./gm; + t.extractLocalImportContext = async function(e, t) { + let { + source: n, + uri: r, + languageId: a + } = e; + return t && "typescript" === a ? async function(e, t, n) { + let r = "typescript", + a = []; + const c = function(e) { + let t, n = -1; + h.lastIndex = -1; + do { + t = h.exec(e), t && (n = h.lastIndex + t.length) + } while (t); + if (-1 === n) return -1; + const r = e.indexOf("\n", n); + return -1 !== r ? r : e.length + }(e); + if (-1 === c) return a; + e = e.substring(0, c); + let u = await o.parseTree(r, e); + try { + for (let e of function(e) { + let t = []; + for (let n of e.namedChildren) "import_statement" === n.type && t.push(n); + return t + }(u.rootNode)) { + let o = i(t, e); + if (!o) continue; + let c = s(e); + if (0 === c.length) continue; + let u = await p(o, r, n); + for (let e of c) u.has(e.name) && a.push(...u.get(e.name)) + } + } finally { + u.delete() + } + return a + }(n, r, t): [] + } + }, + 647: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getNeighborSnippets = void 0; + const r = n(417), + o = n(302), + i = { + none: { + windowLength: 1, + threshold: -1, + numberOfNeighbors: 0 + }, + conservative: { + windowLength: 10, + threshold: .3, + numberOfNeighbors: 1 + }, + medium: { + windowLength: 20, + threshold: .1, + numberOfNeighbors: 2 + }, + eager: { + windowLength: 60, + threshold: 0, + numberOfNeighbors: 4 + }, + eagerButLittle: { + windowLength: 10, + threshold: 0, + numberOfNeighbors: 1 + } + }; + + function s(e) { + return [e.relativePath ? "Compare this snippet from " + e.relativePath + ":" : "Compare this snippet:"].concat(e.snippet.split("\n")) + } + t.getNeighborSnippets = async function(e, t, n) { + const a = i[n], + c = { + uri: e.uri, + languageId: e.languageId, + source: e.source.slice(0, e.offset).split("\n").slice(-a.windowLength).join("\n") + }; + return t.filter((e => e.source.length < 1e4 && e.source.length > 0)).slice(0, 20).map((e => ({ + relativePath: e.relativePath, + ...o.findBestJaccardMatch(e, c, a.windowLength) + }))).filter((e => e.score && e.snippet && e.score > a.threshold)).sort(((e, t) => e.score - t.score)).slice(-a.numberOfNeighbors).map(s).map((t => t.map((t => r.comment(t, e.languageId) + "\n")).join(""))) + } + }, + 306: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getFunctionPositions = t.getFirstPrecedingComment = t.isFunctionDefinition = t.isFunction = t.getAncestorWithSiblingFunctions = t.queryPythonIsDocstring = t.queryGlobalVars = t.queryExports = t.queryImports = t.queryFunctions = t.getBlockCloseToken = t.parsesWithoutError = t.parseTree = t.getLanguage = t.languageIdToWasmLanguage = t.isSupportedLanguageId = t.WASMLanguage = void 0; + const r = n(622), + o = n(87), + i = n(87); + var s; + ! function(e) { + e.Python = "python", e.JavaScript = "javascript", e.TypeScript = "typescript", e.Go = "go", e.Ruby = "ruby" + }(s = t.WASMLanguage || (t.WASMLanguage = {})); + const a = { + python: s.Python, + javascript: s.JavaScript, + javascriptreact: s.JavaScript, + jsx: s.JavaScript, + typescript: s.TypeScript, + typescriptreact: s.TypeScript, + go: s.Go, + ruby: s.Ruby + }; + + function c(e) { + if (!(e in a)) throw new Error(`Unrecognized language: ${e}`); + return a[e] + } + t.isSupportedLanguageId = function(e) { + return e in a + }, t.languageIdToWasmLanguage = c; + const u = { + python: [ + ["(function_definition body: (block\n (expression_statement (string))? @docstring) @body) @function"], + ['(ERROR ("def" (identifier) (parameters))) @function'] + ], + javascript: [ + ["[\n (function body: (statement_block) @body)\n (function_declaration body: (statement_block) @body)\n (generator_function body: (statement_block) @body)\n (generator_function_declaration body: (statement_block) @body)\n (method_definition body: (statement_block) @body)\n ] @function"] + ], + typescript: [ + ["[\n (function body: (statement_block) @body)\n (function_declaration body: (statement_block) @body)\n (generator_function body: (statement_block) @body)\n (generator_function_declaration body: (statement_block) @body)\n (method_definition body: (statement_block) @body)\n ] @function"] + ], + go: [ + ["[\n (function_declaration body: (block) @body)\n (method_declaration body: (block) @body)\n ] @function"] + ], + ruby: [ + ['[\n (method name: (_) parameters: (method_parameters)? @params [(_)+ "end"] @body)\n (singleton_method name: (_) parameters: (method_parameters)? @params [(_)+ "end"] @body)\n ] @function'] + ] + }, + l = '(variable_declarator value: (call_expression function: ((identifier) @req (#eq? @req "require"))))', + d = `\n (lexical_declaration ${l}+)\n (variable_declaration ${l}+)\n`, + p = { + python: [ + ["(module (future_import_statement) @import)"], + ["(module (import_statement) @import)"], + ["(module (import_from_statement) @import)"] + ], + javascript: [ + [`(program [ ${d} ] @import)`], + ["(program [ (import_statement) ] @import)"] + ], + typescript: [ + [`(program [ ${d} ] @import)`], + ["(program [ (import_statement) (import_alias) ] @import)"] + ], + go: [], + ruby: [] + }, + h = { + python: [], + javascript: [ + ["(program (export_statement) @export)"] + ], + typescript: [ + ["(program (export_statement) @export)"] + ], + go: [], + ruby: [] + }, + m = { + python: [ + ["(module (global_statement) @globalVar)"], + ["(module (expression_statement) @globalVar)"] + ], + javascript: [], + typescript: [], + go: [], + ruby: [] + }, + f = { + python: new Set(["function_definition"]), + javascript: new Set(["function", "function_declaration", "generator_function", "generator_function_declaration", "method_definition", "arrow_function"]), + typescript: new Set(["function", "function_declaration", "generator_function", "generator_function_declaration", "method_definition", "arrow_function"]), + go: new Set(["function_declaration", "method_declaration"]), + ruby: new Set(["method", "singleton_method"]) + }, + g = { + python: e => { + var t; + return "module" === e.type || "block" === e.type && "class_definition" === (null === (t = e.parent) || void 0 === t ? void 0 : t.type) + }, + javascript: e => "program" === e.type || "class_body" === e.type, + typescript: e => "program" === e.type || "class_body" === e.type, + go: e => "source_file" === e.type, + ruby: e => "program" === e.type || "class" === e.type + }, + y = new Map; + async function _(e) { + const t = c(e); + if (!y.has(t)) { + const e = await async function(e) { + await o.init(); + const t = r.resolve(__dirname, "..", "dist", `tree-sitter-${e}.wasm`); + return i.Language.load(t) + }(t); + y.set(t, e) + } + return y.get(t) + } + async function v(e, t) { + let n = await _(e); + const r = new o; + r.setLanguage(n); + const i = r.parse(t); + return r.delete(), i + } + + function b(e, t) { + const n = []; + for (const r of e) { + if (!r[1]) { + const e = t.tree.getLanguage(); + r[1] = e.query(r[0]) + } + n.push(...r[1].matches(t)) + } + return n + } + + function k(e, t) { + return b(u[c(e)], t) + } + t.getLanguage = _, t.parseTree = v, t.parsesWithoutError = async function(e, t) { + const n = await v(e, t), + r = !n.rootNode.hasError(); + return n.delete(), r + }, t.getBlockCloseToken = function(e) { + switch (c(e)) { + case s.Python: + return null; + case s.JavaScript: + case s.TypeScript: + case s.Go: + return "}"; + case s.Ruby: + return "end" + } + }, t.queryFunctions = k, t.queryImports = function(e, t) { + return b(p[c(e)], t) + }, t.queryExports = function(e, t) { + return b(h[c(e)], t) + }, t.queryGlobalVars = function(e, t) { + return b(m[c(e)], t) + }; + const w = ["[\n (class_definition (block (expression_statement (string))))\n (function_definition (block (expression_statement (string))))\n]"]; + + function j(e, t) { + return f[c(e)].has(t.type) + } + t.queryPythonIsDocstring = function(e) { + return 1 == b([w], e).length + }, t.getAncestorWithSiblingFunctions = function(e, t) { + const n = g[c(e)]; + for (; t.parent;) { + if (n(t.parent)) return t; + t = t.parent + } + return t.parent ? t : null + }, t.isFunction = j, t.isFunctionDefinition = function(e, t) { + switch (c(e)) { + case s.Python: + case s.Go: + case s.Ruby: + return j(e, t); + case s.JavaScript: + case s.TypeScript: + if ("function_declaration" === t.type || "generator_function_declaration" === t.type || "method_definition" === t.type) return !0; + if ("lexical_declaration" === t.type || "variable_declaration" === t.type) { + if (t.namedChildCount > 1) return !1; + let n = t.namedChild(0); + if (null == n) return !1; + let r = n.namedChild(1); + return null !== r && j(e, r) + } + if ("expression_statement" === t.type) { + let n = t.namedChild(0); + if ("assignment_expression" === (null == n ? void 0 : n.type)) { + let t = n.namedChild(1); + return null !== t && j(e, t) + } + } + return !1 + } + }, t.getFirstPrecedingComment = function(e) { + var t; + let n = e; + for (; + "comment" === (null === (t = n.previousSibling) || void 0 === t ? void 0 : t.type);) { + let e = n.previousSibling; + if (e.endPosition.row < n.startPosition.row - 1) break; + n = e + } + return "comment" === (null == n ? void 0 : n.type) ? n : null + }, t.getFunctionPositions = async function(e, t) { + return k(e, (await v(e, t)).rootNode).map((e => { + const t = e.captures.find((e => "function" === e.name)).node; + return { + startIndex: t.startIndex, + endIndex: t.endIndex + } + })) + } + }, + 610: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getNodeStart = t.isBlockBodyFinished = t.isEmptyBlockStart = t.getBlockParser = void 0; + const r = n(306); + class o { + constructor(e, t, n) { + this.languageId = e, this.nodeMatch = t, this.nodeTypesWithBlockOrStmtChild = n + } + async getNodeMatchAtPosition(e, t, n) { + const o = await r.parseTree(this.languageId, e); + try { + let e = o.rootNode.descendantForIndex(t); + for (; e;) { + const t = this.nodeMatch[e.type]; + if (t) { + if (!this.nodeTypesWithBlockOrStmtChild.has(e.type)) break; + const n = this.nodeTypesWithBlockOrStmtChild.get(e.type), + r = "" == n ? e.namedChildren[0] : e.childForFieldName(n); + if ((null == r ? void 0 : r.type) == t) break + } + e = e.parent + } + if (!e) return; + return n(e) + } finally { + o.delete() + } + } + getNextBlockAtPosition(e, t, n) { + return this.getNodeMatchAtPosition(e, t, (e => { + let t = e.children.reverse().find((t => t.type == this.nodeMatch[e.type])); + if (t) { + if ("python" == this.languageId && t.parent) { + const e = ":" == t.parent.type ? t.parent.parent : t.parent; + let n = null == e ? void 0 : e.nextSibling; + for (; n && "comment" == n.type;) { + const r = n.startPosition.row == t.endPosition.row && n.startPosition.column >= t.endPosition.column, + o = n.startPosition.row > e.endPosition.row && n.startPosition.column > e.startPosition.column; + if (!r && !o) break; + t = n, n = n.nextSibling + } + } + if (!(t.endIndex >= t.tree.rootNode.endIndex - 1 && (t.hasError() || t.parent.hasError()))) return n(t) + } + })) + } + async isBlockBodyFinished(e, t, n) { + const r = (e + t).trimEnd(), + o = await this.getNextBlockAtPosition(r, n, (e => e.endIndex)); + if (void 0 !== o && o < r.length) { + const t = o - e.length; + return t > 0 ? t : void 0 + } + } + getNodeStart(e, t) { + const n = e.trimEnd(); + return this.getNodeMatchAtPosition(n, t, (e => e.startIndex)) + } + } + class i extends o { + constructor(e, t, n, r, o) { + super(e, r, o), this.blockEmptyMatch = t, this.lineMatch = n + } + isBlockStart(e) { + return this.lineMatch.test(e.trimStart()) + } + async isBlockBodyEmpty(e, t) { + const n = await this.getNextBlockAtPosition(e, t, (n => { + n.startIndex < t && (t = n.startIndex); + let r = e.substring(t, n.endIndex).trim(); + return "" == r || r.replace(/\s/g, "") == this.blockEmptyMatch + })); + return void 0 === n || n + } + async isEmptyBlockStart(e, t) { + return t = s(e, t), this.isBlockStart(function(e, t) { + const n = e.lastIndexOf("\n", t - 1); + let r = e.indexOf("\n", t); + return r < 0 && (r = e.length), e.slice(n + 1, r) + }(e, t)) && this.isBlockBodyEmpty(e, t) + } + } + + function s(e, t) { + let n = t; + for (; n > 0 && /\s/.test(e.charAt(n - 1));) n--; + return n + } + + function a(e, t) { + const n = e.startIndex, + r = e.startIndex - e.startPosition.column, + o = t.substring(r, n); + if (/^\s*$/.test(o)) return o + } + + function c(e, t, n) { + if (t.startPosition.row <= e.startPosition.row) return !1; + const r = a(e, n), + o = a(t, n); + return void 0 !== r && void 0 !== o && r.startsWith(o) + } + class u extends o { + constructor(e, t, n, r, o, i, s) { + super(e, t, n), this.startKeywords = r, this.blockNodeType = o, this.emptyStatementType = i, this.curlyBraceLanguage = s + } + isBlockEmpty(e, t) { + var n, o; + let i = e.text.trim(); + return this.curlyBraceLanguage && (i.startsWith("{") && (i = i.slice(1)), i.endsWith("}") && (i = i.slice(0, -1)), i = i.trim()), 0 == i.length || !("python" != this.languageId || "class_definition" != (null === (n = e.parent) || void 0 === n ? void 0 : n.type) && "function_definition" != (null === (o = e.parent) || void 0 === o ? void 0 : o.type) || 1 != e.children.length || !r.queryPythonIsDocstring(e.parent)) + } + async isEmptyBlockStart(e, t) { + var n, o, i; + if (t > e.length) throw new RangeError("Invalid offset"); + for (let n = t; n < e.length && "\n" != e.charAt(n); n++) + if (/\S/.test(e.charAt(n))) return !1; + t = s(e, t); + const a = await r.parseTree(this.languageId, e); + try { + const r = a.rootNode.descendantForIndex(t - 1); + if (null == r) return !1; + if (this.curlyBraceLanguage && "}" == r.type) return !1; + if (("javascript" == this.languageId || "typescript" == this.languageId) && r.parent && "object" == r.parent.type && "{" == r.parent.text.trim()) return !0; + if ("typescript" == this.languageId) { + let n = r; + for (; n.parent;) { + if ("function_signature" == n.type || "method_signature" == n.type) { + const o = r.nextSibling; + return !!(o && n.hasError() && c(n, o, e)) || !n.children.find((e => ";" == e.type)) && n.endIndex <= t + } + n = n.parent + } + } + let s = null, + u = null, + l = null, + d = r; + for (; null != d;) { + if (d.type == this.blockNodeType) { + u = d; + break + } + if (this.nodeMatch[d.type]) { + l = d; + break + } + if ("ERROR" == d.type) { + s = d; + break + } + d = d.parent + } + if (null != u) { + if (!u.parent || !this.nodeMatch[u.parent.type]) return !1; + if ("python" == this.languageId) { + const e = u.previousSibling; + if (null != e && e.hasError() && (e.text.startsWith('"""') || e.text.startsWith("'''"))) return !0 + } + return this.isBlockEmpty(u, t) + } + if (null != s) { + if ("module" == (null === (n = s.previousSibling) || void 0 === n ? void 0 : n.type) || "internal_module" == (null === (o = s.previousSibling) || void 0 === o ? void 0 : o.type)) return !0; + const e = [...s.children].reverse(), + a = e.find((e => this.startKeywords.includes(e.type))); + let c = e.find((e => e.type == this.blockNodeType)); + if (a) { + switch (this.languageId) { + case "python": { + "try" == a.type && "identifier" == r.type && r.text.length > 4 && (c = null === (i = e.find((e => e.hasError()))) || void 0 === i ? void 0 : i.children.find((e => "block" == e.type))); + const t = e.find((e => ":" == e.type)); + if (t && a.endIndex <= t.startIndex && t.nextSibling) { + if ("def" == a.type) { + const e = t.nextSibling; + if ('"' == e.type || "'" == e.type) return !0; + if ("ERROR" == e.type && ('"""' == e.text || "'''" == e.text)) return !0 + } + return !1 + } + break + } + case "javascript": { + const t = e.find((e => "formal_parameters" == e.type)); + if ("class" == a.type && t) return !0; + const n = e.find((e => "{" == e.type)); + if (n && n.startIndex > a.endIndex && null != n.nextSibling) return !1; + if (e.find((e => "do" == e.type)) && "while" == a.type) return !1; + if ("=>" == a.type && a.nextSibling && "{" != a.nextSibling.type) return !1; + break + } + case "typescript": { + const t = e.find((e => "{" == e.type)); + if (t && t.startIndex > a.endIndex && null != t.nextSibling) return !1; + if (e.find((e => "do" == e.type)) && "while" == a.type) return !1; + if ("=>" == a.type && a.nextSibling && "{" != a.nextSibling.type) return !1; + break + } + } + return !(c && c.startIndex > a.endIndex) || this.isBlockEmpty(c, t) + } + } + if (null != l) { + const e = this.nodeMatch[l.type], + n = l.children.slice().reverse().find((t => t.type == e)); + if (n) return this.isBlockEmpty(n, t); + if (this.nodeTypesWithBlockOrStmtChild.has(l.type)) { + const e = this.nodeTypesWithBlockOrStmtChild.get(l.type), + t = "" == e ? l.children[0] : l.childForFieldName(e); + if (t && t.type != this.blockNodeType && t.type != this.emptyStatementType) return !1 + } + return !0 + } + return !1 + } finally { + a.delete() + } + } + } + const l = { + python: new u("python", { + class_definition: "block", + elif_clause: "block", + else_clause: "block", + except_clause: "block", + finally_clause: "block", + for_statement: "block", + function_definition: "block", + if_statement: "block", + try_statement: "block", + while_statement: "block", + with_statement: "block" + }, new Map, ["def", "class", "if", "elif", "else", "for", "while", "try", "except", "finally", "with"], "block", null, !1), + javascript: new u("javascript", { + arrow_function: "statement_block", + catch_clause: "statement_block", + do_statement: "statement_block", + else_clause: "statement_block", + finally_clause: "statement_block", + for_in_statement: "statement_block", + for_statement: "statement_block", + function: "statement_block", + function_declaration: "statement_block", + generator_function: "statement_block", + generator_function_declaration: "statement_block", + if_statement: "statement_block", + method_definition: "statement_block", + try_statement: "statement_block", + while_statement: "statement_block", + with_statement: "statement_block", + class: "class_body", + class_declaration: "class_body" + }, new Map([ + ["arrow_function", "body"], + ["do_statement", "body"], + ["else_clause", ""], + ["for_in_statement", "body"], + ["for_statement", "body"], + ["if_statement", "consequence"], + ["while_statement", "body"], + ["with_statement", "body"] + ]), ["=>", "try", "catch", "finally", "do", "for", "if", "else", "while", "with", "function", "function*", "class"], "statement_block", "empty_statement", !0), + typescript: new u("typescript", { + ambient_declaration: "statement_block", + arrow_function: "statement_block", + catch_clause: "statement_block", + do_statement: "statement_block", + else_clause: "statement_block", + finally_clause: "statement_block", + for_in_statement: "statement_block", + for_statement: "statement_block", + function: "statement_block", + function_declaration: "statement_block", + generator_function: "statement_block", + generator_function_declaration: "statement_block", + if_statement: "statement_block", + internal_module: "statement_block", + method_definition: "statement_block", + module: "statement_block", + try_statement: "statement_block", + while_statement: "statement_block", + abstract_class_declaration: "class_body", + class: "class_body", + class_declaration: "class_body" + }, new Map([ + ["arrow_function", "body"], + ["do_statement", "body"], + ["else_clause", ""], + ["for_in_statement", "body"], + ["for_statement", "body"], + ["if_statement", "consequence"], + ["while_statement", "body"], + ["with_statement", "body"] + ]), ["declare", "=>", "try", "catch", "finally", "do", "for", "if", "else", "while", "with", "function", "function*", "class"], "statement_block", "empty_statement", !0), + go: new i("go", "{}", /\b(func|if|else|for)\b/, { + communication_case: "block", + default_case: "block", + expression_case: "block", + for_statement: "block", + func_literal: "block", + function_declaration: "block", + if_statement: "block", + labeled_statement: "block", + method_declaration: "block", + type_case: "block" + }, new Map), + ruby: new i("ruby", "end", /\b(BEGIN|END|case|class|def|do|else|elsif|for|if|module|unless|until|while)\b|->/, { + begin_block: "}", + block: "}", + end_block: "}", + lambda: "block", + for: "do", + until: "do", + while: "do", + case: "end", + do: "end", + if: "end", + method: "end", + module: "end", + unless: "end", + do_block: "end" + }, new Map) + }; + + function d(e) { + return l[r.languageIdToWasmLanguage(e)] + } + t.getBlockParser = d, t.isEmptyBlockStart = async function(e, t, n) { + return !!r.isSupportedLanguageId(e) && d(e).isEmptyBlockStart(t, n) + }, t.isBlockBodyFinished = async function(e, t, n, o) { + if (r.isSupportedLanguageId(e)) return d(e).isBlockBodyFinished(t, n, o) + }, t.getNodeStart = async function(e, t, n) { + if (r.isSupportedLanguageId(e)) return d(e).getNodeStart(t, n) + } + }, + 312: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getPrompt = t.newLineEnded = t.normalizeLanguageId = t.PromptOptions = t.SuffixOption = t.LineEndingOptions = t.LocalImportContextOption = t.NeighboringTabsOption = t.SiblingOption = t.PathMarkerOption = t.LanguageMarkerOption = t.TOKENS_RESERVED_FOR_SUFFIX_ENCODING = t.MAX_PROMPT_LENGTH = void 0; + const r = n(94), + o = n(417), + i = n(179), + s = n(647), + a = n(670), + c = n(94), + u = n(456); + var l, d, p, h, m, f, g; + t.MAX_PROMPT_LENGTH = 1500, t.TOKENS_RESERVED_FOR_SUFFIX_ENCODING = 5, + function(e) { + e.NoMarker = "nomarker", e.Top = "top", e.Always = "always" + }(l = t.LanguageMarkerOption || (t.LanguageMarkerOption = {})), + function(e) { + e.NoMarker = "nomarker", e.Top = "top", e.Always = "always" + }(d = t.PathMarkerOption || (t.PathMarkerOption = {})), + function(e) { + e.NoSiblings = "nosiblings", e.SiblingsOverContext = "siblingabove", e.ContextOverSiblings = "contextabove" + }(p = t.SiblingOption || (t.SiblingOption = {})), + function(e) { + e.None = "none", e.Conservative = "conservative", e.Medium = "medium", e.Eager = "eager", e.EagerButLittle = "eagerButLittle" + }(h = t.NeighboringTabsOption || (t.NeighboringTabsOption = {})), + function(e) { + e.NoContext = "nocontext", e.Declarations = "declarations" + }(m = t.LocalImportContextOption || (t.LocalImportContextOption = {})), + function(e) { + e.ConvertToUnix = "unix", e.KeepOriginal = "keep" + }(f = t.LineEndingOptions || (t.LineEndingOptions = {})), (g = t.SuffixOption || (t.SuffixOption = {})).None = "none", g.FifteenPercent = "fifteenPercent"; + class y { + constructor(e, n) { + if (this.fs = e, this.maxPromptLength = t.MAX_PROMPT_LENGTH, this.languageMarker = l.Top, this.pathMarker = d.Top, this.includeSiblingFunctions = p.ContextOverSiblings, this.localImportContext = m.Declarations, this.neighboringTabs = h.Eager, this.lineEnding = f.ConvertToUnix, this.suffixPercent = 0, n) + for (const e in n) this[e] = n[e]; + if (this.suffixPercent < 0 || this.suffixPercent > 100) throw new Error(`suffixPercent must be between 0 and 100, but was ${this.suffixPercent}`); + if (this.suffixPercent > 0 && this.includeSiblingFunctions != p.NoSiblings) throw new Error(`Invalid option combination. Cannot set suffixPercent > 0 (${this.suffixPercent}) and includeSiblingFunctions ${this.includeSiblingFunctions}`) + } + } + t.PromptOptions = y; + const _ = { + javascriptreact: "javascript", + jsx: "javascript", + typescriptreact: "typescript", + jade: "pug", + cshtml: "razor" + }; + + function v(e) { + var t; + return e = e.toLowerCase(), null !== (t = _[e]) && void 0 !== t ? t : e + } + + function b(e) { + return "" == e || e.endsWith("\n") ? e : e + "\n" + } + t.normalizeLanguageId = v, t.newLineEnded = b, t.getPrompt = async function(e, n, f = {}, g = []) { + const _ = new y(e, f), + { + source: k, + offset: w + } = n; + if (w < 0 || w > k.length) throw new Error(`Offset ${w} is out of range.`); + n.languageId = v(n.languageId); + const j = new u.Priorities, + x = j.justBelow(u.Priorities.TOP), + E = _.pathMarker == d.Always ? j.justBelow(u.Priorities.TOP) : j.justBelow(x), + C = _.languageMarker == l.Always ? j.justBelow(u.Priorities.TOP) : j.justBelow(x), + S = _.includeSiblingFunctions == p.ContextOverSiblings ? j.justBelow(x) : j.justAbove(x), + T = j.justBelow(x, S), + P = j.justBelow(T), + I = new u.PromptWishlist(_.lineEnding); + let R, O; + if (_.languageMarker != l.NoMarker) { + const e = b(o.getLanguageMarker(n)); + R = I.append(e, u.PromptElementKind.LanguageMarker, C) + } + if (_.pathMarker != d.NoMarker) { + const e = b(o.getPathMarker(n)); + O = I.append(e, u.PromptElementKind.PathMarker, E) + } + if (_.localImportContext != m.NoContext) + for (const e of await i.extractLocalImportContext(n, _.fs)) I.append(b(e), u.PromptElementKind.ImportedFile, T); + _.neighboringTabs != h.None && g.length > 0 && (await s.getNeighborSnippets(n, g, _.neighboringTabs)).forEach((e => I.append(e, u.PromptElementKind.SimilarFile, P))); + let A = []; + if (_.includeSiblingFunctions == p.NoSiblings) A = I.appendLineForLine(k.substring(0, w), u.PromptElementKind.BeforeCursor, x); + else { + const { + siblings: e, + beforeInsertion: t, + afterInsertion: r + } = await a.getSiblingFunctions(n); + I.appendLineForLine(t, u.PromptElementKind.BeforeCursor, x); + let o = S; + e.forEach((e => { + I.append(e, u.PromptElementKind.AfterCursor, o), o = j.justBelow(o) + })), A = I.appendLineForLine(r, u.PromptElementKind.BeforeCursor, x) + } + if (l.Top == _.languageMarker && A.length > 0 && void 0 !== R && I.require(R, A[0]), d.Top == _.pathMarker && A.length > 0 && void 0 !== O && (R ? I.require(O, R) : I.require(O, A[0])), 0 == _.suffixPercent) return I.fulfill(_.maxPromptLength); { + const e = _.maxPromptLength - t.TOKENS_RESERVED_FOR_SUFFIX_ENCODING; + let o = Math.floor(e * (100 - _.suffixPercent) / 100), + i = I.fulfill(o); + const s = e - i.prefixLength, + a = r.takeFirstTokens(k.slice(n.offset), s), + u = c.tokenLength(a); + return u <= s - 3 && (o += s - u, i = I.fulfill(o)), i.suffix = a, i.suffixLength = u, i + } + } + }, + 302: (e, t) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.splitIntoWords = t.findBestJaccardMatch = void 0; + const n = new class { + constructor(e) { + this.keys = [], this.cache = {}, this.size = e + } + put(e, t) { + var n; + if (this.cache[e] = t, this.keys.length > this.size) { + this.keys.push(e); + const t = null !== (n = this.keys.shift()) && void 0 !== n ? n : ""; + delete this.cache[t] + } + } + get(e) { + return this.cache[e] + } + }(20); + + function r(e, t) { + const n = new Set; + return e.forEach((e => { + t.has(e) && n.add(e) + })), n.size / (e.size + t.size - n.size) + } + + function o(e) { + return e.split(/[^a-zA-Z0-9]/).filter((e => e.length > 0)) + } + t.findBestJaccardMatch = function(e, t, i) { + var c, u; + if (0 === e.source.length || 0 === t.source.length) return; + const l = null !== (c = a.get(t.languageId)) && void 0 !== c ? c : s, + d = new Set(o(t.source).filter((e => !l.has(e)))), + p = e.source.split("\n"), + h = i.toString() + ":" + e.source, + m = null !== (u = n.get(h)) && void 0 !== u ? u : [], + f = 0 == m.length, + g = f ? p.map((e => new Set(o(e).filter((e => !l.has(e)))))) : []; + let y = -1, + _ = 0; + for (let e = 0; 0 == e || e < p.length - i; e++) { + const t = Math.min(e + i, p.length); + if (f) { + const n = new Set; + g.slice(e, t).forEach((e => e.forEach(n.add, n))), m.push(n) + } + const n = r(m[e], d); + n > _ && (_ = n, y = e) + } + if (f && n.put(h, m), -1 !== y) { + const e = y, + t = Math.min(e + i, p.length); + return { + snippet: p.slice(e, t).join("\n"), + score: _ + } + } + }, t.splitIntoWords = o; + const i = new Set(["we", "our", "you", "it", "its", "they", "them", "their", "this", "that", "these", "those", "is", "are", "was", "were", "be", "been", "being", "have", "has", "had", "having", "do", "does", "did", "doing", "can", "don", "t", "s", "will", "would", "should", "what", "which", "who", "when", "where", "why", "how", "a", "an", "the", "and", "or", "not", "no", "but", "because", "as", "until", "again", "further", "then", "once", "here", "there", "all", "any", "both", "each", "few", "more", "most", "other", "some", "such", "above", "below", "to", "during", "before", "after", "of", "at", "by", "about", "between", "into", "through", "from", "up", "down", "in", "out", "on", "off", "over", "under", "only", "own", "same", "so", "than", "too", "very", "just", "now"]), + s = new Set(["if", "then", "else", "for", "while", "with", "def", "function", "return", "TODO", "import", "try", "catch", "raise", "finally", "repeat", "switch", "case", "match", "assert", "continue", "break", "const", "class", "enum", "struct", "static", "new", "super", "this", "var", ...i]), + a = new Map([]) + }, + 670: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.getSiblingFunctions = void 0; + const r = n(312), + o = n(306); + t.getSiblingFunctions = async function({ + source: e, + offset: t, + languageId: n + }) { + var i, s; + const a = []; + let c = "", + u = e.substring(0, t); + if (o.isSupportedLanguageId(n)) { + const l = await o.parseTree(n, e); + try { + let d = t; + for (; d >= 0 && /\s/.test(e[d]);) d--; + const p = l.rootNode.descendantForIndex(d), + h = o.getAncestorWithSiblingFunctions(n, p); + if (h) { + const l = o.getFirstPrecedingComment(h), + d = null !== (i = null == l ? void 0 : l.startIndex) && void 0 !== i ? i : h.startIndex; + let p, m = 0; + for (; + " " == (p = e[d - m - 1]) || "\t" == p;) m++; + const f = e.substring(d - m, d); + for (let i = h.nextSibling; i; i = i.nextSibling) + if (o.isFunctionDefinition(n, i)) { + const n = o.getFirstPrecedingComment(i), + c = null !== (s = null == n ? void 0 : n.startIndex) && void 0 !== s ? s : i.startIndex; + if (c < t) continue; + const u = e.substring(c, i.endIndex), + l = r.newLineEnded(u) + "\n" + f; + a.push(l) + } c = e.substring(0, d), u = e.substring(d, t) + } + } finally { + l.delete() + } + } + return { + siblings: a, + beforeInsertion: c, + afterInsertion: u + } + } + }, + 456: (e, t, n) => { + "use strict"; + Object.defineProperty(t, "__esModule", { + value: !0 + }), t.Priorities = t.PromptWishlist = t.PromptChoices = t.PromptElementKind = void 0; + const r = n(312), + o = n(94); + var i; + (i = t.PromptElementKind || (t.PromptElementKind = {})).BeforeCursor = "BeforeCursor", i.AfterCursor = "AfterCursor", i.SimilarFile = "SimilarFile", i.ImportedFile = "ImportedFile", i.LanguageMarker = "LanguageMarker", i.PathMarker = "PathMarker"; + class s { + constructor() { + this.used = new Map, this.unused = new Map + } + markUsed(e) { + this.used.set(e.kind, (this.used.get(e.kind) || 0) + e.tokens) + } + undoMarkUsed(e) { + this.used.set(e.kind, (this.used.get(e.kind) || 0) - e.tokens) + } + markUnused(e) { + this.unused.set(e.kind, (this.used.get(e.kind) || 0) + e.tokens) + } + } + t.PromptChoices = s, t.PromptWishlist = class { + constructor(e) { + this.content = [], this.lineEndingOption = e + } + getContent() { + return [...this.content] + } + convertLineEndings(e) { + return this.lineEndingOption === r.LineEndingOptions.ConvertToUnix && (e = e.replace(/\r\n/g, "\n").replace(/\r/g, "\n")), e + } + append(e, t, n, r = o.tokenLength(e)) { + e = this.convertLineEndings(e); + const i = this.content.length; + return this.content.push({ + id: i, + text: e, + kind: t, + priority: n, + tokens: r, + requires: [], + excludes: [] + }), i + } + appendLineForLine(e, t, n) { + const r = (e = this.convertLineEndings(e)).split("\n"); + for (let e = 0; e < r.length - 1; e++) r[e] += "\n"; + const o = []; + r.forEach(((e, t) => { + "\n" === e && o.length > 0 && !o[o.length - 1].endsWith("\n\n") ? o[o.length - 1] += "\n" : o.push(e) + })); + const i = []; + return o.forEach(((e, r) => { + "" !== e && (i.push(this.append(e, t, n)), r > 0 && (this.content[this.content.length - 2].requires = [this.content[this.content.length - 1]])) + })), i + } + require(e, t) { + const n = this.content.find((t => t.id === e)), + r = this.content.find((e => e.id === t)); + n && r && n.requires.push(r) + } + exclude(e, t) { + const n = this.content.find((t => t.id === e)), + r = this.content.find((e => e.id === t)); + n && r && n.excludes.push(r) + } + fulfill(e) { + const t = new s, + n = this.content.map(((e, t) => ({ + element: e, + index: t + }))); + n.sort(((e, t) => e.element.priority === t.element.priority ? t.index - e.index : t.element.priority - e.element.priority)); + const r = new Set, + i = new Set; + let a; + const c = []; + let u = e; + n.forEach((e => { + var n; + const o = e.element, + s = e.index; + if (u >= 0 && (u > 0 || void 0 === a) && o.requires.every((e => r.has(e.id))) && !i.has(o.id)) { + let l = o.tokens; + const d = null === (n = function(e, t) { + let n, r = 1 / 0; + for (const o of e) o.index > t && o.index < r && (n = o, r = o.index); + return n + }(c, s)) || void 0 === n ? void 0 : n.element; + o.text.endsWith("\n\n") && d && !d.text.match(/^\s/) && l++, u >= l ? (u -= l, r.add(o.id), o.excludes.forEach((e => i.add(e.id))), t.markUsed(o), c.push(e)) : a = null != a ? a : e + } else t.markUnused(o) + })), c.sort(((e, t) => e.index - t.index)); + let l = c.reduce(((e, t) => e + t.element.text), ""), + d = o.tokenLength(l); + for (; d > e;) { + c.sort(((e, t) => t.element.priority === e.element.priority ? t.index - e.index : t.element.priority - e.element.priority)); + const e = c.pop(); + e && (t.undoMarkUsed(e.element), t.markUnused(e.element), a = void 0), c.sort(((e, t) => e.index - t.index)), l = c.reduce(((e, t) => e + t.element.text), ""), d = o.tokenLength(l) + } + const p = [...c]; + if (void 0 !== a) { + p.push(a), p.sort(((e, t) => e.index - t.index)); + const n = p.reduce(((e, t) => e + t.element.text), ""), + r = o.tokenLength(n); + if (r <= e) return t.markUsed(a.element), { + prefix: n, + suffix: "", + prefixLength: r, + suffixLength: 0, + promptChoices: t + }; + t.markUnused(a.element) + } + return { + prefix: l, + suffix: "", + prefixLength: d, + suffixLength: 0, + promptChoices: t + } + } + }; + class a { + constructor() { + this.registeredPriorities = [0, 1] + } + register(e) { + if (e > a.TOP || e < a.BOTTOM) throw new Error("Priority must be between 0 and 1"); + return this.registeredPriorities.push(e), e + } + justAbove(...e) { + const t = Math.max(...e), + n = Math.min(...this.registeredPriorities.filter((e => e > t))); + return this.register((n + t) / 2) + } + justBelow(...e) { + const t = Math.min(...e), + n = Math.max(...this.registeredPriorities.filter((e => e < t))); + return this.register((n + t) / 2) + } + between(e, t) { + if (this.registeredPriorities.some((n => n > e && n < t)) || !this.registeredPriorities.includes(e) || !this.registeredPriorities.includes(t)) throw new Error("Priorities must be adjacent in the list of priorities"); + return this.register((e + t) / 2) + } + } + t.Priorities = a, a.TOP = 1, a.BOTTOM = 0 + }, + 87: (e, t, n) => { + var r, o, i = void 0 !== i ? i : {}; + void 0 === (o = "function" == typeof(r = function() { + var t, r = {}; + for (t in i) i.hasOwnProperty(t) && (r[t] = i[t]); + var o, s, a = [], + c = "./this.program", + u = function(e, t) { + throw t + }, + l = !1, + d = !1; + l = "object" == typeof window, d = "function" == typeof importScripts, o = "object" == typeof process && "object" == typeof process.versions && "string" == typeof process.versions.node, s = !l && !o && !d; + var p, h, m, f, g, y = ""; + o ? (y = d ? n(622).dirname(y) + "/" : __dirname + "/", p = function(e, t) { + return f || (f = n(747)), g || (g = n(622)), e = g.normalize(e), f.readFileSync(e, t ? null : "utf8") + }, m = function(e) { + var t = p(e, !0); + return t.buffer || (t = new Uint8Array(t)), R(t.buffer), t + }, process.argv.length > 1 && (c = process.argv[1].replace(/\\/g, "/")), a = process.argv.slice(2), e.exports = i, u = function(e) { + process.exit(e) + }, i.inspect = function() { + return "[Emscripten Module object]" + }) : s ? ("undefined" != typeof read && (p = function(e) { + return read(e) + }), m = function(e) { + var t; + return "function" == typeof readbuffer ? new Uint8Array(readbuffer(e)) : (R("object" == typeof(t = read(e, "binary"))), t) + }, "undefined" != typeof scriptArgs ? a = scriptArgs : void 0 !== arguments && (a = arguments), "function" == typeof quit && (u = function(e) { + quit(e) + }), "undefined" != typeof print && ("undefined" == typeof console && (console = {}), console.log = print, console.warn = console.error = "undefined" != typeof printErr ? printErr : print)) : (l || d) && (d ? y = self.location.href : "undefined" != typeof document && document.currentScript && (y = document.currentScript.src), y = 0 !== y.indexOf("blob:") ? y.substr(0, y.lastIndexOf("/") + 1) : "", p = function(e) { + var t = new XMLHttpRequest; + return t.open("GET", e, !1), t.send(null), t.responseText + }, d && (m = function(e) { + var t = new XMLHttpRequest; + return t.open("GET", e, !1), t.responseType = "arraybuffer", t.send(null), new Uint8Array(t.response) + }), h = function(e, t, n) { + var r = new XMLHttpRequest; + r.open("GET", e, !0), r.responseType = "arraybuffer", r.onload = function() { + 200 == r.status || 0 == r.status && r.response ? t(r.response) : n() + }, r.onerror = n, r.send(null) + }), i.print || console.log.bind(console); + var _ = i.printErr || console.warn.bind(console); + for (t in r) r.hasOwnProperty(t) && (i[t] = r[t]); + r = null, i.arguments && (a = i.arguments), i.thisProgram && (c = i.thisProgram), i.quit && (u = i.quit); + var v, b = 16, + k = []; + + function w(e, t) { + if (!v) { + v = new WeakMap; + for (var n = 0; n < J.length; n++) { + var r = J.get(n); + r && v.set(r, n) + } + } + if (v.has(e)) return v.get(e); + var o = function() { + if (k.length) return k.pop(); + try { + J.grow(1) + } catch (e) { + if (!(e instanceof RangeError)) throw e; + throw "Unable to grow wasm table. Set ALLOW_TABLE_GROWTH." + } + return J.length - 1 + }(); + try { + J.set(o, e) + } catch (n) { + if (!(n instanceof TypeError)) throw n; + var i = function(e, t) { + if ("function" == typeof WebAssembly.Function) { + for (var n = { + i: "i32", + j: "i64", + f: "f32", + d: "f64" + }, r = { + parameters: [], + results: "v" == t[0] ? [] : [n[t[0]]] + }, o = 1; o < t.length; ++o) r.parameters.push(n[t[o]]); + return new WebAssembly.Function(r, e) + } + var i = [1, 0, 1, 96], + s = t.slice(0, 1), + a = t.slice(1), + c = { + i: 127, + j: 126, + f: 125, + d: 124 + }; + for (i.push(a.length), o = 0; o < a.length; ++o) i.push(c[a[o]]); + "v" == s ? i.push(0) : i = i.concat([1, c[s]]), i[1] = i.length - 2; + var u = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0].concat(i, [2, 7, 1, 1, 101, 1, 102, 0, 0, 7, 5, 1, 1, 102, 0, 0])), + l = new WebAssembly.Module(u); + return new WebAssembly.Instance(l, { + e: { + f: e + } + }).exports.f + }(e, t); + J.set(o, i) + } + return v.set(e, o), o + } + var j, x = function(e) {}, + E = i.dynamicLibraries || []; + i.wasmBinary && (j = i.wasmBinary); + var C, S = i.noExitRuntime || !0; + + function T(e, t, n, r) { + switch ("*" === (n = n || "i8").charAt(n.length - 1) && (n = "i32"), n) { + case "i1": + case "i8": + A[e >> 0] = t; + break; + case "i16": + D[e >> 1] = t; + break; + case "i32": + M[e >> 2] = t; + break; + case "i64": + pe = [t >>> 0, (de = t, +Math.abs(de) >= 1 ? de > 0 ? (0 | Math.min(+Math.floor(de / 4294967296), 4294967295)) >>> 0 : ~~+Math.ceil((de - +(~~de >>> 0)) / 4294967296) >>> 0 : 0)], M[e >> 2] = pe[0], M[e + 4 >> 2] = pe[1]; + break; + case "float": + q[e >> 2] = t; + break; + case "double": + L[e >> 3] = t; + break; + default: + se("invalid type for setValue: " + n) + } + } + + function P(e, t, n) { + switch ("*" === (t = t || "i8").charAt(t.length - 1) && (t = "i32"), t) { + case "i1": + case "i8": + return A[e >> 0]; + case "i16": + return D[e >> 1]; + case "i32": + case "i64": + return M[e >> 2]; + case "float": + return q[e >> 2]; + case "double": + return L[e >> 3]; + default: + se("invalid type for getValue: " + t) + } + return null + } + "object" != typeof WebAssembly && se("no native wasm support detected"); + var I = !1; + + function R(e, t) { + e || se("Assertion failed: " + t) + } + var O, A, N, D, M, q, L, $ = 1, + F = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0; + + function z(e, t, n) { + for (var r = t + n, o = t; e[o] && !(o >= r);) ++o; + if (o - t > 16 && e.subarray && F) return F.decode(e.subarray(t, o)); + for (var i = ""; t < o;) { + var s = e[t++]; + if (128 & s) { + var a = 63 & e[t++]; + if (192 != (224 & s)) { + var c = 63 & e[t++]; + if ((s = 224 == (240 & s) ? (15 & s) << 12 | a << 6 | c : (7 & s) << 18 | a << 12 | c << 6 | 63 & e[t++]) < 65536) i += String.fromCharCode(s); + else { + var u = s - 65536; + i += String.fromCharCode(55296 | u >> 10, 56320 | 1023 & u) + } + } else i += String.fromCharCode((31 & s) << 6 | a) + } else i += String.fromCharCode(s) + } + return i + } + + function B(e, t) { + return e ? z(N, e, t) : "" + } + + function U(e, t, n, r) { + if (!(r > 0)) return 0; + for (var o = n, i = n + r - 1, s = 0; s < e.length; ++s) { + var a = e.charCodeAt(s); + if (a >= 55296 && a <= 57343 && (a = 65536 + ((1023 & a) << 10) | 1023 & e.charCodeAt(++s)), a <= 127) { + if (n >= i) break; + t[n++] = a + } else if (a <= 2047) { + if (n + 1 >= i) break; + t[n++] = 192 | a >> 6, t[n++] = 128 | 63 & a + } else if (a <= 65535) { + if (n + 2 >= i) break; + t[n++] = 224 | a >> 12, t[n++] = 128 | a >> 6 & 63, t[n++] = 128 | 63 & a + } else { + if (n + 3 >= i) break; + t[n++] = 240 | a >> 18, t[n++] = 128 | a >> 12 & 63, t[n++] = 128 | a >> 6 & 63, t[n++] = 128 | 63 & a + } + } + return t[n] = 0, n - o + } + + function H(e, t, n) { + return U(e, N, t, n) + } + + function W(e) { + for (var t = 0, n = 0; n < e.length; ++n) { + var r = e.charCodeAt(n); + r >= 55296 && r <= 57343 && (r = 65536 + ((1023 & r) << 10) | 1023 & e.charCodeAt(++n)), r <= 127 ? ++t : t += r <= 2047 ? 2 : r <= 65535 ? 3 : 4 + } + return t + } + + function G(e) { + var t = W(e) + 1, + n = Ge(t); + return U(e, A, n, t), n + } + + function V(e) { + O = e, i.HEAP8 = A = new Int8Array(e), i.HEAP16 = D = new Int16Array(e), i.HEAP32 = M = new Int32Array(e), i.HEAPU8 = N = new Uint8Array(e), i.HEAPU16 = new Uint16Array(e), i.HEAPU32 = new Uint32Array(e), i.HEAPF32 = q = new Float32Array(e), i.HEAPF64 = L = new Float64Array(e) + } + var K = i.INITIAL_MEMORY || 33554432; + (C = i.wasmMemory ? i.wasmMemory : new WebAssembly.Memory({ + initial: K / 65536, + maximum: 32768 + })) && (O = C.buffer), K = O.byteLength, V(O); + var J = new WebAssembly.Table({ + initial: 13, + element: "anyfunc" + }), + X = [], + Y = [], + Q = [], + Z = [], + ee = !1, + te = 0, + ne = null, + re = null; + + function oe(e) { + te++, i.monitorRunDependencies && i.monitorRunDependencies(te) + } + + function ie(e) { + if (te--, i.monitorRunDependencies && i.monitorRunDependencies(te), 0 == te && (null !== ne && (clearInterval(ne), ne = null), re)) { + var t = re; + re = null, t() + } + } + + function se(e) { + throw i.onAbort && i.onAbort(e), _(e += ""), I = !0, e = "abort(" + e + "). Build with -s ASSERTIONS=1 for more info.", new WebAssembly.RuntimeError(e) + } + i.preloadedImages = {}, i.preloadedAudios = {}, i.preloadedWasm = {}; + var ae = "data:application/octet-stream;base64,"; + + function ce(e) { + return e.startsWith(ae) + } + + function ue(e) { + return e.startsWith("file://") + } + var le, de, pe, he = "tree-sitter.wasm"; + + function me(e) { + try { + if (e == he && j) return new Uint8Array(j); + if (m) return m(e); + throw "both async and sync fetching of the wasm failed" + } catch (e) { + se(e) + } + } + ce(he) || (le = he, he = i.locateFile ? i.locateFile(le, y) : y + le); + var fe = {}, + ge = { + get: function(e, t) { + return fe[t] || (fe[t] = new WebAssembly.Global({ + value: "i32", + mutable: !0 + })), fe[t] + } + }; + + function ye(e) { + for (; e.length > 0;) { + var t = e.shift(); + if ("function" != typeof t) { + var n = t.func; + "number" == typeof n ? void 0 === t.arg ? J.get(n)() : J.get(n)(t.arg) : n(void 0 === t.arg ? null : t.arg) + } else t(i) + } + } + + function _e(e) { + var t = 0; + + function n() { + for (var n = 0, r = 1;;) { + var o = e[t++]; + if (n += (127 & o) * r, r *= 128, !(128 & o)) break + } + return n + } + if (e instanceof WebAssembly.Module) { + var r = WebAssembly.Module.customSections(e, "dylink"); + R(0 != r.length, "need dylink section"), e = new Int8Array(r[0]) + } else R(1836278016 == new Uint32Array(new Uint8Array(e.subarray(0, 24)).buffer)[0], "need to see wasm magic number"), R(0 === e[8], "need the dylink section to be first"), t = 9, n(), R(6 === e[t]), R(e[++t] === "d".charCodeAt(0)), R(e[++t] === "y".charCodeAt(0)), R(e[++t] === "l".charCodeAt(0)), R(e[++t] === "i".charCodeAt(0)), R(e[++t] === "n".charCodeAt(0)), R(e[++t] === "k".charCodeAt(0)), t++; + var o = {}; + o.memorySize = n(), o.memoryAlign = n(), o.tableSize = n(), o.tableAlign = n(); + var i = n(); + o.neededDynlibs = []; + for (var s = 0; s < i; ++s) { + var a = n(), + c = e.subarray(t, t + a); + t += a; + var u = z(c, 0); + o.neededDynlibs.push(u) + } + return o + } + var ve = 0; + + function be() { + return S || ve > 0 + } + var ke = { + nextHandle: 1, + loadedLibs: {}, + loadedLibNames: {} + }; + + function we(e, t, n) { + return e.includes("j") ? function(e, t, n) { + var r = i["dynCall_" + e]; + return n && n.length ? r.apply(null, [t].concat(n)) : r.call(null, t) + }(e, t, n) : J.get(t).apply(null, n) + } + var je = 5250832; + + function xe(e) { + return ["__cpp_exception", "__wasm_apply_data_relocs", "__dso_handle", "__set_stack_limits"].includes(e) + } + + function Ee(e, t) { + var n = {}; + for (var r in e) { + var o = e[r]; + "object" == typeof o && (o = o.value), "number" == typeof o && (o += t), n[r] = o + } + return function(e) { + for (var t in e) + if (!xe(t)) { + var n = !1, + r = e[t]; + t.startsWith("orig$") && (t = t.split("$")[1], n = !0), fe[t] || (fe[t] = new WebAssembly.Global({ + value: "i32", + mutable: !0 + })), (n || 0 == fe[t].value) && ("function" == typeof r ? fe[t].value = w(r) : "number" == typeof r ? fe[t].value = r : _("unhandled export type for `" + t + "`: " + typeof r)) + } + }(n), n + } + + function Ce(e) { + return 0 == e.indexOf("dynCall_") || ["stackAlloc", "stackSave", "stackRestore"].includes(e) ? e : "_" + e + } + + function Se(e, t) { + var n, r; + return t && (n = i.asm["orig$" + e]), n || (n = i.asm[e]), !n && t && (n = i["_orig$" + e]), n || (n = i[Ce(e)]), !n && e.startsWith("invoke_") && (r = e.split("_")[1], n = function() { + var e = He(); + try { + return we(r, arguments[0], Array.prototype.slice.call(arguments, 1)) + } catch (t) { + if (We(e), t !== t + 0 && "longjmp" !== t) throw t; + Ve(1, 0) + } + }), n + } + + function Te(e, t) { + var n = _e(e); + + function r() { + var r = Math.pow(2, n.memoryAlign); + r = Math.max(r, b); + var o, i, s, a = (o = function(e) { + if (ee) return Be(e); + var t = je, + n = t + e + 15 & -16; + return je = n, fe.__heap_base.value = n, t + }(n.memorySize + r), (i = r) || (i = b), Math.ceil(o / i) * i), + c = J.length; + J.grow(n.tableSize); + for (var u = a; u < a + n.memorySize; u++) A[u] = 0; + for (u = c; u < c + n.tableSize; u++) J.set(u, null); + var l = new Proxy(ze, { + get: function(e, t) { + switch (t) { + case "__memory_base": + return a; + case "__table_base": + return c + } + return t in e ? e[t] : e[t] = function() { + return n || (n = function(e) { + var t = Se(e, !1); + return t || (t = s[e]), t + }(t)), n.apply(null, arguments) + }; + var n + } + }), + d = { + "GOT.mem": new Proxy(ze, ge), + "GOT.func": new Proxy(ze, ge), + env: l, + wasi_snapshot_preview1: l + }; + + function p(e) { + for (var r = 0; r < n.tableSize; r++) { + var o = J.get(c + r); + o && v.set(o, c + r) + } + s = Ee(e.exports, a), t.allowUndefined || Re(); + var i = s.__wasm_call_ctors; + return i || (i = s.__post_instantiate), i && (ee ? i() : Y.push(i)), s + } + if (t.loadAsync) { + if (e instanceof WebAssembly.Module) { + var h = new WebAssembly.Instance(e, d); + return Promise.resolve(p(h)) + } + return WebAssembly.instantiate(e, d).then((function(e) { + return p(e.instance) + })) + } + var m = e instanceof WebAssembly.Module ? e : new WebAssembly.Module(e); + return p(h = new WebAssembly.Instance(m, d)) + } + return t.loadAsync ? n.neededDynlibs.reduce((function(e, n) { + return e.then((function() { + return Ie(n, t) + })) + }), Promise.resolve()).then((function() { + return r() + })) : (n.neededDynlibs.forEach((function(e) { + Ie(e, t) + })), r()) + } + + function Pe(e, t) { + for (var n in e) + if (e.hasOwnProperty(n)) { + ze.hasOwnProperty(n) || (ze[n] = e[n]); + var r = Ce(n); + i.hasOwnProperty(r) || (i[r] = e[n]) + } + } + + function Ie(e, t) { + "__main__" != e || ke.loadedLibNames[e] || (ke.loadedLibs[-1] = { + refcount: 1 / 0, + name: "__main__", + module: i.asm, + global: !0 + }, ke.loadedLibNames.__main__ = -1), t = t || { + global: !0, + nodelete: !0 + }; + var n, r = ke.loadedLibNames[e]; + if (r) return n = ke.loadedLibs[r], t.global && !n.global && (n.global = !0, "loading" !== n.module && Pe(n.module)), t.nodelete && n.refcount !== 1 / 0 && (n.refcount = 1 / 0), n.refcount++, t.loadAsync ? Promise.resolve(r) : r; + + function o(e) { + if (t.fs) { + var n = t.fs.readFile(e, { + encoding: "binary" + }); + return n instanceof Uint8Array || (n = new Uint8Array(n)), t.loadAsync ? Promise.resolve(n) : n + } + return t.loadAsync ? (r = e, fetch(r, { + credentials: "same-origin" + }).then((function(e) { + if (!e.ok) throw "failed to load binary file at '" + r + "'"; + return e.arrayBuffer() + })).then((function(e) { + return new Uint8Array(e) + }))) : m(e); + var r + } + + function s() { + if (void 0 !== i.preloadedWasm && void 0 !== i.preloadedWasm[e]) { + var n = i.preloadedWasm[e]; + return t.loadAsync ? Promise.resolve(n) : n + } + return t.loadAsync ? o(e).then((function(e) { + return Te(e, t) + })) : Te(o(e), t) + } + + function a(e) { + n.global && Pe(e), n.module = e + } + return r = ke.nextHandle++, n = { + refcount: t.nodelete ? 1 / 0 : 1, + name: e, + module: "loading", + global: t.global + }, ke.loadedLibNames[e] = r, ke.loadedLibs[r] = n, t.loadAsync ? s().then((function(e) { + return a(e), r + })) : (a(s()), r) + } + + function Re() { + for (var e in fe) + if (0 == fe[e].value) { + var t = Se(e, !0); + "function" == typeof t ? fe[e].value = w(t, t.sig) : "number" == typeof t ? fe[e].value = t : R(!1, "bad export type for `" + e + "`: " + typeof t) + } + } + i.___heap_base = je; + var Oe, Ae = new WebAssembly.Global({ + value: "i32", + mutable: !0 + }, 5250832); + + function Ne() { + se() + } + i._abort = Ne, Ne.sig = "v", Oe = o ? function() { + var e = process.hrtime(); + return 1e3 * e[0] + e[1] / 1e6 + } : "undefined" != typeof dateNow ? dateNow : function() { + return performance.now() + }; + var De = !0; + + function Me(e, t) { + var n; + if (0 === e) n = Date.now(); + else { + if (1 !== e && 4 !== e || !De) return M[Ue() >> 2] = 28, -1; + n = Oe() + } + return M[t >> 2] = n / 1e3 | 0, M[t + 4 >> 2] = n % 1e3 * 1e3 * 1e3 | 0, 0 + } + + function qe(e) { + try { + return C.grow(e - O.byteLength + 65535 >>> 16), V(C.buffer), 1 + } catch (e) {} + } + + function Le(e) { + Ye(e) + } + + function $e(e) { + x(e) + } + Me.sig = "iii", Le.sig = "vi", $e.sig = "vi"; + var Fe, ze = { + __heap_base: je, + __indirect_function_table: J, + __memory_base: 1024, + __stack_pointer: Ae, + __table_base: 1, + abort: Ne, + clock_gettime: Me, + emscripten_memcpy_big: function(e, t, n) { + N.copyWithin(e, t, t + n) + }, + emscripten_resize_heap: function(e) { + var t, n = N.length; + if ((e >>>= 0) > 2147483648) return !1; + for (var r = 1; r <= 4; r *= 2) { + var o = n * (1 + .2 / r); + if (o = Math.min(o, e + 100663296), qe(Math.min(2147483648, ((t = Math.max(e, o)) % 65536 > 0 && (t += 65536 - t % 65536), t)))) return !0 + } + return !1 + }, + exit: Le, + memory: C, + setTempRet0: $e, + tree_sitter_log_callback: function(e, t) { + if (mt) { + const n = B(t); + mt(n, 0 !== e) + } + }, + tree_sitter_parse_callback: function(e, t, n, r, o) { + var i = ht(t, { + row: n, + column: r + }); + "string" == typeof i ? (T(o, i.length, "i32"), function(e, t, n) { + if (void 0 === n && (n = 2147483647), n < 2) return 0; + for (var r = (n -= 2) < 2 * e.length ? n / 2 : e.length, o = 0; o < r; ++o) { + var i = e.charCodeAt(o); + D[t >> 1] = i, t += 2 + } + D[t >> 1] = 0 + }(i, e, 10240)) : T(o, 0, "i32") + } + }, + Be = (function() { + var e = { + env: ze, + wasi_snapshot_preview1: ze, + "GOT.mem": new Proxy(ze, ge), + "GOT.func": new Proxy(ze, ge) + }; + + function t(e, t) { + var n = e.exports; + n = Ee(n, 1024), i.asm = n; + var r, o = _e(t); + o.neededDynlibs && (E = o.neededDynlibs.concat(E)), r = i.asm.__wasm_call_ctors, Y.unshift(r), ie() + } + + function n(e) { + t(e.instance, e.module) + } + + function r(t) { + return function() { + if (!j && (l || d)) { + if ("function" == typeof fetch && !ue(he)) return fetch(he, { + credentials: "same-origin" + }).then((function(e) { + if (!e.ok) throw "failed to load wasm binary file at '" + he + "'"; + return e.arrayBuffer() + })).catch((function() { + return me(he) + })); + if (h) return new Promise((function(e, t) { + h(he, (function(t) { + e(new Uint8Array(t)) + }), t) + })) + } + return Promise.resolve().then((function() { + return me(he) + })) + }().then((function(t) { + return WebAssembly.instantiate(t, e) + })).then(t, (function(e) { + _("failed to asynchronously prepare wasm: " + e), se(e) + })) + } + if (oe(), i.instantiateWasm) try { + return i.instantiateWasm(e, t) + } catch (e) { + return _("Module.instantiateWasm callback failed with error: " + e), !1 + } + j || "function" != typeof WebAssembly.instantiateStreaming || ce(he) || ue(he) || "function" != typeof fetch ? r(n) : fetch(he, { + credentials: "same-origin" + }).then((function(t) { + return WebAssembly.instantiateStreaming(t, e).then(n, (function(e) { + return _("wasm streaming compile failed: " + e), _("falling back to ArrayBuffer instantiation"), r(n) + })) + })) + }(), i.___wasm_call_ctors = function() { + return (i.___wasm_call_ctors = i.asm.__wasm_call_ctors).apply(null, arguments) + }, i._malloc = function() { + return (Be = i._malloc = i.asm.malloc).apply(null, arguments) + }), + Ue = (i._ts_language_symbol_count = function() { + return (i._ts_language_symbol_count = i.asm.ts_language_symbol_count).apply(null, arguments) + }, i._ts_language_version = function() { + return (i._ts_language_version = i.asm.ts_language_version).apply(null, arguments) + }, i._ts_language_field_count = function() { + return (i._ts_language_field_count = i.asm.ts_language_field_count).apply(null, arguments) + }, i._ts_language_symbol_name = function() { + return (i._ts_language_symbol_name = i.asm.ts_language_symbol_name).apply(null, arguments) + }, i._ts_language_symbol_for_name = function() { + return (i._ts_language_symbol_for_name = i.asm.ts_language_symbol_for_name).apply(null, arguments) + }, i._ts_language_symbol_type = function() { + return (i._ts_language_symbol_type = i.asm.ts_language_symbol_type).apply(null, arguments) + }, i._ts_language_field_name_for_id = function() { + return (i._ts_language_field_name_for_id = i.asm.ts_language_field_name_for_id).apply(null, arguments) + }, i._memcpy = function() { + return (i._memcpy = i.asm.memcpy).apply(null, arguments) + }, i._free = function() { + return (i._free = i.asm.free).apply(null, arguments) + }, i._calloc = function() { + return (i._calloc = i.asm.calloc).apply(null, arguments) + }, i._ts_parser_delete = function() { + return (i._ts_parser_delete = i.asm.ts_parser_delete).apply(null, arguments) + }, i._ts_parser_reset = function() { + return (i._ts_parser_reset = i.asm.ts_parser_reset).apply(null, arguments) + }, i._ts_parser_set_language = function() { + return (i._ts_parser_set_language = i.asm.ts_parser_set_language).apply(null, arguments) + }, i._ts_parser_timeout_micros = function() { + return (i._ts_parser_timeout_micros = i.asm.ts_parser_timeout_micros).apply(null, arguments) + }, i._ts_parser_set_timeout_micros = function() { + return (i._ts_parser_set_timeout_micros = i.asm.ts_parser_set_timeout_micros).apply(null, arguments) + }, i._memcmp = function() { + return (i._memcmp = i.asm.memcmp).apply(null, arguments) + }, i._ts_query_new = function() { + return (i._ts_query_new = i.asm.ts_query_new).apply(null, arguments) + }, i._ts_query_delete = function() { + return (i._ts_query_delete = i.asm.ts_query_delete).apply(null, arguments) + }, i._iswspace = function() { + return (i._iswspace = i.asm.iswspace).apply(null, arguments) + }, i._iswalnum = function() { + return (i._iswalnum = i.asm.iswalnum).apply(null, arguments) + }, i._ts_query_pattern_count = function() { + return (i._ts_query_pattern_count = i.asm.ts_query_pattern_count).apply(null, arguments) + }, i._ts_query_capture_count = function() { + return (i._ts_query_capture_count = i.asm.ts_query_capture_count).apply(null, arguments) + }, i._ts_query_string_count = function() { + return (i._ts_query_string_count = i.asm.ts_query_string_count).apply(null, arguments) + }, i._ts_query_capture_name_for_id = function() { + return (i._ts_query_capture_name_for_id = i.asm.ts_query_capture_name_for_id).apply(null, arguments) + }, i._ts_query_string_value_for_id = function() { + return (i._ts_query_string_value_for_id = i.asm.ts_query_string_value_for_id).apply(null, arguments) + }, i._ts_query_predicates_for_pattern = function() { + return (i._ts_query_predicates_for_pattern = i.asm.ts_query_predicates_for_pattern).apply(null, arguments) + }, i._ts_tree_copy = function() { + return (i._ts_tree_copy = i.asm.ts_tree_copy).apply(null, arguments) + }, i._ts_tree_delete = function() { + return (i._ts_tree_delete = i.asm.ts_tree_delete).apply(null, arguments) + }, i._ts_init = function() { + return (i._ts_init = i.asm.ts_init).apply(null, arguments) + }, i._ts_parser_new_wasm = function() { + return (i._ts_parser_new_wasm = i.asm.ts_parser_new_wasm).apply(null, arguments) + }, i._ts_parser_enable_logger_wasm = function() { + return (i._ts_parser_enable_logger_wasm = i.asm.ts_parser_enable_logger_wasm).apply(null, arguments) + }, i._ts_parser_parse_wasm = function() { + return (i._ts_parser_parse_wasm = i.asm.ts_parser_parse_wasm).apply(null, arguments) + }, i._ts_language_type_is_named_wasm = function() { + return (i._ts_language_type_is_named_wasm = i.asm.ts_language_type_is_named_wasm).apply(null, arguments) + }, i._ts_language_type_is_visible_wasm = function() { + return (i._ts_language_type_is_visible_wasm = i.asm.ts_language_type_is_visible_wasm).apply(null, arguments) + }, i._ts_tree_root_node_wasm = function() { + return (i._ts_tree_root_node_wasm = i.asm.ts_tree_root_node_wasm).apply(null, arguments) + }, i._ts_tree_edit_wasm = function() { + return (i._ts_tree_edit_wasm = i.asm.ts_tree_edit_wasm).apply(null, arguments) + }, i._ts_tree_get_changed_ranges_wasm = function() { + return (i._ts_tree_get_changed_ranges_wasm = i.asm.ts_tree_get_changed_ranges_wasm).apply(null, arguments) + }, i._ts_tree_cursor_new_wasm = function() { + return (i._ts_tree_cursor_new_wasm = i.asm.ts_tree_cursor_new_wasm).apply(null, arguments) + }, i._ts_tree_cursor_delete_wasm = function() { + return (i._ts_tree_cursor_delete_wasm = i.asm.ts_tree_cursor_delete_wasm).apply(null, arguments) + }, i._ts_tree_cursor_reset_wasm = function() { + return (i._ts_tree_cursor_reset_wasm = i.asm.ts_tree_cursor_reset_wasm).apply(null, arguments) + }, i._ts_tree_cursor_goto_first_child_wasm = function() { + return (i._ts_tree_cursor_goto_first_child_wasm = i.asm.ts_tree_cursor_goto_first_child_wasm).apply(null, arguments) + }, i._ts_tree_cursor_goto_next_sibling_wasm = function() { + return (i._ts_tree_cursor_goto_next_sibling_wasm = i.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null, arguments) + }, i._ts_tree_cursor_goto_parent_wasm = function() { + return (i._ts_tree_cursor_goto_parent_wasm = i.asm.ts_tree_cursor_goto_parent_wasm).apply(null, arguments) + }, i._ts_tree_cursor_current_node_type_id_wasm = function() { + return (i._ts_tree_cursor_current_node_type_id_wasm = i.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null, arguments) + }, i._ts_tree_cursor_current_node_is_named_wasm = function() { + return (i._ts_tree_cursor_current_node_is_named_wasm = i.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null, arguments) + }, i._ts_tree_cursor_current_node_is_missing_wasm = function() { + return (i._ts_tree_cursor_current_node_is_missing_wasm = i.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null, arguments) + }, i._ts_tree_cursor_current_node_id_wasm = function() { + return (i._ts_tree_cursor_current_node_id_wasm = i.asm.ts_tree_cursor_current_node_id_wasm).apply(null, arguments) + }, i._ts_tree_cursor_start_position_wasm = function() { + return (i._ts_tree_cursor_start_position_wasm = i.asm.ts_tree_cursor_start_position_wasm).apply(null, arguments) + }, i._ts_tree_cursor_end_position_wasm = function() { + return (i._ts_tree_cursor_end_position_wasm = i.asm.ts_tree_cursor_end_position_wasm).apply(null, arguments) + }, i._ts_tree_cursor_start_index_wasm = function() { + return (i._ts_tree_cursor_start_index_wasm = i.asm.ts_tree_cursor_start_index_wasm).apply(null, arguments) + }, i._ts_tree_cursor_end_index_wasm = function() { + return (i._ts_tree_cursor_end_index_wasm = i.asm.ts_tree_cursor_end_index_wasm).apply(null, arguments) + }, i._ts_tree_cursor_current_field_id_wasm = function() { + return (i._ts_tree_cursor_current_field_id_wasm = i.asm.ts_tree_cursor_current_field_id_wasm).apply(null, arguments) + }, i._ts_tree_cursor_current_node_wasm = function() { + return (i._ts_tree_cursor_current_node_wasm = i.asm.ts_tree_cursor_current_node_wasm).apply(null, arguments) + }, i._ts_node_symbol_wasm = function() { + return (i._ts_node_symbol_wasm = i.asm.ts_node_symbol_wasm).apply(null, arguments) + }, i._ts_node_child_count_wasm = function() { + return (i._ts_node_child_count_wasm = i.asm.ts_node_child_count_wasm).apply(null, arguments) + }, i._ts_node_named_child_count_wasm = function() { + return (i._ts_node_named_child_count_wasm = i.asm.ts_node_named_child_count_wasm).apply(null, arguments) + }, i._ts_node_child_wasm = function() { + return (i._ts_node_child_wasm = i.asm.ts_node_child_wasm).apply(null, arguments) + }, i._ts_node_named_child_wasm = function() { + return (i._ts_node_named_child_wasm = i.asm.ts_node_named_child_wasm).apply(null, arguments) + }, i._ts_node_child_by_field_id_wasm = function() { + return (i._ts_node_child_by_field_id_wasm = i.asm.ts_node_child_by_field_id_wasm).apply(null, arguments) + }, i._ts_node_next_sibling_wasm = function() { + return (i._ts_node_next_sibling_wasm = i.asm.ts_node_next_sibling_wasm).apply(null, arguments) + }, i._ts_node_prev_sibling_wasm = function() { + return (i._ts_node_prev_sibling_wasm = i.asm.ts_node_prev_sibling_wasm).apply(null, arguments) + }, i._ts_node_next_named_sibling_wasm = function() { + return (i._ts_node_next_named_sibling_wasm = i.asm.ts_node_next_named_sibling_wasm).apply(null, arguments) + }, i._ts_node_prev_named_sibling_wasm = function() { + return (i._ts_node_prev_named_sibling_wasm = i.asm.ts_node_prev_named_sibling_wasm).apply(null, arguments) + }, i._ts_node_parent_wasm = function() { + return (i._ts_node_parent_wasm = i.asm.ts_node_parent_wasm).apply(null, arguments) + }, i._ts_node_descendant_for_index_wasm = function() { + return (i._ts_node_descendant_for_index_wasm = i.asm.ts_node_descendant_for_index_wasm).apply(null, arguments) + }, i._ts_node_named_descendant_for_index_wasm = function() { + return (i._ts_node_named_descendant_for_index_wasm = i.asm.ts_node_named_descendant_for_index_wasm).apply(null, arguments) + }, i._ts_node_descendant_for_position_wasm = function() { + return (i._ts_node_descendant_for_position_wasm = i.asm.ts_node_descendant_for_position_wasm).apply(null, arguments) + }, i._ts_node_named_descendant_for_position_wasm = function() { + return (i._ts_node_named_descendant_for_position_wasm = i.asm.ts_node_named_descendant_for_position_wasm).apply(null, arguments) + }, i._ts_node_start_point_wasm = function() { + return (i._ts_node_start_point_wasm = i.asm.ts_node_start_point_wasm).apply(null, arguments) + }, i._ts_node_end_point_wasm = function() { + return (i._ts_node_end_point_wasm = i.asm.ts_node_end_point_wasm).apply(null, arguments) + }, i._ts_node_start_index_wasm = function() { + return (i._ts_node_start_index_wasm = i.asm.ts_node_start_index_wasm).apply(null, arguments) + }, i._ts_node_end_index_wasm = function() { + return (i._ts_node_end_index_wasm = i.asm.ts_node_end_index_wasm).apply(null, arguments) + }, i._ts_node_to_string_wasm = function() { + return (i._ts_node_to_string_wasm = i.asm.ts_node_to_string_wasm).apply(null, arguments) + }, i._ts_node_children_wasm = function() { + return (i._ts_node_children_wasm = i.asm.ts_node_children_wasm).apply(null, arguments) + }, i._ts_node_named_children_wasm = function() { + return (i._ts_node_named_children_wasm = i.asm.ts_node_named_children_wasm).apply(null, arguments) + }, i._ts_node_descendants_of_type_wasm = function() { + return (i._ts_node_descendants_of_type_wasm = i.asm.ts_node_descendants_of_type_wasm).apply(null, arguments) + }, i._ts_node_is_named_wasm = function() { + return (i._ts_node_is_named_wasm = i.asm.ts_node_is_named_wasm).apply(null, arguments) + }, i._ts_node_has_changes_wasm = function() { + return (i._ts_node_has_changes_wasm = i.asm.ts_node_has_changes_wasm).apply(null, arguments) + }, i._ts_node_has_error_wasm = function() { + return (i._ts_node_has_error_wasm = i.asm.ts_node_has_error_wasm).apply(null, arguments) + }, i._ts_node_is_missing_wasm = function() { + return (i._ts_node_is_missing_wasm = i.asm.ts_node_is_missing_wasm).apply(null, arguments) + }, i._ts_query_matches_wasm = function() { + return (i._ts_query_matches_wasm = i.asm.ts_query_matches_wasm).apply(null, arguments) + }, i._ts_query_captures_wasm = function() { + return (i._ts_query_captures_wasm = i.asm.ts_query_captures_wasm).apply(null, arguments) + }, i._iswalpha = function() { + return (i._iswalpha = i.asm.iswalpha).apply(null, arguments) + }, i._iswdigit = function() { + return (i._iswdigit = i.asm.iswdigit).apply(null, arguments) + }, i._iswlower = function() { + return (i._iswlower = i.asm.iswlower).apply(null, arguments) + }, i._towupper = function() { + return (i._towupper = i.asm.towupper).apply(null, arguments) + }, i._memchr = function() { + return (i._memchr = i.asm.memchr).apply(null, arguments) + }, i.___errno_location = function() { + return (Ue = i.___errno_location = i.asm.__errno_location).apply(null, arguments) + }), + He = (i._strlen = function() { + return (i._strlen = i.asm.strlen).apply(null, arguments) + }, i.stackSave = function() { + return (He = i.stackSave = i.asm.stackSave).apply(null, arguments) + }), + We = i.stackRestore = function() { + return (We = i.stackRestore = i.asm.stackRestore).apply(null, arguments) + }, + Ge = i.stackAlloc = function() { + return (Ge = i.stackAlloc = i.asm.stackAlloc).apply(null, arguments) + }, + Ve = i._setThrew = function() { + return (Ve = i._setThrew = i.asm.setThrew).apply(null, arguments) + }; + + function Ke(e) { + this.name = "ExitStatus", this.message = "Program terminated with exit(" + e + ")", this.status = e + } + i.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm = function() { + return (i.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm = i.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null, arguments) + }, i.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev = function() { + return (i.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev = i.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null, arguments) + }, i.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm = function() { + return (i.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm = i.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null, arguments) + }, i.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm = function() { + return (i.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm = i.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null, arguments) + }, i.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc = function() { + return (i.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc = i.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null, arguments) + }, i.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm = function() { + return (i.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm = i.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null, arguments) + }, i.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev = function() { + return (i.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev = i.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null, arguments) + }, i.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw = function() { + return (i.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw = i.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null, arguments) + }, i.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_ = function() { + return (i.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_ = i.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_).apply(null, arguments) + }, i.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv = function() { + return (i.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv = i.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null, arguments) + }, i.__Znwm = function() { + return (i.__Znwm = i.asm._Znwm).apply(null, arguments) + }, i.__ZdlPv = function() { + return (i.__ZdlPv = i.asm._ZdlPv).apply(null, arguments) + }, i._orig$ts_parser_timeout_micros = function() { + return (i._orig$ts_parser_timeout_micros = i.asm.orig$ts_parser_timeout_micros).apply(null, arguments) + }, i._orig$ts_parser_set_timeout_micros = function() { + return (i._orig$ts_parser_set_timeout_micros = i.asm.orig$ts_parser_set_timeout_micros).apply(null, arguments) + }, i._TRANSFER_BUFFER = 7296, i.___THREW__ = 7932, i.___threwValue = 7936, i.___cxa_new_handler = 7928, i.allocate = function(e, t) { + var n; + return n = t == $ ? Ge(e.length) : Be(e.length), e.subarray || e.slice ? N.set(e, n) : N.set(new Uint8Array(e), n), n + }, re = function e() { + Fe || Xe(), Fe || (re = e) + }; + var Je = !1; + + function Xe(e) { + function t() { + Fe || (Fe = !0, i.calledRun = !0, I || (ee = !0, ye(Y), ye(Q), i.onRuntimeInitialized && i.onRuntimeInitialized(), Qe && function(e) { + var t = i._main; + if (t) { + var n = (e = e || []).length + 1, + r = Ge(4 * (n + 1)); + M[r >> 2] = G(c); + for (var o = 1; o < n; o++) M[(r >> 2) + o] = G(e[o - 1]); + M[(r >> 2) + n] = 0; + try { + Ye(t(n, r), !0) + } catch (e) { + if (e instanceof Ke) return; + if ("unwind" == e) return; + var s = e; + e && "object" == typeof e && e.stack && (s = [e, e.stack]), _("exception thrown: " + s), u(1, e) + } + } + }(e), function() { + if (i.postRun) + for ("function" == typeof i.postRun && (i.postRun = [i.postRun]); i.postRun.length;) e = i.postRun.shift(), Z.unshift(e); + var e; + ye(Z) + }())) + } + e = e || a, te > 0 || !Je && (function() { + if (E.length) { + if (!m) return oe(), void E.reduce((function(e, t) { + return e.then((function() { + return Ie(t, { + loadAsync: !0, + global: !0, + nodelete: !0, + allowUndefined: !0 + }) + })) + }), Promise.resolve()).then((function() { + ie(), Re() + })); + E.forEach((function(e) { + Ie(e, { + global: !0, + nodelete: !0, + allowUndefined: !0 + }) + })), Re() + } else Re() + }(), Je = !0, te > 0) || (function() { + if (i.preRun) + for ("function" == typeof i.preRun && (i.preRun = [i.preRun]); i.preRun.length;) e = i.preRun.shift(), X.unshift(e); + var e; + ye(X) + }(), te > 0 || (i.setStatus ? (i.setStatus("Running..."), setTimeout((function() { + setTimeout((function() { + i.setStatus("") + }), 1), t() + }), 1)) : t())) + } + + function Ye(e, t) { + t && be() && 0 === e || (be() || (i.onExit && i.onExit(e), I = !0), u(e, new Ke(e))) + } + if (i.run = Xe, i.preInit) + for ("function" == typeof i.preInit && (i.preInit = [i.preInit]); i.preInit.length > 0;) i.preInit.pop()(); + var Qe = !0; + i.noInitialRun && (Qe = !1), Xe(); + const Ze = i, + et = {}, + tt = 4, + nt = 5 * tt, + rt = 2 * tt, + ot = 2 * tt + 2 * rt, + it = { + row: 0, + column: 0 + }, + st = /[\w-.]*/g, + at = 1, + ct = 2, + ut = /^_?tree_sitter_\w+/; + var lt, dt, pt, ht, mt, ft = new Promise((e => { + i.onRuntimeInitialized = e + })).then((() => { + pt = Ze._ts_init(), lt = P(pt, "i32"), dt = P(pt + tt, "i32") + })); + class gt { + static init() { + return ft + } + constructor() { + if (null == pt) throw new Error("You must first call Parser.init() and wait for it to resolve."); + Ze._ts_parser_new_wasm(), this[0] = P(pt, "i32"), this[1] = P(pt + tt, "i32") + } + delete() { + Ze._ts_parser_delete(this[0]), Ze._free(this[1]), this[0] = 0, this[1] = 0 + } + setLanguage(e) { + let t; + if (e) { + if (e.constructor !== bt) throw new Error("Argument must be a Language"); { + t = e[0]; + const n = Ze._ts_language_version(t); + if (n < dt || lt < n) throw new Error(`Incompatible language version ${n}. Compatibility range ${dt} through ${lt}.`) + } + } else t = 0, e = null; + return this.language = e, Ze._ts_parser_set_language(this[0], t), this + } + getLanguage() { + return this.language + } + parse(e, t, n) { + if ("string" == typeof e) ht = (t, n, r) => e.slice(t, r); + else { + if ("function" != typeof e) throw new Error("Argument must be a string or a function"); + ht = e + } + this.logCallback ? (mt = this.logCallback, Ze._ts_parser_enable_logger_wasm(this[0], 1)) : (mt = null, Ze._ts_parser_enable_logger_wasm(this[0], 0)); + let r = 0, + o = 0; + if (n && n.includedRanges) { + r = n.includedRanges.length; + let e = o = Ze._calloc(r, ot); + for (let t = 0; t < r; t++) Ot(e, n.includedRanges[t]), e += ot + } + const i = Ze._ts_parser_parse_wasm(this[0], this[1], t ? t[0] : 0, o, r); + if (!i) throw ht = null, mt = null, new Error("Parsing failed"); + const s = new yt(et, i, this.language, ht); + return ht = null, mt = null, s + } + reset() { + Ze._ts_parser_reset(this[0]) + } + setTimeoutMicros(e) { + Ze._ts_parser_set_timeout_micros(this[0], e) + } + getTimeoutMicros() { + return Ze._ts_parser_timeout_micros(this[0]) + } + setLogger(e) { + if (e) { + if ("function" != typeof e) throw new Error("Logger callback must be a function") + } else e = null; + return this.logCallback = e, this + } + getLogger() { + return this.logCallback + } + } + class yt { + constructor(e, t, n, r) { + xt(e), this[0] = t, this.language = n, this.textCallback = r + } + copy() { + const e = Ze._ts_tree_copy(this[0]); + return new yt(et, e, this.language, this.textCallback) + } + delete() { + Ze._ts_tree_delete(this[0]), this[0] = 0 + } + edit(e) { + ! function(e) { + let t = pt; + It(t, e.startPosition), It(t += rt, e.oldEndPosition), It(t += rt, e.newEndPosition), T(t += rt, e.startIndex, "i32"), T(t += tt, e.oldEndIndex, "i32"), T(t += tt, e.newEndIndex, "i32"), t += tt + }(e), Ze._ts_tree_edit_wasm(this[0]) + } + get rootNode() { + return Ze._ts_tree_root_node_wasm(this[0]), St(this) + } + getLanguage() { + return this.language + } + walk() { + return this.rootNode.walk() + } + getChangedRanges(e) { + if (e.constructor !== yt) throw new TypeError("Argument must be a Tree"); + Ze._ts_tree_get_changed_ranges_wasm(this[0], e[0]); + const t = P(pt, "i32"), + n = P(pt + tt, "i32"), + r = new Array(t); + if (t > 0) { + let e = n; + for (let n = 0; n < t; n++) r[n] = At(e), e += ot; + Ze._free(n) + } + return r + } + } + class _t { + constructor(e, t) { + xt(e), this.tree = t + } + get typeId() { + return Ct(this), Ze._ts_node_symbol_wasm(this.tree[0]) + } + get type() { + return this.tree.language.types[this.typeId] || "ERROR" + } + get endPosition() { + return Ct(this), Ze._ts_node_end_point_wasm(this.tree[0]), Rt(pt) + } + get endIndex() { + return Ct(this), Ze._ts_node_end_index_wasm(this.tree[0]) + } + get text() { + return wt(this.tree, this.startIndex, this.endIndex) + } + isNamed() { + return Ct(this), 1 === Ze._ts_node_is_named_wasm(this.tree[0]) + } + hasError() { + return Ct(this), 1 === Ze._ts_node_has_error_wasm(this.tree[0]) + } + hasChanges() { + return Ct(this), 1 === Ze._ts_node_has_changes_wasm(this.tree[0]) + } + isMissing() { + return Ct(this), 1 === Ze._ts_node_is_missing_wasm(this.tree[0]) + } + equals(e) { + return this.id === e.id + } + child(e) { + return Ct(this), Ze._ts_node_child_wasm(this.tree[0], e), St(this.tree) + } + namedChild(e) { + return Ct(this), Ze._ts_node_named_child_wasm(this.tree[0], e), St(this.tree) + } + childForFieldId(e) { + return Ct(this), Ze._ts_node_child_by_field_id_wasm(this.tree[0], e), St(this.tree) + } + childForFieldName(e) { + const t = this.tree.language.fields.indexOf(e); + if (-1 !== t) return this.childForFieldId(t) + } + get childCount() { + return Ct(this), Ze._ts_node_child_count_wasm(this.tree[0]) + } + get namedChildCount() { + return Ct(this), Ze._ts_node_named_child_count_wasm(this.tree[0]) + } + get firstChild() { + return this.child(0) + } + get firstNamedChild() { + return this.namedChild(0) + } + get lastChild() { + return this.child(this.childCount - 1) + } + get lastNamedChild() { + return this.namedChild(this.namedChildCount - 1) + } + get children() { + if (!this._children) { + Ct(this), Ze._ts_node_children_wasm(this.tree[0]); + const e = P(pt, "i32"), + t = P(pt + tt, "i32"); + if (this._children = new Array(e), e > 0) { + let n = t; + for (let t = 0; t < e; t++) this._children[t] = St(this.tree, n), n += nt; + Ze._free(t) + } + } + return this._children + } + get namedChildren() { + if (!this._namedChildren) { + Ct(this), Ze._ts_node_named_children_wasm(this.tree[0]); + const e = P(pt, "i32"), + t = P(pt + tt, "i32"); + if (this._namedChildren = new Array(e), e > 0) { + let n = t; + for (let t = 0; t < e; t++) this._namedChildren[t] = St(this.tree, n), n += nt; + Ze._free(t) + } + } + return this._namedChildren + } + descendantsOfType(e, t, n) { + Array.isArray(e) || (e = [e]), t || (t = it), n || (n = it); + const r = [], + o = this.tree.language.types; + for (let t = 0, n = o.length; t < n; t++) e.includes(o[t]) && r.push(t); + const i = Ze._malloc(tt * r.length); + for (let e = 0, t = r.length; e < t; e++) T(i + e * tt, r[e], "i32"); + Ct(this), Ze._ts_node_descendants_of_type_wasm(this.tree[0], i, r.length, t.row, t.column, n.row, n.column); + const s = P(pt, "i32"), + a = P(pt + tt, "i32"), + c = new Array(s); + if (s > 0) { + let e = a; + for (let t = 0; t < s; t++) c[t] = St(this.tree, e), e += nt + } + return Ze._free(a), Ze._free(i), c + } + get nextSibling() { + return Ct(this), Ze._ts_node_next_sibling_wasm(this.tree[0]), St(this.tree) + } + get previousSibling() { + return Ct(this), Ze._ts_node_prev_sibling_wasm(this.tree[0]), St(this.tree) + } + get nextNamedSibling() { + return Ct(this), Ze._ts_node_next_named_sibling_wasm(this.tree[0]), St(this.tree) + } + get previousNamedSibling() { + return Ct(this), Ze._ts_node_prev_named_sibling_wasm(this.tree[0]), St(this.tree) + } + get parent() { + return Ct(this), Ze._ts_node_parent_wasm(this.tree[0]), St(this.tree) + } + descendantForIndex(e, t = e) { + if ("number" != typeof e || "number" != typeof t) throw new Error("Arguments must be numbers"); + Ct(this); + let n = pt + nt; + return T(n, e, "i32"), T(n + tt, t, "i32"), Ze._ts_node_descendant_for_index_wasm(this.tree[0]), St(this.tree) + } + namedDescendantForIndex(e, t = e) { + if ("number" != typeof e || "number" != typeof t) throw new Error("Arguments must be numbers"); + Ct(this); + let n = pt + nt; + return T(n, e, "i32"), T(n + tt, t, "i32"), Ze._ts_node_named_descendant_for_index_wasm(this.tree[0]), St(this.tree) + } + descendantForPosition(e, t = e) { + if (!Et(e) || !Et(t)) throw new Error("Arguments must be {row, column} objects"); + Ct(this); + let n = pt + nt; + return It(n, e), It(n + rt, t), Ze._ts_node_descendant_for_position_wasm(this.tree[0]), St(this.tree) + } + namedDescendantForPosition(e, t = e) { + if (!Et(e) || !Et(t)) throw new Error("Arguments must be {row, column} objects"); + Ct(this); + let n = pt + nt; + return It(n, e), It(n + rt, t), Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]), St(this.tree) + } + walk() { + return Ct(this), Ze._ts_tree_cursor_new_wasm(this.tree[0]), new vt(et, this.tree) + } + toString() { + Ct(this); + const e = Ze._ts_node_to_string_wasm(this.tree[0]), + t = function(e) { + for (var t = "";;) { + var n = N[e++ >> 0]; + if (!n) return t; + t += String.fromCharCode(n) + } + }(e); + return Ze._free(e), t + } + } + class vt { + constructor(e, t) { + xt(e), this.tree = t, Pt(this) + } + delete() { + Tt(this), Ze._ts_tree_cursor_delete_wasm(this.tree[0]), this[0] = this[1] = this[2] = 0 + } + reset(e) { + Ct(e), Tt(this, pt + nt), Ze._ts_tree_cursor_reset_wasm(this.tree[0]), Pt(this) + } + get nodeType() { + return this.tree.language.types[this.nodeTypeId] || "ERROR" + } + get nodeTypeId() { + return Tt(this), Ze._ts_tree_cursor_current_node_type_id_wasm(this.tree[0]) + } + get nodeId() { + return Tt(this), Ze._ts_tree_cursor_current_node_id_wasm(this.tree[0]) + } + get nodeIsNamed() { + return Tt(this), 1 === Ze._ts_tree_cursor_current_node_is_named_wasm(this.tree[0]) + } + get nodeIsMissing() { + return Tt(this), 1 === Ze._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0]) + } + get nodeText() { + Tt(this); + const e = Ze._ts_tree_cursor_start_index_wasm(this.tree[0]), + t = Ze._ts_tree_cursor_end_index_wasm(this.tree[0]); + return wt(this.tree, e, t) + } + get startPosition() { + return Tt(this), Ze._ts_tree_cursor_start_position_wasm(this.tree[0]), Rt(pt) + } + get endPosition() { + return Tt(this), Ze._ts_tree_cursor_end_position_wasm(this.tree[0]), Rt(pt) + } + get startIndex() { + return Tt(this), Ze._ts_tree_cursor_start_index_wasm(this.tree[0]) + } + get endIndex() { + return Tt(this), Ze._ts_tree_cursor_end_index_wasm(this.tree[0]) + } + currentNode() { + return Tt(this), Ze._ts_tree_cursor_current_node_wasm(this.tree[0]), St(this.tree) + } + currentFieldId() { + return Tt(this), Ze._ts_tree_cursor_current_field_id_wasm(this.tree[0]) + } + currentFieldName() { + return this.tree.language.fields[this.currentFieldId()] + } + gotoFirstChild() { + Tt(this); + const e = Ze._ts_tree_cursor_goto_first_child_wasm(this.tree[0]); + return Pt(this), 1 === e + } + gotoNextSibling() { + Tt(this); + const e = Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]); + return Pt(this), 1 === e + } + gotoParent() { + Tt(this); + const e = Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]); + return Pt(this), 1 === e + } + } + class bt { + constructor(e, t) { + xt(e), this[0] = t, this.types = new Array(Ze._ts_language_symbol_count(this[0])); + for (let e = 0, t = this.types.length; e < t; e++) Ze._ts_language_symbol_type(this[0], e) < 2 && (this.types[e] = B(Ze._ts_language_symbol_name(this[0], e))); + this.fields = new Array(Ze._ts_language_field_count(this[0]) + 1); + for (let e = 0, t = this.fields.length; e < t; e++) { + const t = Ze._ts_language_field_name_for_id(this[0], e); + this.fields[e] = 0 !== t ? B(t) : null + } + } + get version() { + return Ze._ts_language_version(this[0]) + } + get fieldCount() { + return this.fields.length - 1 + } + fieldIdForName(e) { + const t = this.fields.indexOf(e); + return -1 !== t ? t : null + } + fieldNameForId(e) { + return this.fields[e] || null + } + idForNodeType(e, t) { + const n = W(e), + r = Ze._malloc(n + 1); + H(e, r, n + 1); + const o = Ze._ts_language_symbol_for_name(this[0], r, n, t); + return Ze._free(r), o || null + } + get nodeTypeCount() { + return Ze._ts_language_symbol_count(this[0]) + } + nodeTypeForId(e) { + const t = Ze._ts_language_symbol_name(this[0], e); + return t ? B(t) : null + } + nodeTypeIsNamed(e) { + return !!Ze._ts_language_type_is_named_wasm(this[0], e) + } + nodeTypeIsVisible(e) { + return !!Ze._ts_language_type_is_visible_wasm(this[0], e) + } + query(e) { + const t = W(e), + n = Ze._malloc(t + 1); + H(e, n, t + 1); + const r = Ze._ts_query_new(this[0], n, t, pt, pt + tt); + if (!r) { + const t = P(pt + tt, "i32"), + r = B(n, P(pt, "i32")).length, + o = e.substr(r, 100).split("\n")[0]; + let i, s = o.match(st)[0]; + switch (t) { + case 2: + i = new RangeError(`Bad node name '${s}'`); + break; + case 3: + i = new RangeError(`Bad field name '${s}'`); + break; + case 4: + i = new RangeError(`Bad capture name @${s}`); + break; + case 5: + i = new TypeError(`Bad pattern structure at offset ${r}: '${o}'...`), s = ""; + break; + default: + i = new SyntaxError(`Bad syntax at offset ${r}: '${o}'...`), s = "" + } + throw i.index = r, i.length = s.length, Ze._free(n), i + } + const o = Ze._ts_query_string_count(r), + i = Ze._ts_query_capture_count(r), + s = Ze._ts_query_pattern_count(r), + a = new Array(i), + c = new Array(o); + for (let e = 0; e < i; e++) { + const t = Ze._ts_query_capture_name_for_id(r, e, pt), + n = P(pt, "i32"); + a[e] = B(t, n) + } + for (let e = 0; e < o; e++) { + const t = Ze._ts_query_string_value_for_id(r, e, pt), + n = P(pt, "i32"); + c[e] = B(t, n) + } + const u = new Array(s), + l = new Array(s), + d = new Array(s), + p = new Array(s), + h = new Array(s); + for (let e = 0; e < s; e++) { + const t = Ze._ts_query_predicates_for_pattern(r, e, pt), + n = P(pt, "i32"); + p[e] = [], h[e] = []; + const o = []; + let i = t; + for (let t = 0; t < n; t++) { + const t = P(i, "i32"), + n = P(i += tt, "i32"); + if (i += tt, t === at) o.push({ + type: "capture", + name: a[n] + }); + else if (t === ct) o.push({ + type: "string", + value: c[n] + }); + else if (o.length > 0) { + if ("string" !== o[0].type) throw new Error("Predicates must begin with a literal value"); + const t = o[0].value; + let n = !0; + switch (t) { + case "not-eq?": + n = !1; + case "eq?": + if (3 !== o.length) throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got " + (o.length - 1)); + if ("capture" !== o[1].type) throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${o[1].value}"`); + if ("capture" === o[2].type) { + const t = o[1].name, + r = o[2].name; + h[e].push((function(e) { + let o, i; + for (const n of e) n.name === t && (o = n.node), n.name === r && (i = n.node); + return o.text === i.text === n + })) + } else { + const t = o[1].name, + r = o[2].value; + h[e].push((function(e) { + for (const o of e) + if (o.name === t) return o.node.text === r === n; + return !1 + })) + } + break; + case "not-match?": + n = !1; + case "match?": + if (3 !== o.length) throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${o.length-1}.`); + if ("capture" !== o[1].type) throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${o[1].value}".`); + if ("string" !== o[2].type) throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${o[2].value}.`); + const r = o[1].name, + i = new RegExp(o[2].value); + h[e].push((function(e) { + for (const t of e) + if (t.name === r) return i.test(t.node.text) === n; + return !1 + })); + break; + case "set!": + if (o.length < 2 || o.length > 3) throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${o.length-1}.`); + if (o.some((e => "string" !== e.type))) throw new Error('Arguments to `#set!` predicate must be a strings.".'); + u[e] || (u[e] = {}), u[e][o[1].value] = o[2] ? o[2].value : null; + break; + case "is?": + case "is-not?": + if (o.length < 2 || o.length > 3) throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${o.length-1}.`); + if (o.some((e => "string" !== e.type))) throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`); + const s = "is?" === t ? l : d; + s[e] || (s[e] = {}), s[e][o[1].value] = o[2] ? o[2].value : null; + break; + default: + p[e].push({ + operator: t, + operands: o.slice(1) + }) + } + o.length = 0 + } + } + Object.freeze(u[e]), Object.freeze(l[e]), Object.freeze(d[e]) + } + return Ze._free(n), new kt(et, r, a, h, p, Object.freeze(u), Object.freeze(l), Object.freeze(d)) + } + static load(e) { + let t; + if (e instanceof Uint8Array) t = Promise.resolve(e); + else { + const r = e; + if ("undefined" != typeof process && process.versions && process.versions.node) { + const e = n(747); + t = Promise.resolve(e.readFileSync(r)) + } else t = fetch(r).then((e => e.arrayBuffer().then((t => { + if (e.ok) return new Uint8Array(t); { + const n = new TextDecoder("utf-8").decode(t); + throw new Error(`Language.load failed with status ${e.status}.\n\n${n}`) + } + })))) + } + const r = "function" == typeof loadSideModule ? loadSideModule : Te; + return t.then((e => r(e, { + loadAsync: !0 + }))).then((e => { + const t = Object.keys(e), + n = t.find((e => ut.test(e) && !e.includes("external_scanner_"))); + n || console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`); + const r = e[n](); + return new bt(et, r) + })) + } + } + class kt { + constructor(e, t, n, r, o, i, s, a) { + xt(e), this[0] = t, this.captureNames = n, this.textPredicates = r, this.predicates = o, this.setProperties = i, this.assertedProperties = s, this.refutedProperties = a, this.exceededMatchLimit = !1 + } + delete() { + Ze._ts_query_delete(this[0]), this[0] = 0 + } + matches(e, t, n) { + t || (t = it), n || (n = it), Ct(e), Ze._ts_query_matches_wasm(this[0], e.tree[0], t.row, t.column, n.row, n.column); + const r = P(pt, "i32"), + o = P(pt + tt, "i32"), + i = P(pt + 2 * tt, "i32"), + s = new Array(r); + this.exceededMatchLimit = !!i; + let a = 0, + c = o; + for (let t = 0; t < r; t++) { + const n = P(c, "i32"), + r = P(c += tt, "i32"); + c += tt; + const o = new Array(r); + if (c = jt(this, e.tree, c, o), this.textPredicates[n].every((e => e(o)))) { + s[a++] = { + pattern: n, + captures: o + }; + const e = this.setProperties[n]; + e && (s[t].setProperties = e); + const r = this.assertedProperties[n]; + r && (s[t].assertedProperties = r); + const i = this.refutedProperties[n]; + i && (s[t].refutedProperties = i) + } + } + return s.length = a, Ze._free(o), s + } + captures(e, t, n) { + t || (t = it), n || (n = it), Ct(e), Ze._ts_query_captures_wasm(this[0], e.tree[0], t.row, t.column, n.row, n.column); + const r = P(pt, "i32"), + o = P(pt + tt, "i32"), + i = P(pt + 2 * tt, "i32"), + s = []; + this.exceededMatchLimit = !!i; + const a = []; + let c = o; + for (let t = 0; t < r; t++) { + const t = P(c, "i32"), + n = P(c += tt, "i32"), + r = P(c += tt, "i32"); + if (c += tt, a.length = n, c = jt(this, e.tree, c, a), this.textPredicates[t].every((e => e(a)))) { + const e = a[r], + n = this.setProperties[t]; + n && (e.setProperties = n); + const o = this.assertedProperties[t]; + o && (e.assertedProperties = o); + const i = this.refutedProperties[t]; + i && (e.refutedProperties = i), s.push(e) + } + } + return Ze._free(o), s + } + predicatesForPattern(e) { + return this.predicates[e] + } + didExceedMatchLimit() { + return this.exceededMatchLimit + } + } + + function wt(e, t, n) { + const r = n - t; + let o = e.textCallback(t, null, n); + for (t += o.length; t < n;) { + const r = e.textCallback(t, null, n); + if (!(r && r.length > 0)) break; + t += r.length, o += r + } + return t > n && (o = o.slice(0, r)), o + } + + function jt(e, t, n, r) { + for (let o = 0, i = r.length; o < i; o++) { + const i = P(n, "i32"), + s = St(t, n += tt); + n += nt, r[o] = { + name: e.captureNames[i], + node: s + } + } + return n + } + + function xt(e) { + if (e !== et) throw new Error("Illegal constructor") + } + + function Et(e) { + return e && "number" == typeof e.row && "number" == typeof e.column + } + + function Ct(e) { + let t = pt; + T(t, e.id, "i32"), T(t += tt, e.startIndex, "i32"), T(t += tt, e.startPosition.row, "i32"), T(t += tt, e.startPosition.column, "i32"), T(t += tt, e[0], "i32") + } + + function St(e, t = pt) { + const n = P(t, "i32"); + if (0 === n) return null; + const r = P(t += tt, "i32"), + o = P(t += tt, "i32"), + i = P(t += tt, "i32"), + s = P(t += tt, "i32"), + a = new _t(et, e); + return a.id = n, a.startIndex = r, a.startPosition = { + row: o, + column: i + }, a[0] = s, a + } + + function Tt(e, t = pt) { + T(t + 0 * tt, e[0], "i32"), T(t + 1 * tt, e[1], "i32"), T(t + 2 * tt, e[2], "i32") + } + + function Pt(e) { + e[0] = P(pt + 0 * tt, "i32"), e[1] = P(pt + 1 * tt, "i32"), e[2] = P(pt + 2 * tt, "i32") + } + + function It(e, t) { + T(e, t.row, "i32"), T(e + tt, t.column, "i32") + } + + function Rt(e) { + return { + row: P(e, "i32"), + column: P(e + tt, "i32") + } + } + + function Ot(e, t) { + It(e, t.startPosition), It(e += rt, t.endPosition), T(e += rt, t.startIndex, "i32"), T(e += tt, t.endIndex, "i32"), e += tt + } + + function At(e) { + const t = {}; + return t.startPosition = Rt(e), e += rt, t.endPosition = Rt(e), e += rt, t.startIndex = P(e, "i32"), e += tt, t.endIndex = P(e, "i32"), t + } + return gt.Language = bt, gt.Parser = gt, gt + }) ? r.apply(t, []) : r) || (e.exports = o) + }, + 94: (e, t, n) => { + const r = n(747), + o = n(622), + i = (e, t) => Array.from(Array(t).keys()).slice(e), + s = e => e.charCodeAt(0), + a = new TextDecoder("utf-8"), + c = e => a.decode(new Uint8Array(e)); + + function u(e) { + const t = new Set; + let n = e[0]; + for (let r = 1; r < e.length; r++) { + const o = e[r]; + t.add([n, o]), n = o + } + return t + } + const l = new TextEncoder("utf-8"), + d = /'s|'t|'re|'ve|'m|'ll|'d| ?\p{L}+| ?\p{N}+| ?[^\s\p{L}\p{N}]+|\s+(?!\S)|\s+/gu; + let p = !1; + const h = {}; + let m, f = {}, + g = new Map, + y = new Map; + const _ = new Map; + + function v() { + if (p) return; + f = JSON.parse(r.readFileSync(o.resolve(__dirname, "..", "dist", "tokenizer.json"))), Object.keys(f).map((e => { + h[f[e]] = e + })); + const e = r.readFileSync(o.resolve(__dirname, "..", "dist", "vocab.bpe"), "utf-8").split("\n"), + t = e.slice(1, e.length - 1).map((e => e.split(/(\s+)/).filter((function(e) { + return e.trim().length > 0 + })))); + m = ((e, t) => { + const n = {}; + return e.map(((r, o) => { + n[e[o]] = t[o] + })), n + })(t, i(0, t.length)), + function(e) { + const t = i(s("!"), s("~") + 1).concat(i(s("¡"), s("¬") + 1), i(s("®"), s("ÿ") + 1)); + let n = t.slice(), + r = 0; + for (let e = 0; e < 256; e++) t.includes(e) || (t.push(e), n.push(256 + r), r += 1); + n = n.map((e => (e => String.fromCharCode(e))(e))); + for (let r = 0; r < t.length; r++) e.set(t[r], n[r]) + }(g), g.forEach((function(e, t, n) { + y.set(e, t) + })), p = !0 + } + + function b(e) { + if (_.has(e)) return _.get(e); + let t = (r = e, Array.from(l.encode(r))).map((e => g.get(e))), + n = u(t); + var r; + if (!n) return t.map((e => f[e])); + for (;;) { + const e = {}; + Array.from(n).map((t => { + const n = m[t]; + e[isNaN(n) ? 1e11 : n] = t + })); + const r = e[Math.min(...Object.keys(e).map((e => parseInt(e))))]; + if (!(r in m)) break; + const o = r[0], + i = r[1]; + let s = [], + a = 0; + for (; a < t.length;) { + const e = t.indexOf(o, a); + if (-1 === e) { + Array.prototype.push.apply(s, t.slice(a)); + break + } + Array.prototype.push.apply(s, t.slice(a, e)), a = e, t[a] === o && a < t.length - 1 && t[a + 1] === i ? (s.push(o + i), a += 2) : (s.push(t[a]), a += 1) + } + if (t = s, 1 === t.length) break; + n = u(t) + } + return tokens = t.map((e => f[e])), _.set(e, tokens), tokens + } + + function k(e) { + v(); + let t = []; + const n = Array.from(e.matchAll(d)).map((e => e[0])); + for (let e of n) { + const n = b(e); + Array.prototype.push.apply(t, n) + } + return t + } + + function w(e, t) { + if (t <= 0) return ""; + let n = Math.min(e.length, 4 * t), + r = e.slice(-n), + o = k(r); + for (; o.length < t + 2 && n < e.length;) n = Math.min(e.length, n + 1 * t), r = e.slice(-n), o = k(r); + return o.length < t ? e : (o = o.slice(-t), j(o)) + } + + function j(e) { + v(); + let t = e.map((e => h[e])).join(""); + return t = c(t.split("").map((e => y.get(e)))), t + } + e.exports = { + prepareTokenizer: v, + tokenize: k, + tokenize_strings: function(e) { + return k(e).map((e => c(h[e].split("").map((e => y.get(e)))))) + }, + tokenLength: function(e) { + return k(e).length + }, + takeLastTokens: w, + takeLastLinesTokens: function(e, t) { + const n = w(e, t); + if (n.length === e.length || "\n" === e[e.length - n.length - 1]) return n; + let r = n.indexOf("\n"); + return n.substring(r + 1) + }, + takeFirstTokens: function(e, t) { + if (t <= 0) return ""; + let n = Math.min(e.length, 4 * t), + r = e.slice(0, n), + o = k(r); + for (; o.length < t + 2 && n < e.length;) n = Math.min(e.length, n + 1 * t), r = e.slice(0, n), o = k(r); + return o.length < t ? e : (o = o.slice(0, t), j(o)) + }, + detokenize: j + } + }, + 747: e => { + "use strict"; + e.exports = n(7147) + }, + 622: e => { + "use strict"; + e.exports = n(1017) + }, + 13: e => { + "use strict"; + e.exports = n(1267) + } + }, o = {}, i = function e(t) { + var n = o[t]; + if (void 0 !== n) return n.exports; + var i = o[t] = { + exports: {} + }; + return r[t].call(i.exports, i, i.exports, e), i.exports + }(563), e.exports = i + }, + 5037: (e, t, n) => { + const r = n(7147), + o = n(1017), + i = (e, t) => Array.from(Array(t).keys()).slice(e), + s = e => e.charCodeAt(0), + a = new TextDecoder("utf-8"), + c = e => a.decode(new Uint8Array(e)); + + function u(e) { + const t = new Set; + let n = e[0]; + for (let r = 1; r < e.length; r++) { + const o = e[r]; + t.add([n, o]), n = o + } + return t + } + const l = new TextEncoder("utf-8"); + const d = /'s|'t|'re|'ve|'m|'ll|'d| ?\p{L}+| ?\p{N}+| ?[^\s\p{L}\p{N}]+|\s+(?!\S)|\s+/gu; + let p = !1; + const h = {}; + let m, f = {}, + g = new Map, + y = new Map; + const _ = new Map; + + function v() { + if (p) return; + f = JSON.parse(r.readFileSync(o.resolve(__dirname, "..", "dist", "tokenizer.json"))), Object.keys(f).map((e => { + h[f[e]] = e + })); + const e = r.readFileSync(o.resolve(__dirname, "..", "dist", "vocab.bpe"), "utf-8").split("\n"), + t = e.slice(1, e.length - 1).map((e => e.split(/(\s+)/).filter((function(e) { + return e.trim().length > 0 + })))); + m = ((e, t) => { + const n = {}; + return e.map(((r, o) => { + n[e[o]] = t[o] + })), n + })(t, i(0, t.length)), + function(e) { + const t = i(s("!"), s("~") + 1).concat(i(s("¡"), s("¬") + 1), i(s("®"), s("ÿ") + 1)); + let n = t.slice(), + r = 0; + for (let e = 0; e < 256; e++) t.includes(e) || (t.push(e), n.push(256 + r), r += 1); + n = n.map((e => (e => String.fromCharCode(e))(e))); + for (let r = 0; r < t.length; r++) e.set(t[r], n[r]) + }(g), g.forEach((function(e, t, n) { + y.set(e, t) + })), p = !0 + } + + function b(e) { + if (_.has(e)) return _.get(e); + let t = (r = e, Array.from(l.encode(r))).map((e => g.get(e))), + n = u(t); + var r; + if (!n) return t.map((e => f[e])); + for (;;) { + const e = {}; + Array.from(n).map((t => { + const n = m[t]; + e[isNaN(n) ? 1e11 : n] = t + })); + const r = e[Math.min(...Object.keys(e).map((e => parseInt(e))))]; + if (!(r in m)) break; + const o = r[0], + i = r[1]; + let s = [], + a = 0; + for (; a < t.length;) { + const e = t.indexOf(o, a); + if (-1 === e) { + Array.prototype.push.apply(s, t.slice(a)); + break + } + Array.prototype.push.apply(s, t.slice(a, e)), a = e, t[a] === o && a < t.length - 1 && t[a + 1] === i ? (s.push(o + i), a += 2) : (s.push(t[a]), a += 1) + } + if (t = s, 1 === t.length) break; + n = u(t) + } + return tokens = t.map((e => f[e])), _.set(e, tokens), tokens + } + + function k(e) { + v(); + let t = []; + const n = Array.from(e.matchAll(d)).map((e => e[0])); + for (let e of n) { + const n = b(e); + Array.prototype.push.apply(t, n) + } + return t + } + + function w(e, t) { + if (t <= 0) return ""; + let n = Math.min(e.length, 4 * t), + r = e.slice(-n), + o = k(r); + for (; o.length < t + 2 && n < e.length;) n = Math.min(e.length, n + 1 * t), r = e.slice(-n), o = k(r); + return o.length < t ? e : (o = o.slice(-t), j(o)) + } + + function j(e) { + v(); + let t = e.map((e => h[e])).join(""); + return t = c(t.split("").map((e => y.get(e)))), t + } + e.exports = { + prepareTokenizer: v, + tokenize: k, + tokenize_strings: function(e) { + return k(e).map((e => c(h[e].split("").map((e => y.get(e)))))) + }, + tokenLength: function(e) { + return k(e).length + }, + takeLastTokens: w, + takeLastLinesTokens: function(e, t) { + const n = w(e, t); + if (n.length === e.length || "\n" === e[e.length - n.length - 1]) return n; + let r = n.indexOf("\n"); + return n.substring(r + 1) + }, + takeFirstTokens: function(e, t) { + if (t <= 0) return ""; + let n = Math.min(e.length, 4 * t), + r = e.slice(0, n), + o = k(r); + for (; o.length < t + 2 && n < e.length;) n = Math.min(e.length, n + 1 * t), r = e.slice(0, n), o = k(r); + return o.length < t ? e : (o = o.slice(0, t), j(o)) + }, + detokenize: j + } + }, + 8028: e => { + "use strict"; + e.exports = require("@opentelemetry/tracing") + }, + 9166: e => { + "use strict"; + e.exports = require("applicationinsights-native-metrics") + }, + 9491: e => { + "use strict"; + e.exports = require("assert") + }, + 852: e => { + "use strict"; + e.exports = require("async_hooks") + }, + 4300: e => { + "use strict"; + e.exports = require("buffer") + }, + 2081: e => { + "use strict"; + e.exports = require("child_process") + }, + 6206: e => { + "use strict"; + e.exports = require("console") + }, + 2057: e => { + "use strict"; + e.exports = require("constants") + }, + 6113: e => { + "use strict"; + e.exports = require("crypto") + }, + 9523: e => { + "use strict"; + e.exports = require("dns") + }, + 2361: e => { + "use strict"; + e.exports = require("events") + }, + 7147: e => { + "use strict"; + e.exports = require("fs") + }, + 3685: e => { + "use strict"; + e.exports = require("http") + }, + 5158: e => { + "use strict"; + e.exports = require("http2") + }, + 5687: e => { + "use strict"; + e.exports = require("https") + }, + 8188: e => { + "use strict"; + e.exports = require("module") + }, + 1808: e => { + "use strict"; + e.exports = require("net") + }, + 2037: e => { + "use strict"; + e.exports = require("os") + }, + 1017: e => { + "use strict"; + e.exports = require("path") + }, + 7282: e => { + "use strict"; + e.exports = require("process") + }, + 5477: e => { + "use strict"; + e.exports = require("punycode") + }, + 2781: e => { + "use strict"; + e.exports = require("stream") + }, + 9512: e => { + "use strict"; + e.exports = require("timers") + }, + 4404: e => { + "use strict"; + e.exports = require("tls") + }, + 6224: e => { + "use strict"; + e.exports = require("tty") + }, + 7310: e => { + "use strict"; + e.exports = require("url") + }, + 3837: e => { + "use strict"; + e.exports = require("util") + }, + 1267: e => { + "use strict"; + e.exports = require("worker_threads") + }, + 9796: e => { + "use strict"; + e.exports = require("zlib") + }, + 1143: e => { + "use strict"; + e.exports = JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}') + }, + 1512: e => { + "use strict"; + e.exports = JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}') + }, + 3186: e => { + "use strict"; + e.exports = { + i8: "1.7.6" + } + }, + 9843: e => { + "use strict"; + e.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}') + }, + 9674: e => { + "use strict"; + e.exports = { + i8: "0.2.0" + } + }, + 3763: e => { + "use strict"; + e.exports = JSON.parse('["ac","com.ac","edu.ac","gov.ac","net.ac","mil.ac","org.ac","ad","nom.ad","ae","co.ae","net.ae","org.ae","sch.ae","ac.ae","gov.ae","mil.ae","aero","accident-investigation.aero","accident-prevention.aero","aerobatic.aero","aeroclub.aero","aerodrome.aero","agents.aero","aircraft.aero","airline.aero","airport.aero","air-surveillance.aero","airtraffic.aero","air-traffic-control.aero","ambulance.aero","amusement.aero","association.aero","author.aero","ballooning.aero","broker.aero","caa.aero","cargo.aero","catering.aero","certification.aero","championship.aero","charter.aero","civilaviation.aero","club.aero","conference.aero","consultant.aero","consulting.aero","control.aero","council.aero","crew.aero","design.aero","dgca.aero","educator.aero","emergency.aero","engine.aero","engineer.aero","entertainment.aero","equipment.aero","exchange.aero","express.aero","federation.aero","flight.aero","freight.aero","fuel.aero","gliding.aero","government.aero","groundhandling.aero","group.aero","hanggliding.aero","homebuilt.aero","insurance.aero","journal.aero","journalist.aero","leasing.aero","logistics.aero","magazine.aero","maintenance.aero","media.aero","microlight.aero","modelling.aero","navigation.aero","parachuting.aero","paragliding.aero","passenger-association.aero","pilot.aero","press.aero","production.aero","recreation.aero","repbody.aero","res.aero","research.aero","rotorcraft.aero","safety.aero","scientist.aero","services.aero","show.aero","skydiving.aero","software.aero","student.aero","trader.aero","trading.aero","trainer.aero","union.aero","workinggroup.aero","works.aero","af","gov.af","com.af","org.af","net.af","edu.af","ag","com.ag","org.ag","net.ag","co.ag","nom.ag","ai","off.ai","com.ai","net.ai","org.ai","al","com.al","edu.al","gov.al","mil.al","net.al","org.al","am","co.am","com.am","commune.am","net.am","org.am","ao","ed.ao","gv.ao","og.ao","co.ao","pb.ao","it.ao","aq","ar","com.ar","edu.ar","gob.ar","gov.ar","int.ar","mil.ar","musica.ar","net.ar","org.ar","tur.ar","arpa","e164.arpa","in-addr.arpa","ip6.arpa","iris.arpa","uri.arpa","urn.arpa","as","gov.as","asia","at","ac.at","co.at","gv.at","or.at","au","com.au","net.au","org.au","edu.au","gov.au","asn.au","id.au","info.au","conf.au","oz.au","act.au","nsw.au","nt.au","qld.au","sa.au","tas.au","vic.au","wa.au","act.edu.au","catholic.edu.au","nsw.edu.au","nt.edu.au","qld.edu.au","sa.edu.au","tas.edu.au","vic.edu.au","wa.edu.au","qld.gov.au","sa.gov.au","tas.gov.au","vic.gov.au","wa.gov.au","education.tas.edu.au","schools.nsw.edu.au","aw","com.aw","ax","az","com.az","net.az","int.az","gov.az","org.az","edu.az","info.az","pp.az","mil.az","name.az","pro.az","biz.az","ba","com.ba","edu.ba","gov.ba","mil.ba","net.ba","org.ba","bb","biz.bb","co.bb","com.bb","edu.bb","gov.bb","info.bb","net.bb","org.bb","store.bb","tv.bb","*.bd","be","ac.be","bf","gov.bf","bg","a.bg","b.bg","c.bg","d.bg","e.bg","f.bg","g.bg","h.bg","i.bg","j.bg","k.bg","l.bg","m.bg","n.bg","o.bg","p.bg","q.bg","r.bg","s.bg","t.bg","u.bg","v.bg","w.bg","x.bg","y.bg","z.bg","0.bg","1.bg","2.bg","3.bg","4.bg","5.bg","6.bg","7.bg","8.bg","9.bg","bh","com.bh","edu.bh","net.bh","org.bh","gov.bh","bi","co.bi","com.bi","edu.bi","or.bi","org.bi","biz","bj","asso.bj","barreau.bj","gouv.bj","bm","com.bm","edu.bm","gov.bm","net.bm","org.bm","bn","com.bn","edu.bn","gov.bn","net.bn","org.bn","bo","com.bo","edu.bo","gob.bo","int.bo","org.bo","net.bo","mil.bo","tv.bo","web.bo","academia.bo","agro.bo","arte.bo","blog.bo","bolivia.bo","ciencia.bo","cooperativa.bo","democracia.bo","deporte.bo","ecologia.bo","economia.bo","empresa.bo","indigena.bo","industria.bo","info.bo","medicina.bo","movimiento.bo","musica.bo","natural.bo","nombre.bo","noticias.bo","patria.bo","politica.bo","profesional.bo","plurinacional.bo","pueblo.bo","revista.bo","salud.bo","tecnologia.bo","tksat.bo","transporte.bo","wiki.bo","br","9guacu.br","abc.br","adm.br","adv.br","agr.br","aju.br","am.br","anani.br","aparecida.br","arq.br","art.br","ato.br","b.br","barueri.br","belem.br","bhz.br","bio.br","blog.br","bmd.br","boavista.br","bsb.br","campinagrande.br","campinas.br","caxias.br","cim.br","cng.br","cnt.br","com.br","contagem.br","coop.br","cri.br","cuiaba.br","curitiba.br","def.br","ecn.br","eco.br","edu.br","emp.br","eng.br","esp.br","etc.br","eti.br","far.br","feira.br","flog.br","floripa.br","fm.br","fnd.br","fortal.br","fot.br","foz.br","fst.br","g12.br","ggf.br","goiania.br","gov.br","ac.gov.br","al.gov.br","am.gov.br","ap.gov.br","ba.gov.br","ce.gov.br","df.gov.br","es.gov.br","go.gov.br","ma.gov.br","mg.gov.br","ms.gov.br","mt.gov.br","pa.gov.br","pb.gov.br","pe.gov.br","pi.gov.br","pr.gov.br","rj.gov.br","rn.gov.br","ro.gov.br","rr.gov.br","rs.gov.br","sc.gov.br","se.gov.br","sp.gov.br","to.gov.br","gru.br","imb.br","ind.br","inf.br","jab.br","jampa.br","jdf.br","joinville.br","jor.br","jus.br","leg.br","lel.br","londrina.br","macapa.br","maceio.br","manaus.br","maringa.br","mat.br","med.br","mil.br","morena.br","mp.br","mus.br","natal.br","net.br","niteroi.br","*.nom.br","not.br","ntr.br","odo.br","ong.br","org.br","osasco.br","palmas.br","poa.br","ppg.br","pro.br","psc.br","psi.br","pvh.br","qsl.br","radio.br","rec.br","recife.br","ribeirao.br","rio.br","riobranco.br","riopreto.br","salvador.br","sampa.br","santamaria.br","santoandre.br","saobernardo.br","saogonca.br","sjc.br","slg.br","slz.br","sorocaba.br","srv.br","taxi.br","tc.br","teo.br","the.br","tmp.br","trd.br","tur.br","tv.br","udi.br","vet.br","vix.br","vlog.br","wiki.br","zlg.br","bs","com.bs","net.bs","org.bs","edu.bs","gov.bs","bt","com.bt","edu.bt","gov.bt","net.bt","org.bt","bv","bw","co.bw","org.bw","by","gov.by","mil.by","com.by","of.by","bz","com.bz","net.bz","org.bz","edu.bz","gov.bz","ca","ab.ca","bc.ca","mb.ca","nb.ca","nf.ca","nl.ca","ns.ca","nt.ca","nu.ca","on.ca","pe.ca","qc.ca","sk.ca","yk.ca","gc.ca","cat","cc","cd","gov.cd","cf","cg","ch","ci","org.ci","or.ci","com.ci","co.ci","edu.ci","ed.ci","ac.ci","net.ci","go.ci","asso.ci","aéroport.ci","int.ci","presse.ci","md.ci","gouv.ci","*.ck","!www.ck","cl","aprendemas.cl","co.cl","gob.cl","gov.cl","mil.cl","cm","co.cm","com.cm","gov.cm","net.cm","cn","ac.cn","com.cn","edu.cn","gov.cn","net.cn","org.cn","mil.cn","公司.cn","网络.cn","網絡.cn","ah.cn","bj.cn","cq.cn","fj.cn","gd.cn","gs.cn","gz.cn","gx.cn","ha.cn","hb.cn","he.cn","hi.cn","hl.cn","hn.cn","jl.cn","js.cn","jx.cn","ln.cn","nm.cn","nx.cn","qh.cn","sc.cn","sd.cn","sh.cn","sn.cn","sx.cn","tj.cn","xj.cn","xz.cn","yn.cn","zj.cn","hk.cn","mo.cn","tw.cn","co","arts.co","com.co","edu.co","firm.co","gov.co","info.co","int.co","mil.co","net.co","nom.co","org.co","rec.co","web.co","com","coop","cr","ac.cr","co.cr","ed.cr","fi.cr","go.cr","or.cr","sa.cr","cu","com.cu","edu.cu","org.cu","net.cu","gov.cu","inf.cu","cv","cw","com.cw","edu.cw","net.cw","org.cw","cx","gov.cx","cy","ac.cy","biz.cy","com.cy","ekloges.cy","gov.cy","ltd.cy","name.cy","net.cy","org.cy","parliament.cy","press.cy","pro.cy","tm.cy","cz","de","dj","dk","dm","com.dm","net.dm","org.dm","edu.dm","gov.dm","do","art.do","com.do","edu.do","gob.do","gov.do","mil.do","net.do","org.do","sld.do","web.do","dz","com.dz","org.dz","net.dz","gov.dz","edu.dz","asso.dz","pol.dz","art.dz","ec","com.ec","info.ec","net.ec","fin.ec","k12.ec","med.ec","pro.ec","org.ec","edu.ec","gov.ec","gob.ec","mil.ec","edu","ee","edu.ee","gov.ee","riik.ee","lib.ee","med.ee","com.ee","pri.ee","aip.ee","org.ee","fie.ee","eg","com.eg","edu.eg","eun.eg","gov.eg","mil.eg","name.eg","net.eg","org.eg","sci.eg","*.er","es","com.es","nom.es","org.es","gob.es","edu.es","et","com.et","gov.et","org.et","edu.et","biz.et","name.et","info.et","net.et","eu","fi","aland.fi","fj","ac.fj","biz.fj","com.fj","gov.fj","info.fj","mil.fj","name.fj","net.fj","org.fj","pro.fj","*.fk","fm","fo","fr","asso.fr","com.fr","gouv.fr","nom.fr","prd.fr","tm.fr","aeroport.fr","avocat.fr","avoues.fr","cci.fr","chambagri.fr","chirurgiens-dentistes.fr","experts-comptables.fr","geometre-expert.fr","greta.fr","huissier-justice.fr","medecin.fr","notaires.fr","pharmacien.fr","port.fr","veterinaire.fr","ga","gb","gd","ge","com.ge","edu.ge","gov.ge","org.ge","mil.ge","net.ge","pvt.ge","gf","gg","co.gg","net.gg","org.gg","gh","com.gh","edu.gh","gov.gh","org.gh","mil.gh","gi","com.gi","ltd.gi","gov.gi","mod.gi","edu.gi","org.gi","gl","co.gl","com.gl","edu.gl","net.gl","org.gl","gm","gn","ac.gn","com.gn","edu.gn","gov.gn","org.gn","net.gn","gov","gp","com.gp","net.gp","mobi.gp","edu.gp","org.gp","asso.gp","gq","gr","com.gr","edu.gr","net.gr","org.gr","gov.gr","gs","gt","com.gt","edu.gt","gob.gt","ind.gt","mil.gt","net.gt","org.gt","gu","com.gu","edu.gu","gov.gu","guam.gu","info.gu","net.gu","org.gu","web.gu","gw","gy","co.gy","com.gy","edu.gy","gov.gy","net.gy","org.gy","hk","com.hk","edu.hk","gov.hk","idv.hk","net.hk","org.hk","公司.hk","教育.hk","敎育.hk","政府.hk","個人.hk","个人.hk","箇人.hk","網络.hk","网络.hk","组織.hk","網絡.hk","网絡.hk","组织.hk","組織.hk","組织.hk","hm","hn","com.hn","edu.hn","org.hn","net.hn","mil.hn","gob.hn","hr","iz.hr","from.hr","name.hr","com.hr","ht","com.ht","shop.ht","firm.ht","info.ht","adult.ht","net.ht","pro.ht","org.ht","med.ht","art.ht","coop.ht","pol.ht","asso.ht","edu.ht","rel.ht","gouv.ht","perso.ht","hu","co.hu","info.hu","org.hu","priv.hu","sport.hu","tm.hu","2000.hu","agrar.hu","bolt.hu","casino.hu","city.hu","erotica.hu","erotika.hu","film.hu","forum.hu","games.hu","hotel.hu","ingatlan.hu","jogasz.hu","konyvelo.hu","lakas.hu","media.hu","news.hu","reklam.hu","sex.hu","shop.hu","suli.hu","szex.hu","tozsde.hu","utazas.hu","video.hu","id","ac.id","biz.id","co.id","desa.id","go.id","mil.id","my.id","net.id","or.id","ponpes.id","sch.id","web.id","ie","gov.ie","il","ac.il","co.il","gov.il","idf.il","k12.il","muni.il","net.il","org.il","im","ac.im","co.im","com.im","ltd.co.im","net.im","org.im","plc.co.im","tt.im","tv.im","in","co.in","firm.in","net.in","org.in","gen.in","ind.in","nic.in","ac.in","edu.in","res.in","gov.in","mil.in","info","int","eu.int","io","com.io","iq","gov.iq","edu.iq","mil.iq","com.iq","org.iq","net.iq","ir","ac.ir","co.ir","gov.ir","id.ir","net.ir","org.ir","sch.ir","ایران.ir","ايران.ir","is","net.is","com.is","edu.is","gov.is","org.is","int.is","it","gov.it","edu.it","abr.it","abruzzo.it","aosta-valley.it","aostavalley.it","bas.it","basilicata.it","cal.it","calabria.it","cam.it","campania.it","emilia-romagna.it","emiliaromagna.it","emr.it","friuli-v-giulia.it","friuli-ve-giulia.it","friuli-vegiulia.it","friuli-venezia-giulia.it","friuli-veneziagiulia.it","friuli-vgiulia.it","friuliv-giulia.it","friulive-giulia.it","friulivegiulia.it","friulivenezia-giulia.it","friuliveneziagiulia.it","friulivgiulia.it","fvg.it","laz.it","lazio.it","lig.it","liguria.it","lom.it","lombardia.it","lombardy.it","lucania.it","mar.it","marche.it","mol.it","molise.it","piedmont.it","piemonte.it","pmn.it","pug.it","puglia.it","sar.it","sardegna.it","sardinia.it","sic.it","sicilia.it","sicily.it","taa.it","tos.it","toscana.it","trentin-sud-tirol.it","trentin-süd-tirol.it","trentin-sudtirol.it","trentin-südtirol.it","trentin-sued-tirol.it","trentin-suedtirol.it","trentino-a-adige.it","trentino-aadige.it","trentino-alto-adige.it","trentino-altoadige.it","trentino-s-tirol.it","trentino-stirol.it","trentino-sud-tirol.it","trentino-süd-tirol.it","trentino-sudtirol.it","trentino-südtirol.it","trentino-sued-tirol.it","trentino-suedtirol.it","trentino.it","trentinoa-adige.it","trentinoaadige.it","trentinoalto-adige.it","trentinoaltoadige.it","trentinos-tirol.it","trentinostirol.it","trentinosud-tirol.it","trentinosüd-tirol.it","trentinosudtirol.it","trentinosüdtirol.it","trentinosued-tirol.it","trentinosuedtirol.it","trentinsud-tirol.it","trentinsüd-tirol.it","trentinsudtirol.it","trentinsüdtirol.it","trentinsued-tirol.it","trentinsuedtirol.it","tuscany.it","umb.it","umbria.it","val-d-aosta.it","val-daosta.it","vald-aosta.it","valdaosta.it","valle-aosta.it","valle-d-aosta.it","valle-daosta.it","valleaosta.it","valled-aosta.it","valledaosta.it","vallee-aoste.it","vallée-aoste.it","vallee-d-aoste.it","vallée-d-aoste.it","valleeaoste.it","valléeaoste.it","valleedaoste.it","valléedaoste.it","vao.it","vda.it","ven.it","veneto.it","ag.it","agrigento.it","al.it","alessandria.it","alto-adige.it","altoadige.it","an.it","ancona.it","andria-barletta-trani.it","andria-trani-barletta.it","andriabarlettatrani.it","andriatranibarletta.it","ao.it","aosta.it","aoste.it","ap.it","aq.it","aquila.it","ar.it","arezzo.it","ascoli-piceno.it","ascolipiceno.it","asti.it","at.it","av.it","avellino.it","ba.it","balsan-sudtirol.it","balsan-südtirol.it","balsan-suedtirol.it","balsan.it","bari.it","barletta-trani-andria.it","barlettatraniandria.it","belluno.it","benevento.it","bergamo.it","bg.it","bi.it","biella.it","bl.it","bn.it","bo.it","bologna.it","bolzano-altoadige.it","bolzano.it","bozen-sudtirol.it","bozen-südtirol.it","bozen-suedtirol.it","bozen.it","br.it","brescia.it","brindisi.it","bs.it","bt.it","bulsan-sudtirol.it","bulsan-südtirol.it","bulsan-suedtirol.it","bulsan.it","bz.it","ca.it","cagliari.it","caltanissetta.it","campidano-medio.it","campidanomedio.it","campobasso.it","carbonia-iglesias.it","carboniaiglesias.it","carrara-massa.it","carraramassa.it","caserta.it","catania.it","catanzaro.it","cb.it","ce.it","cesena-forli.it","cesena-forlì.it","cesenaforli.it","cesenaforlì.it","ch.it","chieti.it","ci.it","cl.it","cn.it","co.it","como.it","cosenza.it","cr.it","cremona.it","crotone.it","cs.it","ct.it","cuneo.it","cz.it","dell-ogliastra.it","dellogliastra.it","en.it","enna.it","fc.it","fe.it","fermo.it","ferrara.it","fg.it","fi.it","firenze.it","florence.it","fm.it","foggia.it","forli-cesena.it","forlì-cesena.it","forlicesena.it","forlìcesena.it","fr.it","frosinone.it","ge.it","genoa.it","genova.it","go.it","gorizia.it","gr.it","grosseto.it","iglesias-carbonia.it","iglesiascarbonia.it","im.it","imperia.it","is.it","isernia.it","kr.it","la-spezia.it","laquila.it","laspezia.it","latina.it","lc.it","le.it","lecce.it","lecco.it","li.it","livorno.it","lo.it","lodi.it","lt.it","lu.it","lucca.it","macerata.it","mantova.it","massa-carrara.it","massacarrara.it","matera.it","mb.it","mc.it","me.it","medio-campidano.it","mediocampidano.it","messina.it","mi.it","milan.it","milano.it","mn.it","mo.it","modena.it","monza-brianza.it","monza-e-della-brianza.it","monza.it","monzabrianza.it","monzaebrianza.it","monzaedellabrianza.it","ms.it","mt.it","na.it","naples.it","napoli.it","no.it","novara.it","nu.it","nuoro.it","og.it","ogliastra.it","olbia-tempio.it","olbiatempio.it","or.it","oristano.it","ot.it","pa.it","padova.it","padua.it","palermo.it","parma.it","pavia.it","pc.it","pd.it","pe.it","perugia.it","pesaro-urbino.it","pesarourbino.it","pescara.it","pg.it","pi.it","piacenza.it","pisa.it","pistoia.it","pn.it","po.it","pordenone.it","potenza.it","pr.it","prato.it","pt.it","pu.it","pv.it","pz.it","ra.it","ragusa.it","ravenna.it","rc.it","re.it","reggio-calabria.it","reggio-emilia.it","reggiocalabria.it","reggioemilia.it","rg.it","ri.it","rieti.it","rimini.it","rm.it","rn.it","ro.it","roma.it","rome.it","rovigo.it","sa.it","salerno.it","sassari.it","savona.it","si.it","siena.it","siracusa.it","so.it","sondrio.it","sp.it","sr.it","ss.it","suedtirol.it","südtirol.it","sv.it","ta.it","taranto.it","te.it","tempio-olbia.it","tempioolbia.it","teramo.it","terni.it","tn.it","to.it","torino.it","tp.it","tr.it","trani-andria-barletta.it","trani-barletta-andria.it","traniandriabarletta.it","tranibarlettaandria.it","trapani.it","trento.it","treviso.it","trieste.it","ts.it","turin.it","tv.it","ud.it","udine.it","urbino-pesaro.it","urbinopesaro.it","va.it","varese.it","vb.it","vc.it","ve.it","venezia.it","venice.it","verbania.it","vercelli.it","verona.it","vi.it","vibo-valentia.it","vibovalentia.it","vicenza.it","viterbo.it","vr.it","vs.it","vt.it","vv.it","je","co.je","net.je","org.je","*.jm","jo","com.jo","org.jo","net.jo","edu.jo","sch.jo","gov.jo","mil.jo","name.jo","jobs","jp","ac.jp","ad.jp","co.jp","ed.jp","go.jp","gr.jp","lg.jp","ne.jp","or.jp","aichi.jp","akita.jp","aomori.jp","chiba.jp","ehime.jp","fukui.jp","fukuoka.jp","fukushima.jp","gifu.jp","gunma.jp","hiroshima.jp","hokkaido.jp","hyogo.jp","ibaraki.jp","ishikawa.jp","iwate.jp","kagawa.jp","kagoshima.jp","kanagawa.jp","kochi.jp","kumamoto.jp","kyoto.jp","mie.jp","miyagi.jp","miyazaki.jp","nagano.jp","nagasaki.jp","nara.jp","niigata.jp","oita.jp","okayama.jp","okinawa.jp","osaka.jp","saga.jp","saitama.jp","shiga.jp","shimane.jp","shizuoka.jp","tochigi.jp","tokushima.jp","tokyo.jp","tottori.jp","toyama.jp","wakayama.jp","yamagata.jp","yamaguchi.jp","yamanashi.jp","栃木.jp","愛知.jp","愛媛.jp","兵庫.jp","熊本.jp","茨城.jp","北海道.jp","千葉.jp","和歌山.jp","長崎.jp","長野.jp","新潟.jp","青森.jp","静岡.jp","東京.jp","石川.jp","埼玉.jp","三重.jp","京都.jp","佐賀.jp","大分.jp","大阪.jp","奈良.jp","宮城.jp","宮崎.jp","富山.jp","山口.jp","山形.jp","山梨.jp","岩手.jp","岐阜.jp","岡山.jp","島根.jp","広島.jp","徳島.jp","沖縄.jp","滋賀.jp","神奈川.jp","福井.jp","福岡.jp","福島.jp","秋田.jp","群馬.jp","香川.jp","高知.jp","鳥取.jp","鹿児島.jp","*.kawasaki.jp","*.kitakyushu.jp","*.kobe.jp","*.nagoya.jp","*.sapporo.jp","*.sendai.jp","*.yokohama.jp","!city.kawasaki.jp","!city.kitakyushu.jp","!city.kobe.jp","!city.nagoya.jp","!city.sapporo.jp","!city.sendai.jp","!city.yokohama.jp","aisai.aichi.jp","ama.aichi.jp","anjo.aichi.jp","asuke.aichi.jp","chiryu.aichi.jp","chita.aichi.jp","fuso.aichi.jp","gamagori.aichi.jp","handa.aichi.jp","hazu.aichi.jp","hekinan.aichi.jp","higashiura.aichi.jp","ichinomiya.aichi.jp","inazawa.aichi.jp","inuyama.aichi.jp","isshiki.aichi.jp","iwakura.aichi.jp","kanie.aichi.jp","kariya.aichi.jp","kasugai.aichi.jp","kira.aichi.jp","kiyosu.aichi.jp","komaki.aichi.jp","konan.aichi.jp","kota.aichi.jp","mihama.aichi.jp","miyoshi.aichi.jp","nishio.aichi.jp","nisshin.aichi.jp","obu.aichi.jp","oguchi.aichi.jp","oharu.aichi.jp","okazaki.aichi.jp","owariasahi.aichi.jp","seto.aichi.jp","shikatsu.aichi.jp","shinshiro.aichi.jp","shitara.aichi.jp","tahara.aichi.jp","takahama.aichi.jp","tobishima.aichi.jp","toei.aichi.jp","togo.aichi.jp","tokai.aichi.jp","tokoname.aichi.jp","toyoake.aichi.jp","toyohashi.aichi.jp","toyokawa.aichi.jp","toyone.aichi.jp","toyota.aichi.jp","tsushima.aichi.jp","yatomi.aichi.jp","akita.akita.jp","daisen.akita.jp","fujisato.akita.jp","gojome.akita.jp","hachirogata.akita.jp","happou.akita.jp","higashinaruse.akita.jp","honjo.akita.jp","honjyo.akita.jp","ikawa.akita.jp","kamikoani.akita.jp","kamioka.akita.jp","katagami.akita.jp","kazuno.akita.jp","kitaakita.akita.jp","kosaka.akita.jp","kyowa.akita.jp","misato.akita.jp","mitane.akita.jp","moriyoshi.akita.jp","nikaho.akita.jp","noshiro.akita.jp","odate.akita.jp","oga.akita.jp","ogata.akita.jp","semboku.akita.jp","yokote.akita.jp","yurihonjo.akita.jp","aomori.aomori.jp","gonohe.aomori.jp","hachinohe.aomori.jp","hashikami.aomori.jp","hiranai.aomori.jp","hirosaki.aomori.jp","itayanagi.aomori.jp","kuroishi.aomori.jp","misawa.aomori.jp","mutsu.aomori.jp","nakadomari.aomori.jp","noheji.aomori.jp","oirase.aomori.jp","owani.aomori.jp","rokunohe.aomori.jp","sannohe.aomori.jp","shichinohe.aomori.jp","shingo.aomori.jp","takko.aomori.jp","towada.aomori.jp","tsugaru.aomori.jp","tsuruta.aomori.jp","abiko.chiba.jp","asahi.chiba.jp","chonan.chiba.jp","chosei.chiba.jp","choshi.chiba.jp","chuo.chiba.jp","funabashi.chiba.jp","futtsu.chiba.jp","hanamigawa.chiba.jp","ichihara.chiba.jp","ichikawa.chiba.jp","ichinomiya.chiba.jp","inzai.chiba.jp","isumi.chiba.jp","kamagaya.chiba.jp","kamogawa.chiba.jp","kashiwa.chiba.jp","katori.chiba.jp","katsuura.chiba.jp","kimitsu.chiba.jp","kisarazu.chiba.jp","kozaki.chiba.jp","kujukuri.chiba.jp","kyonan.chiba.jp","matsudo.chiba.jp","midori.chiba.jp","mihama.chiba.jp","minamiboso.chiba.jp","mobara.chiba.jp","mutsuzawa.chiba.jp","nagara.chiba.jp","nagareyama.chiba.jp","narashino.chiba.jp","narita.chiba.jp","noda.chiba.jp","oamishirasato.chiba.jp","omigawa.chiba.jp","onjuku.chiba.jp","otaki.chiba.jp","sakae.chiba.jp","sakura.chiba.jp","shimofusa.chiba.jp","shirako.chiba.jp","shiroi.chiba.jp","shisui.chiba.jp","sodegaura.chiba.jp","sosa.chiba.jp","tako.chiba.jp","tateyama.chiba.jp","togane.chiba.jp","tohnosho.chiba.jp","tomisato.chiba.jp","urayasu.chiba.jp","yachimata.chiba.jp","yachiyo.chiba.jp","yokaichiba.chiba.jp","yokoshibahikari.chiba.jp","yotsukaido.chiba.jp","ainan.ehime.jp","honai.ehime.jp","ikata.ehime.jp","imabari.ehime.jp","iyo.ehime.jp","kamijima.ehime.jp","kihoku.ehime.jp","kumakogen.ehime.jp","masaki.ehime.jp","matsuno.ehime.jp","matsuyama.ehime.jp","namikata.ehime.jp","niihama.ehime.jp","ozu.ehime.jp","saijo.ehime.jp","seiyo.ehime.jp","shikokuchuo.ehime.jp","tobe.ehime.jp","toon.ehime.jp","uchiko.ehime.jp","uwajima.ehime.jp","yawatahama.ehime.jp","echizen.fukui.jp","eiheiji.fukui.jp","fukui.fukui.jp","ikeda.fukui.jp","katsuyama.fukui.jp","mihama.fukui.jp","minamiechizen.fukui.jp","obama.fukui.jp","ohi.fukui.jp","ono.fukui.jp","sabae.fukui.jp","sakai.fukui.jp","takahama.fukui.jp","tsuruga.fukui.jp","wakasa.fukui.jp","ashiya.fukuoka.jp","buzen.fukuoka.jp","chikugo.fukuoka.jp","chikuho.fukuoka.jp","chikujo.fukuoka.jp","chikushino.fukuoka.jp","chikuzen.fukuoka.jp","chuo.fukuoka.jp","dazaifu.fukuoka.jp","fukuchi.fukuoka.jp","hakata.fukuoka.jp","higashi.fukuoka.jp","hirokawa.fukuoka.jp","hisayama.fukuoka.jp","iizuka.fukuoka.jp","inatsuki.fukuoka.jp","kaho.fukuoka.jp","kasuga.fukuoka.jp","kasuya.fukuoka.jp","kawara.fukuoka.jp","keisen.fukuoka.jp","koga.fukuoka.jp","kurate.fukuoka.jp","kurogi.fukuoka.jp","kurume.fukuoka.jp","minami.fukuoka.jp","miyako.fukuoka.jp","miyama.fukuoka.jp","miyawaka.fukuoka.jp","mizumaki.fukuoka.jp","munakata.fukuoka.jp","nakagawa.fukuoka.jp","nakama.fukuoka.jp","nishi.fukuoka.jp","nogata.fukuoka.jp","ogori.fukuoka.jp","okagaki.fukuoka.jp","okawa.fukuoka.jp","oki.fukuoka.jp","omuta.fukuoka.jp","onga.fukuoka.jp","onojo.fukuoka.jp","oto.fukuoka.jp","saigawa.fukuoka.jp","sasaguri.fukuoka.jp","shingu.fukuoka.jp","shinyoshitomi.fukuoka.jp","shonai.fukuoka.jp","soeda.fukuoka.jp","sue.fukuoka.jp","tachiarai.fukuoka.jp","tagawa.fukuoka.jp","takata.fukuoka.jp","toho.fukuoka.jp","toyotsu.fukuoka.jp","tsuiki.fukuoka.jp","ukiha.fukuoka.jp","umi.fukuoka.jp","usui.fukuoka.jp","yamada.fukuoka.jp","yame.fukuoka.jp","yanagawa.fukuoka.jp","yukuhashi.fukuoka.jp","aizubange.fukushima.jp","aizumisato.fukushima.jp","aizuwakamatsu.fukushima.jp","asakawa.fukushima.jp","bandai.fukushima.jp","date.fukushima.jp","fukushima.fukushima.jp","furudono.fukushima.jp","futaba.fukushima.jp","hanawa.fukushima.jp","higashi.fukushima.jp","hirata.fukushima.jp","hirono.fukushima.jp","iitate.fukushima.jp","inawashiro.fukushima.jp","ishikawa.fukushima.jp","iwaki.fukushima.jp","izumizaki.fukushima.jp","kagamiishi.fukushima.jp","kaneyama.fukushima.jp","kawamata.fukushima.jp","kitakata.fukushima.jp","kitashiobara.fukushima.jp","koori.fukushima.jp","koriyama.fukushima.jp","kunimi.fukushima.jp","miharu.fukushima.jp","mishima.fukushima.jp","namie.fukushima.jp","nango.fukushima.jp","nishiaizu.fukushima.jp","nishigo.fukushima.jp","okuma.fukushima.jp","omotego.fukushima.jp","ono.fukushima.jp","otama.fukushima.jp","samegawa.fukushima.jp","shimogo.fukushima.jp","shirakawa.fukushima.jp","showa.fukushima.jp","soma.fukushima.jp","sukagawa.fukushima.jp","taishin.fukushima.jp","tamakawa.fukushima.jp","tanagura.fukushima.jp","tenei.fukushima.jp","yabuki.fukushima.jp","yamato.fukushima.jp","yamatsuri.fukushima.jp","yanaizu.fukushima.jp","yugawa.fukushima.jp","anpachi.gifu.jp","ena.gifu.jp","gifu.gifu.jp","ginan.gifu.jp","godo.gifu.jp","gujo.gifu.jp","hashima.gifu.jp","hichiso.gifu.jp","hida.gifu.jp","higashishirakawa.gifu.jp","ibigawa.gifu.jp","ikeda.gifu.jp","kakamigahara.gifu.jp","kani.gifu.jp","kasahara.gifu.jp","kasamatsu.gifu.jp","kawaue.gifu.jp","kitagata.gifu.jp","mino.gifu.jp","minokamo.gifu.jp","mitake.gifu.jp","mizunami.gifu.jp","motosu.gifu.jp","nakatsugawa.gifu.jp","ogaki.gifu.jp","sakahogi.gifu.jp","seki.gifu.jp","sekigahara.gifu.jp","shirakawa.gifu.jp","tajimi.gifu.jp","takayama.gifu.jp","tarui.gifu.jp","toki.gifu.jp","tomika.gifu.jp","wanouchi.gifu.jp","yamagata.gifu.jp","yaotsu.gifu.jp","yoro.gifu.jp","annaka.gunma.jp","chiyoda.gunma.jp","fujioka.gunma.jp","higashiagatsuma.gunma.jp","isesaki.gunma.jp","itakura.gunma.jp","kanna.gunma.jp","kanra.gunma.jp","katashina.gunma.jp","kawaba.gunma.jp","kiryu.gunma.jp","kusatsu.gunma.jp","maebashi.gunma.jp","meiwa.gunma.jp","midori.gunma.jp","minakami.gunma.jp","naganohara.gunma.jp","nakanojo.gunma.jp","nanmoku.gunma.jp","numata.gunma.jp","oizumi.gunma.jp","ora.gunma.jp","ota.gunma.jp","shibukawa.gunma.jp","shimonita.gunma.jp","shinto.gunma.jp","showa.gunma.jp","takasaki.gunma.jp","takayama.gunma.jp","tamamura.gunma.jp","tatebayashi.gunma.jp","tomioka.gunma.jp","tsukiyono.gunma.jp","tsumagoi.gunma.jp","ueno.gunma.jp","yoshioka.gunma.jp","asaminami.hiroshima.jp","daiwa.hiroshima.jp","etajima.hiroshima.jp","fuchu.hiroshima.jp","fukuyama.hiroshima.jp","hatsukaichi.hiroshima.jp","higashihiroshima.hiroshima.jp","hongo.hiroshima.jp","jinsekikogen.hiroshima.jp","kaita.hiroshima.jp","kui.hiroshima.jp","kumano.hiroshima.jp","kure.hiroshima.jp","mihara.hiroshima.jp","miyoshi.hiroshima.jp","naka.hiroshima.jp","onomichi.hiroshima.jp","osakikamijima.hiroshima.jp","otake.hiroshima.jp","saka.hiroshima.jp","sera.hiroshima.jp","seranishi.hiroshima.jp","shinichi.hiroshima.jp","shobara.hiroshima.jp","takehara.hiroshima.jp","abashiri.hokkaido.jp","abira.hokkaido.jp","aibetsu.hokkaido.jp","akabira.hokkaido.jp","akkeshi.hokkaido.jp","asahikawa.hokkaido.jp","ashibetsu.hokkaido.jp","ashoro.hokkaido.jp","assabu.hokkaido.jp","atsuma.hokkaido.jp","bibai.hokkaido.jp","biei.hokkaido.jp","bifuka.hokkaido.jp","bihoro.hokkaido.jp","biratori.hokkaido.jp","chippubetsu.hokkaido.jp","chitose.hokkaido.jp","date.hokkaido.jp","ebetsu.hokkaido.jp","embetsu.hokkaido.jp","eniwa.hokkaido.jp","erimo.hokkaido.jp","esan.hokkaido.jp","esashi.hokkaido.jp","fukagawa.hokkaido.jp","fukushima.hokkaido.jp","furano.hokkaido.jp","furubira.hokkaido.jp","haboro.hokkaido.jp","hakodate.hokkaido.jp","hamatonbetsu.hokkaido.jp","hidaka.hokkaido.jp","higashikagura.hokkaido.jp","higashikawa.hokkaido.jp","hiroo.hokkaido.jp","hokuryu.hokkaido.jp","hokuto.hokkaido.jp","honbetsu.hokkaido.jp","horokanai.hokkaido.jp","horonobe.hokkaido.jp","ikeda.hokkaido.jp","imakane.hokkaido.jp","ishikari.hokkaido.jp","iwamizawa.hokkaido.jp","iwanai.hokkaido.jp","kamifurano.hokkaido.jp","kamikawa.hokkaido.jp","kamishihoro.hokkaido.jp","kamisunagawa.hokkaido.jp","kamoenai.hokkaido.jp","kayabe.hokkaido.jp","kembuchi.hokkaido.jp","kikonai.hokkaido.jp","kimobetsu.hokkaido.jp","kitahiroshima.hokkaido.jp","kitami.hokkaido.jp","kiyosato.hokkaido.jp","koshimizu.hokkaido.jp","kunneppu.hokkaido.jp","kuriyama.hokkaido.jp","kuromatsunai.hokkaido.jp","kushiro.hokkaido.jp","kutchan.hokkaido.jp","kyowa.hokkaido.jp","mashike.hokkaido.jp","matsumae.hokkaido.jp","mikasa.hokkaido.jp","minamifurano.hokkaido.jp","mombetsu.hokkaido.jp","moseushi.hokkaido.jp","mukawa.hokkaido.jp","muroran.hokkaido.jp","naie.hokkaido.jp","nakagawa.hokkaido.jp","nakasatsunai.hokkaido.jp","nakatombetsu.hokkaido.jp","nanae.hokkaido.jp","nanporo.hokkaido.jp","nayoro.hokkaido.jp","nemuro.hokkaido.jp","niikappu.hokkaido.jp","niki.hokkaido.jp","nishiokoppe.hokkaido.jp","noboribetsu.hokkaido.jp","numata.hokkaido.jp","obihiro.hokkaido.jp","obira.hokkaido.jp","oketo.hokkaido.jp","okoppe.hokkaido.jp","otaru.hokkaido.jp","otobe.hokkaido.jp","otofuke.hokkaido.jp","otoineppu.hokkaido.jp","oumu.hokkaido.jp","ozora.hokkaido.jp","pippu.hokkaido.jp","rankoshi.hokkaido.jp","rebun.hokkaido.jp","rikubetsu.hokkaido.jp","rishiri.hokkaido.jp","rishirifuji.hokkaido.jp","saroma.hokkaido.jp","sarufutsu.hokkaido.jp","shakotan.hokkaido.jp","shari.hokkaido.jp","shibecha.hokkaido.jp","shibetsu.hokkaido.jp","shikabe.hokkaido.jp","shikaoi.hokkaido.jp","shimamaki.hokkaido.jp","shimizu.hokkaido.jp","shimokawa.hokkaido.jp","shinshinotsu.hokkaido.jp","shintoku.hokkaido.jp","shiranuka.hokkaido.jp","shiraoi.hokkaido.jp","shiriuchi.hokkaido.jp","sobetsu.hokkaido.jp","sunagawa.hokkaido.jp","taiki.hokkaido.jp","takasu.hokkaido.jp","takikawa.hokkaido.jp","takinoue.hokkaido.jp","teshikaga.hokkaido.jp","tobetsu.hokkaido.jp","tohma.hokkaido.jp","tomakomai.hokkaido.jp","tomari.hokkaido.jp","toya.hokkaido.jp","toyako.hokkaido.jp","toyotomi.hokkaido.jp","toyoura.hokkaido.jp","tsubetsu.hokkaido.jp","tsukigata.hokkaido.jp","urakawa.hokkaido.jp","urausu.hokkaido.jp","uryu.hokkaido.jp","utashinai.hokkaido.jp","wakkanai.hokkaido.jp","wassamu.hokkaido.jp","yakumo.hokkaido.jp","yoichi.hokkaido.jp","aioi.hyogo.jp","akashi.hyogo.jp","ako.hyogo.jp","amagasaki.hyogo.jp","aogaki.hyogo.jp","asago.hyogo.jp","ashiya.hyogo.jp","awaji.hyogo.jp","fukusaki.hyogo.jp","goshiki.hyogo.jp","harima.hyogo.jp","himeji.hyogo.jp","ichikawa.hyogo.jp","inagawa.hyogo.jp","itami.hyogo.jp","kakogawa.hyogo.jp","kamigori.hyogo.jp","kamikawa.hyogo.jp","kasai.hyogo.jp","kasuga.hyogo.jp","kawanishi.hyogo.jp","miki.hyogo.jp","minamiawaji.hyogo.jp","nishinomiya.hyogo.jp","nishiwaki.hyogo.jp","ono.hyogo.jp","sanda.hyogo.jp","sannan.hyogo.jp","sasayama.hyogo.jp","sayo.hyogo.jp","shingu.hyogo.jp","shinonsen.hyogo.jp","shiso.hyogo.jp","sumoto.hyogo.jp","taishi.hyogo.jp","taka.hyogo.jp","takarazuka.hyogo.jp","takasago.hyogo.jp","takino.hyogo.jp","tamba.hyogo.jp","tatsuno.hyogo.jp","toyooka.hyogo.jp","yabu.hyogo.jp","yashiro.hyogo.jp","yoka.hyogo.jp","yokawa.hyogo.jp","ami.ibaraki.jp","asahi.ibaraki.jp","bando.ibaraki.jp","chikusei.ibaraki.jp","daigo.ibaraki.jp","fujishiro.ibaraki.jp","hitachi.ibaraki.jp","hitachinaka.ibaraki.jp","hitachiomiya.ibaraki.jp","hitachiota.ibaraki.jp","ibaraki.ibaraki.jp","ina.ibaraki.jp","inashiki.ibaraki.jp","itako.ibaraki.jp","iwama.ibaraki.jp","joso.ibaraki.jp","kamisu.ibaraki.jp","kasama.ibaraki.jp","kashima.ibaraki.jp","kasumigaura.ibaraki.jp","koga.ibaraki.jp","miho.ibaraki.jp","mito.ibaraki.jp","moriya.ibaraki.jp","naka.ibaraki.jp","namegata.ibaraki.jp","oarai.ibaraki.jp","ogawa.ibaraki.jp","omitama.ibaraki.jp","ryugasaki.ibaraki.jp","sakai.ibaraki.jp","sakuragawa.ibaraki.jp","shimodate.ibaraki.jp","shimotsuma.ibaraki.jp","shirosato.ibaraki.jp","sowa.ibaraki.jp","suifu.ibaraki.jp","takahagi.ibaraki.jp","tamatsukuri.ibaraki.jp","tokai.ibaraki.jp","tomobe.ibaraki.jp","tone.ibaraki.jp","toride.ibaraki.jp","tsuchiura.ibaraki.jp","tsukuba.ibaraki.jp","uchihara.ibaraki.jp","ushiku.ibaraki.jp","yachiyo.ibaraki.jp","yamagata.ibaraki.jp","yawara.ibaraki.jp","yuki.ibaraki.jp","anamizu.ishikawa.jp","hakui.ishikawa.jp","hakusan.ishikawa.jp","kaga.ishikawa.jp","kahoku.ishikawa.jp","kanazawa.ishikawa.jp","kawakita.ishikawa.jp","komatsu.ishikawa.jp","nakanoto.ishikawa.jp","nanao.ishikawa.jp","nomi.ishikawa.jp","nonoichi.ishikawa.jp","noto.ishikawa.jp","shika.ishikawa.jp","suzu.ishikawa.jp","tsubata.ishikawa.jp","tsurugi.ishikawa.jp","uchinada.ishikawa.jp","wajima.ishikawa.jp","fudai.iwate.jp","fujisawa.iwate.jp","hanamaki.iwate.jp","hiraizumi.iwate.jp","hirono.iwate.jp","ichinohe.iwate.jp","ichinoseki.iwate.jp","iwaizumi.iwate.jp","iwate.iwate.jp","joboji.iwate.jp","kamaishi.iwate.jp","kanegasaki.iwate.jp","karumai.iwate.jp","kawai.iwate.jp","kitakami.iwate.jp","kuji.iwate.jp","kunohe.iwate.jp","kuzumaki.iwate.jp","miyako.iwate.jp","mizusawa.iwate.jp","morioka.iwate.jp","ninohe.iwate.jp","noda.iwate.jp","ofunato.iwate.jp","oshu.iwate.jp","otsuchi.iwate.jp","rikuzentakata.iwate.jp","shiwa.iwate.jp","shizukuishi.iwate.jp","sumita.iwate.jp","tanohata.iwate.jp","tono.iwate.jp","yahaba.iwate.jp","yamada.iwate.jp","ayagawa.kagawa.jp","higashikagawa.kagawa.jp","kanonji.kagawa.jp","kotohira.kagawa.jp","manno.kagawa.jp","marugame.kagawa.jp","mitoyo.kagawa.jp","naoshima.kagawa.jp","sanuki.kagawa.jp","tadotsu.kagawa.jp","takamatsu.kagawa.jp","tonosho.kagawa.jp","uchinomi.kagawa.jp","utazu.kagawa.jp","zentsuji.kagawa.jp","akune.kagoshima.jp","amami.kagoshima.jp","hioki.kagoshima.jp","isa.kagoshima.jp","isen.kagoshima.jp","izumi.kagoshima.jp","kagoshima.kagoshima.jp","kanoya.kagoshima.jp","kawanabe.kagoshima.jp","kinko.kagoshima.jp","kouyama.kagoshima.jp","makurazaki.kagoshima.jp","matsumoto.kagoshima.jp","minamitane.kagoshima.jp","nakatane.kagoshima.jp","nishinoomote.kagoshima.jp","satsumasendai.kagoshima.jp","soo.kagoshima.jp","tarumizu.kagoshima.jp","yusui.kagoshima.jp","aikawa.kanagawa.jp","atsugi.kanagawa.jp","ayase.kanagawa.jp","chigasaki.kanagawa.jp","ebina.kanagawa.jp","fujisawa.kanagawa.jp","hadano.kanagawa.jp","hakone.kanagawa.jp","hiratsuka.kanagawa.jp","isehara.kanagawa.jp","kaisei.kanagawa.jp","kamakura.kanagawa.jp","kiyokawa.kanagawa.jp","matsuda.kanagawa.jp","minamiashigara.kanagawa.jp","miura.kanagawa.jp","nakai.kanagawa.jp","ninomiya.kanagawa.jp","odawara.kanagawa.jp","oi.kanagawa.jp","oiso.kanagawa.jp","sagamihara.kanagawa.jp","samukawa.kanagawa.jp","tsukui.kanagawa.jp","yamakita.kanagawa.jp","yamato.kanagawa.jp","yokosuka.kanagawa.jp","yugawara.kanagawa.jp","zama.kanagawa.jp","zushi.kanagawa.jp","aki.kochi.jp","geisei.kochi.jp","hidaka.kochi.jp","higashitsuno.kochi.jp","ino.kochi.jp","kagami.kochi.jp","kami.kochi.jp","kitagawa.kochi.jp","kochi.kochi.jp","mihara.kochi.jp","motoyama.kochi.jp","muroto.kochi.jp","nahari.kochi.jp","nakamura.kochi.jp","nankoku.kochi.jp","nishitosa.kochi.jp","niyodogawa.kochi.jp","ochi.kochi.jp","okawa.kochi.jp","otoyo.kochi.jp","otsuki.kochi.jp","sakawa.kochi.jp","sukumo.kochi.jp","susaki.kochi.jp","tosa.kochi.jp","tosashimizu.kochi.jp","toyo.kochi.jp","tsuno.kochi.jp","umaji.kochi.jp","yasuda.kochi.jp","yusuhara.kochi.jp","amakusa.kumamoto.jp","arao.kumamoto.jp","aso.kumamoto.jp","choyo.kumamoto.jp","gyokuto.kumamoto.jp","kamiamakusa.kumamoto.jp","kikuchi.kumamoto.jp","kumamoto.kumamoto.jp","mashiki.kumamoto.jp","mifune.kumamoto.jp","minamata.kumamoto.jp","minamioguni.kumamoto.jp","nagasu.kumamoto.jp","nishihara.kumamoto.jp","oguni.kumamoto.jp","ozu.kumamoto.jp","sumoto.kumamoto.jp","takamori.kumamoto.jp","uki.kumamoto.jp","uto.kumamoto.jp","yamaga.kumamoto.jp","yamato.kumamoto.jp","yatsushiro.kumamoto.jp","ayabe.kyoto.jp","fukuchiyama.kyoto.jp","higashiyama.kyoto.jp","ide.kyoto.jp","ine.kyoto.jp","joyo.kyoto.jp","kameoka.kyoto.jp","kamo.kyoto.jp","kita.kyoto.jp","kizu.kyoto.jp","kumiyama.kyoto.jp","kyotamba.kyoto.jp","kyotanabe.kyoto.jp","kyotango.kyoto.jp","maizuru.kyoto.jp","minami.kyoto.jp","minamiyamashiro.kyoto.jp","miyazu.kyoto.jp","muko.kyoto.jp","nagaokakyo.kyoto.jp","nakagyo.kyoto.jp","nantan.kyoto.jp","oyamazaki.kyoto.jp","sakyo.kyoto.jp","seika.kyoto.jp","tanabe.kyoto.jp","uji.kyoto.jp","ujitawara.kyoto.jp","wazuka.kyoto.jp","yamashina.kyoto.jp","yawata.kyoto.jp","asahi.mie.jp","inabe.mie.jp","ise.mie.jp","kameyama.mie.jp","kawagoe.mie.jp","kiho.mie.jp","kisosaki.mie.jp","kiwa.mie.jp","komono.mie.jp","kumano.mie.jp","kuwana.mie.jp","matsusaka.mie.jp","meiwa.mie.jp","mihama.mie.jp","minamiise.mie.jp","misugi.mie.jp","miyama.mie.jp","nabari.mie.jp","shima.mie.jp","suzuka.mie.jp","tado.mie.jp","taiki.mie.jp","taki.mie.jp","tamaki.mie.jp","toba.mie.jp","tsu.mie.jp","udono.mie.jp","ureshino.mie.jp","watarai.mie.jp","yokkaichi.mie.jp","furukawa.miyagi.jp","higashimatsushima.miyagi.jp","ishinomaki.miyagi.jp","iwanuma.miyagi.jp","kakuda.miyagi.jp","kami.miyagi.jp","kawasaki.miyagi.jp","marumori.miyagi.jp","matsushima.miyagi.jp","minamisanriku.miyagi.jp","misato.miyagi.jp","murata.miyagi.jp","natori.miyagi.jp","ogawara.miyagi.jp","ohira.miyagi.jp","onagawa.miyagi.jp","osaki.miyagi.jp","rifu.miyagi.jp","semine.miyagi.jp","shibata.miyagi.jp","shichikashuku.miyagi.jp","shikama.miyagi.jp","shiogama.miyagi.jp","shiroishi.miyagi.jp","tagajo.miyagi.jp","taiwa.miyagi.jp","tome.miyagi.jp","tomiya.miyagi.jp","wakuya.miyagi.jp","watari.miyagi.jp","yamamoto.miyagi.jp","zao.miyagi.jp","aya.miyazaki.jp","ebino.miyazaki.jp","gokase.miyazaki.jp","hyuga.miyazaki.jp","kadogawa.miyazaki.jp","kawaminami.miyazaki.jp","kijo.miyazaki.jp","kitagawa.miyazaki.jp","kitakata.miyazaki.jp","kitaura.miyazaki.jp","kobayashi.miyazaki.jp","kunitomi.miyazaki.jp","kushima.miyazaki.jp","mimata.miyazaki.jp","miyakonojo.miyazaki.jp","miyazaki.miyazaki.jp","morotsuka.miyazaki.jp","nichinan.miyazaki.jp","nishimera.miyazaki.jp","nobeoka.miyazaki.jp","saito.miyazaki.jp","shiiba.miyazaki.jp","shintomi.miyazaki.jp","takaharu.miyazaki.jp","takanabe.miyazaki.jp","takazaki.miyazaki.jp","tsuno.miyazaki.jp","achi.nagano.jp","agematsu.nagano.jp","anan.nagano.jp","aoki.nagano.jp","asahi.nagano.jp","azumino.nagano.jp","chikuhoku.nagano.jp","chikuma.nagano.jp","chino.nagano.jp","fujimi.nagano.jp","hakuba.nagano.jp","hara.nagano.jp","hiraya.nagano.jp","iida.nagano.jp","iijima.nagano.jp","iiyama.nagano.jp","iizuna.nagano.jp","ikeda.nagano.jp","ikusaka.nagano.jp","ina.nagano.jp","karuizawa.nagano.jp","kawakami.nagano.jp","kiso.nagano.jp","kisofukushima.nagano.jp","kitaaiki.nagano.jp","komagane.nagano.jp","komoro.nagano.jp","matsukawa.nagano.jp","matsumoto.nagano.jp","miasa.nagano.jp","minamiaiki.nagano.jp","minamimaki.nagano.jp","minamiminowa.nagano.jp","minowa.nagano.jp","miyada.nagano.jp","miyota.nagano.jp","mochizuki.nagano.jp","nagano.nagano.jp","nagawa.nagano.jp","nagiso.nagano.jp","nakagawa.nagano.jp","nakano.nagano.jp","nozawaonsen.nagano.jp","obuse.nagano.jp","ogawa.nagano.jp","okaya.nagano.jp","omachi.nagano.jp","omi.nagano.jp","ookuwa.nagano.jp","ooshika.nagano.jp","otaki.nagano.jp","otari.nagano.jp","sakae.nagano.jp","sakaki.nagano.jp","saku.nagano.jp","sakuho.nagano.jp","shimosuwa.nagano.jp","shinanomachi.nagano.jp","shiojiri.nagano.jp","suwa.nagano.jp","suzaka.nagano.jp","takagi.nagano.jp","takamori.nagano.jp","takayama.nagano.jp","tateshina.nagano.jp","tatsuno.nagano.jp","togakushi.nagano.jp","togura.nagano.jp","tomi.nagano.jp","ueda.nagano.jp","wada.nagano.jp","yamagata.nagano.jp","yamanouchi.nagano.jp","yasaka.nagano.jp","yasuoka.nagano.jp","chijiwa.nagasaki.jp","futsu.nagasaki.jp","goto.nagasaki.jp","hasami.nagasaki.jp","hirado.nagasaki.jp","iki.nagasaki.jp","isahaya.nagasaki.jp","kawatana.nagasaki.jp","kuchinotsu.nagasaki.jp","matsuura.nagasaki.jp","nagasaki.nagasaki.jp","obama.nagasaki.jp","omura.nagasaki.jp","oseto.nagasaki.jp","saikai.nagasaki.jp","sasebo.nagasaki.jp","seihi.nagasaki.jp","shimabara.nagasaki.jp","shinkamigoto.nagasaki.jp","togitsu.nagasaki.jp","tsushima.nagasaki.jp","unzen.nagasaki.jp","ando.nara.jp","gose.nara.jp","heguri.nara.jp","higashiyoshino.nara.jp","ikaruga.nara.jp","ikoma.nara.jp","kamikitayama.nara.jp","kanmaki.nara.jp","kashiba.nara.jp","kashihara.nara.jp","katsuragi.nara.jp","kawai.nara.jp","kawakami.nara.jp","kawanishi.nara.jp","koryo.nara.jp","kurotaki.nara.jp","mitsue.nara.jp","miyake.nara.jp","nara.nara.jp","nosegawa.nara.jp","oji.nara.jp","ouda.nara.jp","oyodo.nara.jp","sakurai.nara.jp","sango.nara.jp","shimoichi.nara.jp","shimokitayama.nara.jp","shinjo.nara.jp","soni.nara.jp","takatori.nara.jp","tawaramoto.nara.jp","tenkawa.nara.jp","tenri.nara.jp","uda.nara.jp","yamatokoriyama.nara.jp","yamatotakada.nara.jp","yamazoe.nara.jp","yoshino.nara.jp","aga.niigata.jp","agano.niigata.jp","gosen.niigata.jp","itoigawa.niigata.jp","izumozaki.niigata.jp","joetsu.niigata.jp","kamo.niigata.jp","kariwa.niigata.jp","kashiwazaki.niigata.jp","minamiuonuma.niigata.jp","mitsuke.niigata.jp","muika.niigata.jp","murakami.niigata.jp","myoko.niigata.jp","nagaoka.niigata.jp","niigata.niigata.jp","ojiya.niigata.jp","omi.niigata.jp","sado.niigata.jp","sanjo.niigata.jp","seiro.niigata.jp","seirou.niigata.jp","sekikawa.niigata.jp","shibata.niigata.jp","tagami.niigata.jp","tainai.niigata.jp","tochio.niigata.jp","tokamachi.niigata.jp","tsubame.niigata.jp","tsunan.niigata.jp","uonuma.niigata.jp","yahiko.niigata.jp","yoita.niigata.jp","yuzawa.niigata.jp","beppu.oita.jp","bungoono.oita.jp","bungotakada.oita.jp","hasama.oita.jp","hiji.oita.jp","himeshima.oita.jp","hita.oita.jp","kamitsue.oita.jp","kokonoe.oita.jp","kuju.oita.jp","kunisaki.oita.jp","kusu.oita.jp","oita.oita.jp","saiki.oita.jp","taketa.oita.jp","tsukumi.oita.jp","usa.oita.jp","usuki.oita.jp","yufu.oita.jp","akaiwa.okayama.jp","asakuchi.okayama.jp","bizen.okayama.jp","hayashima.okayama.jp","ibara.okayama.jp","kagamino.okayama.jp","kasaoka.okayama.jp","kibichuo.okayama.jp","kumenan.okayama.jp","kurashiki.okayama.jp","maniwa.okayama.jp","misaki.okayama.jp","nagi.okayama.jp","niimi.okayama.jp","nishiawakura.okayama.jp","okayama.okayama.jp","satosho.okayama.jp","setouchi.okayama.jp","shinjo.okayama.jp","shoo.okayama.jp","soja.okayama.jp","takahashi.okayama.jp","tamano.okayama.jp","tsuyama.okayama.jp","wake.okayama.jp","yakage.okayama.jp","aguni.okinawa.jp","ginowan.okinawa.jp","ginoza.okinawa.jp","gushikami.okinawa.jp","haebaru.okinawa.jp","higashi.okinawa.jp","hirara.okinawa.jp","iheya.okinawa.jp","ishigaki.okinawa.jp","ishikawa.okinawa.jp","itoman.okinawa.jp","izena.okinawa.jp","kadena.okinawa.jp","kin.okinawa.jp","kitadaito.okinawa.jp","kitanakagusuku.okinawa.jp","kumejima.okinawa.jp","kunigami.okinawa.jp","minamidaito.okinawa.jp","motobu.okinawa.jp","nago.okinawa.jp","naha.okinawa.jp","nakagusuku.okinawa.jp","nakijin.okinawa.jp","nanjo.okinawa.jp","nishihara.okinawa.jp","ogimi.okinawa.jp","okinawa.okinawa.jp","onna.okinawa.jp","shimoji.okinawa.jp","taketomi.okinawa.jp","tarama.okinawa.jp","tokashiki.okinawa.jp","tomigusuku.okinawa.jp","tonaki.okinawa.jp","urasoe.okinawa.jp","uruma.okinawa.jp","yaese.okinawa.jp","yomitan.okinawa.jp","yonabaru.okinawa.jp","yonaguni.okinawa.jp","zamami.okinawa.jp","abeno.osaka.jp","chihayaakasaka.osaka.jp","chuo.osaka.jp","daito.osaka.jp","fujiidera.osaka.jp","habikino.osaka.jp","hannan.osaka.jp","higashiosaka.osaka.jp","higashisumiyoshi.osaka.jp","higashiyodogawa.osaka.jp","hirakata.osaka.jp","ibaraki.osaka.jp","ikeda.osaka.jp","izumi.osaka.jp","izumiotsu.osaka.jp","izumisano.osaka.jp","kadoma.osaka.jp","kaizuka.osaka.jp","kanan.osaka.jp","kashiwara.osaka.jp","katano.osaka.jp","kawachinagano.osaka.jp","kishiwada.osaka.jp","kita.osaka.jp","kumatori.osaka.jp","matsubara.osaka.jp","minato.osaka.jp","minoh.osaka.jp","misaki.osaka.jp","moriguchi.osaka.jp","neyagawa.osaka.jp","nishi.osaka.jp","nose.osaka.jp","osakasayama.osaka.jp","sakai.osaka.jp","sayama.osaka.jp","sennan.osaka.jp","settsu.osaka.jp","shijonawate.osaka.jp","shimamoto.osaka.jp","suita.osaka.jp","tadaoka.osaka.jp","taishi.osaka.jp","tajiri.osaka.jp","takaishi.osaka.jp","takatsuki.osaka.jp","tondabayashi.osaka.jp","toyonaka.osaka.jp","toyono.osaka.jp","yao.osaka.jp","ariake.saga.jp","arita.saga.jp","fukudomi.saga.jp","genkai.saga.jp","hamatama.saga.jp","hizen.saga.jp","imari.saga.jp","kamimine.saga.jp","kanzaki.saga.jp","karatsu.saga.jp","kashima.saga.jp","kitagata.saga.jp","kitahata.saga.jp","kiyama.saga.jp","kouhoku.saga.jp","kyuragi.saga.jp","nishiarita.saga.jp","ogi.saga.jp","omachi.saga.jp","ouchi.saga.jp","saga.saga.jp","shiroishi.saga.jp","taku.saga.jp","tara.saga.jp","tosu.saga.jp","yoshinogari.saga.jp","arakawa.saitama.jp","asaka.saitama.jp","chichibu.saitama.jp","fujimi.saitama.jp","fujimino.saitama.jp","fukaya.saitama.jp","hanno.saitama.jp","hanyu.saitama.jp","hasuda.saitama.jp","hatogaya.saitama.jp","hatoyama.saitama.jp","hidaka.saitama.jp","higashichichibu.saitama.jp","higashimatsuyama.saitama.jp","honjo.saitama.jp","ina.saitama.jp","iruma.saitama.jp","iwatsuki.saitama.jp","kamiizumi.saitama.jp","kamikawa.saitama.jp","kamisato.saitama.jp","kasukabe.saitama.jp","kawagoe.saitama.jp","kawaguchi.saitama.jp","kawajima.saitama.jp","kazo.saitama.jp","kitamoto.saitama.jp","koshigaya.saitama.jp","kounosu.saitama.jp","kuki.saitama.jp","kumagaya.saitama.jp","matsubushi.saitama.jp","minano.saitama.jp","misato.saitama.jp","miyashiro.saitama.jp","miyoshi.saitama.jp","moroyama.saitama.jp","nagatoro.saitama.jp","namegawa.saitama.jp","niiza.saitama.jp","ogano.saitama.jp","ogawa.saitama.jp","ogose.saitama.jp","okegawa.saitama.jp","omiya.saitama.jp","otaki.saitama.jp","ranzan.saitama.jp","ryokami.saitama.jp","saitama.saitama.jp","sakado.saitama.jp","satte.saitama.jp","sayama.saitama.jp","shiki.saitama.jp","shiraoka.saitama.jp","soka.saitama.jp","sugito.saitama.jp","toda.saitama.jp","tokigawa.saitama.jp","tokorozawa.saitama.jp","tsurugashima.saitama.jp","urawa.saitama.jp","warabi.saitama.jp","yashio.saitama.jp","yokoze.saitama.jp","yono.saitama.jp","yorii.saitama.jp","yoshida.saitama.jp","yoshikawa.saitama.jp","yoshimi.saitama.jp","aisho.shiga.jp","gamo.shiga.jp","higashiomi.shiga.jp","hikone.shiga.jp","koka.shiga.jp","konan.shiga.jp","kosei.shiga.jp","koto.shiga.jp","kusatsu.shiga.jp","maibara.shiga.jp","moriyama.shiga.jp","nagahama.shiga.jp","nishiazai.shiga.jp","notogawa.shiga.jp","omihachiman.shiga.jp","otsu.shiga.jp","ritto.shiga.jp","ryuoh.shiga.jp","takashima.shiga.jp","takatsuki.shiga.jp","torahime.shiga.jp","toyosato.shiga.jp","yasu.shiga.jp","akagi.shimane.jp","ama.shimane.jp","gotsu.shimane.jp","hamada.shimane.jp","higashiizumo.shimane.jp","hikawa.shimane.jp","hikimi.shimane.jp","izumo.shimane.jp","kakinoki.shimane.jp","masuda.shimane.jp","matsue.shimane.jp","misato.shimane.jp","nishinoshima.shimane.jp","ohda.shimane.jp","okinoshima.shimane.jp","okuizumo.shimane.jp","shimane.shimane.jp","tamayu.shimane.jp","tsuwano.shimane.jp","unnan.shimane.jp","yakumo.shimane.jp","yasugi.shimane.jp","yatsuka.shimane.jp","arai.shizuoka.jp","atami.shizuoka.jp","fuji.shizuoka.jp","fujieda.shizuoka.jp","fujikawa.shizuoka.jp","fujinomiya.shizuoka.jp","fukuroi.shizuoka.jp","gotemba.shizuoka.jp","haibara.shizuoka.jp","hamamatsu.shizuoka.jp","higashiizu.shizuoka.jp","ito.shizuoka.jp","iwata.shizuoka.jp","izu.shizuoka.jp","izunokuni.shizuoka.jp","kakegawa.shizuoka.jp","kannami.shizuoka.jp","kawanehon.shizuoka.jp","kawazu.shizuoka.jp","kikugawa.shizuoka.jp","kosai.shizuoka.jp","makinohara.shizuoka.jp","matsuzaki.shizuoka.jp","minamiizu.shizuoka.jp","mishima.shizuoka.jp","morimachi.shizuoka.jp","nishiizu.shizuoka.jp","numazu.shizuoka.jp","omaezaki.shizuoka.jp","shimada.shizuoka.jp","shimizu.shizuoka.jp","shimoda.shizuoka.jp","shizuoka.shizuoka.jp","susono.shizuoka.jp","yaizu.shizuoka.jp","yoshida.shizuoka.jp","ashikaga.tochigi.jp","bato.tochigi.jp","haga.tochigi.jp","ichikai.tochigi.jp","iwafune.tochigi.jp","kaminokawa.tochigi.jp","kanuma.tochigi.jp","karasuyama.tochigi.jp","kuroiso.tochigi.jp","mashiko.tochigi.jp","mibu.tochigi.jp","moka.tochigi.jp","motegi.tochigi.jp","nasu.tochigi.jp","nasushiobara.tochigi.jp","nikko.tochigi.jp","nishikata.tochigi.jp","nogi.tochigi.jp","ohira.tochigi.jp","ohtawara.tochigi.jp","oyama.tochigi.jp","sakura.tochigi.jp","sano.tochigi.jp","shimotsuke.tochigi.jp","shioya.tochigi.jp","takanezawa.tochigi.jp","tochigi.tochigi.jp","tsuga.tochigi.jp","ujiie.tochigi.jp","utsunomiya.tochigi.jp","yaita.tochigi.jp","aizumi.tokushima.jp","anan.tokushima.jp","ichiba.tokushima.jp","itano.tokushima.jp","kainan.tokushima.jp","komatsushima.tokushima.jp","matsushige.tokushima.jp","mima.tokushima.jp","minami.tokushima.jp","miyoshi.tokushima.jp","mugi.tokushima.jp","nakagawa.tokushima.jp","naruto.tokushima.jp","sanagochi.tokushima.jp","shishikui.tokushima.jp","tokushima.tokushima.jp","wajiki.tokushima.jp","adachi.tokyo.jp","akiruno.tokyo.jp","akishima.tokyo.jp","aogashima.tokyo.jp","arakawa.tokyo.jp","bunkyo.tokyo.jp","chiyoda.tokyo.jp","chofu.tokyo.jp","chuo.tokyo.jp","edogawa.tokyo.jp","fuchu.tokyo.jp","fussa.tokyo.jp","hachijo.tokyo.jp","hachioji.tokyo.jp","hamura.tokyo.jp","higashikurume.tokyo.jp","higashimurayama.tokyo.jp","higashiyamato.tokyo.jp","hino.tokyo.jp","hinode.tokyo.jp","hinohara.tokyo.jp","inagi.tokyo.jp","itabashi.tokyo.jp","katsushika.tokyo.jp","kita.tokyo.jp","kiyose.tokyo.jp","kodaira.tokyo.jp","koganei.tokyo.jp","kokubunji.tokyo.jp","komae.tokyo.jp","koto.tokyo.jp","kouzushima.tokyo.jp","kunitachi.tokyo.jp","machida.tokyo.jp","meguro.tokyo.jp","minato.tokyo.jp","mitaka.tokyo.jp","mizuho.tokyo.jp","musashimurayama.tokyo.jp","musashino.tokyo.jp","nakano.tokyo.jp","nerima.tokyo.jp","ogasawara.tokyo.jp","okutama.tokyo.jp","ome.tokyo.jp","oshima.tokyo.jp","ota.tokyo.jp","setagaya.tokyo.jp","shibuya.tokyo.jp","shinagawa.tokyo.jp","shinjuku.tokyo.jp","suginami.tokyo.jp","sumida.tokyo.jp","tachikawa.tokyo.jp","taito.tokyo.jp","tama.tokyo.jp","toshima.tokyo.jp","chizu.tottori.jp","hino.tottori.jp","kawahara.tottori.jp","koge.tottori.jp","kotoura.tottori.jp","misasa.tottori.jp","nanbu.tottori.jp","nichinan.tottori.jp","sakaiminato.tottori.jp","tottori.tottori.jp","wakasa.tottori.jp","yazu.tottori.jp","yonago.tottori.jp","asahi.toyama.jp","fuchu.toyama.jp","fukumitsu.toyama.jp","funahashi.toyama.jp","himi.toyama.jp","imizu.toyama.jp","inami.toyama.jp","johana.toyama.jp","kamiichi.toyama.jp","kurobe.toyama.jp","nakaniikawa.toyama.jp","namerikawa.toyama.jp","nanto.toyama.jp","nyuzen.toyama.jp","oyabe.toyama.jp","taira.toyama.jp","takaoka.toyama.jp","tateyama.toyama.jp","toga.toyama.jp","tonami.toyama.jp","toyama.toyama.jp","unazuki.toyama.jp","uozu.toyama.jp","yamada.toyama.jp","arida.wakayama.jp","aridagawa.wakayama.jp","gobo.wakayama.jp","hashimoto.wakayama.jp","hidaka.wakayama.jp","hirogawa.wakayama.jp","inami.wakayama.jp","iwade.wakayama.jp","kainan.wakayama.jp","kamitonda.wakayama.jp","katsuragi.wakayama.jp","kimino.wakayama.jp","kinokawa.wakayama.jp","kitayama.wakayama.jp","koya.wakayama.jp","koza.wakayama.jp","kozagawa.wakayama.jp","kudoyama.wakayama.jp","kushimoto.wakayama.jp","mihama.wakayama.jp","misato.wakayama.jp","nachikatsuura.wakayama.jp","shingu.wakayama.jp","shirahama.wakayama.jp","taiji.wakayama.jp","tanabe.wakayama.jp","wakayama.wakayama.jp","yuasa.wakayama.jp","yura.wakayama.jp","asahi.yamagata.jp","funagata.yamagata.jp","higashine.yamagata.jp","iide.yamagata.jp","kahoku.yamagata.jp","kaminoyama.yamagata.jp","kaneyama.yamagata.jp","kawanishi.yamagata.jp","mamurogawa.yamagata.jp","mikawa.yamagata.jp","murayama.yamagata.jp","nagai.yamagata.jp","nakayama.yamagata.jp","nanyo.yamagata.jp","nishikawa.yamagata.jp","obanazawa.yamagata.jp","oe.yamagata.jp","oguni.yamagata.jp","ohkura.yamagata.jp","oishida.yamagata.jp","sagae.yamagata.jp","sakata.yamagata.jp","sakegawa.yamagata.jp","shinjo.yamagata.jp","shirataka.yamagata.jp","shonai.yamagata.jp","takahata.yamagata.jp","tendo.yamagata.jp","tozawa.yamagata.jp","tsuruoka.yamagata.jp","yamagata.yamagata.jp","yamanobe.yamagata.jp","yonezawa.yamagata.jp","yuza.yamagata.jp","abu.yamaguchi.jp","hagi.yamaguchi.jp","hikari.yamaguchi.jp","hofu.yamaguchi.jp","iwakuni.yamaguchi.jp","kudamatsu.yamaguchi.jp","mitou.yamaguchi.jp","nagato.yamaguchi.jp","oshima.yamaguchi.jp","shimonoseki.yamaguchi.jp","shunan.yamaguchi.jp","tabuse.yamaguchi.jp","tokuyama.yamaguchi.jp","toyota.yamaguchi.jp","ube.yamaguchi.jp","yuu.yamaguchi.jp","chuo.yamanashi.jp","doshi.yamanashi.jp","fuefuki.yamanashi.jp","fujikawa.yamanashi.jp","fujikawaguchiko.yamanashi.jp","fujiyoshida.yamanashi.jp","hayakawa.yamanashi.jp","hokuto.yamanashi.jp","ichikawamisato.yamanashi.jp","kai.yamanashi.jp","kofu.yamanashi.jp","koshu.yamanashi.jp","kosuge.yamanashi.jp","minami-alps.yamanashi.jp","minobu.yamanashi.jp","nakamichi.yamanashi.jp","nanbu.yamanashi.jp","narusawa.yamanashi.jp","nirasaki.yamanashi.jp","nishikatsura.yamanashi.jp","oshino.yamanashi.jp","otsuki.yamanashi.jp","showa.yamanashi.jp","tabayama.yamanashi.jp","tsuru.yamanashi.jp","uenohara.yamanashi.jp","yamanakako.yamanashi.jp","yamanashi.yamanashi.jp","ke","ac.ke","co.ke","go.ke","info.ke","me.ke","mobi.ke","ne.ke","or.ke","sc.ke","kg","org.kg","net.kg","com.kg","edu.kg","gov.kg","mil.kg","*.kh","ki","edu.ki","biz.ki","net.ki","org.ki","gov.ki","info.ki","com.ki","km","org.km","nom.km","gov.km","prd.km","tm.km","edu.km","mil.km","ass.km","com.km","coop.km","asso.km","presse.km","medecin.km","notaires.km","pharmaciens.km","veterinaire.km","gouv.km","kn","net.kn","org.kn","edu.kn","gov.kn","kp","com.kp","edu.kp","gov.kp","org.kp","rep.kp","tra.kp","kr","ac.kr","co.kr","es.kr","go.kr","hs.kr","kg.kr","mil.kr","ms.kr","ne.kr","or.kr","pe.kr","re.kr","sc.kr","busan.kr","chungbuk.kr","chungnam.kr","daegu.kr","daejeon.kr","gangwon.kr","gwangju.kr","gyeongbuk.kr","gyeonggi.kr","gyeongnam.kr","incheon.kr","jeju.kr","jeonbuk.kr","jeonnam.kr","seoul.kr","ulsan.kr","kw","com.kw","edu.kw","emb.kw","gov.kw","ind.kw","net.kw","org.kw","ky","edu.ky","gov.ky","com.ky","org.ky","net.ky","kz","org.kz","edu.kz","net.kz","gov.kz","mil.kz","com.kz","la","int.la","net.la","info.la","edu.la","gov.la","per.la","com.la","org.la","lb","com.lb","edu.lb","gov.lb","net.lb","org.lb","lc","com.lc","net.lc","co.lc","org.lc","edu.lc","gov.lc","li","lk","gov.lk","sch.lk","net.lk","int.lk","com.lk","org.lk","edu.lk","ngo.lk","soc.lk","web.lk","ltd.lk","assn.lk","grp.lk","hotel.lk","ac.lk","lr","com.lr","edu.lr","gov.lr","org.lr","net.lr","ls","ac.ls","biz.ls","co.ls","edu.ls","gov.ls","info.ls","net.ls","org.ls","sc.ls","lt","gov.lt","lu","lv","com.lv","edu.lv","gov.lv","org.lv","mil.lv","id.lv","net.lv","asn.lv","conf.lv","ly","com.ly","net.ly","gov.ly","plc.ly","edu.ly","sch.ly","med.ly","org.ly","id.ly","ma","co.ma","net.ma","gov.ma","org.ma","ac.ma","press.ma","mc","tm.mc","asso.mc","md","me","co.me","net.me","org.me","edu.me","ac.me","gov.me","its.me","priv.me","mg","org.mg","nom.mg","gov.mg","prd.mg","tm.mg","edu.mg","mil.mg","com.mg","co.mg","mh","mil","mk","com.mk","org.mk","net.mk","edu.mk","gov.mk","inf.mk","name.mk","ml","com.ml","edu.ml","gouv.ml","gov.ml","net.ml","org.ml","presse.ml","*.mm","mn","gov.mn","edu.mn","org.mn","mo","com.mo","net.mo","org.mo","edu.mo","gov.mo","mobi","mp","mq","mr","gov.mr","ms","com.ms","edu.ms","gov.ms","net.ms","org.ms","mt","com.mt","edu.mt","net.mt","org.mt","mu","com.mu","net.mu","org.mu","gov.mu","ac.mu","co.mu","or.mu","museum","academy.museum","agriculture.museum","air.museum","airguard.museum","alabama.museum","alaska.museum","amber.museum","ambulance.museum","american.museum","americana.museum","americanantiques.museum","americanart.museum","amsterdam.museum","and.museum","annefrank.museum","anthro.museum","anthropology.museum","antiques.museum","aquarium.museum","arboretum.museum","archaeological.museum","archaeology.museum","architecture.museum","art.museum","artanddesign.museum","artcenter.museum","artdeco.museum","arteducation.museum","artgallery.museum","arts.museum","artsandcrafts.museum","asmatart.museum","assassination.museum","assisi.museum","association.museum","astronomy.museum","atlanta.museum","austin.museum","australia.museum","automotive.museum","aviation.museum","axis.museum","badajoz.museum","baghdad.museum","bahn.museum","bale.museum","baltimore.museum","barcelona.museum","baseball.museum","basel.museum","baths.museum","bauern.museum","beauxarts.museum","beeldengeluid.museum","bellevue.museum","bergbau.museum","berkeley.museum","berlin.museum","bern.museum","bible.museum","bilbao.museum","bill.museum","birdart.museum","birthplace.museum","bonn.museum","boston.museum","botanical.museum","botanicalgarden.museum","botanicgarden.museum","botany.museum","brandywinevalley.museum","brasil.museum","bristol.museum","british.museum","britishcolumbia.museum","broadcast.museum","brunel.museum","brussel.museum","brussels.museum","bruxelles.museum","building.museum","burghof.museum","bus.museum","bushey.museum","cadaques.museum","california.museum","cambridge.museum","can.museum","canada.museum","capebreton.museum","carrier.museum","cartoonart.museum","casadelamoneda.museum","castle.museum","castres.museum","celtic.museum","center.museum","chattanooga.museum","cheltenham.museum","chesapeakebay.museum","chicago.museum","children.museum","childrens.museum","childrensgarden.museum","chiropractic.museum","chocolate.museum","christiansburg.museum","cincinnati.museum","cinema.museum","circus.museum","civilisation.museum","civilization.museum","civilwar.museum","clinton.museum","clock.museum","coal.museum","coastaldefence.museum","cody.museum","coldwar.museum","collection.museum","colonialwilliamsburg.museum","coloradoplateau.museum","columbia.museum","columbus.museum","communication.museum","communications.museum","community.museum","computer.museum","computerhistory.museum","comunicações.museum","contemporary.museum","contemporaryart.museum","convent.museum","copenhagen.museum","corporation.museum","correios-e-telecomunicações.museum","corvette.museum","costume.museum","countryestate.museum","county.museum","crafts.museum","cranbrook.museum","creation.museum","cultural.museum","culturalcenter.museum","culture.museum","cyber.museum","cymru.museum","dali.museum","dallas.museum","database.museum","ddr.museum","decorativearts.museum","delaware.museum","delmenhorst.museum","denmark.museum","depot.museum","design.museum","detroit.museum","dinosaur.museum","discovery.museum","dolls.museum","donostia.museum","durham.museum","eastafrica.museum","eastcoast.museum","education.museum","educational.museum","egyptian.museum","eisenbahn.museum","elburg.museum","elvendrell.museum","embroidery.museum","encyclopedic.museum","england.museum","entomology.museum","environment.museum","environmentalconservation.museum","epilepsy.museum","essex.museum","estate.museum","ethnology.museum","exeter.museum","exhibition.museum","family.museum","farm.museum","farmequipment.museum","farmers.museum","farmstead.museum","field.museum","figueres.museum","filatelia.museum","film.museum","fineart.museum","finearts.museum","finland.museum","flanders.museum","florida.museum","force.museum","fortmissoula.museum","fortworth.museum","foundation.museum","francaise.museum","frankfurt.museum","franziskaner.museum","freemasonry.museum","freiburg.museum","fribourg.museum","frog.museum","fundacio.museum","furniture.museum","gallery.museum","garden.museum","gateway.museum","geelvinck.museum","gemological.museum","geology.museum","georgia.museum","giessen.museum","glas.museum","glass.museum","gorge.museum","grandrapids.museum","graz.museum","guernsey.museum","halloffame.museum","hamburg.museum","handson.museum","harvestcelebration.museum","hawaii.museum","health.museum","heimatunduhren.museum","hellas.museum","helsinki.museum","hembygdsforbund.museum","heritage.museum","histoire.museum","historical.museum","historicalsociety.museum","historichouses.museum","historisch.museum","historisches.museum","history.museum","historyofscience.museum","horology.museum","house.museum","humanities.museum","illustration.museum","imageandsound.museum","indian.museum","indiana.museum","indianapolis.museum","indianmarket.museum","intelligence.museum","interactive.museum","iraq.museum","iron.museum","isleofman.museum","jamison.museum","jefferson.museum","jerusalem.museum","jewelry.museum","jewish.museum","jewishart.museum","jfk.museum","journalism.museum","judaica.museum","judygarland.museum","juedisches.museum","juif.museum","karate.museum","karikatur.museum","kids.museum","koebenhavn.museum","koeln.museum","kunst.museum","kunstsammlung.museum","kunstunddesign.museum","labor.museum","labour.museum","lajolla.museum","lancashire.museum","landes.museum","lans.museum","läns.museum","larsson.museum","lewismiller.museum","lincoln.museum","linz.museum","living.museum","livinghistory.museum","localhistory.museum","london.museum","losangeles.museum","louvre.museum","loyalist.museum","lucerne.museum","luxembourg.museum","luzern.museum","mad.museum","madrid.museum","mallorca.museum","manchester.museum","mansion.museum","mansions.museum","manx.museum","marburg.museum","maritime.museum","maritimo.museum","maryland.museum","marylhurst.museum","media.museum","medical.museum","medizinhistorisches.museum","meeres.museum","memorial.museum","mesaverde.museum","michigan.museum","midatlantic.museum","military.museum","mill.museum","miners.museum","mining.museum","minnesota.museum","missile.museum","missoula.museum","modern.museum","moma.museum","money.museum","monmouth.museum","monticello.museum","montreal.museum","moscow.museum","motorcycle.museum","muenchen.museum","muenster.museum","mulhouse.museum","muncie.museum","museet.museum","museumcenter.museum","museumvereniging.museum","music.museum","national.museum","nationalfirearms.museum","nationalheritage.museum","nativeamerican.museum","naturalhistory.museum","naturalhistorymuseum.museum","naturalsciences.museum","nature.museum","naturhistorisches.museum","natuurwetenschappen.museum","naumburg.museum","naval.museum","nebraska.museum","neues.museum","newhampshire.museum","newjersey.museum","newmexico.museum","newport.museum","newspaper.museum","newyork.museum","niepce.museum","norfolk.museum","north.museum","nrw.museum","nyc.museum","nyny.museum","oceanographic.museum","oceanographique.museum","omaha.museum","online.museum","ontario.museum","openair.museum","oregon.museum","oregontrail.museum","otago.museum","oxford.museum","pacific.museum","paderborn.museum","palace.museum","paleo.museum","palmsprings.museum","panama.museum","paris.museum","pasadena.museum","pharmacy.museum","philadelphia.museum","philadelphiaarea.museum","philately.museum","phoenix.museum","photography.museum","pilots.museum","pittsburgh.museum","planetarium.museum","plantation.museum","plants.museum","plaza.museum","portal.museum","portland.museum","portlligat.museum","posts-and-telecommunications.museum","preservation.museum","presidio.museum","press.museum","project.museum","public.museum","pubol.museum","quebec.museum","railroad.museum","railway.museum","research.museum","resistance.museum","riodejaneiro.museum","rochester.museum","rockart.museum","roma.museum","russia.museum","saintlouis.museum","salem.museum","salvadordali.museum","salzburg.museum","sandiego.museum","sanfrancisco.museum","santabarbara.museum","santacruz.museum","santafe.museum","saskatchewan.museum","satx.museum","savannahga.museum","schlesisches.museum","schoenbrunn.museum","schokoladen.museum","school.museum","schweiz.museum","science.museum","scienceandhistory.museum","scienceandindustry.museum","sciencecenter.museum","sciencecenters.museum","science-fiction.museum","sciencehistory.museum","sciences.museum","sciencesnaturelles.museum","scotland.museum","seaport.museum","settlement.museum","settlers.museum","shell.museum","sherbrooke.museum","sibenik.museum","silk.museum","ski.museum","skole.museum","society.museum","sologne.museum","soundandvision.museum","southcarolina.museum","southwest.museum","space.museum","spy.museum","square.museum","stadt.museum","stalbans.museum","starnberg.museum","state.museum","stateofdelaware.museum","station.museum","steam.museum","steiermark.museum","stjohn.museum","stockholm.museum","stpetersburg.museum","stuttgart.museum","suisse.museum","surgeonshall.museum","surrey.museum","svizzera.museum","sweden.museum","sydney.museum","tank.museum","tcm.museum","technology.museum","telekommunikation.museum","television.museum","texas.museum","textile.museum","theater.museum","time.museum","timekeeping.museum","topology.museum","torino.museum","touch.museum","town.museum","transport.museum","tree.museum","trolley.museum","trust.museum","trustee.museum","uhren.museum","ulm.museum","undersea.museum","university.museum","usa.museum","usantiques.museum","usarts.museum","uscountryestate.museum","usculture.museum","usdecorativearts.museum","usgarden.museum","ushistory.museum","ushuaia.museum","uslivinghistory.museum","utah.museum","uvic.museum","valley.museum","vantaa.museum","versailles.museum","viking.museum","village.museum","virginia.museum","virtual.museum","virtuel.museum","vlaanderen.museum","volkenkunde.museum","wales.museum","wallonie.museum","war.museum","washingtondc.museum","watchandclock.museum","watch-and-clock.museum","western.museum","westfalen.museum","whaling.museum","wildlife.museum","williamsburg.museum","windmill.museum","workshop.museum","york.museum","yorkshire.museum","yosemite.museum","youth.museum","zoological.museum","zoology.museum","ירושלים.museum","иком.museum","mv","aero.mv","biz.mv","com.mv","coop.mv","edu.mv","gov.mv","info.mv","int.mv","mil.mv","museum.mv","name.mv","net.mv","org.mv","pro.mv","mw","ac.mw","biz.mw","co.mw","com.mw","coop.mw","edu.mw","gov.mw","int.mw","museum.mw","net.mw","org.mw","mx","com.mx","org.mx","gob.mx","edu.mx","net.mx","my","com.my","net.my","org.my","gov.my","edu.my","mil.my","name.my","mz","ac.mz","adv.mz","co.mz","edu.mz","gov.mz","mil.mz","net.mz","org.mz","na","info.na","pro.na","name.na","school.na","or.na","dr.na","us.na","mx.na","ca.na","in.na","cc.na","tv.na","ws.na","mobi.na","co.na","com.na","org.na","name","nc","asso.nc","nom.nc","ne","net","nf","com.nf","net.nf","per.nf","rec.nf","web.nf","arts.nf","firm.nf","info.nf","other.nf","store.nf","ng","com.ng","edu.ng","gov.ng","i.ng","mil.ng","mobi.ng","name.ng","net.ng","org.ng","sch.ng","ni","ac.ni","biz.ni","co.ni","com.ni","edu.ni","gob.ni","in.ni","info.ni","int.ni","mil.ni","net.ni","nom.ni","org.ni","web.ni","nl","no","fhs.no","vgs.no","fylkesbibl.no","folkebibl.no","museum.no","idrett.no","priv.no","mil.no","stat.no","dep.no","kommune.no","herad.no","aa.no","ah.no","bu.no","fm.no","hl.no","hm.no","jan-mayen.no","mr.no","nl.no","nt.no","of.no","ol.no","oslo.no","rl.no","sf.no","st.no","svalbard.no","tm.no","tr.no","va.no","vf.no","gs.aa.no","gs.ah.no","gs.bu.no","gs.fm.no","gs.hl.no","gs.hm.no","gs.jan-mayen.no","gs.mr.no","gs.nl.no","gs.nt.no","gs.of.no","gs.ol.no","gs.oslo.no","gs.rl.no","gs.sf.no","gs.st.no","gs.svalbard.no","gs.tm.no","gs.tr.no","gs.va.no","gs.vf.no","akrehamn.no","åkrehamn.no","algard.no","ålgård.no","arna.no","brumunddal.no","bryne.no","bronnoysund.no","brønnøysund.no","drobak.no","drøbak.no","egersund.no","fetsund.no","floro.no","florø.no","fredrikstad.no","hokksund.no","honefoss.no","hønefoss.no","jessheim.no","jorpeland.no","jørpeland.no","kirkenes.no","kopervik.no","krokstadelva.no","langevag.no","langevåg.no","leirvik.no","mjondalen.no","mjøndalen.no","mo-i-rana.no","mosjoen.no","mosjøen.no","nesoddtangen.no","orkanger.no","osoyro.no","osøyro.no","raholt.no","råholt.no","sandnessjoen.no","sandnessjøen.no","skedsmokorset.no","slattum.no","spjelkavik.no","stathelle.no","stavern.no","stjordalshalsen.no","stjørdalshalsen.no","tananger.no","tranby.no","vossevangen.no","afjord.no","åfjord.no","agdenes.no","al.no","ål.no","alesund.no","ålesund.no","alstahaug.no","alta.no","áltá.no","alaheadju.no","álaheadju.no","alvdal.no","amli.no","åmli.no","amot.no","åmot.no","andebu.no","andoy.no","andøy.no","andasuolo.no","ardal.no","årdal.no","aremark.no","arendal.no","ås.no","aseral.no","åseral.no","asker.no","askim.no","askvoll.no","askoy.no","askøy.no","asnes.no","åsnes.no","audnedaln.no","aukra.no","aure.no","aurland.no","aurskog-holand.no","aurskog-høland.no","austevoll.no","austrheim.no","averoy.no","averøy.no","balestrand.no","ballangen.no","balat.no","bálát.no","balsfjord.no","bahccavuotna.no","báhccavuotna.no","bamble.no","bardu.no","beardu.no","beiarn.no","bajddar.no","bájddar.no","baidar.no","báidár.no","berg.no","bergen.no","berlevag.no","berlevåg.no","bearalvahki.no","bearalváhki.no","bindal.no","birkenes.no","bjarkoy.no","bjarkøy.no","bjerkreim.no","bjugn.no","bodo.no","bodø.no","badaddja.no","bådåddjå.no","budejju.no","bokn.no","bremanger.no","bronnoy.no","brønnøy.no","bygland.no","bykle.no","barum.no","bærum.no","bo.telemark.no","bø.telemark.no","bo.nordland.no","bø.nordland.no","bievat.no","bievát.no","bomlo.no","bømlo.no","batsfjord.no","båtsfjord.no","bahcavuotna.no","báhcavuotna.no","dovre.no","drammen.no","drangedal.no","dyroy.no","dyrøy.no","donna.no","dønna.no","eid.no","eidfjord.no","eidsberg.no","eidskog.no","eidsvoll.no","eigersund.no","elverum.no","enebakk.no","engerdal.no","etne.no","etnedal.no","evenes.no","evenassi.no","evenášši.no","evje-og-hornnes.no","farsund.no","fauske.no","fuossko.no","fuoisku.no","fedje.no","fet.no","finnoy.no","finnøy.no","fitjar.no","fjaler.no","fjell.no","flakstad.no","flatanger.no","flekkefjord.no","flesberg.no","flora.no","fla.no","flå.no","folldal.no","forsand.no","fosnes.no","frei.no","frogn.no","froland.no","frosta.no","frana.no","fræna.no","froya.no","frøya.no","fusa.no","fyresdal.no","forde.no","førde.no","gamvik.no","gangaviika.no","gáŋgaviika.no","gaular.no","gausdal.no","gildeskal.no","gildeskål.no","giske.no","gjemnes.no","gjerdrum.no","gjerstad.no","gjesdal.no","gjovik.no","gjøvik.no","gloppen.no","gol.no","gran.no","grane.no","granvin.no","gratangen.no","grimstad.no","grong.no","kraanghke.no","kråanghke.no","grue.no","gulen.no","hadsel.no","halden.no","halsa.no","hamar.no","hamaroy.no","habmer.no","hábmer.no","hapmir.no","hápmir.no","hammerfest.no","hammarfeasta.no","hámmárfeasta.no","haram.no","hareid.no","harstad.no","hasvik.no","aknoluokta.no","ákŋoluokta.no","hattfjelldal.no","aarborte.no","haugesund.no","hemne.no","hemnes.no","hemsedal.no","heroy.more-og-romsdal.no","herøy.møre-og-romsdal.no","heroy.nordland.no","herøy.nordland.no","hitra.no","hjartdal.no","hjelmeland.no","hobol.no","hobøl.no","hof.no","hol.no","hole.no","holmestrand.no","holtalen.no","holtålen.no","hornindal.no","horten.no","hurdal.no","hurum.no","hvaler.no","hyllestad.no","hagebostad.no","hægebostad.no","hoyanger.no","høyanger.no","hoylandet.no","høylandet.no","ha.no","hå.no","ibestad.no","inderoy.no","inderøy.no","iveland.no","jevnaker.no","jondal.no","jolster.no","jølster.no","karasjok.no","karasjohka.no","kárášjohka.no","karlsoy.no","galsa.no","gálsá.no","karmoy.no","karmøy.no","kautokeino.no","guovdageaidnu.no","klepp.no","klabu.no","klæbu.no","kongsberg.no","kongsvinger.no","kragero.no","kragerø.no","kristiansand.no","kristiansund.no","krodsherad.no","krødsherad.no","kvalsund.no","rahkkeravju.no","ráhkkerávju.no","kvam.no","kvinesdal.no","kvinnherad.no","kviteseid.no","kvitsoy.no","kvitsøy.no","kvafjord.no","kvæfjord.no","giehtavuoatna.no","kvanangen.no","kvænangen.no","navuotna.no","návuotna.no","kafjord.no","kåfjord.no","gaivuotna.no","gáivuotna.no","larvik.no","lavangen.no","lavagis.no","loabat.no","loabát.no","lebesby.no","davvesiida.no","leikanger.no","leirfjord.no","leka.no","leksvik.no","lenvik.no","leangaviika.no","leaŋgaviika.no","lesja.no","levanger.no","lier.no","lierne.no","lillehammer.no","lillesand.no","lindesnes.no","lindas.no","lindås.no","lom.no","loppa.no","lahppi.no","láhppi.no","lund.no","lunner.no","luroy.no","lurøy.no","luster.no","lyngdal.no","lyngen.no","ivgu.no","lardal.no","lerdal.no","lærdal.no","lodingen.no","lødingen.no","lorenskog.no","lørenskog.no","loten.no","løten.no","malvik.no","masoy.no","måsøy.no","muosat.no","muosát.no","mandal.no","marker.no","marnardal.no","masfjorden.no","meland.no","meldal.no","melhus.no","meloy.no","meløy.no","meraker.no","meråker.no","moareke.no","moåreke.no","midsund.no","midtre-gauldal.no","modalen.no","modum.no","molde.no","moskenes.no","moss.no","mosvik.no","malselv.no","målselv.no","malatvuopmi.no","málatvuopmi.no","namdalseid.no","aejrie.no","namsos.no","namsskogan.no","naamesjevuemie.no","nååmesjevuemie.no","laakesvuemie.no","nannestad.no","narvik.no","narviika.no","naustdal.no","nedre-eiker.no","nes.akershus.no","nes.buskerud.no","nesna.no","nesodden.no","nesseby.no","unjarga.no","unjárga.no","nesset.no","nissedal.no","nittedal.no","nord-aurdal.no","nord-fron.no","nord-odal.no","norddal.no","nordkapp.no","davvenjarga.no","davvenjárga.no","nordre-land.no","nordreisa.no","raisa.no","ráisa.no","nore-og-uvdal.no","notodden.no","naroy.no","nærøy.no","notteroy.no","nøtterøy.no","odda.no","oksnes.no","øksnes.no","oppdal.no","oppegard.no","oppegård.no","orkdal.no","orland.no","ørland.no","orskog.no","ørskog.no","orsta.no","ørsta.no","os.hedmark.no","os.hordaland.no","osen.no","osteroy.no","osterøy.no","ostre-toten.no","østre-toten.no","overhalla.no","ovre-eiker.no","øvre-eiker.no","oyer.no","øyer.no","oygarden.no","øygarden.no","oystre-slidre.no","øystre-slidre.no","porsanger.no","porsangu.no","porsáŋgu.no","porsgrunn.no","radoy.no","radøy.no","rakkestad.no","rana.no","ruovat.no","randaberg.no","rauma.no","rendalen.no","rennebu.no","rennesoy.no","rennesøy.no","rindal.no","ringebu.no","ringerike.no","ringsaker.no","rissa.no","risor.no","risør.no","roan.no","rollag.no","rygge.no","ralingen.no","rælingen.no","rodoy.no","rødøy.no","romskog.no","rømskog.no","roros.no","røros.no","rost.no","røst.no","royken.no","røyken.no","royrvik.no","røyrvik.no","rade.no","råde.no","salangen.no","siellak.no","saltdal.no","salat.no","sálát.no","sálat.no","samnanger.no","sande.more-og-romsdal.no","sande.møre-og-romsdal.no","sande.vestfold.no","sandefjord.no","sandnes.no","sandoy.no","sandøy.no","sarpsborg.no","sauda.no","sauherad.no","sel.no","selbu.no","selje.no","seljord.no","sigdal.no","siljan.no","sirdal.no","skaun.no","skedsmo.no","ski.no","skien.no","skiptvet.no","skjervoy.no","skjervøy.no","skierva.no","skiervá.no","skjak.no","skjåk.no","skodje.no","skanland.no","skånland.no","skanit.no","skánit.no","smola.no","smøla.no","snillfjord.no","snasa.no","snåsa.no","snoasa.no","snaase.no","snåase.no","sogndal.no","sokndal.no","sola.no","solund.no","songdalen.no","sortland.no","spydeberg.no","stange.no","stavanger.no","steigen.no","steinkjer.no","stjordal.no","stjørdal.no","stokke.no","stor-elvdal.no","stord.no","stordal.no","storfjord.no","omasvuotna.no","strand.no","stranda.no","stryn.no","sula.no","suldal.no","sund.no","sunndal.no","surnadal.no","sveio.no","svelvik.no","sykkylven.no","sogne.no","søgne.no","somna.no","sømna.no","sondre-land.no","søndre-land.no","sor-aurdal.no","sør-aurdal.no","sor-fron.no","sør-fron.no","sor-odal.no","sør-odal.no","sor-varanger.no","sør-varanger.no","matta-varjjat.no","mátta-várjjat.no","sorfold.no","sørfold.no","sorreisa.no","sørreisa.no","sorum.no","sørum.no","tana.no","deatnu.no","time.no","tingvoll.no","tinn.no","tjeldsund.no","dielddanuorri.no","tjome.no","tjøme.no","tokke.no","tolga.no","torsken.no","tranoy.no","tranøy.no","tromso.no","tromsø.no","tromsa.no","romsa.no","trondheim.no","troandin.no","trysil.no","trana.no","træna.no","trogstad.no","trøgstad.no","tvedestrand.no","tydal.no","tynset.no","tysfjord.no","divtasvuodna.no","divttasvuotna.no","tysnes.no","tysvar.no","tysvær.no","tonsberg.no","tønsberg.no","ullensaker.no","ullensvang.no","ulvik.no","utsira.no","vadso.no","vadsø.no","cahcesuolo.no","čáhcesuolo.no","vaksdal.no","valle.no","vang.no","vanylven.no","vardo.no","vardø.no","varggat.no","várggát.no","vefsn.no","vaapste.no","vega.no","vegarshei.no","vegårshei.no","vennesla.no","verdal.no","verran.no","vestby.no","vestnes.no","vestre-slidre.no","vestre-toten.no","vestvagoy.no","vestvågøy.no","vevelstad.no","vik.no","vikna.no","vindafjord.no","volda.no","voss.no","varoy.no","værøy.no","vagan.no","vågan.no","voagat.no","vagsoy.no","vågsøy.no","vaga.no","vågå.no","valer.ostfold.no","våler.østfold.no","valer.hedmark.no","våler.hedmark.no","*.np","nr","biz.nr","info.nr","gov.nr","edu.nr","org.nr","net.nr","com.nr","nu","nz","ac.nz","co.nz","cri.nz","geek.nz","gen.nz","govt.nz","health.nz","iwi.nz","kiwi.nz","maori.nz","mil.nz","māori.nz","net.nz","org.nz","parliament.nz","school.nz","om","co.om","com.om","edu.om","gov.om","med.om","museum.om","net.om","org.om","pro.om","onion","org","pa","ac.pa","gob.pa","com.pa","org.pa","sld.pa","edu.pa","net.pa","ing.pa","abo.pa","med.pa","nom.pa","pe","edu.pe","gob.pe","nom.pe","mil.pe","org.pe","com.pe","net.pe","pf","com.pf","org.pf","edu.pf","*.pg","ph","com.ph","net.ph","org.ph","gov.ph","edu.ph","ngo.ph","mil.ph","i.ph","pk","com.pk","net.pk","edu.pk","org.pk","fam.pk","biz.pk","web.pk","gov.pk","gob.pk","gok.pk","gon.pk","gop.pk","gos.pk","info.pk","pl","com.pl","net.pl","org.pl","aid.pl","agro.pl","atm.pl","auto.pl","biz.pl","edu.pl","gmina.pl","gsm.pl","info.pl","mail.pl","miasta.pl","media.pl","mil.pl","nieruchomosci.pl","nom.pl","pc.pl","powiat.pl","priv.pl","realestate.pl","rel.pl","sex.pl","shop.pl","sklep.pl","sos.pl","szkola.pl","targi.pl","tm.pl","tourism.pl","travel.pl","turystyka.pl","gov.pl","ap.gov.pl","ic.gov.pl","is.gov.pl","us.gov.pl","kmpsp.gov.pl","kppsp.gov.pl","kwpsp.gov.pl","psp.gov.pl","wskr.gov.pl","kwp.gov.pl","mw.gov.pl","ug.gov.pl","um.gov.pl","umig.gov.pl","ugim.gov.pl","upow.gov.pl","uw.gov.pl","starostwo.gov.pl","pa.gov.pl","po.gov.pl","psse.gov.pl","pup.gov.pl","rzgw.gov.pl","sa.gov.pl","so.gov.pl","sr.gov.pl","wsa.gov.pl","sko.gov.pl","uzs.gov.pl","wiih.gov.pl","winb.gov.pl","pinb.gov.pl","wios.gov.pl","witd.gov.pl","wzmiuw.gov.pl","piw.gov.pl","wiw.gov.pl","griw.gov.pl","wif.gov.pl","oum.gov.pl","sdn.gov.pl","zp.gov.pl","uppo.gov.pl","mup.gov.pl","wuoz.gov.pl","konsulat.gov.pl","oirm.gov.pl","augustow.pl","babia-gora.pl","bedzin.pl","beskidy.pl","bialowieza.pl","bialystok.pl","bielawa.pl","bieszczady.pl","boleslawiec.pl","bydgoszcz.pl","bytom.pl","cieszyn.pl","czeladz.pl","czest.pl","dlugoleka.pl","elblag.pl","elk.pl","glogow.pl","gniezno.pl","gorlice.pl","grajewo.pl","ilawa.pl","jaworzno.pl","jelenia-gora.pl","jgora.pl","kalisz.pl","kazimierz-dolny.pl","karpacz.pl","kartuzy.pl","kaszuby.pl","katowice.pl","kepno.pl","ketrzyn.pl","klodzko.pl","kobierzyce.pl","kolobrzeg.pl","konin.pl","konskowola.pl","kutno.pl","lapy.pl","lebork.pl","legnica.pl","lezajsk.pl","limanowa.pl","lomza.pl","lowicz.pl","lubin.pl","lukow.pl","malbork.pl","malopolska.pl","mazowsze.pl","mazury.pl","mielec.pl","mielno.pl","mragowo.pl","naklo.pl","nowaruda.pl","nysa.pl","olawa.pl","olecko.pl","olkusz.pl","olsztyn.pl","opoczno.pl","opole.pl","ostroda.pl","ostroleka.pl","ostrowiec.pl","ostrowwlkp.pl","pila.pl","pisz.pl","podhale.pl","podlasie.pl","polkowice.pl","pomorze.pl","pomorskie.pl","prochowice.pl","pruszkow.pl","przeworsk.pl","pulawy.pl","radom.pl","rawa-maz.pl","rybnik.pl","rzeszow.pl","sanok.pl","sejny.pl","slask.pl","slupsk.pl","sosnowiec.pl","stalowa-wola.pl","skoczow.pl","starachowice.pl","stargard.pl","suwalki.pl","swidnica.pl","swiebodzin.pl","swinoujscie.pl","szczecin.pl","szczytno.pl","tarnobrzeg.pl","tgory.pl","turek.pl","tychy.pl","ustka.pl","walbrzych.pl","warmia.pl","warszawa.pl","waw.pl","wegrow.pl","wielun.pl","wlocl.pl","wloclawek.pl","wodzislaw.pl","wolomin.pl","wroclaw.pl","zachpomor.pl","zagan.pl","zarow.pl","zgora.pl","zgorzelec.pl","pm","pn","gov.pn","co.pn","org.pn","edu.pn","net.pn","post","pr","com.pr","net.pr","org.pr","gov.pr","edu.pr","isla.pr","pro.pr","biz.pr","info.pr","name.pr","est.pr","prof.pr","ac.pr","pro","aaa.pro","aca.pro","acct.pro","avocat.pro","bar.pro","cpa.pro","eng.pro","jur.pro","law.pro","med.pro","recht.pro","ps","edu.ps","gov.ps","sec.ps","plo.ps","com.ps","org.ps","net.ps","pt","net.pt","gov.pt","org.pt","edu.pt","int.pt","publ.pt","com.pt","nome.pt","pw","co.pw","ne.pw","or.pw","ed.pw","go.pw","belau.pw","py","com.py","coop.py","edu.py","gov.py","mil.py","net.py","org.py","qa","com.qa","edu.qa","gov.qa","mil.qa","name.qa","net.qa","org.qa","sch.qa","re","asso.re","com.re","nom.re","ro","arts.ro","com.ro","firm.ro","info.ro","nom.ro","nt.ro","org.ro","rec.ro","store.ro","tm.ro","www.ro","rs","ac.rs","co.rs","edu.rs","gov.rs","in.rs","org.rs","ru","rw","ac.rw","co.rw","coop.rw","gov.rw","mil.rw","net.rw","org.rw","sa","com.sa","net.sa","org.sa","gov.sa","med.sa","pub.sa","edu.sa","sch.sa","sb","com.sb","edu.sb","gov.sb","net.sb","org.sb","sc","com.sc","gov.sc","net.sc","org.sc","edu.sc","sd","com.sd","net.sd","org.sd","edu.sd","med.sd","tv.sd","gov.sd","info.sd","se","a.se","ac.se","b.se","bd.se","brand.se","c.se","d.se","e.se","f.se","fh.se","fhsk.se","fhv.se","g.se","h.se","i.se","k.se","komforb.se","kommunalforbund.se","komvux.se","l.se","lanbib.se","m.se","n.se","naturbruksgymn.se","o.se","org.se","p.se","parti.se","pp.se","press.se","r.se","s.se","t.se","tm.se","u.se","w.se","x.se","y.se","z.se","sg","com.sg","net.sg","org.sg","gov.sg","edu.sg","per.sg","sh","com.sh","net.sh","gov.sh","org.sh","mil.sh","si","sj","sk","sl","com.sl","net.sl","edu.sl","gov.sl","org.sl","sm","sn","art.sn","com.sn","edu.sn","gouv.sn","org.sn","perso.sn","univ.sn","so","com.so","edu.so","gov.so","me.so","net.so","org.so","sr","ss","biz.ss","com.ss","edu.ss","gov.ss","net.ss","org.ss","st","co.st","com.st","consulado.st","edu.st","embaixada.st","gov.st","mil.st","net.st","org.st","principe.st","saotome.st","store.st","su","sv","com.sv","edu.sv","gob.sv","org.sv","red.sv","sx","gov.sx","sy","edu.sy","gov.sy","net.sy","mil.sy","com.sy","org.sy","sz","co.sz","ac.sz","org.sz","tc","td","tel","tf","tg","th","ac.th","co.th","go.th","in.th","mi.th","net.th","or.th","tj","ac.tj","biz.tj","co.tj","com.tj","edu.tj","go.tj","gov.tj","int.tj","mil.tj","name.tj","net.tj","nic.tj","org.tj","test.tj","web.tj","tk","tl","gov.tl","tm","com.tm","co.tm","org.tm","net.tm","nom.tm","gov.tm","mil.tm","edu.tm","tn","com.tn","ens.tn","fin.tn","gov.tn","ind.tn","intl.tn","nat.tn","net.tn","org.tn","info.tn","perso.tn","tourism.tn","edunet.tn","rnrt.tn","rns.tn","rnu.tn","mincom.tn","agrinet.tn","defense.tn","turen.tn","to","com.to","gov.to","net.to","org.to","edu.to","mil.to","tr","av.tr","bbs.tr","bel.tr","biz.tr","com.tr","dr.tr","edu.tr","gen.tr","gov.tr","info.tr","mil.tr","k12.tr","kep.tr","name.tr","net.tr","org.tr","pol.tr","tel.tr","tsk.tr","tv.tr","web.tr","nc.tr","gov.nc.tr","tt","co.tt","com.tt","org.tt","net.tt","biz.tt","info.tt","pro.tt","int.tt","coop.tt","jobs.tt","mobi.tt","travel.tt","museum.tt","aero.tt","name.tt","gov.tt","edu.tt","tv","tw","edu.tw","gov.tw","mil.tw","com.tw","net.tw","org.tw","idv.tw","game.tw","ebiz.tw","club.tw","網路.tw","組織.tw","商業.tw","tz","ac.tz","co.tz","go.tz","hotel.tz","info.tz","me.tz","mil.tz","mobi.tz","ne.tz","or.tz","sc.tz","tv.tz","ua","com.ua","edu.ua","gov.ua","in.ua","net.ua","org.ua","cherkassy.ua","cherkasy.ua","chernigov.ua","chernihiv.ua","chernivtsi.ua","chernovtsy.ua","ck.ua","cn.ua","cr.ua","crimea.ua","cv.ua","dn.ua","dnepropetrovsk.ua","dnipropetrovsk.ua","dominic.ua","donetsk.ua","dp.ua","if.ua","ivano-frankivsk.ua","kh.ua","kharkiv.ua","kharkov.ua","kherson.ua","khmelnitskiy.ua","khmelnytskyi.ua","kiev.ua","kirovograd.ua","km.ua","kr.ua","krym.ua","ks.ua","kv.ua","kyiv.ua","lg.ua","lt.ua","lugansk.ua","lutsk.ua","lv.ua","lviv.ua","mk.ua","mykolaiv.ua","nikolaev.ua","od.ua","odesa.ua","odessa.ua","pl.ua","poltava.ua","rivne.ua","rovno.ua","rv.ua","sb.ua","sebastopol.ua","sevastopol.ua","sm.ua","sumy.ua","te.ua","ternopil.ua","uz.ua","uzhgorod.ua","vinnica.ua","vinnytsia.ua","vn.ua","volyn.ua","yalta.ua","zaporizhzhe.ua","zaporizhzhia.ua","zhitomir.ua","zhytomyr.ua","zp.ua","zt.ua","ug","co.ug","or.ug","ac.ug","sc.ug","go.ug","ne.ug","com.ug","org.ug","uk","ac.uk","co.uk","gov.uk","ltd.uk","me.uk","net.uk","nhs.uk","org.uk","plc.uk","police.uk","*.sch.uk","us","dni.us","fed.us","isa.us","kids.us","nsn.us","ak.us","al.us","ar.us","as.us","az.us","ca.us","co.us","ct.us","dc.us","de.us","fl.us","ga.us","gu.us","hi.us","ia.us","id.us","il.us","in.us","ks.us","ky.us","la.us","ma.us","md.us","me.us","mi.us","mn.us","mo.us","ms.us","mt.us","nc.us","nd.us","ne.us","nh.us","nj.us","nm.us","nv.us","ny.us","oh.us","ok.us","or.us","pa.us","pr.us","ri.us","sc.us","sd.us","tn.us","tx.us","ut.us","vi.us","vt.us","va.us","wa.us","wi.us","wv.us","wy.us","k12.ak.us","k12.al.us","k12.ar.us","k12.as.us","k12.az.us","k12.ca.us","k12.co.us","k12.ct.us","k12.dc.us","k12.de.us","k12.fl.us","k12.ga.us","k12.gu.us","k12.ia.us","k12.id.us","k12.il.us","k12.in.us","k12.ks.us","k12.ky.us","k12.la.us","k12.ma.us","k12.md.us","k12.me.us","k12.mi.us","k12.mn.us","k12.mo.us","k12.ms.us","k12.mt.us","k12.nc.us","k12.ne.us","k12.nh.us","k12.nj.us","k12.nm.us","k12.nv.us","k12.ny.us","k12.oh.us","k12.ok.us","k12.or.us","k12.pa.us","k12.pr.us","k12.ri.us","k12.sc.us","k12.tn.us","k12.tx.us","k12.ut.us","k12.vi.us","k12.vt.us","k12.va.us","k12.wa.us","k12.wi.us","k12.wy.us","cc.ak.us","cc.al.us","cc.ar.us","cc.as.us","cc.az.us","cc.ca.us","cc.co.us","cc.ct.us","cc.dc.us","cc.de.us","cc.fl.us","cc.ga.us","cc.gu.us","cc.hi.us","cc.ia.us","cc.id.us","cc.il.us","cc.in.us","cc.ks.us","cc.ky.us","cc.la.us","cc.ma.us","cc.md.us","cc.me.us","cc.mi.us","cc.mn.us","cc.mo.us","cc.ms.us","cc.mt.us","cc.nc.us","cc.nd.us","cc.ne.us","cc.nh.us","cc.nj.us","cc.nm.us","cc.nv.us","cc.ny.us","cc.oh.us","cc.ok.us","cc.or.us","cc.pa.us","cc.pr.us","cc.ri.us","cc.sc.us","cc.sd.us","cc.tn.us","cc.tx.us","cc.ut.us","cc.vi.us","cc.vt.us","cc.va.us","cc.wa.us","cc.wi.us","cc.wv.us","cc.wy.us","lib.ak.us","lib.al.us","lib.ar.us","lib.as.us","lib.az.us","lib.ca.us","lib.co.us","lib.ct.us","lib.dc.us","lib.fl.us","lib.ga.us","lib.gu.us","lib.hi.us","lib.ia.us","lib.id.us","lib.il.us","lib.in.us","lib.ks.us","lib.ky.us","lib.la.us","lib.ma.us","lib.md.us","lib.me.us","lib.mi.us","lib.mn.us","lib.mo.us","lib.ms.us","lib.mt.us","lib.nc.us","lib.nd.us","lib.ne.us","lib.nh.us","lib.nj.us","lib.nm.us","lib.nv.us","lib.ny.us","lib.oh.us","lib.ok.us","lib.or.us","lib.pa.us","lib.pr.us","lib.ri.us","lib.sc.us","lib.sd.us","lib.tn.us","lib.tx.us","lib.ut.us","lib.vi.us","lib.vt.us","lib.va.us","lib.wa.us","lib.wi.us","lib.wy.us","pvt.k12.ma.us","chtr.k12.ma.us","paroch.k12.ma.us","ann-arbor.mi.us","cog.mi.us","dst.mi.us","eaton.mi.us","gen.mi.us","mus.mi.us","tec.mi.us","washtenaw.mi.us","uy","com.uy","edu.uy","gub.uy","mil.uy","net.uy","org.uy","uz","co.uz","com.uz","net.uz","org.uz","va","vc","com.vc","net.vc","org.vc","gov.vc","mil.vc","edu.vc","ve","arts.ve","co.ve","com.ve","e12.ve","edu.ve","firm.ve","gob.ve","gov.ve","info.ve","int.ve","mil.ve","net.ve","org.ve","rec.ve","store.ve","tec.ve","web.ve","vg","vi","co.vi","com.vi","k12.vi","net.vi","org.vi","vn","com.vn","net.vn","org.vn","edu.vn","gov.vn","int.vn","ac.vn","biz.vn","info.vn","name.vn","pro.vn","health.vn","vu","com.vu","edu.vu","net.vu","org.vu","wf","ws","com.ws","net.ws","org.ws","gov.ws","edu.ws","yt","امارات","հայ","বাংলা","бг","бел","中国","中國","الجزائر","مصر","ею","ευ","موريتانيا","გე","ελ","香港","公司.香港","教育.香港","政府.香港","個人.香港","網絡.香港","組織.香港","ಭಾರತ","ଭାରତ","ভাৰত","भारतम्","भारोत","ڀارت","ഭാരതം","भारत","بارت","بھارت","భారత్","ભારત","ਭਾਰਤ","ভারত","இந்தியா","ایران","ايران","عراق","الاردن","한국","қаз","ලංකා","இலங்கை","المغرب","мкд","мон","澳門","澳门","مليسيا","عمان","پاکستان","پاكستان","فلسطين","срб","пр.срб","орг.срб","обр.срб","од.срб","упр.срб","ак.срб","рф","قطر","السعودية","السعودیة","السعودیۃ","السعوديه","سودان","新加坡","சிங்கப்பூர்","سورية","سوريا","ไทย","ศึกษา.ไทย","ธุรกิจ.ไทย","รัฐบาล.ไทย","ทหาร.ไทย","เน็ต.ไทย","องค์กร.ไทย","تونس","台灣","台湾","臺灣","укр","اليمن","xxx","*.ye","ac.za","agric.za","alt.za","co.za","edu.za","gov.za","grondar.za","law.za","mil.za","net.za","ngo.za","nic.za","nis.za","nom.za","org.za","school.za","tm.za","web.za","zm","ac.zm","biz.zm","co.zm","com.zm","edu.zm","gov.zm","info.zm","mil.zm","net.zm","org.zm","sch.zm","zw","ac.zw","co.zw","gov.zw","mil.zw","org.zw","aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","academy","accenture","accountant","accountants","aco","actor","adac","ads","adult","aeg","aetna","afamilycompany","afl","africa","agakhan","agency","aig","aigo","airbus","airforce","airtel","akdn","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","aol","apartments","app","apple","aquarelle","arab","aramco","archi","army","art","arte","asda","associates","athleta","attorney","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aws","axa","azure","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bbc","bbt","bbva","bcg","bcn","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bharti","bible","bid","bike","bing","bingo","bio","black","blackfriday","blockbuster","blog","bloomberg","blue","bms","bmw","bnpparibas","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","bradesco","bridgestone","broadway","broker","brother","brussels","budapest","bugatti","build","builders","business","buy","buzz","bzh","cab","cafe","cal","call","calvinklein","cam","camera","camp","cancerresearch","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","caseih","cash","casino","catering","catholic","cba","cbn","cbre","cbs","ceb","center","ceo","cern","cfa","cfd","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","coach","codes","coffee","college","cologne","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","corsica","country","coupon","coupons","courses","cpa","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","csc","cuisinella","cymru","cyou","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dnp","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","duck","dunlop","dupont","durban","dvag","dvr","earth","eat","eco","edeka","education","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","ericsson","erni","esq","estate","esurance","etisalat","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","flickr","flights","flir","florist","flowers","fly","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fujixerox","fun","fund","furniture","futbol","fyi","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gbiz","gdn","gea","gent","genting","george","ggee","gift","gifts","gives","giving","glade","glass","gle","global","globo","gmail","gmbh","gmo","gmx","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","grainger","graphics","gratis","green","gripe","grocery","group","guardian","gucci","guge","guide","guitars","guru","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hkt","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hoteles","hotels","hotmail","house","how","hsbc","hughes","hyatt","hyundai","ibm","icbc","ice","icu","ieee","ifm","ikano","imamat","imdb","immo","immobilien","inc","industries","infiniti","ing","ink","institute","insurance","insure","intel","international","intuit","investments","ipiranga","irish","ismaili","ist","istanbul","itau","itv","iveco","jaguar","java","jcb","jcp","jeep","jetzt","jewelry","jio","jll","jmp","jnj","joburg","jot","joy","jpmorgan","jprs","juegos","juniper","kaufen","kddi","kerryhotels","kerrylogistics","kerryproperties","kfh","kia","kim","kinder","kindle","kitchen","kiwi","koeln","komatsu","kosher","kpmg","kpn","krd","kred","kuokgroup","kyoto","lacaixa","lamborghini","lamer","lancaster","lancia","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","linde","link","lipsy","live","living","lixil","llc","llp","loan","loans","locker","locus","loft","lol","london","lotte","lotto","love","lpl","lplfinancial","ltd","ltda","lundbeck","lupin","luxe","luxury","macys","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mckinsey","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","metlife","miami","microsoft","mini","mint","mit","mitsubishi","mlb","mls","mma","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","msd","mtn","mtr","mutual","nab","nadex","nagoya","nationwide","natura","navy","nba","nec","netbank","netflix","network","neustar","new","newholland","news","next","nextdirect","nexus","nfl","ngo","nhk","nico","nike","nikon","ninja","nissan","nissay","nokia","northwesternmutual","norton","now","nowruz","nowtv","nra","nrw","ntt","nyc","obi","observer","off","office","okinawa","olayan","olayangroup","oldnavy","ollo","omega","one","ong","onl","online","onyourside","ooo","open","oracle","orange","organic","origins","osaka","otsuka","ott","ovh","page","panasonic","paris","pars","partners","parts","party","passagens","pay","pccw","pet","pfizer","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","place","play","playstation","plumbing","plus","pnc","pohl","poker","politie","porn","pramerica","praxi","press","prime","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","pub","pwc","qpon","quebec","quest","qvc","racing","radio","raid","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","rightathome","ril","rio","rip","rmit","rocher","rocks","rodeo","rogers","room","rsvp","rugby","ruhr","run","rwe","ryukyu","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sbi","sbs","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scjohnson","scor","scot","search","seat","secure","security","seek","select","sener","services","ses","seven","sew","sex","sexy","sfr","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","shriram","silk","sina","singles","site","ski","skin","sky","skype","sling","smart","smile","sncf","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","spreadbetting","srl","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","sucks","supplies","supply","support","surf","surgery","suzuki","swatch","swiftcover","swiss","sydney","symantec","systems","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tci","tdk","team","tech","technology","temasek","tennis","teva","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tjmaxx","tjx","tkmaxx","tmall","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tube","tui","tunes","tushu","tvs","ubank","ubs","unicom","university","uno","uol","ups","vacations","vana","vanguard","vegas","ventures","verisign","versicherung","vet","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vodka","volkswagen","volvo","vote","voting","voto","voyage","vuelos","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","कॉम","セール","佛山","慈善","集团","在线","大众汽车","点看","คอม","八卦","موقع","公益","公司","香格里拉","网站","移动","我爱你","москва","католик","онлайн","сайт","联通","קום","时尚","微博","淡马锡","ファッション","орг","नेट","ストア","アマゾン","삼성","商标","商店","商城","дети","ポイント","新闻","工行","家電","كوم","中文网","中信","娱乐","谷歌","電訊盈科","购物","クラウド","通販","网店","संगठन","餐厅","网络","ком","亚马逊","诺基亚","食品","飞利浦","手表","手机","ارامكو","العليان","اتصالات","بازار","ابوظبي","كاثوليك","همراه","닷컴","政府","شبكة","بيتك","عرب","机构","组织机构","健康","招聘","рус","珠宝","大拿","みんな","グーグル","世界","書籍","网址","닷넷","コム","天主教","游戏","vermögensberater","vermögensberatung","企业","信息","嘉里大酒店","嘉里","广东","政务","xyz","yachts","yahoo","yamaxun","yandex","yodobashi","yoga","yokohama","you","youtube","yun","zappos","zara","zero","zip","zone","zuerich","cc.ua","inf.ua","ltd.ua","adobeaemcloud.com","adobeaemcloud.net","*.dev.adobeaemcloud.com","beep.pl","barsy.ca","*.compute.estate","*.alces.network","altervista.org","alwaysdata.net","cloudfront.net","*.compute.amazonaws.com","*.compute-1.amazonaws.com","*.compute.amazonaws.com.cn","us-east-1.amazonaws.com","cn-north-1.eb.amazonaws.com.cn","cn-northwest-1.eb.amazonaws.com.cn","elasticbeanstalk.com","ap-northeast-1.elasticbeanstalk.com","ap-northeast-2.elasticbeanstalk.com","ap-northeast-3.elasticbeanstalk.com","ap-south-1.elasticbeanstalk.com","ap-southeast-1.elasticbeanstalk.com","ap-southeast-2.elasticbeanstalk.com","ca-central-1.elasticbeanstalk.com","eu-central-1.elasticbeanstalk.com","eu-west-1.elasticbeanstalk.com","eu-west-2.elasticbeanstalk.com","eu-west-3.elasticbeanstalk.com","sa-east-1.elasticbeanstalk.com","us-east-1.elasticbeanstalk.com","us-east-2.elasticbeanstalk.com","us-gov-west-1.elasticbeanstalk.com","us-west-1.elasticbeanstalk.com","us-west-2.elasticbeanstalk.com","*.elb.amazonaws.com","*.elb.amazonaws.com.cn","s3.amazonaws.com","s3-ap-northeast-1.amazonaws.com","s3-ap-northeast-2.amazonaws.com","s3-ap-south-1.amazonaws.com","s3-ap-southeast-1.amazonaws.com","s3-ap-southeast-2.amazonaws.com","s3-ca-central-1.amazonaws.com","s3-eu-central-1.amazonaws.com","s3-eu-west-1.amazonaws.com","s3-eu-west-2.amazonaws.com","s3-eu-west-3.amazonaws.com","s3-external-1.amazonaws.com","s3-fips-us-gov-west-1.amazonaws.com","s3-sa-east-1.amazonaws.com","s3-us-gov-west-1.amazonaws.com","s3-us-east-2.amazonaws.com","s3-us-west-1.amazonaws.com","s3-us-west-2.amazonaws.com","s3.ap-northeast-2.amazonaws.com","s3.ap-south-1.amazonaws.com","s3.cn-north-1.amazonaws.com.cn","s3.ca-central-1.amazonaws.com","s3.eu-central-1.amazonaws.com","s3.eu-west-2.amazonaws.com","s3.eu-west-3.amazonaws.com","s3.us-east-2.amazonaws.com","s3.dualstack.ap-northeast-1.amazonaws.com","s3.dualstack.ap-northeast-2.amazonaws.com","s3.dualstack.ap-south-1.amazonaws.com","s3.dualstack.ap-southeast-1.amazonaws.com","s3.dualstack.ap-southeast-2.amazonaws.com","s3.dualstack.ca-central-1.amazonaws.com","s3.dualstack.eu-central-1.amazonaws.com","s3.dualstack.eu-west-1.amazonaws.com","s3.dualstack.eu-west-2.amazonaws.com","s3.dualstack.eu-west-3.amazonaws.com","s3.dualstack.sa-east-1.amazonaws.com","s3.dualstack.us-east-1.amazonaws.com","s3.dualstack.us-east-2.amazonaws.com","s3-website-us-east-1.amazonaws.com","s3-website-us-west-1.amazonaws.com","s3-website-us-west-2.amazonaws.com","s3-website-ap-northeast-1.amazonaws.com","s3-website-ap-southeast-1.amazonaws.com","s3-website-ap-southeast-2.amazonaws.com","s3-website-eu-west-1.amazonaws.com","s3-website-sa-east-1.amazonaws.com","s3-website.ap-northeast-2.amazonaws.com","s3-website.ap-south-1.amazonaws.com","s3-website.ca-central-1.amazonaws.com","s3-website.eu-central-1.amazonaws.com","s3-website.eu-west-2.amazonaws.com","s3-website.eu-west-3.amazonaws.com","s3-website.us-east-2.amazonaws.com","amsw.nl","t3l3p0rt.net","tele.amune.org","apigee.io","on-aptible.com","user.aseinet.ne.jp","gv.vc","d.gv.vc","user.party.eus","pimienta.org","poivron.org","potager.org","sweetpepper.org","myasustor.com","myfritz.net","*.awdev.ca","*.advisor.ws","b-data.io","backplaneapp.io","balena-devices.com","app.banzaicloud.io","betainabox.com","bnr.la","blackbaudcdn.net","boomla.net","boxfuse.io","square7.ch","bplaced.com","bplaced.de","square7.de","bplaced.net","square7.net","browsersafetymark.io","uk0.bigv.io","dh.bytemark.co.uk","vm.bytemark.co.uk","mycd.eu","carrd.co","crd.co","uwu.ai","ae.org","ar.com","br.com","cn.com","com.de","com.se","de.com","eu.com","gb.com","gb.net","hu.com","hu.net","jp.net","jpn.com","kr.com","mex.com","no.com","qc.com","ru.com","sa.com","se.net","uk.com","uk.net","us.com","uy.com","za.bz","za.com","africa.com","gr.com","in.net","us.org","co.com","c.la","certmgr.org","xenapponazure.com","discourse.group","discourse.team","virtueeldomein.nl","cleverapps.io","*.lcl.dev","*.stg.dev","c66.me","cloud66.ws","cloud66.zone","jdevcloud.com","wpdevcloud.com","cloudaccess.host","freesite.host","cloudaccess.net","cloudcontrolled.com","cloudcontrolapp.com","cloudera.site","trycloudflare.com","workers.dev","wnext.app","co.ca","*.otap.co","co.cz","c.cdn77.org","cdn77-ssl.net","r.cdn77.net","rsc.cdn77.org","ssl.origin.cdn77-secure.org","cloudns.asia","cloudns.biz","cloudns.club","cloudns.cc","cloudns.eu","cloudns.in","cloudns.info","cloudns.org","cloudns.pro","cloudns.pw","cloudns.us","cloudeity.net","cnpy.gdn","co.nl","co.no","webhosting.be","hosting-cluster.nl","ac.ru","edu.ru","gov.ru","int.ru","mil.ru","test.ru","dyn.cosidns.de","dynamisches-dns.de","dnsupdater.de","internet-dns.de","l-o-g-i-n.de","dynamic-dns.info","feste-ip.net","knx-server.net","static-access.net","realm.cz","*.cryptonomic.net","cupcake.is","*.customer-oci.com","*.oci.customer-oci.com","*.ocp.customer-oci.com","*.ocs.customer-oci.com","cyon.link","cyon.site","daplie.me","localhost.daplie.me","dattolocal.com","dattorelay.com","dattoweb.com","mydatto.com","dattolocal.net","mydatto.net","biz.dk","co.dk","firm.dk","reg.dk","store.dk","*.dapps.earth","*.bzz.dapps.earth","builtwithdark.com","edgestack.me","debian.net","dedyn.io","dnshome.de","online.th","shop.th","drayddns.com","dreamhosters.com","mydrobo.com","drud.io","drud.us","duckdns.org","dy.fi","tunk.org","dyndns-at-home.com","dyndns-at-work.com","dyndns-blog.com","dyndns-free.com","dyndns-home.com","dyndns-ip.com","dyndns-mail.com","dyndns-office.com","dyndns-pics.com","dyndns-remote.com","dyndns-server.com","dyndns-web.com","dyndns-wiki.com","dyndns-work.com","dyndns.biz","dyndns.info","dyndns.org","dyndns.tv","at-band-camp.net","ath.cx","barrel-of-knowledge.info","barrell-of-knowledge.info","better-than.tv","blogdns.com","blogdns.net","blogdns.org","blogsite.org","boldlygoingnowhere.org","broke-it.net","buyshouses.net","cechire.com","dnsalias.com","dnsalias.net","dnsalias.org","dnsdojo.com","dnsdojo.net","dnsdojo.org","does-it.net","doesntexist.com","doesntexist.org","dontexist.com","dontexist.net","dontexist.org","doomdns.com","doomdns.org","dvrdns.org","dyn-o-saur.com","dynalias.com","dynalias.net","dynalias.org","dynathome.net","dyndns.ws","endofinternet.net","endofinternet.org","endoftheinternet.org","est-a-la-maison.com","est-a-la-masion.com","est-le-patron.com","est-mon-blogueur.com","for-better.biz","for-more.biz","for-our.info","for-some.biz","for-the.biz","forgot.her.name","forgot.his.name","from-ak.com","from-al.com","from-ar.com","from-az.net","from-ca.com","from-co.net","from-ct.com","from-dc.com","from-de.com","from-fl.com","from-ga.com","from-hi.com","from-ia.com","from-id.com","from-il.com","from-in.com","from-ks.com","from-ky.com","from-la.net","from-ma.com","from-md.com","from-me.org","from-mi.com","from-mn.com","from-mo.com","from-ms.com","from-mt.com","from-nc.com","from-nd.com","from-ne.com","from-nh.com","from-nj.com","from-nm.com","from-nv.com","from-ny.net","from-oh.com","from-ok.com","from-or.com","from-pa.com","from-pr.com","from-ri.com","from-sc.com","from-sd.com","from-tn.com","from-tx.com","from-ut.com","from-va.com","from-vt.com","from-wa.com","from-wi.com","from-wv.com","from-wy.com","ftpaccess.cc","fuettertdasnetz.de","game-host.org","game-server.cc","getmyip.com","gets-it.net","go.dyndns.org","gotdns.com","gotdns.org","groks-the.info","groks-this.info","ham-radio-op.net","here-for-more.info","hobby-site.com","hobby-site.org","home.dyndns.org","homedns.org","homeftp.net","homeftp.org","homeip.net","homelinux.com","homelinux.net","homelinux.org","homeunix.com","homeunix.net","homeunix.org","iamallama.com","in-the-band.net","is-a-anarchist.com","is-a-blogger.com","is-a-bookkeeper.com","is-a-bruinsfan.org","is-a-bulls-fan.com","is-a-candidate.org","is-a-caterer.com","is-a-celticsfan.org","is-a-chef.com","is-a-chef.net","is-a-chef.org","is-a-conservative.com","is-a-cpa.com","is-a-cubicle-slave.com","is-a-democrat.com","is-a-designer.com","is-a-doctor.com","is-a-financialadvisor.com","is-a-geek.com","is-a-geek.net","is-a-geek.org","is-a-green.com","is-a-guru.com","is-a-hard-worker.com","is-a-hunter.com","is-a-knight.org","is-a-landscaper.com","is-a-lawyer.com","is-a-liberal.com","is-a-libertarian.com","is-a-linux-user.org","is-a-llama.com","is-a-musician.com","is-a-nascarfan.com","is-a-nurse.com","is-a-painter.com","is-a-patsfan.org","is-a-personaltrainer.com","is-a-photographer.com","is-a-player.com","is-a-republican.com","is-a-rockstar.com","is-a-socialist.com","is-a-soxfan.org","is-a-student.com","is-a-teacher.com","is-a-techie.com","is-a-therapist.com","is-an-accountant.com","is-an-actor.com","is-an-actress.com","is-an-anarchist.com","is-an-artist.com","is-an-engineer.com","is-an-entertainer.com","is-by.us","is-certified.com","is-found.org","is-gone.com","is-into-anime.com","is-into-cars.com","is-into-cartoons.com","is-into-games.com","is-leet.com","is-lost.org","is-not-certified.com","is-saved.org","is-slick.com","is-uberleet.com","is-very-bad.org","is-very-evil.org","is-very-good.org","is-very-nice.org","is-very-sweet.org","is-with-theband.com","isa-geek.com","isa-geek.net","isa-geek.org","isa-hockeynut.com","issmarterthanyou.com","isteingeek.de","istmein.de","kicks-ass.net","kicks-ass.org","knowsitall.info","land-4-sale.us","lebtimnetz.de","leitungsen.de","likes-pie.com","likescandy.com","merseine.nu","mine.nu","misconfused.org","mypets.ws","myphotos.cc","neat-url.com","office-on-the.net","on-the-web.tv","podzone.net","podzone.org","readmyblog.org","saves-the-whales.com","scrapper-site.net","scrapping.cc","selfip.biz","selfip.com","selfip.info","selfip.net","selfip.org","sells-for-less.com","sells-for-u.com","sells-it.net","sellsyourhome.org","servebbs.com","servebbs.net","servebbs.org","serveftp.net","serveftp.org","servegame.org","shacknet.nu","simple-url.com","space-to-rent.com","stuff-4-sale.org","stuff-4-sale.us","teaches-yoga.com","thruhere.net","traeumtgerade.de","webhop.biz","webhop.info","webhop.net","webhop.org","worse-than.tv","writesthisblog.com","ddnss.de","dyn.ddnss.de","dyndns.ddnss.de","dyndns1.de","dyn-ip24.de","home-webserver.de","dyn.home-webserver.de","myhome-server.de","ddnss.org","definima.net","definima.io","bci.dnstrace.pro","ddnsfree.com","ddnsgeek.com","giize.com","gleeze.com","kozow.com","loseyourip.com","ooguy.com","theworkpc.com","casacam.net","dynu.net","accesscam.org","camdvr.org","freeddns.org","mywire.org","webredirect.org","myddns.rocks","blogsite.xyz","dynv6.net","e4.cz","en-root.fr","mytuleap.com","onred.one","staging.onred.one","enonic.io","customer.enonic.io","eu.org","al.eu.org","asso.eu.org","at.eu.org","au.eu.org","be.eu.org","bg.eu.org","ca.eu.org","cd.eu.org","ch.eu.org","cn.eu.org","cy.eu.org","cz.eu.org","de.eu.org","dk.eu.org","edu.eu.org","ee.eu.org","es.eu.org","fi.eu.org","fr.eu.org","gr.eu.org","hr.eu.org","hu.eu.org","ie.eu.org","il.eu.org","in.eu.org","int.eu.org","is.eu.org","it.eu.org","jp.eu.org","kr.eu.org","lt.eu.org","lu.eu.org","lv.eu.org","mc.eu.org","me.eu.org","mk.eu.org","mt.eu.org","my.eu.org","net.eu.org","ng.eu.org","nl.eu.org","no.eu.org","nz.eu.org","paris.eu.org","pl.eu.org","pt.eu.org","q-a.eu.org","ro.eu.org","ru.eu.org","se.eu.org","si.eu.org","sk.eu.org","tr.eu.org","uk.eu.org","us.eu.org","eu-1.evennode.com","eu-2.evennode.com","eu-3.evennode.com","eu-4.evennode.com","us-1.evennode.com","us-2.evennode.com","us-3.evennode.com","us-4.evennode.com","twmail.cc","twmail.net","twmail.org","mymailer.com.tw","url.tw","apps.fbsbx.com","ru.net","adygeya.ru","bashkiria.ru","bir.ru","cbg.ru","com.ru","dagestan.ru","grozny.ru","kalmykia.ru","kustanai.ru","marine.ru","mordovia.ru","msk.ru","mytis.ru","nalchik.ru","nov.ru","pyatigorsk.ru","spb.ru","vladikavkaz.ru","vladimir.ru","abkhazia.su","adygeya.su","aktyubinsk.su","arkhangelsk.su","armenia.su","ashgabad.su","azerbaijan.su","balashov.su","bashkiria.su","bryansk.su","bukhara.su","chimkent.su","dagestan.su","east-kazakhstan.su","exnet.su","georgia.su","grozny.su","ivanovo.su","jambyl.su","kalmykia.su","kaluga.su","karacol.su","karaganda.su","karelia.su","khakassia.su","krasnodar.su","kurgan.su","kustanai.su","lenug.su","mangyshlak.su","mordovia.su","msk.su","murmansk.su","nalchik.su","navoi.su","north-kazakhstan.su","nov.su","obninsk.su","penza.su","pokrovsk.su","sochi.su","spb.su","tashkent.su","termez.su","togliatti.su","troitsk.su","tselinograd.su","tula.su","tuva.su","vladikavkaz.su","vladimir.su","vologda.su","channelsdvr.net","u.channelsdvr.net","fastly-terrarium.com","fastlylb.net","map.fastlylb.net","freetls.fastly.net","map.fastly.net","a.prod.fastly.net","global.prod.fastly.net","a.ssl.fastly.net","b.ssl.fastly.net","global.ssl.fastly.net","fastpanel.direct","fastvps-server.com","fhapp.xyz","fedorainfracloud.org","fedorapeople.org","cloud.fedoraproject.org","app.os.fedoraproject.org","app.os.stg.fedoraproject.org","mydobiss.com","filegear.me","filegear-au.me","filegear-de.me","filegear-gb.me","filegear-ie.me","filegear-jp.me","filegear-sg.me","firebaseapp.com","flynnhub.com","flynnhosting.net","0e.vc","freebox-os.com","freeboxos.com","fbx-os.fr","fbxos.fr","freebox-os.fr","freeboxos.fr","freedesktop.org","*.futurecms.at","*.ex.futurecms.at","*.in.futurecms.at","futurehosting.at","futuremailing.at","*.ex.ortsinfo.at","*.kunden.ortsinfo.at","*.statics.cloud","service.gov.uk","gehirn.ne.jp","usercontent.jp","gentapps.com","lab.ms","github.io","githubusercontent.com","gitlab.io","glitch.me","lolipop.io","cloudapps.digital","london.cloudapps.digital","homeoffice.gov.uk","ro.im","shop.ro","goip.de","run.app","a.run.app","web.app","*.0emm.com","appspot.com","*.r.appspot.com","blogspot.ae","blogspot.al","blogspot.am","blogspot.ba","blogspot.be","blogspot.bg","blogspot.bj","blogspot.ca","blogspot.cf","blogspot.ch","blogspot.cl","blogspot.co.at","blogspot.co.id","blogspot.co.il","blogspot.co.ke","blogspot.co.nz","blogspot.co.uk","blogspot.co.za","blogspot.com","blogspot.com.ar","blogspot.com.au","blogspot.com.br","blogspot.com.by","blogspot.com.co","blogspot.com.cy","blogspot.com.ee","blogspot.com.eg","blogspot.com.es","blogspot.com.mt","blogspot.com.ng","blogspot.com.tr","blogspot.com.uy","blogspot.cv","blogspot.cz","blogspot.de","blogspot.dk","blogspot.fi","blogspot.fr","blogspot.gr","blogspot.hk","blogspot.hr","blogspot.hu","blogspot.ie","blogspot.in","blogspot.is","blogspot.it","blogspot.jp","blogspot.kr","blogspot.li","blogspot.lt","blogspot.lu","blogspot.md","blogspot.mk","blogspot.mr","blogspot.mx","blogspot.my","blogspot.nl","blogspot.no","blogspot.pe","blogspot.pt","blogspot.qa","blogspot.re","blogspot.ro","blogspot.rs","blogspot.ru","blogspot.se","blogspot.sg","blogspot.si","blogspot.sk","blogspot.sn","blogspot.td","blogspot.tw","blogspot.ug","blogspot.vn","cloudfunctions.net","cloud.goog","codespot.com","googleapis.com","googlecode.com","pagespeedmobilizer.com","publishproxy.com","withgoogle.com","withyoutube.com","awsmppl.com","fin.ci","free.hr","caa.li","ua.rs","conf.se","hs.zone","hs.run","hashbang.sh","hasura.app","hasura-app.io","hepforge.org","herokuapp.com","herokussl.com","myravendb.com","ravendb.community","ravendb.me","development.run","ravendb.run","bpl.biz","orx.biz","ng.city","biz.gl","ng.ink","col.ng","firm.ng","gen.ng","ltd.ng","ngo.ng","ng.school","sch.so","häkkinen.fi","*.moonscale.io","moonscale.net","iki.fi","dyn-berlin.de","in-berlin.de","in-brb.de","in-butter.de","in-dsl.de","in-dsl.net","in-dsl.org","in-vpn.de","in-vpn.net","in-vpn.org","biz.at","info.at","info.cx","ac.leg.br","al.leg.br","am.leg.br","ap.leg.br","ba.leg.br","ce.leg.br","df.leg.br","es.leg.br","go.leg.br","ma.leg.br","mg.leg.br","ms.leg.br","mt.leg.br","pa.leg.br","pb.leg.br","pe.leg.br","pi.leg.br","pr.leg.br","rj.leg.br","rn.leg.br","ro.leg.br","rr.leg.br","rs.leg.br","sc.leg.br","se.leg.br","sp.leg.br","to.leg.br","pixolino.com","ipifony.net","mein-iserv.de","test-iserv.de","iserv.dev","iobb.net","myjino.ru","*.hosting.myjino.ru","*.landing.myjino.ru","*.spectrum.myjino.ru","*.vps.myjino.ru","*.triton.zone","*.cns.joyent.com","js.org","kaas.gg","khplay.nl","keymachine.de","kinghost.net","uni5.net","knightpoint.systems","oya.to","co.krd","edu.krd","git-repos.de","lcube-server.de","svn-repos.de","leadpages.co","lpages.co","lpusercontent.com","lelux.site","co.business","co.education","co.events","co.financial","co.network","co.place","co.technology","app.lmpm.com","linkitools.space","linkyard.cloud","linkyard-cloud.ch","members.linode.com","nodebalancer.linode.com","we.bs","loginline.app","loginline.dev","loginline.io","loginline.services","loginline.site","krasnik.pl","leczna.pl","lubartow.pl","lublin.pl","poniatowa.pl","swidnik.pl","uklugs.org","glug.org.uk","lug.org.uk","lugs.org.uk","barsy.bg","barsy.co.uk","barsyonline.co.uk","barsycenter.com","barsyonline.com","barsy.club","barsy.de","barsy.eu","barsy.in","barsy.info","barsy.io","barsy.me","barsy.menu","barsy.mobi","barsy.net","barsy.online","barsy.org","barsy.pro","barsy.pub","barsy.shop","barsy.site","barsy.support","barsy.uk","*.magentosite.cloud","mayfirst.info","mayfirst.org","hb.cldmail.ru","miniserver.com","memset.net","cloud.metacentrum.cz","custom.metacentrum.cz","flt.cloud.muni.cz","usr.cloud.muni.cz","meteorapp.com","eu.meteorapp.com","co.pl","azurecontainer.io","azurewebsites.net","azure-mobile.net","cloudapp.net","mozilla-iot.org","bmoattachments.org","net.ru","org.ru","pp.ru","ui.nabu.casa","pony.club","of.fashion","on.fashion","of.football","in.london","of.london","for.men","and.mom","for.mom","for.one","for.sale","of.work","to.work","nctu.me","bitballoon.com","netlify.com","4u.com","ngrok.io","nh-serv.co.uk","nfshost.com","dnsking.ch","mypi.co","n4t.co","001www.com","ddnslive.com","myiphost.com","forumz.info","16-b.it","32-b.it","64-b.it","soundcast.me","tcp4.me","dnsup.net","hicam.net","now-dns.net","ownip.net","vpndns.net","dynserv.org","now-dns.org","x443.pw","now-dns.top","ntdll.top","freeddns.us","crafting.xyz","zapto.xyz","nsupdate.info","nerdpol.ovh","blogsyte.com","brasilia.me","cable-modem.org","ciscofreak.com","collegefan.org","couchpotatofries.org","damnserver.com","ddns.me","ditchyourip.com","dnsfor.me","dnsiskinky.com","dvrcam.info","dynns.com","eating-organic.net","fantasyleague.cc","geekgalaxy.com","golffan.us","health-carereform.com","homesecuritymac.com","homesecuritypc.com","hopto.me","ilovecollege.info","loginto.me","mlbfan.org","mmafan.biz","myactivedirectory.com","mydissent.net","myeffect.net","mymediapc.net","mypsx.net","mysecuritycamera.com","mysecuritycamera.net","mysecuritycamera.org","net-freaks.com","nflfan.org","nhlfan.net","no-ip.ca","no-ip.co.uk","no-ip.net","noip.us","onthewifi.com","pgafan.net","point2this.com","pointto.us","privatizehealthinsurance.net","quicksytes.com","read-books.org","securitytactics.com","serveexchange.com","servehumour.com","servep2p.com","servesarcasm.com","stufftoread.com","ufcfan.org","unusualperson.com","workisboring.com","3utilities.com","bounceme.net","ddns.net","ddnsking.com","gotdns.ch","hopto.org","myftp.biz","myftp.org","myvnc.com","no-ip.biz","no-ip.info","no-ip.org","noip.me","redirectme.net","servebeer.com","serveblog.net","servecounterstrike.com","serveftp.com","servegame.com","servehalflife.com","servehttp.com","serveirc.com","serveminecraft.net","servemp3.com","servepics.com","servequake.com","sytes.net","webhop.me","zapto.org","stage.nodeart.io","nodum.co","nodum.io","pcloud.host","nyc.mn","nom.ae","nom.af","nom.ai","nom.al","nym.by","nom.bz","nym.bz","nom.cl","nym.ec","nom.gd","nom.ge","nom.gl","nym.gr","nom.gt","nym.gy","nym.hk","nom.hn","nym.ie","nom.im","nom.ke","nym.kz","nym.la","nym.lc","nom.li","nym.li","nym.lt","nym.lu","nom.lv","nym.me","nom.mk","nym.mn","nym.mx","nom.nu","nym.nz","nym.pe","nym.pt","nom.pw","nom.qa","nym.ro","nom.rs","nom.si","nym.sk","nom.st","nym.su","nym.sx","nom.tj","nym.tw","nom.ug","nom.uy","nom.vc","nom.vg","static.observableusercontent.com","cya.gg","cloudycluster.net","nid.io","opencraft.hosting","operaunite.com","skygearapp.com","outsystemscloud.com","ownprovider.com","own.pm","ox.rs","oy.lc","pgfog.com","pagefrontapp.com","art.pl","gliwice.pl","krakow.pl","poznan.pl","wroc.pl","zakopane.pl","pantheonsite.io","gotpantheon.com","mypep.link","perspecta.cloud","on-web.fr","*.platform.sh","*.platformsh.site","dyn53.io","co.bn","xen.prgmr.com","priv.at","prvcy.page","*.dweb.link","protonet.io","chirurgiens-dentistes-en-france.fr","byen.site","pubtls.org","qualifioapp.com","qbuser.com","instantcloud.cn","ras.ru","qa2.com","qcx.io","*.sys.qcx.io","dev-myqnapcloud.com","alpha-myqnapcloud.com","myqnapcloud.com","*.quipelements.com","vapor.cloud","vaporcloud.io","rackmaze.com","rackmaze.net","*.on-k3s.io","*.on-rancher.cloud","*.on-rio.io","readthedocs.io","rhcloud.com","app.render.com","onrender.com","repl.co","repl.run","resindevice.io","devices.resinstaging.io","hzc.io","wellbeingzone.eu","ptplus.fit","wellbeingzone.co.uk","git-pages.rit.edu","sandcats.io","logoip.de","logoip.com","schokokeks.net","gov.scot","scrysec.com","firewall-gateway.com","firewall-gateway.de","my-gateway.de","my-router.de","spdns.de","spdns.eu","firewall-gateway.net","my-firewall.org","myfirewall.org","spdns.org","senseering.net","biz.ua","co.ua","pp.ua","shiftedit.io","myshopblocks.com","shopitsite.com","mo-siemens.io","1kapp.com","appchizi.com","applinzi.com","sinaapp.com","vipsinaapp.com","siteleaf.net","bounty-full.com","alpha.bounty-full.com","beta.bounty-full.com","stackhero-network.com","static.land","dev.static.land","sites.static.land","apps.lair.io","*.stolos.io","spacekit.io","customer.speedpartner.de","api.stdlib.com","storj.farm","utwente.io","soc.srcf.net","user.srcf.net","temp-dns.com","applicationcloud.io","scapp.io","*.s5y.io","*.sensiosite.cloud","syncloud.it","diskstation.me","dscloud.biz","dscloud.me","dscloud.mobi","dsmynas.com","dsmynas.net","dsmynas.org","familyds.com","familyds.net","familyds.org","i234.me","myds.me","synology.me","vpnplus.to","direct.quickconnect.to","taifun-dns.de","gda.pl","gdansk.pl","gdynia.pl","med.pl","sopot.pl","edugit.org","telebit.app","telebit.io","*.telebit.xyz","gwiddle.co.uk","thingdustdata.com","cust.dev.thingdust.io","cust.disrec.thingdust.io","cust.prod.thingdust.io","cust.testing.thingdust.io","arvo.network","azimuth.network","bloxcms.com","townnews-staging.com","12hp.at","2ix.at","4lima.at","lima-city.at","12hp.ch","2ix.ch","4lima.ch","lima-city.ch","trafficplex.cloud","de.cool","12hp.de","2ix.de","4lima.de","lima-city.de","1337.pictures","clan.rip","lima-city.rocks","webspace.rocks","lima.zone","*.transurl.be","*.transurl.eu","*.transurl.nl","tuxfamily.org","dd-dns.de","diskstation.eu","diskstation.org","dray-dns.de","draydns.de","dyn-vpn.de","dynvpn.de","mein-vigor.de","my-vigor.de","my-wan.de","syno-ds.de","synology-diskstation.de","synology-ds.de","uber.space","*.uberspace.de","hk.com","hk.org","ltd.hk","inc.hk","virtualuser.de","virtual-user.de","urown.cloud","dnsupdate.info","lib.de.us","2038.io","router.management","v-info.info","voorloper.cloud","v.ua","wafflecell.com","*.webhare.dev","wedeploy.io","wedeploy.me","wedeploy.sh","remotewd.com","wmflabs.org","myforum.community","community-pro.de","diskussionsbereich.de","community-pro.net","meinforum.net","half.host","xnbay.com","u2.xnbay.com","u2-local.xnbay.com","cistron.nl","demon.nl","xs4all.space","yandexcloud.net","storage.yandexcloud.net","website.yandexcloud.net","official.academy","yolasite.com","ybo.faith","yombo.me","homelink.one","ybo.party","ybo.review","ybo.science","ybo.trade","nohost.me","noho.st","za.net","za.org","now.sh","bss.design","basicserver.io","virtualserver.io","enterprisecloud.nu"]') + }, + 735: e => { + "use strict"; + e.exports = { + i8: "1.3.7" + } + }, + 9876: e => { + "use strict"; + e.exports = JSON.parse('{"name":"copilot","displayName":"GitHub Copilot","description":"Your AI pair programmer","version":"1.7.22","build":"dev","buildType":"dev","publisher":"GitHub","preview":true,"repository":{"type":"git","url":"https://github.com/github/copilot-docs"},"qna":"https://github.com/github/feedback/discussions/categories/copilot-feedback","icon":"assets/Copilot-APP-ICON-512.png","engines":{"vscode":"^1.57.0","npm":">=7.0.0"},"categories":["Other"],"activationEvents":["onStartupFinished"],"main":"./dist/extension","enabledApiProposals":["inlineCompletions","textDocumentNotebook","contribIcons","contribIconFonts"],"contributes":{"commands":[{"command":"github.copilot.generate","title":"Open GitHub Copilot"},{"command":"github.copilot.toggleCopilot","title":"GitHub Copilot: Toggle on/off"},{"command":"github.copilot.sendFeedback","title":"GitHub Copilot: Send Feedback"}],"keybindings":[{"command":"github.copilot.generate","key":"ctrl+enter","mac":"ctrl+enter","when":"editorTextFocus && github.copilot.activated"},{"command":"editor.action.inlineSuggest.trigger","key":"alt+\\\\","when":"editorTextFocus && !editorHasSelection && config.github.copilot.inlineSuggest.enable && !inlineSuggestionsVisible"}],"menus":{"editor/inlineCompletions/actions":[{"command":"github.copilot.generate","when":"github.copilot.activated"}],"commandPalette":[{"command":"github.copilot.generate","when":"github.copilot.activated"},{"command":"github.copilot.toggleCopilot","when":"github.copilot.activated"},{"command":"github.copilot.sendFeedback","when":"github.copilot.activated"}]},"viewsContainers":{"activitybar":[{"id":"copilot-sidebar-webview","title":"GitHub Copilot","icon":"assets/head.svg"}]},"views":{"copilot-sidebar-webview":[{"type":"webview","id":"copilotSidebarWebview.explain","name":"Labs","when":"github.copilot.nightly && github.copilot.activated"}]},"configuration":[{"title":"Copilot","properties":{"github.copilot.advanced":{"type":"object","title":"Advanced Settings","properties":{"secret_key":{"type":"string","default":"","description":"Secret API key"},"length":{"type":"integer","default":500,"description":"Length of code to generate in tokens"},"temperature":{"type":"string","default":"","description":"Override sampling temperature (range 0.0 - 1.0)"},"top_p":{"type":"number","default":1,"description":"Top probability mass to consider"},"stops":{"type":"object","default":{"*":["\\n\\n\\n"],"python":["\\ndef ","\\nclass ","\\nif ","\\n\\n#"]},"description":"Configure per-language stop sequences"},"indentationMode":{"type":"object","default":{"python":false,"javascript":false,"javascriptreact":false,"jsx":false,"typescript":false,"typescriptreact":false,"go":false,"ruby":false,"*":true},"markdownDescription":"Enable or disable indentation block termination for specified [languages](https://code.visualstudio.com/docs/languages/identifiers). Set to \'client\', \'server\' or false to disable."},"inlineSuggestCount":{"type":"integer","default":3,"description":"Number of inline suggestions to fetch"},"listCount":{"type":"integer","default":10,"description":"Number of solutions to list in Open GitHub Copilot"},"debug.showScores":{"type":"boolean","default":false,"description":"Show scores in sorted solutions"},"debug.enableRefactor":{"type":"boolean","default":false,"description":"Enable Refactor status bar item for Python (Requires reload)"},"debug.useProxy":{"type":"boolean","default":true,"description":"Use GitHub authentication proxy"},"debug.overrideEngine":{"type":"string","default":"","description":"Override engine name"},"debug.overrideProxyUrl":{"type":"string","default":"","description":"Override GitHub authentication proxy full URL"},"debug.testOverrideProxyUrl":{"type":"string","default":"","description":"Override GitHub authentication proxy URL when running tests"},"debug.overrideLogLevels":{"type":"object","default":{},"description":"Override what the minimum logged level is per logger (or \'*\' for all loggers). Levels are \'DEBUG\', \'INFO\', \'WARN\', \'ERROR\'. Ex: `{\\"default\\": \\"DEBUG\\"}` to see all things logged to the \'default\' logger."},"debug.filterLogCategories":{"type":"array","default":[],"description":"Show only log categories listed in this setting. If an array is empty, show all loggers"},"debug.limitPrompts":{"type":"boolean","default":false,"description":"Temporary debug option to do less work to construct prompts"},"debug.ignoreRepo":{"type":"boolean","default":false,"description":"Temporary debug option to ignore the repo"}}},"github.copilot.enable":{"type":"object","default":{"*":true,"yaml":false,"plaintext":false,"markdown":false},"markdownDescription":"Enable or disable Copilot for specified [languages](https://code.visualstudio.com/docs/languages/identifiers)"},"github.copilot.inlineSuggest.enable":{"type":"boolean","default":true,"description":"Show inline suggestions"}}}],"icons":[{"id":"copilot-logo","description":"GitHub Copilot icon","default":{"fontId":"copilot-font","fontCharacter":"\\\\0041"}},{"id":"copilot-warning","description":"GitHub Copilot icon","default":{"fontId":"copilot-font","fontCharacter":"\\\\0042"}},{"id":"copilot-notconnected","description":"GitHub Copilot icon","default":{"fontId":"copilot-font","fontCharacter":"\\\\0043"}}],"iconFonts":[{"id":"copilot-font","src":[{"path":"assets/copilot.woff","format":"woff"}]}]},"scripts":{"postinstall":"npx vscode-dts dev 1.64.0 && mv vscode.proposed.*.ts extension/src","vscode:prepublish":"npm-run-all build:extension build:views","build":"npm-run-all build:*","build:agent":"cd agent && npm run build","build:agent-no-pkg":"cd agent && npm run build-no-pkg","build:extension":"webpack --mode production","build:views":"cd webviews && npm run build","compile":"npm-run-all compile:*","compile:agent":"cd agent && npm run compile","compile:extension":"webpack --mode development","compile:views":"cd webviews && npm run compile","watch":"npm-run-all -p watch:*","watch:agent":"cd agent && npm run watch","watch:extension":"webpack --mode development --watch","watch:views":"cd webviews && npm run watch","lint":"eslint lib extension agent webviews --ext ts","check_deps":"depcruise -c .dependency-cruiser.js .","test":"npm-run-all test:*","test:agent":"cd agent && npm run test","test:extension":"ts-node ./test/runTest.ts","test:prompt":"cd prompt && npm install && npm run test","build_test":"tsc test/run.ts","get_token":"ts-node script/getToken.ts","lsp-sample:compile":"cd lsp-sample && npm run compile","lsp-sample:watch":"cd lsp-sample && npm run watch","lsp-sample:develop":"npm-run-all -p lsp-sample:watch watch:agent"},"devDependencies":{"@github/prettier-config":"0.0.4","@types/crypto-js":"^4.0.1","@types/mocha":"^5.2.6","@types/node":"^13.11.0","@types/uuid":"^8.3.1","@types/vscode":"^1.57.0","@typescript-eslint/eslint-plugin":"^4.27.0","@typescript-eslint/parser":"^4.27.0","axios":"^0.21.4","dependency-cruiser":"^9.26.1","eslint":"^7.29.0","fantasticon":"^1.2.2","mocha":"^6.1.4","npm-run-all":"^4.1.5","open":"^8.2.1","prettier":"2.5.1","ts-dedent":"^2.2.0","ts-loader":"^8.0.11","ts-node":"^9.0.0","typescript":"^4.4.3","vsce":"1.91.0","vscode-dts":"^0.3.2","vscode-test":"^1.3.0","webpack":"^5.54.0","webpack-cli":"^4.2.0","zlib":"^1.0.5"},"dependencies":{"@github/copilot-promptlib":"file:prompt","ajv":"^8.6.3","ajv-errors":"^3.0.0","crypto-js":"^4.0.0","fetch-h2":"^3.0.0","get-port":"^5.1.1","highlight.js":"^11.3.1","ip-regex":"^4.3.0","source-map-support":"^0.5.19","uuid":"^8.3.2","vscode-extension-telemetry":"^0.1.6","vscode-tas-client":"^0.1.27","vscode-uri":"^3.0.2"}}') + } + }, + t = {}; + + function n(r) { + var o = t[r]; + if (void 0 !== o) return o.exports; + var i = t[r] = { + exports: {} + }; + return e[r].call(i.exports, i, i.exports, n), i.exports + } + n.n = e => { + var t = e && e.__esModule ? () => e.default : () => e; + return n.d(t, { + a: t + }), t + }, n.d = (e, t) => { + for (var r in t) n.o(t, r) && !n.o(e, r) && Object.defineProperty(e, r, { + enumerable: !0, + get: t[r] + }) + }, n.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t), n.r = e => { + "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { + value: "Module" + }), Object.defineProperty(e, "__esModule", { + value: !0 + }) + }; + var r = {}; + (() => { + "use strict"; + var e = r; + Object.defineProperty(e, "__esModule", { + value: !0 + }); + const t = n(6995), + o = n(2879), + i = n(7089); + !async function() { + const e = (0, t.init)(), + n = (0, i.createConnection)(i.ProposedFeatures.all, new i.StreamMessageReader(process.stdin), new i.StreamMessageWriter(process.stdout)), + r = process.argv.includes("--debug"); + new o.CopilotService(e, n, r).listen() + }() + })(), module.exports = r + +console.log("here"); +})(); + +//# sourceMappingURL=agent.js.map + diff --git a/copilot/index.js b/copilot/index.js new file mode 100755 index 00000000..63a6ca65 --- /dev/null +++ b/copilot/index.js @@ -0,0 +1,5 @@ +#!/bin/node + +global.__rootDirectory = __dirname + '/dist/'; + +require('./dist/agent.js')