From 33a3d498c3c822f71b4c0417a17ab5895cf8e9f4 Mon Sep 17 00:00:00 2001 From: 7Wate Date: Wed, 28 Aug 2024 15:15:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=EF=BC=9A=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .obsidian/graph.json | 2 +- .obsidian/plugins/obsidian-git/main.js | 3487 ++++++++--------- .obsidian/plugins/obsidian-git/manifest.json | 7 +- .obsidian/plugins/obsidian-git/styles.css | 6 +- .obsidian/plugins/obsidian-hider/main.js | 223 +- .../plugins/obsidian-hider/manifest.json | 22 +- .obsidian/plugins/obsidian-hider/styles.css | 31 +- .obsidian/plugins/obsidian-linter/data.json | 29 +- .../plugins/obsidian-minimal-settings/main.js | 977 +---- .../obsidian-minimal-settings/manifest.json | 2 +- .../plugins/obsidian-weread-plugin/main.js | 2 +- .../obsidian-weread-plugin/manifest.json | 2 +- 12 files changed, 1604 insertions(+), 3186 deletions(-) diff --git a/.obsidian/graph.json b/.obsidian/graph.json index d62454e6..3f48e94b 100644 --- a/.obsidian/graph.json +++ b/.obsidian/graph.json @@ -46,6 +46,6 @@ "repelStrength": 20, "linkStrength": 0.75, "linkDistance": 400, - "scale": 0.06576306354918951, + "scale": 0.4993882638266578, "close": true } \ No newline at end of file diff --git a/.obsidian/plugins/obsidian-git/main.js b/.obsidian/plugins/obsidian-git/main.js index 5e45db74..d0d2c09d 100644 --- a/.obsidian/plugins/obsidian-git/main.js +++ b/.obsidian/plugins/obsidian-git/main.js @@ -37,10 +37,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var __publicField = (obj, key2, value) => { - __defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value); - return value; -}; +var __publicField = (obj, key2, value) => __defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value); // node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js var require_base64_js = __commonJS({ @@ -68,8 +65,7 @@ var require_base64_js = __commonJS({ throw new Error("Invalid string. Length must be a multiple of 4"); } var validLen = b64.indexOf("="); - if (validLen === -1) - validLen = len2; + if (validLen === -1) validLen = len2; var placeHoldersLen = validLen === len2 ? 0 : 4 - validLen % 4; return [validLen, placeHoldersLen]; } @@ -264,16 +260,14 @@ var require_buffer = __commonJS({ Object.defineProperty(Buffer2.prototype, "parent", { enumerable: true, get: function() { - if (!Buffer2.isBuffer(this)) - return void 0; + if (!Buffer2.isBuffer(this)) return void 0; return this.buffer; } }); Object.defineProperty(Buffer2.prototype, "offset", { enumerable: true, get: function() { - if (!Buffer2.isBuffer(this)) - return void 0; + if (!Buffer2.isBuffer(this)) return void 0; return this.byteOffset; } }); @@ -325,8 +319,7 @@ var require_buffer = __commonJS({ return Buffer2.from(valueOf, encodingOrOffset, length); } const b = fromObject(value); - if (b) - return b; + if (b) return b; if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") { return Buffer2.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length); } @@ -453,17 +446,14 @@ var require_buffer = __commonJS({ return b != null && b._isBuffer === true && b !== Buffer2.prototype; }; Buffer2.compare = function compare(a, b) { - if (isInstance(a, Uint8Array)) - a = Buffer2.from(a, a.offset, a.byteLength); - if (isInstance(b, Uint8Array)) - b = Buffer2.from(b, b.offset, b.byteLength); + if (isInstance(a, Uint8Array)) a = Buffer2.from(a, a.offset, a.byteLength); + if (isInstance(b, Uint8Array)) b = Buffer2.from(b, b.offset, b.byteLength); if (!Buffer2.isBuffer(a) || !Buffer2.isBuffer(b)) { throw new TypeError( 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' ); } - if (a === b) - return 0; + if (a === b) return 0; let x = a.length; let y = b.length; for (let i = 0, len = Math.min(x, y); i < len; ++i) { @@ -473,10 +463,8 @@ var require_buffer = __commonJS({ break; } } - if (x < y) - return -1; - if (y < x) - return 1; + if (x < y) return -1; + if (y < x) return 1; return 0; }; Buffer2.isEncoding = function isEncoding(encoding) { @@ -517,8 +505,7 @@ var require_buffer = __commonJS({ let buf = list[i]; if (isInstance(buf, Uint8Array)) { if (pos + buf.length > buffer2.length) { - if (!Buffer2.isBuffer(buf)) - buf = Buffer2.from(buf); + if (!Buffer2.isBuffer(buf)) buf = Buffer2.from(buf); buf.copy(buffer2, pos); } else { Uint8Array.prototype.set.call( @@ -550,8 +537,7 @@ var require_buffer = __commonJS({ } const len = string.length; const mustMatch = arguments.length > 2 && arguments[2] === true; - if (!mustMatch && len === 0) - return 0; + if (!mustMatch && len === 0) return 0; let loweredCase = false; for (; ; ) { switch (encoding) { @@ -600,8 +586,7 @@ var require_buffer = __commonJS({ if (end <= start) { return ""; } - if (!encoding) - encoding = "utf8"; + if (!encoding) encoding = "utf8"; while (true) { switch (encoding) { case "hex": @@ -622,8 +607,7 @@ var require_buffer = __commonJS({ case "utf-16le": return utf16leSlice(this, start, end); default: - if (loweredCase) - throw new TypeError("Unknown encoding: " + encoding); + if (loweredCase) throw new TypeError("Unknown encoding: " + encoding); encoding = (encoding + "").toLowerCase(); loweredCase = true; } @@ -671,26 +655,21 @@ var require_buffer = __commonJS({ }; Buffer2.prototype.toString = function toString() { const length = this.length; - if (length === 0) - return ""; - if (arguments.length === 0) - return utf8Slice(this, 0, length); + if (length === 0) return ""; + if (arguments.length === 0) return utf8Slice(this, 0, length); return slowToString.apply(this, arguments); }; Buffer2.prototype.toLocaleString = Buffer2.prototype.toString; Buffer2.prototype.equals = function equals3(b) { - if (!Buffer2.isBuffer(b)) - throw new TypeError("Argument must be a Buffer"); - if (this === b) - return true; + if (!Buffer2.isBuffer(b)) throw new TypeError("Argument must be a Buffer"); + if (this === b) return true; return Buffer2.compare(this, b) === 0; }; Buffer2.prototype.inspect = function inspect() { let str = ""; const max = exports2.INSPECT_MAX_BYTES; str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim(); - if (this.length > max) - str += " ... "; + if (this.length > max) str += " ... "; return ""; }; if (customInspectSymbol) { @@ -733,8 +712,7 @@ var require_buffer = __commonJS({ end >>>= 0; thisStart >>>= 0; thisEnd >>>= 0; - if (this === target) - return 0; + if (this === target) return 0; let x = thisEnd - thisStart; let y = end - start; const len = Math.min(x, y); @@ -747,15 +725,12 @@ var require_buffer = __commonJS({ break; } } - if (x < y) - return -1; - if (y < x) - return 1; + if (x < y) return -1; + if (y < x) return 1; return 0; }; function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) { - if (buffer2.length === 0) - return -1; + if (buffer2.length === 0) return -1; if (typeof byteOffset === "string") { encoding = byteOffset; byteOffset = 0; @@ -768,18 +743,13 @@ var require_buffer = __commonJS({ if (numberIsNaN(byteOffset)) { byteOffset = dir ? 0 : buffer2.length - 1; } - if (byteOffset < 0) - byteOffset = buffer2.length + byteOffset; + if (byteOffset < 0) byteOffset = buffer2.length + byteOffset; if (byteOffset >= buffer2.length) { - if (dir) - return -1; - else - byteOffset = buffer2.length - 1; + if (dir) return -1; + else byteOffset = buffer2.length - 1; } else if (byteOffset < 0) { - if (dir) - byteOffset = 0; - else - return -1; + if (dir) byteOffset = 0; + else return -1; } if (typeof val === "string") { val = Buffer2.from(val, encoding); @@ -830,19 +800,15 @@ var require_buffer = __commonJS({ let foundIndex = -1; for (i = byteOffset; i < arrLength; i++) { if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) { - if (foundIndex === -1) - foundIndex = i; - if (i - foundIndex + 1 === valLength) - return foundIndex * indexSize; + if (foundIndex === -1) foundIndex = i; + if (i - foundIndex + 1 === valLength) return foundIndex * indexSize; } else { - if (foundIndex !== -1) - i -= i - foundIndex; + if (foundIndex !== -1) i -= i - foundIndex; foundIndex = -1; } } } else { - if (byteOffset + valLength > arrLength) - byteOffset = arrLength - valLength; + if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength; for (i = byteOffset; i >= 0; i--) { let found = true; for (let j = 0; j < valLength; j++) { @@ -851,8 +817,7 @@ var require_buffer = __commonJS({ break; } } - if (found) - return i; + if (found) return i; } } return -1; @@ -884,8 +849,7 @@ var require_buffer = __commonJS({ let i; for (i = 0; i < length; ++i) { const parsed = parseInt(string.substr(i * 2, 2), 16); - if (numberIsNaN(parsed)) - return i; + if (numberIsNaN(parsed)) return i; buf[offset + i] = parsed; } return i; @@ -915,8 +879,7 @@ var require_buffer = __commonJS({ offset = offset >>> 0; if (isFinite(length)) { length = length >>> 0; - if (encoding === void 0) - encoding = "utf8"; + if (encoding === void 0) encoding = "utf8"; } else { encoding = length; length = void 0; @@ -927,13 +890,11 @@ var require_buffer = __commonJS({ ); } const remaining = this.length - offset; - if (length === void 0 || length > remaining) - length = remaining; + if (length === void 0 || length > remaining) length = remaining; if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) { throw new RangeError("Attempt to write outside buffer bounds"); } - if (!encoding) - encoding = "utf8"; + if (!encoding) encoding = "utf8"; let loweredCase = false; for (; ; ) { switch (encoding) { @@ -954,8 +915,7 @@ var require_buffer = __commonJS({ case "utf-16le": return ucs2Write(this, string, offset, length); default: - if (loweredCase) - throw new TypeError("Unknown encoding: " + encoding); + if (loweredCase) throw new TypeError("Unknown encoding: " + encoding); encoding = ("" + encoding).toLowerCase(); loweredCase = true; } @@ -1068,10 +1028,8 @@ var require_buffer = __commonJS({ } function hexSlice(buf, start, end) { const len = buf.length; - if (!start || start < 0) - start = 0; - if (!end || end < 0 || end > len) - end = len; + if (!start || start < 0) start = 0; + if (!end || end < 0 || end > len) end = len; let out = ""; for (let i = start; i < end; ++i) { out += hexSliceLookupTable[buf[i]]; @@ -1092,35 +1050,29 @@ var require_buffer = __commonJS({ end = end === void 0 ? len : ~~end; if (start < 0) { start += len; - if (start < 0) - start = 0; + if (start < 0) start = 0; } else if (start > len) { start = len; } if (end < 0) { end += len; - if (end < 0) - end = 0; + if (end < 0) end = 0; } else if (end > len) { end = len; } - if (end < start) - end = start; + if (end < start) end = start; const newBuf = this.subarray(start, end); Object.setPrototypeOf(newBuf, Buffer2.prototype); return newBuf; }; function checkOffset(offset, ext, length) { - if (offset % 1 !== 0 || offset < 0) - throw new RangeError("offset is not uint"); - if (offset + ext > length) - throw new RangeError("Trying to access beyond buffer length"); + if (offset % 1 !== 0 || offset < 0) throw new RangeError("offset is not uint"); + if (offset + ext > length) throw new RangeError("Trying to access beyond buffer length"); } Buffer2.prototype.readUintLE = Buffer2.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) { offset = offset >>> 0; byteLength2 = byteLength2 >>> 0; - if (!noAssert) - checkOffset(offset, byteLength2, this.length); + if (!noAssert) checkOffset(offset, byteLength2, this.length); let val = this[offset]; let mul = 1; let i = 0; @@ -1144,32 +1096,27 @@ var require_buffer = __commonJS({ }; Buffer2.prototype.readUint8 = Buffer2.prototype.readUInt8 = function readUInt8(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 1, this.length); + if (!noAssert) checkOffset(offset, 1, this.length); return this[offset]; }; Buffer2.prototype.readUint16LE = Buffer2.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 2, this.length); + if (!noAssert) checkOffset(offset, 2, this.length); return this[offset] | this[offset + 1] << 8; }; Buffer2.prototype.readUint16BE = Buffer2.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 2, this.length); + if (!noAssert) checkOffset(offset, 2, this.length); return this[offset] << 8 | this[offset + 1]; }; Buffer2.prototype.readUint32LE = Buffer2.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 4, this.length); + if (!noAssert) checkOffset(offset, 4, this.length); return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216; }; Buffer2.prototype.readUint32BE = Buffer2.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 4, this.length); + if (!noAssert) checkOffset(offset, 4, this.length); return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]); }; Buffer2.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) { @@ -1199,8 +1146,7 @@ var require_buffer = __commonJS({ Buffer2.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) { offset = offset >>> 0; byteLength2 = byteLength2 >>> 0; - if (!noAssert) - checkOffset(offset, byteLength2, this.length); + if (!noAssert) checkOffset(offset, byteLength2, this.length); let val = this[offset]; let mul = 1; let i = 0; @@ -1208,15 +1154,13 @@ var require_buffer = __commonJS({ val += this[offset + i] * mul; } mul *= 128; - if (val >= mul) - val -= Math.pow(2, 8 * byteLength2); + if (val >= mul) val -= Math.pow(2, 8 * byteLength2); return val; }; Buffer2.prototype.readIntBE = function readIntBE(offset, byteLength2, noAssert) { offset = offset >>> 0; byteLength2 = byteLength2 >>> 0; - if (!noAssert) - checkOffset(offset, byteLength2, this.length); + if (!noAssert) checkOffset(offset, byteLength2, this.length); let i = byteLength2; let mul = 1; let val = this[offset + --i]; @@ -1224,42 +1168,35 @@ var require_buffer = __commonJS({ val += this[offset + --i] * mul; } mul *= 128; - if (val >= mul) - val -= Math.pow(2, 8 * byteLength2); + if (val >= mul) val -= Math.pow(2, 8 * byteLength2); return val; }; Buffer2.prototype.readInt8 = function readInt8(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 1, this.length); - if (!(this[offset] & 128)) - return this[offset]; + if (!noAssert) checkOffset(offset, 1, this.length); + if (!(this[offset] & 128)) return this[offset]; return (255 - this[offset] + 1) * -1; }; Buffer2.prototype.readInt16LE = function readInt16LE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 2, this.length); + if (!noAssert) checkOffset(offset, 2, this.length); const val = this[offset] | this[offset + 1] << 8; return val & 32768 ? val | 4294901760 : val; }; Buffer2.prototype.readInt16BE = function readInt16BE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 2, this.length); + if (!noAssert) checkOffset(offset, 2, this.length); const val = this[offset + 1] | this[offset] << 8; return val & 32768 ? val | 4294901760 : val; }; Buffer2.prototype.readInt32LE = function readInt32LE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 4, this.length); + if (!noAssert) checkOffset(offset, 4, this.length); return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24; }; Buffer2.prototype.readInt32BE = function readInt32BE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 4, this.length); + if (!noAssert) checkOffset(offset, 4, this.length); return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]; }; Buffer2.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) { @@ -1287,35 +1224,28 @@ var require_buffer = __commonJS({ }); Buffer2.prototype.readFloatLE = function readFloatLE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 4, this.length); + if (!noAssert) checkOffset(offset, 4, this.length); return ieee754.read(this, offset, true, 23, 4); }; Buffer2.prototype.readFloatBE = function readFloatBE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 4, this.length); + if (!noAssert) checkOffset(offset, 4, this.length); return ieee754.read(this, offset, false, 23, 4); }; Buffer2.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 8, this.length); + if (!noAssert) checkOffset(offset, 8, this.length); return ieee754.read(this, offset, true, 52, 8); }; Buffer2.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 8, this.length); + if (!noAssert) checkOffset(offset, 8, this.length); return ieee754.read(this, offset, false, 52, 8); }; function checkInt(buf, value, offset, ext, max, min) { - if (!Buffer2.isBuffer(buf)) - throw new TypeError('"buffer" argument must be a Buffer instance'); - if (value > max || value < min) - throw new RangeError('"value" argument is out of bounds'); - if (offset + ext > buf.length) - throw new RangeError("Index out of range"); + if (!Buffer2.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance'); + if (value > max || value < min) throw new RangeError('"value" argument is out of bounds'); + if (offset + ext > buf.length) throw new RangeError("Index out of range"); } Buffer2.prototype.writeUintLE = Buffer2.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) { value = +value; @@ -1352,16 +1282,14 @@ var require_buffer = __commonJS({ Buffer2.prototype.writeUint8 = Buffer2.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 1, 255, 0); + if (!noAssert) checkInt(this, value, offset, 1, 255, 0); this[offset] = value & 255; return offset + 1; }; Buffer2.prototype.writeUint16LE = Buffer2.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 2, 65535, 0); + if (!noAssert) checkInt(this, value, offset, 2, 65535, 0); this[offset] = value & 255; this[offset + 1] = value >>> 8; return offset + 2; @@ -1369,8 +1297,7 @@ var require_buffer = __commonJS({ Buffer2.prototype.writeUint16BE = Buffer2.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 2, 65535, 0); + if (!noAssert) checkInt(this, value, offset, 2, 65535, 0); this[offset] = value >>> 8; this[offset + 1] = value & 255; return offset + 2; @@ -1378,8 +1305,7 @@ var require_buffer = __commonJS({ Buffer2.prototype.writeUint32LE = Buffer2.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 4, 4294967295, 0); + if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0); this[offset + 3] = value >>> 24; this[offset + 2] = value >>> 16; this[offset + 1] = value >>> 8; @@ -1389,8 +1315,7 @@ var require_buffer = __commonJS({ Buffer2.prototype.writeUint32BE = Buffer2.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 4, 4294967295, 0); + if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0); this[offset] = value >>> 24; this[offset + 1] = value >>> 16; this[offset + 2] = value >>> 8; @@ -1484,18 +1409,15 @@ var require_buffer = __commonJS({ Buffer2.prototype.writeInt8 = function writeInt8(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 1, 127, -128); - if (value < 0) - value = 255 + value + 1; + if (!noAssert) checkInt(this, value, offset, 1, 127, -128); + if (value < 0) value = 255 + value + 1; this[offset] = value & 255; return offset + 1; }; Buffer2.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 2, 32767, -32768); + if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768); this[offset] = value & 255; this[offset + 1] = value >>> 8; return offset + 2; @@ -1503,8 +1425,7 @@ var require_buffer = __commonJS({ Buffer2.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 2, 32767, -32768); + if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768); this[offset] = value >>> 8; this[offset + 1] = value & 255; return offset + 2; @@ -1512,8 +1433,7 @@ var require_buffer = __commonJS({ Buffer2.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 4, 2147483647, -2147483648); + if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648); this[offset] = value & 255; this[offset + 1] = value >>> 8; this[offset + 2] = value >>> 16; @@ -1523,10 +1443,8 @@ var require_buffer = __commonJS({ Buffer2.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 4, 2147483647, -2147483648); - if (value < 0) - value = 4294967295 + value + 1; + if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648); + if (value < 0) value = 4294967295 + value + 1; this[offset] = value >>> 24; this[offset + 1] = value >>> 16; this[offset + 2] = value >>> 8; @@ -1540,10 +1458,8 @@ var require_buffer = __commonJS({ return wrtBigUInt64BE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff")); }); function checkIEEE754(buf, value, offset, ext, max, min) { - if (offset + ext > buf.length) - throw new RangeError("Index out of range"); - if (offset < 0) - throw new RangeError("Index out of range"); + if (offset + ext > buf.length) throw new RangeError("Index out of range"); + if (offset < 0) throw new RangeError("Index out of range"); } function writeFloat(buf, value, offset, littleEndian, noAssert) { value = +value; @@ -1576,31 +1492,20 @@ var require_buffer = __commonJS({ return writeDouble(this, value, offset, false, noAssert); }; Buffer2.prototype.copy = function copy2(target, targetStart, start, end) { - if (!Buffer2.isBuffer(target)) - throw new TypeError("argument should be a Buffer"); - if (!start) - start = 0; - if (!end && end !== 0) - end = this.length; - if (targetStart >= target.length) - targetStart = target.length; - if (!targetStart) - targetStart = 0; - if (end > 0 && end < start) - end = start; - if (end === start) - return 0; - if (target.length === 0 || this.length === 0) - return 0; + if (!Buffer2.isBuffer(target)) throw new TypeError("argument should be a Buffer"); + if (!start) start = 0; + if (!end && end !== 0) end = this.length; + if (targetStart >= target.length) targetStart = target.length; + if (!targetStart) targetStart = 0; + if (end > 0 && end < start) end = start; + if (end === start) return 0; + if (target.length === 0 || this.length === 0) return 0; if (targetStart < 0) { throw new RangeError("targetStart out of bounds"); } - if (start < 0 || start >= this.length) - throw new RangeError("Index out of range"); - if (end < 0) - throw new RangeError("sourceEnd out of bounds"); - if (end > this.length) - end = this.length; + if (start < 0 || start >= this.length) throw new RangeError("Index out of range"); + if (end < 0) throw new RangeError("sourceEnd out of bounds"); + if (end > this.length) end = this.length; if (target.length - targetStart < end - start) { end = target.length - targetStart + start; } @@ -1651,8 +1556,7 @@ var require_buffer = __commonJS({ } start = start >>> 0; end = end === void 0 ? this.length : end >>> 0; - if (!val) - val = 0; + if (!val) val = 0; let i; if (typeof val === "number") { for (i = start; i < end; ++i) { @@ -1791,8 +1695,7 @@ var require_buffer = __commonJS({ function base64clean(str) { str = str.split("=")[0]; str = str.trim().replace(INVALID_BASE64_RE, ""); - if (str.length < 2) - return ""; + if (str.length < 2) return ""; while (str.length % 4 !== 0) { str = str + "="; } @@ -1809,51 +1712,43 @@ var require_buffer = __commonJS({ if (codePoint > 55295 && codePoint < 57344) { if (!leadSurrogate) { if (codePoint > 56319) { - if ((units -= 3) > -1) - bytes.push(239, 191, 189); + if ((units -= 3) > -1) bytes.push(239, 191, 189); continue; } else if (i + 1 === length) { - if ((units -= 3) > -1) - bytes.push(239, 191, 189); + if ((units -= 3) > -1) bytes.push(239, 191, 189); continue; } leadSurrogate = codePoint; continue; } if (codePoint < 56320) { - if ((units -= 3) > -1) - bytes.push(239, 191, 189); + if ((units -= 3) > -1) bytes.push(239, 191, 189); leadSurrogate = codePoint; continue; } codePoint = (leadSurrogate - 55296 << 10 | codePoint - 56320) + 65536; } else if (leadSurrogate) { - if ((units -= 3) > -1) - bytes.push(239, 191, 189); + if ((units -= 3) > -1) bytes.push(239, 191, 189); } leadSurrogate = null; if (codePoint < 128) { - if ((units -= 1) < 0) - break; + if ((units -= 1) < 0) break; bytes.push(codePoint); } else if (codePoint < 2048) { - if ((units -= 2) < 0) - break; + if ((units -= 2) < 0) break; bytes.push( codePoint >> 6 | 192, codePoint & 63 | 128 ); } else if (codePoint < 65536) { - if ((units -= 3) < 0) - break; + if ((units -= 3) < 0) break; bytes.push( codePoint >> 12 | 224, codePoint >> 6 & 63 | 128, codePoint & 63 | 128 ); } else if (codePoint < 1114112) { - if ((units -= 4) < 0) - break; + if ((units -= 4) < 0) break; bytes.push( codePoint >> 18 | 240, codePoint >> 12 & 63 | 128, @@ -1877,8 +1772,7 @@ var require_buffer = __commonJS({ let c, hi, lo; const byteArray = []; for (let i = 0; i < str.length; ++i) { - if ((units -= 2) < 0) - break; + if ((units -= 2) < 0) break; c = str.charCodeAt(i); hi = c >> 8; lo = c % 256; @@ -1893,8 +1787,7 @@ var require_buffer = __commonJS({ function blitBuffer(src, dst, offset, length) { let i; for (i = 0; i < length; ++i) { - if (i + offset >= dst.length || i >= src.length) - break; + if (i + offset >= dst.length || i >= src.length) break; dst[i + offset] = src[i]; } return i; @@ -2367,10 +2260,8 @@ var require_sha1 = __commonJS({ return num2 << 30 | num2 >>> 2; } function ft(s, b, c, d) { - if (s === 0) - return b & c | ~b & d; - if (s === 2) - return b & c | b & d | c & d; + if (s === 0) return b & c | ~b & d; + if (s === 2) return b & c | b & d | c & d; return b ^ c ^ d; } Sha1.prototype._update = function(M) { @@ -2380,10 +2271,8 @@ var require_sha1 = __commonJS({ var c = this._c | 0; var d = this._d | 0; var e = this._e | 0; - for (var i = 0; i < 16; ++i) - W2[i] = M.readInt32BE(i * 4); - for (; i < 80; ++i) - W2[i] = rotl1(W2[i - 3] ^ W2[i - 8] ^ W2[i - 14] ^ W2[i - 16]); + for (var i = 0; i < 16; ++i) W2[i] = M.readInt32BE(i * 4); + for (; i < 80; ++i) W2[i] = rotl1(W2[i - 3] ^ W2[i - 8] ^ W2[i - 14] ^ W2[i - 16]); for (var j = 0; j < 80; ++j) { var s = ~~(j / 20); var t = rotl5(a) + ft(s, b, c, d) + e + W2[j] + K2[s] | 0; @@ -2454,16 +2343,13 @@ var require_crc32 = __commonJS({ var T0 = signed_crc_table(); function slice_by_16_tables(T) { var c = 0, v = 0, n = 0, table = typeof Int32Array !== "undefined" ? new Int32Array(4096) : new Array(4096); - for (n = 0; n != 256; ++n) - table[n] = T[n]; + for (n = 0; n != 256; ++n) table[n] = T[n]; for (n = 0; n != 256; ++n) { v = T[n]; - for (c = 256 + n; c < 4096; c += 256) - v = table[c] = v >>> 8 ^ T[v & 255]; + for (c = 256 + n; c < 4096; c += 256) v = table[c] = v >>> 8 ^ T[v & 255]; } var out = []; - for (n = 1; n != 16; ++n) - out[n - 1] = typeof Int32Array !== "undefined" ? table.subarray(n * 256, n * 256 + 256) : table.slice(n * 256, n * 256 + 256); + for (n = 1; n != 16; ++n) out[n - 1] = typeof Int32Array !== "undefined" ? table.subarray(n * 256, n * 256 + 256) : table.slice(n * 256, n * 256 + 256); return out; } var TT = slice_by_16_tables(T0); @@ -2472,17 +2358,14 @@ var require_crc32 = __commonJS({ var Tb = TT[10], Tc = TT[11], Td = TT[12], Te = TT[13], Tf = TT[14]; function crc32_bstr(bstr, seed) { var C = seed ^ -1; - for (var i = 0, L = bstr.length; i < L; ) - C = C >>> 8 ^ T0[(C ^ bstr.charCodeAt(i++)) & 255]; + for (var i = 0, L = bstr.length; i < L; ) C = C >>> 8 ^ T0[(C ^ bstr.charCodeAt(i++)) & 255]; return ~C; } function crc32_buf(B, seed) { var C = seed ^ -1, L = B.length - 15, i = 0; - for (; i < L; ) - C = Tf[B[i++] ^ C & 255] ^ Te[B[i++] ^ C >> 8 & 255] ^ Td[B[i++] ^ C >> 16 & 255] ^ Tc[B[i++] ^ C >>> 24] ^ Tb[B[i++]] ^ Ta[B[i++]] ^ T9[B[i++]] ^ T8[B[i++]] ^ T7[B[i++]] ^ T6[B[i++]] ^ T5[B[i++]] ^ T4[B[i++]] ^ T3[B[i++]] ^ T2[B[i++]] ^ T1[B[i++]] ^ T0[B[i++]]; + for (; i < L; ) C = Tf[B[i++] ^ C & 255] ^ Te[B[i++] ^ C >> 8 & 255] ^ Td[B[i++] ^ C >> 16 & 255] ^ Tc[B[i++] ^ C >>> 24] ^ Tb[B[i++]] ^ Ta[B[i++]] ^ T9[B[i++]] ^ T8[B[i++]] ^ T7[B[i++]] ^ T6[B[i++]] ^ T5[B[i++]] ^ T4[B[i++]] ^ T3[B[i++]] ^ T2[B[i++]] ^ T1[B[i++]] ^ T0[B[i++]]; L += 15; - while (i < L) - C = C >>> 8 ^ T0[(C ^ B[i++]) & 255]; + while (i < L) C = C >>> 8 ^ T0[(C ^ B[i++]) & 255]; return ~C; } function crc32_str(str, seed) { @@ -4568,8 +4451,7 @@ var require_deflate2 = __commonJS({ var Z_DEFAULT_STRATEGY = 0; var Z_DEFLATED = 8; function Deflate(options) { - if (!(this instanceof Deflate)) - return new Deflate(options); + if (!(this instanceof Deflate)) return new Deflate(options); this.options = utils.assign({ level: Z_DEFAULT_COMPRESSION, method: Z_DEFLATED, @@ -6558,8 +6440,7 @@ var require_inflate2 = __commonJS({ var GZheader = require_gzheader(); var toString = Object.prototype.toString; function Inflate(options) { - if (!(this instanceof Inflate)) - return new Inflate(options); + if (!(this instanceof Inflate)) return new Inflate(options); this.options = utils.assign({ chunkSize: 16384, windowBits: 0, @@ -7446,8 +7327,7 @@ var require_diff3 = __commonJS({ while (hunkIndex < hunks.length - 1) { var maybeOverlapping = hunks[hunkIndex + 1]; var maybeLhs = maybeOverlapping[0]; - if (maybeLhs > regionRhs) - break; + if (maybeLhs > regionRhs) break; regionRhs = Math.max(regionRhs, maybeLhs + maybeOverlapping[2]); hunkIndex++; } @@ -7512,13 +7392,11 @@ var require_diff3 = __commonJS({ } } function isTrueConflict(rec) { - if (rec[2] != rec[6]) - return true; + if (rec[2] != rec[6]) return true; var aoff = rec[1]; var boff = rec[5]; for (var j = 0; j < rec[2]; j++) { - if (a[j + aoff] != b[j + boff]) - return true; + if (a[j + aoff] != b[j + boff]) return true; } return false; } @@ -7669,9 +7547,9 @@ var require_ms = __commonJS({ } }); -// node_modules/.pnpm/debug@4.3.4_supports-color@9.4.0/node_modules/debug/src/common.js +// node_modules/.pnpm/debug@4.3.5_supports-color@9.4.0/node_modules/debug/src/common.js var require_common2 = __commonJS({ - "node_modules/.pnpm/debug@4.3.4_supports-color@9.4.0/node_modules/debug/src/common.js"(exports2, module2) { + "node_modules/.pnpm/debug@4.3.5_supports-color@9.4.0/node_modules/debug/src/common.js"(exports2, module2) { init_polyfill_buffer(); function setup(env) { createDebug.debug = createDebug; @@ -7833,9 +7711,9 @@ var require_common2 = __commonJS({ } }); -// node_modules/.pnpm/debug@4.3.4_supports-color@9.4.0/node_modules/debug/src/browser.js +// node_modules/.pnpm/debug@4.3.5_supports-color@9.4.0/node_modules/debug/src/browser.js var require_browser = __commonJS({ - "node_modules/.pnpm/debug@4.3.4_supports-color@9.4.0/node_modules/debug/src/browser.js"(exports2, module2) { + "node_modules/.pnpm/debug@4.3.5_supports-color@9.4.0/node_modules/debug/src/browser.js"(exports2, module2) { init_polyfill_buffer(); exports2.formatArgs = formatArgs; exports2.save = save; @@ -8054,9 +7932,7 @@ var require_dist = __commonJS({ "use strict"; init_polyfill_buffer(); function __export3(m) { - for (var p in m) - if (!exports2.hasOwnProperty(p)) - exports2[p] = m[p]; + for (var p in m) if (!exports2.hasOwnProperty(p)) exports2[p] = m[p]; } Object.defineProperty(exports2, "__esModule", { value: true }); __export3(require_src()); @@ -8422,16 +8298,13 @@ var require_lib3 = __commonJS({ var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; - if ("value" in descriptor) - descriptor.writable = true; + if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) - _defineProperties(Constructor.prototype, protoProps); - if (staticProps) - _defineProperties(Constructor, staticProps); + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _slicedToArray(arr, i) { @@ -8441,29 +8314,22 @@ var require_lib3 = __commonJS({ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _unsupportedIterableToArray2(o, minLen) { - if (!o) - return; - if (typeof o === "string") - return _arrayLikeToArray2(o, minLen); + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) - n = o.constructor.name; - if (n === "Map" || n === "Set") - return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) - return _arrayLikeToArray2(o, minLen); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray2(o, minLen); } function _arrayLikeToArray2(arr, len) { - if (len == null || len > arr.length) - len = arr.length; + if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } function _iterableToArrayLimit(arr, i) { - if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) - return; + if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; @@ -8471,26 +8337,22 @@ var require_lib3 = __commonJS({ try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); - if (i && _arr.length === i) - break; + if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { - if (!_n && _i["return"] != null) - _i["return"](); + if (!_n && _i["return"] != null) _i["return"](); } finally { - if (_d) - throw _e; + if (_d) throw _e; } } return _arr; } function _arrayWithHoles(arr) { - if (Array.isArray(arr)) - return arr; + if (Array.isArray(arr)) return arr; } var hex = /^#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?$/; var shortHex = /^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])?$/; @@ -8537,16 +8399,11 @@ var require_lib3 = __commonJS({ var x = c * (1 - Math.abs(hprim % 2 - 1)); var m = lprim - c / 2; var _ref = function() { - if (hprim < 1) - return [c, x, 0]; - if (hprim < 2) - return [x, c, 0]; - if (hprim < 3) - return [0, c, x]; - if (hprim < 4) - return [0, x, c]; - if (hprim < 5) - return [x, 0, c]; + if (hprim < 1) return [c, x, 0]; + if (hprim < 2) return [x, c, 0]; + if (hprim < 3) return [0, c, x]; + if (hprim < 4) return [0, x, c]; + if (hprim < 5) return [x, 0, c]; return [c, 0, x]; }(), _ref2 = _slicedToArray(_ref, 3), rprim = _ref2[0], gprim = _ref2[1], bprim = _ref2[2]; return [(rprim + m) * 255, (gprim + m) * 255, (bprim + m) * 255]; @@ -8994,17 +8851,18 @@ var require_has_symbols = __commonJS({ } }); -// node_modules/.pnpm/has-proto@1.0.1/node_modules/has-proto/index.js +// node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js var require_has_proto = __commonJS({ - "node_modules/.pnpm/has-proto@1.0.1/node_modules/has-proto/index.js"(exports2, module2) { + "node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var test = { + __proto__: null, foo: {} }; var $Object = Object; module2.exports = function hasProto() { - return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object); + return { __proto__: test }.foo === test.foo && !(test instanceof $Object); }; } }); @@ -9096,9 +8954,9 @@ var require_function_bind = __commonJS({ } }); -// node_modules/.pnpm/hasown@2.0.1/node_modules/hasown/index.js +// node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js var require_hasown = __commonJS({ - "node_modules/.pnpm/hasown@2.0.1/node_modules/hasown/index.js"(exports2, module2) { + "node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var call = Function.prototype.call; @@ -9423,35 +9281,21 @@ var require_get_intrinsic = __commonJS({ } }); -// node_modules/.pnpm/has-property-descriptors@1.0.1/node_modules/has-property-descriptors/index.js -var require_has_property_descriptors = __commonJS({ - "node_modules/.pnpm/has-property-descriptors@1.0.1/node_modules/has-property-descriptors/index.js"(exports2, module2) { +// node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js +var require_es_define_property = __commonJS({ + "node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var GetIntrinsic = require_get_intrinsic(); - var $defineProperty = GetIntrinsic("%Object.defineProperty%", true); - var hasPropertyDescriptors = function hasPropertyDescriptors2() { - if ($defineProperty) { - try { - $defineProperty({}, "a", { value: 1 }); - return true; - } catch (e) { - return false; - } - } - return false; - }; - hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() { - if (!hasPropertyDescriptors()) { - return null; - } + var $defineProperty = GetIntrinsic("%Object.defineProperty%", true) || false; + if ($defineProperty) { try { - return $defineProperty([], "length", { value: 1 }).length !== 1; + $defineProperty({}, "a", { value: 1 }); } catch (e) { - return true; + $defineProperty = false; } - }; - module2.exports = hasPropertyDescriptors; + } + module2.exports = $defineProperty; } }); @@ -9473,21 +9317,12 @@ var require_gopd = __commonJS({ } }); -// node_modules/.pnpm/define-data-property@1.1.2/node_modules/define-data-property/index.js +// node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js var require_define_data_property = __commonJS({ - "node_modules/.pnpm/define-data-property@1.1.2/node_modules/define-data-property/index.js"(exports2, module2) { + "node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); - var hasPropertyDescriptors = require_has_property_descriptors()(); - var GetIntrinsic = require_get_intrinsic(); - var $defineProperty = hasPropertyDescriptors && GetIntrinsic("%Object.defineProperty%", true); - if ($defineProperty) { - try { - $defineProperty({}, "a", { value: 1 }); - } catch (e) { - $defineProperty = false; - } - } + var $defineProperty = require_es_define_property(); var $SyntaxError = require_syntax(); var $TypeError = require_type(); var gopd = require_gopd(); @@ -9531,6 +9366,29 @@ var require_define_data_property = __commonJS({ } }); +// node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js +var require_has_property_descriptors = __commonJS({ + "node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js"(exports2, module2) { + "use strict"; + init_polyfill_buffer(); + var $defineProperty = require_es_define_property(); + var hasPropertyDescriptors = function hasPropertyDescriptors2() { + return !!$defineProperty; + }; + hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() { + if (!$defineProperty) { + return null; + } + try { + return $defineProperty([], "length", { value: 1 }).length !== 1; + } catch (e) { + return true; + } + }; + module2.exports = hasPropertyDescriptors; + } +}); + // node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js var require_define_properties = __commonJS({ "node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js"(exports2, module2) { @@ -9576,9 +9434,9 @@ var require_define_properties = __commonJS({ } }); -// node_modules/.pnpm/set-function-length@1.2.1/node_modules/set-function-length/index.js +// node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js var require_set_function_length = __commonJS({ - "node_modules/.pnpm/set-function-length@1.2.1/node_modules/set-function-length/index.js"(exports2, module2) { + "node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var GetIntrinsic = require_get_intrinsic(); @@ -9630,9 +9488,9 @@ var require_set_function_length = __commonJS({ } }); -// node_modules/.pnpm/call-bind@1.0.6/node_modules/call-bind/index.js +// node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js var require_call_bind = __commonJS({ - "node_modules/.pnpm/call-bind@1.0.6/node_modules/call-bind/index.js"(exports2, module2) { + "node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var bind = require_function_bind(); @@ -9642,15 +9500,8 @@ var require_call_bind = __commonJS({ var $apply = GetIntrinsic("%Function.prototype.apply%"); var $call = GetIntrinsic("%Function.prototype.call%"); var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply); - var $defineProperty = GetIntrinsic("%Object.defineProperty%", true); + var $defineProperty = require_es_define_property(); var $max = GetIntrinsic("%Math.max%"); - if ($defineProperty) { - try { - $defineProperty({}, "a", { value: 1 }); - } catch (e) { - $defineProperty = null; - } - } module2.exports = function callBind(originalFunction) { if (typeof originalFunction !== "function") { throw new $TypeError("a function is required"); @@ -9673,9 +9524,9 @@ var require_call_bind = __commonJS({ } }); -// node_modules/.pnpm/call-bind@1.0.6/node_modules/call-bind/callBound.js +// node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.js var require_callBound = __commonJS({ - "node_modules/.pnpm/call-bind@1.0.6/node_modules/call-bind/callBound.js"(exports2, module2) { + "node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var GetIntrinsic = require_get_intrinsic(); @@ -9865,15 +9716,15 @@ var require_functions_have_names = __commonJS({ } }); -// node_modules/.pnpm/set-function-name@2.0.1/node_modules/set-function-name/index.js +// node_modules/.pnpm/set-function-name@2.0.2/node_modules/set-function-name/index.js var require_set_function_name = __commonJS({ - "node_modules/.pnpm/set-function-name@2.0.1/node_modules/set-function-name/index.js"(exports2, module2) { + "node_modules/.pnpm/set-function-name@2.0.2/node_modules/set-function-name/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var define2 = require_define_data_property(); var hasDescriptors = require_has_property_descriptors()(); var functionsHaveConfigurableNames = require_functions_have_names().functionsHaveConfigurableNames(); - var $TypeError = TypeError; + var $TypeError = require_type(); module2.exports = function setFunctionName(fn, name) { if (typeof fn !== "function") { throw new $TypeError("`fn` is not a function"); @@ -9881,9 +9732,21 @@ var require_set_function_name = __commonJS({ var loose = arguments.length > 2 && !!arguments[2]; if (!loose || functionsHaveConfigurableNames) { if (hasDescriptors) { - define2(fn, "name", name, true, true); + define2( + /** @type {Parameters[0]} */ + fn, + "name", + name, + true, + true + ); } else { - define2(fn, "name", name); + define2( + /** @type {Parameters[0]} */ + fn, + "name", + name + ); } } return fn; @@ -10058,16 +9921,16 @@ var require_is_arguments = __commonJS({ } }); -// (disabled):node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/util.inspect +// (disabled):node_modules/.pnpm/object-inspect@1.13.2/node_modules/object-inspect/util.inspect var require_util = __commonJS({ - "(disabled):node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/util.inspect"() { + "(disabled):node_modules/.pnpm/object-inspect@1.13.2/node_modules/object-inspect/util.inspect"() { init_polyfill_buffer(); } }); -// node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.js +// node_modules/.pnpm/object-inspect@1.13.2/node_modules/object-inspect/index.js var require_object_inspect = __commonJS({ - "node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.js"(exports2, module2) { + "node_modules/.pnpm/object-inspect@1.13.2/node_modules/object-inspect/index.js"(exports2, module2) { init_polyfill_buffer(); var hasMap = typeof Map === "function" && Map.prototype; var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null; @@ -10285,7 +10148,7 @@ var require_object_inspect = __commonJS({ if (typeof window !== "undefined" && obj === window) { return "{ [object Window] }"; } - if (obj === global) { + if (typeof globalThis !== "undefined" && obj === globalThis || typeof global !== "undefined" && obj === global) { return "{ [object globalThis] }"; } if (!isDate(obj) && !isRegExp(obj)) { @@ -10581,9 +10444,9 @@ var require_object_inspect = __commonJS({ } }); -// node_modules/.pnpm/side-channel@1.0.5/node_modules/side-channel/index.js +// node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.js var require_side_channel = __commonJS({ - "node_modules/.pnpm/side-channel@1.0.5/node_modules/side-channel/index.js"(exports2, module2) { + "node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var GetIntrinsic = require_get_intrinsic(); @@ -10599,10 +10462,13 @@ var require_side_channel = __commonJS({ var $mapSet = callBound("Map.prototype.set", true); var $mapHas = callBound("Map.prototype.has", true); var listGetNode = function(list, key2) { - for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) { + var prev = list; + var curr; + for (; (curr = prev.next) !== null; prev = curr) { if (curr.key === key2) { prev.next = curr.next; - curr.next = list.next; + curr.next = /** @type {NonNullable} */ + list.next; list.next = curr; return curr; } @@ -10617,8 +10483,9 @@ var require_side_channel = __commonJS({ if (node) { node.value = value; } else { - objects.next = { - // eslint-disable-line no-param-reassign + objects.next = /** @type {import('.').ListNode} */ + { + // eslint-disable-line no-param-reassign, no-extra-parens key: key2, next: objects.next, value @@ -10836,9 +10703,9 @@ var require_is_string = __commonJS({ } }); -// node_modules/.pnpm/is-map@2.0.2/node_modules/is-map/index.js +// node_modules/.pnpm/is-map@2.0.3/node_modules/is-map/index.js var require_is_map = __commonJS({ - "node_modules/.pnpm/is-map@2.0.2/node_modules/is-map/index.js"(exports2, module2) { + "node_modules/.pnpm/is-map@2.0.3/node_modules/is-map/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var $Map = typeof Map === "function" && Map.prototype ? Map : null; @@ -10877,9 +10744,9 @@ var require_is_map = __commonJS({ } }); -// node_modules/.pnpm/is-set@2.0.2/node_modules/is-set/index.js +// node_modules/.pnpm/is-set@2.0.3/node_modules/is-set/index.js var require_is_set = __commonJS({ - "node_modules/.pnpm/is-set@2.0.2/node_modules/is-set/index.js"(exports2, module2) { + "node_modules/.pnpm/is-set@2.0.3/node_modules/is-set/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var $Map = typeof Map === "function" && Map.prototype ? Map : null; @@ -11078,9 +10945,9 @@ var require_es_get_iterator = __commonJS({ } }); -// node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/implementation.js +// node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/implementation.js var require_implementation5 = __commonJS({ - "node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/implementation.js"(exports2, module2) { + "node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/implementation.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var numberIsNaN = function(value) { @@ -11101,9 +10968,9 @@ var require_implementation5 = __commonJS({ } }); -// node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/polyfill.js +// node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/polyfill.js var require_polyfill3 = __commonJS({ - "node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/polyfill.js"(exports2, module2) { + "node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/polyfill.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var implementation = require_implementation5(); @@ -11113,9 +10980,9 @@ var require_polyfill3 = __commonJS({ } }); -// node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/shim.js +// node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/shim.js var require_shim3 = __commonJS({ - "node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/shim.js"(exports2, module2) { + "node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/shim.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var getPolyfill = require_polyfill3(); @@ -11132,9 +10999,9 @@ var require_shim3 = __commonJS({ } }); -// node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/index.js +// node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/index.js var require_object_is = __commonJS({ - "node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/index.js"(exports2, module2) { + "node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var define2 = require_define_properties(); @@ -11266,9 +11133,9 @@ var require_is_regex = __commonJS({ } }); -// node_modules/.pnpm/is-shared-array-buffer@1.0.2/node_modules/is-shared-array-buffer/index.js +// node_modules/.pnpm/is-shared-array-buffer@1.0.3/node_modules/is-shared-array-buffer/index.js var require_is_shared_array_buffer = __commonJS({ - "node_modules/.pnpm/is-shared-array-buffer@1.0.2/node_modules/is-shared-array-buffer/index.js"(exports2, module2) { + "node_modules/.pnpm/is-shared-array-buffer@1.0.3/node_modules/is-shared-array-buffer/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var callBound = require_callBound(); @@ -11468,9 +11335,9 @@ var require_which_boxed_primitive = __commonJS({ } }); -// node_modules/.pnpm/is-weakmap@2.0.1/node_modules/is-weakmap/index.js +// node_modules/.pnpm/is-weakmap@2.0.2/node_modules/is-weakmap/index.js var require_is_weakmap = __commonJS({ - "node_modules/.pnpm/is-weakmap@2.0.1/node_modules/is-weakmap/index.js"(exports2, module2) { + "node_modules/.pnpm/is-weakmap@2.0.2/node_modules/is-weakmap/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var $WeakMap = typeof WeakMap === "function" && WeakMap.prototype ? WeakMap : null; @@ -11509,9 +11376,9 @@ var require_is_weakmap = __commonJS({ } }); -// node_modules/.pnpm/is-weakset@2.0.2/node_modules/is-weakset/index.js +// node_modules/.pnpm/is-weakset@2.0.3/node_modules/is-weakset/index.js var require_is_weakset = __commonJS({ - "node_modules/.pnpm/is-weakset@2.0.2/node_modules/is-weakset/index.js"(exports2, module2) { + "node_modules/.pnpm/is-weakset@2.0.3/node_modules/is-weakset/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var GetIntrinsic = require_get_intrinsic(); @@ -11547,9 +11414,9 @@ var require_is_weakset = __commonJS({ } }); -// node_modules/.pnpm/which-collection@1.0.1/node_modules/which-collection/index.js +// node_modules/.pnpm/which-collection@1.0.2/node_modules/which-collection/index.js var require_which_collection = __commonJS({ - "node_modules/.pnpm/which-collection@1.0.1/node_modules/which-collection/index.js"(exports2, module2) { + "node_modules/.pnpm/which-collection@1.0.2/node_modules/which-collection/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var isMap = require_is_map(); @@ -11754,24 +11621,33 @@ var require_for_each = __commonJS({ } }); -// node_modules/.pnpm/available-typed-arrays@1.0.6/node_modules/available-typed-arrays/index.js -var require_available_typed_arrays = __commonJS({ - "node_modules/.pnpm/available-typed-arrays@1.0.6/node_modules/available-typed-arrays/index.js"(exports2, module2) { +// node_modules/.pnpm/possible-typed-array-names@1.0.0/node_modules/possible-typed-array-names/index.js +var require_possible_typed_array_names = __commonJS({ + "node_modules/.pnpm/possible-typed-array-names@1.0.0/node_modules/possible-typed-array-names/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); - var possibleNames = [ - "BigInt64Array", - "BigUint64Array", + module2.exports = [ "Float32Array", "Float64Array", + "Int8Array", "Int16Array", "Int32Array", - "Int8Array", + "Uint8Array", + "Uint8ClampedArray", "Uint16Array", "Uint32Array", - "Uint8Array", - "Uint8ClampedArray" + "BigInt64Array", + "BigUint64Array" ]; + } +}); + +// node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js +var require_available_typed_arrays = __commonJS({ + "node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js"(exports2, module2) { + "use strict"; + init_polyfill_buffer(); + var possibleNames = require_possible_typed_array_names(); var g = typeof globalThis === "undefined" ? global : globalThis; module2.exports = function availableTypedArrays() { var out = []; @@ -11785,9 +11661,9 @@ var require_available_typed_arrays = __commonJS({ } }); -// node_modules/.pnpm/which-typed-array@1.1.14/node_modules/which-typed-array/index.js +// node_modules/.pnpm/which-typed-array@1.1.15/node_modules/which-typed-array/index.js var require_which_typed_array = __commonJS({ - "node_modules/.pnpm/which-typed-array@1.1.14/node_modules/which-typed-array/index.js"(exports2, module2) { + "node_modules/.pnpm/which-typed-array@1.1.15/node_modules/which-typed-array/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var forEach2 = require_for_each(); @@ -11801,8 +11677,7 @@ var require_which_typed_array = __commonJS({ var typedArrays = availableTypedArrays(); var $slice = callBound("String.prototype.slice"); var getPrototypeOf = Object.getPrototypeOf; - var $indexOf = callBound("Array.prototype.indexOf", true) || /** @type {(array: readonly unknown[], value: unknown) => keyof array} */ - function indexOf(array, value) { + var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) { for (var i = 0; i < array.length; i += 1) { if (array[i] === value) { return i; @@ -11837,10 +11712,10 @@ var require_which_typed_array = __commonJS({ var found = false; forEach2( // eslint-disable-next-line no-extra-parens - /** @type {Record<`\$${TypedArrayName}`, typeof cache>} */ + /** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */ cache, - /** @type {(getter: typeof cache, name: `\$${TypedArrayName}`) => void} */ + /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */ function(getter, typedArray) { if (!found) { try { @@ -11858,9 +11733,10 @@ var require_which_typed_array = __commonJS({ var found = false; forEach2( // eslint-disable-next-line no-extra-parens + /** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */ cache, - /** @type {(getter: typeof cache, name: `\$${TypedArrayName}`) => void} */ + /** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */ function(getter, name) { if (!found) { try { @@ -13178,8 +13054,7 @@ var require_template = __commonJS({ } this.partials[symbol].base = template; if (partial.subs) { - if (!partials.stackText) - partials.stackText = {}; + if (!partials.stackText) partials.stackText = {}; for (key in partial.subs) { if (!partials.stackText[key]) { partials.stackText[key] = this.activeSub !== void 0 && partials.stackText[this.activeSub] ? partials.stackText[this.activeSub] : this.text; @@ -13362,8 +13237,7 @@ var require_template = __commonJS({ partial.stackSubs = stackSubs; partial.subsText = stackText; for (key2 in subs) { - if (!stackSubs[key2]) - stackSubs[key2] = subs[key2]; + if (!stackSubs[key2]) stackSubs[key2] = subs[key2]; } for (key2 in stackSubs) { partial.subs[key2] = stackSubs[key2]; @@ -13371,8 +13245,7 @@ var require_template = __commonJS({ stackPartials = stackPartials || {}; partial.stackPartials = stackPartials; for (key2 in partials) { - if (!stackPartials[key2]) - stackPartials[key2] = partials[key2]; + if (!stackPartials[key2]) stackPartials[key2] = partials[key2]; } for (key2 in stackPartials) { partial.partials[key2] = stackPartials[key2]; @@ -13405,9 +13278,9 @@ var require_hogan = __commonJS({ } }); -// node_modules/.pnpm/feather-icons@4.29.1/node_modules/feather-icons/dist/feather.js +// node_modules/.pnpm/feather-icons@4.29.2/node_modules/feather-icons/dist/feather.js var require_feather = __commonJS({ - "node_modules/.pnpm/feather-icons@4.29.1/node_modules/feather-icons/dist/feather.js"(exports2, module2) { + "node_modules/.pnpm/feather-icons@4.29.2/node_modules/feather-icons/dist/feather.js"(exports2, module2) { init_polyfill_buffer(); (function webpackUniversalModuleDefinition(root2, factory) { if (typeof exports2 === "object" && typeof module2 === "object") @@ -13487,7 +13360,7 @@ var require_feather = __commonJS({ /*! exports provided: activity, airplay, alert-circle, alert-octagon, alert-triangle, align-center, align-justify, align-left, align-right, anchor, aperture, archive, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, award, bar-chart-2, bar-chart, battery-charging, battery, bell-off, bell, bluetooth, bold, book-open, book, bookmark, box, briefcase, calendar, camera-off, camera, cast, check-circle, check-square, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, chrome, circle, clipboard, clock, cloud-drizzle, cloud-lightning, cloud-off, cloud-rain, cloud-snow, cloud, code, codepen, codesandbox, coffee, columns, command, compass, copy, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, cpu, credit-card, crop, crosshair, database, delete, disc, divide-circle, divide-square, divide, dollar-sign, download-cloud, download, dribbble, droplet, edit-2, edit-3, edit, external-link, eye-off, eye, facebook, fast-forward, feather, figma, file-minus, file-plus, file-text, file, film, filter, flag, folder-minus, folder-plus, folder, framer, frown, gift, git-branch, git-commit, git-merge, git-pull-request, github, gitlab, globe, grid, hard-drive, hash, headphones, heart, help-circle, hexagon, home, image, inbox, info, instagram, italic, key, layers, layout, life-buoy, link-2, link, linkedin, list, loader, lock, log-in, log-out, mail, map-pin, map, maximize-2, maximize, meh, menu, message-circle, message-square, mic-off, mic, minimize-2, minimize, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, mouse-pointer, move, music, navigation-2, navigation, octagon, package, paperclip, pause-circle, pause, pen-tool, percent, phone-call, phone-forwarded, phone-incoming, phone-missed, phone-off, phone-outgoing, phone, pie-chart, play-circle, play, plus-circle, plus-square, plus, pocket, power, printer, radio, refresh-ccw, refresh-cw, repeat, rewind, rotate-ccw, rotate-cw, rss, save, scissors, search, send, server, settings, share-2, share, shield-off, shield, shopping-bag, shopping-cart, shuffle, sidebar, skip-back, skip-forward, slack, slash, sliders, smartphone, smile, speaker, square, star, stop-circle, sun, sunrise, sunset, table, tablet, tag, target, terminal, thermometer, thumbs-down, thumbs-up, toggle-left, toggle-right, tool, trash-2, trash, trello, trending-down, trending-up, triangle, truck, tv, twitch, twitter, type, umbrella, underline, unlock, upload-cloud, upload, user-check, user-minus, user-plus, user-x, user, users, video-off, video, voicemail, volume-1, volume-2, volume-x, volume, watch, wifi-off, wifi, wind, x-circle, x-octagon, x-square, x, youtube, zap-off, zap, zoom-in, zoom-out, default */ /***/ function(module3) { - module3.exports = { "activity": '', "airplay": '', "alert-circle": '', "alert-octagon": '', "alert-triangle": '', "align-center": '', "align-justify": '', "align-left": '', "align-right": '', "anchor": '', "aperture": '', "archive": '', "arrow-down-circle": '', "arrow-down-left": '', "arrow-down-right": '', "arrow-down": '', "arrow-left-circle": '', "arrow-left": '', "arrow-right-circle": '', "arrow-right": '', "arrow-up-circle": '', "arrow-up-left": '', "arrow-up-right": '', "arrow-up": '', "at-sign": '', "award": '', "bar-chart-2": '', "bar-chart": '', "battery-charging": '', "battery": '', "bell-off": '', "bell": '', "bluetooth": '', "bold": '', "book-open": '', "book": '', "bookmark": '', "box": '', "briefcase": '', "calendar": '', "camera-off": '', "camera": '', "cast": '', "check-circle": '', "check-square": '', "check": '', "chevron-down": '', "chevron-left": '', "chevron-right": '', "chevron-up": '', "chevrons-down": '', "chevrons-left": '', "chevrons-right": '', "chevrons-up": '', "chrome": '', "circle": '', "clipboard": '', "clock": '', "cloud-drizzle": '', "cloud-lightning": '', "cloud-off": '', "cloud-rain": '', "cloud-snow": '', "cloud": '', "code": '', "codepen": '', "codesandbox": '', "coffee": '', "columns": '', "command": '', "compass": '', "copy": '', "corner-down-left": '', "corner-down-right": '', "corner-left-down": '', "corner-left-up": '', "corner-right-down": '', "corner-right-up": '', "corner-up-left": '', "corner-up-right": '', "cpu": '', "credit-card": '', "crop": '', "crosshair": '', "database": '', "delete": '', "disc": '', "divide-circle": '', "divide-square": '', "divide": '', "dollar-sign": '', "download-cloud": '', "download": '', "dribbble": '', "droplet": '', "edit-2": '', "edit-3": '', "edit": '', "external-link": '', "eye-off": '', "eye": '', "facebook": '', "fast-forward": '', "feather": '', "figma": '', "file-minus": '', "file-plus": '', "file-text": '', "file": '', "film": '', "filter": '', "flag": '', "folder-minus": '', "folder-plus": '', "folder": '', "framer": '', "frown": '', "gift": '', "git-branch": '', "git-commit": '', "git-merge": '', "git-pull-request": '', "github": '', "gitlab": '', "globe": '', "grid": '', "hard-drive": '', "hash": '', "headphones": '', "heart": '', "help-circle": '', "hexagon": '', "home": '', "image": '', "inbox": '', "info": '', "instagram": '', "italic": '', "key": '', "layers": '', "layout": '', "life-buoy": '', "link-2": '', "link": '', "linkedin": '', "list": '', "loader": '', "lock": '', "log-in": '', "log-out": '', "mail": '', "map-pin": '', "map": '', "maximize-2": '', "maximize": '', "meh": '', "menu": '', "message-circle": '', "message-square": '', "mic-off": '', "mic": '', "minimize-2": '', "minimize": '', "minus-circle": '', "minus-square": '', "minus": '', "monitor": '', "moon": '', "more-horizontal": '', "more-vertical": '', "mouse-pointer": '', "move": '', "music": '', "navigation-2": '', "navigation": '', "octagon": '', "package": '', "paperclip": '', "pause-circle": '', "pause": '', "pen-tool": '', "percent": '', "phone-call": '', "phone-forwarded": '', "phone-incoming": '', "phone-missed": '', "phone-off": '', "phone-outgoing": '', "phone": '', "pie-chart": '', "play-circle": '', "play": '', "plus-circle": '', "plus-square": '', "plus": '', "pocket": '', "power": '', "printer": '', "radio": '', "refresh-ccw": '', "refresh-cw": '', "repeat": '', "rewind": '', "rotate-ccw": '', "rotate-cw": '', "rss": '', "save": '', "scissors": '', "search": '', "send": '', "server": '', "settings": '', "share-2": '', "share": '', "shield-off": '', "shield": '', "shopping-bag": '', "shopping-cart": '', "shuffle": '', "sidebar": '', "skip-back": '', "skip-forward": '', "slack": '', "slash": '', "sliders": '', "smartphone": '', "smile": '', "speaker": '', "square": '', "star": '', "stop-circle": '', "sun": '', "sunrise": '', "sunset": '', "table": '', "tablet": '', "tag": '', "target": '', "terminal": '', "thermometer": '', "thumbs-down": '', "thumbs-up": '', "toggle-left": '', "toggle-right": '', "tool": '', "trash-2": '', "trash": '', "trello": '', "trending-down": '', "trending-up": '', "triangle": '', "truck": '', "tv": '', "twitch": '', "twitter": '', "type": '', "umbrella": '', "underline": '', "unlock": '', "upload-cloud": '', "upload": '', "user-check": '', "user-minus": '', "user-plus": '', "user-x": '', "user": '', "users": '', "video-off": '', "video": '', "voicemail": '', "volume-1": '', "volume-2": '', "volume-x": '', "volume": '', "watch": '', "wifi-off": '', "wifi": '', "wind": '', "x-circle": '', "x-octagon": '', "x-square": '', "x": '', "youtube": '', "zap-off": '', "zap": '', "zoom-in": '', "zoom-out": '' }; + module3.exports = { "activity": '', "airplay": '', "alert-circle": '', "alert-octagon": '', "alert-triangle": '', "align-center": '', "align-justify": '', "align-left": '', "align-right": '', "anchor": '', "aperture": '', "archive": '', "arrow-down-circle": '', "arrow-down-left": '', "arrow-down-right": '', "arrow-down": '', "arrow-left-circle": '', "arrow-left": '', "arrow-right-circle": '', "arrow-right": '', "arrow-up-circle": '', "arrow-up-left": '', "arrow-up-right": '', "arrow-up": '', "at-sign": '', "award": '', "bar-chart-2": '', "bar-chart": '', "battery-charging": '', "battery": '', "bell-off": '', "bell": '', "bluetooth": '', "bold": '', "book-open": '', "book": '', "bookmark": '', "box": '', "briefcase": '', "calendar": '', "camera-off": '', "camera": '', "cast": '', "check-circle": '', "check-square": '', "check": '', "chevron-down": '', "chevron-left": '', "chevron-right": '', "chevron-up": '', "chevrons-down": '', "chevrons-left": '', "chevrons-right": '', "chevrons-up": '', "chrome": '', "circle": '', "clipboard": '', "clock": '', "cloud-drizzle": '', "cloud-lightning": '', "cloud-off": '', "cloud-rain": '', "cloud-snow": '', "cloud": '', "code": '', "codepen": '', "codesandbox": '', "coffee": '', "columns": '', "command": '', "compass": '', "copy": '', "corner-down-left": '', "corner-down-right": '', "corner-left-down": '', "corner-left-up": '', "corner-right-down": '', "corner-right-up": '', "corner-up-left": '', "corner-up-right": '', "cpu": '', "credit-card": '', "crop": '', "crosshair": '', "database": '', "delete": '', "disc": '', "divide-circle": '', "divide-square": '', "divide": '', "dollar-sign": '', "download-cloud": '', "download": '', "dribbble": '', "droplet": '', "edit-2": '', "edit-3": '', "edit": '', "external-link": '', "eye-off": '', "eye": '', "facebook": '', "fast-forward": '', "feather": '', "figma": '', "file-minus": '', "file-plus": '', "file-text": '', "file": '', "film": '', "filter": '', "flag": '', "folder-minus": '', "folder-plus": '', "folder": '', "framer": '', "frown": '', "gift": '', "git-branch": '', "git-commit": '', "git-merge": '', "git-pull-request": '', "github": '', "gitlab": '', "globe": '', "grid": '', "hard-drive": '', "hash": '', "headphones": '', "heart": '', "help-circle": '', "hexagon": '', "home": '', "image": '', "inbox": '', "info": '', "instagram": '', "italic": '', "key": '', "layers": '', "layout": '', "life-buoy": '', "link-2": '', "link": '', "linkedin": '', "list": '', "loader": '', "lock": '', "log-in": '', "log-out": '', "mail": '', "map-pin": '', "map": '', "maximize-2": '', "maximize": '', "meh": '', "menu": '', "message-circle": '', "message-square": '', "mic-off": '', "mic": '', "minimize-2": '', "minimize": '', "minus-circle": '', "minus-square": '', "minus": '', "monitor": '', "moon": '', "more-horizontal": '', "more-vertical": '', "mouse-pointer": '', "move": '', "music": '', "navigation-2": '', "navigation": '', "octagon": '', "package": '', "paperclip": '', "pause-circle": '', "pause": '', "pen-tool": '', "percent": '', "phone-call": '', "phone-forwarded": '', "phone-incoming": '', "phone-missed": '', "phone-off": '', "phone-outgoing": '', "phone": '', "pie-chart": '', "play-circle": '', "play": '', "plus-circle": '', "plus-square": '', "plus": '', "pocket": '', "power": '', "printer": '', "radio": '', "refresh-ccw": '', "refresh-cw": '', "repeat": '', "rewind": '', "rotate-ccw": '', "rotate-cw": '', "rss": '', "save": '', "scissors": '', "search": '', "send": '', "server": '', "settings": '', "share-2": '', "share": '', "shield-off": '', "shield": '', "shopping-bag": '', "shopping-cart": '', "shuffle": '', "sidebar": '', "skip-back": '', "skip-forward": '', "slack": '', "slash": '', "sliders": '', "smartphone": '', "smile": '', "speaker": '', "square": '', "star": '', "stop-circle": '', "sun": '', "sunrise": '', "sunset": '', "table": '', "tablet": '', "tag": '', "target": '', "terminal": '', "thermometer": '', "thumbs-down": '', "thumbs-up": '', "toggle-left": '', "toggle-right": '', "tool": '', "trash-2": '', "trash": '', "trello": '', "trending-down": '', "trending-up": '', "triangle": '', "truck": '', "tv": '', "twitch": '', "twitter": '', "type": '', "umbrella": '', "underline": '', "unlock": '', "upload-cloud": '', "upload": '', "user-check": '', "user-minus": '', "user-plus": '', "user-x": '', "user": '', "users": '', "video-off": '', "video": '', "voicemail": '', "volume-1": '', "volume-2": '', "volume-x": '', "volume": '', "watch": '', "wifi-off": '', "wifi": '', "wind": '', "x-circle": '', "x-octagon": '', "x-square": '', "x": '', "youtube": '', "zap-off": '', "zap": '', "zoom-in": '', "zoom-out": '' }; } ), /***/ @@ -13531,8 +13404,7 @@ var require_feather = __commonJS({ } } function _parse(resultSet, arg) { - if (!arg) - return; + if (!arg) return; var argType = typeof arg; if (argType === "string") { _parseString(resultSet, arg); @@ -13678,8 +13550,7 @@ var require_feather = __commonJS({ var index2 = 0; var iteratorMethod = getIteratorMethod(O); var length, result, step, iterator; - if (mapping) - mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : void 0, 2); + if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : void 0, 2); if (iteratorMethod != void 0 && !(C == Array && isArrayIteratorMethod(iteratorMethod))) { iterator = iteratorMethod.call(O); result = new C(); @@ -13728,18 +13599,13 @@ var require_feather = __commonJS({ var length = toLength(O.length); var index2 = toAbsoluteIndex(fromIndex, length); var value; - if (IS_INCLUDES && el != el) - while (length > index2) { - value = O[index2++]; - if (value != value) - return true; - } - else - for (; length > index2; index2++) - if (IS_INCLUDES || index2 in O) { - if (O[index2] === el) - return IS_INCLUDES || index2 || 0; - } + if (IS_INCLUDES && el != el) while (length > index2) { + value = O[index2++]; + if (value != value) return true; + } + else for (; length > index2; index2++) if (IS_INCLUDES || index2 in O) { + if (O[index2] === el) return IS_INCLUDES || index2 || 0; + } return !IS_INCLUDES && -1; }; }; @@ -13759,8 +13625,7 @@ var require_feather = __commonJS({ ); module3.exports = function(fn, that, length) { aFunction(fn); - if (that === void 0) - return fn; + if (that === void 0) return fn; switch (length) { case 0: return function() { @@ -13802,8 +13667,7 @@ var require_feather = __commonJS({ return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value); } catch (error) { var returnMethod = iterator["return"]; - if (returnMethod !== void 0) - anObject(returnMethod.call(iterator)); + if (returnMethod !== void 0) anObject(returnMethod.call(iterator)); throw error; } }; @@ -13842,8 +13706,7 @@ var require_feather = __commonJS({ } catch (error) { } module3.exports = function(exec, SKIP_CLOSING) { - if (!SKIP_CLOSING && !SAFE_CLOSING) - return false; + if (!SKIP_CLOSING && !SAFE_CLOSING) return false; var ITERATION_SUPPORT = false; try { var object = {}; @@ -13937,8 +13800,7 @@ var require_feather = __commonJS({ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; for (var i = 0; i < keys.length; i++) { var key2 = keys[i]; - if (!has(target, key2)) - defineProperty(target, key2, getOwnPropertyDescriptor(source, key2)); + if (!has(target, key2)) defineProperty(target, key2, getOwnPropertyDescriptor(source, key2)); } }; } @@ -14045,10 +13907,8 @@ var require_feather = __commonJS({ ); module3.exports = function(object, key2, value) { var propertyKey = toPrimitive(key2); - if (propertyKey in object) - definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); - else - object[propertyKey] = value; + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; }; } ), @@ -14117,10 +13977,8 @@ var require_feather = __commonJS({ module3.exports = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { createIteratorConstructor(IteratorConstructor, NAME, next); var getIterationMethod = function(KIND) { - if (KIND === DEFAULT && defaultIterator) - return defaultIterator; - if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) - return IterablePrototype[KIND]; + if (KIND === DEFAULT && defaultIterator) return defaultIterator; + if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND]; switch (KIND) { case KEYS: return function keys() { @@ -14157,8 +14015,7 @@ var require_feather = __commonJS({ } } setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true); - if (IS_PURE) - Iterators[TO_STRING_TAG] = returnThis; + if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis; } } if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) { @@ -14177,14 +14034,12 @@ var require_feather = __commonJS({ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), entries: getIterationMethod(ENTRIES) }; - if (FORCED) - for (KEY in methods) { - if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { - redefine(IterablePrototype, KEY, methods[KEY]); - } + if (FORCED) for (KEY in methods) { + if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { + redefine(IterablePrototype, KEY, methods[KEY]); } - else - $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); + } + else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); } return methods; }; @@ -14299,25 +14154,22 @@ var require_feather = __commonJS({ } else { target = (global2[TARGET] || {}).prototype; } - if (target) - for (key2 in source) { - sourceProperty = source[key2]; - if (options.noTargetGet) { - descriptor = getOwnPropertyDescriptor(target, key2); - targetProperty = descriptor && descriptor.value; - } else - targetProperty = target[key2]; - FORCED = isForced(GLOBAL ? key2 : TARGET + (STATIC ? "." : "#") + key2, options.forced); - if (!FORCED && targetProperty !== void 0) { - if (typeof sourceProperty === typeof targetProperty) - continue; - copyConstructorProperties(sourceProperty, targetProperty); - } - if (options.sham || targetProperty && targetProperty.sham) { - hide(sourceProperty, "sham", true); - } - redefine(target, key2, sourceProperty, options); + if (target) for (key2 in source) { + sourceProperty = source[key2]; + if (options.noTargetGet) { + descriptor = getOwnPropertyDescriptor(target, key2); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key2]; + FORCED = isForced(GLOBAL ? key2 : TARGET + (STATIC ? "." : "#") + key2, options.forced); + if (!FORCED && targetProperty !== void 0) { + if (typeof sourceProperty === typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); } + if (options.sham || targetProperty && targetProperty.sham) { + hide(sourceProperty, "sham", true); + } + redefine(target, key2, sourceProperty, options); + } }; } ), @@ -14375,8 +14227,7 @@ var require_feather = __commonJS({ ); var ITERATOR = wellKnownSymbol("iterator"); module3.exports = function(it) { - if (it != void 0) - return it[ITERATOR] || it["@@iterator"] || Iterators[classof(it)]; + if (it != void 0) return it[ITERATOR] || it["@@iterator"] || Iterators[classof(it)]; }; } ), @@ -14722,18 +14573,14 @@ var require_feather = __commonJS({ var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator; if ([].keys) { arrayIterator = [].keys(); - if (!("next" in arrayIterator)) - BUGGY_SAFARI_ITERATORS = true; + if (!("next" in arrayIterator)) BUGGY_SAFARI_ITERATORS = true; else { PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator)); - if (PrototypeOfArrayIteratorPrototype !== Object.prototype) - IteratorPrototype = PrototypeOfArrayIteratorPrototype; + if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype; } } - if (IteratorPrototype == void 0) - IteratorPrototype = {}; - if (!IS_PURE && !has(IteratorPrototype, ITERATOR)) - hide(IteratorPrototype, ITERATOR, returnThis); + if (IteratorPrototype == void 0) IteratorPrototype = {}; + if (!IS_PURE && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis); module3.exports = { IteratorPrototype, BUGGY_SAFARI_ITERATORS @@ -14844,8 +14691,7 @@ var require_feather = __commonJS({ iframeDocument.write(lt + script + gt + "document.F=Object" + lt + "/" + script + gt); iframeDocument.close(); createDict = iframeDocument.F; - while (length--) - delete createDict[PROTOTYPE][enumBugKeys[length]]; + while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]]; return createDict(); }; module3.exports = Object.create || function create(O, Properties) { @@ -14855,8 +14701,7 @@ var require_feather = __commonJS({ result = new Empty(); Empty[PROTOTYPE] = null; result[IE_PROTO] = O; - } else - result = createDict(); + } else result = createDict(); return Properties === void 0 ? result : defineProperties(result, Properties); }; hiddenKeys[IE_PROTO] = true; @@ -14892,8 +14737,7 @@ var require_feather = __commonJS({ var length = keys.length; var i = 0; var key2; - while (length > i) - definePropertyModule.f(O, key2 = keys[i++], Properties[key2]); + while (length > i) definePropertyModule.f(O, key2 = keys[i++], Properties[key2]); return O; }; } @@ -14927,15 +14771,12 @@ var require_feather = __commonJS({ anObject(O); P = toPrimitive(P, true); anObject(Attributes); - if (IE8_DOM_DEFINE) - try { - return nativeDefineProperty(O, P, Attributes); - } catch (error) { - } - if ("get" in Attributes || "set" in Attributes) - throw TypeError("Accessors not supported"); - if ("value" in Attributes) - O[P] = Attributes.value; + if (IE8_DOM_DEFINE) try { + return nativeDefineProperty(O, P, Attributes); + } catch (error) { + } + if ("get" in Attributes || "set" in Attributes) throw TypeError("Accessors not supported"); + if ("value" in Attributes) O[P] = Attributes.value; return O; }; } @@ -14980,13 +14821,11 @@ var require_feather = __commonJS({ exports3.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { O = toIndexedObject(O); P = toPrimitive(P, true); - if (IE8_DOM_DEFINE) - try { - return nativeGetOwnPropertyDescriptor(O, P); - } catch (error) { - } - if (has(O, P)) - return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]); + if (IE8_DOM_DEFINE) try { + return nativeGetOwnPropertyDescriptor(O, P); + } catch (error) { + } + if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]); }; } ), @@ -15051,8 +14890,7 @@ var require_feather = __commonJS({ var ObjectPrototype = Object.prototype; module3.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function(O) { O = toObject(O); - if (has(O, IE_PROTO)) - return O[IE_PROTO]; + if (has(O, IE_PROTO)) return O[IE_PROTO]; if (typeof O.constructor == "function" && O instanceof O.constructor) { return O.constructor.prototype; } @@ -15090,12 +14928,10 @@ var require_feather = __commonJS({ var i = 0; var result = []; var key2; - for (key2 in O) - !has(hiddenKeys, key2) && has(O, key2) && result.push(key2); - while (names.length > i) - if (has(O, key2 = names[i++])) { - ~arrayIndexOf(result, key2) || result.push(key2); - } + for (key2 in O) !has(hiddenKeys, key2) && has(O, key2) && result.push(key2); + while (names.length > i) if (has(O, key2 = names[i++])) { + ~arrayIndexOf(result, key2) || result.push(key2); + } return result; }; } @@ -15163,10 +14999,8 @@ var require_feather = __commonJS({ } return function setPrototypeOf(O, proto) { validateSetPrototypeOfArguments(O, proto); - if (correctSetter) - setter.call(O, proto); - else - O.__proto__ = proto; + if (correctSetter) setter.call(O, proto); + else O.__proto__ = proto; return O; }; }() : void 0); @@ -15262,28 +15096,23 @@ var require_feather = __commonJS({ }); (module3.exports = function(O, key2, value, options) { var unsafe = options ? !!options.unsafe : false; - var simple2 = options ? !!options.enumerable : false; + var simple = options ? !!options.enumerable : false; var noTargetGet = options ? !!options.noTargetGet : false; if (typeof value == "function") { - if (typeof key2 == "string" && !has(value, "name")) - hide(value, "name", key2); + if (typeof key2 == "string" && !has(value, "name")) hide(value, "name", key2); enforceInternalState(value).source = TEMPLATE.join(typeof key2 == "string" ? key2 : ""); } if (O === global2) { - if (simple2) - O[key2] = value; - else - setGlobal(key2, value); + if (simple) O[key2] = value; + else setGlobal(key2, value); return; } else if (!unsafe) { delete O[key2]; } else if (!noTargetGet && O[key2]) { - simple2 = true; + simple = true; } - if (simple2) - O[key2] = value; - else - hide(O, key2, value); + if (simple) O[key2] = value; + else hide(O, key2, value); })(Function.prototype, "toString", function toString() { return typeof this == "function" && getInternalState(this).source || nativeFunctionToString.call(this); }); @@ -15298,8 +15127,7 @@ var require_feather = __commonJS({ /***/ function(module3, exports3) { module3.exports = function(it) { - if (it == void 0) - throw TypeError("Can't call method on " + it); + if (it == void 0) throw TypeError("Can't call method on " + it); return it; }; } @@ -15432,8 +15260,7 @@ var require_feather = __commonJS({ var position = toInteger(pos); var size = S.length; var first2, second; - if (position < 0 || position >= size) - return CONVERT_TO_STRING ? "" : void 0; + if (position < 0 || position >= size) return CONVERT_TO_STRING ? "" : void 0; first2 = S.charCodeAt(position); return first2 < 55296 || first2 > 56319 || position + 1 === size || (second = S.charCodeAt(position + 1)) < 56320 || second > 57343 ? CONVERT_TO_STRING ? S.charAt(position) : first2 : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first2 - 55296 << 10) + (second - 56320) + 65536; }; @@ -15543,15 +15370,11 @@ var require_feather = __commonJS({ "./node_modules/core-js/internals/is-object.js" ); module3.exports = function(it, S) { - if (!isObject2(it)) - return it; + if (!isObject2(it)) return it; var fn, val; - if (S && typeof (fn = it.toString) == "function" && !isObject2(val = fn.call(it))) - return val; - if (typeof (fn = it.valueOf) == "function" && !isObject2(val = fn.call(it))) - return val; - if (!S && typeof (fn = it.toString) == "function" && !isObject2(val = fn.call(it))) - return val; + if (S && typeof (fn = it.toString) == "function" && !isObject2(val = fn.call(it))) return val; + if (typeof (fn = it.valueOf) == "function" && !isObject2(val = fn.call(it))) return val; + if (!S && typeof (fn = it.toString) == "function" && !isObject2(val = fn.call(it))) return val; throw TypeError("Can't convert object to primitive value"); }; } @@ -15689,8 +15512,7 @@ var require_feather = __commonJS({ var string = state.string; var index2 = state.index; var point; - if (index2 >= string.length) - return { value: void 0, done: true }; + if (index2 >= string.length) return { value: void 0, done: true }; point = codePointAt(string, index2, true); state.index += point.length; return { value: point, done: false }; @@ -15712,8 +15534,7 @@ var require_feather = __commonJS({ try { g = g || Function("return this")() || (1, eval)("this"); } catch (e) { - if (typeof window === "object") - g = window; + if (typeof window === "object") g = window; } module3.exports = g; } @@ -15758,16 +15579,13 @@ var require_feather = __commonJS({ var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; - if ("value" in descriptor) - descriptor.writable = true; + if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function(Constructor, protoProps, staticProps) { - if (protoProps) - defineProperties(Constructor.prototype, protoProps); - if (staticProps) - defineProperties(Constructor, staticProps); + if (protoProps) defineProperties(Constructor.prototype, protoProps); + if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); @@ -15948,6 +15766,10 @@ var require_feather = __commonJS({ var elementAttrs = getAttrs(element2); var name = elementAttrs["data-feather"]; delete elementAttrs["data-feather"]; + if (_icons2.default[name] === void 0) { + console.warn("feather: '" + name + "' is not a valid icon"); + return; + } var svgString = _icons2.default[name].toSvg(_extends({}, attrs, elementAttrs, { class: (0, _dedupe2.default)(attrs.class, elementAttrs.class) })); var svgDocument = new DOMParser().parseFromString(svgString, "image/svg+xml"); var svgElement = svgDocument.querySelector("svg"); @@ -16040,7 +15862,7 @@ __export(main_exports, { module.exports = __toCommonJS(main_exports); init_polyfill_buffer(); -// node_modules/.pnpm/isomorphic-git@1.25.3/node_modules/isomorphic-git/index.js +// node_modules/.pnpm/isomorphic-git@1.27.1/node_modules/isomorphic-git/index.js init_polyfill_buffer(); var import_async_lock = __toESM(require_async_lock(), 1); var import_sha1 = __toESM(require_sha1(), 1); @@ -16195,8 +16017,7 @@ function normalizeMode(mode) { } else { permissions = 420; } - if (type !== 8) - permissions = 0; + if (type !== 8) permissions = 0; return (type << 12) + permissions; } var MAX_UINT32 = 2 ** 32; @@ -16242,8 +16063,7 @@ function normalizeStats(e) { function toHex(buffer2) { let hex = ""; for (const byte of new Uint8Array(buffer2)) { - if (byte < 16) - hex += "0"; + if (byte < 16) hex += "0"; hex += byte.toString(16); } return hex; @@ -16265,8 +16085,7 @@ async function subtleSHA1(buffer2) { async function testSubtleSHA1() { try { const hash2 = await subtleSHA1(new Uint8Array([])); - if (hash2 === "da39a3ee5e6b4b0d3255bfef95601890afd80709") - return true; + if (hash2 === "da39a3ee5e6b4b0d3255bfef95601890afd80709") return true; } catch (_) { } return false; @@ -16366,8 +16185,7 @@ var GitIndex = class _GitIndex { throw new UnsafeFilepathError(entry.path); } let padding = 8 - (reader.tell() - 12) % 8; - if (padding === 0) - padding = 8; + if (padding === 0) padding = 8; while (padding--) { const tmp = reader.readUInt8(); if (tmp !== 0) { @@ -16517,10 +16335,10 @@ var GitIndex = class _GitIndex { return Buffer.concat([main, Buffer.from(sum, "hex")]); } }; -function compareStats(entry, stats) { +function compareStats(entry, stats, filemode = true, trustino = true) { const e = normalizeStats(entry); const s = normalizeStats(stats); - const staleness = e.mode !== s.mode || e.mtimeSeconds !== s.mtimeSeconds || e.ctimeSeconds !== s.ctimeSeconds || e.uid !== s.uid || e.gid !== s.gid || e.ino !== s.ino || e.size !== s.size; + const staleness = filemode && e.mode !== s.mode || e.mtimeSeconds !== s.mtimeSeconds || e.ctimeSeconds !== s.ctimeSeconds || e.uid !== s.uid || e.gid !== s.gid || trustino && e.ino !== s.ino || e.size !== s.size; return staleness; } var lock = null; @@ -16540,13 +16358,10 @@ async function updateCachedIndexFile(fs, filepath, cache) { } async function isIndexStale(fs, filepath, cache) { const savedStats = cache.stats.get(filepath); - if (savedStats === void 0) - return true; + if (savedStats === void 0) return true; const currStats = await fs.lstat(filepath); - if (savedStats === null) - return false; - if (currStats === null) - return false; + if (savedStats === null) return false; + if (currStats === null) return false; return compareStats(savedStats, currStats); } var GitIndexManager = class { @@ -16560,11 +16375,9 @@ var GitIndexManager = class { * @param {function(GitIndex): any} closure */ static async acquire({ fs, gitdir, cache, allowUnmerged = true }, closure) { - if (!cache[IndexCache]) - cache[IndexCache] = createCache(); + if (!cache[IndexCache]) cache[IndexCache] = createCache(); const filepath = `${gitdir}/index`; - if (lock === null) - lock = new import_async_lock.default({ maxPending: Infinity }); + if (lock === null) lock = new import_async_lock.default({ maxPending: Infinity }); let result; let unmergedPaths = []; await lock.acquire(filepath, async () => { @@ -16595,10 +16408,8 @@ function basename(path2) { } function dirname(path2) { const last2 = Math.max(path2.lastIndexOf("/"), path2.lastIndexOf("\\")); - if (last2 === -1) - return "."; - if (last2 === 0) - return "/"; + if (last2 === -1) return "."; + if (last2 === 0) return "/"; return path2.slice(0, last2); } function flatFileListToDirectoryStructure(files) { @@ -16614,8 +16425,7 @@ function flatFileListToDirectoryStructure(files) { }; inodes.set(name, dir); dir.parent = mkdir(dirname(name)); - if (dir.parent && dir.parent !== dir) - dir.parent.children.push(dir); + if (dir.parent && dir.parent !== dir) dir.parent.children.push(dir); } return inodes.get(name); }; @@ -16630,8 +16440,7 @@ function flatFileListToDirectoryStructure(files) { parent: mkdir(dirname(name)), children: [] }; - if (file.parent) - file.parent.children.push(file); + if (file.parent) file.parent.children.push(file); inodes.set(name, file); } return inodes.get(name); @@ -16695,10 +16504,8 @@ var GitWalkerIndex = class { const filepath = entry._fullpath; const tree = await this.treePromise; const inode = tree.get(filepath); - if (!inode) - return null; - if (inode.type === "blob") - return null; + if (!inode) return null; + if (inode.type === "blob") return null; if (inode.type !== "tree") { throw new Error(`ENOTDIR: not a directory, scandir '${filepath}'`); } @@ -16884,8 +16691,7 @@ var GitRefSpec = class _GitRefSpec { return this.localPath + remoteBranch.replace(this.remotePath, ""); } } else { - if (remoteBranch === this.remotePath) - return this.localPath; + if (remoteBranch === this.remotePath) return this.localPath; } return null; } @@ -16895,8 +16701,7 @@ var GitRefSpec = class _GitRefSpec { return this.remotePath + localBranch.replace(this.localPath, ""); } } else { - if (localBranch === this.localPath) - return this.remotePath; + if (localBranch === this.localPath) return this.remotePath; } return null; } @@ -16962,18 +16767,12 @@ function normalizePath(path2) { } function normalizePathInternal(path2) { path2 = path2.split("/./").join("/").replace(/\/{2,}/g, "/"); - if (path2 === "/.") - return "/"; - if (path2 === "./") - return "."; - if (path2.startsWith("./")) - path2 = path2.slice(2); - if (path2.endsWith("/.")) - path2 = path2.slice(0, -2); - if (path2.length > 1 && path2.endsWith("/")) - path2 = path2.slice(0, -1); - if (path2 === "") - return "."; + if (path2 === "/.") return "/"; + if (path2 === "./") return "."; + if (path2.startsWith("./")) path2 = path2.slice(2); + if (path2.endsWith("/.")) path2 = path2.slice(0, -2); + if (path2.length > 1 && path2.endsWith("/")) path2 = path2.slice(0, -1); + if (path2 === "") return "."; return path2; } function join(...parts) { @@ -16982,20 +16781,15 @@ function join(...parts) { var num = (val) => { val = val.toLowerCase(); let n = parseInt(val); - if (val.endsWith("k")) - n *= 1024; - if (val.endsWith("m")) - n *= 1024 * 1024; - if (val.endsWith("g")) - n *= 1024 * 1024 * 1024; + if (val.endsWith("k")) n *= 1024; + if (val.endsWith("m")) n *= 1024 * 1024; + if (val.endsWith("g")) n *= 1024 * 1024 * 1024; return n; }; var bool = (val) => { val = val.trim().toLowerCase(); - if (val === "true" || val === "yes" || val === "on") - return true; - if (val === "false" || val === "no" || val === "off") - return false; + if (val === "true" || val === "yes" || val === "on") return true; + if (val === "false" || val === "no" || val === "off") return false; throw Error( `Expected 'true', 'false', 'yes', 'no', 'on', or 'off', but got ${val}` ); @@ -17086,7 +16880,7 @@ var GitConfig = class _GitConfig { constructor(text2) { let section = null; let subsection = null; - this.parsedConfig = text2.split("\n").map((line) => { + this.parsedConfig = text2 ? text2.split("\n").map((line) => { let name = null; let value = null; const trimmedLine = line.trim(); @@ -17105,7 +16899,7 @@ var GitConfig = class _GitConfig { } const path2 = getPath(section, subsection, name); return { line, isSection, section, subsection, name, value, path: path2 }; - }); + }) : []; } static from(text2) { return new _GitConfig(text2); @@ -17227,6 +17021,11 @@ var refpaths = (ref) => [ `refs/remotes/${ref}/HEAD` ]; var GIT_FILES = ["config", "description", "index", "shallow", "commondir"]; +var lock$1; +async function acquireLock(ref, callback) { + if (lock$1 === void 0) lock$1 = new import_async_lock.default(); + return lock$1.acquire(ref, callback); +} var GitRefManager = class _GitRefManager { static async updateRemoteRefs({ fs, @@ -17308,8 +17107,11 @@ var GitRefManager = class _GitRefManager { } } for (const [key2, value] of actualRefsToWrite) { - await fs.write(join(gitdir, key2), `${value.trim()} -`, "utf8"); + await acquireLock( + key2, + async () => fs.write(join(gitdir, key2), `${value.trim()} +`, "utf8") + ); } return { pruned }; } @@ -17318,19 +17120,28 @@ var GitRefManager = class _GitRefManager { if (!value.match(/[0-9a-f]{40}/)) { throw new InvalidOidError(value); } - await fs.write(join(gitdir, ref), `${value.trim()} -`, "utf8"); + await acquireLock( + ref, + async () => fs.write(join(gitdir, ref), `${value.trim()} +`, "utf8") + ); } static async writeSymbolicRef({ fs, gitdir, ref, value }) { - await fs.write(join(gitdir, ref), `ref: ${value.trim()} -`, "utf8"); + await acquireLock( + ref, + async () => fs.write(join(gitdir, ref), `ref: ${value.trim()} +`, "utf8") + ); } static async deleteRef({ fs, gitdir, ref }) { return _GitRefManager.deleteRefs({ fs, gitdir, refs: [ref] }); } static async deleteRefs({ fs, gitdir, refs }) { await Promise.all(refs.map((ref) => fs.rm(join(gitdir, ref)))); - let text2 = await fs.read(`${gitdir}/packed-refs`, { encoding: "utf8" }); + let text2 = await acquireLock( + "packed-refs", + async () => fs.read(`${gitdir}/packed-refs`, { encoding: "utf8" }) + ); const packed = GitPackedRefs.from(text2); const beforeSize = packed.refs.size; for (const ref of refs) { @@ -17340,7 +17151,10 @@ var GitRefManager = class _GitRefManager { } if (packed.refs.size < beforeSize) { text2 = packed.toString(); - await fs.write(`${gitdir}/packed-refs`, text2, { encoding: "utf8" }); + await acquireLock( + "packed-refs", + async () => fs.write(`${gitdir}/packed-refs`, text2, { encoding: "utf8" }) + ); } } /** @@ -17358,7 +17172,6 @@ var GitRefManager = class _GitRefManager { return ref; } } - let sha; if (ref.startsWith("ref: ")) { ref = ref.slice("ref: ".length); return _GitRefManager.resolve({ fs, gitdir, ref, depth }); @@ -17369,7 +17182,10 @@ var GitRefManager = class _GitRefManager { const packedMap = await _GitRefManager.packedRefs({ fs, gitdir }); const allpaths = refpaths(ref).filter((p) => !GIT_FILES.includes(p)); for (const ref2 of allpaths) { - sha = await fs.read(`${gitdir}/${ref2}`, { encoding: "utf8" }) || packedMap.get(ref2); + const sha = await acquireLock( + ref2, + async () => await fs.read(`${gitdir}/${ref2}`, { encoding: "utf8" }) || packedMap.get(ref2) + ); if (sha) { return _GitRefManager.resolve({ fs, gitdir, ref: sha.trim(), depth }); } @@ -17391,18 +17207,19 @@ var GitRefManager = class _GitRefManager { const packedMap = await _GitRefManager.packedRefs({ fs, gitdir }); const allpaths = refpaths(ref); for (const ref2 of allpaths) { - if (await fs.exists(`${gitdir}/${ref2}`)) - return ref2; - if (packedMap.has(ref2)) - return ref2; + const refExists = await acquireLock( + ref2, + async () => fs.exists(`${gitdir}/${ref2}`) + ); + if (refExists) return ref2; + if (packedMap.has(ref2)) return ref2; } throw new NotFoundError(ref); } static async expandAgainstMap({ ref, map }) { const allpaths = refpaths(ref); for (const ref2 of allpaths) { - if (await map.has(ref2)) - return ref2; + if (await map.has(ref2)) return ref2; } throw new NotFoundError(ref); } @@ -17435,7 +17252,10 @@ var GitRefManager = class _GitRefManager { throw new NotFoundError(ref); } static async packedRefs({ fs, gitdir }) { - const text2 = await fs.read(`${gitdir}/packed-refs`, { encoding: "utf8" }); + const text2 = await acquireLock( + "packed-refs", + async () => fs.read(`${gitdir}/packed-refs`, { encoding: "utf8" }) + ); const packed = GitPackedRefs.from(text2); return packed.refs; } @@ -17518,8 +17338,7 @@ function parseBuffer(buffer2) { ); } let mode = buffer2.slice(cursor, space2).toString("utf8"); - if (mode === "40000") - mode = "040000"; + if (mode === "40000") mode = "040000"; const type = mode2type$1(mode); const path2 = buffer2.slice(space2 + 1, nullchar).toString("utf8"); if (path2.includes("\\") || path2.includes("/")) { @@ -17535,16 +17354,11 @@ function limitModeToAllowed(mode) { if (typeof mode === "number") { mode = mode.toString(8); } - if (mode.match(/^0?4.*/)) - return "040000"; - if (mode.match(/^1006.*/)) - return "100644"; - if (mode.match(/^1007.*/)) - return "100755"; - if (mode.match(/^120.*/)) - return "120000"; - if (mode.match(/^160.*/)) - return "160000"; + if (mode.match(/^0?4.*/)) return "040000"; + if (mode.match(/^1006.*/)) return "100644"; + if (mode.match(/^1007.*/)) return "100755"; + if (mode.match(/^120.*/)) return "120000"; + if (mode.match(/^160.*/)) return "160000"; throw new InternalError(`Could not understand file mode: ${mode}`); } function nudgeIntoShape(entry) { @@ -17692,8 +17506,7 @@ function readOp(reader, source) { if (byte & COPY) { const offset = readCompactLE(reader, byte & OFFS, 4); let size = readCompactLE(reader, (byte & SIZE) >> 4, 3); - if (size === 0) - size = 65536; + if (size === 0) size = 65536; return source.slice(offset, offset + size); } else { return reader.slice(byte); @@ -17728,6 +17541,9 @@ function getIterator(iterable) { } var StreamReader = class { constructor(stream) { + if (typeof Buffer === "undefined") { + throw new Error("Missing Buffer dependency"); + } this.stream = getIterator(stream); this.buffer = null; this.cursor = 0; @@ -17743,36 +17559,28 @@ var StreamReader = class { return this._discardedBytes + this.cursor; } async byte() { - if (this.eof()) - return; - if (!this.started) - await this._init(); + if (this.eof()) return; + if (!this.started) await this._init(); if (this.cursor === this.buffer.length) { await this._loadnext(); - if (this._ended) - return; + if (this._ended) return; } this._moveCursor(1); return this.buffer[this.undoCursor]; } async chunk() { - if (this.eof()) - return; - if (!this.started) - await this._init(); + if (this.eof()) return; + if (!this.started) await this._init(); if (this.cursor === this.buffer.length) { await this._loadnext(); - if (this._ended) - return; + if (this._ended) return; } this._moveCursor(this.buffer.length); return this.buffer.slice(this.undoCursor, this.cursor); } async read(n) { - if (this.eof()) - return; - if (!this.started) - await this._init(); + if (this.eof()) return; + if (!this.started) await this._init(); if (this.cursor + n > this.buffer.length) { this._trim(); await this._accumulate(n); @@ -17781,10 +17589,8 @@ var StreamReader = class { return this.buffer.slice(this.undoCursor, this.cursor); } async skip(n) { - if (this.eof()) - return; - if (!this.started) - await this._init(); + if (this.eof()) return; + if (!this.started) await this._init(); if (this.cursor + n > this.buffer.length) { this._trim(); await this._accumulate(n); @@ -17799,8 +17605,7 @@ var StreamReader = class { let { done, value } = await this.stream.next(); if (done) { this._ended = true; - if (!value) - return Buffer.alloc(0); + if (!value) return Buffer.alloc(0); } if (value) { value = Buffer.from(value); @@ -17821,13 +17626,11 @@ var StreamReader = class { } } async _accumulate(n) { - if (this._ended) - return; + if (this._ended) return; const buffers = [this.buffer]; while (this.cursor + n > lengthBuffers(buffers)) { const nextbuffer = await this._next(); - if (this._ended) - break; + if (this._ended) break; buffers.push(nextbuffer); } this.buffer = Buffer.concat(buffers); @@ -17859,16 +17662,14 @@ async function listpack(stream, onData) { } let numObjects = await reader.read(4); numObjects = numObjects.readUInt32BE(0); - if (numObjects < 1) - return; + if (numObjects < 1) return; while (!reader.eof() && numObjects--) { const offset = reader.tell(); const { type, length, ofs, reference } = await parseHeader(reader); const inflator = new import_pako.default.Inflate(); while (!inflator.result) { const chunk = await reader.chunk(); - if (!chunk) - break; + if (!chunk) break; inflator.push(chunk, false); if (inflator.err) { throw new InternalError(`Pako error: ${inflator.msg}`); @@ -17942,8 +17743,7 @@ async function browserInflate(buffer2) { function testDecompressionStream() { try { const ds = new DecompressionStream("deflate"); - if (ds) - return true; + if (ds) return true; } catch (_) { } return false; @@ -18031,8 +17831,7 @@ var GitPackIndex = class _GitPackIndex { let totalObjectCount = null; let lastPercent = null; await listpack([pack], async ({ data, type, reference, offset, num: num2 }) => { - if (totalObjectCount === null) - totalObjectCount = num2; + if (totalObjectCount === null) totalObjectCount = num2; const percent = Math.floor( (totalObjectCount - num2) * 100 / totalObjectCount ); @@ -18098,8 +17897,7 @@ var GitPackIndex = class _GitPackIndex { count++; lastPercent = percent; const o = offsetToObject[offset]; - if (o.oid) - continue; + if (o.oid) continue; try { p.readDepth = 0; p.externalReadDepth = 0; @@ -18128,8 +17926,7 @@ var GitPackIndex = class _GitPackIndex { for (let i = 0; i < 256; i++) { let count = 0; for (const hash2 of this.hashes) { - if (parseInt(hash2.slice(0, 2), 16) <= i) - count++; + if (parseInt(hash2.slice(0, 2), 16) <= i) count++; } fanoutBuffer.writeUInt32BE(count); } @@ -18250,8 +18047,7 @@ function readPackIndex({ emitter, emitterPrefix }) { - if (!cache[PackfileCache]) - cache[PackfileCache] = /* @__PURE__ */ new Map(); + if (!cache[PackfileCache]) cache[PackfileCache] = /* @__PURE__ */ new Map(); let p = cache[PackfileCache].get(filename); if (!p) { p = loadPackIndex({ @@ -18283,8 +18079,7 @@ async function readObjectPacked({ filename: indexFile, getExternalRefDelta }); - if (p.error) - throw new InternalError(p.error); + if (p.error) throw new InternalError(p.error); if (p.offsets.has(oid)) { if (!p.pack) { const packFile = indexFile.replace(/idx$/, "pack"); @@ -18321,9 +18116,10 @@ async function _readObject({ oid, getExternalRefDelta }); - } - if (!result) { - throw new NotFoundError(oid); + if (!result) { + throw new NotFoundError(oid); + } + return result; } if (format === "deflated") { return result; @@ -18332,27 +18128,23 @@ async function _readObject({ result.object = Buffer.from(await inflate(result.object)); result.format = "wrapped"; } - if (result.format === "wrapped") { - if (format === "wrapped" && result.format === "wrapped") { - return result; - } - const sha = await shasum(result.object); - if (sha !== oid) { - throw new InternalError( - `SHA check failed! Expected ${oid}, computed ${sha}` - ); - } - const { object, type } = GitObject.unwrap(result.object); - result.type = type; - result.object = object; - result.format = "content"; + if (format === "wrapped") { + return result; } - if (result.format === "content") { - if (format === "content") - return result; - return; + const sha = await shasum(result.object); + if (sha !== oid) { + throw new InternalError( + `SHA check failed! Expected ${oid}, computed ${sha}` + ); } - throw new InternalError(`invalid format "${result.format}"`); + const { object, type } = GitObject.unwrap(result.object); + result.type = type; + result.object = object; + result.format = "content"; + if (format === "content") { + return result; + } + throw new InternalError(`invalid requested format "${format}"`); } var AlreadyExistsError = class _AlreadyExistsError extends BaseError { /** @@ -18661,13 +18453,26 @@ var IndexResetError = class _IndexResetError extends BaseError { */ constructor(filepath) { super( - `Could not merge index: Entry for '${filepath}' is not up to date. Either reset the index entry to HEAD, or stage your unstaged chages.` + `Could not merge index: Entry for '${filepath}' is not up to date. Either reset the index entry to HEAD, or stage your unstaged changes.` ); this.code = this.name = _IndexResetError.code; this.data = { filepath }; } }; IndexResetError.code = "IndexResetError"; +var NoCommitError = class _NoCommitError extends BaseError { + /** + * @param {string} ref + */ + constructor(ref) { + super( + `"${ref}" does not point to any commit. You're maybe working on a repository with no commits yet. ` + ); + this.code = this.name = _NoCommitError.code; + this.data = { ref }; + } +}; +NoCommitError.code = "NoCommitError"; var Errors = /* @__PURE__ */ Object.freeze({ __proto__: null, AlreadyExistsError, @@ -18700,7 +18505,8 @@ var Errors = /* @__PURE__ */ Object.freeze({ UrlParseError, UserCanceledError, UnmergedPathsError, - IndexResetError + IndexResetError, + NoCommitError }); function formatAuthor({ name, email, timestamp, timezoneOffset }) { timezoneOffset = formatTimezoneOffset(timezoneOffset); @@ -18713,10 +18519,8 @@ function formatTimezoneOffset(minutes) { minutes -= hours * 60; let strHours = String(hours); let strMinutes = String(minutes); - if (strHours.length < 2) - strHours = "0" + strHours; - if (strMinutes.length < 2) - strMinutes = "0" + strMinutes; + if (strHours.length < 2) strHours = "0" + strHours; + if (strMinutes.length < 2) strMinutes = "0" + strMinutes; return (sign === -1 ? "-" : "+") + strHours + strMinutes; } function simpleSign(n) { @@ -18822,13 +18626,11 @@ ${obj.gpgsig ? obj.gpgsig : ""}`; } withoutSignature() { const tag2 = normalizeNewlines(this._tag); - if (tag2.indexOf("\n-----BEGIN PGP SIGNATURE-----") === -1) - return tag2; + if (tag2.indexOf("\n-----BEGIN PGP SIGNATURE-----") === -1) return tag2; return tag2.slice(0, tag2.lastIndexOf("\n-----BEGIN PGP SIGNATURE-----")); } gpgsig() { - if (this._tag.indexOf("\n-----BEGIN PGP SIGNATURE-----") === -1) - return; + if (this._tag.indexOf("\n-----BEGIN PGP SIGNATURE-----") === -1) return; const signature = this._tag.slice( this._tag.indexOf("-----BEGIN PGP SIGNATURE-----"), this._tag.indexOf("-----END PGP SIGNATURE-----") + "-----END PGP SIGNATURE-----".length @@ -18965,8 +18767,7 @@ var GitCommit = class _GitCommit { } withoutSignature() { const commit2 = normalizeNewlines(this._commit); - if (commit2.indexOf("\ngpgsig") === -1) - return commit2; + if (commit2.indexOf("\ngpgsig") === -1) return commit2; const headers = commit2.slice(0, commit2.indexOf("\ngpgsig")); const message = commit2.slice( commit2.indexOf("-----END PGP SIGNATURE-----\n") + "-----END PGP SIGNATURE-----\n".length @@ -19061,11 +18862,9 @@ var GitWalkerRepo = class { const { fs, cache, gitdir } = this; const map = await this.mapPromise; const obj = map.get(filepath); - if (!obj) - throw new Error(`No obj for ${filepath}`); + if (!obj) throw new Error(`No obj for ${filepath}`); const oid = obj.oid; - if (!oid) - throw new Error(`No oid for obj ${JSON.stringify(obj)}`); + if (!oid) throw new Error(`No oid for obj ${JSON.stringify(obj)}`); if (obj.type !== "tree") { return null; } @@ -19168,8 +18967,7 @@ var GitWalkerFs = class { const filepath = entry._fullpath; const { fs, dir } = this; const names = await fs.readdir(join(dir, filepath)); - if (names === null) - return null; + if (names === null) return null; return names.map((name) => join(filepath, name)); } async type(entry) { @@ -19209,11 +19007,13 @@ var GitWalkerFs = class { } async content(entry) { if (entry._content === false) { - const { fs, dir } = this; + const { fs, dir, gitdir } = this; if (await entry.type() === "tree") { entry._content = void 0; } else { - const content = await fs.read(`${dir}/${entry._fullpath}`); + const config = await GitConfigManager.get({ fs, gitdir }); + const autocrlf = await config.get("core.autocrlf"); + const content = await fs.read(`${dir}/${entry._fullpath}`, { autocrlf }); entry._actualSize = content.length; if (entry._stat && entry._stat.size === -1) { entry._stat.size = entry._actualSize; @@ -19230,7 +19030,10 @@ var GitWalkerFs = class { await GitIndexManager.acquire({ fs, gitdir, cache }, async function(index2) { const stage = index2.entriesMap.get(entry._fullpath); const stats = await entry.stat(); - if (!stage || compareStats(stats, stage)) { + const config = await GitConfigManager.get({ fs, gitdir }); + const filemode = await config.get("core.filemode"); + const trustino = typeof process !== "undefined" ? !(process.platform === "win32") : true; + if (!stage || compareStats(stats, stage, filemode, trustino)) { const content = await entry.content(); if (content === void 0) { oid = void 0; @@ -19238,7 +19041,7 @@ var GitWalkerFs = class { oid = await shasum( GitObject.wrap({ type: "blob", object: await entry.content() }) ); - if (stage && oid === stage.oid && stats.mode === stage.mode && compareStats(stats, stage)) { + if (stage && oid === stage.oid && (!filemode || stats.mode === stage.mode) && compareStats(stats, stage, filemode, trustino)) { index2.insert({ filepath: entry._fullpath, stats, @@ -19275,8 +19078,7 @@ var RunningMinimum = class { this.value = null; } consider(value) { - if (value === null || value === void 0) - return; + if (value === null || value === void 0) return; if (this.value === null) { this.value = value; } else if (value < this.value) { @@ -19298,8 +19100,7 @@ function* unionOfIterators(sets) { min.consider(heads[i]); } } - if (min.value === null) - return; + if (min.value === null) return; while (true) { const result = []; minimum = min.value; @@ -19316,8 +19117,7 @@ function* unionOfIterators(sets) { } } yield result; - if (min.value === null) - return; + if (min.value === null) return; } } async function _walk({ @@ -19331,8 +19131,7 @@ async function _walk({ // The default reducer is a flatmap that filters out undefineds. reduce = async (parent, children2) => { const flatten = flat(children2); - if (parent !== void 0) - flatten.unshift(parent); + if (parent !== void 0) flatten.unshift(parent); return flatten; }, // The default iterate function walks all children concurrently @@ -19377,8 +19176,7 @@ async function rmRecursive(fs, filepath) { entries.map((entry) => { const subpath = join(filepath, entry); return fs.lstat(subpath).then((stat) => { - if (!stat) - return; + if (!stat) return; return stat.isDirectory() ? rmRecursive(fs, subpath) : fs.rm(subpath); }); }) @@ -19429,25 +19227,18 @@ function bindFs(target, fs) { } } if (isPromiseFs(fs)) { - if (fs.rm) - target._rm = fs.rm.bind(fs); - else if (fs.rmdir.length > 1) - target._rm = fs.rmdir.bind(fs); - else - target._rm = rmRecursive.bind(null, target); + if (fs.rm) target._rm = fs.rm.bind(fs); + else if (fs.rmdir.length > 1) target._rm = fs.rmdir.bind(fs); + else target._rm = rmRecursive.bind(null, target); } else { - if (fs.rm) - target._rm = (0, import_pify.default)(fs.rm.bind(fs)); - else if (fs.rmdir.length > 2) - target._rm = (0, import_pify.default)(fs.rmdir.bind(fs)); - else - target._rm = rmRecursive.bind(null, target); + if (fs.rm) target._rm = (0, import_pify.default)(fs.rm.bind(fs)); + else if (fs.rmdir.length > 2) target._rm = (0, import_pify.default)(fs.rmdir.bind(fs)); + else target._rm = rmRecursive.bind(null, target); } } var FileSystem = class { constructor(fs) { - if (typeof fs._original_unwrapped_fs !== "undefined") - return fs; + if (typeof fs._original_unwrapped_fs !== "undefined") return fs; const promises = Object.getOwnPropertyDescriptor(fs, "promises"); if (promises && promises.enumerable) { bindFs(this, fs.promises); @@ -19458,7 +19249,7 @@ var FileSystem = class { } /** * Return true if a file exists, false if it doesn't exist. - * Rethrows errors that aren't related to file existance. + * Rethrows errors that aren't related to file existence. */ async exists(filepath, options = {}) { try { @@ -19484,6 +19275,14 @@ var FileSystem = class { async read(filepath, options = {}) { try { let buffer2 = await this._readFile(filepath, options); + if (options.autocrlf === "true") { + try { + buffer2 = new TextDecoder("utf8", { fatal: true }).decode(buffer2); + buffer2 = buffer2.replace(/\r\n/g, "\n"); + buffer2 = new TextEncoder().encode(buffer2); + } catch (error) { + } + } if (typeof buffer2 !== "string") { buffer2 = Buffer.from(buffer2); } @@ -19516,16 +19315,12 @@ var FileSystem = class { await this._mkdir(filepath); return; } catch (err) { - if (err === null) - return; - if (err.code === "EEXIST") - return; - if (_selfCall) - throw err; + if (err === null) return; + if (err.code === "EEXIST") return; + if (_selfCall) throw err; if (err.code === "ENOENT") { const parent = dirname(filepath); - if (parent === "." || parent === "/" || parent === filepath) - throw err; + if (parent === "." || parent === "/" || parent === filepath) throw err; await this.mkdir(parent); await this.mkdir(filepath, true); } @@ -19538,8 +19333,7 @@ var FileSystem = class { try { await this._unlink(filepath); } catch (err) { - if (err.code !== "ENOENT") - throw err; + if (err.code !== "ENOENT") throw err; } } /** @@ -19553,8 +19347,7 @@ var FileSystem = class { await this._rmdir(filepath); } } catch (err) { - if (err.code !== "ENOENT") - throw err; + if (err.code !== "ENOENT") throw err; } } /** @@ -19566,8 +19359,7 @@ var FileSystem = class { names.sort(compareStrings); return names; } catch (err) { - if (err.code === "ENOTDIR") - return null; + if (err.code === "ENOTDIR") return null; return []; } } @@ -19589,7 +19381,7 @@ var FileSystem = class { } /** * Return the Stats of a file/symlink if it exists, otherwise returns null. - * Rethrows errors that aren't related to file existance. + * Rethrows errors that aren't related to file existence. */ async lstat(filename) { try { @@ -19604,7 +19396,7 @@ var FileSystem = class { } /** * Reads the contents of a symlink if it exists, otherwise returns null. - * Rethrows errors that aren't related to file existance. + * Rethrows errors that aren't related to file existence. */ async readlink(filename, opts = { encoding: "buffer" }) { try { @@ -19630,12 +19422,9 @@ function assertParameter(name, value) { } } async function modified(entry, base) { - if (!entry && !base) - return false; - if (entry && !base) - return true; - if (!entry && base) - return true; + if (!entry && !base) return false; + if (entry && !base) return true; + if (!entry && base) return true; if (await entry.type() === "tree" && await base.type() === "tree") { return false; } @@ -19680,16 +19469,13 @@ async function abortMerge({ content: await head.content() } : void 0; } - if (unmodified) - return false; - else - throw new IndexResetError(path2); + if (unmodified) return false; + else throw new IndexResetError(path2); } }); await GitIndexManager.acquire({ fs, gitdir, cache }, async function(index2) { for (const entry of results) { - if (entry === false) - continue; + if (entry === false) continue; if (!entry) { await fs.rmdir(`${dir}/${entry.path}`, { recursive: true }); index2.delete({ filepath: entry.path }); @@ -19713,10 +19499,8 @@ async function abortMerge({ } var GitIgnoreManager = class { static async isIgnored({ fs, dir, gitdir = join(dir, ".git"), filepath }) { - if (basename(filepath) === ".git") - return true; - if (filepath === ".") - return false; + if (basename(filepath) === ".git") return true; + if (filepath === ".") return false; let excludes = ""; const excludesFile = join(gitdir, "info", "exclude"); if (await fs.exists(excludesFile)) { @@ -19743,14 +19527,12 @@ var GitIgnoreManager = class { try { file = await fs.read(p.gitignore, "utf8"); } catch (err) { - if (err.code === "NOENT") - continue; + if (err.code === "NOENT") continue; } const ign = (0, import_ignore.default)().add(excludes); ign.add(file); const parentdir = dirname(p.filepath); - if (parentdir !== "." && ign.ignores(parentdir)) - return true; + if (parentdir !== "." && ign.ignores(parentdir)) return true; if (ignoredStatus) { ignoredStatus = !ign.test(p.filepath).unignored; } else { @@ -19768,8 +19550,7 @@ async function writeObjectLoose({ fs, gitdir, object, format, oid }) { } const source = `objects/${oid.slice(0, 2)}/${oid.slice(2)}`; const filepath = `${gitdir}/${source}`; - if (!await fs.exists(filepath)) - await fs.write(filepath, object); + if (!await fs.exists(filepath)) await fs.write(filepath, object); } var supportsCompressionStream = null; async function deflate(buffer2) { @@ -19786,12 +19567,13 @@ async function browserDeflate(buffer2) { function testCompressionStream() { try { const cs = new CompressionStream("deflate"); - new Blob([]).stream(); - if (cs) - return true; + cs.writable.close(); + const stream = new Blob([]).stream(); + stream.cancel(); + return true; } catch (_) { + return false; } - return false; } async function _writeObject({ fs, @@ -19816,8 +19598,7 @@ async function _writeObject({ } function posixifyPathBuffer(buffer2) { let idx; - while (~(idx = buffer2.indexOf(92))) - buffer2[idx] = 47; + while (~(idx = buffer2.indexOf(92))) buffer2[idx] = 47; return buffer2; } async function add({ @@ -19869,12 +19650,10 @@ async function addToIndex({ gitdir, filepath: currentFilepath }); - if (ignored) - return; + if (ignored) return; } const stats = await fs.lstat(join(dir, currentFilepath)); - if (!stats) - throw new NotFoundError(currentFilepath); + if (!stats) throw new NotFoundError(currentFilepath); if (stats.isDirectory()) { const children2 = await fs.readdir(join(dir, currentFilepath)); if (parallel) { @@ -19904,9 +19683,10 @@ async function addToIndex({ } } } else { - const object = stats.isSymbolicLink() ? await fs.readlink(join(dir, currentFilepath)).then(posixifyPathBuffer) : await fs.read(join(dir, currentFilepath)); - if (object === null) - throw new NotFoundError(currentFilepath); + const config = await GitConfigManager.get({ fs, gitdir }); + const autocrlf = await config.get("core.autocrlf"); + const object = stats.isSymbolicLink() ? await fs.readlink(join(dir, currentFilepath)).then(posixifyPathBuffer) : await fs.read(join(dir, currentFilepath), { autocrlf }); + if (object === null) throw new NotFoundError(currentFilepath); const oid = await _writeObject({ fs, gitdir, type: "blob", object }); index2.insert({ filepath: currentFilepath, stats, oid }); } @@ -19922,21 +19702,112 @@ async function addToIndex({ const fulfilledPromises = settledPromises.filter((settle) => settle.status === "fulfilled" && settle.value).map((settle) => settle.value); return fulfilledPromises; } +async function _getConfig({ fs, gitdir, path: path2 }) { + const config = await GitConfigManager.get({ fs, gitdir }); + return config.get(path2); +} +function assignDefined(target, ...sources) { + for (const source of sources) { + if (source) { + for (const key2 of Object.keys(source)) { + const val = source[key2]; + if (val !== void 0) { + target[key2] = val; + } + } + } + } + return target; +} +async function normalizeAuthorObject({ fs, gitdir, author, commit: commit2 }) { + const timestamp = Math.floor(Date.now() / 1e3); + const defaultAuthor = { + name: await _getConfig({ fs, gitdir, path: "user.name" }), + email: await _getConfig({ fs, gitdir, path: "user.email" }) || "", + // author.email is allowed to be empty string + timestamp, + timezoneOffset: new Date(timestamp * 1e3).getTimezoneOffset() + }; + const normalizedAuthor = assignDefined( + {}, + defaultAuthor, + commit2 ? commit2.author : void 0, + author + ); + if (normalizedAuthor.name === void 0) { + return void 0; + } + return normalizedAuthor; +} +async function normalizeCommitterObject({ + fs, + gitdir, + author, + committer, + commit: commit2 +}) { + const timestamp = Math.floor(Date.now() / 1e3); + const defaultCommitter = { + name: await _getConfig({ fs, gitdir, path: "user.name" }), + email: await _getConfig({ fs, gitdir, path: "user.email" }) || "", + // committer.email is allowed to be empty string + timestamp, + timezoneOffset: new Date(timestamp * 1e3).getTimezoneOffset() + }; + const normalizedCommitter = assignDefined( + {}, + defaultCommitter, + commit2 ? commit2.committer : void 0, + author, + committer + ); + if (normalizedCommitter.name === void 0) { + return void 0; + } + return normalizedCommitter; +} +async function resolveCommit({ fs, cache, gitdir, oid }) { + const { type, object } = await _readObject({ fs, cache, gitdir, oid }); + if (type === "tag") { + oid = GitAnnotatedTag.from(object).parse().object; + return resolveCommit({ fs, cache, gitdir, oid }); + } + if (type !== "commit") { + throw new ObjectTypeError(oid, type, "commit"); + } + return { commit: GitCommit.from(object), oid }; +} +async function _readCommit({ fs, cache, gitdir, oid }) { + const { commit: commit2, oid: commitOid } = await resolveCommit({ + fs, + cache, + gitdir, + oid + }); + const result = { + oid: commitOid, + commit: commit2.parse(), + payload: commit2.withoutSignature() + }; + return result; +} async function _commit({ fs, cache, onSign, gitdir, message, - author, - committer, + author: _author, + committer: _committer, signingKey, + amend = false, dryRun = false, noUpdateBranch = false, ref, parent, tree }) { + let initialCommit = false; if (!ref) { ref = await GitRefManager.resolve({ fs, @@ -19945,6 +19816,40 @@ async function _commit({ depth: 2 }); } + let refOid, refCommit; + try { + refOid = await GitRefManager.resolve({ + fs, + gitdir, + ref + }); + refCommit = await _readCommit({ fs, gitdir, oid: refOid, cache: {} }); + } catch (e) { + initialCommit = true; + } + if (amend && initialCommit) { + throw new NoCommitError(ref); + } + const author = !amend ? await normalizeAuthorObject({ fs, gitdir, author: _author }) : await normalizeAuthorObject({ + fs, + gitdir, + author: _author, + commit: refCommit.commit + }); + if (!author) throw new MissingNameError("author"); + const committer = !amend ? await normalizeCommitterObject({ + fs, + gitdir, + author, + committer: _committer + }) : await normalizeCommitterObject({ + fs, + gitdir, + author, + committer: _committer, + commit: refCommit.commit + }); + if (!committer) throw new MissingNameError("committer"); return GitIndexManager.acquire( { fs, gitdir, cache, allowUnmerged: false }, async function(index2) { @@ -19954,16 +19859,10 @@ async function _commit({ tree = await constructTree({ fs, gitdir, inode, dryRun }); } if (!parent) { - try { - parent = [ - await GitRefManager.resolve({ - fs, - gitdir, - ref - }) - ]; - } catch (err) { - parent = []; + if (!amend) { + parent = refOid ? [refOid] : []; + } else { + parent = refCommit.commit.parent; } } else { parent = await Promise.all( @@ -19972,6 +19871,13 @@ async function _commit({ }) ); } + if (!message) { + if (!amend) { + throw new MissingParameterError("message"); + } else { + message = refCommit.commit.message; + } + } let comm = GitCommit.from({ tree, parent, @@ -20186,35 +20092,6 @@ async function _addNote({ }); return commitOid; } -async function _getConfig({ fs, gitdir, path: path2 }) { - const config = await GitConfigManager.get({ fs, gitdir }); - return config.get(path2); -} -async function normalizeAuthorObject({ fs, gitdir, author = {} }) { - let { name, email, timestamp, timezoneOffset } = author; - name = name || await _getConfig({ fs, gitdir, path: "user.name" }); - email = email || await _getConfig({ fs, gitdir, path: "user.email" }) || ""; - if (name === void 0) { - return void 0; - } - timestamp = timestamp != null ? timestamp : Math.floor(Date.now() / 1e3); - timezoneOffset = timezoneOffset != null ? timezoneOffset : new Date(timestamp * 1e3).getTimezoneOffset(); - return { name, email, timestamp, timezoneOffset }; -} -async function normalizeCommitterObject({ - fs, - gitdir, - author, - committer -}) { - committer = Object.assign({}, committer || author); - if (author) { - committer.timestamp = committer.timestamp || author.timestamp; - committer.timezoneOffset = committer.timezoneOffset || author.timezoneOffset; - } - committer = await normalizeAuthorObject({ fs, gitdir, author: committer }); - return committer; -} async function addNote({ fs: _fs, onSign, @@ -20239,16 +20116,14 @@ async function addNote({ } const fs = new FileSystem(_fs); const author = await normalizeAuthorObject({ fs, gitdir, author: _author }); - if (!author) - throw new MissingNameError("author"); + if (!author) throw new MissingNameError("author"); const committer = await normalizeCommitterObject({ fs, gitdir, author, committer: _committer }); - if (!committer) - throw new MissingNameError("committer"); + if (!committer) throw new MissingNameError("committer"); return await _addNote({ fs: new FileSystem(fs), cache, @@ -20377,8 +20252,7 @@ async function annotatedTag({ } const fs = new FileSystem(_fs); const tagger = await normalizeAuthorObject({ fs, gitdir, author: _tagger }); - if (!tagger) - throw new MissingNameError("tagger"); + if (!tagger) throw new MissingNameError("tagger"); return await _annotatedTag({ fs, cache, @@ -20472,6 +20346,7 @@ async function _checkout({ fs, cache, onProgress, + onPostCheckout, dir, gitdir, remote, @@ -20483,12 +20358,19 @@ async function _checkout({ force, track = true }) { + let oldOid; + if (onPostCheckout) { + try { + oldOid = await GitRefManager.resolve({ fs, gitdir, ref: "HEAD" }); + } catch (err) { + oldOid = "0000000000000000000000000000000000000000"; + } + } let oid; try { oid = await GitRefManager.resolve({ fs, gitdir, ref }); } catch (err) { - if (ref === "HEAD") - throw err; + if (ref === "HEAD") throw err; const remoteRef = `${remote}/${ref}`; oid = await GitRefManager.resolve({ fs, @@ -20537,6 +20419,13 @@ async function _checkout({ throw new InternalError(errors.join(", ")); } if (dryRun) { + if (onPostCheckout) { + await onPostCheckout({ + previousHead: oldOid, + newHead: oid, + type: filepaths != null && filepaths.length > 0 ? "file" : "branch" + }); + } return; } let count = 0; @@ -20651,6 +20540,13 @@ async function _checkout({ }) ); }); + if (onPostCheckout) { + await onPostCheckout({ + previousHead: oldOid, + newHead: oid, + type: filepaths != null && filepaths.length > 0 ? "file" : "branch" + }); + } } if (!noUpdateHead) { const fullRef = await GitRefManager.expand({ fs, gitdir, ref }); @@ -20684,8 +20580,7 @@ async function analyze({ gitdir, trees: [TREE({ ref }), WORKDIR(), STAGE()], map: async function(fullpath, [commit2, workdir, stage]) { - if (fullpath === ".") - return; + if (fullpath === ".") return; if (filepaths && !filepaths.some((base) => worthWalking(fullpath, base))) { return null; } @@ -20912,6 +20807,7 @@ async function analyze({ async function checkout({ fs, onProgress, + onPostCheckout, dir, gitdir = join(dir, ".git"), remote = "origin", @@ -20933,6 +20829,7 @@ async function checkout({ fs: new FileSystem(fs), cache, onProgress, + onPostCheckout, dir, gitdir, remote, @@ -20980,8 +20877,7 @@ async function _currentBranch({ return; } } - if (!ref.startsWith("refs/")) - return; + if (!ref.startsWith("refs/")) return; return fullname ? ref : abbreviateRef(ref); } function translateSSHtoHTTP(url) { @@ -20996,13 +20892,10 @@ async function forAwait(iterable, cb) { const iter = getIterator(iterable); while (true) { const { value, done } = await iter.next(); - if (value) - await cb(value); - if (done) - break; + if (value) await cb(value); + if (done) break; } - if (iter.return) - iter.return(); + if (iter.return) iter.return(); } async function collect(iterable) { let size = 0; @@ -21021,8 +20914,7 @@ async function collect(iterable) { } function extractAuthFromUrl(url) { let userpass = url.match(/^https?:\/\/([^/]+)@/); - if (userpass == null) - return { url, auth: {} }; + if (userpass == null) return { url, auth: {} }; userpass = userpass[1]; const [username, password] = userpass.split(":"); url = url.replace(`${userpass}@`, ""); @@ -21052,16 +20944,12 @@ var GitPktLine = class { return async function read() { try { let length = await reader.read(4); - if (length == null) - return true; + if (length == null) return true; length = parseInt(length.toString("utf8"), 16); - if (length === 0) - return null; - if (length === 1) - return null; + if (length === 0) return null; + if (length === 1) return null; const buffer2 = await reader.read(length - 4); - if (buffer2 == null) - return true; + if (buffer2 == null) return true; return buffer2; } catch (err) { stream.error = err; @@ -21075,10 +20963,8 @@ async function parseCapabilitiesV2(read) { let line; while (true) { line = await read(); - if (line === true) - break; - if (line === null) - continue; + if (line === true) break; + if (line === null) continue; line = line.toString("utf8").replace(/\n$/, ""); const i = line.indexOf("="); if (i > -1) { @@ -21097,10 +20983,8 @@ async function parseRefsAdResponse(stream, { service }) { const symrefs = /* @__PURE__ */ new Map(); const read = GitPktLine.streamReader(stream); let lineOne = await read(); - while (lineOne === null) - lineOne = await read(); - if (lineOne === true) - throw new EmptyServerResponseError(); + while (lineOne === null) lineOne = await read(); + if (lineOne === true) throw new EmptyServerResponseError(); if (lineOne.includes("version 2")) { return parseCapabilitiesV2(read); } @@ -21108,25 +20992,24 @@ async function parseRefsAdResponse(stream, { service }) { throw new ParseError(`# service=${service}\\n`, lineOne.toString("utf8")); } let lineTwo = await read(); - while (lineTwo === null) - lineTwo = await read(); - if (lineTwo === true) - return { capabilities, refs, symrefs }; + while (lineTwo === null) lineTwo = await read(); + if (lineTwo === true) return { capabilities, refs, symrefs }; lineTwo = lineTwo.toString("utf8"); if (lineTwo.includes("version 2")) { return parseCapabilitiesV2(read); } const [firstRef, capabilitiesLine] = splitAndAssert(lineTwo, "\0", "\\x00"); capabilitiesLine.split(" ").map((x) => capabilities.add(x)); - const [ref, name] = splitAndAssert(firstRef, " ", " "); - refs.set(name, ref); - while (true) { - const line = await read(); - if (line === true) - break; - if (line !== null) { - const [ref2, name2] = splitAndAssert(line.toString("utf8"), " ", " "); - refs.set(name2, ref2); + if (firstRef !== "0000000000000000000000000000000000000000 capabilities^{}") { + const [ref, name] = splitAndAssert(firstRef, " ", " "); + refs.set(name, ref); + while (true) { + const line = await read(); + if (line === true) break; + if (line !== null) { + const [ref2, name2] = splitAndAssert(line.toString("utf8"), " ", " "); + refs.set(name2, ref2); + } } } for (const cap of capabilities) { @@ -21276,10 +21159,8 @@ var GitRemoteHTTP = class { headers }) { const urlAuth = extractAuthFromUrl(url); - if (urlAuth) - url = urlAuth.url; - if (corsProxy) - url = corsProxify(corsProxy, url); + if (urlAuth) url = urlAuth.url; + if (corsProxy) url = corsProxify(corsProxy, url); headers["content-type"] = `application/x-${service}-request`; headers.accept = `application/x-${service}-result`; updateHeaders(headers, auth); @@ -21305,8 +21186,7 @@ function parseRemoteUrl({ url }) { }; } const matches = url.match(/(\w+)(:\/\/|::)(.*)/); - if (matches === null) - return; + if (matches === null) return; if (matches[2] === "://") { return { transport: matches[1], @@ -21339,36 +21219,32 @@ var GitRemoteManager = class { ); } }; -var lock$1 = null; +var lock$2 = null; var GitShallowManager = class { static async read({ fs, gitdir }) { - if (lock$1 === null) - lock$1 = new import_async_lock.default(); + if (lock$2 === null) lock$2 = new import_async_lock.default(); const filepath = join(gitdir, "shallow"); const oids = /* @__PURE__ */ new Set(); - await lock$1.acquire(filepath, async function() { + await lock$2.acquire(filepath, async function() { const text2 = await fs.read(filepath, { encoding: "utf8" }); - if (text2 === null) - return oids; - if (text2.trim() === "") - return oids; + if (text2 === null) return oids; + if (text2.trim() === "") return oids; text2.trim().split("\n").map((oid) => oids.add(oid)); }); return oids; } static async write({ fs, gitdir, oids }) { - if (lock$1 === null) - lock$1 = new import_async_lock.default(); + if (lock$2 === null) lock$2 = new import_async_lock.default(); const filepath = join(gitdir, "shallow"); if (oids.size > 0) { const text2 = [...oids].join("\n") + "\n"; - await lock$1.acquire(filepath, async function() { + await lock$2.acquire(filepath, async function() { await fs.write(filepath, text2, { encoding: "utf8" }); }); } else { - await lock$1.acquire(filepath, async function() { + await lock$2.acquire(filepath, async function() { await fs.rm(filepath); }); } @@ -21395,8 +21271,7 @@ async function hasObjectPacked({ filename: indexFile, getExternalRefDelta }); - if (p.error) - throw new InternalError(p.error); + if (p.error) throw new InternalError(p.error); if (p.offsets.has(oid)) { return true; } @@ -21439,8 +21314,8 @@ function filterCapabilities(server, client) { } var pkg = { name: "isomorphic-git", - version: "1.25.3", - agent: "git/isomorphic-git@1.25.3" + version: "1.27.1", + agent: "git/isomorphic-git@1.27.1" }; var FIFO = class { constructor() { @@ -21490,14 +21365,10 @@ var FIFO = class { function findSplit(str) { const r = str.indexOf("\r"); const n = str.indexOf("\n"); - if (r === -1 && n === -1) - return -1; - if (r === -1) - return n + 1; - if (n === -1) - return r + 1; - if (n === r + 1) - return n + 1; + if (r === -1 && n === -1) return -1; + if (r === -1) return n + 1; + if (n === -1) return r + 1; + if (n === r + 1) return n + 1; return Math.min(r, n) + 1; } function splitLines(input) { @@ -21509,8 +21380,7 @@ function splitLines(input) { tmp += chunk; while (true) { const i = findSplit(tmp); - if (i === -1) - break; + if (i === -1) break; output.write(tmp.slice(0, i)); tmp = tmp.slice(i); } @@ -21530,8 +21400,7 @@ var GitSideBand = class { const progress = new FIFO(); const nextBit = async function() { const line = await read(); - if (line === null) - return nextBit(); + if (line === null) return nextBit(); if (line === true) { packetlines.end(); progress.end(); @@ -21661,8 +21530,7 @@ async function parseUploadPackResponse(stream) { } else if (line.startsWith("ACK")) { const [, oid, status2] = line.split(" "); acks.push({ oid, status: status2 }); - if (!status2) - done = true; + if (!status2) done = true; } else if (line.startsWith("NAK")) { nak = true; done = true; @@ -21818,8 +21686,7 @@ async function _fetch({ `agent=${pkg.agent}` ] ); - if (relative2) - capabilities.push("deepen-relative"); + if (relative2) capabilities.push("deepen-relative"); const wants = singleBranch ? [oid] : remoteRefs.values(); const haveRefs = singleBranch ? [ref] : await GitRefManager.listRefs({ fs, @@ -21892,8 +21759,7 @@ async function _fetch({ let key2 = fullref; while (bail--) { const value = remoteHTTP.symrefs.get(key2); - if (value === void 0) - break; + if (value === void 0) break; symrefs.set(key2, value); key2 = value; } @@ -21949,8 +21815,7 @@ async function _fetch({ if (onProgress || onMessage) { const lines = splitLines(response.progress); forAwait(lines, async (line) => { - if (onMessage) - await onMessage(line); + if (onMessage) await onMessage(line); if (onProgress) { const matches = line.match(/([^:]*).*\((\d+?)\/(\d+?)\)/); if (matches) { @@ -21964,8 +21829,7 @@ async function _fetch({ }); } const packfile = Buffer.from(await collect(response.packfile)); - if (raw.body.error) - throw raw.body.error; + if (raw.body.error) throw raw.body.error; const packfileSha = packfile.slice(-20).toString("hex"); const res = { defaultBranch: response.HEAD, @@ -21999,8 +21863,7 @@ async function _init({ gitdir = bare ? dir : join(dir, ".git"), defaultBranch = "master" }) { - if (await fs.exists(gitdir + "/config")) - return; + if (await fs.exists(gitdir + "/config")) return; let folders = [ "hooks", "info", @@ -22033,6 +21896,7 @@ async function _clone({ onAuth, onAuthSuccess, onAuthFailure, + onPostCheckout, dir, gitdir, url, @@ -22077,14 +21941,14 @@ async function _clone({ headers, tags: !noTags }); - if (fetchHead === null) - return; + if (fetchHead === null) return; ref = ref || defaultBranch; ref = ref.replace("refs/heads/", ""); await _checkout({ fs, cache, onProgress, + onPostCheckout, dir, gitdir, ref, @@ -22104,6 +21968,7 @@ async function clone({ onAuth, onAuthSuccess, onAuthFailure, + onPostCheckout, dir, gitdir = join(dir, ".git"), url, @@ -22137,6 +22002,7 @@ async function clone({ onAuth, onAuthSuccess, onAuthFailure, + onPostCheckout, dir, gitdir, url, @@ -22163,9 +22029,10 @@ async function commit({ dir, gitdir = join(dir, ".git"), message, - author: _author, - committer: _committer, + author, + committer, signingKey, + amend = false, dryRun = false, noUpdateBranch = false, ref, @@ -22175,22 +22042,13 @@ async function commit({ }) { try { assertParameter("fs", _fs); - assertParameter("message", message); + if (!amend) { + assertParameter("message", message); + } if (signingKey) { assertParameter("onSign", onSign); } const fs = new FileSystem(_fs); - const author = await normalizeAuthorObject({ fs, gitdir, author: _author }); - if (!author) - throw new MissingNameError("author"); - const committer = await normalizeCommitterObject({ - fs, - gitdir, - author, - committer: _committer - }); - if (!committer) - throw new MissingNameError("committer"); return await _commit({ fs, cache, @@ -22200,6 +22058,7 @@ async function commit({ author, committer, signingKey, + amend, dryRun, noUpdateBranch, ref, @@ -22245,6 +22104,10 @@ async function _deleteBranch({ fs, gitdir, ref }) { await GitRefManager.writeRef({ fs, gitdir, ref: "HEAD", value }); } await GitRefManager.deleteRef({ fs, gitdir, ref: fullRef }); + const abbrevRef = abbreviateRef(ref); + const config = await GitConfigManager.get({ fs, gitdir }); + await config.deleteSection("branch", abbrevRef); + await GitConfigManager.save({ fs, gitdir, config }); } async function deleteBranch({ fs, @@ -22340,11 +22203,9 @@ async function expandOidPacked({ filename: indexFile, getExternalRefDelta }); - if (p.error) - throw new InternalError(p.error); + if (p.error) throw new InternalError(p.error); for (const oid of p.offsets.keys()) { - if (oid.startsWith(short)) - results.push(oid); + if (oid.startsWith(short)) results.push(oid); } } return results; @@ -22416,8 +22277,7 @@ async function _findMergeBase({ fs, cache, gitdir, oids }) { while (heads.length) { const result = /* @__PURE__ */ new Set(); for (const { oid, index: index2 } of heads) { - if (!visits[oid]) - visits[oid] = /* @__PURE__ */ new Set(); + if (!visits[oid]) visits[oid] = /* @__PURE__ */ new Set(); visits[oid].add(index2); if (visits[oid].size === passes) { result.add(oid); @@ -22613,10 +22473,8 @@ async function mergeTree({ */ reduce: unmergedFiles.length !== 0 && (!dir || abortOnConflict) ? void 0 : async (parent, children2) => { const entries = children2.filter(Boolean); - if (!parent) - return; - if (parent && parent.type === "tree" && entries.length === 0) - return; + if (!parent) return; + if (parent && parent.type === "tree" && entries.length === 0) return; if (entries.length > 0) { const tree = new GitTree(entries); const object = tree.toObject(); @@ -22801,8 +22659,7 @@ async function _merge({ }); } ); - if (tree instanceof MergeConflictError) - throw tree; + if (tree instanceof MergeConflictError) throw tree; if (!message) { message = `Merge branch '${abbreviateRef(theirs)}' into ${abbreviateRef( ours @@ -23169,8 +23026,7 @@ async function getRemoteInfo({ function formatInfoRefs(remote, prefix, symrefs, peelTags) { const refs = []; for (const [key2, value] of remote.refs) { - if (prefix && !key2.startsWith(prefix)) - continue; + if (prefix && !key2.startsWith(prefix)) continue; if (key2.endsWith("^{}")) { if (peelTags) { const _key = key2.replace("^{}", ""); @@ -23370,8 +23226,7 @@ async function _isDescendent({ if (!ancestor) { throw new MissingParameterError("ancestor"); } - if (oid === ancestor) - return false; + if (oid === ancestor) return false; const queue = [oid]; const visited = /* @__PURE__ */ new Set(); let searchdepth = 0; @@ -23391,8 +23246,7 @@ async function _isDescendent({ } const commit2 = GitCommit.from(object).parse(); for (const parent of commit2.parent) { - if (parent === ancestor) - return true; + if (parent === ancestor) return true; } if (!shallows.has(oid2)) { for (const parent of commit2.parent) { @@ -23610,10 +23464,8 @@ async function parseListRefsResponse(stream) { let line; while (true) { line = await read(); - if (line === true) - break; - if (line === null) - continue; + if (line === true) break; + if (line === null) continue; line = line.toString("utf8").replace(/\n$/, ""); const [oid, ref, ...attrs] = line.split(" "); const r = { ref, oid }; @@ -23637,12 +23489,9 @@ async function writeListRefsRequest({ prefix, symrefs, peelTags }) { if (peelTags || symrefs || prefix) { packstream.push(GitPktLine.delim()); } - if (peelTags) - packstream.push(GitPktLine.encode("peel")); - if (symrefs) - packstream.push(GitPktLine.encode("symrefs")); - if (prefix) - packstream.push(GitPktLine.encode(`ref-prefix ${prefix}`)); + if (peelTags) packstream.push(GitPktLine.encode("peel")); + if (symrefs) packstream.push(GitPktLine.encode("symrefs")); + if (prefix) packstream.push(GitPktLine.encode(`ref-prefix ${prefix}`)); packstream.push(GitPktLine.flush()); return packstream; } @@ -23703,38 +23552,12 @@ async function listTags({ fs, dir, gitdir = join(dir, ".git") }) { throw err; } } -async function resolveCommit({ fs, cache, gitdir, oid }) { - const { type, object } = await _readObject({ fs, cache, gitdir, oid }); - if (type === "tag") { - oid = GitAnnotatedTag.from(object).parse().object; - return resolveCommit({ fs, cache, gitdir, oid }); - } - if (type !== "commit") { - throw new ObjectTypeError(oid, type, "commit"); - } - return { commit: GitCommit.from(object), oid }; -} -async function _readCommit({ fs, cache, gitdir, oid }) { - const { commit: commit2, oid: commitOid } = await resolveCommit({ - fs, - cache, - gitdir, - oid - }); - const result = { - oid: commitOid, - commit: commit2.parse(), - payload: commit2.withoutSignature() - }; - return result; -} function compareAge(a, b) { return a.committer.timestamp - b.committer.timestamp; } var EMPTY_OID = "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"; async function resolveFileIdInTree({ fs, cache, gitdir, oid, fileId }) { - if (fileId === EMPTY_OID) - return; + if (fileId === EMPTY_OID) return; const _oid = oid; let filepath; const result = await resolveTree({ fs, cache, gitdir, oid }); @@ -23751,10 +23574,8 @@ async function resolveFileIdInTree({ fs, cache, gitdir, oid, fileId }) { oid: _oid }); if (Array.isArray(filepath)) { - if (filepath.length === 0) - filepath = void 0; - else if (filepath.length === 1) - filepath = filepath[0]; + if (filepath.length === 0) filepath = void 0; + else if (filepath.length === 1) filepath = filepath[0]; } } return filepath; @@ -23818,8 +23639,7 @@ async function _log({ let lastCommit; let isOk; function endCommit(commit2) { - if (isOk && filepath) - commits.push(commit2); + if (isOk && filepath) commits.push(commit2); } while (tips.length > 0) { const commit2 = tips.pop(); @@ -23868,36 +23688,30 @@ async function _log({ if (found.length === 1) { found = found[0]; filepath = found; - if (lastCommit) - commits.push(lastCommit); + if (lastCommit) commits.push(lastCommit); } else { found = false; - if (lastCommit) - commits.push(lastCommit); + if (lastCommit) commits.push(lastCommit); break; } } } } else { filepath = found; - if (lastCommit) - commits.push(lastCommit); + if (lastCommit) commits.push(lastCommit); } } } if (!found) { if (isOk && lastFileOid) { commits.push(lastCommit); - if (!force) - break; + if (!force) break; } - if (!force && !follow) - throw e; + if (!force && !follow) throw e; } lastCommit = commit2; isOk = false; - } else - throw e; + } else throw e; } } else { commits.push(commit2); @@ -24134,16 +23948,14 @@ async function pull({ assertParameter("gitdir", gitdir); const fs = new FileSystem(_fs); const author = await normalizeAuthorObject({ fs, gitdir, author: _author }); - if (!author) - throw new MissingNameError("author"); + if (!author) throw new MissingNameError("author"); const committer = await normalizeCommitterObject({ fs, gitdir, author, committer: _committer }); - if (!committer) - throw new MissingNameError("committer"); + if (!committer) throw new MissingNameError("committer"); return await _pull({ fs, cache, @@ -24232,8 +24044,7 @@ async function listObjects({ }) { const visited = /* @__PURE__ */ new Set(); async function walk2(oid) { - if (visited.has(oid)) - return; + if (visited.has(oid)) return; visited.add(oid); const { type, object } = await _readObject({ fs, cache, gitdir, oid }); if (type === "tag") { @@ -24267,8 +24078,7 @@ async function parseReceivePackResponse(packfile) { const read = GitPktLine.streamReader(packfile); let line = await read(); while (line !== true) { - if (line !== null) - response += line.toString("utf8") + "\n"; + if (line !== null) response += line.toString("utf8") + "\n"; line = await read(); } const lines = response.toString("utf8").split("\n"); @@ -24282,13 +24092,11 @@ async function parseReceivePackResponse(packfile) { } result.refs = {}; for (const line2 of lines) { - if (line2.trim() === "") - continue; + if (line2.trim() === "") continue; const status2 = line2.slice(0, 2); const refAndMessage = line2.slice(3); let space2 = refAndMessage.indexOf(" "); - if (space2 === -1) - space2 = refAndMessage.length; + if (space2 === -1) space2 = refAndMessage.length; const ref = refAndMessage.slice(0, space2); const error = refAndMessage.slice(space2 + 1); result.refs[ref] = { @@ -24325,6 +24133,7 @@ async function _push({ onAuth, onAuthSuccess, onAuthFailure, + onPrePush, gitdir, ref: _ref, remoteRef: _remoteRef, @@ -24385,6 +24194,15 @@ async function _push({ } } const oldoid = httpRemote.refs.get(fullRemoteRef) || "0000000000000000000000000000000000000000"; + if (onPrePush) { + const hookCancel = await onPrePush({ + remote, + url, + localRef: { ref: _delete ? "(delete)" : fullRef, oid }, + remoteRef: { ref: fullRemoteRef, oid: oldoid } + }); + if (!hookCancel) throw new UserCanceledError(); + } const thinPack = !httpRemote.capabilities.has("no-thin"); let objects = /* @__PURE__ */ new Set(); if (!_delete) { @@ -24397,8 +24215,7 @@ async function _push({ gitdir, oids: [oid, oldoid] }); - for (const oid2 of mergebase) - finish.push(oid2); + for (const oid2 of mergebase) finish.push(oid2); if (thinPack) { skipObjects = await listObjects({ fs, cache, gitdir, oids: mergebase }); } @@ -24436,8 +24253,7 @@ async function _push({ objects.delete(oid2); } } - if (oid === oldoid) - force = true; + if (oid === oldoid) force = true; if (!force) { if (fullRef.startsWith("refs/tags") && oldoid !== "0000000000000000000000000000000000000000") { throw new PushRejectedError("tag-exists"); @@ -24489,7 +24305,7 @@ async function _push({ if (res.headers) { result.headers = res.headers; } - if (remote && result.ok && result.refs[fullRemoteRef].ok) { + if (remote && result.ok && result.refs[fullRemoteRef].ok && !fullRef.startsWith("refs/tags")) { const ref2 = `refs/remotes/${remote}/${fullRemoteRef.replace( "refs/heads", "" @@ -24516,6 +24332,7 @@ async function push({ onAuth, onAuthSuccess, onAuthFailure, + onPrePush, dir, gitdir = join(dir, ".git"), ref, @@ -24541,6 +24358,7 @@ async function push({ onAuth, onAuthSuccess, onAuthFailure, + onPrePush, gitdir, ref, remoteRef, @@ -24894,16 +24712,14 @@ async function removeNote({ assertParameter("oid", oid); const fs = new FileSystem(_fs); const author = await normalizeAuthorObject({ fs, gitdir, author: _author }); - if (!author) - throw new MissingNameError("author"); + if (!author) throw new MissingNameError("author"); const committer = await normalizeCommitterObject({ fs, gitdir, author, committer: _committer }); - if (!committer) - throw new MissingNameError("committer"); + if (!committer) throw new MissingNameError("committer"); return await _removeNote({ fs, cache, @@ -25138,8 +24954,7 @@ async function status({ { fs, gitdir, cache }, async function(index2) { for (const entry of index2) { - if (entry.path === filepath) - return entry; + if (entry.path === filepath) return entry; } return null; } @@ -25168,18 +24983,14 @@ async function status({ return workdirOid; } }; - if (!H && !W && !I) - return "absent"; - if (!H && !W && I) - return "*absent"; - if (!H && W && !I) - return "*added"; + if (!H && !W && !I) return "absent"; + if (!H && !W && I) return "*absent"; + if (!H && W && !I) return "*added"; if (!H && W && I) { const workdirOid = await getWorkdirOid(); return workdirOid === indexEntry.oid ? "added" : "*added"; } - if (H && !W && !I) - return "deleted"; + if (H && !W && !I) return "deleted"; if (H && !W && I) { return treeOid === indexEntry.oid ? "*deleted" : "*deleted"; } @@ -25201,8 +25012,7 @@ async function status({ } } async function getOidAtPath({ fs, cache, gitdir, tree, path: path2 }) { - if (typeof path2 === "string") - path2 = path2.split("/"); + if (typeof path2 === "string") path2 = path2.split("/"); const dirname3 = path2.shift(); for (const entry of tree) { if (entry.path === dirname3) { @@ -25276,8 +25086,7 @@ async function statusMatrix({ return null; } if (filter) { - if (!filter(filepath)) - return; + if (!filter(filepath)) return; } const [headType, workdirType, stageType] = await Promise.all([ head && head.type(), @@ -25285,16 +25094,12 @@ async function statusMatrix({ stage && stage.type() ]); const isBlob = [headType, workdirType, stageType].includes("blob"); - if ((headType === "tree" || headType === "special") && !isBlob) - return; - if (headType === "commit") - return null; + if ((headType === "tree" || headType === "special") && !isBlob) return; + if (headType === "commit") return null; if ((workdirType === "tree" || workdirType === "special") && !isBlob) return; - if (stageType === "commit") - return null; - if ((stageType === "tree" || stageType === "special") && !isBlob) - return; + if (stageType === "commit") return null; + if ((stageType === "tree" || stageType === "special") && !isBlob) return; const headOid = headType === "blob" ? await head.oid() : void 0; const stageOid = stageType === "blob" ? await stage.oid() : void 0; let workdirOid; @@ -29686,6 +29491,16 @@ function getNewLeaf(event) { } return leaf; } +function mayTriggerFileMenu(app2, event, filePath, view, source) { + if (event.button == 2) { + const file = app2.vault.getAbstractFileByPath(filePath); + if (file != null) { + const fileMenu = new import_obsidian3.Menu(); + app2.workspace.trigger("file-menu", fileMenu, file, source, view); + fileMenu.showAtPosition({ x: event.pageX, y: event.pageY }); + } + } +} function impossibleBranch(x) { throw new Error("Impossible branch: " + x); } @@ -29705,8 +29520,7 @@ function momentToEpochSeconds(instant) { return instant.diff(import_obsidian3.moment.unix(0), "seconds"); } function median(array) { - if (array.length === 0) - return void 0; + if (array.length === 0) return void 0; return array.slice().sort()[Math.floor(array.length / 2)]; } function strictDeepEqual(a, b) { @@ -29721,8 +29535,7 @@ function resizeToLength(original, desiredLength, fillChar) { } } function prefixOfLengthAsWhitespace(toBeRenderedText, whitespacePrefixLength) { - if (whitespacePrefixLength <= 0) - return toBeRenderedText; + if (whitespacePrefixLength <= 0) return toBeRenderedText; const whitespacePrefix = new Array(whitespacePrefixLength).fill(" ").join(""); const originalSuffix = toBeRenderedText.substring( whitespacePrefixLength, @@ -29738,13 +29551,11 @@ function splitRemoteBranch(remoteBranch) { return [remote, branch2.length === 0 ? void 0 : branch2.join("/")]; } function getDisplayPath(path2) { - if (path2.endsWith("/")) - return path2; + if (path2.endsWith("/")) return path2; return path2.split("/").last().replace(".md", ""); } function formatMinutes(minutes) { - if (minutes === 1) - return "1 minute"; + if (minutes === 1) return "1 minute"; return `${minutes} minutes`; } @@ -30056,8 +29867,7 @@ var SimpleGit = class extends GitManager { //Remove wrong `"` like "My file.md" formatPath(path2, renamed = false) { function format(path3) { - if (path3 == void 0) - return void 0; + if (path3 == void 0) return void 0; if (path3.startsWith('"') && path3.endsWith('"')) { return path3.substring(1, path3.length - 1); } else { @@ -30077,14 +29887,12 @@ var SimpleGit = class extends GitManager { } async blame(path2, trackMovement, ignoreWhitespace) { path2 = this.getRelativeRepoPath(path2); - if (!await this.isTracked(path2)) - return "untracked"; + if (!await this.isTracked(path2)) return "untracked"; const inSubmodule = await this.getSubmoduleOfFile(path2); const args = inSubmodule ? ["-C", inSubmodule.submodule] : []; const relativePath = inSubmodule ? inSubmodule.relativeFilepath : path2; args.push("blame", "--porcelain"); - if (ignoreWhitespace) - args.push("-w"); + if (ignoreWhitespace) args.push("-w"); const trackCArg = `-C${GIT_LINE_AUTHORING_MOVEMENT_DETECTION_MINIMAL_LENGTH}`; switch (trackMovement) { case "inactive": @@ -30530,10 +30338,8 @@ var SimpleGit = class extends GitManager { async getDiffString(filePath, stagedChanges = false, hash2) { if (stagedChanges) return await this.git.diff(["--cached", "--", filePath]); - if (hash2) - return await this.git.show([`${hash2}`, "--", filePath]); - else - return await this.git.diff(["--", filePath]); + if (hash2) return await this.git.show([`${hash2}`, "--", filePath]); + else return await this.git.diff(["--", filePath]); } async diff(file, commit1, commit2) { return await this.git.diff([`${commit1}..${commit2}`, "--", file]); @@ -30757,8 +30563,7 @@ var EventsPerFilePath = class { * Run the {@link handler} on the subscribers to {@link filepath}. */ ifFilepathDefinedTransformSubscribers(filepath, handler) { - if (!filepath) - return; + if (!filepath) return; this.ensureInitialized(filepath); return handler(this.eventsPerFilepath.get(filepath)); } @@ -31083,31 +30888,22 @@ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) - return _arrayLikeToArray(arr); + if (Array.isArray(arr)) return _arrayLikeToArray(arr); } function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) - return Array.from(iter); + if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } function _unsupportedIterableToArray(o, minLen) { - if (!o) - return; - if (typeof o === "string") - return _arrayLikeToArray(o, minLen); + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) - n = o.constructor.name; - if (n === "Map" || n === "Set") - return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) - return _arrayLikeToArray(o, minLen); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) - len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) - arr2[i] = arr[i]; + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _nonIterableSpread() { @@ -31338,19 +31134,15 @@ var GeneralModal = class extends import_obsidian5.SuggestModal { selectSuggestion(value, evt) { if (this.resolve) { let res; - if (this.config.allowEmpty && value === " ") - res = ""; - else if (value === "...") - res = void 0; - else - res = value; + if (this.config.allowEmpty && value === " ") res = ""; + else if (value === "...") res = void 0; + else res = value; this.resolve(res); } super.selectSuggestion(value, evt); } onClose() { - if (this.resolve) - this.resolve(void 0); + if (this.resolve) this.resolve(void 0); } getSuggestions(query) { if (this.config.onlySelection) { @@ -31442,8 +31234,7 @@ var MyAdapter = class { } } async readdir(path2) { - if (path2 === ".") - path2 = "/"; + if (path2 === ".") path2 = "/"; const res = await this.adapter.list(path2); const all = [...res.files, ...res.folders]; let formattedAll; @@ -31493,8 +31284,7 @@ var MyAdapter = class { }; } } - if (path2 === ".") - path2 = "/"; + if (path2 === ".") path2 = "/"; const file = this.vault.getAbstractFileByPath(path2); this.maybeLog("Stat: " + path2); if (file instanceof import_obsidian6.TFile) { @@ -32346,8 +32136,7 @@ var IsomorphicGit = class extends GitManager { ); if ((workdirType === "tree" || workdirType === "special") && !isBlob) return; - if (stageType === "commit") - return null; + if (stageType === "commit") return null; if ((stageType === "tree" || stageType === "special") && !isBlob) return; const stageOid = stageType === "blob" ? await stage.oid() : void 0; @@ -32526,13 +32315,10 @@ async function forAwait2(iterable, cb) { const iter = getIterator2(iterable); while (true) { const { value, done } = await iter.next(); - if (value) - await cb(value); - if (done) - break; + if (value) await cb(value); + if (done) break; } - if (iter.return) - iter.return(); + if (iter.return) iter.return(); } async function collect2(iterable) { let size = 0; @@ -32554,11 +32340,11 @@ async function collect2(iterable) { var FORMAT_STRING_REFERENCE_URL = "https://momentjs.com/docs/#/parsing/string-format/"; var LINE_AUTHOR_FEATURE_WIKI_LINK = "https://publish.obsidian.md/git-doc/Line+Authoring"; var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { - constructor() { - super(...arguments); + constructor(app2, plugin) { + super(app2, plugin); + this.plugin = plugin; this.lineAuthorColorSettings = /* @__PURE__ */ new Map(); } - // narrow type from PluginSettingTab.plugin get settings() { return this.plugin.settings; } @@ -32568,15 +32354,14 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { const commitOrBackup = plugin.settings.differentIntervalCommitAndPush ? "commit" : "backup"; const gitReady = plugin.gitReady; containerEl.empty(); - containerEl.createEl("h2", { text: "Git Backup settings" }); if (!gitReady) { containerEl.createEl("p", { text: "Git is not ready. When all settings are correct you can configure auto backup, etc." }); + containerEl.createEl("br"); } if (gitReady) { - containerEl.createEl("br"); - containerEl.createEl("h3", { text: "Automatic" }); + new import_obsidian8.Setting(containerEl).setName("Automatic").setHeading(); new import_obsidian8.Setting(containerEl).setName("Split automatic commit and push").setDesc("Enable to use separate timer for commit and push").addToggle( (toggle) => toggle.setValue( plugin.settings.differentIntervalCommitAndPush @@ -32727,8 +32512,7 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { plugin.saveSettings(); }) ); - containerEl.createEl("br"); - containerEl.createEl("h3", { text: "Commit message" }); + new import_obsidian8.Setting(containerEl).setName("Commit message").setHeading(); new import_obsidian8.Setting(containerEl).setName("Commit message on manual backup/commit").setDesc( "Available placeholders: {{date}} (see below), {{hostname}} (see below), {{numFiles}} (number of changed files in the commit) and {{files}} (changed files in commit message)" ).addTextArea( @@ -32769,8 +32553,7 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { plugin.saveSettings(); }) ); - containerEl.createEl("br"); - containerEl.createEl("h3", { text: "Backup" }); + new import_obsidian8.Setting(containerEl).setName("Backup").setHeading(); if (plugin.gitManager instanceof SimpleGit) new import_obsidian8.Setting(containerEl).setName("Sync Method").setDesc( "Selects the method used for handling new changes found in your remote git repository." @@ -32806,13 +32589,11 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { }) ); if (plugin.gitManager instanceof SimpleGit) { - containerEl.createEl("br"); - containerEl.createEl("h3", { text: "Line author information" }); + new import_obsidian8.Setting(containerEl).setName("Line author information").setHeading(); this.addLineAuthorInfoSettings(); } } - containerEl.createEl("br"); - containerEl.createEl("h3", { text: "History View" }); + new import_obsidian8.Setting(containerEl).setName("History view").setHeading(); new import_obsidian8.Setting(containerEl).setName("Show Author").setDesc("Show the author of the commit in the history view").addDropdown((dropdown) => { const options = { hide: "Hide", @@ -32836,10 +32617,9 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { plugin.refresh(); }) ); - containerEl.createEl("br"); - containerEl.createEl("h3", { text: "Source Control View" }); + new import_obsidian8.Setting(containerEl).setName("Source control view").setHeading(); new import_obsidian8.Setting(containerEl).setName( - "Automatically refresh Source Control View on file changes" + "Automatically refresh source control view on file changes" ).setDesc( "On slower machines this may cause lags. If so, just disable this option" ).addToggle( @@ -32848,7 +32628,7 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { plugin.saveSettings(); }) ); - new import_obsidian8.Setting(containerEl).setName("Source Control View refresh interval").setDesc( + new import_obsidian8.Setting(containerEl).setName("Source control view refresh interval").setDesc( "Milliseconds to wait after file change before refreshing the Source Control View" ).addText( (toggle) => toggle.setValue( @@ -32862,8 +32642,7 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { plugin.setRefreshDebouncer(); }) ); - containerEl.createEl("br"); - containerEl.createEl("h3", { text: "Miscellaneous" }); + new import_obsidian8.Setting(containerEl).setName("Miscellaneous").setHeading(); new import_obsidian8.Setting(containerEl).setName("Disable notifications").setDesc( "Disable notifications for git operations to minimize distraction (refer to status bar for updates). Errors are still shown as notifications even if you enable this setting" ).addToggle( @@ -32910,13 +32689,10 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { plugin.saveSettings(); }) ); - containerEl.createEl("br"); if (plugin.gitManager instanceof IsomorphicGit) { - containerEl.createEl("h3", { - text: "Authentication/Commit Author" - }); + new import_obsidian8.Setting(containerEl).setName("Authentication/commit author").setHeading(); } else { - containerEl.createEl("h3", { text: "Commit Author" }); + new import_obsidian8.Setting(containerEl).setName("Commit author").setHeading(); } if (plugin.gitManager instanceof IsomorphicGit) new import_obsidian8.Setting(containerEl).setName( @@ -32961,8 +32737,7 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { ); }); }); - containerEl.createEl("br"); - containerEl.createEl("h3", { text: "Advanced" }); + new import_obsidian8.Setting(containerEl).setName("Advanced").setHeading(); if (plugin.gitManager instanceof SimpleGit) { new import_obsidian8.Setting(containerEl).setName("Update submodules").setDesc( '"Create backup" and "pull" takes care of submodules. Missing features: Conflicted files, count of pulled/pushed/committed files. Tracking branch needs to be set for each submodule' @@ -33081,10 +32856,8 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { configureLineAuthorShowStatus(show) { this.settings.lineAuthor.show = show; this.plugin.saveSettings(); - if (show) - this.plugin.lineAuthoringFeature.activateFeature(); - else - this.plugin.lineAuthoringFeature.deactivateFeature(); + if (show) this.plugin.lineAuthoringFeature.activateFeature(); + else this.plugin.lineAuthoringFeature.deactivateFeature(); } /** * Persists the setting {@link key} with value {@link value} and @@ -33410,8 +33183,7 @@ var lineAuthorState = import_state.StateField.define({ function laStateDigest(laState) { var _a2; const digest = import_js_sha256.sha256.create(); - if (!laState) - return digest; + if (!laState) return digest; const { la, key: key2, lineOffsetsFromUnsavedChanges } = laState; digest.update(la === "untracked" ? "t" : "f"); digest.update(key2); @@ -33434,8 +33206,7 @@ function maxAgeInDaysFromSettings(settings) { ).asDays(); } function enrichUnsavedChanges(tr, prev) { - if (!prev) - return void 0; + if (!prev) return void 0; if (!tr.changes.empty) { tr.changes.iterChanges((fromA, toA, fromB, toB) => { var _a2; @@ -33451,8 +33222,7 @@ function enrichUnsavedChanges(tr, prev) { let offset = (_a2 = prev.lineOffsetsFromUnsavedChanges.get(afterI)) != null ? _a2 : 0; const isLastLine = afterTo === afterI; const changeInNumberOfLines = afterLen - beforeLen; - if (isLastLine) - offset += changeInNumberOfLines; + if (isLastLine) offset += changeInNumberOfLines; prev.lineOffsetsFromUnsavedChanges.set(afterI, offset); } }); @@ -33493,8 +33263,7 @@ var LineAuthoringSubscriber = class { } } subscribeMe() { - if (this.filepath === void 0) - return; + if (this.filepath === void 0) return; eventsPerFilePathSingleton.ifFilepathDefinedTransformSubscribers( this.filepath, (subs) => subs.add(this) @@ -33536,8 +33305,7 @@ var getLongestRenderedGutter = () => longestRenderedGutter; function conditionallyUpdateLongestRenderedGutter(gutter2, text2) { var _a2; const length = text2.length; - if (length < ((_a2 = longestRenderedGutter == null ? void 0 : longestRenderedGutter.length) != null ? _a2 : 0)) - return; + if (length < ((_a2 = longestRenderedGutter == null ? void 0 : longestRenderedGutter.length) != null ? _a2 : 0)) return; longestRenderedGutter = { gutter: gutter2, length, text: text2 }; const settings = latestSettings.get(); if (length !== settings.gutterSpacingFallbackLength) { @@ -33586,8 +33354,7 @@ function prepareGutterSearchForContextMenuHandling() { } function findGutterElementUnderMouse() { for (const elt of attachedGutterElements) { - if (contains(elt, mouseXY)) - return elt; + if (contains(elt, mouseXY)) return elt; } } function contains(elt, pt) { @@ -33602,14 +33369,11 @@ var pluginRef = {}; // src/lineAuthor/view/contextMenu.ts var COMMIT_ATTR = "data-commit"; function handleContextMenu(menu, editor, _mdv) { - if (editor.hasFocus()) - return; + if (editor.hasFocus()) return; const gutterElement = findGutterElementUnderMouse(); - if (!gutterElement) - return; + if (!gutterElement) return; const info = getCommitInfo(gutterElement); - if (!info) - return; + if (!info) return; if (!info.isZeroCommit && !info.isWaitingGutter) { addCopyHashMenuItem(info, menu); } @@ -33750,8 +33514,7 @@ var TextGutter = class extends import_view.GutterMarker { return document.createTextNode(this.text); } destroy(dom) { - if (!document.body.contains(dom)) - dom.remove(); + if (!document.body.contains(dom)) dom.remove(); } }; var LineAuthoringGutter = class extends import_view.GutterMarker { @@ -33841,8 +33604,7 @@ var LineAuthoringGutter = class extends import_view.GutterMarker { function prepareForDomAttachment() { const elt = templateElt.cloneNode(true); attachedGutterElements.add(elt); - if (!isWaitingGutter) - recordRenderedAgeInDays(daysSinceCommit); + if (!isWaitingGutter) recordRenderedAgeInDays(daysSinceCommit); return elt; } return prepareForDomAttachment; @@ -33979,8 +33741,7 @@ function lineAuthoringGutterMarker(la, startLine, endLine, key2, settings, optio digest.update(`s${startLine}-e${endLine}-k${key2}-o${options}`); const cacheKey = digest.hex(); const cached = gutterInstances.get(cacheKey); - if (cached) - return cached; + if (cached) return cached; const result = new LineAuthoringGutter( la, startLine, @@ -34092,16 +33853,14 @@ function lineAuthoringGutterMarkersRangeSet(view, optLA) { digest.update("s" + Object.values(latestSettings).join(",")); const cacheKey = digest.hex(); const cached = gutterMarkersRangeSet.get(cacheKey); - if (cached) - return cached; + if (cached) return cached; const { result, allowCache } = computeLineAuthoringGutterMarkersRangeSet( doc, lineBlockEndPos, laSettings, optLA ); - if (allowCache) - gutterMarkersRangeSet.set(cacheKey, result); + if (allowCache) gutterMarkersRangeSet.set(cacheKey, result); return result; } function computeLineAuthoringGutterMarkersRangeSet(doc, blocksPerLine, settings, optLA) { @@ -34199,8 +33958,7 @@ function temporaryWorkaroundGutterSpacingForRenderedLineAuthoring(view) { ".cm-gutters" ); guttersContainers.forEach((cont) => { - if (!(cont == null ? void 0 : cont.style)) - return; + if (!(cont == null ? void 0 : cont.style)) return; if (!cont.style.marginLeft) { cont.style.marginLeft = "unset"; } @@ -34225,8 +33983,7 @@ var LineAuthorProvider = class { }); } async trackChangedHelper(file) { - if (!file) - return; + if (!file) return; if (file.path === void 0) { console.warn( "Git: Attempted to track change of undefined filepath. Unforeseen situation." @@ -34290,8 +34047,7 @@ var LineAuthoringFeature = class { ); return; } - if (file === void 0 || (obsView == null ? void 0 : obsView.allowNoFile) === true) - return; + if (file === void 0 || (obsView == null ? void 0 : obsView.allowNoFile) === true) return; this.lineAuthorInfoProvider.trackChanged(file); }; } @@ -34313,8 +34069,7 @@ var LineAuthoringFeature = class { } activateFeature() { try { - if (!this.isAvailableOnCurrentPlatform().available) - return; + if (!this.isAvailableOnCurrentPlatform().available) return; setTextColorCssBasedOnSetting(this.plg.settings.lineAuthor); this.lineAuthorInfoProvider = new LineAuthorProvider(this.plg); this.createEventHandlers(); @@ -34593,8 +34348,7 @@ var ChangedFilesModal = class extends import_obsidian14.FuzzySuggestModal { let index2 = ""; if (item.working_dir != " ") working_dir = `Working Dir: ${item.working_dir} `; - if (item.index != " ") - index2 = `Index: ${item.index}`; + if (item.index != " ") index2 = `Index: ${item.index}`; return `${working_dir}${index2} | ${item.vault_path}`; } onChooseItem(item, _) { @@ -34629,18 +34383,15 @@ var CustomMessageModal = class extends import_obsidian15.SuggestModal { }); } onClose() { - if (this.resolve) - this.resolve(void 0); + if (this.resolve) this.resolve(void 0); } selectSuggestion(value, evt) { - if (this.resolve) - this.resolve(value); + if (this.resolve) this.resolve(value); super.selectSuggestion(value, evt); } getSuggestions(query) { const date = window.moment().format(this.plugin.settings.commitDateFormat); - if (query == "") - query = "..."; + if (query == "") query = "..."; return [query, `${date}: ${query}`, `${query}: ${date}`]; } renderSuggestion(value, el) { @@ -34654,23 +34405,22 @@ var CustomMessageModal = class extends import_obsidian15.SuggestModal { init_polyfill_buffer(); var import_obsidian16 = require("obsidian"); async function openLineInGitHub(editor, file, manager) { - const data = await getData(manager); + const data = await getData(file, manager); if (data.result === "failure") { new import_obsidian16.Notice(data.reason); return; } - const { isGitHub, branch: branch2, repo, user } = data; + const { isGitHub, branch: branch2, repo, user, filePath } = data; if (isGitHub) { - const path2 = manager.getRelativeRepoPath(file.path); const from = editor.getCursor("from").line + 1; const to = editor.getCursor("to").line + 1; if (from === to) { window.open( - `https://github.com/${user}/${repo}/blob/${branch2}/${path2}?plain=1#L${from}` + `https://github.com/${user}/${repo}/blob/${branch2}/${filePath}?plain=1#L${from}` ); } else { window.open( - `https://github.com/${user}/${repo}/blob/${branch2}/${path2}?plain=1#L${from}-L${to}` + `https://github.com/${user}/${repo}/blob/${branch2}/${filePath}?plain=1#L${from}-L${to}` ); } } else { @@ -34678,25 +34428,58 @@ async function openLineInGitHub(editor, file, manager) { } } async function openHistoryInGitHub(file, manager) { - const data = await getData(manager); + const data = await getData(file, manager); if (data.result === "failure") { new import_obsidian16.Notice(data.reason); return; } - const { isGitHub, branch: branch2, repo, user } = data; - const path2 = manager.getRelativeRepoPath(file.path); + const { isGitHub, branch: branch2, repo, user, filePath } = data; if (isGitHub) { window.open( - `https://github.com/${user}/${repo}/commits/${branch2}/${path2}` + `https://github.com/${user}/${repo}/commits/${branch2}/${filePath}` ); } else { new import_obsidian16.Notice("It seems like you are not using GitHub"); } } -async function getData(manager) { +async function getData(file, manager) { const branchInfo = await manager.branchInfo(); - const remoteBranch = branchInfo.tracking; - const branch2 = branchInfo.current; + let remoteBranch = branchInfo.tracking; + let branch2 = branchInfo.current; + let remoteUrl = void 0; + let filePath = manager.getRelativeRepoPath(file.path); + if (manager instanceof SimpleGit) { + const submodule = await manager.getSubmoduleOfFile( + manager.getRelativeRepoPath(file.path) + ); + if (submodule) { + filePath = submodule.relativeFilepath; + const status2 = await manager.git.cwd({ + path: submodule.submodule, + root: false + }).status(); + remoteBranch = status2.tracking || void 0; + branch2 = status2.current || void 0; + if (remoteBranch) { + const remote = remoteBranch.substring( + 0, + remoteBranch.indexOf("/") + ); + const config = await manager.git.cwd({ + path: submodule.submodule, + root: false + }).getConfig(`remote.${remote}.url`, "local"); + if (config.value != null) { + remoteUrl = config.value; + } else { + return { + result: "failure", + reason: "Failed to get remote url of submodule" + }; + } + } + } + } if (remoteBranch == null) { return { result: "failure", @@ -34709,20 +34492,35 @@ async function getData(manager) { reason: "Failed to get current branch name" }; } - const remote = remoteBranch.substring(0, remoteBranch.indexOf("/")); - const remoteUrl = await manager.getConfig( - `remote.${remote}.url` + if (remoteUrl == null) { + const remote = remoteBranch.substring(0, remoteBranch.indexOf("/")); + remoteUrl = await manager.getConfig(`remote.${remote}.url`); + if (remoteUrl == null) { + return { + result: "failure", + reason: "Failed to get remote url" + }; + } + } + const res = remoteUrl.match( + /(?:^https:\/\/github\.com\/(.+)\/(.+?)(?:\.git)?$)|(?:^[a-zA-Z]+@github\.com:(.+)\/(.+?)(?:\.git)?$)/ ); - const [isGitHub, httpsUser, httpsRepo, sshUser, sshRepo] = remoteUrl.match( - /(?:^https:\/\/github\.com\/(.*)\/(.*)\.git$)|(?:^[a-zA-Z]+@github\.com:(.*)\/(.*)\.git$)/ - ); - return { - result: "success", - isGitHub: !!isGitHub, - repo: httpsRepo || sshRepo, - user: httpsUser || sshUser, - branch: branch2 - }; + if (res == null) { + return { + result: "failure", + reason: "Could not parse remote url" + }; + } else { + const [isGitHub, httpsUser, httpsRepo, sshUser, sshRepo] = res; + return { + result: "success", + isGitHub: !!isGitHub, + repo: httpsRepo || sshRepo, + user: httpsUser || sshUser, + branch: branch2, + filePath + }; + } } // src/setting/localStorageSettings.ts @@ -34831,13 +34629,13 @@ var LocalStorageSettings = class { // src/ui/diff/diffView.ts init_polyfill_buffer(); -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/diff2html.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/diff2html.js init_polyfill_buffer(); -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/diff-parser.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/diff-parser.js init_polyfill_buffer(); -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/types.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/types.js init_polyfill_buffer(); var LineType; (function(LineType2) { @@ -34865,7 +34663,7 @@ var ColorSchemeType; ColorSchemeType2["LIGHT"] = "light"; })(ColorSchemeType || (ColorSchemeType = {})); -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/utils.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/utils.js init_polyfill_buffer(); var specials = [ "-", @@ -34903,7 +34701,7 @@ function hashCode(text2) { return hash2; } -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/diff-parser.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/diff-parser.js function getExtension(filename, language) { const filenameParts = filename.split("."); return filenameParts.length > 1 ? filenameParts[filenameParts.length - 1] : language; @@ -35194,10 +34992,10 @@ function parse(diffInput, config = {}) { return files; } -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/file-list-renderer.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/file-list-renderer.js init_polyfill_buffer(); -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/render-utils.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/render-utils.js init_polyfill_buffer(); // node_modules/.pnpm/diff@5.1.0/node_modules/diff/lib/index.mjs @@ -35531,7 +35329,7 @@ arrayDiff2.join = arrayDiff2.removeEmpty = function(value) { return value; }; -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/rematch.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/rematch.js init_polyfill_buffer(); function levenshtein(a, b) { if (a.length === 0) { @@ -35616,7 +35414,7 @@ function newMatcherFn(distance2) { return group; } -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/render-utils.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/render-utils.js var CSSLineClass = { INSERTS: "d2h-ins", DELETES: "d2h-del", @@ -35794,7 +35592,7 @@ function diffHighlight(diffLine1, diffLine2, isCombined, config = {}) { }; } -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/file-list-renderer.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/file-list-renderer.js var baseTemplatesPath = "file-summary"; var iconsBaseTemplatesPath = "icon"; var defaultFileListRendererConfig = { @@ -35824,7 +35622,7 @@ var FileListRenderer = class { } }; -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/line-by-line-renderer.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/line-by-line-renderer.js init_polyfill_buffer(); var defaultLineByLineRendererConfig = Object.assign(Object.assign({}, defaultRenderConfig), { renderNothingWhenEmpty: false, matchingMaxComparisons: 2500, maxLineSizeInBlockForComparison: 200 }); var genericTemplatesPath = "generic"; @@ -36000,7 +35798,7 @@ var LineByLineRenderer = class { } }; -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/side-by-side-renderer.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/side-by-side-renderer.js init_polyfill_buffer(); var defaultSideBySideRendererConfig = Object.assign(Object.assign({}, defaultRenderConfig), { renderNothingWhenEmpty: false, matchingMaxComparisons: 2500, maxLineSizeInBlockForComparison: 200 }); var genericTemplatesPath2 = "generic"; @@ -36187,11 +35985,11 @@ var SideBySideRenderer = class { } }; -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/hoganjs-utils.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/hoganjs-utils.js init_polyfill_buffer(); var Hogan3 = __toESM(require_hogan()); -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/diff2html-templates.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/diff2html-templates.js init_polyfill_buffer(); var Hogan2 = __toESM(require_hogan()); var defaultTemplates = {}; @@ -36600,7 +36398,7 @@ defaultTemplates["tag-file-renamed"] = new Hogan2.Template({ code: function(c, p return t.fl(); }, partials: {}, subs: {} }); -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/hoganjs-utils.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/hoganjs-utils.js var HoganJsUtils = class { constructor({ compiledTemplates = {}, rawTemplates = {} }) { const compiledRawTemplates = Object.entries(rawTemplates).reduce((previousTemplates, [name, templateString]) => { @@ -36629,7 +36427,7 @@ var HoganJsUtils = class { } }; -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/diff2html.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/diff2html.js var defaultDiff2HtmlConfig = Object.assign(Object.assign(Object.assign({}, defaultLineByLineRendererConfig), defaultSideBySideRendererConfig), { outputFormat: OutputFormatType.LINE_BY_LINE, drawFileList: true }); function html(diffInput, configuration = {}) { const config = Object.assign(Object.assign({}, defaultDiff2HtmlConfig), configuration); @@ -36663,8 +36461,7 @@ var DiffView = class extends import_obsidian17.ItemView { var _a2; if (((_a2 = this.state) == null ? void 0 : _a2.file) != null) { let fileName = this.state.file.split("/").last(); - if (fileName == null ? void 0 : fileName.endsWith(".md")) - fileName = fileName.slice(0, -3); + if (fileName == null ? void 0 : fileName.endsWith(".md")) fileName = fileName.slice(0, -3); return DIFF_VIEW_CONFIG.name + ` (${fileName})`; } return DIFF_VIEW_CONFIG.name; @@ -36742,13 +36539,13 @@ var import_obsidian21 = require("obsidian"); // src/ui/history/historyView.svelte init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/index.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/index.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/animations.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/animations.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/utils.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/utils.js init_polyfill_buffer(); function noop() { } @@ -36772,13 +36569,13 @@ function is_empty(obj) { return Object.keys(obj).length === 0; } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/environment.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/environment.js init_polyfill_buffer(); var is_client = typeof window !== "undefined"; var now = is_client ? () => window.performance.now() : () => Date.now(); var raf = is_client ? (cb) => requestAnimationFrame(cb) : noop; -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/loop.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/loop.js init_polyfill_buffer(); var tasks = /* @__PURE__ */ new Set(); function run_tasks(now2) { @@ -36788,13 +36585,11 @@ function run_tasks(now2) { task.f(); } }); - if (tasks.size !== 0) - raf(run_tasks); + if (tasks.size !== 0) raf(run_tasks); } function loop(callback) { let task; - if (tasks.size === 0) - raf(run_tasks); + if (tasks.size === 0) raf(run_tasks); return { promise: new Promise((fulfill) => { tasks.add(task = { c: callback, f: fulfill }); @@ -36805,23 +36600,23 @@ function loop(callback) { }; } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/style_manager.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/style_manager.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/dom.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/dom.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/ResizeObserverSingleton.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/ResizeObserverSingleton.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/globals.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/globals.js init_polyfill_buffer(); var globals = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : ( // @ts-ignore Node typings have this global ); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/ResizeObserverSingleton.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/ResizeObserverSingleton.js var ResizeObserverSingleton = class _ResizeObserverSingleton { /** @param {ResizeObserverOptions} options */ constructor(options) { @@ -36869,7 +36664,7 @@ var ResizeObserverSingleton = class _ResizeObserverSingleton { }; ResizeObserverSingleton.entries = "WeakMap" in globals ? /* @__PURE__ */ new WeakMap() : void 0; -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/dom.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/dom.js var is_hydrating = false; function start_hydrating() { is_hydrating = true; @@ -36890,8 +36685,7 @@ function append_styles(target, style_sheet_id, styles) { } } function get_root_for_style(node) { - if (!node) - return document; + if (!node) return document; const root2 = node.getRootNode ? node.getRootNode() : node.ownerDocument; if (root2 && /** @type {ShadowRoot} */ root2.host) { @@ -36926,8 +36720,7 @@ function detach(node) { } function destroy_each(iterations, detaching) { for (let i = 0; i < iterations.length; i += 1) { - if (iterations[i]) - iterations[i].d(detaching); + if (iterations[i]) iterations[i].d(detaching); } } function element(name) { @@ -36953,18 +36746,15 @@ function stop_propagation(fn) { }; } function attr(node, attribute, value) { - if (value == null) - node.removeAttribute(attribute); - else if (node.getAttribute(attribute) !== value) - node.setAttribute(attribute, value); + if (value == null) node.removeAttribute(attribute); + else if (node.getAttribute(attribute) !== value) node.setAttribute(attribute, value); } function children(element2) { return Array.from(element2.childNodes); } function set_data(text2, data) { data = "" + data; - if (text2.data === data) - return; + if (text2.data === data) return; text2.data = /** @type {string} */ data; } @@ -36995,14 +36785,13 @@ function get_custom_elements_slots(element2) { return result; } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/style_manager.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/style_manager.js var managed_styles = /* @__PURE__ */ new Map(); var active = 0; function hash(str) { let hash2 = 5381; let i = str.length; - while (i--) - hash2 = (hash2 << 5) - hash2 ^ str.charCodeAt(i); + while (i--) hash2 = (hash2 << 5) - hash2 ^ str.charCodeAt(i); return hash2 >>> 0; } function create_style_information(doc, node) { @@ -37042,41 +36831,37 @@ function delete_rule(node, name) { if (deleted) { node.style.animation = next.join(", "); active -= deleted; - if (!active) - clear_rules(); + if (!active) clear_rules(); } } function clear_rules() { raf(() => { - if (active) - return; + if (active) return; managed_styles.forEach((info) => { const { ownerNode } = info.stylesheet; - if (ownerNode) - detach(ownerNode); + if (ownerNode) detach(ownerNode); }); managed_styles.clear(); }); } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/await_block.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/await_block.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/transitions.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/transitions.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/scheduler.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/scheduler.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/lifecycle.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/lifecycle.js init_polyfill_buffer(); var current_component; function set_current_component(component) { current_component = component; } function get_current_component() { - if (!current_component) - throw new Error("Function called outside component initialization"); + if (!current_component) throw new Error("Function called outside component initialization"); return current_component; } function onDestroy(fn) { @@ -37089,7 +36874,7 @@ function bubble(component, event) { } } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/scheduler.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/scheduler.js var dirty_components = []; var binding_callbacks = []; var render_callbacks = []; @@ -37128,8 +36913,7 @@ function flush() { set_current_component(null); dirty_components.length = 0; flushidx = 0; - while (binding_callbacks.length) - binding_callbacks.pop()(); + while (binding_callbacks.length) binding_callbacks.pop()(); for (let i = 0; i < render_callbacks.length; i += 1) { const callback = render_callbacks[i]; if (!seen_callbacks.has(callback)) { @@ -37164,7 +36948,7 @@ function flush_render_callbacks(fns) { render_callbacks = filtered; } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/transitions.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/transitions.js var promise; function wait() { if (!promise) { @@ -37202,14 +36986,12 @@ function transition_in(block, local) { } function transition_out(block, local, detach2, callback) { if (block && block.o) { - if (outroing.has(block)) - return; + if (outroing.has(block)) return; outroing.add(block); outros.c.push(() => { outroing.delete(block); if (callback) { - if (detach2) - block.d(1); + if (detach2) block.d(1); callback(); } }); @@ -37228,8 +37010,7 @@ function create_bidirectional_transition(node, fn, params, intro) { let animation_name = null; let original_inert_value; function clear_animation() { - if (animation_name) - delete_rule(node, animation_name); + if (animation_name) delete_rule(node, animation_name); } function init3(program, duration) { const d = ( @@ -37281,8 +37062,7 @@ function create_bidirectional_transition(node, fn, params, intro) { clear_animation(); animation_name = create_rule(node, t, b, duration, delay2, easing, css); } - if (b) - tick2(0, 1); + if (b) tick2(0, 1); running_program = init3(program, duration); add_render_callback(() => dispatch(node, b, "start")); loop((now2) => { @@ -37311,8 +37091,7 @@ function create_bidirectional_transition(node, fn, params, intro) { if (running_program.b) { clear_animation(); } else { - if (!--running_program.group.r) - run_all(running_program.group.c); + if (!--running_program.group.r) run_all(running_program.group.c); } } running_program = null; @@ -37345,19 +37124,19 @@ function create_bidirectional_transition(node, fn, params, intro) { }; } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/each.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/each.js init_polyfill_buffer(); function ensure_array_like(array_like_or_iterator) { return (array_like_or_iterator == null ? void 0 : array_like_or_iterator.length) !== void 0 ? array_like_or_iterator : Array.from(array_like_or_iterator); } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/spread.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/spread.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/ssr.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/ssr.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/shared/boolean_attributes.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/shared/boolean_attributes.js init_polyfill_buffer(); var _boolean_attributes = ( /** @type {const} */ @@ -37391,10 +37170,10 @@ var _boolean_attributes = ( ); var boolean_attributes = /* @__PURE__ */ new Set([..._boolean_attributes]); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/shared/utils/names.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/shared/utils/names.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/Component.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/Component.js init_polyfill_buffer(); function create_component(block) { block && block.c(); @@ -37460,10 +37239,8 @@ function init2(component, options, instance10, create_fragment10, not_equal, pro $$.ctx = instance10 ? instance10(component, options.props || {}, (i, ret, ...rest) => { const value = rest.length ? rest[0] : ret; if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) { - if (!$$.skip_bound && $$.bound[i]) - $$.bound[i](value); - if (ready) - make_dirty(component, i); + if (!$$.skip_bound && $$.bound[i]) $$.bound[i](value); + if (ready) make_dirty(component, i); } return ret; }) : []; @@ -37480,8 +37257,7 @@ function init2(component, options, instance10, create_fragment10, not_equal, pro } else { $$.fragment && $$.fragment.c(); } - if (options.intro) - transition_in(component.$$.fragment); + if (options.intro) transition_in(component.$$.fragment); mount_component(component, options.target, options.anchor); end_hydrating(); flush(); @@ -37566,7 +37342,7 @@ if (typeof HTMLElement === "function") { }; }; await Promise.resolve(); - if (!this.$$cn) { + if (!this.$$cn || this.$$c) { return; } const $$slots = {}; @@ -37633,8 +37409,7 @@ if (typeof HTMLElement === "function") { // and setting attributes through setAttribute etc, this is helpful attributeChangedCallback(attr2, _oldValue, newValue) { var _a2; - if (this.$$r) - return; + if (this.$$r) return; attr2 = this.$$g_p(attr2); this.$$d[attr2] = get_custom_element_value(attr2, newValue, this.$$p_d, "toProp"); (_a2 = this.$$c) == null ? void 0 : _a2.$set({ [attr2]: this.$$d[attr2] }); @@ -37642,7 +37417,7 @@ if (typeof HTMLElement === "function") { disconnectedCallback() { this.$$cn = false; Promise.resolve().then(() => { - if (!this.$$cn) { + if (!this.$$cn && this.$$c) { this.$$c.$destroy(); this.$$c = void 0; } @@ -37725,8 +37500,7 @@ var SvelteComponent = class { callbacks.push(callback); return () => { const index2 = callbacks.indexOf(callback); - if (index2 !== -1) - callbacks.splice(index2, 1); + if (index2 !== -1) callbacks.splice(index2, 1); }; } /** @@ -37742,19 +37516,19 @@ var SvelteComponent = class { } }; -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/dev.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/dev.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/shared/version.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/shared/version.js init_polyfill_buffer(); var PUBLIC_VERSION = "4"; -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/disclose-version/index.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/disclose-version/index.js init_polyfill_buffer(); if (typeof window !== "undefined") (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(PUBLIC_VERSION); -// node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs +// node_modules/.pnpm/tslib@2.6.3/node_modules/tslib/tslib.es6.mjs init_polyfill_buffer(); function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { @@ -37787,24 +37561,24 @@ function __awaiter(thisArg, _arguments, P, generator) { // src/ui/history/historyView.svelte var import_obsidian20 = require("obsidian"); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/index.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/index.js init_polyfill_buffer(); // src/ui/history/components/logComponent.svelte init_polyfill_buffer(); var import_obsidian19 = require("obsidian"); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/transition/index.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/transition/index.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/easing/index.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/easing/index.js init_polyfill_buffer(); function cubicOut(t) { const f = t - 1; return f * f * f + 1; } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/transition/index.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/transition/index.js function slide(node, { delay: delay2 = 0, duration = 400, easing = cubicOut, axis = "y" } = {}) { const style = getComputedStyle(node); const opacity = +style.opacity; @@ -37894,7 +37668,7 @@ function create_fragment(ctx) { ctx[1].app.vault.getAbstractFileByPath( /*diff*/ ctx[0].vault_path - ) + ) instanceof import_obsidian18.TFile ); let t2; let span; @@ -37919,8 +37693,7 @@ function create_fragment(ctx) { t1 = space(); div2 = element("div"); div1 = element("div"); - if (if_block) - if_block.c(); + if (if_block) if_block.c(); t2 = space(); span = element("span"); t3 = text(t3_value); @@ -37959,8 +37732,7 @@ function create_fragment(ctx) { append2(div3, t1); append2(div3, div2); append2(div2, div1); - if (if_block) - if_block.m(div1, null); + if (if_block) if_block.m(div1, null); append2(div2, t2); append2(div2, span); append2(span, t3); @@ -37971,8 +37743,8 @@ function create_fragment(ctx) { ctx[5] )), listen(main, "auxclick", stop_propagation( - /*showDiff*/ - ctx[5] + /*auxclick_handler*/ + ctx[8] )), listen( main, @@ -37990,15 +37762,13 @@ function create_fragment(ctx) { 1 && t0_value !== (t0_value = getDisplayPath( /*diff*/ ctx2[0].vault_path - ) + "")) - set_data(t0, t0_value); + ) + "")) set_data(t0, t0_value); if (dirty & /*view, diff*/ - 3) - show_if = /*view*/ - ctx2[1].app.vault.getAbstractFileByPath( - /*diff*/ - ctx2[0].vault_path - ); + 3) show_if = /*view*/ + ctx2[1].app.vault.getAbstractFileByPath( + /*diff*/ + ctx2[0].vault_path + ) instanceof import_obsidian18.TFile; if (show_if) { if (if_block) { if_block.p(ctx2, dirty); @@ -38013,8 +37783,7 @@ function create_fragment(ctx) { } if (dirty & /*diff*/ 1 && t3_value !== (t3_value = /*diff*/ - ctx2[0].status + "")) - set_data(t3, t3_value); + ctx2[0].status + "")) set_data(t3, t3_value); if (dirty & /*diff*/ 1 && span_data_type_value !== (span_data_type_value = /*diff*/ ctx2[0].status)) { @@ -38057,8 +37826,7 @@ function create_fragment(ctx) { if (detaching) { detach(main); } - if (if_block) - if_block.d(); + if (if_block) if_block.d(); mounted = false; run_all(dispose); } @@ -38098,20 +37866,28 @@ function instance($$self, $$props, $$invalidate) { $$invalidate(2, buttons); }); } + const auxclick_handler = (event) => mayTriggerFileMenu(view.app, event, diff3.vault_path, view.leaf, "git-history"); $$self.$$set = ($$props2) => { - if ("diff" in $$props2) - $$invalidate(0, diff3 = $$props2.diff); - if ("view" in $$props2) - $$invalidate(1, view = $$props2.view); + if ("diff" in $$props2) $$invalidate(0, diff3 = $$props2.diff); + if ("view" in $$props2) $$invalidate(1, view = $$props2.view); }; $$self.$$.update = () => { if ($$self.$$.dirty & /*view*/ 2) { - $: - $$invalidate(3, side = view.leaf.getRoot().side == "left" ? "right" : "left"); + $: $$invalidate(3, side = view.leaf.getRoot().side == "left" ? "right" : "left"); } }; - return [diff3, view, buttons, side, open, showDiff, focus_handler, div_binding]; + return [ + diff3, + view, + buttons, + side, + open, + showDiff, + focus_handler, + div_binding, + auxclick_handler + ]; } var LogFileComponent = class extends SvelteComponent { constructor(options) { @@ -38176,8 +37952,7 @@ function create_else_block(ctx) { div2 = element("div"); t2 = text(t2_value); t3 = space(); - if (if_block) - if_block.c(); + if (if_block) if_block.c(); t4 = space(); attr(div0, "data-icon", "folder"); set_style(div0, "padding-right", "5px"); @@ -38223,8 +37998,7 @@ function create_else_block(ctx) { append2(div3, div2); append2(div2, t2); append2(div4, t3); - if (if_block) - if_block.m(div4, null); + if (if_block) if_block.m(div4, null); append2(div4, t4); current = true; if (!mounted) { @@ -38248,8 +38022,7 @@ function create_else_block(ctx) { } if ((!current || dirty & /*hierarchy*/ 1) && t2_value !== (t2_value = /*entity*/ - ctx[8].title + "")) - set_data(t2, t2_value); + ctx[8].title + "")) set_data(t2, t2_value); if (!current || dirty & /*side*/ 32) { attr( @@ -38302,8 +38075,7 @@ function create_else_block(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); current = true; }, @@ -38315,8 +38087,7 @@ function create_else_block(ctx) { if (detaching) { detach(div4); } - if (if_block) - if_block.d(); + if (if_block) if_block.d(); mounted = false; dispose(); } @@ -38354,18 +38125,15 @@ function create_if_block2(ctx) { p(ctx2, dirty) { const logfilecomponent_changes = {}; if (dirty & /*hierarchy*/ - 1) - logfilecomponent_changes.diff = /*entity*/ - ctx2[8].data; + 1) logfilecomponent_changes.diff = /*entity*/ + ctx2[8].data; if (dirty & /*view*/ - 4) - logfilecomponent_changes.view = /*view*/ - ctx2[2]; + 4) logfilecomponent_changes.view = /*view*/ + ctx2[2]; logfilecomponent.$set(logfilecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(logfilecomponent.$$.fragment, local); current = true; }, @@ -38416,29 +38184,23 @@ function create_if_block_1(ctx) { p(ctx2, dirty) { const logtreecomponent_changes = {}; if (dirty & /*hierarchy*/ - 1) - logtreecomponent_changes.hierarchy = /*entity*/ - ctx2[8]; + 1) logtreecomponent_changes.hierarchy = /*entity*/ + ctx2[8]; if (dirty & /*plugin*/ - 2) - logtreecomponent_changes.plugin = /*plugin*/ - ctx2[1]; + 2) logtreecomponent_changes.plugin = /*plugin*/ + ctx2[1]; if (dirty & /*view*/ - 4) - logtreecomponent_changes.view = /*view*/ - ctx2[2]; + 4) logtreecomponent_changes.view = /*view*/ + ctx2[2]; logtreecomponent.$set(logtreecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(logtreecomponent.$$.fragment, local); if (local) { add_render_callback(() => { - if (!current) - return; - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); + if (!current) return; + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); div_transition.run(1); }); } @@ -38447,8 +38209,7 @@ function create_if_block_1(ctx) { o(local) { transition_out(logtreecomponent.$$.fragment, local); if (local) { - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); div_transition.run(0); } current = false; @@ -38458,8 +38219,7 @@ function create_if_block_1(ctx) { detach(div); } destroy_component(logtreecomponent); - if (detaching && div_transition) - div_transition.end(); + if (detaching && div_transition) div_transition.end(); } }; } @@ -38474,8 +38234,7 @@ function create_each_block(ctx) { if ( /*entity*/ ctx2[8].data - ) - return 0; + ) return 0; return 1; } current_block_type_index = select_block_type(ctx, -1); @@ -38513,8 +38272,7 @@ function create_each_block(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); current = true; }, @@ -38604,8 +38362,7 @@ function create_fragment2(ctx) { } }, i(local) { - if (current) - return; + if (current) return; for (let i = 0; i < each_value.length; i += 1) { transition_in(each_blocks[i]); } @@ -38638,20 +38395,15 @@ function instance2($$self, $$props, $$invalidate) { } const click_handler = (entity) => fold(entity); $$self.$$set = ($$props2) => { - if ("hierarchy" in $$props2) - $$invalidate(0, hierarchy = $$props2.hierarchy); - if ("plugin" in $$props2) - $$invalidate(1, plugin = $$props2.plugin); - if ("view" in $$props2) - $$invalidate(2, view = $$props2.view); - if ("topLevel" in $$props2) - $$invalidate(3, topLevel = $$props2.topLevel); + if ("hierarchy" in $$props2) $$invalidate(0, hierarchy = $$props2.hierarchy); + if ("plugin" in $$props2) $$invalidate(1, plugin = $$props2.plugin); + if ("view" in $$props2) $$invalidate(2, view = $$props2.view); + if ("topLevel" in $$props2) $$invalidate(3, topLevel = $$props2.topLevel); }; $$self.$$.update = () => { if ($$self.$$.dirty & /*view*/ 4) { - $: - $$invalidate(5, side = view.leaf.getRoot().side == "left" ? "right" : "left"); + $: $$invalidate(5, side = view.leaf.getRoot().side == "left" ? "right" : "left"); } }; return [hierarchy, plugin, view, topLevel, closed, side, fold, click_handler]; @@ -38703,8 +38455,7 @@ function create_if_block_4(ctx) { p(ctx2, dirty) { if (dirty & /*log*/ 1 && t_value !== (t_value = /*log*/ - ctx2[0].refs.join(", ") + "")) - set_data(t, t_value); + ctx2[0].refs.join(", ") + "")) set_data(t, t_value); }, d(detaching) { if (detaching) { @@ -38739,8 +38490,7 @@ function create_if_block_3(ctx) { ctx2[7]( /*log*/ ctx2[0] - ) + "")) - set_data(t, t_value); + ) + "")) set_data(t, t_value); }, d(detaching) { if (detaching) { @@ -38777,8 +38527,7 @@ function create_if_block_2(ctx) { ).format( /*plugin*/ ctx2[3].settings.commitDateFormat - ) + "")) - set_data(t, t_value); + ) + "")) set_data(t, t_value); }, d(detaching) { if (detaching) { @@ -38799,8 +38548,7 @@ function create_if_block3(ctx) { if ( /*showTree*/ ctx2[2] - ) - return 0; + ) return 0; return 1; } current_block_type_index = select_block_type(ctx, -1); @@ -38839,15 +38587,12 @@ function create_if_block3(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); if (local) { add_render_callback(() => { - if (!current) - return; - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); + if (!current) return; + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); div_transition.run(1); }); } @@ -38856,8 +38601,7 @@ function create_if_block3(ctx) { o(local) { transition_out(if_block); if (local) { - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); div_transition.run(0); } current = false; @@ -38867,8 +38611,7 @@ function create_if_block3(ctx) { detach(div); } if_blocks[current_block_type_index].d(); - if (detaching && div_transition) - div_transition.end(); + if (detaching && div_transition) div_transition.end(); } }; } @@ -38930,8 +38673,7 @@ function create_else_block2(ctx) { } }, i(local) { - if (current) - return; + if (current) return; for (let i = 0; i < each_value.length; i += 1) { transition_in(each_blocks[i]); } @@ -38983,22 +38725,18 @@ function create_if_block_12(ctx) { p(ctx2, dirty) { const logtreecomponent_changes = {}; if (dirty & /*logsHierarchy*/ - 64) - logtreecomponent_changes.hierarchy = /*logsHierarchy*/ - ctx2[6]; + 64) logtreecomponent_changes.hierarchy = /*logsHierarchy*/ + ctx2[6]; if (dirty & /*plugin*/ - 8) - logtreecomponent_changes.plugin = /*plugin*/ - ctx2[3]; + 8) logtreecomponent_changes.plugin = /*plugin*/ + ctx2[3]; if (dirty & /*view*/ - 2) - logtreecomponent_changes.view = /*view*/ - ctx2[1]; + 2) logtreecomponent_changes.view = /*view*/ + ctx2[1]; logtreecomponent.$set(logtreecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(logtreecomponent.$$.fragment, local); current = true; }, @@ -39037,18 +38775,15 @@ function create_each_block2(ctx) { p(ctx2, dirty) { const logfilecomponent_changes = {}; if (dirty & /*view*/ - 2) - logfilecomponent_changes.view = /*view*/ - ctx2[1]; + 2) logfilecomponent_changes.view = /*view*/ + ctx2[1]; if (dirty & /*log*/ - 1) - logfilecomponent_changes.diff = /*file*/ - ctx2[9]; + 1) logfilecomponent_changes.diff = /*file*/ + ctx2[9]; logfilecomponent.$set(logfilecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(logfilecomponent.$$.fragment, local); current = true; }, @@ -39108,20 +38843,16 @@ function create_fragment3(ctx) { div0.innerHTML = ``; t0 = space(); div2 = element("div"); - if (if_block0) - if_block0.c(); + if (if_block0) if_block0.c(); t1 = space(); - if (if_block1) - if_block1.c(); + if (if_block1) if_block1.c(); t2 = space(); - if (if_block2) - if_block2.c(); + if (if_block2) if_block2.c(); t3 = space(); div1 = element("div"); t4 = text(t4_value); t5 = space(); - if (if_block3) - if_block3.c(); + if (if_block3) if_block3.c(); attr(div0, "class", "tree-item-icon nav-folder-collapse-indicator collapse-icon"); toggle_class( div0, @@ -39167,20 +38898,16 @@ ${/*log*/ append2(div3, div0); append2(div3, t0); append2(div3, div2); - if (if_block0) - if_block0.m(div2, null); + if (if_block0) if_block0.m(div2, null); append2(div2, t1); - if (if_block1) - if_block1.m(div2, null); + if (if_block1) if_block1.m(div2, null); append2(div2, t2); - if (if_block2) - if_block2.m(div2, null); + if (if_block2) if_block2.m(div2, null); append2(div2, t3); append2(div2, div1); append2(div1, t4); append2(div4, t5); - if (if_block3) - if_block3.m(div4, null); + if (if_block3) if_block3.m(div4, null); current = true; if (!mounted) { dispose = listen( @@ -39251,8 +38978,7 @@ ${/*log*/ } if ((!current || dirty & /*log*/ 1) && t4_value !== (t4_value = /*log*/ - ctx2[0].message + "")) - set_data(t4, t4_value); + ctx2[0].message + "")) set_data(t4, t4_value); if (!current || dirty & /*log, plugin*/ 9 && div3_aria_label_value !== (div3_aria_label_value = `${/*log*/ ctx2[0].refs.length > 0 ? ( @@ -39312,8 +39038,7 @@ ${/*log*/ } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block3); current = true; }, @@ -39325,14 +39050,10 @@ ${/*log*/ if (detaching) { detach(main); } - if (if_block0) - if_block0.d(); - if (if_block1) - if_block1.d(); - if (if_block2) - if_block2.d(); - if (if_block3) - if_block3.d(); + if (if_block0) if_block0.d(); + if (if_block1) if_block1.d(); + if (if_block2) if_block2.d(); + if (if_block3) if_block3.d(); mounted = false; dispose(); } @@ -39357,30 +39078,24 @@ function instance3($$self, $$props, $$invalidate) { } const click_handler = () => $$invalidate(4, isCollapsed = !isCollapsed); $$self.$$set = ($$props2) => { - if ("log" in $$props2) - $$invalidate(0, log2 = $$props2.log); - if ("view" in $$props2) - $$invalidate(1, view = $$props2.view); - if ("showTree" in $$props2) - $$invalidate(2, showTree = $$props2.showTree); - if ("plugin" in $$props2) - $$invalidate(3, plugin = $$props2.plugin); + if ("log" in $$props2) $$invalidate(0, log2 = $$props2.log); + if ("view" in $$props2) $$invalidate(1, view = $$props2.view); + if ("showTree" in $$props2) $$invalidate(2, showTree = $$props2.showTree); + if ("plugin" in $$props2) $$invalidate(3, plugin = $$props2.plugin); }; $$self.$$.update = () => { if ($$self.$$.dirty & /*plugin, log*/ 9) { - $: - $$invalidate(6, logsHierarchy = { - title: "", - path: "", - vaultPath: "", - children: plugin.gitManager.getTreeStructure(log2.diff.files) - }); + $: $$invalidate(6, logsHierarchy = { + title: "", + path: "", + vaultPath: "", + children: plugin.gitManager.getTreeStructure(log2.diff.files) + }); } if ($$self.$$.dirty & /*view*/ 2) { - $: - $$invalidate(5, side = view.leaf.getRoot().side == "left" ? "right" : "left"); + $: $$invalidate(5, side = view.leaf.getRoot().side == "left" ? "right" : "left"); } }; return [ @@ -39472,8 +39187,7 @@ function create_if_block4(ctx) { } }, i(local) { - if (current) - return; + if (current) return; for (let i = 0; i < each_value.length; i += 1) { transition_in(each_blocks[i]); } @@ -39528,26 +39242,21 @@ function create_each_block3(ctx) { p(ctx2, dirty) { const logcomponent_changes = {}; if (dirty & /*view*/ - 2) - logcomponent_changes.view = /*view*/ - ctx2[1]; + 2) logcomponent_changes.view = /*view*/ + ctx2[1]; if (dirty & /*showTree*/ - 4) - logcomponent_changes.showTree = /*showTree*/ - ctx2[2]; + 4) logcomponent_changes.showTree = /*showTree*/ + ctx2[2]; if (dirty & /*logs*/ - 64) - logcomponent_changes.log = /*log*/ - ctx2[11]; + 64) logcomponent_changes.log = /*log*/ + ctx2[11]; if (dirty & /*plugin*/ - 1) - logcomponent_changes.plugin = /*plugin*/ - ctx2[0]; + 1) logcomponent_changes.plugin = /*plugin*/ + ctx2[0]; logcomponent.$set(logcomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(logcomponent.$$.fragment, local); current = true; }, @@ -39586,8 +39295,7 @@ function create_fragment4(ctx) { div1 = element("div"); t1 = space(); div4 = element("div"); - if (if_block) - if_block.c(); + if (if_block) if_block.c(); attr(div0, "id", "layoutChange"); attr(div0, "class", "clickable-icon nav-action-button"); attr(div0, "aria-label", "Change Layout"); @@ -39618,8 +39326,7 @@ function create_fragment4(ctx) { ctx[9](div1); append2(main, t1); append2(main, div4); - if (if_block) - if_block.m(div4, null); + if (if_block) if_block.m(div4, null); current = true; if (!mounted) { dispose = [ @@ -39669,8 +39376,7 @@ function create_fragment4(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); current = true; }, @@ -39684,8 +39390,7 @@ function create_fragment4(ctx) { } ctx[7](null); ctx[9](null); - if (if_block) - if_block.d(); + if (if_block) if_block.d(); mounted = false; run_all(dispose); } @@ -39741,10 +39446,8 @@ function instance4($$self, $$props, $$invalidate) { }); } $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - if ("view" in $$props2) - $$invalidate(1, view = $$props2.view); + if ("plugin" in $$props2) $$invalidate(0, plugin = $$props2.plugin); + if ("view" in $$props2) $$invalidate(1, view = $$props2.view); }; $$self.$$.update = () => { if ($$self.$$.dirty & /*layoutBtn, showTree*/ @@ -39835,8 +39538,7 @@ var BranchModal = class extends import_obsidian22.FuzzySuggestModal { } async onClose() { await new Promise((resolve2) => setTimeout(resolve2, 10)); - if (this.resolve) - this.resolve(void 0); + if (this.resolve) this.resolve(void 0); } }; @@ -39915,26 +39617,22 @@ var DiscardModal = class extends import_obsidian24.Modal { text: this.deletion ? "Delete" : "Discard" }); discard.addEventListener("click", async () => { - if (this.resolve) - this.resolve(true); + if (this.resolve) this.resolve(true); this.close(); }); discard.addEventListener("keypress", async () => { - if (this.resolve) - this.resolve(true); + if (this.resolve) this.resolve(true); this.close(); }); const close = div.createEl("button", { text: "Cancel" }); close.addEventListener("click", () => { - if (this.resolve) - this.resolve(false); + if (this.resolve) this.resolve(false); return this.close(); }); close.addEventListener("keypress", () => { - if (this.resolve) - this.resolve(false); + if (this.resolve) this.resolve(false); return this.close(); }); } @@ -39948,10 +39646,10 @@ var DiscardModal = class extends import_obsidian24.Modal { init_polyfill_buffer(); var import_obsidian26 = require("obsidian"); -// node_modules/.pnpm/obsidian-community-lib@https+++codeload.github.com+Vinzent03+obsidian-community-lib+tar.gz+e6_dmashd4lm54vdqd2gnfngnqe2m/node_modules/obsidian-community-lib/dist/index.js +// node_modules/.pnpm/obsidian-community-lib@https+++codeload.github.com+Vinzent03+obsidian-community-lib+tar.gz+e6_gis2so5ruhuavxzhyb52fw447e/node_modules/obsidian-community-lib/dist/index.js init_polyfill_buffer(); -// node_modules/.pnpm/obsidian-community-lib@https+++codeload.github.com+Vinzent03+obsidian-community-lib+tar.gz+e6_dmashd4lm54vdqd2gnfngnqe2m/node_modules/obsidian-community-lib/dist/utils.js +// node_modules/.pnpm/obsidian-community-lib@https+++codeload.github.com+Vinzent03+obsidian-community-lib+tar.gz+e6_gis2so5ruhuavxzhyb52fw447e/node_modules/obsidian-community-lib/dist/utils.js init_polyfill_buffer(); var feather = __toESM(require_feather()); var import_obsidian25 = require("obsidian"); @@ -40055,8 +39753,7 @@ function create_fragment5(ctx) { t1 = space(); div5 = element("div"); div3 = element("div"); - if (if_block) - if_block.c(); + if (if_block) if_block.c(); t2 = space(); div1 = element("div"); t3 = space(); @@ -40106,8 +39803,7 @@ function create_fragment5(ctx) { append2(div6, t1); append2(div6, div5); append2(div5, div3); - if (if_block) - if_block.m(div3, null); + if (if_block) if_block.m(div3, null); append2(div3, t2); append2(div3, div1); ctx[12](div1); @@ -40138,8 +39834,8 @@ function create_fragment5(ctx) { ctx[7] )), listen(main, "auxclick", stop_propagation( - /*showDiff*/ - ctx[7] + /*auxclick_handler*/ + ctx[14] )), listen( main, @@ -40157,15 +39853,13 @@ function create_fragment5(ctx) { 1 && t0_value !== (t0_value = getDisplayPath( /*change*/ ctx2[0].vault_path - ) + "")) - set_data(t0, t0_value); + ) + "")) set_data(t0, t0_value); if (dirty & /*view, change*/ - 3) - show_if = /*view*/ - ctx2[1].app.vault.getAbstractFileByPath( - /*change*/ - ctx2[0].vault_path - ); + 3) show_if = /*view*/ + ctx2[1].app.vault.getAbstractFileByPath( + /*change*/ + ctx2[0].vault_path + ); if (show_if) { if (if_block) { if_block.p(ctx2, dirty); @@ -40180,8 +39874,7 @@ function create_fragment5(ctx) { } if (dirty & /*change*/ 1 && t5_value !== (t5_value = /*change*/ - ctx2[0].working_dir + "")) - set_data(t5, t5_value); + ctx2[0].working_dir + "")) set_data(t5, t5_value); if (dirty & /*change*/ 1 && div4_data_type_value !== (div4_data_type_value = /*change*/ ctx2[0].working_dir)) { @@ -40225,8 +39918,7 @@ function create_fragment5(ctx) { if (detaching) { detach(main); } - if (if_block) - if_block.d(); + if (if_block) if_block.d(); ctx[12](null); ctx[13](null); mounted = false; @@ -40249,7 +39941,6 @@ function instance5($$self, $$props, $$invalidate) { function open(event) { var _a2; const file = view.app.vault.getAbstractFileByPath(change.vault_path); - console.log(event); if (file instanceof import_obsidian26.TFile) { (_a2 = getNewLeaf(event)) === null || _a2 === void 0 ? void 0 : _a2.openFile(file); } @@ -40304,19 +39995,16 @@ function instance5($$self, $$props, $$invalidate) { $$invalidate(2, buttons); }); } + const auxclick_handler = (event) => mayTriggerFileMenu(view.app, event, change.vault_path, view.leaf, "git-source-control"); $$self.$$set = ($$props2) => { - if ("change" in $$props2) - $$invalidate(0, change = $$props2.change); - if ("view" in $$props2) - $$invalidate(1, view = $$props2.view); - if ("manager" in $$props2) - $$invalidate(9, manager = $$props2.manager); + if ("change" in $$props2) $$invalidate(0, change = $$props2.change); + if ("view" in $$props2) $$invalidate(1, view = $$props2.view); + if ("manager" in $$props2) $$invalidate(9, manager = $$props2.manager); }; $$self.$$.update = () => { if ($$self.$$.dirty & /*view*/ 2) { - $: - $$invalidate(3, side = view.leaf.getRoot().side == "left" ? "right" : "left"); + $: $$invalidate(3, side = view.leaf.getRoot().side == "left" ? "right" : "left"); } }; return [ @@ -40333,7 +40021,8 @@ function instance5($$self, $$props, $$invalidate) { focus_handler, div_binding, div1_binding, - div2_binding + div2_binding, + auxclick_handler ]; } var FileComponent = class extends SvelteComponent { @@ -40394,7 +40083,7 @@ function create_fragment6(ctx) { div2, "data-tooltip-position", /*side*/ - ctx[1] + ctx[2] ); attr(div2, "aria-label", div2_aria_label_value = /*change*/ ctx[0].vault_path); @@ -40415,15 +40104,15 @@ function create_fragment6(ctx) { main, "mouseover", /*hover*/ - ctx[2] + ctx[3] ), listen(main, "click", stop_propagation( /*open*/ - ctx[3] + ctx[4] )), listen(main, "auxclick", stop_propagation( - /*open*/ - ctx[3] + /*auxclick_handler*/ + ctx[6] )), listen( main, @@ -40440,12 +40129,10 @@ function create_fragment6(ctx) { 1 && t0_value !== (t0_value = getDisplayPath( /*change*/ ctx2[0].vault_path - ) + "")) - set_data(t0, t0_value); + ) + "")) set_data(t0, t0_value); if (dirty & /*change*/ 1 && t2_value !== (t2_value = /*change*/ - ctx2[0].working_dir + "")) - set_data(t2, t2_value); + ctx2[0].working_dir + "")) set_data(t2, t2_value); if (dirty & /*change*/ 1 && span_data_type_value !== (span_data_type_value = /*change*/ ctx2[0].working_dir)) { @@ -40457,12 +40144,12 @@ function create_fragment6(ctx) { attr(div2, "data-path", div2_data_path_value); } if (dirty & /*side*/ - 2) { + 4) { attr( div2, "data-tooltip-position", /*side*/ - ctx2[1] + ctx2[2] ); } if (dirty & /*change*/ @@ -40501,25 +40188,23 @@ function instance6($$self, $$props, $$invalidate) { function focus_handler(event) { bubble.call(this, $$self, event); } + const auxclick_handler = (event) => mayTriggerFileMenu(view.app, event, change.vault_path, view.leaf, "git-source-control"); $$self.$$set = ($$props2) => { - if ("change" in $$props2) - $$invalidate(0, change = $$props2.change); - if ("view" in $$props2) - $$invalidate(4, view = $$props2.view); + if ("change" in $$props2) $$invalidate(0, change = $$props2.change); + if ("view" in $$props2) $$invalidate(1, view = $$props2.view); }; $$self.$$.update = () => { if ($$self.$$.dirty & /*view*/ - 16) { - $: - $$invalidate(1, side = view.leaf.getRoot().side == "left" ? "right" : "left"); + 2) { + $: $$invalidate(2, side = view.leaf.getRoot().side == "left" ? "right" : "left"); } }; - return [change, side, hover, open, view, focus_handler]; + return [change, view, side, hover, open, focus_handler, auxclick_handler]; } var PulledFileComponent = class extends SvelteComponent { constructor(options) { super(); - init2(this, options, instance6, create_fragment6, safe_not_equal, { change: 0, view: 4 }, add_css4); + init2(this, options, instance6, create_fragment6, safe_not_equal, { change: 0, view: 1 }, add_css4); } }; var pulledFileComponent_default = PulledFileComponent; @@ -40607,8 +40292,7 @@ function create_fragment7(ctx) { t1 = space(); div4 = element("div"); div2 = element("div"); - if (if_block) - if_block.c(); + if (if_block) if_block.c(); t2 = space(); div1 = element("div"); t3 = space(); @@ -40653,8 +40337,7 @@ function create_fragment7(ctx) { append2(div5, t1); append2(div5, div4); append2(div4, div2); - if (if_block) - if_block.m(div2, null); + if (if_block) if_block.m(div2, null); append2(div2, t2); append2(div2, div1); ctx[11](div1); @@ -40684,8 +40367,8 @@ function create_fragment7(ctx) { ctx[6] )), listen(main, "auxclick", stop_propagation( - /*showDiff*/ - ctx[6] + /*auxclick_handler*/ + ctx[12] )) ]; mounted = true; @@ -40697,15 +40380,13 @@ function create_fragment7(ctx) { 1 && t0_value !== (t0_value = getDisplayPath( /*change*/ ctx2[0].vault_path - ) + "")) - set_data(t0, t0_value); + ) + "")) set_data(t0, t0_value); if (dirty & /*view, change*/ - 3) - show_if = /*view*/ - ctx2[1].app.vault.getAbstractFileByPath( - /*change*/ - ctx2[0].vault_path - ); + 3) show_if = /*view*/ + ctx2[1].app.vault.getAbstractFileByPath( + /*change*/ + ctx2[0].vault_path + ); if (show_if) { if (if_block) { if_block.p(ctx2, dirty); @@ -40720,8 +40401,7 @@ function create_fragment7(ctx) { } if (dirty & /*change*/ 1 && t4_value !== (t4_value = /*change*/ - ctx2[0].index + "")) - set_data(t4, t4_value); + ctx2[0].index + "")) set_data(t4, t4_value); if (dirty & /*change*/ 1 && div3_data_type_value !== (div3_data_type_value = /*change*/ ctx2[0].index)) { @@ -40765,8 +40445,7 @@ function create_fragment7(ctx) { if (detaching) { detach(main); } - if (if_block) - if_block.d(); + if (if_block) if_block.d(); ctx[11](null); mounted = false; run_all(dispose); @@ -40820,19 +40499,16 @@ function instance7($$self, $$props, $$invalidate) { $$invalidate(2, buttons); }); } + const auxclick_handler = (event) => mayTriggerFileMenu(view.app, event, change.vault_path, view.leaf, "git-source-control"); $$self.$$set = ($$props2) => { - if ("change" in $$props2) - $$invalidate(0, change = $$props2.change); - if ("view" in $$props2) - $$invalidate(1, view = $$props2.view); - if ("manager" in $$props2) - $$invalidate(8, manager = $$props2.manager); + if ("change" in $$props2) $$invalidate(0, change = $$props2.change); + if ("view" in $$props2) $$invalidate(1, view = $$props2.view); + if ("manager" in $$props2) $$invalidate(8, manager = $$props2.manager); }; $$self.$$.update = () => { if ($$self.$$.dirty & /*view*/ 2) { - $: - $$invalidate(3, side = view.leaf.getRoot().side == "left" ? "right" : "left"); + $: $$invalidate(3, side = view.leaf.getRoot().side == "left" ? "right" : "left"); } }; return [ @@ -40847,7 +40523,8 @@ function instance7($$self, $$props, $$invalidate) { manager, focus_handler, div_binding, - div1_binding + div1_binding, + auxclick_handler ]; } var StagedFileComponent = class extends SvelteComponent { @@ -40865,7 +40542,7 @@ function add_css6(target) { } function get_each_context4(ctx, list, i) { const child_ctx = ctx.slice(); - child_ctx[15] = list[i]; + child_ctx[16] = list[i]; return child_ctx; } function create_else_block3(ctx) { @@ -40878,7 +40555,7 @@ function create_else_block3(ctx) { let div2; let t2_value = ( /*entity*/ - ctx[15].title + "" + ctx[16].title + "" ); let t2; let t3; @@ -40896,8 +40573,7 @@ function create_else_block3(ctx) { if ( /*fileType*/ ctx2[3] == 0 /* staged */ - ) - return create_if_block_5; + ) return create_if_block_5; return create_else_block_1; } let current_block_type = select_block_type_2(ctx, -1); @@ -40905,14 +40581,24 @@ function create_else_block3(ctx) { let if_block1 = !/*closed*/ ctx[5][ /*entity*/ - ctx[15].title + ctx[16].title ] && create_if_block_42(ctx); function click_handler_3() { return ( /*click_handler_3*/ ctx[14]( /*entity*/ - ctx[15] + ctx[16] + ) + ); + } + function auxclick_handler(...args) { + return ( + /*auxclick_handler*/ + ctx[15]( + /*entity*/ + ctx[16], + ...args ) ); } @@ -40934,8 +40620,7 @@ function create_else_block3(ctx) { t4 = space(); div3 = element("div"); t5 = space(); - if (if_block1) - if_block1.c(); + if (if_block1) if_block1.c(); t6 = space(); attr(div0, "data-icon", "folder"); set_style(div0, "padding-right", "5px"); @@ -40947,7 +40632,7 @@ function create_else_block3(ctx) { /*closed*/ ctx[5][ /*entity*/ - ctx[15].title + ctx[16].title ] ); attr(div2, "class", "tree-item-inner nav-folder-title-content"); @@ -40962,7 +40647,7 @@ function create_else_block3(ctx) { ctx[6] ); attr(div6, "aria-label", div6_aria_label_value = /*entity*/ - ctx[15].vaultPath); + ctx[16].vaultPath); attr(div7, "class", "tree-item nav-folder"); toggle_class( div7, @@ -40970,7 +40655,7 @@ function create_else_block3(ctx) { /*closed*/ ctx[5][ /*entity*/ - ctx[15].title + ctx[16].title ] ); }, @@ -40990,12 +40675,14 @@ function create_else_block3(ctx) { append2(div4, t4); append2(div4, div3); append2(div7, t5); - if (if_block1) - if_block1.m(div7, null); + if (if_block1) if_block1.m(div7, null); append2(div7, t6); current = true; if (!mounted) { - dispose = listen(div7, "click", stop_propagation(click_handler_3)); + dispose = [ + listen(div7, "click", stop_propagation(click_handler_3)), + listen(div7, "auxclick", stop_propagation(auxclick_handler)) + ]; mounted = true; } }, @@ -41009,14 +40696,13 @@ function create_else_block3(ctx) { /*closed*/ ctx[5][ /*entity*/ - ctx[15].title + ctx[16].title ] ); } if ((!current || dirty & /*hierarchy*/ 1) && t2_value !== (t2_value = /*entity*/ - ctx[15].title + "")) - set_data(t2, t2_value); + ctx[16].title + "")) set_data(t2, t2_value); if (current_block_type === (current_block_type = select_block_type_2(ctx, dirty)) && if_block0) { if_block0.p(ctx, dirty); } else { @@ -41038,13 +40724,13 @@ function create_else_block3(ctx) { } if (!current || dirty & /*hierarchy*/ 1 && div6_aria_label_value !== (div6_aria_label_value = /*entity*/ - ctx[15].vaultPath)) { + ctx[16].vaultPath)) { attr(div6, "aria-label", div6_aria_label_value); } if (!/*closed*/ ctx[5][ /*entity*/ - ctx[15].title + ctx[16].title ]) { if (if_block1) { if_block1.p(ctx, dirty); @@ -41073,14 +40759,13 @@ function create_else_block3(ctx) { /*closed*/ ctx[5][ /*entity*/ - ctx[15].title + ctx[16].title ] ); } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block1); current = true; }, @@ -41093,10 +40778,9 @@ function create_else_block3(ctx) { detach(div7); } if_block0.d(); - if (if_block1) - if_block1.d(); + if (if_block1) if_block1.d(); mounted = false; - dispose(); + run_all(dispose); } }; } @@ -41112,18 +40796,15 @@ function create_if_block7(ctx) { if ( /*fileType*/ ctx2[3] == 0 /* staged */ - ) - return 0; + ) return 0; if ( /*fileType*/ ctx2[3] == 1 /* changed */ - ) - return 1; + ) return 1; if ( /*fileType*/ ctx2[3] == 2 /* pulled */ - ) - return 2; + ) return 2; return -1; } if (~(current_block_type_index = select_block_type_1(ctx, -1))) { @@ -41132,8 +40813,7 @@ function create_if_block7(ctx) { return { c() { div = element("div"); - if (if_block) - if_block.c(); + if (if_block) if_block.c(); t = space(); }, m(target, anchor) { @@ -41175,8 +40855,7 @@ function create_if_block7(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); current = true; }, @@ -41205,7 +40884,7 @@ function create_else_block_1(ctx) { /*click_handler_1*/ ctx[12]( /*entity*/ - ctx[15] + ctx[16] ) ); } @@ -41214,7 +40893,7 @@ function create_else_block_1(ctx) { /*click_handler_2*/ ctx[13]( /*entity*/ - ctx[15] + ctx[16] ) ); } @@ -41267,7 +40946,7 @@ function create_if_block_5(ctx) { /*click_handler*/ ctx[11]( /*entity*/ - ctx[15] + ctx[16] ) ); } @@ -41307,7 +40986,7 @@ function create_if_block_42(ctx) { props: { hierarchy: ( /*entity*/ - ctx[15] + ctx[16] ), plugin: ( /*plugin*/ @@ -41337,33 +41016,26 @@ function create_if_block_42(ctx) { p(ctx2, dirty) { const treecomponent_changes = {}; if (dirty & /*hierarchy*/ - 1) - treecomponent_changes.hierarchy = /*entity*/ - ctx2[15]; + 1) treecomponent_changes.hierarchy = /*entity*/ + ctx2[16]; if (dirty & /*plugin*/ - 2) - treecomponent_changes.plugin = /*plugin*/ - ctx2[1]; + 2) treecomponent_changes.plugin = /*plugin*/ + ctx2[1]; if (dirty & /*view*/ - 4) - treecomponent_changes.view = /*view*/ - ctx2[2]; + 4) treecomponent_changes.view = /*view*/ + ctx2[2]; if (dirty & /*fileType*/ - 8) - treecomponent_changes.fileType = /*fileType*/ - ctx2[3]; + 8) treecomponent_changes.fileType = /*fileType*/ + ctx2[3]; treecomponent.$set(treecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(treecomponent.$$.fragment, local); if (local) { add_render_callback(() => { - if (!current) - return; - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); + if (!current) return; + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); div_transition.run(1); }); } @@ -41372,8 +41044,7 @@ function create_if_block_42(ctx) { o(local) { transition_out(treecomponent.$$.fragment, local); if (local) { - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); div_transition.run(0); } current = false; @@ -41383,8 +41054,7 @@ function create_if_block_42(ctx) { detach(div); } destroy_component(treecomponent); - if (detaching && div_transition) - div_transition.end(); + if (detaching && div_transition) div_transition.end(); } }; } @@ -41395,7 +41065,7 @@ function create_if_block_32(ctx) { props: { change: ( /*entity*/ - ctx[15].data + ctx[16].data ), view: ( /*view*/ @@ -41414,18 +41084,15 @@ function create_if_block_32(ctx) { p(ctx2, dirty) { const pulledfilecomponent_changes = {}; if (dirty & /*hierarchy*/ - 1) - pulledfilecomponent_changes.change = /*entity*/ - ctx2[15].data; + 1) pulledfilecomponent_changes.change = /*entity*/ + ctx2[16].data; if (dirty & /*view*/ - 4) - pulledfilecomponent_changes.view = /*view*/ - ctx2[2]; + 4) pulledfilecomponent_changes.view = /*view*/ + ctx2[2]; pulledfilecomponent.$set(pulledfilecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(pulledfilecomponent.$$.fragment, local); current = true; }, @@ -41445,7 +41112,7 @@ function create_if_block_22(ctx) { props: { change: ( /*entity*/ - ctx[15].data + ctx[16].data ), manager: ( /*plugin*/ @@ -41468,22 +41135,18 @@ function create_if_block_22(ctx) { p(ctx2, dirty) { const filecomponent_changes = {}; if (dirty & /*hierarchy*/ - 1) - filecomponent_changes.change = /*entity*/ - ctx2[15].data; + 1) filecomponent_changes.change = /*entity*/ + ctx2[16].data; if (dirty & /*plugin*/ - 2) - filecomponent_changes.manager = /*plugin*/ - ctx2[1].gitManager; + 2) filecomponent_changes.manager = /*plugin*/ + ctx2[1].gitManager; if (dirty & /*view*/ - 4) - filecomponent_changes.view = /*view*/ - ctx2[2]; + 4) filecomponent_changes.view = /*view*/ + ctx2[2]; filecomponent.$set(filecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(filecomponent.$$.fragment, local); current = true; }, @@ -41503,7 +41166,7 @@ function create_if_block_13(ctx) { props: { change: ( /*entity*/ - ctx[15].data + ctx[16].data ), manager: ( /*plugin*/ @@ -41526,22 +41189,18 @@ function create_if_block_13(ctx) { p(ctx2, dirty) { const stagedfilecomponent_changes = {}; if (dirty & /*hierarchy*/ - 1) - stagedfilecomponent_changes.change = /*entity*/ - ctx2[15].data; + 1) stagedfilecomponent_changes.change = /*entity*/ + ctx2[16].data; if (dirty & /*plugin*/ - 2) - stagedfilecomponent_changes.manager = /*plugin*/ - ctx2[1].gitManager; + 2) stagedfilecomponent_changes.manager = /*plugin*/ + ctx2[1].gitManager; if (dirty & /*view*/ - 4) - stagedfilecomponent_changes.view = /*view*/ - ctx2[2]; + 4) stagedfilecomponent_changes.view = /*view*/ + ctx2[2]; stagedfilecomponent.$set(stagedfilecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(stagedfilecomponent.$$.fragment, local); current = true; }, @@ -41564,9 +41223,8 @@ function create_each_block4(ctx) { function select_block_type(ctx2, dirty) { if ( /*entity*/ - ctx2[15].data - ) - return 0; + ctx2[16].data + ) return 0; return 1; } current_block_type_index = select_block_type(ctx, -1); @@ -41604,8 +41262,7 @@ function create_each_block4(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); current = true; }, @@ -41695,8 +41352,7 @@ function create_fragment8(ctx) { } }, i(local) { - if (current) - return; + if (current) return; for (let i = 0; i < each_value.length; i += 1) { transition_in(each_blocks[i]); } @@ -41754,23 +41410,18 @@ function instance8($$self, $$props, $$invalidate) { const click_handler_1 = (entity) => discard(entity); const click_handler_2 = (entity) => stage(entity.path); const click_handler_3 = (entity) => fold(entity); + const auxclick_handler = (entity, event) => mayTriggerFileMenu(view.app, event, entity.vaultPath, view.leaf, "git-source-control"); $$self.$$set = ($$props2) => { - if ("hierarchy" in $$props2) - $$invalidate(0, hierarchy = $$props2.hierarchy); - if ("plugin" in $$props2) - $$invalidate(1, plugin = $$props2.plugin); - if ("view" in $$props2) - $$invalidate(2, view = $$props2.view); - if ("fileType" in $$props2) - $$invalidate(3, fileType = $$props2.fileType); - if ("topLevel" in $$props2) - $$invalidate(4, topLevel = $$props2.topLevel); + if ("hierarchy" in $$props2) $$invalidate(0, hierarchy = $$props2.hierarchy); + if ("plugin" in $$props2) $$invalidate(1, plugin = $$props2.plugin); + if ("view" in $$props2) $$invalidate(2, view = $$props2.view); + if ("fileType" in $$props2) $$invalidate(3, fileType = $$props2.fileType); + if ("topLevel" in $$props2) $$invalidate(4, topLevel = $$props2.topLevel); }; $$self.$$.update = () => { if ($$self.$$.dirty & /*view*/ 4) { - $: - $$invalidate(6, side = view.leaf.getRoot().side == "left" ? "right" : "left"); + $: $$invalidate(6, side = view.leaf.getRoot().side == "left" ? "right" : "left"); } }; return [ @@ -41788,7 +41439,8 @@ function instance8($$self, $$props, $$invalidate) { click_handler, click_handler_1, click_handler_2, - click_handler_3 + click_handler_3, + auxclick_handler ]; } var TreeComponent = class extends SvelteComponent { @@ -41941,8 +41593,7 @@ function create_if_block8(ctx) { div4 = element("div"); t4 = text(t4_value); t5 = space(); - if (if_block0) - if_block0.c(); + if (if_block0) if_block0.c(); t6 = space(); div16 = element("div"); div15 = element("div"); @@ -41963,11 +41614,9 @@ function create_if_block8(ctx) { div13 = element("div"); t12 = text(t12_value); t13 = space(); - if (if_block1) - if_block1.c(); + if (if_block1) if_block1.c(); t14 = space(); - if (if_block2) - if_block2.c(); + if (if_block2) if_block2.c(); attr(div0, "class", "tree-item-icon nav-folder-collapse-indicator collapse-icon"); toggle_class(div0, "is-collapsed", !/*stagedOpen*/ ctx[13]); @@ -42019,8 +41668,7 @@ function create_if_block8(ctx) { append2(div5, div4); append2(div4, t4); append2(div7, t5); - if (if_block0) - if_block0.m(div7, null); + if (if_block0) if_block0.m(div7, null); append2(div17, t6); append2(div17, div16); append2(div16, div15); @@ -42038,11 +41686,9 @@ function create_if_block8(ctx) { append2(div14, div13); append2(div13, t12); append2(div16, t13); - if (if_block1) - if_block1.m(div16, null); + if (if_block1) if_block1.m(div16, null); append2(div17, t14); - if (if_block2) - if_block2.m(div17, null); + if (if_block2) if_block2.m(div17, null); current = true; if (!mounted) { dispose = [ @@ -42082,8 +41728,7 @@ function create_if_block8(ctx) { } if ((!current || dirty[0] & /*status*/ 64) && t4_value !== (t4_value = /*status*/ - ctx2[6].staged.length + "")) - set_data(t4, t4_value); + ctx2[6].staged.length + "")) set_data(t4, t4_value); if ( /*stagedOpen*/ ctx2[13] @@ -42119,8 +41764,7 @@ function create_if_block8(ctx) { } if ((!current || dirty[0] & /*status*/ 64) && t12_value !== (t12_value = /*status*/ - ctx2[6].changed.length + "")) - set_data(t12, t12_value); + ctx2[6].changed.length + "")) set_data(t12, t12_value); if ( /*changesOpen*/ ctx2[12] @@ -42174,8 +41818,7 @@ function create_if_block8(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block0); transition_in(if_block1); transition_in(if_block2); @@ -42192,13 +41835,10 @@ function create_if_block8(ctx) { detach(div18); } ctx[34](null); - if (if_block0) - if_block0.d(); + if (if_block0) if_block0.d(); ctx[36](null); - if (if_block1) - if_block1.d(); - if (if_block2) - if_block2.d(); + if (if_block1) if_block1.d(); + if (if_block2) if_block2.d(); mounted = false; run_all(dispose); } @@ -42216,8 +41856,7 @@ function create_if_block_6(ctx) { if ( /*showTree*/ ctx2[3] - ) - return 0; + ) return 0; return 1; } current_block_type_index = select_block_type(ctx, [-1, -1]); @@ -42256,15 +41895,12 @@ function create_if_block_6(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); if (local) { add_render_callback(() => { - if (!current) - return; - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); + if (!current) return; + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); div_transition.run(1); }); } @@ -42273,8 +41909,7 @@ function create_if_block_6(ctx) { o(local) { transition_out(if_block); if (local) { - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); div_transition.run(0); } current = false; @@ -42284,8 +41919,7 @@ function create_if_block_6(ctx) { detach(div); } if_blocks[current_block_type_index].d(); - if (detaching && div_transition) - div_transition.end(); + if (detaching && div_transition) div_transition.end(); } }; } @@ -42347,8 +41981,7 @@ function create_else_block_2(ctx) { } }, i(local) { - if (current) - return; + if (current) return; for (let i = 0; i < each_value_2.length; i += 1) { transition_in(each_blocks[i]); } @@ -42401,22 +42034,18 @@ function create_if_block_7(ctx) { p(ctx2, dirty) { const treecomponent_changes = {}; if (dirty[0] & /*stagedHierarchy*/ - 1024) - treecomponent_changes.hierarchy = /*stagedHierarchy*/ - ctx2[10]; + 1024) treecomponent_changes.hierarchy = /*stagedHierarchy*/ + ctx2[10]; if (dirty[0] & /*plugin*/ - 1) - treecomponent_changes.plugin = /*plugin*/ - ctx2[0]; + 1) treecomponent_changes.plugin = /*plugin*/ + ctx2[0]; if (dirty[0] & /*view*/ - 2) - treecomponent_changes.view = /*view*/ - ctx2[1]; + 2) treecomponent_changes.view = /*view*/ + ctx2[1]; treecomponent.$set(treecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(treecomponent.$$.fragment, local); current = true; }, @@ -42459,22 +42088,18 @@ function create_each_block_2(ctx) { p(ctx2, dirty) { const stagedfilecomponent_changes = {}; if (dirty[0] & /*status*/ - 64) - stagedfilecomponent_changes.change = /*stagedFile*/ - ctx2[45]; + 64) stagedfilecomponent_changes.change = /*stagedFile*/ + ctx2[45]; if (dirty[0] & /*view*/ - 2) - stagedfilecomponent_changes.view = /*view*/ - ctx2[1]; + 2) stagedfilecomponent_changes.view = /*view*/ + ctx2[1]; if (dirty[0] & /*plugin*/ - 1) - stagedfilecomponent_changes.manager = /*plugin*/ - ctx2[0].gitManager; + 1) stagedfilecomponent_changes.manager = /*plugin*/ + ctx2[0].gitManager; stagedfilecomponent.$set(stagedfilecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(stagedfilecomponent.$$.fragment, local); current = true; }, @@ -42499,8 +42124,7 @@ function create_if_block_43(ctx) { if ( /*showTree*/ ctx2[3] - ) - return 0; + ) return 0; return 1; } current_block_type_index = select_block_type_1(ctx, [-1, -1]); @@ -42539,15 +42163,12 @@ function create_if_block_43(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); if (local) { add_render_callback(() => { - if (!current) - return; - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); + if (!current) return; + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); div_transition.run(1); }); } @@ -42556,8 +42177,7 @@ function create_if_block_43(ctx) { o(local) { transition_out(if_block); if (local) { - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); div_transition.run(0); } current = false; @@ -42567,8 +42187,7 @@ function create_if_block_43(ctx) { detach(div); } if_blocks[current_block_type_index].d(); - if (detaching && div_transition) - div_transition.end(); + if (detaching && div_transition) div_transition.end(); } }; } @@ -42630,8 +42249,7 @@ function create_else_block_12(ctx) { } }, i(local) { - if (current) - return; + if (current) return; for (let i = 0; i < each_value_1.length; i += 1) { transition_in(each_blocks[i]); } @@ -42684,22 +42302,18 @@ function create_if_block_52(ctx) { p(ctx2, dirty) { const treecomponent_changes = {}; if (dirty[0] & /*changeHierarchy*/ - 512) - treecomponent_changes.hierarchy = /*changeHierarchy*/ - ctx2[9]; + 512) treecomponent_changes.hierarchy = /*changeHierarchy*/ + ctx2[9]; if (dirty[0] & /*plugin*/ - 1) - treecomponent_changes.plugin = /*plugin*/ - ctx2[0]; + 1) treecomponent_changes.plugin = /*plugin*/ + ctx2[0]; if (dirty[0] & /*view*/ - 2) - treecomponent_changes.view = /*view*/ - ctx2[1]; + 2) treecomponent_changes.view = /*view*/ + ctx2[1]; treecomponent.$set(treecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(treecomponent.$$.fragment, local); current = true; }, @@ -42743,22 +42357,18 @@ function create_each_block_1(ctx) { p(ctx2, dirty) { const filecomponent_changes = {}; if (dirty[0] & /*status*/ - 64) - filecomponent_changes.change = /*change*/ - ctx2[40]; + 64) filecomponent_changes.change = /*change*/ + ctx2[40]; if (dirty[0] & /*view*/ - 2) - filecomponent_changes.view = /*view*/ - ctx2[1]; + 2) filecomponent_changes.view = /*view*/ + ctx2[1]; if (dirty[0] & /*plugin*/ - 1) - filecomponent_changes.manager = /*plugin*/ - ctx2[0].gitManager; + 1) filecomponent_changes.manager = /*plugin*/ + ctx2[0].gitManager; filecomponent.$set(filecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(filecomponent.$$.fragment, local); current = true; }, @@ -42805,8 +42415,7 @@ function create_if_block_14(ctx) { span = element("span"); t3 = text(t3_value); t4 = space(); - if (if_block) - if_block.c(); + if (if_block) if_block.c(); attr(div0, "class", "tree-item-icon nav-folder-collapse-indicator collapse-icon"); attr(div1, "class", "tree-item-inner nav-folder-title-content"); attr(span, "class", "tree-item-flair"); @@ -42825,8 +42434,7 @@ function create_if_block_14(ctx) { append2(div2, span); append2(span, t3); append2(div3, t4); - if (if_block) - if_block.m(div3, null); + if (if_block) if_block.m(div3, null); current = true; if (!mounted) { dispose = listen( @@ -42841,8 +42449,7 @@ function create_if_block_14(ctx) { p(ctx2, dirty) { if ((!current || dirty[0] & /*lastPulledFiles*/ 128) && t3_value !== (t3_value = /*lastPulledFiles*/ - ctx2[7].length + "")) - set_data(t3, t3_value); + ctx2[7].length + "")) set_data(t3, t3_value); if ( /*lastPulledFilesOpen*/ ctx2[14] @@ -42873,8 +42480,7 @@ function create_if_block_14(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); current = true; }, @@ -42886,8 +42492,7 @@ function create_if_block_14(ctx) { if (detaching) { detach(div3); } - if (if_block) - if_block.d(); + if (if_block) if_block.d(); mounted = false; dispose(); } @@ -42905,8 +42510,7 @@ function create_if_block_23(ctx) { if ( /*showTree*/ ctx2[3] - ) - return 0; + ) return 0; return 1; } current_block_type_index = select_block_type_2(ctx, [-1, -1]); @@ -42945,15 +42549,12 @@ function create_if_block_23(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); if (local) { add_render_callback(() => { - if (!current) - return; - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); + if (!current) return; + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); div_transition.run(1); }); } @@ -42962,8 +42563,7 @@ function create_if_block_23(ctx) { o(local) { transition_out(if_block); if (local) { - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); div_transition.run(0); } current = false; @@ -42973,8 +42573,7 @@ function create_if_block_23(ctx) { detach(div); } if_blocks[current_block_type_index].d(); - if (detaching && div_transition) - div_transition.end(); + if (detaching && div_transition) div_transition.end(); } }; } @@ -43036,8 +42635,7 @@ function create_else_block4(ctx) { } }, i(local) { - if (current) - return; + if (current) return; for (let i = 0; i < each_value.length; i += 1) { transition_in(each_blocks[i]); } @@ -43090,22 +42688,18 @@ function create_if_block_33(ctx) { p(ctx2, dirty) { const treecomponent_changes = {}; if (dirty[0] & /*lastPulledFilesHierarchy*/ - 2048) - treecomponent_changes.hierarchy = /*lastPulledFilesHierarchy*/ - ctx2[11]; + 2048) treecomponent_changes.hierarchy = /*lastPulledFilesHierarchy*/ + ctx2[11]; if (dirty[0] & /*plugin*/ - 1) - treecomponent_changes.plugin = /*plugin*/ - ctx2[0]; + 1) treecomponent_changes.plugin = /*plugin*/ + ctx2[0]; if (dirty[0] & /*view*/ - 2) - treecomponent_changes.view = /*view*/ - ctx2[1]; + 2) treecomponent_changes.view = /*view*/ + ctx2[1]; treecomponent.$set(treecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(treecomponent.$$.fragment, local); current = true; }, @@ -43145,18 +42739,15 @@ function create_each_block5(ctx) { p(ctx2, dirty) { const pulledfilecomponent_changes = {}; if (dirty[0] & /*lastPulledFiles*/ - 128) - pulledfilecomponent_changes.change = /*change*/ - ctx2[40]; + 128) pulledfilecomponent_changes.change = /*change*/ + ctx2[40]; if (dirty[0] & /*view*/ - 2) - pulledfilecomponent_changes.view = /*view*/ - ctx2[1]; + 2) pulledfilecomponent_changes.view = /*view*/ + ctx2[1]; pulledfilecomponent.$set(pulledfilecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(pulledfilecomponent.$$.fragment, local); current = true; }, @@ -43232,12 +42823,10 @@ function create_fragment9(ctx) { div10 = element("div"); textarea = element("textarea"); t8 = space(); - if (if_block0) - if_block0.c(); + if (if_block0) if_block0.c(); t9 = space(); div11 = element("div"); - if (if_block1) - if_block1.c(); + if (if_block1) if_block1.c(); attr(div0, "id", "backup-btn"); attr(div0, "data-icon", "arrow-up-circle"); attr(div0, "class", "clickable-icon nav-action-button"); @@ -43329,12 +42918,10 @@ function create_fragment9(ctx) { ctx[2] ); append2(div10, t8); - if (if_block0) - if_block0.m(div10, null); + if (if_block0) if_block0.m(div10, null); append2(main, t9); append2(main, div11); - if (if_block1) - if_block1.m(div11, null); + if (if_block1) if_block1.m(div11, null); current = true; if (!mounted) { dispose = [ @@ -43460,8 +43047,7 @@ function create_fragment9(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block1); current = true; }, @@ -43481,10 +43067,8 @@ function create_fragment9(ctx) { ctx[28](null); ctx[29](null); ctx[31](null); - if (if_block0) - if_block0.d(); - if (if_block1) - if_block1.d(); + if (if_block0) if_block0.d(); + if (if_block1) if_block1.d(); mounted = false; run_all(dispose); } @@ -43714,10 +43298,8 @@ function instance9($$self, $$props, $$invalidate) { const click_handler_3 = () => $$invalidate(12, changesOpen = !changesOpen); const click_handler_4 = () => $$invalidate(14, lastPulledFilesOpen = !lastPulledFilesOpen); $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - if ("view" in $$props2) - $$invalidate(1, view = $$props2.view); + if ("plugin" in $$props2) $$invalidate(0, plugin = $$props2.plugin); + if ("view" in $$props2) $$invalidate(1, view = $$props2.view); }; $$self.$$.update = () => { if ($$self.$$.dirty[0] & /*layoutBtn, showTree*/ @@ -43731,8 +43313,7 @@ function instance9($$self, $$props, $$invalidate) { } if ($$self.$$.dirty[0] & /*commitMessage*/ 4) { - $: - $$invalidate(15, rows = (commitMessage.match(/\n/g) || []).length + 1 || 1); + $: $$invalidate(15, rows = (commitMessage.match(/\n/g) || []).length + 1 || 1); } }; return [ @@ -43934,12 +43515,13 @@ var ObsidianGit = class extends import_obsidian31.Plugin { id: "open-git-view", name: "Open source control view", callback: async () => { + var _a2; const leafs = this.app.workspace.getLeavesOfType( SOURCE_CONTROL_VIEW_CONFIG.type ); let leaf; if (leafs.length === 0) { - leaf = this.app.workspace.getRightLeaf(false); + leaf = (_a2 = this.app.workspace.getRightLeaf(false)) != null ? _a2 : this.app.workspace.getLeaf(); await leaf.setViewState({ type: SOURCE_CONTROL_VIEW_CONFIG.type }); @@ -43954,12 +43536,13 @@ var ObsidianGit = class extends import_obsidian31.Plugin { id: "open-history-view", name: "Open history view", callback: async () => { + var _a2; const leafs = this.app.workspace.getLeavesOfType( HISTORY_VIEW_CONFIG.type ); let leaf; if (leafs.length === 0) { - leaf = this.app.workspace.getRightLeaf(false); + leaf = (_a2 = this.app.workspace.getRightLeaf(false)) != null ? _a2 : this.app.workspace.getLeaf(); await leaf.setViewState({ type: HISTORY_VIEW_CONFIG.type }); @@ -44005,8 +43588,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { id: "view-history-on-github", name: "Open file history on GitHub", editorCallback: (_, { file }) => { - if (file) - return openHistoryInGitHub(file, this.gitManager); + if (file) return openHistoryInGitHub(file, this.gitManager); } }); this.addCommand({ @@ -44032,15 +43614,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { if (checking) { return file !== null; } else { - this.app.vault.adapter.append( - this.gitManager.getRelativeVaultPath(".gitignore"), - "\n" + this.gitManager.getRelativeRepoPath( - file.path, - true - ) - ).then(() => { - this.refresh(); - }); + this.addFileToGitignore(file); } } }); @@ -44203,8 +43777,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { id: "list-changed-files", name: "List changed files", callback: async () => { - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; const status2 = await this.gitManager.status(); console.log(status2); this.setState(0 /* idle */); @@ -44240,8 +43813,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { id: "discard-all", name: "CAUTION: Discard all changes", callback: async () => { - if (!await this.isAllInitialized()) - return false; + if (!await this.isAllInitialized()) return false; const modal = new GeneralModal({ options: ["NO", "YES"], placeholder: "Do you want to discard all changes to tracked files? This action cannot be undone.", @@ -44320,51 +43892,65 @@ var ObsidianGit = class extends import_obsidian31.Plugin { ); } } + async addFileToGitignore(file) { + await this.app.vault.adapter.append( + this.gitManager.getRelativeVaultPath(".gitignore"), + "\n" + this.gitManager.getRelativeRepoPath(file.path, true) + ); + this.refresh(); + } handleFileMenu(menu, file, source) { - if (!this.settings.showFileMenu) - return; - if (source !== "file-explorer-context-menu") { - return; - } - if (!file) { - return; - } - if (!this.gitReady) - return; - menu.addItem((item) => { - item.setTitle(`Git: Stage`).setIcon("plus-circle").setSection("action").onClick((_) => { - this.promiseQueue.addTask(async () => { - if (file instanceof import_obsidian31.TFile) { - await this.gitManager.stage(file.path, true); - } else { - await this.gitManager.stageAll({ - dir: this.gitManager.getRelativeRepoPath( - file.path, - true - ) - }); - } - this.displayMessage(`Staged ${file.path}`); + if (!this.gitReady) return; + if (!this.settings.showFileMenu) return; + if (!file) return; + if (this.settings.showFileMenu && source == "file-explorer-context-menu") { + menu.addItem((item) => { + item.setTitle(`Git: Stage`).setIcon("plus-circle").setSection("action").onClick((_) => { + this.promiseQueue.addTask(async () => { + if (file instanceof import_obsidian31.TFile) { + await this.gitManager.stage(file.path, true); + } else { + await this.gitManager.stageAll({ + dir: this.gitManager.getRelativeRepoPath( + file.path, + true + ) + }); + } + this.displayMessage(`Staged ${file.path}`); + }); }); }); - }); - menu.addItem((item) => { - item.setTitle(`Git: Unstage`).setIcon("minus-circle").setSection("action").onClick((_) => { - this.promiseQueue.addTask(async () => { - if (file instanceof import_obsidian31.TFile) { - await this.gitManager.unstage(file.path, true); - } else { - await this.gitManager.unstageAll({ - dir: this.gitManager.getRelativeRepoPath( - file.path, - true - ) - }); - } - this.displayMessage(`Unstaged ${file.path}`); + menu.addItem((item) => { + item.setTitle(`Git: Unstage`).setIcon("minus-circle").setSection("action").onClick((_) => { + this.promiseQueue.addTask(async () => { + if (file instanceof import_obsidian31.TFile) { + await this.gitManager.unstage(file.path, true); + } else { + await this.gitManager.unstageAll({ + dir: this.gitManager.getRelativeRepoPath( + file.path, + true + ) + }); + } + this.displayMessage(`Unstaged ${file.path}`); + }); }); }); - }); + menu.addItem((item) => { + item.setTitle(`Git: Add to .gitignore`).setIcon("file-x").setSection("action").onClick((_) => { + this.addFileToGitignore(file); + }); + }); + } + if (source == "git-source-control") { + menu.addItem((item) => { + item.setTitle(`Git: Add to .gitignore`).setIcon("file-x").setSection("action").onClick((_) => { + this.addFileToGitignore(file); + }); + }); + } } async migrateSettings() { if (this.settings.mergeOnPull != void 0) { @@ -44606,8 +44192,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { } ///Used for command async pullChangesFromRemote() { - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; const filesUpdated = await this.pull(); this.setUpAutoBackup(); if (filesUpdated === false) { @@ -44629,8 +44214,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { this.setState(0 /* idle */); } async createBackup(fromAutoBackup, requestCustomMessage = false, commitMessage) { - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; if (this.settings.syncMethod == "reset" && this.settings.pullBeforePush) { await this.pull(); } @@ -44661,8 +44245,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { commitMessage, amend = false }) { - if (!await this.isAllInitialized()) - return false; + if (!await this.isAllInitialized()) return false; let hadConflict = this.localStorage.getConflict(); let changedFiles; let status2; @@ -44788,8 +44371,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { return false; } async push() { - if (!await this.isAllInitialized()) - return false; + if (!await this.isAllInitialized()) return false; if (!await this.remotesAreSet()) { return false; } @@ -44867,8 +44449,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { } } async stageFile(file) { - if (!await this.isAllInitialized()) - return false; + if (!await this.isAllInitialized()) return false; await this.gitManager.stage(file.path, true); this.displayMessage(`Staged ${file.path}`); dispatchEvent(new CustomEvent("git-refresh")); @@ -44876,8 +44457,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { return true; } async unstageFile(file) { - if (!await this.isAllInitialized()) - return false; + if (!await this.isAllInitialized()) return false; await this.gitManager.unstage(file.path, true); this.displayMessage(`Unstaged ${file.path}`); dispatchEvent(new CustomEvent("git-refresh")); @@ -44886,8 +44466,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { } async switchBranch() { var _a2; - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; const branchInfo = await this.gitManager.branchInfo(); const selectedBranch = await new BranchModal( branchInfo.branches @@ -44901,8 +44480,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { } async switchRemoteBranch() { var _a2; - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; const selectedBranch = await this.selectRemoteBranch() || ""; const [remote, branch2] = splitRemoteBranch(selectedBranch); if (branch2 != void 0 && remote != void 0) { @@ -44914,8 +44492,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { } async createBranch() { var _a2; - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; const newBranch = await new GeneralModal({ placeholder: "Create new branch" }).open(); @@ -44928,11 +44505,9 @@ var ObsidianGit = class extends import_obsidian31.Plugin { } async deleteBranch() { var _a2; - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; const branchInfo = await this.gitManager.branchInfo(); - if (branchInfo.current) - branchInfo.branches.remove(branchInfo.current); + if (branchInfo.current) branchInfo.branches.remove(branchInfo.current); const branch2 = await new GeneralModal({ options: branchInfo.branches, placeholder: "Delete branch", @@ -45054,8 +44629,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { ); } } else { - if (time > 2147483647) - time = 2147483647; + if (time > 2147483647) time = 2147483647; this.timeoutIDBackup = window.setTimeout( () => this.doAutoBackup(), time @@ -45077,8 +44651,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { } startAutoPull(minutes) { let time = (minutes != null ? minutes : this.settings.autoPullInterval) * 6e4; - if (time > 2147483647) - time = 2147483647; + if (time > 2147483647) time = 2147483647; this.timeoutIDPull = window.setTimeout(() => { this.promiseQueue.addTask(() => this.pullChangesFromRemote()); this.saveLastAuto(/* @__PURE__ */ new Date(), "pull"); @@ -45088,8 +44661,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { } startAutoPush(minutes) { let time = (minutes != null ? minutes : this.settings.autoPushInterval) * 6e4; - if (time > 2147483647) - time = 2147483647; + if (time > 2147483647) time = 2147483647; this.timeoutIDPush = window.setTimeout(() => { this.promiseQueue.addTask(() => this.push()); this.saveLastAuto(/* @__PURE__ */ new Date(), "push"); @@ -45168,8 +44740,7 @@ I strongly recommend to use "Source mode" for viewing the conflicted files. For this.writeAndOpenFile(lines == null ? void 0 : lines.join("\n")); } async editRemotes() { - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; const remotes = await this.gitManager.getRemotes(); const nameModal = new GeneralModal({ options: remotes, @@ -45212,8 +44783,7 @@ I strongly recommend to use "Source mode" for viewing the conflicted files. For } } async removeRemote() { - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; const remotes = await this.gitManager.getRemotes(); const nameModal = new GeneralModal({ options: remotes, @@ -45240,8 +44810,7 @@ I strongly recommend to use "Source mode" for viewing the conflicted files. For } handleViewActiveState(leaf) { var _a2, _b; - if (!(leaf == null ? void 0 : leaf.view.getState().file)) - return; + if (!(leaf == null ? void 0 : leaf.view.getState().file)) return; const sourceControlLeaf = this.app.workspace.getLeavesOfType(SOURCE_CONTROL_VIEW_CONFIG.type).first(); const historyLeaf = this.app.workspace.getLeavesOfType(HISTORY_VIEW_CONFIG.type).first(); (_a2 = sourceControlLeaf == null ? void 0 : sourceControlLeaf.view.containerEl.querySelector(`div.nav-file-title.is-active`)) == null ? void 0 : _a2.removeClass("is-active"); diff --git a/.obsidian/plugins/obsidian-git/manifest.json b/.obsidian/plugins/obsidian-git/manifest.json index 91dde32c..3179c1e6 100644 --- a/.obsidian/plugins/obsidian-git/manifest.json +++ b/.obsidian/plugins/obsidian-git/manifest.json @@ -1,9 +1,10 @@ { + "author": "Vinzent", + "authorUrl": "https://github.com/Vinzent03", "id": "obsidian-git", "name": "Git", - "description": "Backup your vault with Git.", + "description": "Integrate Git version control with automatic backup and other advanced features.", "isDesktopOnly": false, "fundingUrl": "https://ko-fi.com/vinzent", - "js": "main.js", - "version": "2.24.3" + "version": "2.25.0" } diff --git a/.obsidian/plugins/obsidian-git/styles.css b/.obsidian/plugins/obsidian-git/styles.css index 71a55ea3..d5ad0cc4 100644 --- a/.obsidian/plugins/obsidian-git/styles.css +++ b/.obsidian/plugins/obsidian-git/styles.css @@ -77,6 +77,10 @@ height: auto; } +.is-active .git-tools .buttons > * { + color: var(--nav-item-color-active); +} + .git-author { color: var(--text-accent); } @@ -550,7 +554,7 @@ white-space: pre; /* Keep spaces and do not collapse them. */ } -@media(max-width:800px){ +@media (max-width: 800px) { /* hide git blame gutter not to superpose text */ .cm-gutterElement.obs-git-blame-gutter { display: none; diff --git a/.obsidian/plugins/obsidian-hider/main.js b/.obsidian/plugins/obsidian-hider/main.js index 0ea30980..d4ba43aa 100644 --- a/.obsidian/plugins/obsidian-hider/main.js +++ b/.obsidian/plugins/obsidian-hider/main.js @@ -1,219 +1,6 @@ -'use strict'; +/* +THIS IS A GENERATED/BUNDLED FILE BY ESBUILD +if you want to view the source, please visit the github repository of this plugin +*/ -var obsidian = require('obsidian'); - -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ - -function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} - -class Hider extends obsidian.Plugin { - constructor() { - super(...arguments); - // refresh function for when we change settings - this.refresh = () => { - // re-load the style - this.updateStyle(); - }; - // update the styles (at the start, or as the result of a settings change) - this.updateStyle = () => { - document.body.classList.toggle('hider-status', this.settings.hideStatus); - document.body.classList.toggle('hider-tabs', this.settings.hideTabs); - document.body.classList.toggle('hider-scroll', this.settings.hideScroll); - document.body.classList.toggle('hider-sidebar-buttons', this.settings.hideSidebarButtons); - document.body.classList.toggle('hider-tooltips', this.settings.hideTooltips); - document.body.classList.toggle('hider-search-suggestions', this.settings.hideSearchSuggestions); - document.body.classList.toggle('hider-file-nav-header', this.settings.hideFileNavButtons); - document.body.classList.toggle('hider-search-counts', this.settings.hideSearchCounts); - document.body.classList.toggle('hider-instructions', this.settings.hideInstructions); - document.body.classList.toggle('hider-meta', this.settings.hidePropertiesReading); - document.body.classList.toggle('hider-vault', this.settings.hideVault); - }; - } - onload() { - return __awaiter(this, void 0, void 0, function* () { - // load settings - yield this.loadSettings(); - // add the settings tab - this.addSettingTab(new HiderSettingTab(this.app, this)); - // add the toggle on/off command - this.addCommand({ - id: 'toggle-tab-containers', - name: 'Toggle tab bar', - callback: () => { - this.settings.hideTabs = !this.settings.hideTabs; - this.saveData(this.settings); - this.refresh(); - } - }); - this.addCommand({ - id: 'toggle-hider-status', - name: 'Toggle status bar', - callback: () => { - this.settings.hideStatus = !this.settings.hideStatus; - this.saveData(this.settings); - this.refresh(); - } - }); - this.refresh(); - }); - } - onunload() { - console.log('Unloading Hider plugin'); - } - loadSettings() { - return __awaiter(this, void 0, void 0, function* () { - this.settings = Object.assign(DEFAULT_SETTINGS, yield this.loadData()); - }); - } - saveSettings() { - return __awaiter(this, void 0, void 0, function* () { - yield this.saveData(this.settings); - }); - } -} -const DEFAULT_SETTINGS = { - hideStatus: false, - hideTabs: false, - hideScroll: false, - hideSidebarButtons: false, - hideTooltips: false, - hideFileNavButtons: false, - hideSearchSuggestions: false, - hideSearchCounts: false, - hideInstructions: false, - hidePropertiesReading: false, - hideVault: false -}; -class HiderSettingTab extends obsidian.PluginSettingTab { - constructor(app, plugin) { - super(app, plugin); - this.plugin = plugin; - } - display() { - let { containerEl } = this; - containerEl.empty(); - new obsidian.Setting(containerEl) - .setName('Hide tab bar') - .setDesc('Hides the tab container at the top of the window.') - .addToggle(toggle => toggle.setValue(this.plugin.settings.hideTabs) - .onChange((value) => { - this.plugin.settings.hideTabs = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new obsidian.Setting(containerEl) - .setName('Hide status bar') - .setDesc('Hides word count, character count and backlink count.') - .addToggle(toggle => toggle.setValue(this.plugin.settings.hideStatus) - .onChange((value) => { - this.plugin.settings.hideStatus = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new obsidian.Setting(containerEl) - .setName('Hide vault name') - .setDesc('Hides your vault profile. Warning: this also hides access to the Settings and vault switcher icons. You can use hotkeys or the command palette to open them.') - .addToggle(toggle => toggle.setValue(this.plugin.settings.hideVault) - .onChange((value) => { - this.plugin.settings.hideVault = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new obsidian.Setting(containerEl) - .setName('Hide scroll bars') - .setDesc('Hides all scroll bars.') - .addToggle(toggle => toggle.setValue(this.plugin.settings.hideScroll) - .onChange((value) => { - this.plugin.settings.hideScroll = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new obsidian.Setting(containerEl) - .setName('Hide sidebar toggle buttons') - .setDesc('Hides both sidebar buttons.') - .addToggle(toggle => toggle.setValue(this.plugin.settings.hideSidebarButtons) - .onChange((value) => { - this.plugin.settings.hideSidebarButtons = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new obsidian.Setting(containerEl) - .setName('Hide tooltips') - .setDesc('Hides all tooltips.') - .addToggle(toggle => toggle.setValue(this.plugin.settings.hideTooltips) - .onChange((value) => { - this.plugin.settings.hideTooltips = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new obsidian.Setting(containerEl) - .setName('Hide file explorer buttons') - .setDesc('Hides buttons at the top of file explorer (new file, new folder, etc).') - .addToggle(toggle => toggle.setValue(this.plugin.settings.hideFileNavButtons) - .onChange((value) => { - this.plugin.settings.hideFileNavButtons = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new obsidian.Setting(containerEl) - .setName('Hide instructions') - .setDesc('Hides instructional tips in modals.') - .addToggle(toggle => toggle.setValue(this.plugin.settings.hideInstructions) - .onChange((value) => { - this.plugin.settings.hideInstructions = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new obsidian.Setting(containerEl) - .setName('Hide search suggestions') - .setDesc('Hides suggestions in search pane.') - .addToggle(toggle => toggle.setValue(this.plugin.settings.hideSearchSuggestions) - .onChange((value) => { - this.plugin.settings.hideSearchSuggestions = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new obsidian.Setting(containerEl) - .setName('Hide count of search term matches') - .setDesc('Hides the number of matches within each search result.') - .addToggle(toggle => toggle.setValue(this.plugin.settings.hideSearchCounts) - .onChange((value) => { - this.plugin.settings.hideSearchCounts = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new obsidian.Setting(containerEl) - .setName('Hide properties in Reading view') - .setDesc('Hides the properties section in Reading view.') - .addToggle(toggle => toggle.setValue(this.plugin.settings.hidePropertiesReading) - .onChange((value) => { - this.plugin.settings.hidePropertiesReading = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - } -} - -module.exports = Hider; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZXMiOlsibm9kZV9tb2R1bGVzL3RzbGliL3RzbGliLmVzNi5qcyIsIm1haW4udHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyohICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqK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vcCgpOyBjb250aW51ZTtcclxuICAgICAgICAgICAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKCEodCA9IF8udHJ5cywgdCA9IHQubGVuZ3RoID4gMCAmJiB0W3QubGVuZ3RoIC0gMV0pICYmIChvcFswXSA9PT0gNiB8fCBvcFswXSA9PT0gMikpIHsgXyA9IDA7IGNvbnRpbnVlOyB9XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKG9wWzBdID09PSAzICYmICghdCB8fCAob3BbMV0gPiB0WzBdICYmIG9wWzFdIDwgdFszXSkpKSB7IF8ubGFiZWwgPSBvcFsxXTsgYnJlYWs7IH1cclxuICAgICAgICAgICAgICAgICAgICBpZiAob3BbMF0gPT09IDYgJiYgXy5sYWJlbCA8IHRbMV0pIHsgXy5sYWJlbCA9IHRbMV07IHQgPSBvcDsgYnJlYWs7IH1cclxuICAgICAgICAgICAgICAgICAgICBpZiAodCAmJiBfLmxhYmVsIDwgdFsyXSkgeyBfLmxhYmVsID0gdFsyXTsgXy5vcHMucHVzaChvcCk7IGJyZWFrOyB9XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRbMl0pIF8ub3BzLnBvcCgpO1xyXG4gICAgICAgICAgICAgICAgICAgIF8udHJ5cy5wb3AoKTsgY29udGludWU7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgb3AgPSBib2R5LmNhbGwodGhpc0FyZywgXyk7XHJcbiAgICAgICAgfSBjYXRjaCAoZSkgeyBvcCA9IFs2LCBlXTsgeSA9IDA7IH0gZmluYWxseSB7IGYgPSB0ID0gMDsgfVxyXG4gICAgICAgIGlmIChvcFswXSAmIDUpIHRocm93IG9wWzFdOyByZXR1cm4geyB2YWx1ZTogb3BbMF0gPyBvcFsxXSA6IHZvaWQgMCwgZG9uZTogdHJ1ZSB9O1xyXG4gICAgfVxyXG59XHJcblxyXG5leHBvcnQgdmFyIF9fY3JlYXRlQmluZGluZyA9IE9iamVjdC5jcm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BaUMsQ0FBQzthQUMxQyxPQUFPLENBQUMsK0NBQStDLENBQUM7YUFDeEQsU0FBUyxDQUFDLE1BQU0sSUFBSSxNQUFNLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLHFCQUFxQixDQUFDO2FBQzNFLFFBQVEsQ0FBQyxDQUFDLEtBQUs7WUFDZCxJQUFJLENBQUMsTUFBTSxDQUFDLFFBQVEsQ0FBQyxxQkFBcUIsR0FBRyxLQUFLLENBQUM7WUFDbkQsSUFBSSxDQUFDLE1BQU0sQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxRQUFRLENBQUMsQ0FBQztZQUMzQyxJQUFJLENBQUMsTUFBTSxDQUFDLE9BQU8sRUFBRSxDQUFDO1NBQ3JCLENBQUMsQ0FDSCxDQUFDO0tBRVQ7Ozs7OyJ9 +var g=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var r=(a,n)=>{for(var t in n)g(a,t,{get:n[t],enumerable:!0})},c=(a,n,t,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of d(n))!u.call(a,s)&&s!==t&&g(a,s,{get:()=>n[s],enumerable:!(e=o(n,s))||e.enumerable});return a};var p=a=>c(g({},"__esModule",{value:!0}),a);var S={};r(S,{default:()=>h});module.exports=p(S);var i=require("obsidian"),h=class extends i.Plugin{constructor(){super(...arguments);this.refresh=()=>{this.updateStyle()};this.updateStyle=()=>{document.body.classList.toggle("hider-status",this.settings.hideStatus),document.body.classList.toggle("hider-tabs",this.settings.hideTabs),document.body.classList.toggle("hider-scroll",this.settings.hideScroll),document.body.classList.toggle("hider-sidebar-buttons",this.settings.hideSidebarButtons),document.body.classList.toggle("hider-tooltips",this.settings.hideTooltips),document.body.classList.toggle("hider-search-suggestions",this.settings.hideSearchSuggestions),document.body.classList.toggle("hider-file-nav-header",this.settings.hideFileNavButtons),document.body.classList.toggle("hider-search-counts",this.settings.hideSearchCounts),document.body.classList.toggle("hider-instructions",this.settings.hideInstructions),document.body.classList.toggle("hider-meta",this.settings.hidePropertiesReading),document.body.classList.toggle("hider-vault",this.settings.hideVault)}}async onload(){await this.loadSettings(),this.addSettingTab(new l(this.app,this)),this.addCommand({id:"toggle-tab-containers",name:"Toggle tab bar",callback:()=>{this.settings.hideTabs=!this.settings.hideTabs,this.saveData(this.settings),this.refresh()}}),this.addCommand({id:"toggle-hider-status",name:"Toggle status bar",callback:()=>{this.settings.hideStatus=!this.settings.hideStatus,this.saveData(this.settings),this.refresh()}}),this.refresh()}onunload(){console.log("Unloading Hider plugin")}async loadSettings(){this.settings=Object.assign(b,await this.loadData())}async saveSettings(){await this.saveData(this.settings)}},b={hideStatus:!1,hideTabs:!1,hideScroll:!1,hideSidebarButtons:!1,hideTooltips:!1,hideFileNavButtons:!1,hideSearchSuggestions:!1,hideSearchCounts:!1,hideInstructions:!1,hidePropertiesReading:!1,hideVault:!1},l=class extends i.PluginSettingTab{constructor(t,e){super(t,e);this.plugin=e}display(){let{containerEl:t}=this;t.empty(),new i.Setting(t).setName("Hide tab bar").setDesc("Hides the tab container at the top of the window.").addToggle(e=>e.setValue(this.plugin.settings.hideTabs).onChange(s=>{this.plugin.settings.hideTabs=s,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new i.Setting(t).setName("Hide status bar").setDesc("Hides word count, character count and backlink count.").addToggle(e=>e.setValue(this.plugin.settings.hideStatus).onChange(s=>{this.plugin.settings.hideStatus=s,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new i.Setting(t).setName("Hide vault name").setDesc("Hides your vault profile. Warning: this also hides access to the Settings and vault switcher icons. You can use hotkeys or the command palette to open them.").addToggle(e=>e.setValue(this.plugin.settings.hideVault).onChange(s=>{this.plugin.settings.hideVault=s,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new i.Setting(t).setName("Hide scroll bars").setDesc("Hides all scroll bars.").addToggle(e=>e.setValue(this.plugin.settings.hideScroll).onChange(s=>{this.plugin.settings.hideScroll=s,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new i.Setting(t).setName("Hide sidebar toggle buttons").setDesc("Hides both sidebar buttons.").addToggle(e=>e.setValue(this.plugin.settings.hideSidebarButtons).onChange(s=>{this.plugin.settings.hideSidebarButtons=s,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new i.Setting(t).setName("Hide tooltips").setDesc("Hides all tooltips.").addToggle(e=>e.setValue(this.plugin.settings.hideTooltips).onChange(s=>{this.plugin.settings.hideTooltips=s,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new i.Setting(t).setName("Hide file explorer buttons").setDesc("Hides buttons at the top of file explorer (new file, new folder, etc).").addToggle(e=>e.setValue(this.plugin.settings.hideFileNavButtons).onChange(s=>{this.plugin.settings.hideFileNavButtons=s,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new i.Setting(t).setName("Hide instructions").setDesc("Hides instructional tips in modals.").addToggle(e=>e.setValue(this.plugin.settings.hideInstructions).onChange(s=>{this.plugin.settings.hideInstructions=s,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new i.Setting(t).setName("Hide search suggestions").setDesc("Hides suggestions in search pane.").addToggle(e=>e.setValue(this.plugin.settings.hideSearchSuggestions).onChange(s=>{this.plugin.settings.hideSearchSuggestions=s,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new i.Setting(t).setName("Hide count of search term matches").setDesc("Hides the number of matches within each search result.").addToggle(e=>e.setValue(this.plugin.settings.hideSearchCounts).onChange(s=>{this.plugin.settings.hideSearchCounts=s,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new i.Setting(t).setName("Hide properties in Reading view").setDesc("Hides the properties section in Reading view.").addToggle(e=>e.setValue(this.plugin.settings.hidePropertiesReading).onChange(s=>{this.plugin.settings.hidePropertiesReading=s,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()}))}}; diff --git a/.obsidian/plugins/obsidian-hider/manifest.json b/.obsidian/plugins/obsidian-hider/manifest.json index 777e9130..08406b93 100644 --- a/.obsidian/plugins/obsidian-hider/manifest.json +++ b/.obsidian/plugins/obsidian-hider/manifest.json @@ -1,11 +1,11 @@ -{ - "id": "obsidian-hider", - "name": "Hider", - "version": "1.4.0", - "minAppVersion": "1.6.0", - "description": "Hide UI elements such as tooltips, status, titlebar and more", - "author": "@kepano", - "authorUrl": "https://www.twitter.com/kepano", - "fundingUrl": "https://www.buymeacoffee.com/kepano", - "isDesktopOnly": false -} \ No newline at end of file +{ + "id": "obsidian-hider", + "name": "Hider", + "version": "1.5.1", + "minAppVersion": "1.6.0", + "description": "Hide UI elements such as tooltips, status, titlebar and more", + "author": "@kepano", + "authorUrl": "https://www.twitter.com/kepano", + "fundingUrl": "https://www.buymeacoffee.com/kepano", + "isDesktopOnly": false +} diff --git a/.obsidian/plugins/obsidian-hider/styles.css b/.obsidian/plugins/obsidian-hider/styles.css index 0e516443..2ae3f506 100644 --- a/.obsidian/plugins/obsidian-hider/styles.css +++ b/.obsidian/plugins/obsidian-hider/styles.css @@ -1,59 +1,66 @@ /* Hides vault name */ .hider-vault .workspace-sidedock-vault-profile, body.hider-vault:not(.is-mobile) .workspace-split.mod-left-split .workspace-sidedock-vault-profile { - display:none; + display:none; } /* Hide tabs */ .hider-tabs .mod-root .workspace-tabs .workspace-tab-header-container { - display: none; + display: none; +} + +.hider-tabs .mod-top-left-space .view-header { + padding-left: var(--frame-left-space); } /* Hide sidebar buttons */ .hider-sidebar-buttons .sidebar-toggle-button.mod-right, .hider-sidebar-buttons .sidebar-toggle-button.mod-left { - display: none; + display: none; } .hider-sidebar-buttons.mod-macos.is-hidden-frameless:not(.is-popout-window) .workspace .workspace-tabs.mod-top-right-space .workspace-tab-header-container { - padding-right: 4px; + padding-right: 4px; +} +.hider-sidebar-buttons.mod-macos { + --frame-left-space: 60px; } /* Hide meta */ .hider-meta .markdown-reading-view .metadata-container { - display:none; + display:none; } /* Hide scrollbars */ .hider-scroll ::-webkit-scrollbar { - display:none; + display:none; } /* Hide status */ .hider-status .status-bar { - display:none; + display:none; } /* Hide tooltips */ .hider-tooltips .tooltip { - display:none; + display:none; } /* Hide search suggestions */ .hider-search-suggestions .suggestion-container.mod-search-suggestion { - display: none; + display: none; } /* Hide search count flair */ .hider-search-counts .tree-item-flair:not(.tag-pane-tag-count) { - display:none; + display:none; } /* Hide instructions */ .hider-instructions .prompt-instructions { - display:none; + display:none; } /* Hide file nav header */ .hider-file-nav-header .workspace-leaf-content[data-type=file-explorer] .nav-header { - display: none; + display: none; } diff --git a/.obsidian/plugins/obsidian-linter/data.json b/.obsidian/plugins/obsidian-linter/data.json index 27d86a5f..7fd6e1b6 100644 --- a/.obsidian/plugins/obsidian-linter/data.json +++ b/.obsidian/plugins/obsidian-linter/data.json @@ -161,7 +161,7 @@ "enabled": true }, "empty-line-around-code-fences": { - "enabled": true + "enabled": false }, "empty-line-around-math-blocks": { "enabled": true @@ -205,7 +205,9 @@ "enabled": false }, "space-between-chinese-japanese-or-korean-and-english-or-numbers": { - "enabled": true + "enabled": true, + "english-symbols-punctuation-before": "-+;:'\"°%$)]", + "english-symbols-punctuation-after": "-+'\"([¥$" }, "trailing-spaces": { "enabled": true, @@ -234,6 +236,28 @@ }, "remove-multiple-blank-lines-on-paste": { "enabled": false + }, + "add-blank-line-after-yaml": { + "enabled": false + }, + "dedupe-yaml-array-values": { + "enabled": false, + "dedupe-alias-key": true, + "dedupe-tag-key": true, + "dedupe-array-keys": true, + "ignore-keys": "" + }, + "sort-yaml-array-values": { + "enabled": false, + "sort-alias-key": true, + "sort-tag-key": true, + "sort-array-keys": true, + "ignore-keys": "", + "sort-order": "Ascending Alphabetical" + }, + "default-language-for-code-fences": { + "enabled": false, + "default-language": "" } }, "lintOnSave": true, @@ -243,6 +267,7 @@ "displayLintOnFileChangeNotice": false, "settingsConvertedToConfigKeyValues": true, "foldersToIgnore": [], + "filesToIgnore": [], "linterLocale": "system-default", "logLevel": "ERROR", "lintCommands": [], diff --git a/.obsidian/plugins/obsidian-minimal-settings/main.js b/.obsidian/plugins/obsidian-minimal-settings/main.js index 7bcd5f7b..973794ce 100644 --- a/.obsidian/plugins/obsidian-minimal-settings/main.js +++ b/.obsidian/plugins/obsidian-minimal-settings/main.js @@ -3,979 +3,4 @@ THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source, please visit the github repository of this plugin */ -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); -var __export = (target, all) => { - __markAsModule(target); - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __reExport = (target, module2, desc) => { - if (module2 && typeof module2 === "object" || typeof module2 === "function") { - for (let key of __getOwnPropNames(module2)) - if (!__hasOwnProp.call(target, key) && key !== "default") - __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable }); - } - return target; -}; -var __toModule = (module2) => { - return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2); -}; -var __async = (__this, __arguments, generator) => { - return new Promise((resolve, reject) => { - var fulfilled = (value) => { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - }; - var rejected = (value) => { - try { - step(generator.throw(value)); - } catch (e) { - reject(e); - } - }; - var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); - step((generator = generator.apply(__this, __arguments)).next()); - }); -}; - -// main.ts -__export(exports, { - default: () => MinimalTheme -}); -var import_obsidian = __toModule(require("obsidian")); -var MinimalTheme = class extends import_obsidian.Plugin { - onload() { - return __async(this, null, function* () { - yield this.loadSettings(); - this.addSettingTab(new MinimalSettingTab(this.app, this)); - this.loadRules(); - let settingsUpdate = () => { - const fontSize = this.app.vault.getConfig("baseFontSize"); - this.settings.textNormal = fontSize; - if (this.app.vault.getConfig("foldHeading")) { - this.settings.folding = true; - this.saveData(this.settings); - console.log("Folding is on"); - } else { - this.settings.folding = false; - this.saveData(this.settings); - console.log("Folding is off"); - } - document.body.classList.toggle("minimal-folding", this.settings.folding); - if (this.app.vault.getConfig("showLineNumber")) { - this.settings.lineNumbers = true; - this.saveData(this.settings); - console.log("Line numbers are on"); - } else { - this.settings.lineNumbers = false; - this.saveData(this.settings); - console.log("Line numbers are off"); - } - document.body.classList.toggle("minimal-line-nums", this.settings.lineNumbers); - if (this.app.vault.getConfig("readableLineLength")) { - this.settings.readableLineLength = true; - this.saveData(this.settings); - console.log("Readable line length is on"); - } else { - this.settings.readableLineLength = false; - this.saveData(this.settings); - console.log("Readable line length is off"); - } - document.body.classList.toggle("minimal-readable", this.settings.readableLineLength); - document.body.classList.toggle("minimal-readable-off", !this.settings.readableLineLength); - }; - let sidebarUpdate = () => { - const sidebarEl = document.getElementsByClassName("mod-left-split")[0]; - const ribbonEl = document.getElementsByClassName("side-dock-ribbon")[0]; - if (sidebarEl && ribbonEl && document.body.classList.contains("theme-light") && this.settings.lightStyle == "minimal-light-contrast") { - sidebarEl.addClass("theme-dark"); - ribbonEl.addClass("theme-dark"); - } else if (sidebarEl && ribbonEl) { - sidebarEl.removeClass("theme-dark"); - ribbonEl.removeClass("theme-dark"); - } - }; - this.registerEvent(app.vault.on("config-changed", settingsUpdate)); - this.registerEvent(app.workspace.on("css-change", sidebarUpdate)); - settingsUpdate(); - app.workspace.onLayoutReady(() => { - sidebarUpdate(); - }); - const lightStyles = ["minimal-light", "minimal-light-tonal", "minimal-light-contrast", "minimal-light-white"]; - const darkStyles = ["minimal-dark", "minimal-dark-tonal", "minimal-dark-black"]; - const imgGridStyles = ["img-grid", "img-grid-ratio", "img-nogrid"]; - const tableWidthStyles = ["table-100", "table-default-width", "table-wide", "table-max"]; - const iframeWidthStyles = ["iframe-100", "iframe-default-width", "iframe-wide", "iframe-max"]; - const imgWidthStyles = ["img-100", "img-default-width", "img-wide", "img-max"]; - const mapWidthStyles = ["map-100", "map-default-width", "map-wide", "map-max"]; - const chartWidthStyles = ["chart-100", "chart-default-width", "chart-wide", "chart-max"]; - this.addCommand({ - id: "increase-body-font-size", - name: "Increase body font size", - callback: () => { - this.settings.textNormal = this.settings.textNormal + 0.5; - this.saveData(this.settings); - this.setFontSize(); - } - }); - this.addCommand({ - id: "decrease-body-font-size", - name: "Decrease body font size", - callback: () => { - this.settings.textNormal = this.settings.textNormal - 0.5; - this.saveData(this.settings); - this.setFontSize(); - } - }); - this.addCommand({ - id: "toggle-minimal-dark-cycle", - name: "Cycle between dark mode styles", - callback: () => { - this.settings.darkStyle = darkStyles[(darkStyles.indexOf(this.settings.darkStyle) + 1) % darkStyles.length]; - this.saveData(this.settings); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-light-cycle", - name: "Cycle between light mode styles", - callback: () => { - this.settings.lightStyle = lightStyles[(lightStyles.indexOf(this.settings.lightStyle) + 1) % lightStyles.length]; - this.saveData(this.settings); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-hidden-borders", - name: "Toggle sidebar borders", - callback: () => { - this.settings.bordersToggle = !this.settings.bordersToggle; - this.saveData(this.settings); - this.refresh(); - } - }); - this.addCommand({ - id: "toggle-colorful-headings", - name: "Toggle colorful headings", - callback: () => { - this.settings.colorfulHeadings = !this.settings.colorfulHeadings; - this.saveData(this.settings); - this.refresh(); - } - }); - this.addCommand({ - id: "toggle-minimal-focus-mode", - name: "Toggle focus mode", - callback: () => { - this.settings.focusMode = !this.settings.focusMode; - this.saveData(this.settings); - this.refresh(); - } - }); - this.addCommand({ - id: "toggle-minimal-colorful-frame", - name: "Toggle colorful window frame", - callback: () => { - this.settings.colorfulFrame = !this.settings.colorfulFrame; - this.saveData(this.settings); - this.refresh(); - } - }); - this.addCommand({ - id: "cycle-minimal-table-width", - name: "Cycle between table width options", - callback: () => { - this.settings.tableWidth = tableWidthStyles[(tableWidthStyles.indexOf(this.settings.tableWidth) + 1) % tableWidthStyles.length]; - this.saveData(this.settings); - this.refresh(); - } - }); - this.addCommand({ - id: "cycle-minimal-image-width", - name: "Cycle between image width options", - callback: () => { - this.settings.imgWidth = imgWidthStyles[(imgWidthStyles.indexOf(this.settings.imgWidth) + 1) % imgWidthStyles.length]; - this.saveData(this.settings); - this.refresh(); - } - }); - this.addCommand({ - id: "cycle-minimal-iframe-width", - name: "Cycle between iframe width options", - callback: () => { - this.settings.iframeWidth = iframeWidthStyles[(iframeWidthStyles.indexOf(this.settings.iframeWidth) + 1) % iframeWidthStyles.length]; - this.saveData(this.settings); - this.refresh(); - } - }); - this.addCommand({ - id: "cycle-minimal-chart-width", - name: "Cycle between chart width options", - callback: () => { - this.settings.chartWidth = chartWidthStyles[(chartWidthStyles.indexOf(this.settings.chartWidth) + 1) % chartWidthStyles.length]; - this.saveData(this.settings); - this.refresh(); - } - }); - this.addCommand({ - id: "cycle-minimal-map-width", - name: "Cycle between map width options", - callback: () => { - this.settings.mapWidth = mapWidthStyles[(mapWidthStyles.indexOf(this.settings.mapWidth) + 1) % mapWidthStyles.length]; - this.saveData(this.settings); - this.refresh(); - } - }); - this.addCommand({ - id: "toggle-minimal-img-grid", - name: "Toggle image grids", - callback: () => { - this.settings.imgGrid = !this.settings.imgGrid; - this.saveData(this.settings); - this.refresh(); - } - }); - this.addCommand({ - id: "toggle-minimal-switch", - name: "Switch between light and dark mode", - callback: () => { - this.updateTheme(); - } - }); - this.addCommand({ - id: "toggle-minimal-light-default", - name: "Use light mode (default)", - callback: () => { - this.settings.lightStyle = "minimal-light"; - this.saveData(this.settings); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-light-white", - name: "Use light mode (all white)", - callback: () => { - this.settings.lightStyle = "minimal-light-white"; - this.saveData(this.settings); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-light-tonal", - name: "Use light mode (low contrast)", - callback: () => { - this.settings.lightStyle = "minimal-light-tonal"; - this.saveData(this.settings); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-light-contrast", - name: "Use light mode (high contrast)", - callback: () => { - this.settings.lightStyle = "minimal-light-contrast"; - this.saveData(this.settings); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-dark-default", - name: "Use dark mode (default)", - callback: () => { - this.settings.darkStyle = "minimal-dark"; - this.saveData(this.settings); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-dark-tonal", - name: "Use dark mode (low contrast)", - callback: () => { - this.settings.darkStyle = "minimal-dark-tonal"; - this.saveData(this.settings); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-dark-black", - name: "Use dark mode (true black)", - callback: () => { - this.settings.darkStyle = "minimal-dark-black"; - this.saveData(this.settings); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-atom-light", - name: "Switch light color scheme to Atom (light)", - callback: () => { - this.settings.lightScheme = "minimal-atom-light"; - this.saveData(this.settings); - this.updateLightScheme(); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-ayu-light", - name: "Switch light color scheme to Ayu (light)", - callback: () => { - this.settings.lightScheme = "minimal-ayu-light"; - this.saveData(this.settings); - this.updateLightScheme(); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-catppuccin-light", - name: "Switch light color scheme to Catppuccin (light)", - callback: () => { - this.settings.lightScheme = "minimal-catppuccin-light"; - this.saveData(this.settings); - this.updateLightScheme(); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-default-light", - name: "Switch light color scheme to default (light)", - callback: () => { - this.settings.lightScheme = "minimal-default-light"; - this.saveData(this.settings); - this.updateLightScheme(); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-gruvbox-light", - name: "Switch light color scheme to Gruvbox (light)", - callback: () => { - this.settings.lightScheme = "minimal-gruvbox-light"; - this.saveData(this.settings); - this.updateLightScheme(); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-eink-light", - name: "Switch light color scheme to E-ink (light)", - callback: () => { - this.settings.lightScheme = "minimal-eink-light"; - this.saveData(this.settings); - this.updateLightScheme(); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-everforest-light", - name: "Switch light color scheme to Everforest (light)", - callback: () => { - this.settings.lightScheme = "minimal-everforest-light"; - this.saveData(this.settings); - this.updateLightScheme(); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-flexoki-light", - name: "Switch light color scheme to Flexoki (light)", - callback: () => { - this.settings.lightScheme = "minimal-flexoki-light"; - this.saveData(this.settings); - this.updateLightScheme(); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-macos-light", - name: "Switch light color scheme to macOS (light)", - callback: () => { - this.settings.lightScheme = "minimal-macos-light"; - this.saveData(this.settings); - this.updateLightScheme(); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-notion-light", - name: "Switch light color scheme to Sky (light)", - callback: () => { - this.settings.lightScheme = "minimal-notion-light"; - this.saveData(this.settings); - this.updateLightScheme(); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-nord-light", - name: "Switch light color scheme to Nord (light)", - callback: () => { - this.settings.lightScheme = "minimal-nord-light"; - this.saveData(this.settings); - this.updateLightScheme(); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-rose-pine-light", - name: "Switch light color scheme to Ros\xE9 Pine (light)", - callback: () => { - this.settings.lightScheme = "minimal-rose-pine-light"; - this.saveData(this.settings); - this.updateLightScheme(); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-solarized-light", - name: "Switch light color scheme to Solarized (light)", - callback: () => { - this.settings.lightScheme = "minimal-solarized-light"; - this.saveData(this.settings); - this.updateLightScheme(); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-things-light", - name: "Switch light color scheme to Things (light)", - callback: () => { - this.settings.lightScheme = "minimal-things-light"; - this.saveData(this.settings); - this.updateLightScheme(); - this.updateLightStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-atom-dark", - name: "Switch dark color scheme to Atom (dark)", - callback: () => { - this.settings.darkScheme = "minimal-atom-dark"; - this.saveData(this.settings); - this.updateDarkScheme(); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-ayu-dark", - name: "Switch dark color scheme to Ayu (dark)", - callback: () => { - this.settings.darkScheme = "minimal-ayu-dark"; - this.saveData(this.settings); - this.updateDarkScheme(); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-catppuccin-dark", - name: "Switch dark color scheme to Catppuccin (dark)", - callback: () => { - this.settings.darkScheme = "minimal-catppuccin-dark"; - this.saveData(this.settings); - this.updateDarkScheme(); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-dracula-dark", - name: "Switch dark color scheme to Dracula (dark)", - callback: () => { - this.settings.darkScheme = "minimal-dracula-dark"; - this.saveData(this.settings); - this.updateDarkScheme(); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-default-dark", - name: "Switch dark color scheme to default (dark)", - callback: () => { - this.settings.darkScheme = "minimal-default-dark"; - this.saveData(this.settings); - this.updateDarkScheme(); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-eink-dark", - name: "Switch dark color scheme to E-ink (dark)", - callback: () => { - this.settings.darkScheme = "minimal-eink-dark"; - this.saveData(this.settings); - this.updateDarkScheme(); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-everforest-dark", - name: "Switch dark color scheme to Everforest (dark)", - callback: () => { - this.settings.darkScheme = "minimal-everforest-dark"; - this.saveData(this.settings); - this.updateDarkScheme(); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-flexoki-dark", - name: "Switch dark color scheme to Flexoki (dark)", - callback: () => { - this.settings.darkScheme = "minimal-flexoki-dark"; - this.saveData(this.settings); - this.updateDarkScheme(); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-gruvbox-dark", - name: "Switch dark color scheme to Gruvbox (dark)", - callback: () => { - this.settings.darkScheme = "minimal-gruvbox-dark"; - this.saveData(this.settings); - this.updateDarkScheme(); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-macos-dark", - name: "Switch dark color scheme to macOS (dark)", - callback: () => { - this.settings.darkScheme = "minimal-macos-dark"; - this.saveData(this.settings); - this.updateDarkScheme(); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-nord-dark", - name: "Switch dark color scheme to Nord (dark)", - callback: () => { - this.settings.darkScheme = "minimal-nord-dark"; - this.saveData(this.settings); - this.updateDarkScheme(); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-notion-dark", - name: "Switch dark color scheme to Sky (dark)", - callback: () => { - this.settings.darkScheme = "minimal-notion-dark"; - this.saveData(this.settings); - this.updateDarkScheme(); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-rose-pine-dark", - name: "Switch dark color scheme to Ros\xE9 Pine (dark)", - callback: () => { - this.settings.darkScheme = "minimal-rose-pine-dark"; - this.saveData(this.settings); - this.updateDarkScheme(); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-solarized-dark", - name: "Switch dark color scheme to Solarized (dark)", - callback: () => { - this.settings.darkScheme = "minimal-solarized-dark"; - this.saveData(this.settings); - this.updateDarkScheme(); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-things-dark", - name: "Switch dark color scheme to Things (dark)", - callback: () => { - this.settings.darkScheme = "minimal-things-dark"; - this.saveData(this.settings); - this.updateDarkScheme(); - this.updateDarkStyle(); - } - }); - this.addCommand({ - id: "toggle-minimal-dev-block-width", - name: "Dev \u2014 Show block widths", - callback: () => { - this.settings.devBlockWidth = !this.settings.devBlockWidth; - this.saveData(this.settings); - this.refresh(); - } - }); - this.refresh(); - }); - } - onunload() { - console.log("Unloading Minimal Theme Settings plugin"); - const sidebarEl = document.getElementsByClassName("mod-left-split")[0]; - const ribbonEl = document.getElementsByClassName("side-dock-ribbon")[0]; - sidebarEl.removeClass("theme-dark"); - ribbonEl.removeClass("theme-dark"); - this.unloadRules(); - this.removeStyle(); - this.removeSettings(); - this.removeLightScheme(); - this.removeDarkScheme(); - } - loadSettings() { - return __async(this, null, function* () { - this.settings = Object.assign(DEFAULT_SETTINGS, yield this.loadData()); - }); - } - saveSettings() { - return __async(this, null, function* () { - yield this.saveData(this.settings); - }); - } - refresh() { - this.updateStyle(); - } - loadRules() { - const css = document.createElement("style"); - css.id = "minimal-theme"; - document.getElementsByTagName("head")[0].appendChild(css); - document.body.classList.add("minimal-theme"); - this.updateStyle(); - } - unloadRules() { - const styleElement = document.getElementById("minimal-theme"); - if (styleElement) { - styleElement.parentNode.removeChild(styleElement); - } - document.body.classList.remove("minimal-theme"); - } - setFontSize() { - this.app.vault.setConfig("baseFontSize", this.settings.textNormal); - this.app.updateFontSize(); - } - updateStyle() { - this.removeStyle(); - this.removeSettings(); - document.body.addClass(this.settings.lightStyle, this.settings.lightScheme, this.settings.darkStyle, this.settings.darkScheme); - document.body.classList.toggle("borders-none", !this.settings.bordersToggle); - document.body.classList.toggle("colorful-headings", this.settings.colorfulHeadings); - document.body.classList.toggle("colorful-frame", this.settings.colorfulFrame); - document.body.classList.toggle("colorful-active", this.settings.colorfulActiveStates); - document.body.classList.toggle("minimal-focus-mode", this.settings.focusMode); - document.body.classList.toggle("links-int-on", this.settings.underlineInternal); - document.body.classList.toggle("links-ext-on", this.settings.underlineExternal); - document.body.classList.toggle("full-width-media", this.settings.fullWidthMedia); - document.body.classList.toggle("img-grid", this.settings.imgGrid); - document.body.classList.toggle("minimal-dev-block-width", this.settings.devBlockWidth); - document.body.classList.toggle("minimal-status-off", !this.settings.minimalStatus); - document.body.classList.toggle("full-file-names", !this.settings.trimNames); - document.body.classList.toggle("labeled-nav", this.settings.labeledNav); - document.body.classList.toggle("minimal-folding", this.settings.folding); - document.body.addClass(this.settings.chartWidth, this.settings.tableWidth, this.settings.imgWidth, this.settings.iframeWidth, this.settings.mapWidth); - const el = document.getElementById("minimal-theme"); - if (!el) - throw "minimal-theme element not found!"; - else { - el.innerText = "body.minimal-theme{--font-ui-small:" + this.settings.textSmall + "px;--line-height:" + this.settings.lineHeight + ";--line-width:" + this.settings.lineWidth + "rem;--line-width-wide:" + this.settings.lineWidthWide + "rem;--max-width:" + this.settings.maxWidth + "%;--font-editor-override:" + this.settings.editorFont + ";"; - } - } - updateDarkStyle() { - document.body.removeClass("theme-light", "minimal-dark", "minimal-dark-tonal", "minimal-dark-black"); - document.body.addClass("theme-dark", this.settings.darkStyle); - if (this.app.vault.getConfig("theme") !== "system") { - this.app.setTheme("obsidian"); - this.app.vault.setConfig("theme", "obsidian"); - } - this.app.workspace.trigger("css-change"); - } - updateLightStyle() { - document.body.removeClass("theme-dark", "minimal-light", "minimal-light-tonal", "minimal-light-contrast", "minimal-light-white"); - document.body.addClass("theme-light", this.settings.lightStyle); - if (this.app.vault.getConfig("theme") !== "system") { - this.app.setTheme("moonstone"); - this.app.vault.setConfig("theme", "moonstone"); - } - this.app.workspace.trigger("css-change"); - } - updateDarkScheme() { - this.removeDarkScheme(); - document.body.addClass(this.settings.darkScheme); - } - updateLightScheme() { - this.removeLightScheme(); - document.body.addClass(this.settings.lightScheme); - } - updateTheme() { - if (this.app.vault.getConfig("theme") === "system") { - if (document.body.classList.contains("theme-light")) { - document.body.removeClass("theme-light"); - document.body.addClass("theme-dark"); - } else { - document.body.removeClass("theme-dark"); - document.body.addClass("theme-light"); - } - } else { - if (document.body.classList.contains("theme-light")) { - document.body.removeClass("theme-light"); - document.body.addClass("theme-dark"); - } else { - document.body.removeClass("theme-dark"); - document.body.addClass("theme-light"); - } - const currentTheme = this.app.vault.getConfig("theme"); - const newTheme = currentTheme === "moonstone" ? "obsidian" : "moonstone"; - this.app.setTheme(newTheme); - this.app.vault.setConfig("theme", newTheme); - } - this.app.workspace.trigger("css-change"); - } - removeSettings() { - document.body.removeClass("borders-none", "colorful-headings", "colorful-frame", "colorful-active", "minimal-focus-mode", "links-int-on", "links-ext-on", "full-width-media", "img-grid", "minimal-dev-block-width", "minimal-status-off", "full-file-names", "labeled-nav", "minimal-folding"); - document.body.removeClass("table-wide", "table-max", "table-100", "table-default-width", "iframe-wide", "iframe-max", "iframe-100", "iframe-default-width", "img-wide", "img-max", "img-100", "img-default-width", "chart-wide", "chart-max", "chart-100", "chart-default-width", "map-wide", "map-max", "map-100", "map-default-width"); - } - removeStyle() { - document.body.removeClass("minimal-light", "minimal-light-tonal", "minimal-light-contrast", "minimal-light-white", "minimal-dark", "minimal-dark-tonal", "minimal-dark-black"); - } - removeDarkScheme() { - document.body.removeClass("minimal-atom-dark", "minimal-ayu-dark", "minimal-catppuccin-dark", "minimal-default-dark", "minimal-dracula-dark", "minimal-eink-dark", "minimal-everforest-dark", "minimal-flexoki-dark", "minimal-gruvbox-dark", "minimal-macos-dark", "minimal-nord-dark", "minimal-notion-dark", "minimal-rose-pine-dark", "minimal-solarized-dark", "minimal-things-dark"); - } - removeLightScheme() { - document.body.removeClass("minimal-atom-light", "minimal-ayu-light", "minimal-catppuccin-light", "minimal-default-light", "minimal-eink-light", "minimal-everforest-light", "minimal-flexoki-light", "minimal-gruvbox-light", "minimal-macos-light", "minimal-nord-light", "minimal-notion-light", "minimal-rose-pine-light", "minimal-solarized-light", "minimal-things-light"); - } -}; -var DEFAULT_SETTINGS = { - lightStyle: "minimal-light", - darkStyle: "minimal-dark", - lightScheme: "minimal-default-light", - darkScheme: "minimal-default-dark", - editorFont: "", - lineHeight: 1.5, - lineWidth: 40, - lineWidthWide: 50, - maxWidth: 88, - textNormal: 16, - textSmall: 13, - imgGrid: false, - imgWidth: "img-default-width", - tableWidth: "table-default-width", - iframeWidth: "iframe-default-width", - mapWidth: "map-default-width", - chartWidth: "chart-default-width", - colorfulHeadings: false, - colorfulFrame: false, - colorfulActiveStates: false, - trimNames: true, - labeledNav: false, - fullWidthMedia: true, - bordersToggle: true, - minimalStatus: true, - focusMode: false, - underlineInternal: true, - underlineExternal: true, - folding: true, - lineNumbers: false, - readableLineLength: false, - devBlockWidth: false -}; -var MinimalSettingTab = class extends import_obsidian.PluginSettingTab { - constructor(app2, plugin) { - super(app2, plugin); - this.plugin = plugin; - } - display() { - let { containerEl } = this; - containerEl.empty(); - const colorSection = containerEl.createEl("div", { cls: "setting-item setting-item-heading" }); - const colorSectionInfo = colorSection.createEl("div", { cls: "setting-item-info" }); - colorSectionInfo.createEl("div", { text: "Color scheme", cls: "setting-item-name" }); - const colorDesc = colorSectionInfo.createEl("div", { cls: "setting-item-description" }); - colorDesc.appendChild(createEl("span", { - text: "To create a custom color scheme use the " - })); - colorDesc.appendChild(createEl("a", { - text: "Style Settings", - href: "obsidian://show-plugin?id=obsidian-style-settings" - })); - colorDesc.appendText(" plugin. See "); - colorDesc.appendChild(createEl("a", { - text: "documentation", - href: "https://minimal.guide/features/color-schemes" - })); - colorDesc.appendText(" for details."); - new import_obsidian.Setting(containerEl).setName("Light mode color scheme").setDesc("Preset color options for light mode.").addDropdown((dropdown) => dropdown.addOption("minimal-default-light", "Default").addOption("minimal-atom-light", "Atom").addOption("minimal-ayu-light", "Ayu").addOption("minimal-catppuccin-light", "Catppuccin").addOption("minimal-eink-light", "E-ink (beta)").addOption("minimal-everforest-light", "Everforest").addOption("minimal-flexoki-light", "Flexoki").addOption("minimal-gruvbox-light", "Gruvbox").addOption("minimal-macos-light", "macOS").addOption("minimal-nord-light", "Nord").addOption("minimal-rose-pine-light", "Ros\xE9 Pine").addOption("minimal-notion-light", "Sky").addOption("minimal-solarized-light", "Solarized").addOption("minimal-things-light", "Things").setValue(this.plugin.settings.lightScheme).onChange((value) => { - this.plugin.settings.lightScheme = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.updateLightScheme(); - })); - new import_obsidian.Setting(containerEl).setName("Light mode background contrast").setDesc("Level of contrast between sidebar and main content.").addDropdown((dropdown) => dropdown.addOption("minimal-light", "Default").addOption("minimal-light-white", "All white").addOption("minimal-light-tonal", "Low contrast").addOption("minimal-light-contrast", "High contrast").setValue(this.plugin.settings.lightStyle).onChange((value) => { - this.plugin.settings.lightStyle = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.updateLightStyle(); - })); - new import_obsidian.Setting(containerEl).setName("Dark mode color scheme").setDesc("Preset colors options for dark mode.").addDropdown((dropdown) => dropdown.addOption("minimal-default-dark", "Default").addOption("minimal-atom-dark", "Atom").addOption("minimal-ayu-dark", "Ayu").addOption("minimal-catppuccin-dark", "Catppuccin").addOption("minimal-dracula-dark", "Dracula").addOption("minimal-eink-dark", "E-ink (beta)").addOption("minimal-everforest-dark", "Everforest").addOption("minimal-flexoki-dark", "Flexoki").addOption("minimal-gruvbox-dark", "Gruvbox").addOption("minimal-macos-dark", "macOS").addOption("minimal-nord-dark", "Nord").addOption("minimal-rose-pine-dark", "Ros\xE9 Pine").addOption("minimal-notion-dark", "Sky").addOption("minimal-solarized-dark", "Solarized").addOption("minimal-things-dark", "Things").setValue(this.plugin.settings.darkScheme).onChange((value) => { - this.plugin.settings.darkScheme = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.updateDarkScheme(); - })); - new import_obsidian.Setting(containerEl).setName("Dark mode background contrast").setDesc("Level of contrast between sidebar and main content.").addDropdown((dropdown) => dropdown.addOption("minimal-dark", "Default").addOption("minimal-dark-tonal", "Low contrast").addOption("minimal-dark-black", "True black").setValue(this.plugin.settings.darkStyle).onChange((value) => { - this.plugin.settings.darkStyle = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.updateDarkStyle(); - })); - containerEl.createEl("br"); - const featuresSection = containerEl.createEl("div", { cls: "setting-item setting-item-heading" }); - const featuresSectionInfo = featuresSection.createEl("div", { cls: "setting-item-info" }); - featuresSectionInfo.createEl("div", { text: "Features", cls: "setting-item-name" }); - const featuresSectionDesc = featuresSectionInfo.createEl("div", { cls: "setting-item-description" }); - featuresSectionDesc.appendChild(createEl("span", { - text: "See " - })); - featuresSectionDesc.appendChild(createEl("a", { - text: "documentation", - href: "https://minimal.guide" - })); - featuresSectionDesc.appendText(" for details."); - new import_obsidian.Setting(containerEl).setName("Text labels for primary navigation").setDesc("Navigation items in the left sidebar uses text labels.").addToggle((toggle) => toggle.setValue(this.plugin.settings.labeledNav).onChange((value) => { - this.plugin.settings.labeledNav = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Colorful window frame").setDesc("The top area of the app uses your accent color.").addToggle((toggle) => toggle.setValue(this.plugin.settings.colorfulFrame).onChange((value) => { - this.plugin.settings.colorfulFrame = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Colorful active states").setDesc("Active file and menu items use your accent color.").addToggle((toggle) => toggle.setValue(this.plugin.settings.colorfulActiveStates).onChange((value) => { - this.plugin.settings.colorfulActiveStates = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Colorful headings").setDesc("Headings use a different color for each size.").addToggle((toggle) => toggle.setValue(this.plugin.settings.colorfulHeadings).onChange((value) => { - this.plugin.settings.colorfulHeadings = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Minimal status bar").setDesc("Turn off to use full-width status bar.").addToggle((toggle) => toggle.setValue(this.plugin.settings.minimalStatus).onChange((value) => { - this.plugin.settings.minimalStatus = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Trim file names in sidebars").setDesc("Use ellipses to fit file names on a single line.").addToggle((toggle) => toggle.setValue(this.plugin.settings.trimNames).onChange((value) => { - this.plugin.settings.trimNames = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Workspace borders").setDesc("Display divider lines between workspace elements.").addToggle((toggle) => toggle.setValue(this.plugin.settings.bordersToggle).onChange((value) => { - this.plugin.settings.bordersToggle = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Focus mode").setDesc("Hide tab bar and status bar, hover to display. Can be toggled via hotkey.").addToggle((toggle) => toggle.setValue(this.plugin.settings.focusMode).onChange((value) => { - this.plugin.settings.focusMode = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Underline internal links").setDesc("Show underlines on internal links.").addToggle((toggle) => toggle.setValue(this.plugin.settings.underlineInternal).onChange((value) => { - this.plugin.settings.underlineInternal = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Underline external links").setDesc("Show underlines on external links.").addToggle((toggle) => toggle.setValue(this.plugin.settings.underlineExternal).onChange((value) => { - this.plugin.settings.underlineExternal = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Maximize media").setDesc("Images and videos fill the width of the line.").addToggle((toggle) => toggle.setValue(this.plugin.settings.fullWidthMedia).onChange((value) => { - this.plugin.settings.fullWidthMedia = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - containerEl.createEl("br"); - const layoutSection = containerEl.createEl("div", { cls: "setting-item setting-item-heading" }); - const layoutSectionInfo = layoutSection.createEl("div", { cls: "setting-item-info" }); - layoutSectionInfo.createEl("div", { text: "Layout", cls: "setting-item-name" }); - const layoutSectionDesc = layoutSectionInfo.createEl("div", { cls: "setting-item-description" }); - layoutSectionDesc.appendChild(createEl("span", { - text: "These options can also be defined on a per-file basis, see " - })); - layoutSectionDesc.appendChild(createEl("a", { - text: "documentation", - href: "https://minimal.guide/features/block-width" - })); - layoutSectionDesc.appendText(" for details."); - new import_obsidian.Setting(containerEl).setName("Image grids").setDesc("Turn consecutive images into columns \u2014 to make a new row, add an extra line break between images.").addToggle((toggle) => toggle.setValue(this.plugin.settings.imgGrid).onChange((value) => { - this.plugin.settings.imgGrid = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Chart width").setDesc("Default width for chart blocks.").addDropdown((dropdown) => dropdown.addOption("chart-default-width", "Default").addOption("chart-wide", "Wide line width").addOption("chart-max", "Maximum line width").addOption("chart-100", "100% pane width").setValue(this.plugin.settings.chartWidth).onChange((value) => { - this.plugin.settings.chartWidth = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Iframe width").setDesc("Default width for iframe blocks.").addDropdown((dropdown) => dropdown.addOption("iframe-default-width", "Default").addOption("iframe-wide", "Wide line width").addOption("iframe-max", "Maximum line width").addOption("iframe-100", "100% pane width").setValue(this.plugin.settings.iframeWidth).onChange((value) => { - this.plugin.settings.iframeWidth = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Image width").setDesc("Default width for image blocks.").addDropdown((dropdown) => dropdown.addOption("img-default-width", "Default").addOption("img-wide", "Wide line width").addOption("img-max", "Maximum line width").addOption("img-100", "100% pane width").setValue(this.plugin.settings.imgWidth).onChange((value) => { - this.plugin.settings.imgWidth = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Map width").setDesc("Default width for map blocks.").addDropdown((dropdown) => dropdown.addOption("map-default-width", "Default").addOption("map-wide", "Wide line width").addOption("map-max", "Maximum line width").addOption("map-100", "100% pane width").setValue(this.plugin.settings.mapWidth).onChange((value) => { - this.plugin.settings.mapWidth = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Table width").setDesc("Default width for table and Dataview blocks.").addDropdown((dropdown) => dropdown.addOption("table-default-width", "Default").addOption("table-wide", "Wide line width").addOption("table-max", "Maximum line width").addOption("table-100", "100% pane width").setValue(this.plugin.settings.tableWidth).onChange((value) => { - this.plugin.settings.tableWidth = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - containerEl.createEl("br"); - containerEl.createEl("div", { text: "Typography", cls: "setting-item setting-item-heading" }); - new import_obsidian.Setting(containerEl).setName("Text font size").setDesc("Used for the main text (default 16).").addText((text) => text.setPlaceholder("16").setValue((this.plugin.settings.textNormal || "") + "").onChange((value) => { - this.plugin.settings.textNormal = parseFloat(value); - this.plugin.saveData(this.plugin.settings); - this.plugin.setFontSize(); - })); - new import_obsidian.Setting(containerEl).setName("Small font size").setDesc("Used for text in the sidebars and tabs (default 13).").addText((text) => text.setPlaceholder("13").setValue((this.plugin.settings.textSmall || "") + "").onChange((value) => { - this.plugin.settings.textSmall = parseFloat(value); - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Line height").setDesc("Line height of text (default 1.5).").addText((text) => text.setPlaceholder("1.5").setValue((this.plugin.settings.lineHeight || "") + "").onChange((value) => { - this.plugin.settings.lineHeight = parseFloat(value); - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Normal line width").setDesc("Number of characters per line (default 40).").addText((text) => text.setPlaceholder("40").setValue((this.plugin.settings.lineWidth || "") + "").onChange((value) => { - this.plugin.settings.lineWidth = parseInt(value.trim()); - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Wide line width").setDesc("Number of characters per line for wide elements (default 50).").addText((text) => text.setPlaceholder("50").setValue((this.plugin.settings.lineWidthWide || "") + "").onChange((value) => { - this.plugin.settings.lineWidthWide = parseInt(value.trim()); - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Maximum line width %").setDesc("Percentage of space inside a pane that a line can fill (default 88).").addText((text) => text.setPlaceholder("88").setValue((this.plugin.settings.maxWidth || "") + "").onChange((value) => { - this.plugin.settings.maxWidth = parseInt(value.trim()); - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - new import_obsidian.Setting(containerEl).setName("Editor font").setDesc("Overrides the text font defined in Obsidian Appearance settings when in edit mode.").addText((text) => text.setPlaceholder("").setValue((this.plugin.settings.editorFont || "") + "").onChange((value) => { - this.plugin.settings.editorFont = value; - this.plugin.saveData(this.plugin.settings); - this.plugin.refresh(); - })); - } -}; -//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsibWFpbi50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiaW1wb3J0IHsgQXBwLCBXb3Jrc3BhY2UsIE1vZGFsLCBOb3RpY2UsIFBsdWdpbiwgUGx1Z2luU2V0dGluZ1RhYiwgU2V0dGluZyB9IGZyb20gJ29ic2lkaWFuJztcclxuXHJcbmV4cG9ydCBkZWZhdWx0IGNsYXNzIE1pbmltYWxUaGVtZSBleHRlbmRzIFBsdWdpbiB7XHJcblxyXG4gIHNldHRpbmdzOiBNaW5pbWFsU2V0dGluZ3M7XHJcblxyXG4gIGFzeW5jIG9ubG9hZCgpIHtcclxuXHJcbiAgICBhd2FpdCB0aGlzLmxvYWRTZXR0aW5ncygpO1xyXG5cclxuICAgIHRoaXMuYWRkU2V0dGluZ1RhYihuZXcgTWluaW1hbFNldHRpbmdUYWIodGhpcy5hcHAsIHRoaXMpKTtcclxuXHJcbiAgICB0aGlzLmxvYWRSdWxlcygpO1xyXG5cclxuICAgIC8vIENoZWNrIHN0YXRlIG9mIE9ic2lkaWFuIFNldHRpbmdzXHJcbiAgICBsZXQgc2V0dGluZ3NVcGRhdGUgPSAoKSA9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PO0FBQUE7QUFBQTtBQUFBOyIsCiAgIm5hbWVzIjogW10KfQo= +var x=Object.create;var u=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var W=Object.getOwnPropertyNames;var T=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var v=n=>u(n,"__esModule",{value:!0});var O=(n,t)=>{v(n);for(var s in t)u(n,s,{get:t[s],enumerable:!0})},E=(n,t,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of W(t))!N.call(n,l)&&l!=="default"&&u(n,l,{get:()=>t[l],enumerable:!(s=L(t,l))||s.enumerable});return n},y=n=>E(v(u(n!=null?x(T(n)):{},"default",n&&n.__esModule&&"default"in n?{get:()=>n.default,enumerable:!0}:{value:n,enumerable:!0})),n);var p=(n,t,s)=>new Promise((l,d)=>{var f=h=>{try{m(s.next(h))}catch(o){d(o)}},g=h=>{try{m(s.throw(h))}catch(o){d(o)}},m=h=>h.done?l(h.value):Promise.resolve(h.value).then(f,g);m((s=s.apply(n,t)).next())});O(exports,{default:()=>S});var C=y(require("obsidian"));var a=y(require("obsidian")),D={lightStyle:"minimal-light",darkStyle:"minimal-dark",lightScheme:"minimal-default-light",darkScheme:"minimal-default-dark",editorFont:"",lineHeight:1.5,lineWidth:40,lineWidthWide:50,maxWidth:88,textNormal:16,textSmall:13,imgGrid:!1,imgWidth:"img-default-width",tableWidth:"table-default-width",iframeWidth:"iframe-default-width",mapWidth:"map-default-width",chartWidth:"chart-default-width",colorfulHeadings:!1,colorfulFrame:!1,colorfulActiveStates:!1,trimNames:!0,labeledNav:!1,fullWidthMedia:!0,bordersToggle:!0,minimalStatus:!0,focusMode:!1,underlineInternal:!0,underlineExternal:!0,folding:!0,lineNumbers:!1,readableLineLength:!1,devBlockWidth:!1},b=class extends a.PluginSettingTab{constructor(t,s){super(t,s);this.plugin=s}display(){let{containerEl:t}=this;t.empty();let l=t.createEl("div",{cls:"setting-item setting-item-heading"}).createEl("div",{cls:"setting-item-info"});l.createEl("div",{text:"Color scheme",cls:"setting-item-name"});let d=l.createEl("div",{cls:"setting-item-description"});d.appendChild(createEl("span",{text:"To create a custom color scheme use the "})),d.appendChild(createEl("a",{text:"Style Settings",href:"obsidian://show-plugin?id=obsidian-style-settings"})),d.appendText(" plugin. See "),d.appendChild(createEl("a",{text:"documentation",href:"https://minimal.guide/features/color-schemes"})),d.appendText(" for details."),new a.Setting(t).setName("Light mode color scheme").setDesc("Preset color options for light mode.").addDropdown(i=>i.addOption("minimal-default-light","Default").addOption("minimal-atom-light","Atom").addOption("minimal-ayu-light","Ayu").addOption("minimal-catppuccin-light","Catppuccin").addOption("minimal-eink-light","E-ink (beta)").addOption("minimal-everforest-light","Everforest").addOption("minimal-flexoki-light","Flexoki").addOption("minimal-gruvbox-light","Gruvbox").addOption("minimal-macos-light","macOS").addOption("minimal-nord-light","Nord").addOption("minimal-rose-pine-light","Ros\xE9 Pine").addOption("minimal-notion-light","Sky").addOption("minimal-solarized-light","Solarized").addOption("minimal-things-light","Things").setValue(this.plugin.settings.lightScheme).onChange(e=>{this.plugin.settings.lightScheme=e,this.plugin.saveData(this.plugin.settings),this.plugin.updateLightScheme()})),new a.Setting(t).setName("Light mode background contrast").setDesc("Level of contrast between sidebar and main content.").addDropdown(i=>i.addOption("minimal-light","Default").addOption("minimal-light-white","All white").addOption("minimal-light-tonal","Low contrast").addOption("minimal-light-contrast","High contrast").setValue(this.plugin.settings.lightStyle).onChange(e=>{this.plugin.settings.lightStyle=e,this.plugin.saveData(this.plugin.settings),this.plugin.updateLightStyle()})),new a.Setting(t).setName("Dark mode color scheme").setDesc("Preset colors options for dark mode.").addDropdown(i=>i.addOption("minimal-default-dark","Default").addOption("minimal-atom-dark","Atom").addOption("minimal-ayu-dark","Ayu").addOption("minimal-catppuccin-dark","Catppuccin").addOption("minimal-dracula-dark","Dracula").addOption("minimal-eink-dark","E-ink (beta)").addOption("minimal-everforest-dark","Everforest").addOption("minimal-flexoki-dark","Flexoki").addOption("minimal-gruvbox-dark","Gruvbox").addOption("minimal-macos-dark","macOS").addOption("minimal-nord-dark","Nord").addOption("minimal-rose-pine-dark","Ros\xE9 Pine").addOption("minimal-notion-dark","Sky").addOption("minimal-solarized-dark","Solarized").addOption("minimal-things-dark","Things").setValue(this.plugin.settings.darkScheme).onChange(e=>{this.plugin.settings.darkScheme=e,this.plugin.saveData(this.plugin.settings),this.plugin.updateDarkScheme()})),new a.Setting(t).setName("Dark mode background contrast").setDesc("Level of contrast between sidebar and main content.").addDropdown(i=>i.addOption("minimal-dark","Default").addOption("minimal-dark-tonal","Low contrast").addOption("minimal-dark-black","True black").setValue(this.plugin.settings.darkStyle).onChange(e=>{this.plugin.settings.darkStyle=e,this.plugin.saveData(this.plugin.settings),this.plugin.updateDarkStyle()})),t.createEl("br");let g=t.createEl("div",{cls:"setting-item setting-item-heading"}).createEl("div",{cls:"setting-item-info"});g.createEl("div",{text:"Features",cls:"setting-item-name"});let m=g.createEl("div",{cls:"setting-item-description"});m.appendChild(createEl("span",{text:"See "})),m.appendChild(createEl("a",{text:"documentation",href:"https://minimal.guide"})),m.appendText(" for details."),new a.Setting(t).setName("Text labels for primary navigation").setDesc("Navigation items in the left sidebar uses text labels.").addToggle(i=>i.setValue(this.plugin.settings.labeledNav).onChange(e=>{this.plugin.settings.labeledNav=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Colorful window frame").setDesc("The top area of the app uses your accent color.").addToggle(i=>i.setValue(this.plugin.settings.colorfulFrame).onChange(e=>{this.plugin.settings.colorfulFrame=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Colorful active states").setDesc("Active file and menu items use your accent color.").addToggle(i=>i.setValue(this.plugin.settings.colorfulActiveStates).onChange(e=>{this.plugin.settings.colorfulActiveStates=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Colorful headings").setDesc("Headings use a different color for each size.").addToggle(i=>i.setValue(this.plugin.settings.colorfulHeadings).onChange(e=>{this.plugin.settings.colorfulHeadings=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Minimal status bar").setDesc("Turn off to use full-width status bar.").addToggle(i=>i.setValue(this.plugin.settings.minimalStatus).onChange(e=>{this.plugin.settings.minimalStatus=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Trim file names in sidebars").setDesc("Use ellipses to fit file names on a single line.").addToggle(i=>i.setValue(this.plugin.settings.trimNames).onChange(e=>{this.plugin.settings.trimNames=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Workspace borders").setDesc("Display divider lines between workspace elements.").addToggle(i=>i.setValue(this.plugin.settings.bordersToggle).onChange(e=>{this.plugin.settings.bordersToggle=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Focus mode").setDesc("Hide tab bar and status bar, hover to display. Can be toggled via hotkey.").addToggle(i=>i.setValue(this.plugin.settings.focusMode).onChange(e=>{this.plugin.settings.focusMode=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Underline internal links").setDesc("Show underlines on internal links.").addToggle(i=>i.setValue(this.plugin.settings.underlineInternal).onChange(e=>{this.plugin.settings.underlineInternal=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Underline external links").setDesc("Show underlines on external links.").addToggle(i=>i.setValue(this.plugin.settings.underlineExternal).onChange(e=>{this.plugin.settings.underlineExternal=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Maximize media").setDesc("Images and videos fill the width of the line.").addToggle(i=>i.setValue(this.plugin.settings.fullWidthMedia).onChange(e=>{this.plugin.settings.fullWidthMedia=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),t.createEl("br");let o=t.createEl("div",{cls:"setting-item setting-item-heading"}).createEl("div",{cls:"setting-item-info"});o.createEl("div",{text:"Layout",cls:"setting-item-name"});let r=o.createEl("div",{cls:"setting-item-description"});r.appendChild(createEl("span",{text:"These options can also be defined on a per-file basis, see "})),r.appendChild(createEl("a",{text:"documentation",href:"https://minimal.guide/features/block-width"})),r.appendText(" for details."),new a.Setting(t).setName("Image grids").setDesc("Turn consecutive images into columns \u2014 to make a new row, add an extra line break between images.").addToggle(i=>i.setValue(this.plugin.settings.imgGrid).onChange(e=>{this.plugin.settings.imgGrid=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Chart width").setDesc("Default width for chart blocks.").addDropdown(i=>i.addOption("chart-default-width","Default").addOption("chart-wide","Wide line width").addOption("chart-max","Maximum line width").addOption("chart-100","100% pane width").setValue(this.plugin.settings.chartWidth).onChange(e=>{this.plugin.settings.chartWidth=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Iframe width").setDesc("Default width for iframe blocks.").addDropdown(i=>i.addOption("iframe-default-width","Default").addOption("iframe-wide","Wide line width").addOption("iframe-max","Maximum line width").addOption("iframe-100","100% pane width").setValue(this.plugin.settings.iframeWidth).onChange(e=>{this.plugin.settings.iframeWidth=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Image width").setDesc("Default width for image blocks.").addDropdown(i=>i.addOption("img-default-width","Default").addOption("img-wide","Wide line width").addOption("img-max","Maximum line width").addOption("img-100","100% pane width").setValue(this.plugin.settings.imgWidth).onChange(e=>{this.plugin.settings.imgWidth=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Map width").setDesc("Default width for map blocks.").addDropdown(i=>i.addOption("map-default-width","Default").addOption("map-wide","Wide line width").addOption("map-max","Maximum line width").addOption("map-100","100% pane width").setValue(this.plugin.settings.mapWidth).onChange(e=>{this.plugin.settings.mapWidth=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Table width").setDesc("Default width for table and Dataview blocks.").addDropdown(i=>i.addOption("table-default-width","Default").addOption("table-wide","Wide line width").addOption("table-max","Maximum line width").addOption("table-100","100% pane width").setValue(this.plugin.settings.tableWidth).onChange(e=>{this.plugin.settings.tableWidth=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),t.createEl("br"),t.createEl("div",{text:"Typography",cls:"setting-item setting-item-heading"}),new a.Setting(t).setName("Text font size").setDesc("Used for the main text (default 16).").addText(i=>i.setPlaceholder("16").setValue((this.plugin.settings.textNormal||"")+"").onChange(e=>{this.plugin.settings.textNormal=parseFloat(e),this.plugin.saveData(this.plugin.settings),this.plugin.setFontSize()})),new a.Setting(t).setName("Small font size").setDesc("Used for text in the sidebars and tabs (default 13).").addText(i=>i.setPlaceholder("13").setValue((this.plugin.settings.textSmall||"")+"").onChange(e=>{this.plugin.settings.textSmall=parseFloat(e),this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Line height").setDesc("Line height of text (default 1.5).").addText(i=>i.setPlaceholder("1.5").setValue((this.plugin.settings.lineHeight||"")+"").onChange(e=>{this.plugin.settings.lineHeight=parseFloat(e),this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Normal line width").setDesc("Number of characters per line (default 40).").addText(i=>i.setPlaceholder("40").setValue((this.plugin.settings.lineWidth||"")+"").onChange(e=>{this.plugin.settings.lineWidth=parseInt(e.trim()),this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Wide line width").setDesc("Number of characters per line for wide elements (default 50).").addText(i=>i.setPlaceholder("50").setValue((this.plugin.settings.lineWidthWide||"")+"").onChange(e=>{this.plugin.settings.lineWidthWide=parseInt(e.trim()),this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Maximum line width %").setDesc("Percentage of space inside a pane that a line can fill (default 88).").addText(i=>i.setPlaceholder("88").setValue((this.plugin.settings.maxWidth||"")+"").onChange(e=>{this.plugin.settings.maxWidth=parseInt(e.trim()),this.plugin.saveData(this.plugin.settings),this.plugin.refresh()})),new a.Setting(t).setName("Editor font").setDesc("Overrides the text font defined in Obsidian Appearance settings when in edit mode.").addText(i=>i.setPlaceholder("").setValue((this.plugin.settings.editorFont||"")+"").onChange(e=>{this.plugin.settings.editorFont=e,this.plugin.saveData(this.plugin.settings),this.plugin.refresh()}))}};var S=class extends C.Plugin{onload(){return p(this,null,function*(){yield this.loadSettings(),this.addSettingTab(new b(this.app,this)),this.loadRules();let t=()=>{let i=this.app.vault.getConfig("baseFontSize");this.settings.textNormal=i;let e=!1,w=!1,k=!1;this.app.vault.getConfig("foldHeading")?(this.settings.folding=!0,console.log("Folding is on"),e=!0):(this.settings.folding=!1,console.log("Folding is off")),this.app.vault.getConfig("showLineNumber")?(this.settings.lineNumbers=!0,console.log("Line numbers are on"),w=!0):(this.settings.lineNumbers=!1,console.log("Line numbers are off")),this.app.vault.getConfig("readableLineLength")?(this.settings.readableLineLength=!0,console.log("Readable line length is on"),k=!0):(this.settings.readableLineLength=!1,console.log("Readable line length is off"));let c=document.body.classList;c.toggle("minimal-folding",e),c.toggle("minimal-line-nums",w),c.toggle("minimal-readable",k),c.toggle("minimal-readable-off",!k),this.saveData(this.settings)},s=()=>{let i=document.getElementsByClassName("mod-left-split")[0],e=document.getElementsByClassName("side-dock-ribbon")[0];i&&e&&document.body.classList.contains("theme-light")&&this.settings.lightStyle=="minimal-light-contrast"?(i.addClass("theme-dark"),e.addClass("theme-dark")):i&&e&&(i.removeClass("theme-dark"),e.removeClass("theme-dark"))};this.registerEvent(app.vault.on("config-changed",t)),this.registerEvent(app.workspace.on("css-change",s)),t(),app.workspace.onLayoutReady(()=>{s()});let l=["minimal-light","minimal-light-tonal","minimal-light-contrast","minimal-light-white"],d=["minimal-dark","minimal-dark-tonal","minimal-dark-black"],f=["img-grid","img-grid-ratio","img-nogrid"],g=["table-100","table-default-width","table-wide","table-max"],m=["iframe-100","iframe-default-width","iframe-wide","iframe-max"],h=["img-100","img-default-width","img-wide","img-max"],o=["map-100","map-default-width","map-wide","map-max"],r=["chart-100","chart-default-width","chart-wide","chart-max"];this.addCommand({id:"increase-body-font-size",name:"Increase body font size",callback:()=>{this.settings.textNormal=this.settings.textNormal+.5,this.saveData(this.settings),this.setFontSize()}}),this.addCommand({id:"decrease-body-font-size",name:"Decrease body font size",callback:()=>{this.settings.textNormal=this.settings.textNormal-.5,this.saveData(this.settings),this.setFontSize()}}),this.addCommand({id:"toggle-minimal-dark-cycle",name:"Cycle between dark mode styles",callback:()=>{this.settings.darkStyle=d[(d.indexOf(this.settings.darkStyle)+1)%d.length],this.saveData(this.settings),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-light-cycle",name:"Cycle between light mode styles",callback:()=>{this.settings.lightStyle=l[(l.indexOf(this.settings.lightStyle)+1)%l.length],this.saveData(this.settings),this.updateLightStyle()}}),this.addCommand({id:"toggle-hidden-borders",name:"Toggle sidebar borders",callback:()=>{this.settings.bordersToggle=!this.settings.bordersToggle,this.saveData(this.settings),this.refresh()}}),this.addCommand({id:"toggle-colorful-headings",name:"Toggle colorful headings",callback:()=>{this.settings.colorfulHeadings=!this.settings.colorfulHeadings,this.saveData(this.settings),this.refresh()}}),this.addCommand({id:"toggle-minimal-focus-mode",name:"Toggle focus mode",callback:()=>{this.settings.focusMode=!this.settings.focusMode,this.saveData(this.settings),this.refresh()}}),this.addCommand({id:"toggle-minimal-colorful-frame",name:"Toggle colorful window frame",callback:()=>{this.settings.colorfulFrame=!this.settings.colorfulFrame,this.saveData(this.settings),this.refresh()}}),this.addCommand({id:"cycle-minimal-table-width",name:"Cycle between table width options",callback:()=>{this.settings.tableWidth=g[(g.indexOf(this.settings.tableWidth)+1)%g.length],this.saveData(this.settings),this.refresh()}}),this.addCommand({id:"cycle-minimal-image-width",name:"Cycle between image width options",callback:()=>{this.settings.imgWidth=h[(h.indexOf(this.settings.imgWidth)+1)%h.length],this.saveData(this.settings),this.refresh()}}),this.addCommand({id:"cycle-minimal-iframe-width",name:"Cycle between iframe width options",callback:()=>{this.settings.iframeWidth=m[(m.indexOf(this.settings.iframeWidth)+1)%m.length],this.saveData(this.settings),this.refresh()}}),this.addCommand({id:"cycle-minimal-chart-width",name:"Cycle between chart width options",callback:()=>{this.settings.chartWidth=r[(r.indexOf(this.settings.chartWidth)+1)%r.length],this.saveData(this.settings),this.refresh()}}),this.addCommand({id:"cycle-minimal-map-width",name:"Cycle between map width options",callback:()=>{this.settings.mapWidth=o[(o.indexOf(this.settings.mapWidth)+1)%o.length],this.saveData(this.settings),this.refresh()}}),this.addCommand({id:"toggle-minimal-img-grid",name:"Toggle image grids",callback:()=>{this.settings.imgGrid=!this.settings.imgGrid,this.saveData(this.settings),this.refresh()}}),this.addCommand({id:"toggle-minimal-switch",name:"Switch between light and dark mode",callback:()=>{this.updateTheme()}}),this.addCommand({id:"toggle-minimal-light-default",name:"Use light mode (default)",callback:()=>{this.settings.lightStyle="minimal-light",this.saveData(this.settings),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-light-white",name:"Use light mode (all white)",callback:()=>{this.settings.lightStyle="minimal-light-white",this.saveData(this.settings),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-light-tonal",name:"Use light mode (low contrast)",callback:()=>{this.settings.lightStyle="minimal-light-tonal",this.saveData(this.settings),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-light-contrast",name:"Use light mode (high contrast)",callback:()=>{this.settings.lightStyle="minimal-light-contrast",this.saveData(this.settings),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-dark-default",name:"Use dark mode (default)",callback:()=>{this.settings.darkStyle="minimal-dark",this.saveData(this.settings),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-dark-tonal",name:"Use dark mode (low contrast)",callback:()=>{this.settings.darkStyle="minimal-dark-tonal",this.saveData(this.settings),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-dark-black",name:"Use dark mode (true black)",callback:()=>{this.settings.darkStyle="minimal-dark-black",this.saveData(this.settings),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-atom-light",name:"Switch light color scheme to Atom (light)",callback:()=>{this.settings.lightScheme="minimal-atom-light",this.saveData(this.settings),this.updateLightScheme(),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-ayu-light",name:"Switch light color scheme to Ayu (light)",callback:()=>{this.settings.lightScheme="minimal-ayu-light",this.saveData(this.settings),this.updateLightScheme(),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-catppuccin-light",name:"Switch light color scheme to Catppuccin (light)",callback:()=>{this.settings.lightScheme="minimal-catppuccin-light",this.saveData(this.settings),this.updateLightScheme(),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-default-light",name:"Switch light color scheme to default (light)",callback:()=>{this.settings.lightScheme="minimal-default-light",this.saveData(this.settings),this.updateLightScheme(),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-gruvbox-light",name:"Switch light color scheme to Gruvbox (light)",callback:()=>{this.settings.lightScheme="minimal-gruvbox-light",this.saveData(this.settings),this.updateLightScheme(),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-eink-light",name:"Switch light color scheme to E-ink (light)",callback:()=>{this.settings.lightScheme="minimal-eink-light",this.saveData(this.settings),this.updateLightScheme(),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-everforest-light",name:"Switch light color scheme to Everforest (light)",callback:()=>{this.settings.lightScheme="minimal-everforest-light",this.saveData(this.settings),this.updateLightScheme(),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-flexoki-light",name:"Switch light color scheme to Flexoki (light)",callback:()=>{this.settings.lightScheme="minimal-flexoki-light",this.saveData(this.settings),this.updateLightScheme(),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-macos-light",name:"Switch light color scheme to macOS (light)",callback:()=>{this.settings.lightScheme="minimal-macos-light",this.saveData(this.settings),this.updateLightScheme(),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-notion-light",name:"Switch light color scheme to Sky (light)",callback:()=>{this.settings.lightScheme="minimal-notion-light",this.saveData(this.settings),this.updateLightScheme(),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-nord-light",name:"Switch light color scheme to Nord (light)",callback:()=>{this.settings.lightScheme="minimal-nord-light",this.saveData(this.settings),this.updateLightScheme(),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-rose-pine-light",name:"Switch light color scheme to Ros\xE9 Pine (light)",callback:()=>{this.settings.lightScheme="minimal-rose-pine-light",this.saveData(this.settings),this.updateLightScheme(),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-solarized-light",name:"Switch light color scheme to Solarized (light)",callback:()=>{this.settings.lightScheme="minimal-solarized-light",this.saveData(this.settings),this.updateLightScheme(),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-things-light",name:"Switch light color scheme to Things (light)",callback:()=>{this.settings.lightScheme="minimal-things-light",this.saveData(this.settings),this.updateLightScheme(),this.updateLightStyle()}}),this.addCommand({id:"toggle-minimal-atom-dark",name:"Switch dark color scheme to Atom (dark)",callback:()=>{this.settings.darkScheme="minimal-atom-dark",this.saveData(this.settings),this.updateDarkScheme(),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-ayu-dark",name:"Switch dark color scheme to Ayu (dark)",callback:()=>{this.settings.darkScheme="minimal-ayu-dark",this.saveData(this.settings),this.updateDarkScheme(),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-catppuccin-dark",name:"Switch dark color scheme to Catppuccin (dark)",callback:()=>{this.settings.darkScheme="minimal-catppuccin-dark",this.saveData(this.settings),this.updateDarkScheme(),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-dracula-dark",name:"Switch dark color scheme to Dracula (dark)",callback:()=>{this.settings.darkScheme="minimal-dracula-dark",this.saveData(this.settings),this.updateDarkScheme(),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-default-dark",name:"Switch dark color scheme to default (dark)",callback:()=>{this.settings.darkScheme="minimal-default-dark",this.saveData(this.settings),this.updateDarkScheme(),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-eink-dark",name:"Switch dark color scheme to E-ink (dark)",callback:()=>{this.settings.darkScheme="minimal-eink-dark",this.saveData(this.settings),this.updateDarkScheme(),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-everforest-dark",name:"Switch dark color scheme to Everforest (dark)",callback:()=>{this.settings.darkScheme="minimal-everforest-dark",this.saveData(this.settings),this.updateDarkScheme(),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-flexoki-dark",name:"Switch dark color scheme to Flexoki (dark)",callback:()=>{this.settings.darkScheme="minimal-flexoki-dark",this.saveData(this.settings),this.updateDarkScheme(),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-gruvbox-dark",name:"Switch dark color scheme to Gruvbox (dark)",callback:()=>{this.settings.darkScheme="minimal-gruvbox-dark",this.saveData(this.settings),this.updateDarkScheme(),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-macos-dark",name:"Switch dark color scheme to macOS (dark)",callback:()=>{this.settings.darkScheme="minimal-macos-dark",this.saveData(this.settings),this.updateDarkScheme(),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-nord-dark",name:"Switch dark color scheme to Nord (dark)",callback:()=>{this.settings.darkScheme="minimal-nord-dark",this.saveData(this.settings),this.updateDarkScheme(),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-notion-dark",name:"Switch dark color scheme to Sky (dark)",callback:()=>{this.settings.darkScheme="minimal-notion-dark",this.saveData(this.settings),this.updateDarkScheme(),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-rose-pine-dark",name:"Switch dark color scheme to Ros\xE9 Pine (dark)",callback:()=>{this.settings.darkScheme="minimal-rose-pine-dark",this.saveData(this.settings),this.updateDarkScheme(),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-solarized-dark",name:"Switch dark color scheme to Solarized (dark)",callback:()=>{this.settings.darkScheme="minimal-solarized-dark",this.saveData(this.settings),this.updateDarkScheme(),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-things-dark",name:"Switch dark color scheme to Things (dark)",callback:()=>{this.settings.darkScheme="minimal-things-dark",this.saveData(this.settings),this.updateDarkScheme(),this.updateDarkStyle()}}),this.addCommand({id:"toggle-minimal-dev-block-width",name:"Dev \u2014 Show block widths",callback:()=>{this.settings.devBlockWidth=!this.settings.devBlockWidth,this.saveData(this.settings),this.refresh()}}),this.refresh()})}onunload(){console.log("Unloading Minimal Theme Settings plugin");let t=document.getElementsByClassName("mod-left-split")[0];t&&t.removeClass("theme-dark");let s=document.getElementsByClassName("side-dock-ribbon")[0];s&&s.removeClass("theme-dark"),this.unloadRules(),this.removeStyle(),this.removeSettings(),this.removeLightScheme(),this.removeDarkScheme()}loadSettings(){return p(this,null,function*(){this.settings=Object.assign(D,yield this.loadData())})}saveSettings(){return p(this,null,function*(){yield this.saveData(this.settings)})}refresh(){this.updateStyle()}loadRules(){let t=document.createElement("style");t.id="minimal-theme",document.getElementsByTagName("head")[0].appendChild(t),document.body.classList.add("minimal-theme"),this.updateStyle()}unloadRules(){let t=document.getElementById("minimal-theme");t&&t.parentNode.removeChild(t),document.body.classList.remove("minimal-theme")}setFontSize(){this.app.vault.setConfig("baseFontSize",this.settings.textNormal),this.app.updateFontSize()}updateStyle(){this.removeStyle(),this.removeSettings(),document.body.addClass(this.settings.lightStyle,this.settings.lightScheme,this.settings.darkStyle,this.settings.darkScheme),document.body.classList.toggle("borders-none",!this.settings.bordersToggle),document.body.classList.toggle("colorful-headings",this.settings.colorfulHeadings),document.body.classList.toggle("colorful-frame",this.settings.colorfulFrame),document.body.classList.toggle("colorful-active",this.settings.colorfulActiveStates),document.body.classList.toggle("minimal-focus-mode",this.settings.focusMode),document.body.classList.toggle("links-int-on",this.settings.underlineInternal),document.body.classList.toggle("links-ext-on",this.settings.underlineExternal),document.body.classList.toggle("full-width-media",this.settings.fullWidthMedia),document.body.classList.toggle("img-grid",this.settings.imgGrid),document.body.classList.toggle("minimal-dev-block-width",this.settings.devBlockWidth),document.body.classList.toggle("minimal-status-off",!this.settings.minimalStatus),document.body.classList.toggle("full-file-names",!this.settings.trimNames),document.body.classList.toggle("labeled-nav",this.settings.labeledNav),document.body.classList.toggle("minimal-folding",this.settings.folding),document.body.addClass(this.settings.chartWidth,this.settings.tableWidth,this.settings.imgWidth,this.settings.iframeWidth,this.settings.mapWidth);let t=document.getElementById("minimal-theme");if(t)t.innerText="body.minimal-theme{--font-ui-small:"+this.settings.textSmall+"px;--line-height:"+this.settings.lineHeight+";--line-width:"+this.settings.lineWidth+"rem;--line-width-wide:"+this.settings.lineWidthWide+"rem;--max-width:"+this.settings.maxWidth+"%;--font-editor-override:"+this.settings.editorFont+";";else throw"minimal-theme element not found!"}updateDarkStyle(){document.body.removeClass("theme-light","minimal-dark","minimal-dark-tonal","minimal-dark-black"),document.body.addClass("theme-dark",this.settings.darkStyle),this.app.vault.getConfig("theme")!=="system"&&(this.app.setTheme("obsidian"),this.app.vault.setConfig("theme","obsidian")),this.app.workspace.trigger("css-change")}updateLightStyle(){document.body.removeClass("theme-dark","minimal-light","minimal-light-tonal","minimal-light-contrast","minimal-light-white"),document.body.addClass("theme-light",this.settings.lightStyle),this.app.vault.getConfig("theme")!=="system"&&(this.app.setTheme("moonstone"),this.app.vault.setConfig("theme","moonstone")),this.app.workspace.trigger("css-change")}updateDarkScheme(){this.removeDarkScheme(),document.body.addClass(this.settings.darkScheme)}updateLightScheme(){this.removeLightScheme(),document.body.addClass(this.settings.lightScheme)}updateTheme(){if(this.app.vault.getConfig("theme")==="system")document.body.classList.contains("theme-light")?(document.body.removeClass("theme-light"),document.body.addClass("theme-dark")):(document.body.removeClass("theme-dark"),document.body.addClass("theme-light"));else{document.body.classList.contains("theme-light")?(document.body.removeClass("theme-light"),document.body.addClass("theme-dark")):(document.body.removeClass("theme-dark"),document.body.addClass("theme-light"));let s=this.app.vault.getConfig("theme")==="moonstone"?"obsidian":"moonstone";this.app.setTheme(s),this.app.vault.setConfig("theme",s)}this.app.workspace.trigger("css-change")}removeSettings(){document.body.removeClass("borders-none","colorful-headings","colorful-frame","colorful-active","minimal-focus-mode","links-int-on","links-ext-on","full-width-media","img-grid","minimal-dev-block-width","minimal-status-off","full-file-names","labeled-nav","minimal-folding"),document.body.removeClass("table-wide","table-max","table-100","table-default-width","iframe-wide","iframe-max","iframe-100","iframe-default-width","img-wide","img-max","img-100","img-default-width","chart-wide","chart-max","chart-100","chart-default-width","map-wide","map-max","map-100","map-default-width")}removeStyle(){document.body.removeClass("minimal-light","minimal-light-tonal","minimal-light-contrast","minimal-light-white","minimal-dark","minimal-dark-tonal","minimal-dark-black")}removeDarkScheme(){document.body.removeClass("minimal-atom-dark","minimal-ayu-dark","minimal-catppuccin-dark","minimal-default-dark","minimal-dracula-dark","minimal-eink-dark","minimal-everforest-dark","minimal-flexoki-dark","minimal-gruvbox-dark","minimal-macos-dark","minimal-nord-dark","minimal-notion-dark","minimal-rose-pine-dark","minimal-solarized-dark","minimal-things-dark")}removeLightScheme(){document.body.removeClass("minimal-atom-light","minimal-ayu-light","minimal-catppuccin-light","minimal-default-light","minimal-eink-light","minimal-everforest-light","minimal-flexoki-light","minimal-gruvbox-light","minimal-macos-light","minimal-nord-light","minimal-notion-light","minimal-rose-pine-light","minimal-solarized-light","minimal-things-light")}}; diff --git a/.obsidian/plugins/obsidian-minimal-settings/manifest.json b/.obsidian/plugins/obsidian-minimal-settings/manifest.json index 741b1c88..4606938b 100644 --- a/.obsidian/plugins/obsidian-minimal-settings/manifest.json +++ b/.obsidian/plugins/obsidian-minimal-settings/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-minimal-settings", "name": "Minimal Theme Settings", - "version": "8.0.2", + "version": "8.1.1", "minAppVersion": "1.1.9", "description": "Change the colors, fonts and features of Minimal Theme.", "author": "@kepano", diff --git a/.obsidian/plugins/obsidian-weread-plugin/main.js b/.obsidian/plugins/obsidian-weread-plugin/main.js index 7061f160..b23a4d6d 100644 --- a/.obsidian/plugins/obsidian-weread-plugin/main.js +++ b/.obsidian/plugins/obsidian-weread-plugin/main.js @@ -1,2 +1,2 @@ /*! For license information please see main.js.LICENSE.txt */ -(()=>{var e={1073:e=>{e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},452:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],p=[],f=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var h=n^n<<1^n<<2^n<<3^n<<4;h=h>>>8^255&h^99,i[r]=h,o[h]=r;var g=e[r],m=e[g],v=e[m],b=257*e[h]^16843008*h;a[r]=b<<24|b>>>8,s[r]=b<<16|b>>>16,c[r]=b<<8|b>>>24,l[r]=b,b=16843009*v^65537*m^257*g^16843008*r,u[h]=b<<24|b>>>8,p[h]=b<<16|b>>>16,f[h]=b<<8|b>>>24,d[h]=b,r?(r=g^e[e[e[v^g]]],n^=e[e[n]]):r=n=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=h[a/r|0]<<24),o[a]=o[a-r]^l);for(var s=this._invKeySchedule=[],c=0;c>>24]]^p[i[l>>>16&255]]^f[i[l>>>8&255]]^d[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,p,f,d,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],p=e[t+2]^r[2],f=e[t+3]^r[3],d=4,h=1;h>>24]^i[u>>>16&255]^o[p>>>8&255]^a[255&f]^r[d++],m=n[u>>>24]^i[p>>>16&255]^o[f>>>8&255]^a[255&l]^r[d++],v=n[p>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[d++],b=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&p]^r[d++];l=g,u=m,p=v,f=b}g=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[p>>>8&255]<<8|s[255&f])^r[d++],m=(s[u>>>24]<<24|s[p>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[d++],v=(s[p>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[d++],b=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&p])^r[d++],e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=b},keySize:8});e.AES=t._createHelper(g)}(),n.AES)},7407:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib.BlockCipher,r=e.algo;const i=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function c(e,t){let r=t>>24&255,n=t>>16&255,i=t>>8&255,o=255&t,a=e.sbox[0][r]+e.sbox[1][n];return a^=e.sbox[2][i],a+=e.sbox[3][o],a}function l(e,t,r){let n,o=t,a=r;for(let t=0;t=r&&(n=0);let s=0,c=0,u=0;for(let t=0;t1;--t)o^=e.pbox[t],a=c(e,o)^a,n=o,o=a,a=n;return n=o,o=a,a=n,a^=e.pbox[1],o^=e.pbox[0],{left:o,right:a}}(s,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=t._createHelper(u)}(),n.Blowfish)},5109:function(e,t,r){var n,i,o,a,s,c,l,u,p,f,d,h,g,m,v,b,y,w,_;e.exports=(n=r(8249),r(888),void(n.lib.Cipher||(i=n,o=i.lib,a=o.Base,s=o.WordArray,c=o.BufferedBlockAlgorithm,l=i.enc,l.Utf8,u=l.Base64,p=i.algo.EvpKDF,f=o.Cipher=c.extend({cfg:a.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,r){this.cfg=this.cfg.extend(r),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?_:y}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()}),o.StreamCipher=f.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),d=i.mode={},h=o.BlockCipherMode=a.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}}),g=d.CBC=function(){var e=h.extend();function t(e,t,r){var n,i=this._iv;i?(n=i,this._iv=void 0):n=this._prevBlock;for(var o=0;o>>2];e.sigBytes-=t}},o.BlockCipher=f.extend({cfg:f.cfg.extend({mode:g,padding:m}),reset:function(){var e;f.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.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}),v=o.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),b=(i.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?s.create([1398893684,1701076831]).concat(r).concat(t):t).toString(u)},parse:function(e){var t,r=u.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=s.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),v.create({ciphertext:r,salt:t})}},y=o.SerializableCipher=a.extend({cfg:a.extend({format:b}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return v.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=(i.kdf={}).OpenSSL={execute:function(e,t,r,n,i){if(n||(n=s.random(8)),i)o=p.create({keySize:t+r,hasher:i}).compute(e,n);else var o=p.create({keySize:t+r}).compute(e,n);var a=s.create(o.words.slice(t),4*r);return o.sigBytes=4*t,v.create({key:o,iv:a,salt:n})}},_=o.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:w}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=y.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=i.iv,y.decrypt.call(this,e,t,i.key,n)}}))))},8249:function(e,t,r){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&"undefined"!=typeof global&&global.crypto&&(n=global.crypto),!n)try{n=r(6113)}catch(e){}var i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),a={},s=a.lib={},c=s.Base={extend:function(e){var t=o(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)}},l=s.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||p).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(r,t/2)}},f=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(r,t)}},d=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*c,o);if(c){for(var p=0;p>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i>>6-a%4*2;n[i>>>2]|=s<<24-i%4*8,i++}return o.create(n,i)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},3786:function(e,t,r){var n,i,o;e.exports=(n=r(8249),o=(i=n).lib.WordArray,i.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,c=0;c<4&&a+.75*c>>6*(3-c)&63));var l=i.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,n=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a>>6-a%4*2;n[i>>>2]|=s<<24-i%4*8,i++}return o.create(n,i)}(e,r,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},n.enc.Base64url)},298:function(e,t,r){var n;e.exports=(n=r(8249),function(){var e=n,t=e.lib.WordArray,r=e.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var r=e.length,n=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(n,2*r)}}}(),n.enc.Utf16)},888:function(e,t,r){var n,i,o,a,s,c,l,u;e.exports=(u=r(8249),r(2783),r(9824),o=(i=(n=u).lib).Base,a=i.WordArray,c=(s=n.algo).MD5,l=s.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,i=n.hasher.create(),o=a.create(),s=o.words,c=n.keySize,l=n.iterations;s.lengthn&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,c=a.words,l=0;l>>2]|=e[i]<<24-i%4*8;t.call(this,n,r)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)},8214:function(e,t,r){var n;e.exports=(n=r(8249),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],d=e[t+2],h=e[t+3],g=e[t+4],m=e[t+5],v=e[t+6],b=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],k=e[t+11],x=e[t+12],E=e[t+13],T=e[t+14],A=e[t+15],S=o[0],C=o[1],N=o[2],L=o[3];S=l(S,C,N,L,a,7,s[0]),L=l(L,S,C,N,c,12,s[1]),N=l(N,L,S,C,d,17,s[2]),C=l(C,N,L,S,h,22,s[3]),S=l(S,C,N,L,g,7,s[4]),L=l(L,S,C,N,m,12,s[5]),N=l(N,L,S,C,v,17,s[6]),C=l(C,N,L,S,b,22,s[7]),S=l(S,C,N,L,y,7,s[8]),L=l(L,S,C,N,w,12,s[9]),N=l(N,L,S,C,_,17,s[10]),C=l(C,N,L,S,k,22,s[11]),S=l(S,C,N,L,x,7,s[12]),L=l(L,S,C,N,E,12,s[13]),N=l(N,L,S,C,T,17,s[14]),S=u(S,C=l(C,N,L,S,A,22,s[15]),N,L,c,5,s[16]),L=u(L,S,C,N,v,9,s[17]),N=u(N,L,S,C,k,14,s[18]),C=u(C,N,L,S,a,20,s[19]),S=u(S,C,N,L,m,5,s[20]),L=u(L,S,C,N,_,9,s[21]),N=u(N,L,S,C,A,14,s[22]),C=u(C,N,L,S,g,20,s[23]),S=u(S,C,N,L,w,5,s[24]),L=u(L,S,C,N,T,9,s[25]),N=u(N,L,S,C,h,14,s[26]),C=u(C,N,L,S,y,20,s[27]),S=u(S,C,N,L,E,5,s[28]),L=u(L,S,C,N,d,9,s[29]),N=u(N,L,S,C,b,14,s[30]),S=p(S,C=u(C,N,L,S,x,20,s[31]),N,L,m,4,s[32]),L=p(L,S,C,N,y,11,s[33]),N=p(N,L,S,C,k,16,s[34]),C=p(C,N,L,S,T,23,s[35]),S=p(S,C,N,L,c,4,s[36]),L=p(L,S,C,N,g,11,s[37]),N=p(N,L,S,C,b,16,s[38]),C=p(C,N,L,S,_,23,s[39]),S=p(S,C,N,L,E,4,s[40]),L=p(L,S,C,N,a,11,s[41]),N=p(N,L,S,C,h,16,s[42]),C=p(C,N,L,S,v,23,s[43]),S=p(S,C,N,L,w,4,s[44]),L=p(L,S,C,N,x,11,s[45]),N=p(N,L,S,C,A,16,s[46]),S=f(S,C=p(C,N,L,S,d,23,s[47]),N,L,a,6,s[48]),L=f(L,S,C,N,b,10,s[49]),N=f(N,L,S,C,T,15,s[50]),C=f(C,N,L,S,m,21,s[51]),S=f(S,C,N,L,x,6,s[52]),L=f(L,S,C,N,h,10,s[53]),N=f(N,L,S,C,_,15,s[54]),C=f(C,N,L,S,c,21,s[55]),S=f(S,C,N,L,y,6,s[56]),L=f(L,S,C,N,A,10,s[57]),N=f(N,L,S,C,v,15,s[58]),C=f(C,N,L,S,E,21,s[59]),S=f(S,C,N,L,g,6,s[60]),L=f(L,S,C,N,k,10,s[61]),N=f(N,L,S,C,d,15,s[62]),C=f(C,N,L,S,w,21,s[63]),o[0]=o[0]+S|0,o[1]=o[1]+C|0,o[2]=o[2]+N|0,o[3]=o[3]+L|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<>>32-o)+t}function u(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<>>32-o)+t}function p(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),n.MD5)},8568:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.mode.CFB=function(){var e=n.lib.BlockCipherMode.extend();function t(e,t,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var a=0;a>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var c=0;c>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)},2807:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.Iso10126={pad:function(e,t){var r=4*t,i=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)},1077:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},6991:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},6475:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},n.pad.ZeroPadding)},2112:function(e,t,r){var n,i,o,a,s,c,l,u,p;e.exports=(p=r(8249),r(2153),r(9824),o=(i=(n=p).lib).Base,a=i.WordArray,c=(s=n.algo).SHA256,l=s.HMAC,u=s.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=l.create(r.hasher,e),i=a.create(),o=a.create([1]),s=i.words,c=o.words,u=r.keySize,p=r.iterations;s.length>>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],n=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 i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),p=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=p,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=p,n[6]^=u,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),n.RabbitLegacy)},4454:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var 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],i=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,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),p=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=p,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=p,i[6]^=u,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),n.Rabbit)},1857:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}e.RC4=t._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),n.RC4)},706:function(e,t,r){var n;e.exports=(n=r(8249),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=i.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=i.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]),l=i.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]),u=i.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]),p=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,d,w,_,k,x,E,T,A,S,C=this._hash.words,N=p.words,L=f.words,D=s.words,O=c.words,q=l.words,B=u.words;for(k=o=C[0],x=a=C[1],E=d=C[2],T=w=C[3],A=_=C[4],r=0;r<80;r+=1)S=o+e[t+D[r]]|0,S+=r<16?h(a,d,w)+N[0]:r<32?g(a,d,w)+N[1]:r<48?m(a,d,w)+N[2]:r<64?v(a,d,w)+N[3]:b(a,d,w)+N[4],S=(S=y(S|=0,q[r]))+_|0,o=_,_=w,w=y(d,10),d=a,a=S,S=k+e[t+O[r]]|0,S+=r<16?b(x,E,T)+L[0]:r<32?v(x,E,T)+L[1]:r<48?m(x,E,T)+L[2]:r<64?g(x,E,T)+L[3]:h(x,E,T)+L[4],S=(S=y(S|=0,B[r]))+A|0,k=A,A=T,T=y(E,10),E=x,x=S;S=C[1]+d+T|0,C[1]=C[2]+w+A|0,C[2]=C[3]+_+k|0,C[3]=C[4]+o+x|0,C[4]=C[0]+a+E|0,C[0]=S},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,r){return e^t^r}function g(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function v(e,t,r){return e&r|t&~r}function b(e,t,r){return e^(t|~r)}function y(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(d),t.HmacRIPEMD160=o._createHmacHelper(d)}(Math),n.RIPEMD160)},2783:function(e,t,r){var n,i,o,a,s,c,l,u;e.exports=(i=(n=u=r(8249)).lib,o=i.WordArray,a=i.Hasher,s=n.algo,c=[],l=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=0;l<80;l++){if(l<16)c[l]=0|e[t+l];else{var u=c[l-3]^c[l-8]^c[l-14]^c[l-16];c[l]=u<<1|u>>>31}var p=(n<<5|n>>>27)+s+c[l];p+=l<20?1518500249+(i&o|~i&a):l<40?1859775393+(i^o^a):l<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=p}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=a._createHelper(l),n.HmacSHA1=a._createHmacHelper(l),u.SHA1)},7792:function(e,t,r){var n,i,o,a,s,c;e.exports=(c=r(8249),r(2153),i=(n=c).lib.WordArray,o=n.algo,a=o.SHA256,s=o.SHA224=a.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=a._createHelper(s),n.HmacSHA224=a._createHmacHelper(s),c.SHA224)},2153:function(e,t,r){var n;e.exports=(n=r(8249),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),c[i]=r(e.pow(n,1/3)),i++),n++}();var l=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],p=r[6],f=r[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var h=l[d-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,m=l[d-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[d]=g+l[d-7]+v+l[d-16]}var b=n&i^n&o^i&o,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&p)+c[d]+l[d];f=p,p=u,u=s,s=a+w|0,a=o,o=i,i=n,n=w+(y+b)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+u|0,r[6]=r[6]+p|0,r[7]=r[7]+f|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),n.SHA256)},3327:function(e,t,r){var n;e.exports=(n=r(8249),r(4938),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,c=[],l=[],u=[];!function(){for(var e=1,t=0,r=0;r<24;r++){c[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,p=0,f=0;f<7;f++){if(1&i){var d=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(C=r[i]).high^=a,C.low^=o}for(var s=0;s<24;s++){for(var f=0;f<5;f++){for(var d=0,h=0,g=0;g<5;g++)d^=(C=r[f+5*g]).high,h^=C.low;var m=p[f];m.high=d,m.low=h}for(f=0;f<5;f++){var v=p[(f+4)%5],b=p[(f+1)%5],y=b.high,w=b.low;for(d=v.high^(y<<1|w>>>31),h=v.low^(w<<1|y>>>31),g=0;g<5;g++)(C=r[f+5*g]).high^=d,C.low^=h}for(var _=1;_<25;_++){var k=(C=r[_]).high,x=C.low,E=c[_];E<32?(d=k<>>32-E,h=x<>>32-E):(d=x<>>64-E,h=k<>>64-E);var T=p[l[_]];T.high=d,T.low=h}var A=p[0],S=r[0];for(A.high=S.high,A.low=S.low,f=0;f<5;f++)for(g=0;g<5;g++){var C=r[_=f+5*g],N=p[_],L=p[(f+1)%5+5*g],D=p[(f+2)%5+5*g];C.high=N.high^~L.high&D.high,C.low=N.low^~L.low&D.low}C=r[0];var O=u[s];C.high^=O.high,C.low^=O.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,l=[],u=0;u>>24)|4278255360&(f<<24|f>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(f)}return new i.init(l,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(f),t.HmacSHA3=o._createHmacHelper(f)}(Math),n.SHA3)},7460:function(e,t,r){var n,i,o,a,s,c,l,u;e.exports=(u=r(8249),r(4938),r(34),i=(n=u).x64,o=i.Word,a=i.WordArray,s=n.algo,c=s.SHA512,l=s.SHA384=c.extend({_doReset:function(){this._hash=new a.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=c._createHelper(l),n.HmacSHA384=c._createHmacHelper(l),u.SHA384)},34:function(e,t,r){var n;e.exports=(n=r(8249),r(4938),function(){var e=n,t=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=s()}();var u=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],p=r[6],f=r[7],d=n.high,h=n.low,g=i.high,m=i.low,v=o.high,b=o.low,y=a.high,w=a.low,_=s.high,k=s.low,x=u.high,E=u.low,T=p.high,A=p.low,S=f.high,C=f.low,N=d,L=h,D=g,O=m,q=v,B=b,R=y,P=w,j=_,M=k,F=x,I=E,U=T,H=A,V=S,z=C,G=0;G<80;G++){var K,$,W=l[G];if(G<16)$=W.high=0|e[t+2*G],K=W.low=0|e[t+2*G+1];else{var Y=l[G-15],J=Y.high,X=Y.low,Z=(J>>>1|X<<31)^(J>>>8|X<<24)^J>>>7,Q=(X>>>1|J<<31)^(X>>>8|J<<24)^(X>>>7|J<<25),ee=l[G-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=l[G-7],ae=oe.high,se=oe.low,ce=l[G-16],le=ce.high,ue=ce.low;$=($=($=Z+ae+((K=Q+se)>>>0>>0?1:0))+ne+((K+=ie)>>>0>>0?1:0))+le+((K+=ue)>>>0>>0?1:0),W.high=$,W.low=K}var pe,fe=j&F^~j&U,de=M&I^~M&H,he=N&D^N&q^D&q,ge=L&O^L&B^O&B,me=(N>>>28|L<<4)^(N<<30|L>>>2)^(N<<25|L>>>7),ve=(L>>>28|N<<4)^(L<<30|N>>>2)^(L<<25|N>>>7),be=(j>>>14|M<<18)^(j>>>18|M<<14)^(j<<23|M>>>9),ye=(M>>>14|j<<18)^(M>>>18|j<<14)^(M<<23|j>>>9),we=c[G],_e=we.high,ke=we.low,xe=V+be+((pe=z+ye)>>>0>>0?1:0),Ee=ve+ge;V=U,z=H,U=F,H=I,F=j,I=M,j=R+(xe=(xe=(xe=xe+fe+((pe+=de)>>>0>>0?1:0))+_e+((pe+=ke)>>>0>>0?1:0))+$+((pe+=K)>>>0>>0?1:0))+((M=P+pe|0)>>>0

>>0?1:0)|0,R=q,P=B,q=D,B=O,D=N,O=L,N=xe+(me+he+(Ee>>>0>>0?1:0))+((L=pe+Ee|0)>>>0>>0?1:0)|0}h=n.low=h+L,n.high=d+N+(h>>>0>>0?1:0),m=i.low=m+O,i.high=g+D+(m>>>0>>0?1:0),b=o.low=b+B,o.high=v+q+(b>>>0>>0?1:0),w=a.low=w+P,a.high=y+R+(w>>>0

>>0?1:0),k=s.low=k+M,s.high=_+j+(k>>>0>>0?1:0),E=u.low=E+I,u.high=x+F+(E>>>0>>0?1:0),A=p.low=A+H,p.high=T+U+(A>>>0>>0?1:0),C=f.low=C+z,f.high=S+V+(C>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,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(u),e.HmacSHA512=t._createHmacHelper(u)}(),n.SHA512)},4253:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib,r=t.WordArray,i=t.BlockCipher,o=e.algo,a=[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],s=[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],l=[{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}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var l=i[o]=[],u=c[o];for(r=0;r<24;r++)l[r/6|0]|=t[(s[r]-1+u)%28]<<31-r%6,l[4+(r/6|0)]|=t[28+(s[r+24]-1+u)%28]<<31-r%6;for(l[0]=l[0]<<1|l[0]>>>31,r=1;r<7;r++)l[r]=l[r]>>>4*(r-1)+3;l[7]=l[7]<<5|l[7]>>>27}var p=this._invSubKeys=[];for(r=0;r<16;r++)p[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,c=0;c<8;c++)s|=l[c][((a^i[c])&u[c])>>>0];this._lBlock=a,this._rBlock=o^s}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=p.createEncryptor(r.create(t)),this._des2=p.createEncryptor(r.create(n)),this._des3=p.createEncryptor(r.create(i))},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=i._createHelper(h)}(),n.TripleDES)},4938:function(e,t,r){var n,i,o,a,s,c;e.exports=(n=r(8249),o=(i=n).lib,a=o.Base,s=o.WordArray,(c=i.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),c.WordArray=a.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,r=[],n=0;n{"use strict";r.d(t,{Z:()=>s});var n=r(8081),i=r.n(n),o=r(3645),a=r.n(o)()(i());a.push([e.id,".weread-view-content {\n\tpadding: 0 !important;\n\toverflow: hidden !important;\n}\n\n.weread-frame {\n\twidth: 100%;\n\theight: 100%;\n\tborder: none;\n\tbackground-clip: content-box;\n}",""]);const s=a},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},996:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeRules=void 0;var n=r(1073),i=/[-[\]{}()*+?.,\\^$|#\s]/g;function o(e){return e.replace(i,"\\$&")}var a=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function s(e,t){return"boolean"==typeof e.ignoreCase?e.ignoreCase:"quirks"===e.ignoreCase?!!t.quirksMode:!t.xmlMode&&a.has(e.name)}t.attributeRules={equals:function(e,t,r){var n=r.adapter,i=t.name,o=t.value;return s(t,r)?(o=o.toLowerCase(),function(t){var r=n.getAttributeValue(t,i);return null!=r&&r.length===o.length&&r.toLowerCase()===o&&e(t)}):function(t){return n.getAttributeValue(t,i)===o&&e(t)}},hyphen:function(e,t,r){var n=r.adapter,i=t.name,o=t.value,a=o.length;return s(t,r)?(o=o.toLowerCase(),function(t){var r=n.getAttributeValue(t,i);return null!=r&&(r.length===a||"-"===r.charAt(a))&&r.substr(0,a).toLowerCase()===o&&e(t)}):function(t){var r=n.getAttributeValue(t,i);return null!=r&&(r.length===a||"-"===r.charAt(a))&&r.substr(0,a)===o&&e(t)}},element:function(e,t,r){var i=r.adapter,a=t.name,c=t.value;if(/\s/.test(c))return n.falseFunc;var l=new RegExp("(?:^|\\s)".concat(o(c),"(?:$|\\s)"),s(t,r)?"i":"");return function(t){var r=i.getAttributeValue(t,a);return null!=r&&r.length>=c.length&&l.test(r)&&e(t)}},exists:function(e,t,r){var n=t.name,i=r.adapter;return function(t){return i.hasAttrib(t,n)&&e(t)}},start:function(e,t,r){var i=r.adapter,o=t.name,a=t.value,c=a.length;return 0===c?n.falseFunc:s(t,r)?(a=a.toLowerCase(),function(t){var r=i.getAttributeValue(t,o);return null!=r&&r.length>=c&&r.substr(0,c).toLowerCase()===a&&e(t)}):function(t){var r;return!!(null===(r=i.getAttributeValue(t,o))||void 0===r?void 0:r.startsWith(a))&&e(t)}},end:function(e,t,r){var i=r.adapter,o=t.name,a=t.value,c=-a.length;return 0===c?n.falseFunc:s(t,r)?(a=a.toLowerCase(),function(t){var r;return(null===(r=i.getAttributeValue(t,o))||void 0===r?void 0:r.substr(c).toLowerCase())===a&&e(t)}):function(t){var r;return!!(null===(r=i.getAttributeValue(t,o))||void 0===r?void 0:r.endsWith(a))&&e(t)}},any:function(e,t,r){var i=r.adapter,a=t.name,c=t.value;if(""===c)return n.falseFunc;if(s(t,r)){var l=new RegExp(o(c),"i");return function(t){var r=i.getAttributeValue(t,a);return null!=r&&r.length>=c.length&&l.test(r)&&e(t)}}return function(t){var r;return!!(null===(r=i.getAttributeValue(t,a))||void 0===r?void 0:r.includes(c))&&e(t)}},not:function(e,t,r){var n=r.adapter,i=t.name,o=t.value;return""===o?function(t){return!!n.getAttributeValue(t,i)&&e(t)}:s(t,r)?(o=o.toLowerCase(),function(t){var r=n.getAttributeValue(t,i);return(null==r||r.length!==o.length||r.toLowerCase()!==o)&&e(t)}):function(t){return n.getAttributeValue(t,i)!==o&&e(t)}}}},8866:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.compileToken=t.compileUnsafe=t.compile=void 0;var i=r(7763),o=r(1073),a=n(r(7353)),s=r(7177),c=r(3621),l=r(1768);function u(e,t,r){return g("string"==typeof e?(0,i.parse)(e):e,t,r)}function p(e){return"pseudo"===e.type&&("scope"===e.name||Array.isArray(e.data)&&e.data.some((function(e){return e.some(p)})))}t.compile=function(e,t,r){var n=u(e,t,r);return(0,l.ensureIsTag)(n,t.adapter)},t.compileUnsafe=u;var f={type:i.SelectorType.Descendant},d={type:"_flexibleDescendant"},h={type:i.SelectorType.Pseudo,name:"scope",data:null};function g(e,t,r){var n;(e=e.filter((function(e){return e.length>0}))).forEach(a.default),r=null!==(n=t.context)&&void 0!==n?n:r;var i=Array.isArray(r),u=r&&(Array.isArray(r)?r:[r]);!function(e,t,r){for(var n=t.adapter,i=!!(null==r?void 0:r.every((function(e){var t=n.isTag(e)&&n.getParent(e);return e===l.PLACEHOLDER_ELEMENT||t&&n.isTag(t)}))),o=0,a=e;o0&&(0,s.isTraversal)(c[0])&&"descendant"!==c[0].type);else{if(!i||c.some(p))continue;c.unshift(f)}c.unshift(h)}}(e,t,u);var v=!1,b=e.map((function(e){if(e.length>=2){var r=e[0],n=e[1];"pseudo"!==r.type||"scope"!==r.name||(i&&"descendant"===n.type?e[1]=d:"adjacent"!==n.type&&"sibling"!==n.type||(v=!0))}return function(e,t,r){var n;return e.reduce((function(e,n){return e===o.falseFunc?o.falseFunc:(0,c.compileGeneralSelector)(e,n,t,r,g)}),null!==(n=t.rootFunc)&&void 0!==n?n:o.trueFunc)}(e,t,u)})).reduce(m,o.falseFunc);return b.shouldTestNextSiblings=v,b}function m(e,t){return t===o.falseFunc||e===o.trueFunc?e:e===o.falseFunc||t===o.trueFunc?t:function(r){return e(r)||t(r)}}t.compileToken=g},3621:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileGeneralSelector=void 0;var n=r(996),i=r(8677),o=r(7763);t.compileGeneralSelector=function(e,t,r,a,s){var c=r.adapter,l=r.equals;switch(t.type){case o.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case o.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case o.SelectorType.Attribute:if(null!=t.namespace)throw new Error("Namespaced attributes are not yet supported by css-select");return r.xmlMode&&!r.lowerCaseAttributeNames||(t.name=t.name.toLowerCase()),n.attributeRules[t.action](e,t,r);case o.SelectorType.Pseudo:return(0,i.compilePseudoSelector)(e,t,r,a,s);case o.SelectorType.Tag:if(null!=t.namespace)throw new Error("Namespaced tag names are not yet supported by css-select");var u=t.name;return r.xmlMode&&!r.lowerCaseTags||(u=u.toLowerCase()),function(t){return c.getName(t)===u&&e(t)};case o.SelectorType.Descendant:if(!1===r.cacheResults||"undefined"==typeof WeakSet)return function(t){for(var r=t;r=c.getParent(r);)if(c.isTag(r)&&e(r))return!0;return!1};var p=new WeakSet;return function(t){for(var r=t;r=c.getParent(r);)if(!p.has(r)){if(c.isTag(r)&&e(r))return!0;p.add(r)}return!1};case"_flexibleDescendant":return function(t){var r=t;do{if(c.isTag(r)&&e(r))return!0}while(r=c.getParent(r));return!1};case o.SelectorType.Parent:return function(t){return c.getChildren(t).some((function(t){return c.isTag(t)&&e(t)}))};case o.SelectorType.Child:return function(t){var r=c.getParent(t);return null!=r&&c.isTag(r)&&e(r)};case o.SelectorType.Sibling:return function(t){for(var r=c.getSiblings(t),n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTraversal=t.procedure=void 0,t.procedure={universal:50,tag:30,attribute:1,pseudo:0,"pseudo-element":0,"column-combinator":-1,descendant:-1,child:-1,parent:-1,sibling:-1,adjacent:-1,_flexibleDescendant:-1},t.isTraversal=function(e){return t.procedure[e.type]<0}},2968:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aliases=void 0,t.aliases={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:":is(\n :is(button, input, select, textarea, optgroup, option)[disabled],\n optgroup[disabled] > option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n )",enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"}},7689:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.filters=void 0;var i=n(r(7540)),o=r(1073);function a(e,t){return function(r){var n=t.getParent(r);return null!=n&&t.isTag(n)&&e(r)}}function s(e){return function(t,r,n){var i=n.adapter[e];return"function"!=typeof i?o.falseFunc:function(e){return i(e)&&t(e)}}}t.filters={contains:function(e,t,r){var n=r.adapter;return function(r){return e(r)&&n.getText(r).includes(t)}},icontains:function(e,t,r){var n=r.adapter,i=t.toLowerCase();return function(t){return e(t)&&n.getText(t).toLowerCase().includes(i)}},"nth-child":function(e,t,r){var n=r.adapter,s=r.equals,c=(0,i.default)(t);return c===o.falseFunc?o.falseFunc:c===o.trueFunc?a(e,n):function(t){for(var r=n.getSiblings(t),i=0,o=0;o=0&&!s(t,r[o]);o--)n.isTag(r[o])&&i++;return c(i)&&e(t)}},"nth-of-type":function(e,t,r){var n=r.adapter,s=r.equals,c=(0,i.default)(t);return c===o.falseFunc?o.falseFunc:c===o.trueFunc?a(e,n):function(t){for(var r=n.getSiblings(t),i=0,o=0;o=0;o--){var a=r[o];if(s(t,a))break;n.isTag(a)&&n.getName(a)===n.getName(t)&&i++}return c(i)&&e(t)}},root:function(e,t,r){var n=r.adapter;return function(t){var r=n.getParent(t);return(null==r||!n.isTag(r))&&e(t)}},scope:function(e,r,n,i){var o=n.equals;return i&&0!==i.length?1===i.length?function(t){return o(i[0],t)&&e(t)}:function(t){return i.includes(t)&&e(t)}:t.filters.root(e,r,n)},hover:s("isHovered"),visited:s("isVisited"),active:s("isActive")}},8677:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compilePseudoSelector=t.aliases=t.pseudos=t.filters=void 0;var n=r(1073),i=r(7763),o=r(7689);Object.defineProperty(t,"filters",{enumerable:!0,get:function(){return o.filters}});var a=r(7221);Object.defineProperty(t,"pseudos",{enumerable:!0,get:function(){return a.pseudos}});var s=r(2968);Object.defineProperty(t,"aliases",{enumerable:!0,get:function(){return s.aliases}});var c=r(1768);t.compilePseudoSelector=function(e,t,r,l,u){var p=t.name,f=t.data;if(Array.isArray(f))return c.subselects[p](e,f,r,l,u);if(p in s.aliases){if(null!=f)throw new Error("Pseudo ".concat(p," doesn't have any arguments"));var d=(0,i.parse)(s.aliases[p]);return c.subselects.is(e,d,r,l,u)}if(p in o.filters)return o.filters[p](e,f,r,l);if(p in a.pseudos){var h=a.pseudos[p];return(0,a.verifyPseudoArgs)(h,p,f),h===n.falseFunc?n.falseFunc:e===n.trueFunc?function(e){return h(e,r,f)}:function(t){return h(t,r,f)&&e(t)}}throw new Error("unmatched pseudo-class :".concat(p))}},7221:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyPseudoArgs=t.pseudos=void 0,t.pseudos={empty:function(e,t){var r=t.adapter;return!r.getChildren(e).some((function(e){return r.isTag(e)||""!==r.getText(e)}))},"first-child":function(e,t){var r=t.adapter,n=t.equals,i=r.getSiblings(e).find((function(e){return r.isTag(e)}));return null!=i&&n(e,i)},"last-child":function(e,t){for(var r=t.adapter,n=t.equals,i=r.getSiblings(e),o=i.length-1;o>=0;o--){if(n(e,i[o]))return!0;if(r.isTag(i[o]))break}return!1},"first-of-type":function(e,t){for(var r=t.adapter,n=t.equals,i=r.getSiblings(e),o=r.getName(e),a=0;a=0;a--){var s=i[a];if(n(e,s))return!0;if(r.isTag(s)&&r.getName(s)===o)break}return!1},"only-of-type":function(e,t){var r=t.adapter,n=t.equals,i=r.getName(e);return r.getSiblings(e).every((function(t){return n(e,t)||!r.isTag(t)||r.getName(t)!==i}))},"only-child":function(e,t){var r=t.adapter,n=t.equals;return r.getSiblings(e).every((function(t){return n(e,t)||!r.isTag(t)}))}},t.verifyPseudoArgs=function(e,t,r){if(null===r){if(e.length>2)throw new Error("pseudo-selector :".concat(t," requires an argument"))}else if(2===e.length)throw new Error("pseudo-selector :".concat(t," doesn't have any arguments"))}},1768:function(e,t,r){"use strict";var n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7763),i=r(7177),o={exists:10,equals:8,not:7,start:6,end:6,any:5,hyphen:4,element:4};function a(e){var t=i.procedure[e.type];if(e.type===n.SelectorType.Attribute)(t=o[e.action])===o.equals&&"id"===e.name&&(t=9),e.ignoreCase&&(t>>=1);else if(e.type===n.SelectorType.Pseudo)if(e.data)if("has"===e.name||"contains"===e.name)t=0;else if(Array.isArray(e.data)){t=0;for(var r=0;rt&&(t=s)}e.data.length>1&&t>0&&(t-=1)}else t=1;else t=3;return t}t.default=function(e){for(var t=e.map(a),r=1;r=0&&n{"use strict";var n;r.r(t),r.d(t,{AttributeAction:()=>o,IgnoreCaseMode:()=>i,SelectorType:()=>n,isTraversal:()=>u,parse:()=>m,stringify:()=>x}),function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"}(n||(n={}));const i={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1};var o;!function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"}(o||(o={}));const a=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,s=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,c=new Map([[126,o.Element],[94,o.Start],[36,o.End],[42,o.Any],[33,o.Not],[124,o.Hyphen]]),l=new Set(["has","not","matches","is","where","host","host-context"]);function u(e){switch(e.type){case n.Adjacent:case n.Child:case n.Descendant:case n.Parent:case n.Sibling:case n.ColumnCombinator:return!0;default:return!1}}const p=new Set(["contains","icontains"]);function f(e,t,r){const n=parseInt(t,16)-65536;return n!=n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)}function d(e){return e.replace(s,f)}function h(e){return 39===e||34===e}function g(e){return 32===e||9===e||10===e||12===e||13===e}function m(e){const t=[],r=v(t,`${e}`,0);if(r0&&r0&&u(i[i.length-1]))throw new Error("Did not expect successive traversals.")}function w(e){i.length>0&&i[i.length-1].type===n.Descendant?i[i.length-1].type=e:(y(),i.push({type:e}))}function _(e,t){i.push({type:n.Attribute,name:e,action:t,value:s(1),namespace:null,ignoreCase:"quirks"})}function k(){if(i.length&&i[i.length-1].type===n.Descendant&&i.pop(),0===i.length)throw new Error("Empty sub-selector");e.push(i)}if(f(0),t.length===r)return r;e:for(;re.charCodeAt(0)))),_=new Set(y.map((e=>e.charCodeAt(0)))),k=new Set([...y,"~","^","$","*","+","!","|",":","[","]"," ","."].map((e=>e.charCodeAt(0))));function x(e){return e.map((e=>e.map(E).join(""))).join(", ")}function E(e,t,r){switch(e.type){case n.Child:return 0===t?"> ":" > ";case n.Parent:return 0===t?"< ":" < ";case n.Sibling:return 0===t?"~ ":" ~ ";case n.Adjacent:return 0===t?"+ ":" + ";case n.Descendant:return" ";case n.ColumnCombinator:return 0===t?"|| ":" || ";case n.Universal:return"*"===e.namespace&&t+10?n+e.slice(r):e}},7837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),t.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},7220:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r";case s.Comment:return"\x3c!--"+e.data+"--\x3e";case s.CDATA:return function(e){return""}(e);case s.Script:case s.Style:case s.Tag:return function(e,t){var r;"foreign"===t.xmlMode&&(e.name=null!==(r=l.elementNames.get(e.name))&&void 0!==r?r:e.name,e.parent&&h.has(e.parent.name)&&(t=n(n({},t),{xmlMode:!1}))),!t.xmlMode&&g.has(e.name)&&(t=n(n({},t),{xmlMode:"foreign"}));var i="<"+e.name,o=function(e,t){if(e)return Object.keys(e).map((function(r){var n,i,o=null!==(n=e[r])&&void 0!==n?n:"";return"foreign"===t.xmlMode&&(r=null!==(i=l.attributeNames.get(r))&&void 0!==i?i:r),t.emptyAttrs||t.xmlMode||""!==o?r+'="'+(!1!==t.decodeEntities?c.encodeXML(o):o.replace(/"/g,"""))+'"':r})).join(" ")}(e.attribs,t);return o&&(i+=" "+o),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&p.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=f(e.children,t)),!t.xmlMode&&p.has(e.name)||(i+="")),i}(e,t);case s.Text:return function(e,t){var r=e.data||"";return!1===t.decodeEntities||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(r=c.encodeXML(r)),r}(e,t)}}t.default=f;var h=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),g=new Set(["svg","math"])},9960:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(r=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},7915:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=r(9960),a=r(7790);i(r(7790),t);var s=/\s+/g,c={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,r){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=c),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:c,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?o.ElementType.Tag:void 0,n=new a.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,r=this.lastNode;if(r&&r.type===o.ElementType.Text)t?r.data=(r.data+e).replace(s," "):r.data+=e,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{t&&(e=e.replace(s," "));var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new a.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},7790:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(c);t.NodeWithChildren=d;var h=function(e){function t(t){return e.call(this,a.ElementType.Root,t)||this}return i(t,e),t}(d);t.Document=h;var g=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,i,n)||this;return o.name=t,o.attribs=r,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(d);function m(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function b(e){return e.type===a.ElementType.Text}function y(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function _(e){return e.type===a.ElementType.Root}function k(e,t){var r;if(void 0===t&&(t=!1),b(e))r=new u(e.data);else if(y(e))r=new p(e.data);else if(m(e)){var n=t?x(e.children):[],i=new g(e.name,o({},e.attribs),n);n.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),r=i}else if(v(e)){n=t?x(e.children):[];var s=new d(a.ElementType.CDATA,n);n.forEach((function(e){return e.parent=s})),r=s}else if(_(e)){n=t?x(e.children):[];var c=new h(n);n.forEach((function(e){return e.parent=c})),e["x-mode"]&&(c["x-mode"]=e["x-mode"]),r=c}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new f(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function x(e){for(var t=e.map((function(e){return k(e,!0)})),r=1;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var n=r(3346),i=r(3905);t.getFeed=function(e){var t=c(p,e);return t?"feed"===t.name?function(e){var t,r=e.children,n={type:"atom",items:(0,i.getElementsByTagName)("entry",r).map((function(e){var t,r=e.children,n={media:s(r)};u(n,"id","id",r),u(n,"title","title",r);var i=null===(t=c("link",r))||void 0===t?void 0:t.attribs.href;i&&(n.link=i);var o=l("summary",r)||l("content",r);o&&(n.description=o);var a=l("updated",r);return a&&(n.pubDate=new Date(a)),n}))};u(n,"id","id",r),u(n,"title","title",r);var o=null===(t=c("link",r))||void 0===t?void 0:t.attribs.href;o&&(n.link=o),u(n,"description","subtitle",r);var a=l("updated",r);return a&&(n.updated=new Date(a)),u(n,"author","email",r,!0),n}(t):function(e){var t,r,n=null!==(r=null===(t=c("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==r?r:[],o={type:e.name.substr(0,3),id:"",items:(0,i.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,r={media:s(t)};u(r,"id","guid",t),u(r,"title","title",t),u(r,"link","link",t),u(r,"description","description",t);var n=l("pubDate",t);return n&&(r.pubDate=new Date(n)),r}))};u(o,"title","title",n),u(o,"link","link",n),u(o,"description","description",n);var a=l("lastBuildDate",n);return a&&(o.updated=new Date(a)),u(o,"author","managingEditor",n,!0),o}(t):null};var o=["url","type","lang"],a=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function s(e){return(0,i.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,r={medium:t.medium,isDefault:!!t.isDefault},n=0,i=o;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.removeSubsets=void 0;var n=r(7915);function i(e,t){var r=[],i=[];if(e===t)return 0;for(var o=(0,n.hasChildren)(e)?e:e.parent;o;)r.unshift(o),o=o.parent;for(o=(0,n.hasChildren)(t)?t:t.parent;o;)i.unshift(o),o=o.parent;for(var a=Math.min(r.length,i.length),s=0;sl.indexOf(p)?c===t?20:4:c===e?10:2}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0)e.splice(t,1);else for(var n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e},t.compareDocumentPosition=i,t.uniqueSort=function(e){return e=e.filter((function(e,t,r){return!r.includes(e,t+1)})),e.sort((function(e,t){var r=i(e,t);return 2&r?-1:4&r?1:0})),e}},9432:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,i(r(3346),t),i(r(5010),t),i(r(6765),t),i(r(8043),t),i(r(3905),t),i(r(4975),t),i(r(6996),t);var o=r(7915);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return o.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return o.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return o.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return o.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return o.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return o.hasChildren}})},3905:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var n=r(7915),i=r(8043),o={tag_name:function(e){return"function"==typeof e?function(t){return(0,n.isTag)(t)&&e(t.name)}:"*"===e?n.isTag:function(t){return(0,n.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,n.isText)(t)&&e(t.data)}:function(t){return(0,n.isText)(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(r){return(0,n.isTag)(r)&&t(r.attribs[e])}:function(r){return(0,n.isTag)(r)&&r.attribs[e]===t}}function s(e,t){return function(r){return e(r)||t(r)}}function c(e){var t=Object.keys(e).map((function(t){var r=e[t];return Object.prototype.hasOwnProperty.call(o,t)?o[t](r):a(t,r)}));return 0===t.length?null:t.reduce(s)}t.testElement=function(e,t){var r=c(e);return!r||r(t)},t.getElements=function(e,t,r,n){void 0===n&&(n=1/0);var o=c(e);return o?(0,i.filter)(o,t,r,n):[]},t.getElementById=function(e,t,r){return void 0===r&&(r=!0),Array.isArray(t)||(t=[t]),(0,i.findOne)(a("id",e),t,r)},t.getElementsByTagName=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(o.tag_name(e),t,r,n)},t.getElementsByTagType=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(o.tag_type(e),t,r,n)}},6765:(e,t)=>{"use strict";function r(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=r,t.replaceElement=function(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(r(t),t.next=null,t.parent=e,e.children.push(t)>1){var n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null},t.append=function(e,t){r(t);var n=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=n,i){if(i.prev=t,n){var o=n.children;o.splice(o.lastIndexOf(i),0,t)}}else n&&n.children.push(t)},t.prependChild=function(e,t){if(r(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var n=e.children[1];n.prev=t,t.next=n}else t.next=null},t.prepend=function(e,t){r(t);var n=e.parent;if(n){var i=n.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},8043:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var n=r(7915);function i(e,t,r,o){for(var a=[],s=0,c=t;s0){var u=i(e,l.children,r,o);if(a.push.apply(a,u),(o-=u.length)<=0)break}}return a}t.filter=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),Array.isArray(t)||(t=[t]),i(e,t,r,n)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,r,i){void 0===i&&(i=!0);for(var o=null,a=0;a0&&(o=e(t,s.children)))}return o},t.existsOne=function e(t,r){return r.some((function(r){return(0,n.isTag)(r)&&(t(r)||r.children.length>0&&e(t,r.children))}))},t.findAll=function(e,t){for(var r,i,o=[],a=t.filter(n.isTag);i=a.shift();){var s=null===(r=i.children)||void 0===r?void 0:r.filter(n.isTag);s&&s.length>0&&a.unshift.apply(a,s),e(i)&&o.push(i)}return o}},3346:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var i=r(7915),o=n(r(7220)),a=r(9960);function s(e,t){return(0,o.default)(e,t)}t.getOuterHTML=s,t.getInnerHTML=function(e,t){return(0,i.hasChildren)(e)?e.children.map((function(e){return s(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,i.isCDATA)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&!(0,i.isComment)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&(t.type===a.ElementType.Tag||(0,i.isCDATA)(t))?e(t.children):(0,i.isText)(t)?t.data:""}},5010:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var n=r(7915),i=[];function o(e){var t;return null!==(t=e.children)&&void 0!==t?t:i}function a(e){return e.parent||null}t.getChildren=o,t.getParent=a,t.getSiblings=function(e){var t=a(e);if(null!=t)return o(t);for(var r=[e],n=e.prev,i=e.next;null!=n;)r.unshift(n),n=n.prev;for(;null!=i;)r.push(i),i=i.next;return r},t.getAttributeValue=function(e,t){var r;return null===(r=e.attribs)||void 0===r?void 0:r[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,n.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,n.isTag)(t);)t=t.prev;return t}},4076:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var i=n(r(9323)),o=n(r(9591)),a=n(r(2586)),s=n(r(26)),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function l(e){var t=p(e);return function(e){return String(e).replace(c,t)}}t.decodeXML=l(a.default),t.decodeHTMLStrict=l(i.default);var u=function(e,t){return e65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+String.fromCharCode(e)};t.default=function(e){return e>=55296&&e<=57343||e>1114111?"�":(e in i.default&&(e=i.default[e]),o(e))}},7322:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=void 0;var i=u(n(r(2586)).default),o=p(i);t.encodeXML=m(i);var a,s,c=u(n(r(9323)).default),l=p(c);function u(e){return Object.keys(e).sort().reduce((function(t,r){return t[e[r]]="&"+r+";",t}),{})}function p(e){for(var t=[],r=[],n=0,i=Object.keys(e);n1?d(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}var g=new RegExp(o.source+"|"+f.source,"g");function m(e){return function(t){return t.replace(g,(function(t){return e[t]||h(t)}))}}t.escape=function(e){return e.replace(g,h)},t.escapeUTF8=function(e){return e.replace(o,h)}},5863:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var n=r(4076),i=r(7322);t.decode=function(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?i.encodeXML:i.encodeHTML)(e)};var o=r(7322);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return o.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return o.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return o.encodeHTML}});var a=r(4076);Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return a.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return a.decodeXML}})},6492:function(e,t,r){var n;e=r.nmd(e),function(i){var o=(e&&e.exports,"object"==typeof global&&global);o.global!==o&&o.window;var a=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[\x01-\x7F]/g,c=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,u={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon",ˆ:"circ",ˇ:"caron","°":"deg","©":"copy","®":"reg","℗":"copysr",℘:"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78",𝒶:"ascr",𝕒:"aopf",𝔞:"afr",𝔸:"Aopf",𝔄:"Afr",𝒜:"Ascr",ª:"ordf",á:"aacute",Á:"Aacute",à:"agrave",À:"Agrave",ă:"abreve",Ă:"Abreve",â:"acirc",Â:"Acirc",å:"aring",Å:"angst",ä:"auml",Ä:"Auml",ã:"atilde",Ã:"Atilde",ą:"aogon",Ą:"Aogon",ā:"amacr",Ā:"Amacr",æ:"aelig",Æ:"AElig",𝒷:"bscr",𝕓:"bopf",𝔟:"bfr",𝔹:"Bopf",ℬ:"Bscr",𝔅:"Bfr",𝔠:"cfr",𝒸:"cscr",𝕔:"copf",ℭ:"Cfr",𝒞:"Cscr",ℂ:"Copf",ć:"cacute",Ć:"Cacute",ĉ:"ccirc",Ĉ:"Ccirc",č:"ccaron",Č:"Ccaron",ċ:"cdot",Ċ:"Cdot",ç:"ccedil",Ç:"Ccedil","℅":"incare",𝔡:"dfr",ⅆ:"dd",𝕕:"dopf",𝒹:"dscr",𝒟:"Dscr",𝔇:"Dfr",ⅅ:"DD",𝔻:"Dopf",ď:"dcaron",Ď:"Dcaron",đ:"dstrok",Đ:"Dstrok",ð:"eth",Ð:"ETH",ⅇ:"ee",ℯ:"escr",𝔢:"efr",𝕖:"eopf",ℰ:"Escr",𝔈:"Efr",𝔼:"Eopf",é:"eacute",É:"Eacute",è:"egrave",È:"Egrave",ê:"ecirc",Ê:"Ecirc",ě:"ecaron",Ě:"Ecaron",ë:"euml",Ë:"Euml",ė:"edot",Ė:"Edot",ę:"eogon",Ę:"Eogon",ē:"emacr",Ē:"Emacr",𝔣:"ffr",𝕗:"fopf",𝒻:"fscr",𝔉:"Ffr",𝔽:"Fopf",ℱ:"Fscr",ff:"fflig",ffi:"ffilig",ffl:"ffllig",fi:"filig",fj:"fjlig",fl:"fllig",ƒ:"fnof",ℊ:"gscr",𝕘:"gopf",𝔤:"gfr",𝒢:"Gscr",𝔾:"Gopf",𝔊:"Gfr",ǵ:"gacute",ğ:"gbreve",Ğ:"Gbreve",ĝ:"gcirc",Ĝ:"Gcirc",ġ:"gdot",Ġ:"Gdot",Ģ:"Gcedil",𝔥:"hfr",ℎ:"planckh",𝒽:"hscr",𝕙:"hopf",ℋ:"Hscr",ℌ:"Hfr",ℍ:"Hopf",ĥ:"hcirc",Ĥ:"Hcirc",ℏ:"hbar",ħ:"hstrok",Ħ:"Hstrok",𝕚:"iopf",𝔦:"ifr",𝒾:"iscr",ⅈ:"ii",𝕀:"Iopf",ℐ:"Iscr",ℑ:"Im",í:"iacute",Í:"Iacute",ì:"igrave",Ì:"Igrave",î:"icirc",Î:"Icirc",ï:"iuml",Ï:"Iuml",ĩ:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Į:"Iogon",ī:"imacr",Ī:"Imacr",ij:"ijlig",IJ:"IJlig",ı:"imath",𝒿:"jscr",𝕛:"jopf",𝔧:"jfr",𝒥:"Jscr",𝔍:"Jfr",𝕁:"Jopf",ĵ:"jcirc",Ĵ:"Jcirc",ȷ:"jmath",𝕜:"kopf",𝓀:"kscr",𝔨:"kfr",𝒦:"Kscr",𝕂:"Kopf",𝔎:"Kfr",ķ:"kcedil",Ķ:"Kcedil",𝔩:"lfr",𝓁:"lscr",ℓ:"ell",𝕝:"lopf",ℒ:"Lscr",𝔏:"Lfr",𝕃:"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ļ:"Lcedil",ł:"lstrok",Ł:"Lstrok",ŀ:"lmidot",Ŀ:"Lmidot",𝔪:"mfr",𝕞:"mopf",𝓂:"mscr",𝔐:"Mfr",𝕄:"Mopf",ℳ:"Mscr",𝔫:"nfr",𝕟:"nopf",𝓃:"nscr",ℕ:"Nopf",𝒩:"Nscr",𝔑:"Nfr",ń:"nacute",Ń:"Nacute",ň:"ncaron",Ň:"Ncaron",ñ:"ntilde",Ñ:"Ntilde",ņ:"ncedil",Ņ:"Ncedil","№":"numero",ŋ:"eng",Ŋ:"ENG",𝕠:"oopf",𝔬:"ofr",ℴ:"oscr",𝒪:"Oscr",𝔒:"Ofr",𝕆:"Oopf",º:"ordm",ó:"oacute",Ó:"Oacute",ò:"ograve",Ò:"Ograve",ô:"ocirc",Ô:"Ocirc",ö:"ouml",Ö:"Ouml",ő:"odblac",Ő:"Odblac",õ:"otilde",Õ:"Otilde",ø:"oslash",Ø:"Oslash",ō:"omacr",Ō:"Omacr",œ:"oelig",Œ:"OElig",𝔭:"pfr",𝓅:"pscr",𝕡:"popf",ℙ:"Popf",𝔓:"Pfr",𝒫:"Pscr",𝕢:"qopf",𝔮:"qfr",𝓆:"qscr",𝒬:"Qscr",𝔔:"Qfr",ℚ:"Qopf",ĸ:"kgreen",𝔯:"rfr",𝕣:"ropf",𝓇:"rscr",ℛ:"Rscr",ℜ:"Re",ℝ:"Ropf",ŕ:"racute",Ŕ:"Racute",ř:"rcaron",Ř:"Rcaron",ŗ:"rcedil",Ŗ:"Rcedil",𝕤:"sopf",𝓈:"sscr",𝔰:"sfr",𝕊:"Sopf",𝔖:"Sfr",𝒮:"Sscr","Ⓢ":"oS",ś:"sacute",Ś:"Sacute",ŝ:"scirc",Ŝ:"Scirc",š:"scaron",Š:"Scaron",ş:"scedil",Ş:"Scedil",ß:"szlig",𝔱:"tfr",𝓉:"tscr",𝕥:"topf",𝒯:"Tscr",𝔗:"Tfr",𝕋:"Topf",ť:"tcaron",Ť:"Tcaron",ţ:"tcedil",Ţ:"Tcedil","™":"trade",ŧ:"tstrok",Ŧ:"Tstrok",𝓊:"uscr",𝕦:"uopf",𝔲:"ufr",𝕌:"Uopf",𝔘:"Ufr",𝒰:"Uscr",ú:"uacute",Ú:"Uacute",ù:"ugrave",Ù:"Ugrave",ŭ:"ubreve",Ŭ:"Ubreve",û:"ucirc",Û:"Ucirc",ů:"uring",Ů:"Uring",ü:"uuml",Ü:"Uuml",ű:"udblac",Ű:"Udblac",ũ:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",ū:"umacr",Ū:"Umacr",𝔳:"vfr",𝕧:"vopf",𝓋:"vscr",𝔙:"Vfr",𝕍:"Vopf",𝒱:"Vscr",𝕨:"wopf",𝓌:"wscr",𝔴:"wfr",𝒲:"Wscr",𝕎:"Wopf",𝔚:"Wfr",ŵ:"wcirc",Ŵ:"Wcirc",𝔵:"xfr",𝓍:"xscr",𝕩:"xopf",𝕏:"Xopf",𝔛:"Xfr",𝒳:"Xscr",𝔶:"yfr",𝓎:"yscr",𝕪:"yopf",𝒴:"Yscr",𝔜:"Yfr",𝕐:"Yopf",ý:"yacute",Ý:"Yacute",ŷ:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml",𝓏:"zscr",𝔷:"zfr",𝕫:"zopf",ℨ:"Zfr",ℤ:"Zopf",𝒵:"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Ż:"Zdot",Ƶ:"imped",þ:"thorn",Þ:"THORN",ʼn:"napos",α:"alpha",Α:"Alpha",β:"beta",Β:"Beta",γ:"gamma",Γ:"Gamma",δ:"delta",Δ:"Delta",ε:"epsi",ϵ:"epsiv",Ε:"Epsilon",ϝ:"gammad",Ϝ:"Gammad",ζ:"zeta",Ζ:"Zeta",η:"eta",Η:"Eta",θ:"theta",ϑ:"thetav",Θ:"Theta",ι:"iota",Ι:"Iota",κ:"kappa",ϰ:"kappav",Κ:"Kappa",λ:"lambda",Λ:"Lambda",μ:"mu",µ:"micro",Μ:"Mu",ν:"nu",Ν:"Nu",ξ:"xi",Ξ:"Xi",ο:"omicron",Ο:"Omicron",π:"pi",ϖ:"piv",Π:"Pi",ρ:"rho",ϱ:"rhov",Ρ:"Rho",σ:"sigma",Σ:"Sigma",ς:"sigmaf",τ:"tau",Τ:"Tau",υ:"upsi",Υ:"Upsilon",ϒ:"Upsi",φ:"phi",ϕ:"phiv",Φ:"Phi",χ:"chi",Χ:"Chi",ψ:"psi",Ψ:"Psi",ω:"omega",Ω:"ohm",а:"acy",А:"Acy",б:"bcy",Б:"Bcy",в:"vcy",В:"Vcy",г:"gcy",Г:"Gcy",ѓ:"gjcy",Ѓ:"GJcy",д:"dcy",Д:"Dcy",ђ:"djcy",Ђ:"DJcy",е:"iecy",Е:"IEcy",ё:"iocy",Ё:"IOcy",є:"jukcy",Є:"Jukcy",ж:"zhcy",Ж:"ZHcy",з:"zcy",З:"Zcy",ѕ:"dscy",Ѕ:"DScy",и:"icy",И:"Icy",і:"iukcy",І:"Iukcy",ї:"yicy",Ї:"YIcy",й:"jcy",Й:"Jcy",ј:"jsercy",Ј:"Jsercy",к:"kcy",К:"Kcy",ќ:"kjcy",Ќ:"KJcy",л:"lcy",Л:"Lcy",љ:"ljcy",Љ:"LJcy",м:"mcy",М:"Mcy",н:"ncy",Н:"Ncy",њ:"njcy",Њ:"NJcy",о:"ocy",О:"Ocy",п:"pcy",П:"Pcy",р:"rcy",Р:"Rcy",с:"scy",С:"Scy",т:"tcy",Т:"Tcy",ћ:"tshcy",Ћ:"TSHcy",у:"ucy",У:"Ucy",ў:"ubrcy",Ў:"Ubrcy",ф:"fcy",Ф:"Fcy",х:"khcy",Х:"KHcy",ц:"tscy",Ц:"TScy",ч:"chcy",Ч:"CHcy",џ:"dzcy",Џ:"DZcy",ш:"shcy",Ш:"SHcy",щ:"shchcy",Щ:"SHCHcy",ъ:"hardcy",Ъ:"HARDcy",ы:"ycy",Ы:"Ycy",ь:"softcy",Ь:"SOFTcy",э:"ecy",Э:"Ecy",ю:"yucy",Ю:"YUcy",я:"yacy",Я:"YAcy",ℵ:"aleph",ℶ:"beth",ℷ:"gimel",ℸ:"daleth"},p=/["&'<>`]/g,f={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},d=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,h=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,m={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},v={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},b={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},y=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],w=String.fromCharCode,_={}.hasOwnProperty,k=function(e,t){return _.call(e,t)},x=function(e,t){if(!e)return t;var r,n={};for(r in t)n[r]=k(e,r)?e[r]:t[r];return n},E=function(e,t){var r="";return e>=55296&&e<=57343||e>1114111?(t&&S("character reference outside the permissible Unicode range"),"�"):k(b,e)?(t&&S("disallowed character reference"),b[e]):(t&&function(e,t){for(var r=-1,n=e.length;++r65535&&(r+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),r+=w(e))},T=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},A=function(e){return"&#"+e+";"},S=function(e){throw Error("Parse error: "+e)},C=function(e,t){(t=x(t,C.options)).strict&&h.test(e)&&S("forbidden code point");var r=t.encodeEverything,n=t.useNamedReferences,i=t.allowUnsafeSymbols,o=t.decimal?A:T,f=function(e){return o(e.charCodeAt(0))};return r?(e=e.replace(s,(function(e){return n&&k(u,e)?"&"+u[e]+";":f(e)})),n&&(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),n&&(e=e.replace(l,(function(e){return"&"+u[e]+";"})))):n?(i||(e=e.replace(p,(function(e){return"&"+u[e]+";"}))),e=(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(l,(function(e){return"&"+u[e]+";"}))):i||(e=e.replace(p,f)),e.replace(a,(function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return o(1024*(t-55296)+r-56320+65536)})).replace(c,f)};C.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var N=function(e,t){var r=(t=x(t,N.options)).strict;return r&&d.test(e)&&S("malformed character reference"),e.replace(g,(function(e,n,i,o,a,s,c,l,u){var p,f,d,h,g,b;return n?m[g=n]:i?(g=i,(b=o)&&t.isAttributeValue?(r&&"="==b&&S("`&` did not start a character reference"),e):(r&&S("named character reference was not terminated by a semicolon"),v[g]+(b||""))):a?(d=a,f=s,r&&!f&&S("character reference was not terminated by a semicolon"),p=parseInt(d,10),E(p,r)):c?(h=c,f=l,r&&!f&&S("character reference was not terminated by a semicolon"),p=parseInt(h,16),E(p,r)):(r&&S("named character reference was not terminated by a semicolon"),e)}))};N.options={isAttributeValue:!1,strict:!1};var L={version:"1.2.0",encode:C,decode:N,escape:function(e){return e.replace(p,(function(e){return f[e]}))},unescape:N};void 0===(n=function(){return L}.call(t,r,t,e))||(e.exports=n)}()},6040:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",i=1,o=2,a=1/0,s=9007199254740991,c="[object Arguments]",l="[object Array]",u="[object Boolean]",p="[object Date]",f="[object Error]",d="[object Function]",h="[object GeneratorFunction]",g="[object Map]",m="[object Number]",v="[object Object]",b="[object Promise]",y="[object RegExp]",w="[object Set]",_="[object String]",k="[object Symbol]",x="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S=/^\w*$/,C=/^\./,N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,L=/\\(\\)?/g,D=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,q={};q["[object Float32Array]"]=q["[object Float64Array]"]=q["[object Int8Array]"]=q["[object Int16Array]"]=q["[object Int32Array]"]=q["[object Uint8Array]"]=q["[object Uint8ClampedArray]"]=q["[object Uint16Array]"]=q["[object Uint32Array]"]=!0,q[c]=q[l]=q[E]=q[u]=q[T]=q[p]=q[f]=q[d]=q[g]=q[m]=q[v]=q[y]=q[w]=q[_]=q[x]=!1;var B="object"==typeof global&&global&&global.Object===Object&&global,R="object"==typeof self&&self&&self.Object===Object&&self,P=B||R||Function("return this")(),j=t&&!t.nodeType&&t,M=j&&e&&!e.nodeType&&e,F=M&&M.exports===j&&B.process,I=function(){try{return F&&F.binding("util")}catch(e){}}(),U=I&&I.isTypedArray;function H(e,t){for(var r=-1,n=t.length,i=e.length;++rl))return!1;var p=s.get(e);if(p&&s.get(t))return p==t;var f=-1,d=!0,h=a&i?new Ce:void 0;for(s.set(e,t),s.set(t,e);++f-1},Ae.prototype.set=function(e,t){var r=this.__data__,n=De(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Se.prototype.clear=function(){this.__data__={hash:new Te,map:new(fe||Ae),string:new Te}},Se.prototype.delete=function(e){return je(this,e).delete(e)},Se.prototype.get=function(e){return je(this,e).get(e)},Se.prototype.has=function(e){return je(this,e).has(e)},Se.prototype.set=function(e,t){return je(this,e).set(e,t),this},Ce.prototype.add=Ce.prototype.push=function(e){return this.__data__.set(e,n),this},Ce.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.clear=function(){this.__data__=new Ae},Ne.prototype.delete=function(e){return this.__data__.delete(e)},Ne.prototype.get=function(e){return this.__data__.get(e)},Ne.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ae){var n=r.__data__;if(!fe||n.length<199)return n.push([e,t]),this;r=this.__data__=new Se(n)}return r.set(e,t),this};var Fe=le?K(le,Object):pt,Ie=le?function(e){for(var t=[];e;)H(t,Fe(e)),e=ae(e);return t}:pt,Ue=function(e){return re.call(e)};function He(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=s}function nt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function it(e){return!!e&&"object"==typeof e}function ot(e){return"symbol"==typeof e||it(e)&&re.call(e)==k}var at,st=U?(at=U,function(e){return at(e)}):function(e){return it(e)&&rt(e.length)&&!!q[re.call(e)]};function ct(e){return et(e)?Le(e):function(e){if(!ze(e))return ue(e);var t=[];for(var r in Object(e))te.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}function lt(e){return et(e)?Le(e,!0):function(e){if(!nt(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ze(e),r=[];for(var n in e)("constructor"!=n||!t&&te.call(e,n))&&r.push(n);return r}(e)}function ut(e){return e}function pt(){return[]}e.exports=function(e,t){return null==e?{}:function(e,t,r){for(var n=-1,i=t.length,o={};++n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodeHtmlParserConfig=t.aTagTranslatorConfig=t.defaultCodeBlockTranslators=t.tableCellTranslatorConfig=t.tableRowTranslatorConfig=t.tableTranslatorConfig=t.defaultTranslators=t.defaultOptions=t.contentlessElements=t.defaultIgnoreElements=t.defaultBlockElements=void 0;const n=r(998),i=r(4923);t.defaultBlockElements=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"],t.defaultIgnoreElements=["AREA","BASE","COL","COMMAND","EMBED","HEAD","INPUT","KEYGEN","LINK","META","PARAM","SCRIPT","SOURCE","STYLE","TRACK","WBR"],t.contentlessElements=["BR","HR","IMG"],t.defaultOptions=Object.freeze({preferNativeParser:!1,codeFence:"```",bulletMarker:"*",indent:" ",codeBlockStyle:"fenced",emDelimiter:"_",strongDelimiter:"**",maxConsecutiveNewlines:3,globalEscape:[/[\\`*_~\[\]]/gm,"\\$&"],lineStartEscape:[/^(\s*?)((?:\+\s)|(?:[=>-])|(?:#{1,6}\s))|(?:(\d+)(\.\s))/gm,"$1$3\\$2$4"]}),t.defaultTranslators={pre:{noEscape:!0,preserveWhitespace:!0},br:{content:" \n",recurse:!1},hr:{content:"---",recurse:!1},"h1,h2,h3,h4,h5,h6":({node:e})=>({prefix:"#".repeat(+e.tagName.charAt(1))+" "}),"strong,b":{spaceIfRepeatingChar:!0,postprocess:({content:e,options:{strongDelimiter:t}})=>(0,n.isWhiteSpaceOnly)(e)?i.PostProcessResult.RemoveNode:(0,n.tagSurround)(e,t)},"del,s,strike":{spaceIfRepeatingChar:!0,postprocess:({content:e})=>(0,n.isWhiteSpaceOnly)(e)?i.PostProcessResult.RemoveNode:(0,n.tagSurround)(e,"~~")},"em,i":{spaceIfRepeatingChar:!0,postprocess:({content:e,options:{emDelimiter:t}})=>(0,n.isWhiteSpaceOnly)(e)?i.PostProcessResult.RemoveNode:(0,n.tagSurround)(e,t)},"ol,ul":({listKind:e})=>({surroundingNewlines:e?1:2}),li:({options:{bulletMarker:e},indentLevel:t,listKind:r,listItemNumber:o})=>{const a=+(t||0);return{prefix:" ".repeat(+(t||0))+("OL"===r&&void 0!==o?`${o}. `:`${e} `),surroundingNewlines:1,postprocess:({content:e})=>(0,n.isWhiteSpaceOnly)(e)?i.PostProcessResult.RemoveNode:e.trim().replace(/([^\r\n])(?:\r?\n)+/g,`$1 \n${" ".repeat(a)}`).replace(/(\S+?)[^\S\r\n]+$/gm,"$1 ")}},blockquote:{postprocess:({content:e})=>(0,n.trimNewLines)(e).replace(/^(>*)[^\S\r\n]?/gm,">$1 ")},code:({node:e,parent:t,options:{codeFence:r,codeBlockStyle:i},visitor:o})=>{var a,s;return["PRE","WRAPPED-PRE"].includes(null==t?void 0:t.tagName)&&t.childNodes.length<2?"fenced"===i?{noEscape:!0,prefix:r+((null===(s=null===(a=e.getAttribute("class"))||void 0===a?void 0:a.match(/language-(\S+)/))||void 0===s?void 0:s[1])||"")+"\n",postfix:"\n"+r,childTranslators:o.instance.codeBlockTranslators}:{noEscape:!0,postprocess:({content:e})=>e.replace(/^/gm," "),childTranslators:o.instance.codeBlockTranslators}:{spaceIfRepeatingChar:!0,noEscape:!0,postprocess:({content:e})=>{var t,r;const i="`"+((null===(r=null===(t=e.match(/`+/g))||void 0===t?void 0:t.sort(((e,t)=>t.length-e.length)))||void 0===r?void 0:r[0])||""),o=i.length>1?" ":"";return(0,n.surround)((0,n.surround)(e,o),i)}}},table:({visitor:e})=>({surroundingNewlines:2,childTranslators:e.instance.tableTranslators,postprocess:({content:e,nodeMetadata:t,node:r})=>{const o=(0,n.splitSpecial)(e).map((({text:e})=>e.replace(/^(?:\|\s+)?(.+)\s*\|\s*$/,"$1"))),a=[];let s=[];for(const e of o){if(!e)continue;const t=e.split(" |").map(((e,t)=>(e=e.trim(),(s.length{var r;l+="| ";for(let t=0;t" "+"-".repeat(e)+" |")).join("")+"\n")})),l}}),a:({node:e,options:t,visitor:r})=>{const n=e.getAttribute("href");if(!n)return{};let i="";for(const e of n)switch(e){case"(":i+="%28";break;case")":i+="%29";break;case"_":i+="%5F";break;case"*":i+="%2A";break;default:i+=e}const o=e.getAttribute("title");return e.textContent===n?{content:`<${i}>`}:{postprocess:({content:e})=>e.replace(/(?:\r?\n)+/g," "),childTranslators:r.instance.aTagTranslators,prefix:"[",postfix:"]"+(t.useLinkReferenceDefinitions?`[${r.addOrGetUrlDefinition(i)}]`:`(${i}${o?` "${o}"`:""})`)}},img:({node:e,options:t})=>{const r=e.getAttribute("src")||"";if(!r||!t.keepDataImages&&/^data:/i.test(r))return{ignore:!0};const n=e.getAttribute("alt")||"",i=e.getAttribute("title")||"";return{content:`![${n}](${r}${i&&` "${i}"`})`,recurse:!1}}},t.tableTranslatorConfig={caption:({visitor:e})=>({surroundingNewlines:!1,childTranslators:e.instance.tableCellTranslators,postprocess:({content:e,nodeMetadata:t,node:r})=>{const n=e.replace(/(?:\r?\n)+/g," ").trim();return n&&(t.get(r).tableMeta.caption="__"+n+"__"),i.PostProcessResult.RemoveNode}}),tr:({visitor:e})=>({surroundingNewlines:!1,childTranslators:e.instance.tableRowTranslators,postfix:"\n",prefix:"| ",postprocess:({content:e})=>/ \|\s*$/.test(e)?e:i.PostProcessResult.RemoveNode}),"th,td":({visitor:e})=>({surroundingNewlines:!1,childTranslators:e.instance.tableCellTranslators,prefix:" ",postfix:" |",postprocess:({content:e})=>(0,n.trimNewLines)(e).replace("|","\\|").replace(/(?:\r?\n)+/g," ").trim()})},t.tableRowTranslatorConfig={"th,td":t.tableTranslatorConfig["th,td"]},t.tableCellTranslatorConfig={a:t.defaultTranslators.a,"strong,b":t.defaultTranslators["strong,b"],"del,s,strike":t.defaultTranslators["del,s,strike"],"em,i":t.defaultTranslators["em,i"],img:t.defaultTranslators.img},t.defaultCodeBlockTranslators={br:{content:"\n",recurse:!1},hr:{content:"---",recurse:!1},"h1,h2,h3,h4,h5,h6":{prefix:"[",postfix:"]"},"ol,ul":t.defaultTranslators["ol,ul"],li:t.defaultTranslators.li,tr:{surroundingNewlines:!0},img:{recurse:!1}},t.aTagTranslatorConfig={br:{content:"\n",recurse:!1},hr:{content:"\n",recurse:!1},pre:t.defaultTranslators.pre,"strong,b":t.defaultTranslators["strong,b"],"del,s,strike":t.defaultTranslators["del,s,strike"],"em,i":t.defaultTranslators["em,i"],img:t.defaultTranslators.img},t.nodeHtmlParserConfig={lowerCaseTagName:!1,comment:!1,blockTextElements:{script:!1,noscript:!1,style:!1}}},2245:(e,t,r)=>{"use strict";t.dx=void 0;var n=r(7352);Object.defineProperty(t,"dx",{enumerable:!0,get:function(){return n.NodeHtmlMarkdown}});r(4923)},7352:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeHtmlMarkdown=void 0;const n=r(4923),i=r(7690),o=r(998),a=r(390);class s{constructor(e,t,r){var o,a,s,c;this.translators=new n.TranslatorCollection,this.aTagTranslators=new n.TranslatorCollection,this.codeBlockTranslators=new n.TranslatorCollection,this.tableTranslators=new n.TranslatorCollection,this.tableRowTranslators=new n.TranslatorCollection,this.tableCellTranslators=new n.TranslatorCollection,this.options=Object.assign(Object.assign({},i.defaultOptions),e);const l=null!==(a=null===(o=this.options.ignore)||void 0===o?void 0:o.concat(i.defaultIgnoreElements))&&void 0!==a?a:i.defaultIgnoreElements,u=null!==(c=null===(s=this.options.blockElements)||void 0===s?void 0:s.concat(i.defaultBlockElements))&&void 0!==c?c:i.defaultBlockElements;null==l||l.forEach((e=>{this.translators.set(e,{ignore:!0,recurse:!1}),this.codeBlockTranslators.set(e,{ignore:!0,recurse:!1})})),null==u||u.forEach((e=>{this.translators.set(e,{surroundingNewlines:2}),this.codeBlockTranslators.set(e,{surroundingNewlines:2})}));for(const[e,r]of Object.entries(Object.assign(Object.assign({},i.defaultTranslators),t)))this.translators.set(e,r,!0);for(const[e,t]of Object.entries(Object.assign(Object.assign({},i.defaultCodeBlockTranslators),r)))this.codeBlockTranslators.set(e,t,!0);for(const[e,t]of Object.entries(i.aTagTranslatorConfig))this.aTagTranslators.set(e,t,!0);for(const[e,t]of Object.entries(i.tableTranslatorConfig))this.tableTranslators.set(e,t,!0);for(const[e,t]of Object.entries(i.tableRowTranslatorConfig))this.tableRowTranslators.set(e,t,!0);for(const[e,t]of Object.entries(i.tableCellTranslatorConfig))this.tableCellTranslators.set(e,t,!0);this.options.textReplace||(this.options.textReplace=[]),this.options.textReplace.push([/^/gim,""])}static translate(e,t,r,n){return s.prototype.translateWorker.call(new s(t,r,n),e)}translate(e){return this.translateWorker(e)}translateWorker(e){const t="string"!=typeof e,r=t?e:{default:e},n={};for(const[e,t]of Object.entries(r)){const r=(0,o.parseHTML)(t,this.options);n[e]=(0,a.getMarkdownForHtmlNodes)(this,r,"default"!==e?e:void 0)}return t?n:n.default}}t.NodeHtmlMarkdown=s},5089:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isElementNode=t.isCommentNode=t.isTextNode=t.CommentNode=t.NodeType=void 0;const n=r(698);Object.defineProperty(t,"CommentNode",{enumerable:!0,get:function(){return n.CommentNode}}),Object.defineProperty(t,"NodeType",{enumerable:!0,get:function(){return n.NodeType}}),t.isTextNode=e=>e.nodeType===n.NodeType.TEXT_NODE,t.isCommentNode=e=>e.nodeType===n.NodeType.COMMENT_NODE,t.isElementNode=e=>e.nodeType===n.NodeType.ELEMENT_NODE},4923:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.createTranslatorContext=t.isTranslatorConfig=t.TranslatorCollection=t.PostProcessResult=void 0,(r=t.PostProcessResult||(t.PostProcessResult={}))[r.NoChange=0]="NoChange",r[r.RemoveNode=1]="RemoveNode",t.TranslatorCollection=class{get size(){return Object.keys(this).length}set(e,r,n){e.split(",").forEach((e=>{e=e.toUpperCase();let i=r;if(n){const n=this[e];(0,t.isTranslatorConfig)(n)&&(i=(0,t.isTranslatorConfig)(r)?Object.assign(Object.assign({},n),r):Object.assign(((...e)=>r.apply(void 0,e)),{base:n}))}this[e]=i}))}get(e){return this[e.toUpperCase()]}entries(){return Object.entries(this)}remove(e){e.split(",").forEach((e=>delete this[e.toUpperCase()]))}},t.isTranslatorConfig=e=>"object"==typeof e,t.createTranslatorContext=function(e,t,r,n){const{instance:i,nodeMetadata:o}=e;return Object.assign({node:t,options:i.options,parent:t.parentNode,nodeMetadata:o,visitor:e,base:n},r)}},998:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.perfStop=t.perfStart=t.getChildNodes=t.parseHTML=t.truthyStr=t.getTrailingWhitespaceInfo=t.tagSurround=t.splitSpecial=t.isWhiteSpaceOnly=t.surround=t.trimNewLines=void 0;const n=r(7690);function i(e){const t=[],r=e.length;for(let n=0,i=0;n1&&++n)}return t}t.trimNewLines=e=>e.replace(/^\n+|\n+$/g,""),t.surround=(e,t)=>`${t}${e}${t}`,t.isWhiteSpaceOnly=e=>!/\S/.test(e),t.splitSpecial=i,t.tagSurround=function(e,t){e.indexOf(t)>=0&&(e=e.replace(new RegExp(`([^\\\\])\\${t.split("").join("\\")}`,"gm"),"$1"));const r=i(e);let n="";for(const{text:e,newLineChar:i}of r){let r,o,a=0;for(;a>=0&&a0?e[r-1]:"",c=o{const t={whitespace:0,newLines:0},r=Math.max(e.length-10,0);for(let n=e.length-1;n>=r;--n){const r=e.slice(n,n+1);if(!/\s/.test(r))break;++t.whitespace,["\r","\n"].includes(r)&&++t.newLines}return t},t.truthyStr=(e,t)=>e?void 0!==t?t:String(e):"";const o=()=>{try{return r(698).parse}catch(e){return}};function a(e){process.env.LOG_PERF&&console.time(e)}function s(e){process.env.LOG_PERF&&console.timeEnd(e)}t.parseHTML=function(e,t){let r,i;if(a("parse"),t.preferNativeParser)try{i=function(e){try{if(!(null===window||void 0===window?void 0:window.DOMParser)||!(new window.DOMParser).parseFromString("","text/html"))return}catch(e){return}let t;try{t=document.implementation.createHTMLDocument("").open()}catch(e){const{ActiveXObject:t}=window;if(t){const e=t("htmlfile");return e.designMode="on",e.open()}throw e}return t.write(""+e+""),t.close(),t.documentElement}(e)}catch(e){if(r=o(),!r)throw e;console.warn("Native DOM parser encountered an error during parse",e)}else r=o();return i||(i=r(e,n.nodeHtmlParserConfig)),s("parse"),i},t.getChildNodes=function(e){if(null==(t=e.childNodes)&&"function"!=typeof t[Symbol.iterator])return e.childNodes;var t;const r=[];return e.childNodes.forEach((e=>r.push(e))),r},t.perfStart=a,t.perfStop=s},390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMarkdownForHtmlNodes=t.Visitor=void 0;const n=r(5089),i=r(998),o=r(4923),a=r(7690);class s{constructor(e,t,r){this.instance=e,this.rootNode=t,this.fileName=r,this.nodeMetadata=new Map,this.urlDefinitions=[],this.result={text:"",trailingNewlineStats:{whitespace:0,newLines:0}},this.options=e.options,this.optimizeTree(t),this.visitNode(t)}addOrGetUrlDefinition(e){let t=this.urlDefinitions.findIndex((t=>t===e));return t<0&&(t=this.urlDefinitions.push(e)-1),t+1}appendResult(e,t,r){if(!e&&void 0===t)return;const{result:n}=this;void 0!==t&&(n.text=n.text.substr(0,t)),n.text+=(r&&n.text.slice(-1)===e[0]?" ":"")+e,n.trailingNewlineStats=(0,i.getTrailingWhitespaceInfo)(n.text)}appendNewlines(e){const{newLines:t}=this.result.trailingNewlineStats;this.appendResult("\n".repeat(Math.max(0,+e-t)))}optimizeTree(e){(0,i.perfStart)("Optimize tree");const{translators:t}=this.instance;!function e(r){let o=!1;if((0,n.isTextNode)(r)||(0,n.isElementNode)(r)&&a.contentlessElements.includes(r.tagName))o=!0;else{const n=(0,i.getChildNodes)(r);if(n.length)for(const t of n)o?e(t):o=e(t);else{const e=t[r.tagName];((null==e?void 0:e.preserveIfEmpty)||"function"==typeof e)&&(o=!0)}}return r.preserve=o}(e),(0,i.perfStop)("Optimize tree")}processText(e,t){let r=e;if((null==t?void 0:t.preserveWhitespace)||(r=r.replace(/\s+/g," ")),null==t?void 0:t.noEscape)return r;const{lineStartEscape:n,globalEscape:i,textReplace:o}=this.options;if(r=r.replace(i[0],i[1]).replace(n[0],n[1]),o)for(const[e,t]of o)r=r.replace(e,t);return r}visitNode(e,t,r){var a,s;const{result:c}=this;if(!e.preserve)return;if((0,n.isTextNode)(e))return e.isWhitespace&&!(null==r?void 0:r.preserveWhitespace)?!c.text.length||c.trailingNewlineStats.whitespace>0?void 0:this.appendResult(" "):this.appendResult(this.processText((null==r?void 0:r.preserveWhitespace)?e.text:e.trimmedText,r));if(t||!(0,n.isElementNode)(e))return;const l=(null==r?void 0:r.translators)?r.translators[e.tagName]:this.instance.translators[e.tagName];switch(e.tagName){case"UL":case"OL":r=Object.assign(Object.assign({},r),{listItemNumber:0,listKind:e.tagName,indentLevel:(null!==(a=null==r?void 0:r.indentLevel)&&void 0!==a?a:-1)+1});break;case"LI":"OL"===(null==r?void 0:r.listKind)&&(r.listItemNumber=(null!==(s=r.listItemNumber)&&void 0!==s?s:0)+1);break;case"PRE":r=Object.assign(Object.assign({},r),{preserveWhitespace:!0});break;case"TABLE":r=Object.assign(Object.assign({},r),{tableMeta:{node:e}})}if(r&&this.nodeMetadata.set(e,r),!l){for(const n of(0,i.getChildNodes)(e))this.visitNode(n,t,r);return}let u,p;if((0,o.isTranslatorConfig)(l)?u=l:(p=(0,o.createTranslatorContext)(this,e,r,l.base),u=Object.assign(Object.assign({},l.base),l(p))),u.ignore)return;u.noEscape&&!(null==r?void 0:r.noEscape)&&(r=Object.assign(Object.assign({},r),{noEscape:u.noEscape}),this.nodeMetadata.set(e,r)),u.childTranslators&&u.childTranslators!==(null==r?void 0:r.translators)&&(r=Object.assign(Object.assign({},r),{translators:u.childTranslators}),this.nodeMetadata.set(e,r));const f=c.text.length;if(u.surroundingNewlines&&this.appendNewlines(+u.surroundingNewlines),u.prefix&&this.appendResult(u.prefix),"string"==typeof u.content)this.appendResult(u.content,void 0,u.spaceIfRepeatingChar);else{const t=c.text.length;for(const t of(0,i.getChildNodes)(e))this.visitNode(t,!1===u.recurse,r);if(u.postprocess){const n=u.postprocess(Object.assign(Object.assign({},p||(0,o.createTranslatorContext)(this,e,r)),{content:c.text.substr(t)}));if(n===o.PostProcessResult.RemoveNode)return"LI"===e.tagName&&(null==r?void 0:r.listItemNumber)&&--r.listItemNumber,this.appendResult("",f);"string"==typeof n&&this.appendResult(n,t,u.spaceIfRepeatingChar)}}u.postfix&&this.appendResult(u.postfix),u.surroundingNewlines&&this.appendNewlines(+u.surroundingNewlines)}}t.Visitor=s,t.getMarkdownForHtmlNodes=function(e,t,r){(0,i.perfStart)("walk");const n=new s(e,t,r);let o=n.result.text;(0,i.perfStop)("walk"),e.options.useLinkReferenceDefinitions&&(/[^\r\n]/.test(o.slice(-1))&&(o+="\n"),n.urlDefinitions.forEach(((e,t)=>{o+=`\n[${t+1}]: ${e}`})));const{maxConsecutiveNewlines:a}=e.options;return a&&(o=o.replace(new RegExp(String.raw`(?:\r?\n\s*)+((?:\r?\n\s*){${a}})`,"g"),"$1")),(0,i.trimNewLines)(o)}},8701:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e[e.length-1]}},698:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeType=t.TextNode=t.Node=t.valid=t.default=t.parse=t.HTMLElement=t.CommentNode=void 0;var i=r(1271);Object.defineProperty(t,"CommentNode",{enumerable:!0,get:function(){return n(i).default}});var o=r(4382);Object.defineProperty(t,"HTMLElement",{enumerable:!0,get:function(){return n(o).default}});var a=r(8821);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return n(a).default}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n(a).default}});var s=r(6389);Object.defineProperty(t,"valid",{enumerable:!0,get:function(){return n(s).default}});var c=r(4936);Object.defineProperty(t,"Node",{enumerable:!0,get:function(){return n(c).default}});var l=r(7923);Object.defineProperty(t,"TextNode",{enumerable:!0,get:function(){return n(l).default}});var u=r(9979);Object.defineProperty(t,"NodeType",{enumerable:!0,get:function(){return n(u).default}})},80:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(9979));function o(e){return e&&e.nodeType===i.default.ELEMENT_NODE}function a(e,t){return o(e)?e.getAttribute(t):void 0}function s(e){return e&&e.childNodes}function c(e){return e?e.parentNode:null}t.default={isTag:o,getAttributeValue:a,getName:function(e){return(e&&e.rawTagName||"").toLowerCase()},getChildren:s,getParent:c,getText:function(e){return e.text},removeSubsets:function(e){for(var t,r,n,i=e.length;--i>-1;){for(t=r=e[i],e[i]=null,n=!0;r;){if(e.indexOf(r)>-1){n=!1,e.splice(i,1);break}r=c(r)}n&&(e[i]=t)}return e},existsOne:function e(t,r){return r.some((function(r){return!!o(r)&&(t(r)||e(t,s(r)))}))},getSiblings:function(e){var t=c(e);return t&&s(t)},hasAttrib:function(e,t){return void 0!==a(e,t)},findOne:function e(t,r){for(var n=null,i=0,o=r.length;i0&&(n=e(t,c))}}return n},findAll:function e(t,r){for(var n=[],i=0,a=r.length;i0&&t.push(e=[]),n.childNodes.forEach(r),e.length>0&&t.push(e=[])):n.childNodes.forEach(r);else if(n.nodeType===g.default.TEXT_NODE)if(n.isWhitespace)e.prependWhitespace=!0;else{var i=n.trimmedText;e.prependWhitespace&&(i=" ".concat(i),e.prependWhitespace=!1),e.push(i)}}(this),t.map((function(e){return e.join("").replace(/\s{2,}/g," ")})).join("\n").replace(/\s+$/,"")},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this.rawTagName;if(e){var t=this.rawAttrs?" ".concat(this.rawAttrs):"";return this.isVoidElement?"<".concat(e).concat(t,">"):"<".concat(e).concat(t,">").concat(this.innerHTML,"")}return this.innerHTML},Object.defineProperty(t.prototype,"innerHTML",{get:function(){return this.childNodes.map((function(e){return e.toString()})).join("")},set:function(e){var t=C(e),r=t.childNodes.length?t.childNodes:[new h.default(e,this)];N(r,this),N(this.childNodes,null),this.childNodes=r},enumerable:!1,configurable:!0}),t.prototype.set_content=function(e,t){if(void 0===t&&(t={}),e instanceof d.default)e=[e];else if("string"==typeof e){var r=C(e,t);e=r.childNodes.length?r.childNodes:[new h.default(e,this)]}return N(this.childNodes,null),N(e,this),this.childNodes=e,this},t.prototype.replaceWith=function(){for(var e=this,t=[],r=0;r-1&&(r.rawText=r.rawText.substr(0,n),this.childNodes.length=t+1)}}return this},Object.defineProperty(t.prototype,"structure",{get:function(){var e=[],t=0;function r(r){e.push(" ".repeat(t)+r)}return function e(n){var i=n.id?"#".concat(n.id):"",o=n.classList.length?".".concat(n.classList.value.join(".")):"";r("".concat(n.rawTagName).concat(i).concat(o)),t++,n.childNodes.forEach((function(t){t.nodeType===g.default.ELEMENT_NODE?e(t):t.nodeType===g.default.TEXT_NODE&&(t.isWhitespace||r("#text"))})),t--}(this),e.join("\n")},enumerable:!1,configurable:!0}),t.prototype.removeWhitespace=function(){var e=this,t=0;return this.childNodes.forEach((function(r){if(r.nodeType===g.default.TEXT_NODE){if(r.isWhitespace)return;r.rawText=r.trimmedRawText}else r.nodeType===g.default.ELEMENT_NODE&&r.removeWhitespace();e.childNodes[t++]=r})),this.childNodes.length=t,this},t.prototype.querySelectorAll=function(e){return(0,c.selectAll)(e,this,{xmlMode:!0,adapter:p.default})},t.prototype.querySelector=function(e){return(0,c.selectOne)(e,this,{xmlMode:!0,adapter:p.default})},t.prototype.getElementsByTagName=function(e){for(var t=e.toUpperCase(),r=[],n=[],i=this,o=0;void 0!==o;){var a=void 0;do{a=i.childNodes[o++]}while(o0&&(n.push(o),i=a,o=0)):(i=i.parentNode,o=n.pop())}return r},t.prototype.getElementById=function(e){for(var t=[],r=this,n=0;void 0!==n;){var i=void 0;do{i=r.childNodes[n++]}while(n0&&(t.push(n),r=i,n=0)}}else r=r.parentNode,n=t.pop()}return null},t.prototype.closest=function(e){var t=new Map,r=this,n=null;function i(e,r){for(var n=null,o=0,a=r.length;o0;)if(this===e[--t])return e[t-1]||null;return null}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousElementSibling",{get:function(){if(this.parentNode){for(var e=this.parentNode.childNodes,r=e.length,n=!1;r>0;){var i=e[--r];if(n){if(i instanceof t)return i||null}else this===i&&(n=!0)}return null}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classNames",{get:function(){return this.classList.toString()},enumerable:!1,configurable:!0}),t.prototype.clone=function(){return C(this.toString()).firstChild},t}(d.default);t.default=w;var _=/|<(\/?)([a-zA-Z][-.:0-9_a-zA-Z]*)((?:\s+[^>]*?(?:(?:'[^']*')|(?:"[^"]*"))?)*)\s*(\/?)>/g,k=/(?:^|\s)(id|class)\s*=\s*((?:'[^']*')|(?:"[^"]*")|\S+)/gi,x={area:!0,AREA:!0,base:!0,BASE:!0,br:!0,BR:!0,col:!0,COL:!0,hr:!0,HR:!0,img:!0,IMG:!0,input:!0,INPUT:!0,link:!0,LINK:!0,meta:!0,META:!0,source:!0,SOURCE:!0,embed:!0,EMBED:!0,param:!0,PARAM:!0,track:!0,TRACK:!0,wbr:!0,WBR:!0},E={li:{li:!0,LI:!0},LI:{li:!0,LI:!0},p:{p:!0,div:!0,P:!0,DIV:!0},P:{p:!0,div:!0,P:!0,DIV:!0},b:{div:!0,DIV:!0},B:{div:!0,DIV:!0},td:{td:!0,th:!0,TD:!0,TH:!0},TD:{td:!0,th:!0,TD:!0,TH:!0},th:{td:!0,th:!0,TD:!0,TH:!0},TH:{td:!0,th:!0,TD:!0,TH:!0},h1:{h1:!0,H1:!0},H1:{h1:!0,H1:!0},h2:{h2:!0,H2:!0},H2:{h2:!0,H2:!0},h3:{h3:!0,H3:!0},H3:{h3:!0,H3:!0},h4:{h4:!0,H4:!0},H4:{h4:!0,H4:!0},h5:{h5:!0,H5:!0},H5:{h5:!0,H5:!0},h6:{h6:!0,H6:!0},H6:{h6:!0,H6:!0}},T={li:{ul:!0,ol:!0,UL:!0,OL:!0},LI:{ul:!0,ol:!0,UL:!0,OL:!0},a:{div:!0,DIV:!0},A:{div:!0,DIV:!0},b:{div:!0,DIV:!0},B:{div:!0,DIV:!0},i:{div:!0,DIV:!0},I:{div:!0,DIV:!0},p:{div:!0,DIV:!0},P:{div:!0,DIV:!0},td:{tr:!0,table:!0,TR:!0,TABLE:!0},TD:{tr:!0,table:!0,TR:!0,TABLE:!0},th:{tr:!0,table:!0,TR:!0,TABLE:!0},TH:{tr:!0,table:!0,TR:!0,TABLE:!0}},A="documentfragmentcontainer";function S(e,t){void 0===t&&(t={lowerCaseTagName:!1,comment:!1});var r=t.blockTextElements||{script:!0,noscript:!0,style:!0,pre:!0},n=Object.keys(r),i=n.map((function(e){return new RegExp("^".concat(e,"$"),"i")})),o=n.filter((function(e){return r[e]})).map((function(e){return new RegExp("^".concat(e,"$"),"i")}));function a(e){return o.some((function(t){return t.test(e)}))}function s(e){return i.some((function(t){return t.test(e)}))}var c,l=function(e,t){return[e-S,t-S]},p=new w(null,{},"",null,[0,e.length]),d=p,g=[p],m=-1,v=void 0;e="<".concat(A,">").concat(e,"");for(var b=t.lowerCaseTagName,y=e.length-(A.length+2),S=A.length+2;c=_.exec(e);){var C=c[0],N=c[1],L=c[2],D=c[3],O=c[4],q=C.length,B=_.lastIndex-q,R=_.lastIndex;if(m>-1&&m+q"),K=b?e.toLocaleLowerCase().indexOf(G,_.lastIndex):e.indexOf(G,_.lastIndex),$=-1===K?y:K;a(L)&&(P=e.substring(V,$)).length>0&&/\S/.test(P)&&d.appendChild(new h.default(P,d,l(V,$))),-1===K?m=_.lastIndex=e.length+1:(m=_.lastIndex=K+G.length,N="/")}}if(N||O||x[L])for(;;){if("a"!==L&&"A"!==L||(v=void 0),d.rawTagName===L){d.range[1]=l(-1,Math.max(m,R))[1],g.pop(),d=(0,u.default)(g);break}if(H=d.tagName,!T[H]||!T[H][L])break;g.pop(),d=(0,u.default)(g)}}else if(t.comment){P=e.substring(B+4,R-3);d.appendChild(new f.default(P,d,l(B,R)))}}return g}function C(e,t){void 0===t&&(t={lowerCaseTagName:!1,comment:!1});for(var r=S(e,t),n=r[0],i=function(){var e=r.pop(),n=(0,u.default)(r);e.parentNode&&e.parentNode.parentNode&&(e.parentNode===n&&e.tagName===n.tagName?!0!==t.parseNoneClosedTags&&(n.removeChild(e),e.childNodes.forEach((function(e){n.parentNode.appendChild(e)})),r.pop()):!0!==t.parseNoneClosedTags&&(n.removeChild(e),e.childNodes.forEach((function(e){n.appendChild(e)}))))};r.length>1;)i();return n}function N(e,t){return e.map((function(e){return e.parentNode=t,e}))}t.base_parse=S,t.parse=C},4936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6492),i=function(){function e(e,t){void 0===e&&(e=null),this.parentNode=e,this.childNodes=[],Object.defineProperty(this,"range",{enumerable:!1,writable:!0,configurable:!0,value:null!=t?t:[-1,-1]})}return e.prototype.remove=function(){var e=this;if(this.parentNode){var t=this.parentNode.childNodes;this.parentNode.childNodes=t.filter((function(t){return e!==t})),this.parentNode=null}return this},Object.defineProperty(e.prototype,"innerText",{get:function(){return this.rawText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{get:function(){return(0,n.decode)(this.rawText)},set:function(e){this.rawText=(0,n.encode)(e)},enumerable:!1,configurable:!0}),e}();t.default=i},7923:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(6492),s=o(r(4936)),c=o(r(9979)),l=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;return i.nodeType=c.default.TEXT_NODE,i._rawText=t,i}return i(t,e),t.prototype.clone=function(){return new t(this._rawText,null)},Object.defineProperty(t.prototype,"rawText",{get:function(){return this._rawText},set:function(e){this._rawText=e,this._trimmedRawText=void 0,this._trimmedText=void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trimmedRawText",{get:function(){return void 0!==this._trimmedRawText||(this._trimmedRawText=u(this.rawText)),this._trimmedRawText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trimmedText",{get:function(){return void 0!==this._trimmedText||(this._trimmedText=u(this.text)),this._trimmedText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return(0,a.decode)(this.rawText)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isWhitespace",{get:function(){return/^(\s| )*$/.test(this.rawText)},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return this.rawText},t}(s.default);function u(e){for(var t,r,n=0;n>=0&&n0&&/[^\S\r\n]/.test(e[t-1]),o=r{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE"}(r||(r={})),t.default=r},8821:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(4382);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.parse}})},6389:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4382);t.default=function(e,t){void 0===t&&(t={lowerCaseTagName:!1,comment:!1});var r=(0,n.base_parse)(e,t);return Boolean(1===r.length)}},9769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compile=void 0;var n=r(1073);t.compile=function(e){var t=e[0],r=e[1]-1;if(r<0&&t<=0)return n.falseFunc;if(-1===t)return function(e){return e<=r};if(0===t)return function(e){return e===r};if(1===t)return r<0?n.trueFunc:function(e){return e>=r};var i=Math.abs(t),o=(r%i+i)%i;return t>1?function(e){return e>=r&&e%i===o}:function(e){return e<=r&&e%i===o}}},7540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compile=t.parse=void 0;var n=r(7766);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return n.parse}});var i=r(9769);Object.defineProperty(t,"compile",{enumerable:!0,get:function(){return i.compile}}),t.default=function(e){return(0,i.compile)((0,n.parse)(e))}},7766:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;var r=new Set([9,10,12,13,32]),n="0".charCodeAt(0),i="9".charCodeAt(0);t.parse=function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];var t=0,o=0,a=c(),s=l();if(t=n&&e.charCodeAt(t)<=i;)o=10*o+(e.charCodeAt(t)-n),t++;return t===r?null:o}function u(){for(;t":">","\\":"\"},a=/[&"'<>\\]/g;function s(e,t){return i.hasOwnProperty.call(e,t)}function c(e){return o[e]}function l(e,t,r){var n,i,o;if(e instanceof Error&&(e=(i=e).name+": "+i.message),Object.setPrototypeOf?(n=new Error(e),Object.setPrototypeOf(n,l.prototype)):(n=this,Object.defineProperty(n,"message",{enumerable:!1,writable:!0,value:e})),Object.defineProperty(n,"name",{value:"Template render error"}),Error.captureStackTrace&&Error.captureStackTrace(n,this.constructor),i){var a=Object.getOwnPropertyDescriptor(i,"stack");(o=a&&(a.get||function(){return a.value}))||(o=function(){return i.stack})}else{var s=new Error(e).stack;o=function(){return s}}return Object.defineProperty(n,"stack",{get:function(){return o.call(n)}}),Object.defineProperty(n,"cause",{value:i}),n.lineno=t,n.colno=r,n.firstUpdate=!0,n.Update=function(e){var t="("+(e||"unknown path")+")";return this.firstUpdate&&(this.lineno&&this.colno?t+=" [Line "+this.lineno+", Column "+this.colno+"]":this.lineno&&(t+=" [Line "+this.lineno+"]")),t+="\n ",this.firstUpdate&&(t+=" "),this.message=t+(this.message||""),this.firstUpdate=!1,this},n}function u(e){return"[object Function]"===i.toString.call(e)}function p(e){return"[object Array]"===i.toString.call(e)}function f(e){return"[object String]"===i.toString.call(e)}function d(e){return"[object Object]"===i.toString.call(e)}function h(e){var t,r=(t=e)?"string"==typeof t?t.split("."):[t]:[];return function(e){for(var t=e,n=0;ne.length)a=i.slice(0,e.length),i.slice(a.length,l).forEach((function(e,r){r2?i-2:0),a=2;a0||!r)&&process.stdout.write(" ".repeat(t));var o=i===n.length-1?"":"\n";process.stdout.write(""+e+o)}))}e.exports={Node:c,Root:p,NodeList:u,Value:l,Literal:f,Symbol:d,Group:h,Array:g,Pair:m,Dict:v,Output:I,Capture:U,TemplateData:H,If:y,IfAsync:w,InlineIf:_,For:k,AsyncEach:x,AsyncAll:E,Macro:T,Caller:A,Import:S,FromImport:C,FunCall:N,Filter:L,FilterAsync:D,KeywordArgs:O,Block:q,Super:B,Extends:R,Include:P,Set:j,Switch:M,Case:F,LookupVal:b,BinOp:z,In:G,Is:K,Or:$,And:W,Not:Y,Add:J,Concat:X,Sub:Z,Mul:Q,Div:ee,FloorDiv:te,Mod:re,Pow:ne,Neg:ie,Pos:oe,Compare:ae,CompareOperand:se,CallExtension:ce,CallExtensionAsync:le,printNodes:function e(t,r){if(r=r||0,ue(t.typename+": ",r),t instanceof u)ue("\n"),t.children.forEach((function(t){e(t,r+2)}));else if(t instanceof ce)ue(t.extName+"."+t.prop+"\n"),t.args&&e(t.args,r+2),t.contentArgs&&t.contentArgs.forEach((function(t){e(t,r+2)}));else{var n=[],i=null;t.iterFields((function(e,t){e instanceof c?n.push([t,e]):(i=i||{})[t]=e})),i?ue(JSON.stringify(i,null,2)+"\n",null,!0):ue("\n"),n.forEach((function(t){var n=t[0],i=t[1];ue("["+n+"] =>",r+2),e(i,r+4)}))}}}},function(e,t){},function(e,t,r){"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}var i=r(8),o=r(17),a=r(3),s=r(0).TemplateError,c=r(2).Frame,l=r(1).Obj,u={"==":"==","===":"===","!=":"!=","!==":"!==","<":"<",">":">","<=":"<=",">=":">="},p=function(e){var t,r;function i(){return e.apply(this,arguments)||this}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,n(t,r);var o=i.prototype;return o.init=function(e,t){this.templateName=e,this.codebuf=[],this.lastId=0,this.buffer=null,this.bufferStack=[],this._scopeClosers="",this.inBlock=!1,this.throwOnUndefined=t},o.fail=function(e,t,r){throw void 0!==t&&(t+=1),void 0!==r&&(r+=1),new s(e,t,r)},o._pushBuffer=function(){var e=this._tmpid();return this.bufferStack.push(this.buffer),this.buffer=e,this._emit("var "+this.buffer+' = "";'),e},o._popBuffer=function(){this.buffer=this.bufferStack.pop()},o._emit=function(e){this.codebuf.push(e)},o._emitLine=function(e){this._emit(e+"\n")},o._emitLines=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n0&&i._emit(","),i.compile(e,t)})),n&&this._emit(n)},o._compileExpression=function(e,t){this.assertType(e,a.Literal,a.Symbol,a.Group,a.Array,a.Dict,a.FunCall,a.Caller,a.Filter,a.LookupVal,a.Compare,a.InlineIf,a.In,a.Is,a.And,a.Or,a.Not,a.Add,a.Concat,a.Sub,a.Mul,a.Div,a.FloorDiv,a.Mod,a.Pow,a.Neg,a.Pos,a.Compare,a.NodeList),this.compile(e,t)},o.assertType=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&n._emit(","),e){n._emitLine("function(cb) {"),n._emitLine("if(!cb) { cb = function(err) { if(err) { throw err; }}}");var i=n._pushBuffer();n._withScopedSyntax((function(){n.compile(e,t),n._emitLine("cb(null, "+i+");")})),n._popBuffer(),n._emitLine("return "+i+";"),n._emitLine("}")}else n._emit("null")})),r){var c=this._tmpid();this._emitLine(", "+this._makeCallback(c)),this._emitLine(this.buffer+" += runtime.suppressValue("+c+", "+s+" && env.opts.autoescape);"),this._addScopeLevel()}else this._emit(")"),this._emit(", "+s+" && env.opts.autoescape);\n")},o.compileCallExtensionAsync=function(e,t){this.compileCallExtension(e,t,!0)},o.compileNodeList=function(e,t){this._compileChildren(e,t)},o.compileLiteral=function(e){if("string"==typeof e.value){var t=e.value.replace(/\\/g,"\\\\");t=(t=(t=(t=(t=t.replace(/"/g,'\\"')).replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t")).replace(/\u2028/g,"\\u2028"),this._emit('"'+t+'"')}else null===e.value?this._emit("null"):this._emit(e.value.toString())},o.compileSymbol=function(e,t){var r=e.value,n=t.lookup(r);n?this._emit(n):this._emit('runtime.contextOrFrameLookup(context, frame, "'+r+'")')},o.compileGroup=function(e,t){this._compileAggregate(e,t,"(",")")},o.compileArray=function(e,t){this._compileAggregate(e,t,"[","]")},o.compileDict=function(e,t){this._compileAggregate(e,t,"{","}")},o.compilePair=function(e,t){var r=e.key,n=e.value;r instanceof a.Symbol?r=new a.Literal(r.lineno,r.colno,r.value):r instanceof a.Literal&&"string"==typeof r.value||this.fail("compilePair: Dict keys must be strings or names",r.lineno,r.colno),this.compile(r,t),this._emit(": "),this._compileExpression(n,t)},o.compileInlineIf=function(e,t){this._emit("("),this.compile(e.cond,t),this._emit("?"),this.compile(e.body,t),this._emit(":"),null!==e.else_?this.compile(e.else_,t):this._emit('""'),this._emit(")")},o.compileIn=function(e,t){this._emit("runtime.inOperator("),this.compile(e.left,t),this._emit(","),this.compile(e.right,t),this._emit(")")},o.compileIs=function(e,t){var r=e.right.name?e.right.name.value:e.right.value;this._emit('env.getTest("'+r+'").call(context, '),this.compile(e.left,t),e.right.args&&(this._emit(","),this.compile(e.right.args,t)),this._emit(") === true")},o._binOpEmitter=function(e,t,r){this.compile(e.left,t),this._emit(r),this.compile(e.right,t)},o.compileOr=function(e,t){return this._binOpEmitter(e,t," || ")},o.compileAnd=function(e,t){return this._binOpEmitter(e,t," && ")},o.compileAdd=function(e,t){return this._binOpEmitter(e,t," + ")},o.compileConcat=function(e,t){return this._binOpEmitter(e,t,' + "" + ')},o.compileSub=function(e,t){return this._binOpEmitter(e,t," - ")},o.compileMul=function(e,t){return this._binOpEmitter(e,t," * ")},o.compileDiv=function(e,t){return this._binOpEmitter(e,t," / ")},o.compileMod=function(e,t){return this._binOpEmitter(e,t," % ")},o.compileNot=function(e,t){this._emit("!"),this.compile(e.target,t)},o.compileFloorDiv=function(e,t){this._emit("Math.floor("),this.compile(e.left,t),this._emit(" / "),this.compile(e.right,t),this._emit(")")},o.compilePow=function(e,t){this._emit("Math.pow("),this.compile(e.left,t),this._emit(", "),this.compile(e.right,t),this._emit(")")},o.compileNeg=function(e,t){this._emit("-"),this.compile(e.target,t)},o.compilePos=function(e,t){this._emit("+"),this.compile(e.target,t)},o.compileCompare=function(e,t){var r=this;this.compile(e.expr,t),e.ops.forEach((function(e){r._emit(" "+u[e.type]+" "),r.compile(e.expr,t)}))},o.compileLookupVal=function(e,t){this._emit("runtime.memberLookup(("),this._compileExpression(e.target,t),this._emit("),"),this._compileExpression(e.val,t),this._emit(")")},o._getNodeName=function(e){switch(e.typename){case"Symbol":return e.value;case"FunCall":return"the return value of ("+this._getNodeName(e.name)+")";case"LookupVal":return this._getNodeName(e.target)+'["'+this._getNodeName(e.val)+'"]';case"Literal":return e.value.toString();default:return"--expression--"}},o.compileFunCall=function(e,t){this._emit("(lineno = "+e.lineno+", colno = "+e.colno+", "),this._emit("runtime.callWrap("),this._compileExpression(e.name,t),this._emit(', "'+this._getNodeName(e.name).replace(/"/g,'\\"')+'", context, '),this._compileAggregate(e.args,t,"[","])"),this._emit(")")},o.compileFilter=function(e,t){var r=e.name;this.assertType(r,a.Symbol),this._emit('env.getFilter("'+r.value+'").call(context, '),this._compileAggregate(e.args,t),this._emit(")")},o.compileFilterAsync=function(e,t){var r=e.name,n=e.symbol.value;this.assertType(r,a.Symbol),t.set(n,n),this._emit('env.getFilter("'+r.value+'").call(context, '),this._compileAggregate(e.args,t),this._emitLine(", "+this._makeCallback(n)),this._addScopeLevel()},o.compileKeywordArgs=function(e,t){this._emit("runtime.makeKeywordArgs("),this.compileDict(e,t),this._emit(")")},o.compileSet=function(e,t){var r=this,n=[];e.targets.forEach((function(e){var i=e.value,o=t.lookup(i);null==o&&(o=r._tmpid(),r._emitLine("var "+o+";")),n.push(o)})),e.value?(this._emit(n.join(" = ")+" = "),this._compileExpression(e.value,t),this._emitLine(";")):(this._emit(n.join(" = ")+" = "),this.compile(e.body,t),this._emitLine(";")),e.targets.forEach((function(e,t){var i=n[t],o=e.value;r._emitLine('frame.set("'+o+'", '+i+", true);"),r._emitLine("if(frame.topLevel) {"),r._emitLine('context.setVariable("'+o+'", '+i+");"),r._emitLine("}"),"_"!==o.charAt(0)&&(r._emitLine("if(frame.topLevel) {"),r._emitLine('context.addExport("'+o+'", '+i+");"),r._emitLine("}"))}))},o.compileSwitch=function(e,t){var r=this;this._emit("switch ("),this.compile(e.expr,t),this._emit(") {"),e.cases.forEach((function(e,n){r._emit("case "),r.compile(e.cond,t),r._emit(": "),r.compile(e.body,t),e.body.children.length&&r._emitLine("break;")})),e.default&&(this._emit("default:"),this.compile(e.default,t)),this._emit("}")},o.compileIf=function(e,t,r){var n=this;this._emit("if("),this._compileExpression(e.cond,t),this._emitLine(") {"),this._withScopedSyntax((function(){n.compile(e.body,t),r&&n._emit("cb()")})),e.else_?(this._emitLine("}\nelse {"),this._withScopedSyntax((function(){n.compile(e.else_,t),r&&n._emit("cb()")}))):r&&(this._emitLine("}\nelse {"),this._emit("cb()")),this._emitLine("}")},o.compileIfAsync=function(e,t){this._emit("(function(cb) {"),this.compileIf(e,t,!0),this._emit("})("+this._makeCallback()),this._addScopeLevel()},o._emitLoopBindings=function(e,t,r,n){var i=this;[{name:"index",val:r+" + 1"},{name:"index0",val:r},{name:"revindex",val:n+" - "+r},{name:"revindex0",val:n+" - "+r+" - 1"},{name:"first",val:r+" === 0"},{name:"last",val:r+" === "+n+" - 1"},{name:"length",val:n}].forEach((function(e){i._emitLine('frame.set("loop.'+e.name+'", '+e.val+");")}))},o.compileFor=function(e,t){var r=this,n=this._tmpid(),i=this._tmpid(),o=this._tmpid();if(t=t.push(),this._emitLine("frame = frame.push();"),this._emit("var "+o+" = "),this._compileExpression(e.arr,t),this._emitLine(";"),this._emit("if("+o+") {"),this._emitLine(o+" = runtime.fromIterator("+o+");"),e.name instanceof a.Array){this._emitLine("var "+n+";"),this._emitLine("if(runtime.isArray("+o+")) {"),this._emitLine("var "+i+" = "+o+".length;"),this._emitLine("for("+n+"=0; "+n+" < "+o+".length; "+n+"++) {"),e.name.children.forEach((function(i,a){var s=r._tmpid();r._emitLine("var "+s+" = "+o+"["+n+"]["+a+"];"),r._emitLine('frame.set("'+i+'", '+o+"["+n+"]["+a+"]);"),t.set(e.name.children[a].value,s)})),this._emitLoopBindings(e,o,n,i),this._withScopedSyntax((function(){r.compile(e.body,t)})),this._emitLine("}"),this._emitLine("} else {");var s=e.name.children,c=s[0],l=s[1],u=this._tmpid(),p=this._tmpid();t.set(c.value,u),t.set(l.value,p),this._emitLine(n+" = -1;"),this._emitLine("var "+i+" = runtime.keys("+o+").length;"),this._emitLine("for(var "+u+" in "+o+") {"),this._emitLine(n+"++;"),this._emitLine("var "+p+" = "+o+"["+u+"];"),this._emitLine('frame.set("'+c.value+'", '+u+");"),this._emitLine('frame.set("'+l.value+'", '+p+");"),this._emitLoopBindings(e,o,n,i),this._withScopedSyntax((function(){r.compile(e.body,t)})),this._emitLine("}"),this._emitLine("}")}else{var f=this._tmpid();t.set(e.name.value,f),this._emitLine("var "+i+" = "+o+".length;"),this._emitLine("for(var "+n+"=0; "+n+" < "+o+".length; "+n+"++) {"),this._emitLine("var "+f+" = "+o+"["+n+"];"),this._emitLine('frame.set("'+e.name.value+'", '+f+");"),this._emitLoopBindings(e,o,n,i),this._withScopedSyntax((function(){r.compile(e.body,t)})),this._emitLine("}")}this._emitLine("}"),e.else_&&(this._emitLine("if (!"+i+") {"),this.compile(e.else_,t),this._emitLine("}")),this._emitLine("frame = frame.pop();")},o._compileAsyncLoop=function(e,t,r){var n=this,i=this._tmpid(),o=this._tmpid(),s=this._tmpid(),c=r?"asyncAll":"asyncEach";if(t=t.push(),this._emitLine("frame = frame.push();"),this._emit("var "+s+" = runtime.fromIterator("),this._compileExpression(e.arr,t),this._emitLine(");"),e.name instanceof a.Array){var l=e.name.children.length;this._emit("runtime."+c+"("+s+", "+l+", function("),e.name.children.forEach((function(e){n._emit(e.value+",")})),this._emit(i+","+o+",next) {"),e.name.children.forEach((function(e){var r=e.value;t.set(r,r),n._emitLine('frame.set("'+r+'", '+r+");")}))}else{var u=e.name.value;this._emitLine("runtime."+c+"("+s+", 1, function("+u+", "+i+", "+o+",next) {"),this._emitLine('frame.set("'+u+'", '+u+");"),t.set(u,u)}this._emitLoopBindings(e,s,i,o),this._withScopedSyntax((function(){var o;r&&(o=n._pushBuffer()),n.compile(e.body,t),n._emitLine("next("+i+(o?","+o:"")+");"),r&&n._popBuffer()}));var p=this._tmpid();this._emitLine("}, "+this._makeCallback(p)),this._addScopeLevel(),r&&this._emitLine(this.buffer+" += "+p+";"),e.else_&&(this._emitLine("if (!"+s+".length) {"),this.compile(e.else_,t),this._emitLine("}")),this._emitLine("frame = frame.pop();")},o.compileAsyncEach=function(e,t){this._compileAsyncLoop(e,t)},o.compileAsyncAll=function(e,t){this._compileAsyncLoop(e,t,!0)},o._compileMacro=function(e,t){var r=this,n=[],i=null,o="macro_"+this._tmpid(),s=void 0!==t;e.args.children.forEach((function(t,o){o===e.args.children.length-1&&t instanceof a.Dict?i=t:(r.assertType(t,a.Symbol),n.push(t))}));var l,u=[].concat(n.map((function(e){return"l_"+e.value})),["kwargs"]),p=n.map((function(e){return'"'+e.value+'"'})),f=(i&&i.children||[]).map((function(e){return'"'+e.key.value+'"'}));l=s?t.push(!0):new c,this._emitLines("var "+o+" = runtime.makeMacro(","["+p.join(", ")+"], ","["+f.join(", ")+"], ","function ("+u.join(", ")+") {","var callerFrame = frame;","frame = "+(s?"frame.push(true);":"new runtime.Frame();"),"kwargs = kwargs || {};",'if (Object.prototype.hasOwnProperty.call(kwargs, "caller")) {','frame.set("caller", kwargs.caller); }'),n.forEach((function(e){r._emitLine('frame.set("'+e.value+'", l_'+e.value+");"),l.set(e.value,"l_"+e.value)})),i&&i.children.forEach((function(e){var t=e.key.value;r._emit('frame.set("'+t+'", '),r._emit('Object.prototype.hasOwnProperty.call(kwargs, "'+t+'")'),r._emit(' ? kwargs["'+t+'"] : '),r._compileExpression(e.value,l),r._emit(");")}));var d=this._pushBuffer();return this._withScopedSyntax((function(){r.compile(e.body,l)})),this._emitLine("frame = "+(s?"frame.pop();":"callerFrame;")),this._emitLine("return new runtime.SafeString("+d+");"),this._emitLine("});"),this._popBuffer(),o},o.compileMacro=function(e,t){var r=this._compileMacro(e),n=e.name.value;t.set(n,r),t.parent?this._emitLine('frame.set("'+n+'", '+r+");"):("_"!==e.name.value.charAt(0)&&this._emitLine('context.addExport("'+n+'");'),this._emitLine('context.setVariable("'+n+'", '+r+");"))},o.compileCaller=function(e,t){this._emit("(function (){");var r=this._compileMacro(e,t);this._emit("return "+r+";})()")},o._compileGetTemplate=function(e,t,r,n){var i=this._tmpid(),o=this._templateName(),a=this._makeCallback(i),s=r?"true":"false",c=n?"true":"false";return this._emit("env.getTemplate("),this._compileExpression(e.template,t),this._emitLine(", "+s+", "+o+", "+c+", "+a),i},o.compileImport=function(e,t){var r=e.target.value,n=this._compileGetTemplate(e,t,!1,!1);this._addScopeLevel(),this._emitLine(n+".getExported("+(e.withContext?"context.getVariables(), frame, ":"")+this._makeCallback(n)),this._addScopeLevel(),t.set(r,n),t.parent?this._emitLine('frame.set("'+r+'", '+n+");"):this._emitLine('context.setVariable("'+r+'", '+n+");")},o.compileFromImport=function(e,t){var r=this,n=this._compileGetTemplate(e,t,!1,!1);this._addScopeLevel(),this._emitLine(n+".getExported("+(e.withContext?"context.getVariables(), frame, ":"")+this._makeCallback(n)),this._addScopeLevel(),e.names.children.forEach((function(e){var i,o,s=r._tmpid();e instanceof a.Pair?(i=e.key.value,o=e.value.value):o=i=e.value,r._emitLine("if(Object.prototype.hasOwnProperty.call("+n+', "'+i+'")) {'),r._emitLine("var "+s+" = "+n+"."+i+";"),r._emitLine("} else {"),r._emitLine("cb(new Error(\"cannot import '"+i+"'\")); return;"),r._emitLine("}"),t.set(o,s),t.parent?r._emitLine('frame.set("'+o+'", '+s+");"):r._emitLine('context.setVariable("'+o+'", '+s+");")}))},o.compileBlock=function(e){var t=this._tmpid();this.inBlock||this._emit('(parentTemplate ? function(e, c, f, r, cb) { cb(""); } : '),this._emit('context.getBlock("'+e.name.value+'")'),this.inBlock||this._emit(")"),this._emitLine("(env, context, frame, runtime, "+this._makeCallback(t)),this._emitLine(this.buffer+" += "+t+";"),this._addScopeLevel()},o.compileSuper=function(e,t){var r=e.blockName.value,n=e.symbol.value,i=this._makeCallback(n);this._emitLine('context.getSuper(env, "'+r+'", b_'+r+", frame, runtime, "+i),this._emitLine(n+" = runtime.markSafe("+n+");"),this._addScopeLevel(),t.set(n,n)},o.compileExtends=function(e,t){var r=this._tmpid(),n=this._compileGetTemplate(e,t,!0,!1);this._emitLine("parentTemplate = "+n),this._emitLine("for(var "+r+" in parentTemplate.blocks) {"),this._emitLine("context.addBlock("+r+", parentTemplate.blocks["+r+"]);"),this._emitLine("}"),this._addScopeLevel()},o.compileInclude=function(e,t){this._emitLine("var tasks = [];"),this._emitLine("tasks.push("),this._emitLine("function(callback) {");var r=this._compileGetTemplate(e,t,!1,e.ignoreMissing);this._emitLine("callback(null,"+r+");});"),this._emitLine("});");var n=this._tmpid();this._emitLine("tasks.push("),this._emitLine("function(template, callback){"),this._emitLine("template.render(context.getVariables(), frame, "+this._makeCallback(n)),this._emitLine("callback(null,"+n+");});"),this._emitLine("});"),this._emitLine("tasks.push("),this._emitLine("function(result, callback){"),this._emitLine(this.buffer+" += result;"),this._emitLine("callback(null);"),this._emitLine("});"),this._emitLine("env.waterfall(tasks, function(){"),this._addScopeLevel()},o.compileTemplateData=function(e,t){this.compileLiteral(e,t)},o.compileCapture=function(e,t){var r=this,n=this.buffer;this.buffer="output",this._emitLine("(function() {"),this._emitLine('var output = "";'),this._withScopedSyntax((function(){r.compile(e.body,t)})),this._emitLine("return output;"),this._emitLine("})()"),this.buffer=n},o.compileOutput=function(e,t){var r=this;e.children.forEach((function(n){n instanceof a.TemplateData?n.value&&(r._emit(r.buffer+" += "),r.compileLiteral(n,t),r._emitLine(";")):(r._emit(r.buffer+" += runtime.suppressValue("),r.throwOnUndefined&&r._emit("runtime.ensureDefined("),r.compile(n,t),r.throwOnUndefined&&r._emit(","+e.lineno+","+e.colno+")"),r._emit(", env.opts.autoescape);\n"))}))},o.compileRoot=function(e,t){var r=this;t&&this.fail("compileRoot: root node can't have frame"),t=new c,this._emitFuncBegin(e,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(e,t),this._emitLine("if(parentTemplate) {"),this._emitLine("parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);"),this._emitLine("} else {"),this._emitLine("cb(null, "+this.buffer+");"),this._emitLine("}"),this._emitFuncEnd(!0),this.inBlock=!0;var n=[],i=e.findAll(a.Block);i.forEach((function(e,t){var i=e.name.value;if(-1!==n.indexOf(i))throw new Error('Block "'+i+'" defined more than once.');n.push(i),r._emitFuncBegin(e,"b_"+i);var o=new c;r._emitLine("var frame = frame.push(true);"),r.compile(e.body,o),r._emitFuncEnd()})),this._emitLine("return {"),i.forEach((function(e,t){var n="b_"+e.name.value;r._emitLine(n+": "+n+",")})),this._emitLine("root: root\n};")},o.compile=function(e,t){var r=this["compile"+e.typename];r?r.call(this,e,t):this.fail("compile: Cannot compile node: "+e.typename,e.lineno,e.colno)},o.getCode=function(){return this.codebuf.join("")},i}(l);e.exports={compile:function(e,t,r,n,a){void 0===a&&(a={});var s=new p(n,a.throwOnUndefined),c=(r||[]).map((function(e){return e.preprocess})).filter((function(e){return!!e})).reduce((function(e,t){return t(e)}),e);return s.compile(o.transform(i.parse(c,r,a),t,n)),s.getCode()},Compiler:p}},function(e,t,r){"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}var i=r(4),o=r(1).EmitterObj;e.exports=function(e){var t,r;function o(){return e.apply(this,arguments)||this}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,n(t,r);var a=o.prototype;return a.resolve=function(e,t){return i.resolve(i.dirname(e),t)},a.isRelative=function(e){return 0===e.indexOf("./")||0===e.indexOf("../")},o}(o)},function(e,t,r){"use strict";function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var o=r(12),a=r(15),s=r(0),c=r(5),l=r(18),u=r(10),p=u.FileSystemLoader,f=u.WebLoader,d=u.PrecompiledLoader,h=r(20),g=r(21),m=r(1),v=m.Obj,b=m.EmitterObj,y=r(2),w=y.handleError,_=y.Frame,k=r(22);function x(e,t,r){o((function(){e(t,r)}))}var E={type:"code",obj:{root:function(e,t,r,n,i){try{i(null,"")}catch(e){i(w(e,null,null))}}}},T=function(e){function t(){return e.apply(this,arguments)||this}n(t,e);var r=t.prototype;return r.init=function(e,t){var r=this;t=this.opts=t||{},this.opts.dev=!!t.dev,this.opts.autoescape=null==t.autoescape||t.autoescape,this.opts.throwOnUndefined=!!t.throwOnUndefined,this.opts.trimBlocks=!!t.trimBlocks,this.opts.lstripBlocks=!!t.lstripBlocks,this.loaders=[],e?this.loaders=s.isArray(e)?e:[e]:p?this.loaders=[new p("views")]:f&&(this.loaders=[new f("/views")]),"undefined"!=typeof window&&window.nunjucksPrecompiled&&this.loaders.unshift(new d(window.nunjucksPrecompiled)),this._initLoaders(),this.globals=g(),this.filters={},this.tests={},this.asyncFilters=[],this.extensions={},this.extensionsList=[],s._entries(l).forEach((function(e){var t=e[0],n=e[1];return r.addFilter(t,n)})),s._entries(h).forEach((function(e){var t=e[0],n=e[1];return r.addTest(t,n)}))},r._initLoaders=function(){var e=this;this.loaders.forEach((function(t){t.cache={},"function"==typeof t.on&&(t.on("update",(function(r,n){t.cache[r]=null,e.emit("update",r,n,t)})),t.on("load",(function(r,n){e.emit("load",r,n,t)})))}))},r.invalidateCache=function(){this.loaders.forEach((function(e){e.cache={}}))},r.addExtension=function(e,t){return t.__name=e,this.extensions[e]=t,this.extensionsList.push(t),this},r.removeExtension=function(e){var t=this.getExtension(e);t&&(this.extensionsList=s.without(this.extensionsList,t),delete this.extensions[e])},r.getExtension=function(e){return this.extensions[e]},r.hasExtension=function(e){return!!this.extensions[e]},r.addGlobal=function(e,t){return this.globals[e]=t,this},r.getGlobal=function(e){if(void 0===this.globals[e])throw new Error("global not found: "+e);return this.globals[e]},r.addFilter=function(e,t,r){var n=t;return r&&this.asyncFilters.push(e),this.filters[e]=n,this},r.getFilter=function(e){if(!this.filters[e])throw new Error("filter not found: "+e);return this.filters[e]},r.addTest=function(e,t){return this.tests[e]=t,this},r.getTest=function(e){if(!this.tests[e])throw new Error("test not found: "+e);return this.tests[e]},r.resolveTemplate=function(e,t,r){return e.isRelative&&t&&e.isRelative(r)&&e.resolve?e.resolve(t,r):r},r.getTemplate=function(e,t,r,n,i){var o,a=this,c=this,l=null;if(e&&e.raw&&(e=e.raw),s.isFunction(r)&&(i=r,r=null,t=t||!1),s.isFunction(t)&&(i=t,t=!1),e instanceof S)l=e;else{if("string"!=typeof e)throw new Error("template names must be a string: "+e);for(var u=0;u0&&!this.skip(i.TOKEN_COMMA)&&this.fail("parseFrom: expected comma",e.lineno,e.colno);var s=this.parsePrimary();if("_"===s.value.charAt(0)&&this.fail("parseFrom: names starting with an underscore cannot be imported",s.lineno,s.colno),this.skipSymbol("as")){var c=this.parsePrimary();n.addChild(new o.Pair(s.lineno,s.colno,s,c))}else n.addChild(s);r=this.parseWithContext()}return new o.FromImport(e.lineno,e.colno,t,n,r)},c.parseBlock=function(){var e=this.peekToken();this.skipSymbol("block")||this.fail("parseBlock: expected block",e.lineno,e.colno);var t=new o.Block(e.lineno,e.colno);t.name=this.parsePrimary(),t.name instanceof o.Symbol||this.fail("parseBlock: variable name expected",e.lineno,e.colno),this.advanceAfterBlockEnd(e.value),t.body=this.parseUntilBlocks("endblock"),this.skipSymbol("endblock"),this.skipSymbol(t.name.value);var r=this.peekToken();return r||this.fail("parseBlock: expected endblock, got end of file"),this.advanceAfterBlockEnd(r.value),t},c.parseExtends=function(){var e="extends",t=this.peekToken();this.skipSymbol(e)||this.fail("parseTemplateRef: expected "+e);var r=new o.Extends(t.lineno,t.colno);return r.template=this.parseExpression(),this.advanceAfterBlockEnd(t.value),r},c.parseInclude=function(){var e="include",t=this.peekToken();this.skipSymbol(e)||this.fail("parseInclude: expected "+e);var r=new o.Include(t.lineno,t.colno);return r.template=this.parseExpression(),this.skipSymbol("ignore")&&this.skipSymbol("missing")&&(r.ignoreMissing=!0),this.advanceAfterBlockEnd(t.value),r},c.parseIf=function(){var e,t=this.peekToken();this.skipSymbol("if")||this.skipSymbol("elif")||this.skipSymbol("elseif")?e=new o.If(t.lineno,t.colno):this.skipSymbol("ifAsync")?e=new o.IfAsync(t.lineno,t.colno):this.fail("parseIf: expected if, elif, or elseif",t.lineno,t.colno),e.cond=this.parseExpression(),this.advanceAfterBlockEnd(t.value),e.body=this.parseUntilBlocks("elif","elseif","else","endif");var r=this.peekToken();switch(r&&r.value){case"elseif":case"elif":e.else_=this.parseIf();break;case"else":this.advanceAfterBlockEnd(),e.else_=this.parseUntilBlocks("endif"),this.advanceAfterBlockEnd();break;case"endif":e.else_=null,this.advanceAfterBlockEnd();break;default:this.fail("parseIf: expected elif, else, or endif, got end of file")}return e},c.parseSet=function(){var e=this.peekToken();this.skipSymbol("set")||this.fail("parseSet: expected set",e.lineno,e.colno);for(var t,r=new o.Set(e.lineno,e.colno,[]);(t=this.parsePrimary())&&(r.targets.push(t),this.skip(i.TOKEN_COMMA)););return this.skipValue(i.TOKEN_OPERATOR,"=")?(r.value=this.parseExpression(),this.advanceAfterBlockEnd(e.value)):this.skip(i.TOKEN_BLOCK_END)?(r.body=new o.Capture(e.lineno,e.colno,this.parseUntilBlocks("endset")),r.value=null,this.advanceAfterBlockEnd()):this.fail("parseSet: expected = or block end in set tag",e.lineno,e.colno),r},c.parseSwitch=function(){var e="switch",t="endswitch",r="case",n="default",i=this.peekToken();this.skipSymbol(e)||this.skipSymbol(r)||this.skipSymbol(n)||this.fail('parseSwitch: expected "switch," "case" or "default"',i.lineno,i.colno);var a=this.parseExpression();this.advanceAfterBlockEnd(e),this.parseUntilBlocks(r,n,t);var s,c=this.peekToken(),l=[];do{this.skipSymbol(r);var u=this.parseExpression();this.advanceAfterBlockEnd(e);var p=this.parseUntilBlocks(r,n,t);l.push(new o.Case(c.line,c.col,u,p)),c=this.peekToken()}while(c&&c.value===r);switch(c.value){case n:this.advanceAfterBlockEnd(),s=this.parseUntilBlocks(t),this.advanceAfterBlockEnd();break;case t:this.advanceAfterBlockEnd();break;default:this.fail('parseSwitch: expected "case," "default" or "endswitch," got EOF.')}return new o.Switch(i.lineno,i.colno,a,l,s)},c.parseStatement=function(){var e=this.peekToken();if(e.type!==i.TOKEN_SYMBOL&&this.fail("tag name expected",e.lineno,e.colno),this.breakOnBlocks&&-1!==s.indexOf(this.breakOnBlocks,e.value))return null;switch(e.value){case"raw":return this.parseRaw();case"verbatim":return this.parseRaw("verbatim");case"if":case"ifAsync":return this.parseIf();case"for":case"asyncEach":case"asyncAll":return this.parseFor();case"block":return this.parseBlock();case"extends":return this.parseExtends();case"include":return this.parseInclude();case"set":return this.parseSet();case"macro":return this.parseMacro();case"call":return this.parseCall();case"import":return this.parseImport();case"from":return this.parseFrom();case"filter":return this.parseFilterStatement();case"switch":return this.parseSwitch();default:if(this.extensions.length)for(var t=0;t0;){var c=a[0],l=a[1],u=a[2];u===e?n+=1:u===t&&(n-=1),0===n?(i+=l,this.tokens.backN(c.length-l.length)):i+=c}return new o.Output(s.lineno,s.colno,[new o.TemplateData(s.lineno,s.colno,i)])},c.parsePostfix=function(e){for(var t,r=this.peekToken();r;){if(r.type===i.TOKEN_LEFT_PAREN)e=new o.FunCall(r.lineno,r.colno,e,this.parseSignature());else if(r.type===i.TOKEN_LEFT_BRACKET)(t=this.parseAggregate()).children.length>1&&this.fail("invalid index"),e=new o.LookupVal(r.lineno,r.colno,e,t.children[0]);else{if(r.type!==i.TOKEN_OPERATOR||"."!==r.value)break;this.nextToken();var n=this.nextToken();n.type!==i.TOKEN_SYMBOL&&this.fail("expected name as lookup value, got "+n.value,n.lineno,n.colno),t=new o.Literal(n.lineno,n.colno,n.value),e=new o.LookupVal(r.lineno,r.colno,e,t)}r=this.peekToken()}return e},c.parseExpression=function(){return this.parseInlineIf()},c.parseInlineIf=function(){var e=this.parseOr();if(this.skipSymbol("if")){var t=this.parseOr(),r=e;(e=new o.InlineIf(e.lineno,e.colno)).body=r,e.cond=t,this.skipSymbol("else")?e.else_=this.parseOr():e.else_=null}return e},c.parseOr=function(){for(var e=this.parseAnd();this.skipSymbol("or");){var t=this.parseAnd();e=new o.Or(e.lineno,e.colno,e,t)}return e},c.parseAnd=function(){for(var e=this.parseNot();this.skipSymbol("and");){var t=this.parseNot();e=new o.And(e.lineno,e.colno,e,t)}return e},c.parseNot=function(){var e=this.peekToken();return this.skipSymbol("not")?new o.Not(e.lineno,e.colno,this.parseNot()):this.parseIn()},c.parseIn=function(){for(var e=this.parseIs();;){var t=this.nextToken();if(!t)break;var r=t.type===i.TOKEN_SYMBOL&&"not"===t.value;if(r||this.pushToken(t),!this.skipSymbol("in")){r&&this.pushToken(t);break}var n=this.parseIs();e=new o.In(e.lineno,e.colno,e,n),r&&(e=new o.Not(e.lineno,e.colno,e))}return e},c.parseIs=function(){var e=this.parseCompare();if(this.skipSymbol("is")){var t=this.skipSymbol("not"),r=this.parseCompare();e=new o.Is(e.lineno,e.colno,e,r),t&&(e=new o.Not(e.lineno,e.colno,e))}return e},c.parseCompare=function(){for(var e=["==","===","!=","!==","<",">","<=",">="],t=this.parseConcat(),r=[];;){var n=this.nextToken();if(!n)break;if(-1===e.indexOf(n.value)){this.pushToken(n);break}r.push(new o.CompareOperand(n.lineno,n.colno,this.parseConcat(),n.value))}return r.length?new o.Compare(r[0].lineno,r[0].colno,t,r):t},c.parseConcat=function(){for(var e=this.parseAdd();this.skipValue(i.TOKEN_TILDE,"~");){var t=this.parseAdd();e=new o.Concat(e.lineno,e.colno,e,t)}return e},c.parseAdd=function(){for(var e=this.parseSub();this.skipValue(i.TOKEN_OPERATOR,"+");){var t=this.parseSub();e=new o.Add(e.lineno,e.colno,e,t)}return e},c.parseSub=function(){for(var e=this.parseMul();this.skipValue(i.TOKEN_OPERATOR,"-");){var t=this.parseMul();e=new o.Sub(e.lineno,e.colno,e,t)}return e},c.parseMul=function(){for(var e=this.parseDiv();this.skipValue(i.TOKEN_OPERATOR,"*");){var t=this.parseDiv();e=new o.Mul(e.lineno,e.colno,e,t)}return e},c.parseDiv=function(){for(var e=this.parseFloorDiv();this.skipValue(i.TOKEN_OPERATOR,"/");){var t=this.parseFloorDiv();e=new o.Div(e.lineno,e.colno,e,t)}return e},c.parseFloorDiv=function(){for(var e=this.parseMod();this.skipValue(i.TOKEN_OPERATOR,"//");){var t=this.parseMod();e=new o.FloorDiv(e.lineno,e.colno,e,t)}return e},c.parseMod=function(){for(var e=this.parsePow();this.skipValue(i.TOKEN_OPERATOR,"%");){var t=this.parsePow();e=new o.Mod(e.lineno,e.colno,e,t)}return e},c.parsePow=function(){for(var e=this.parseUnary();this.skipValue(i.TOKEN_OPERATOR,"**");){var t=this.parseUnary();e=new o.Pow(e.lineno,e.colno,e,t)}return e},c.parseUnary=function(e){var t,r=this.peekToken();return t=this.skipValue(i.TOKEN_OPERATOR,"-")?new o.Neg(r.lineno,r.colno,this.parseUnary(!0)):this.skipValue(i.TOKEN_OPERATOR,"+")?new o.Pos(r.lineno,r.colno,this.parseUnary(!0)):this.parsePrimary(),e||(t=this.parseFilter(t)),t},c.parsePrimary=function(e){var t,r=this.nextToken(),n=null;if(r?r.type===i.TOKEN_STRING?t=r.value:r.type===i.TOKEN_INT?t=parseInt(r.value,10):r.type===i.TOKEN_FLOAT?t=parseFloat(r.value):r.type===i.TOKEN_BOOLEAN?"true"===r.value?t=!0:"false"===r.value?t=!1:this.fail("invalid boolean: "+r.value,r.lineno,r.colno):r.type===i.TOKEN_NONE?t=null:r.type===i.TOKEN_REGEX&&(t=new RegExp(r.value.body,r.value.flags)):this.fail("expected expression, got end of file"),void 0!==t?n=new o.Literal(r.lineno,r.colno,t):r.type===i.TOKEN_SYMBOL?n=new o.Symbol(r.lineno,r.colno,r.value):(this.pushToken(r),n=this.parseAggregate()),e||(n=this.parsePostfix(n)),n)return n;throw this.error("unexpected token: "+r.value,r.lineno,r.colno)},c.parseFilterName=function(){for(var e=this.expect(i.TOKEN_SYMBOL),t=e.value;this.skipValue(i.TOKEN_OPERATOR,".");)t+="."+this.expect(i.TOKEN_SYMBOL).value;return new o.Symbol(e.lineno,e.colno,t)},c.parseFilterArgs=function(e){return this.peekToken().type===i.TOKEN_LEFT_PAREN?this.parsePostfix(e).args.children:[]},c.parseFilter=function(e){for(;this.skip(i.TOKEN_PIPE);){var t=this.parseFilterName();e=new o.Filter(t.lineno,t.colno,t,new o.NodeList(t.lineno,t.colno,[e].concat(this.parseFilterArgs(e))))}return e},c.parseFilterStatement=function(){var e=this.peekToken();this.skipSymbol("filter")||this.fail("parseFilterStatement: expected filter");var t=this.parseFilterName(),r=this.parseFilterArgs(t);this.advanceAfterBlockEnd(e.value);var n=new o.Capture(t.lineno,t.colno,this.parseUntilBlocks("endfilter"));this.advanceAfterBlockEnd();var i=new o.Filter(t.lineno,t.colno,t,new o.NodeList(t.lineno,t.colno,[n].concat(r)));return new o.Output(t.lineno,t.colno,[i])},c.parseAggregate=function(){var e,t=this.nextToken();switch(t.type){case i.TOKEN_LEFT_PAREN:e=new o.Group(t.lineno,t.colno);break;case i.TOKEN_LEFT_BRACKET:e=new o.Array(t.lineno,t.colno);break;case i.TOKEN_LEFT_CURLY:e=new o.Dict(t.lineno,t.colno);break;default:return null}for(;;){var r=this.peekToken().type;if(r===i.TOKEN_RIGHT_PAREN||r===i.TOKEN_RIGHT_BRACKET||r===i.TOKEN_RIGHT_CURLY){this.nextToken();break}if(e.children.length>0&&(this.skip(i.TOKEN_COMMA)||this.fail("parseAggregate: expected comma after expression",t.lineno,t.colno)),e instanceof o.Dict){var n=this.parsePrimary();this.skip(i.TOKEN_COLON)||this.fail("parseAggregate: expected colon after dict key",t.lineno,t.colno);var a=this.parseExpression();e.addChild(new o.Pair(n.lineno,n.colno,n,a))}else{var s=this.parseExpression();e.addChild(s)}}return e},c.parseSignature=function(e,t){var r=this.peekToken();if(!t&&r.type!==i.TOKEN_LEFT_PAREN){if(e)return null;this.fail("expected arguments",r.lineno,r.colno)}r.type===i.TOKEN_LEFT_PAREN&&(r=this.nextToken());for(var n=new o.NodeList(r.lineno,r.colno),a=new o.KeywordArgs(r.lineno,r.colno),s=!1;;){if(r=this.peekToken(),!t&&r.type===i.TOKEN_RIGHT_PAREN){this.nextToken();break}if(t&&r.type===i.TOKEN_BLOCK_END)break;if(s&&!this.skip(i.TOKEN_COMMA))this.fail("parseSignature: expected comma after expression",r.lineno,r.colno);else{var c=this.parseExpression();this.skipValue(i.TOKEN_OPERATOR,"=")?a.addChild(new o.Pair(c.lineno,c.colno,c,this.parseExpression())):n.addChild(c)}s=!0}return a.children.length&&n.addChild(a),n},c.parseUntilBlocks=function(){for(var e=this.breakOnBlocks,t=arguments.length,r=new Array(t),n=0;n=","//","**"],j=D+this.current();switch(-1!==n.indexOf(P,j)&&(this.forward(),D=j,-1!==n.indexOf(P,j+this.current())&&(D=j+this.current(),this.forward())),D){case"(":R=h;break;case")":R=g;break;case"[":R=m;break;case"]":R=v;break;case"{":R=b;break;case"}":R=y;break;case",":R=_;break;case":":R=k;break;case"~":R=x;break;case"|":R=E;break;default:R=w}return L(R,D,t,r)}if((e=this._extractUntil(i+o)).match(/^[-+]?[0-9]+$/)){if("."===this.current()){this.forward();var M=this._extract("0123456789");return L(T,e+"."+M,t,r)}return L("int",e,t,r)}if(e.match(/^(true|false)$/))return L(A,e,t,r);if("none"===e)return L(S,e,t,r);if("null"===e)return L(S,e,t,r);if(e)return L(C,e,t,r);throw new Error("Unexpected value while parsing: "+e)}var F,I=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if((e=this._extractString(this.tags.BLOCK_START+"-"))||(e=this._extractString(this.tags.BLOCK_START)))return this.in_code=!0,L(l,e,t,r);if((e=this._extractString(this.tags.VARIABLE_START+"-"))||(e=this._extractString(this.tags.VARIABLE_START)))return this.in_code=!0,L(p,e,t,r);e="";var U=!1;for(this._matches(this.tags.COMMENT_START)&&(U=!0,e=this._extractString(this.tags.COMMENT_START));null!==(F=this._extractUntil(I));){if(e+=F,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!U){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&this.colno>0&&this.colno<=e.length){var H=e.slice(-this.colno);if(/^\s+$/.test(H)&&!(e=e.slice(0,-this.colno)).length)return this.nextToken()}break}if(this._matches(this.tags.COMMENT_END)){if(!U)throw new Error("unexpected end of comment");e+=this._extractString(this.tags.COMMENT_END);break}e+=this.current(),this.forward()}if(null===F&&U)throw new Error("expected end of comment, got end of file");return L(U?d:c,e,t,r)},t._parseString=function(e){this.forward();for(var t="";!this.isFinished()&&this.current()!==e;){var r=this.current();if("\\"===r){switch(this.forward(),this.current()){case"n":t+="\n";break;case"t":t+="\t";break;case"r":t+="\r";break;default:t+=this.current()}this.forward()}else t+=r,this.forward()}return this.forward(),t},t._matches=function(e){return this.index+e.length>this.len?null:this.str.slice(this.index,this.index+e.length)===e},t._extractString=function(e){return this._matches(e)?(this.forwardN(e.length),e):null},t._extractUntil=function(e){return this._extractMatching(!0,e||"")},t._extract=function(e){return this._extractMatching(!1,e)},t._extractMatching=function(e,t){if(this.isFinished())return null;var r=t.indexOf(this.current());if(e&&-1===r||!e&&-1!==r){var n=this.current();this.forward();for(var i=t.indexOf(this.current());(e&&-1===i||!e&&-1!==i)&&!this.isFinished();)n+=this.current(),this.forward(),i=t.indexOf(this.current());return n}return""},t._extractRegex=function(e){var t=this.currentStr().match(e);return t?(this.forwardN(t[0].length),t):null},t.isFinished=function(){return this.index>=this.len},t.forwardN=function(e){for(var t=0;t1024){for(var t=0,r=i.length-o;t0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var l=c.length,u=m(c,l);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){"use strict";var n=r(3),i=r(0),o=0;function a(){return"hole_"+o++}function s(e,t){for(var r=null,n=0;n=t)return e;var r=t-e.length,a=n.repeat(" ",r/2-r%2),s=n.repeat(" ",r/2);return i.copySafeness(e,a+e+s)},t.default=function(e,t,r){return r?e||t:void 0!==e?e:t},t.dictsort=function(e,t,r){if(!n.isObject(e))throw new n.TemplateError("dictsort filter: val must be an object");var i,o=[];for(var a in e)o.push([a,e[a]]);if(void 0===r||"key"===r)i=0;else{if("value"!==r)throw new n.TemplateError("dictsort filter: You can only sort by either key or value");i=1}return o.sort((function(e,r){var o=e[i],a=r[i];return t||(n.isString(o)&&(o=o.toUpperCase()),n.isString(a)&&(a=a.toUpperCase())),o>a?1:o===a?0:-1})),o},t.dump=function(e,t){return JSON.stringify(e,null,t)},t.escape=function(e){return e instanceof i.SafeString?e:(e=null==e?"":e,i.markSafe(n.escape(e.toString())))},t.safe=function(e){return e instanceof i.SafeString?e:(e=null==e?"":e,i.markSafe(e.toString()))},t.first=function(e){return e[0]},t.forceescape=function(e){return e=null==e?"":e,i.markSafe(n.escape(e.toString()))},t.groupby=function(e,t){return n.groupBy(e,t,this.env.opts.throwOnUndefined)},t.indent=function(e,t,r){if(""===(e=o(e,"")))return"";t=t||4;var a=e.split("\n"),s=n.repeat(" ",t),c=a.map((function(e,t){return 0!==t||r?""+s+e:e})).join("\n");return i.copySafeness(e,c)},t.join=function(e,t,r){return t=t||"",r&&(e=n.map(e,(function(e){return e[r]}))),e.join(t)},t.last=function(e){return e[e.length-1]},t.length=function(e){var t=o(e,"");return void 0!==t?"function"==typeof Map&&t instanceof Map||"function"==typeof Set&&t instanceof Set?t.size:!n.isObject(t)||t instanceof i.SafeString?t.length:n.keys(t).length:0},t.list=c,t.lower=function(e){return(e=o(e,"")).toLowerCase()},t.nl2br=function(e){return null==e?"":i.copySafeness(e,e.replace(/\r\n|\n/g,"
\n"))},t.random=function(e){return e[Math.floor(Math.random()*e.length)]},t.reject=l(!1),t.rejectattr=function(e,t){return e.filter((function(e){return!e[t]}))},t.select=l(!0),t.selectattr=function(e,t){return e.filter((function(e){return!!e[t]}))},t.replace=function(e,t,r,n){var o=e;if(t instanceof RegExp)return e.replace(t,r);void 0===n&&(n=-1);var a="";if("number"==typeof t)t=""+t;else if("string"!=typeof t)return e;if("number"==typeof e&&(e=""+e),"string"!=typeof e&&!(e instanceof i.SafeString))return e;if(""===t)return a=r+e.split("").join(r)+r,i.copySafeness(e,a);var s=e.indexOf(t);if(0===n||-1===s)return e;for(var c=0,l=0;s>-1&&(-1===n||l=i&&u.push(r),o.push(u)}return o},t.sum=function(e,t,r){return void 0===r&&(r=0),t&&(e=n.map(e,(function(e){return e[t]}))),r+e.reduce((function(e,t){return e+t}),0)},t.sort=i.makeMacro(["value","reverse","case_sensitive","attribute"],[],(function(e,t,r,i){var o=this,a=n.map(e,(function(e){return e})),s=n.getAttrGetter(i);return a.sort((function(e,a){var c=i?s(e):e,l=i?s(a):a;if(o.env.opts.throwOnUndefined&&i&&(void 0===c||void 0===l))throw new TypeError('sort: attribute "'+i+'" resolved to undefined');return!r&&n.isString(c)&&n.isString(l)&&(c=c.toLowerCase(),l=l.toLowerCase()),cl?t?-1:1:0})),a})),t.string=function(e){return i.copySafeness(e,e)},t.striptags=function(e,t){var r,n=u((e=o(e,"")).replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>|/gi,""));return r=t?n.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,"\n").replace(/\n\n\n+/g,"\n\n"):n.replace(/\s+/gi," "),i.copySafeness(e,r)},t.title=function(e){var t=(e=o(e,"")).split(" ").map((function(e){return s(e)}));return i.copySafeness(e,t.join(" "))},t.trim=u,t.truncate=function(e,t,r,n){var a=e;if(t=t||255,(e=o(e,"")).length<=t)return e;if(r)e=e.substring(0,t);else{var s=e.lastIndexOf(" ",t);-1===s&&(s=t),e=e.substring(0,s)}return e+=null!=n?n:"...",i.copySafeness(a,e)},t.upper=function(e){return(e=o(e,"")).toUpperCase()},t.urlencode=function(e){var t=encodeURIComponent;return n.isString(e)?t(e):(n.isArray(e)?e:n._entries(e)).map((function(e){var r=e[0],n=e[1];return t(r)+"="+t(n)})).join("&")};var p=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,f=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,d=/^https?:\/\/.*$/,h=/^www\./,g=/\.(?:org|net|com)(?:\:|\/|$)/;t.urlize=function(e,t,r){a(t)&&(t=1/0);var n=!0===r?' rel="nofollow"':"";return e.split(/(\s+)/).filter((function(e){return e&&e.length})).map((function(e){var r=e.match(p),i=r?r[1]:e,o=i.substr(0,t);return d.test(i)?'"+o+"":h.test(i)?'"+o+"":f.test(i)?''+i+"":g.test(i)?'"+o+"":e})).join("")},t.wordcount=function(e){var t=(e=o(e,""))?e.match(/\w+/g):null;return t?t.length:null},t.float=function(e,t){var r=parseFloat(e);return a(r)?t:r};var m=i.makeMacro(["value","default","base"],[],(function(e,t,r){void 0===r&&(r=10);var n=parseInt(e,r);return a(n)?t:n}));t.int=m,t.d=t.default,t.e=t.escape},function(e,t,r){"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}var i=function(e){var t,r;function i(t){var r;return(r=e.call(this)||this).precompiled=t||{},r}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,n(t,r),i.prototype.getSource=function(e){return this.precompiled[e]?{src:{type:"code",obj:this.precompiled[e]},path:e}:null},i}(r(6));e.exports={PrecompiledLoader:i}},function(e,t,r){"use strict";var n=r(2).SafeString;t.callable=function(e){return"function"==typeof e},t.defined=function(e){return void 0!==e},t.divisibleby=function(e,t){return e%t==0},t.escaped=function(e){return e instanceof n},t.equalto=function(e,t){return e===t},t.eq=t.equalto,t.sameas=t.equalto,t.even=function(e){return e%2==0},t.falsy=function(e){return!e},t.ge=function(e,t){return e>=t},t.greaterthan=function(e,t){return e>t},t.gt=t.greaterthan,t.le=function(e,t){return e<=t},t.lessthan=function(e,t){return e0)for(var i=e;it;o+=r)n.push(o);return n},cycler:function(){return e=Array.prototype.slice.call(arguments),t=-1,{current:null,reset:function(){t=-1,this.current=null},next:function(){return++t>=e.length&&(t=0),this.current=e[t],this.current}};var e,t},joiner:function(e){return function(e){e=e||",";var t=!0;return function(){var r=t?"":e;return t=!1,r}}(e)}}}},function(e,t,r){var n=r(4);e.exports=function(e,t){function r(e,t){if(this.name=e,this.path=e,this.defaultEngine=t.defaultEngine,this.ext=n.extname(e),!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");this.ext||(this.name+=this.ext=("."!==this.defaultEngine[0]?".":"")+this.defaultEngine)}return r.prototype.render=function(t,r){e.render(this.name,t,r)},t.set("view",r),t.set("nunjucksEnv",e),e}},function(e,t,r){"use strict";var n=r(4),i=r(4),o=r(0)._prettifyError,a=r(5),s=r(7).Environment,c=r(24);function l(e,t){return!!Array.isArray(t)&&t.some((function(t){return e.match(t)}))}function u(e,t){(t=t||{}).isString=!0;var r=t.env||new s([]),n=t.wrapper||c;if(!t.name)throw new Error('the "name" option is required when compiling a string');return n([p(e,t.name,r)],t)}function p(e,t,r){var n,i=(r=r||new s([])).asyncFilters,c=r.extensionsList;t=t.replace(/\\/g,"/");try{n=a.compile(e,i,c,t,r.opts)}catch(e){throw o(t,!1,e)}return{name:t,template:n}}e.exports={precompile:function(e,t){var r=(t=t||{}).env||new s([]),o=t.wrapper||c;if(t.isString)return u(e,t);var a=n.existsSync(e)&&n.statSync(e),f=[],d=[];if(a.isFile())f.push(p(n.readFileSync(e,"utf-8"),t.name||e,r));else if(a.isDirectory()){!function r(o){n.readdirSync(o).forEach((function(a){var s=i.join(o,a),c=s.substr(i.join(e,"/").length),u=n.statSync(s);u&&u.isDirectory()?l(c+="/",t.exclude)||r(s):l(c,t.include)&&d.push(s)}))}(e);for(var h=0;he.length||i>0&&a>=n||i<0&&a<=n);a+=i)o.push(r.memberLookup(e,a));return o}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var h={pop:function(e){if(void 0===e)return this.pop();if(e>=this.length||e<0)throw new Error("KeyError");return this.splice(e,1)},append:function(e){return this.push(e)},remove:function(e){for(var t=0;t{"use strict";var n=r(3700),i=/[\/\?<>\\:\*\|"]/g,o=/[\x00-\x1f\x80-\x9f]/g,a=/^\.+$/,s=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,c=/[\. ]+$/;function l(e,t){if("string"!=typeof e)throw new Error("Input must be string");var r=e.replace(i,t).replace(o,t).replace(a,t).replace(s,t).replace(c,t);return n(r,255)}e.exports=function(e,t){var r=t&&t.replacement||"",n=l(e,r);return""===r?n:l(n,"")}},9328:e=>{"use strict";var t={decodeValues:!0,map:!1,silent:!1};function r(e){return"string"==typeof e&&!!e.trim()}function n(e,n){var i=e.split(";").filter(r),o=i.shift().split("="),a=o.shift(),s=o.join("=");n=n?Object.assign({},t,n):t;try{s=n.decodeValues?decodeURIComponent(s):s}catch(e){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+s+"'. Set options.decodeValues to false to disable this feature.",e)}var c={name:a,value:s};return i.forEach((function(e){var t=e.split("="),r=t.shift().trimLeft().toLowerCase(),n=t.join("=");"expires"===r?c.expires=new Date(n):"max-age"===r?c.maxAge=parseInt(n,10):"secure"===r?c.secure=!0:"httponly"===r?c.httpOnly=!0:"samesite"===r?c.sameSite=n:c[r]=n})),c}function i(e,i){if(i=i?Object.assign({},t,i):t,!e)return i.map?{}:[];if(e.headers&&e.headers["set-cookie"])e=e.headers["set-cookie"];else if(e.headers){var o=e.headers[Object.keys(e.headers).find((function(e){return"set-cookie"===e.toLowerCase()}))];o||!e.headers.cookie||i.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=o}return Array.isArray(e)||(e=[e]),(i=i?Object.assign({},t,i):t).map?e.filter(r).reduce((function(e,t){var r=n(t,i);return e[r.name]=r,e}),{}):e.filter(r).map((function(e){return n(e,i)}))}e.exports=i,e.exports.parse=i,e.exports.parseString=n,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,r,n,i,o,a=[],s=0;function c(){for(;s=e.length)&&a.push(e.substring(t,e.length))}return a}},3379:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var i=void 0!==r.layer;i&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,i&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},3700:(e,t,r)=>{"use strict";var n=r(1156),i=r(793);e.exports=n.bind(null,i)},1156:e=>{"use strict";function t(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}e.exports=function(e,n,i){if("string"!=typeof n)throw new Error("Input must be string");for(var o,a,s=n.length,c=0,l=0;li)return n.slice(0,l-a.length+1)}return n}},793:e=>{"use strict";function t(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}e.exports=function(e){if("string"!=typeof e)throw new Error("Input must be string");for(var n=e.length,i=0,o=null,a=null,s=0;s=128&&o<=2047?i+=2:o>=2048&&o<=65535&&(i+=3),a=o;return i}},5840:e=>{"use strict";e.exports=require("electron")},6113:e=>{"use strict";e.exports=require("crypto")},3600:e=>{"use strict";e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},9323:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},9591:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},2586:e=>{"use strict";e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.nc=void 0;var n={};(()=>{"use strict";function e(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}r.r(n),r.d(n,{default:()=>X}),Object.create,Object.create;const t=require("obsidian");var i=r(2985);function o(){}function a(e){return e()}function s(e){e.forEach(a)}function c(e){return"function"==typeof e}function l(e){let t;return function(e,...t){if(null==e)return o;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}(e,(e=>t=e))(),t}new Set,new Map;let u,p=[];new Set,new Set,"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global,new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(u=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(a).filter(c);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){s(this.$$.on_disconnect)}$destroy(){(function(e,t){const r=e.$$;null!==r.fragment&&(function(e){const t=[],r=[];p.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),p=t}(r.after_update),s(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])})(this,1),this.$destroy=o}$on(e,t){if(!c(t))return o;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const f=[];const d={cookies:[],noteLocation:"/",dailyNotesLocation:"/",insertAfter:"\x3c!-- start of weread --\x3e",insertBefore:"\x3c!-- end of weread --\x3e",dailyNotesFormat:"YYYY-MM-DD",lastCookieTime:-1,isCookieValid:!1,user:"",userVid:"",template:"---\nisbn: {{metaData.isbn}}\nlastReadDate: {{metaData.lastReadDate}}\n---\n# 元数据\n> [!abstract] {{metaData.title}}\n> - ![ {{metaData.title}}|200]({{metaData.cover}})\n> - 书名: {{metaData.title}}\n> - 作者: {{metaData.author}}\n> - 简介: {{metaData.intro}}\n> - 出版时间 {{metaData.publishTime}}\n> - ISBN: {{metaData.isbn}}\n> - 分类: {{metaData.category}}\n> - 出版社: {{metaData.publisher}}\n> - PC地址:{{metaData.pcUrl}}\n\n# 高亮划线\n{% for chapter in chapterHighlights %}\n{% if chapter.level == 1 %}## {{chapter.chapterTitle}}{% elif chapter.level == 2 %}### {{chapter.chapterTitle}}{% elif chapter.level == 3 %}#### {{chapter.chapterTitle}}{% endif %}\n{% for highlight in chapter.highlights %}{% if highlight.reviewContent %}\n> 📌 {{ highlight.markText |trim }} ^{{highlight.bookmarkId}}\n- 💭 {{highlight.reviewContent}} - ⏱ {{highlight.createTime}} {% else %}\n> 📌 {{ highlight.markText |trim }} \n> ⏱ {{highlight.createTime}} ^{{highlight.bookmarkId}}{% endif %}\n{% endfor %}{% endfor %}\n# 读书笔记\n{% for chapter in bookReview.chapterReviews %}{% if chapter.reviews or chapter.chapterReview %}\n## {{chapter.chapterTitle}}\n{% if chapter.chapterReviews %}{% for chapterReview in chapter.chapterReviews %}\n### 章节评论 No.{{loop.index}}\n- {{chapterReview.content}} ^{{chapterReview.reviewId}}\n - ⏱ {{chapterReview.createTime}} {% endfor%}{%endif %}{% if chapter.reviews %}{%for review in chapter.reviews %}\n### 划线评论\n> 📌 {{review.abstract |trim }} ^{{review.reviewId}}\n - 💭 {{review.content}}\n - ⏱ {{review.createTime}}\n{% endfor %} {%endif %} {% endif %} {% endfor %}\n# 本书评论\n{% if bookReview.bookReviews %}{% for bookReview in bookReview.bookReviews %}\n## 书评 No.{{loop.index}} \n{{bookReview.mdContent}} ^{{bookReview.reviewId}}\n⏱ {{bookReview.createTime}}\n{% endfor%}{% endif %}",noteCountLimit:-1,subFolderType:"-1",fileNameType:"BOOK_NAME",dailyNotesToggle:!1,notesBlacklist:"",showEmptyChapterTitleToggle:!1,convertTags:!1,saveArticleToggle:!0},h=(()=>{const t=function(e,t=o){let r;const n=new Set;function i(t){if(o=t,((i=e)!=i?o==o:i!==o||i&&"object"==typeof i||"function"==typeof i)&&(e=t,r)){const t=!f.length;for(const t of n)t[1](),f.push(t,e);if(t){for(let e=0;e{n.delete(c),0===n.size&&r&&(r(),r=null)}}}}(d);let r;t.subscribe((t=>e(void 0,void 0,void 0,(function*(){if(r){const e=Object.assign({},t);yield r.saveData(e)}}))));const n=e=>{for(const r of e)"wr_name"==r.name&&""!==r.value&&(console.log("[weread plugin] setting user name=>",r.value),t.update((e=>(e.user=r.value,e)))),"wr_vid"==r.name&&""!==r.value&&(console.log("[weread plugin] setting user vid=>",r.value),t.update((e=>(e.userVid=r.value,e))))};return{subscribe:t.subscribe,initialise:i=>e(void 0,void 0,void 0,(function*(){const e=Object.assign({},d,yield i.loadData()),o=Object.assign({},e);console.log("--------init cookie------",o.cookies),o.cookies.length>1&&n(o.cookies);const a=o.cookies.find((e=>"wr_vid"===e.name));void 0!==a&&""!==a.value||(o.userVid="",o.isCookieValid=!1),t.set(o),r=i})),actions:{setNoteLocationFolder:e=>{t.update((t=>(t.noteLocation=e,t)))},setCookies:e=>{t.update((t=>(t.cookies=e,t.lastCookieTime=(new Date).getTime(),t.isCookieValid=!0,n(e),t)))},clearCookies:()=>{console.log("[weread plugin] cookie已失效,清理cookie..."),t.update((e=>(e.cookies=[],e.lastCookieTime=(new Date).getTime(),e.user="",e.userVid="",e.isCookieValid=!1,e)))},setTemplate:e=>{t.update((t=>(t.template=e,t)))},setNoteCountLimit:e=>{t.update((t=>(t.noteCountLimit=e,t)))},setSubFolderType:e=>{t.update((t=>(t.subFolderType=e,t)))},setFileNameType:e=>{t.update((t=>(t.fileNameType=e,t)))},setDailyNotesToggle:e=>{t.update((t=>(t.dailyNotesToggle=e,t)))},setDailyNotesFolder:e=>{t.update((t=>(t.dailyNotesLocation=e,t)))},setDailyNotesFormat:e=>{t.update((t=>(t.dailyNotesFormat=e,t)))},setInsertAfter:e=>{t.update((t=>(t.insertAfter=e,t)))},setInsertBefore:e=>{t.update((t=>(t.insertBefore=e,t)))},setNoteBlacklist:e=>{t.update((t=>(t.notesBlacklist=e,t)))},setEmptyChapterTitleToggle:e=>{t.update((t=>(t.showEmptyChapterTitleToggle=e,t)))},setConvertTags:e=>{t.update((t=>(t.convertTags=e,t)))},setSaveArticleToggle:e=>{t.update((t=>(t.saveArticleToggle=e,t)))}}}})();class g{constructor(){i.configure({autoescape:!1})}validate(e){try{return i.renderString(e,{}),!0}catch(e){return console.error("validate weread template error,please check",e),!1}}render(e){const{metaData:t,chapterHighlights:r,bookReview:n}=e,o={metaData:t,chapterHighlights:r,bookReview:n},a=l(h).template;return i.renderString(a,o)}}var m=r(202),v=r.n(m);const b=e=>window.moment(1e3*e).format("YYYY-MM-DD"),y="weread-highlights-reviews";var w;!function(e){e[e["未标记"]=1]="未标记",e[e["在读"]=2]="在读",e[e["读过"]=3]="读过",e[e["读完"]=4]="读完"}(w||(w={}));const _=(e,r,n)=>{const i={doc_type:y,bookId:r.metaData.bookId,author:r.metaData.author,cover:r.metaData.cover,reviewCount:r.metaData.reviewCount,noteCount:r.metaData.noteCount},o=r.metaData.readInfo;var a;o&&(i.readingStatus=w[o.markedStatus],i.progress=void 0===o.readingProgress?"-1":o.readingProgress+"%",i.totalReadDay=o.totalReadDay,i.readingTime=(a=o.readingTime,`${Math.floor(a/3600)}小时${Math.floor(a%3600/60)}分钟`),i.readingDate=b(o.readingBookDate),o.finishedDate&&(i.finishedDate=b(o.finishedDate)));let s=Object();if(n){if(s=app.metadataCache.getFileCache(n).frontmatter,void 0===s)throw new t.Notice("weread front matter invalid"),Error("weread front matter invalid");delete s.position}const c=e.indexOf("---");let l=Object();if(-1!==c){const r=e.indexOf("---")+4,n=e.substring(r).indexOf("---")-1,o=e.substring(r,r+n);l=(0,t.parseYaml)(o);const a=e.substring(n+4),c=Object.assign(Object.assign(Object.assign({},s),i),l);return"---\n"+(0,t.stringifyYaml)(c)+a}return"---\n"+(0,t.stringifyYaml)(i)+"---\n"+e};class k{constructor(e,t){this.getWereadNoteAnnotationFile=e=>{const t=this.metadataCache.getFileCache(e),r=null==t?void 0:t.frontmatter;return(null==r?void 0:r.doc_type)===y&&void 0!==(null==r?void 0:r.bookId)?{file:e,bookId:r.bookId,reviewCount:r.reviewCount,noteCount:r.noteCount,new:!1}:null},this.vault=e,this.metadataCache=t,this.renderer=new g}saveDailyNotes(r,n){return e(this,void 0,void 0,(function*(){const e=yield this.fileExists(r),i=this.buildAppendContent(n);if(e){const e=yield this.getFileByPath(r),t=yield this.vault.cachedRead(e),n=yield this.insertAfter(t,i);this.vault.modify(e,n)}else new t.Notice("没有找到Daily Note,请先创建"+r)}))}buildAppendContent(e){return e.map((e=>"\n### ".concat(e.metaData.title).concat("\n")+e.refBlocks.map((t=>`![[${this.getFileName(e.metaData)}#^${t.refBlockId}]]`)).join("\n"))).join("\n")}getDailyNotePath(e){let r;const n=l(h).dailyNotesFormat;try{r=e.format(n)}catch(e){throw new t.Notice("Daily Notes 日期格式不正确"+n),e}return l(h).dailyNotesLocation+"/"+r+".md"}fileExists(t){return e(this,void 0,void 0,(function*(){return yield this.vault.adapter.exists(t)}))}getFileByPath(r){return e(this,void 0,void 0,(function*(){const e=yield this.vault.getAbstractFileByPath(r);return e?e instanceof t.TFolder?(console.error(`${r} found but it's a folder`),null):e instanceof t.TFile?e:void 0:(console.error(`${r} not found`),null)}))}insertAfter(r,n){return e(this,void 0,void 0,(function*(){const e=l(h).insertAfter,i=new RegExp(`s*${e}s*`),o=(e=>{const t=[];let r=e;for(;r.contains("\n");){const e=r.indexOf("\n");t.push(r.slice(0,e)),r=r.slice(e+1)}return t.push(r),t})(r).findIndex((e=>i.test(e)));if(-1===o)throw new t.Notice(`没有在Daily Note中找到区间开始:${e}!请检查Daily Notes设置`),new Error("cannot find "+e);return this.insertTextAfterPosition(n,r,o)}))}insertTextAfterPosition(e,r,n){const i=r.split("\n"),o=i.slice(0,n+1).join("\n"),a=i.slice(n+1),s=l(h).insertBefore,c=a.findIndex((e=>new RegExp(`s*${s}s*`).test(e)));if(-1===c)throw new t.Notice(`没有在Daily Note中找到区间结束:${s}!请检查Daily Notes设置`),new Error("cannot find "+s);return`${o}\n${e}\n${a.slice(c-1).join("\n")}`}saveNotebook(t){return e(this,void 0,void 0,(function*(){const e=t.metaData.file;if(e){if(e.new){const r=e.file;console.log(`Updating ${r.path}`);const n=this.renderer.render(t),i=_(n,t,r);yield this.vault.modify(r,i)}}else{const e=yield this.getNewNotebookFilePath(t);console.log(`Creating ${e}`);const r=this.renderer.render(t),n=_(r,t);yield this.vault.create(e,n)}}))}getNotebookFiles(){return e(this,void 0,void 0,(function*(){return this.vault.getMarkdownFiles().map((e=>{const t=this.metadataCache.getFileCache(e);return{file:e,frontmatter:null==t?void 0:t.frontmatter}})).filter((({frontmatter:e})=>(null==e?void 0:e.doc_type)===y)).map((({file:e,frontmatter:t})=>({file:e,bookId:t.bookId,reviewCount:t.reviewCount,noteCount:t.noteCount,new:!0})))}))}getNewNotebookFilePath(t){return e(this,void 0,void 0,(function*(){const e=`${l(h).noteLocation}/${this.getSubFolderPath(t.metaData)}`;return(yield this.vault.adapter.exists(e))||(console.info(`Folder ${e} not found. Will be created`),yield this.vault.createFolder(e)),`${e}/${this.getFileName(t.metaData)}.md`}))}getFileName(e){const t=l(h).fileNameType,r=(e=>{const t=e.replace(/[':#|]/g,"").trim();return v()(t)})(e.title);switch(t){case"BOOK_ID":return e.bookId;case"BOOK_NAME_AUTHOR":return e.duplicate?`${r}-${e.author}-${e.bookId}`:`${r}-${e.author}`;case"BOOK_NAME_BOOKID":return`${r}-${e.bookId}`;case"BOOK_NAME":return e.duplicate?`${r}-${e.bookId}`:r;default:return r}}getSubFolderPath(e){const t=l(h).subFolderType;return"title"==t?e.title:"category"==t?e.category?e.category.split("-")[0]:"公众号"===e.author?"公众号":"未分类":""}}var x=r(2245),E=r(1354);const T=e=>e.replace(/(?<=^|\s)#([^\s]+)/g,"[[$1]]"),A=e=>{const t=l(h).convertTags;return e.reviews.map((e=>{var r;const n=e.review,i=n.createTime,o=window.moment(1e3*i).format("YYYY-MM-DD HH:mm:ss"),a=(n.htmlContent?x.dx.translate(n.htmlContent):null)||n.content,s=t?T(a):a,c=n.reviewId;return{bookId:n.bookId,created:i,createTime:o,chapterUid:n.chapterUid,chapterTitle:n.chapterTitle||(null===(r=n.refMpInfo)||void 0===r?void 0:r.title),content:t?T(n.content):n.content,reviewId:null==c?void 0:c.replace(/_/gi,"-"),mdContent:s,range:n.range,abstract:n.abstract,type:n.type}}))};class S{constructor(e,t){this.fileManager=e,this.apiManager=t}syncNotebook(r){return e(this,void 0,void 0,(function*(){const e=(yield this.getALlMetadata()).find((e=>e.bookId===r.bookId));if(r.new=!0,e.file=r,e){const r=yield this.convertToNotebook(e);yield this.saveNotebook(r),new t.Notice(`当前笔记 《${e.title}》 同步成功!`)}else new t.Notice("当前笔记元数据缺少,同步失败!")}))}syncNotebooks(r=!1,n){return e(this,void 0,void 0,(function*(){new t.Notice("微信读书笔记同步开始!");const e=(new Date).getTime(),i=yield this.getALlMetadata(),o=yield this.filterNoteMetas(r,i);let a=0;const s=new t.Notice("微信读书笔记同步中, 请稍后!",3e5);try{for(const e of o){const t=yield this.convertToNotebook(e);if(yield this.saveNotebook(t),a++,a%10==0||a===o.length){const e=a/o.length*100;s.setMessage(`微信读书笔记同步中, 请稍后!正在更新 ${o.length} 本书 ,更新进度 ${e.toFixed(0)}%`)}}}finally{s.hide()}this.saveToJounal(n,i);const c=(((new Date).getTime()-e)/1e3).toFixed(2);new t.Notice(`微信读书笔记同步完成!, 总共 ${i.length} 本书 , 本次更新 ${o.length} 本书, 耗时${c} 秒`)}))}syncNotesToJounal(t){return e(this,void 0,void 0,(function*(){const e=yield this.getALlMetadata();this.saveToJounal(t,e)}))}convertToNotebook(t){return e(this,void 0,void 0,(function*(){const e=yield this.apiManager.getBook(t.bookId);e&&(t.category=e.category,t.publisher=e.publisher,t.isbn=e.isbn,t.intro=e.intro,t.totalWords=e.totalWords,t.rating=e.newRating/10+"%");const r=yield this.apiManager.getBookReadInfo(t.bookId);r&&(t.readInfo=Object.assign({},r));const n=yield this.apiManager.getNotebookHighlights(t.bookId),i=yield this.apiManager.getNotebookReviews(t.bookId),o=yield this.apiManager.getChapters(t.bookId),a=((e,t)=>{const r=l(h).convertTags;return e.updated.map((n=>{var i;const o=n.range;let a;if(t.reviews){const e=t.reviews.map((e=>e.review)).filter((e=>e.range===o)).first();e&&(a=r?T(e.content):e.content)}const s=e.chapters.filter((e=>e.chapterUid===n.chapterUid)).first();return{bookmarkId:null===(i=n.bookmarkId)||void 0===i?void 0:i.replace(/_/gi,"-"),created:n.createTime,createTime:window.moment(1e3*n.createTime).format("YYYY-MM-DD HH:mm:ss"),chapterUid:n.chapterUid,chapterIdx:(null==s?void 0:s.chapterIdx)||n.chapterUid,refMpReviewId:n.refMpReviewId,range:n.range,style:n.style,colorStyle:n.colorStyle,chapterTitle:(null==s?void 0:s.title)||"未知章节",markText:n.markText,reviewContent:a}}))})(n,i),s=A(i),c=((e,t)=>void 0===e?[]:void 0!==e.data&&e.data[0].updated.length>0?e.data[0].updated:void 0!==t.refMpInfos?t.refMpInfos.map((e=>({refMpReviewId:e.reviewId,updateTime:e.createTime,title:e.title,isMPChapter:1,level:2}))):[])(o,n);let u;3===t.bookType?(console.log("sync 公众号:",t.title),u=((e,t,r)=>{const n=[];for(const i of e){const e=i.refMpReviewId,o=i.title,a=t.filter((t=>t.refMpReviewId===e)).sort(((e,t)=>parseInt(e.range.split("-")[0])-parseInt(t.range.split("-")[0])));let s;a&&a.length>0&&r&&(s=r.filter((t=>{var r;return e==(null===(r=t.refMpInfo)||void 0===r?void 0:r.reviewId)})).sort(((e,t)=>void 0===e.range&&void 0===t.range?0:void 0===e.range?1:void 0===t.range?-1:parseInt(e.range.split("-")[0])-parseInt(t.range.split("-")[0])))),a&&a.length>0&&n.push({chapterTitle:o,level:i.level,isMPChapter:i.isMPChapter,chapterReviews:s,highlights:a})}return n.sort(((e,t)=>e.chapterIdx-t.chapterIdx))})(c,a,s),console.log("sync 公众号 result",t.title,u)):u=((e,t,r)=>{const n=[];for(const i of e){const e=i.chapterUid,o=i.chapterIdx,a=i.title,s=t.filter((t=>t.chapterUid==e)).sort(((e,t)=>parseInt(e.range.split("-")[0])-parseInt(t.range.split("-")[0])));let c;s&&s.length>0&&r&&(c=r.filter((t=>e==t.chapterUid&&1==t.type)).sort(((e,t)=>void 0===e.range&&void 0===t.range?0:void 0===e.range?1:void 0===t.range?-1:parseInt(e.range.split("-")[0])-parseInt(t.range.split("-")[0]))));const u=l(h).showEmptyChapterTitleToggle;(s&&s.length>0||u)&&n.push({chapterUid:e,chapterIdx:o,chapterTitle:a,level:i.level,isMPChapter:i.isMPChapter,chapterReviews:c,highlights:s})}return n.sort(((e,t)=>e.chapterIdx-t.chapterIdx))})(c,a,s),console.log("chapters:",c,u,n);const p=(e=>{const t=A(e),r=t.filter((e=>1==e.type));r.sort(((e,t)=>void 0===e.range&&void 0===t.range?0:void 0===e.range?1:void 0===t.range?-1:parseInt(e.range.split("-")[0])-parseInt(t.range.split("-")[0])));const n=t.filter((e=>4==e.type)),i=new Map;for(const e of r){const t=e.chapterUid,r=e.chapterTitle;if(null==i.get(e.chapterUid)){const n={chapterUid:t,chapterTitle:r,reviews:[],chapterReviews:[]};e.range?n.reviews.push(e):n.chapterReviews.push(e),i.set(e.chapterUid,n)}else{const t=i.get(e.chapterUid);e.range?t.reviews.push(e):t.chapterReviews.push(e)}}return{bookReviews:n,chapterReviews:Array.from(i.values()).sort(((e,t)=>e.chapterUid-t.chapterUid))}})(i);return{metaData:t,chapterHighlights:u,bookReview:p}}))}filterNoteMetas(t=!1,r){return e(this,void 0,void 0,(function*(){const e=yield this.fileManager.getNotebookFiles(),n=this.getDuplicateBooks(r),i=[];for(const o of r){if(!l(h).saveArticleToggle&&3===o.bookType)continue;if(o.noteCount<+l(h).noteCountLimit){console.info(`[weread plugin] skip book ${o.title} note count: ${o.noteCount}`);continue}const r=yield this.getLocalNotebookFile(o,e,t);r&&!r.new||(l(h).notesBlacklist.includes(o.bookId)?console.info(`[weread plugin] skip book ${o.title},id:${o.bookId} for blacklist`):(o.file=r,n.has(o.title)&&(o.duplicate=!0),i.push(o)))}return i}))}getALlMetadata(){return e(this,void 0,void 0,(function*(){return(yield this.apiManager.getNotebooksWithRetry()).map((e=>(e=>{const t=e.book,r=t.cover.replace("/s_","/t7_"),n=window.moment(1e3*e.sort).format("YYYY-MM-DD"),i=(e=>{const t=E.MD5(e).toString(E.enc.Hex),r=(e=>{if(/^\d*$/.test(e)){const t=[];for(let r=0;re.lastReadDate===t)),n=[];for(const t of e){const e=yield this.convertToNotebook(t);n.push(e)}if(l(h).dailyNotesToggle){const e=(e=>{const t=window.moment().format("YYYYMMDD"),r=[];for(const n of e){const e=n.chapterHighlights.flatMap((e=>e.highlights)).filter((e=>{const r=window.moment(1e3*e.created).format("YYYYMMDD");return t===r})),i=[];if(e)for(const t of e)i.push({refBlockId:t.bookmarkId,createTime:t.created});i.length>0&&r.push({metaData:n.metaData,refBlocks:i})}return r})(n),t=this.fileManager.getDailyNotePath(window.moment());console.log("get daily note path",t," size:",e.length),this.fileManager.saveDailyNotes(t,e)}}))}getDuplicateBooks(e){const t=e.map((e=>e.title)),r=new Set(t),n=t.filter((e=>{if(!r.has(e))return e;r.delete(e)}));return new Set(n)}getLocalNotebookFile(t,r,n=!1){return e(this,void 0,void 0,(function*(){const e=r.find((e=>e.bookId===t.bookId))||null;return e?(e.noteCount!=t.noteCount||e.reviewCount!=t.reviewCount||n?e.new=!0:e.new=!1,e):null}))}saveNotebook(t){return e(this,void 0,void 0,(function*(){try{yield this.fileManager.saveNotebook(t)}catch(e){console.log("[weread plugin] sync note book error",t.metaData.title,e)}}))}}var C=r(9328);class N{constructor(){this.baseUrl="https://i.weread.qq.com"}getHeaders(){return{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36","Accept-Encoding":"gzip, deflate, br","Accept-Language":"zh-CN,zh;q=0.9,en;q=0.8",Cookie:(e=l(h).cookies,e.map((e=>{const t=e.name,r=e.value;return t+"="+(-1!==r.indexOf("%")?decodeURIComponent(r):r)})).join(";"))};var e}refreshCookie(){return e(this,void 0,void 0,(function*(){const e={url:"https://weread.qq.com",method:"HEAD",headers:this.getHeaders()},r=yield(0,t.requestUrl)(e),n=r.headers["set-cookie"]||r.headers["Set-Cookie"];void 0===n?new t.Notice("尝试刷新Cookie失败"):(new t.Notice("cookie已过期,尝试刷新Cookie成功"),this.updateCookies(n))}))}getNotebooksWithRetry(){return e(this,void 0,void 0,(function*(){let e=yield this.getNotebooks();if(void 0!==e&&0!==e.length||(e=yield this.getNotebooks()),void 0===e||0===e.length)throw new t.Notice("长时间未登录,Cookie已失效,请重新扫码登录!"),h.actions.clearCookies(),Error("get weread note book error after retry");return e}))}getRecentBooks(){return e(this,void 0,void 0,(function*(){const e=l(h).userVid;console.debug("get userVid settings",e);const r={url:this.baseUrl+"/shelf/friendCommon?userVid="+e,method:"GET",headers:this.getHeaders()};try{return(yield(0,t.requestUrl)(r)).json.recentBooks}catch(t){console.error("get recent books error: vid"+e,t)}}))}getNotebooks(){return e(this,void 0,void 0,(function*(){let e=[];const r={url:this.baseUrl+"/user/notebooks",method:"GET",headers:this.getHeaders()};try{const n=yield(0,t.requestUrl)(r);401===n.status&&(-2012==n.json.errcode?(console.log("weread cookie expire retry refresh cookie... "),yield this.refreshCookie()):(t.Platform.isDesktopApp?new t.Notice("微信读书未登录或者用户异常,请在设置中重新登录!"):new t.Notice("微信读书未登录或者用户异常,请在电脑端重新登录!"),console.log("微信读书未登录或者用户异常,请重新登录, http status code:",n.json.errcode),h.actions.clearCookies())),e=n.json.books}catch(e){401==e.status&&(console.log(`parse request to cURL for debug: ${this.parseToCurl(r)}`),yield this.refreshCookie())}return e}))}parseToCurl(e){const t=["curl"];t.push(e.url);const r=e.headers;return Object.keys(r).forEach((e=>{t.push("-H"),t.push(this.escapeStringPosix(e.replace(/^:/,"")+": "+r[e]))})),t.push(" --compressed"),t.join(" ")}escapeStringPosix(e){return/[^\x20-\x7E]|'/.test(e)?"$'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[^\x20-\x7E]/g,(function(e){let t=e.charCodeAt(0);return t<256?t<16?"\\x0"+t.toString(16):"\\x"+t.toString(16):(t=t.toString(16),"\\u"+("0000"+t).substr(t.length,4))}))+"'":"'"+e+"'"}getBook(r){return e(this,void 0,void 0,(function*(){try{const e={url:`${this.baseUrl}/book/info?bookId=${r}`,method:"GET",headers:this.getHeaders()};return(yield(0,t.requestUrl)(e)).json}catch(e){console.error("get book detail error",e)}}))}getNotebookHighlights(r){return e(this,void 0,void 0,(function*(){try{const e={url:`${this.baseUrl}/book/bookmarklist?bookId=${r}`,method:"GET",headers:this.getHeaders()};return(yield(0,t.requestUrl)(e)).json}catch(e){console.error("get book highlight error"+r,e)}}))}getNotebookReviews(r){return e(this,void 0,void 0,(function*(){try{const e={url:`${this.baseUrl}/review/list?bookId=${r}&listType=11&mine=1&synckey=0`,method:"GET",headers:this.getHeaders()};return(yield(0,t.requestUrl)(e)).json}catch(e){new t.Notice("Failed to fetch weread notebook reviews . Please check your Cookies and try again."),console.error("get book review error"+r,e)}}))}getChapters(r){return e(this,void 0,void 0,(function*(){try{const e=`${this.baseUrl}/book/chapterInfos?bookIds=${r}&synckey=0`,n={bookIds:[r],synckeys:[0],teenmode:0},i={url:e,method:"POST",headers:this.getHeaders(),body:JSON.stringify(n)};return(yield(0,t.requestUrl)(i)).json}catch(e){new t.Notice("Failed to fetch weread notebook chapters . Please check your Cookies and try again."),console.error("get book chapters error"+r,e)}}))}getBookReadInfo(r){return e(this,void 0,void 0,(function*(){try{const e={url:`${this.baseUrl}/book/readinfo?bookId=${r}&readingDetail=1&readingBookIndex=1&finishedDate=1`,method:"GET",headers:this.getHeaders()};return(yield(0,t.requestUrl)(e)).json}catch(e){new t.Notice("Failed to fetch weread notebook read info . Please check your Cookies and try again."),console.error("get book read info error"+r,e)}}))}updateCookies(e){let t;if(Array.isArray(e))t=(0,C.parse)(e);else{const r=(0,C.splitCookiesString)(e);t=(0,C.parse)(r)}const r=l(h).cookies;r.forEach((e=>{const r=t.find((t=>t.name==e.name));r&&(e.value=r.value)})),h.actions.setCookies(r)}}class L{constructor(e){this.settingTab=e;const{remote:t}=r(5840),{BrowserWindow:n}=t;this.modal=new n({parent:t.getCurrentWindow(),width:960,height:540,show:!1}),this.modal.once("ready-to-show",(()=>{this.modal.setTitle("登录微信读书~"),this.modal.show()})),this.modal.webContents.session.webRequest.onSendHeaders({urls:["https://weread.qq.com/web/user?userVid=*"]},(t=>{const r=""===(n=t.requestHeaders.Cookie)?[]:n.split(";").map((e=>e.split("="))).map((e=>({name:decodeURIComponent(e[0].trim()),value:decodeURIComponent(e[1].trim())})));var n;""!==r.find((e=>"wr_name"==e.name)).value?(h.actions.setCookies(r),e.display(),this.modal.close()):this.modal.reload()}))}doLogin(){return e(this,void 0,void 0,(function*(){try{yield this.modal.loadURL("https://weread.qq.com/#login")}catch(e){console.log(e),new t.Notice("加载微信读书登录页面失败")}}))}onClose(){this.modal.close()}}class D{constructor(e){this.settingTab=e;const{remote:t}=r(5840),{BrowserWindow:n}=t;this.modal=new n({parent:t.getCurrentWindow(),width:960,height:540,show:!1}),this.modal.once("ready-to-show",(()=>{this.modal.setTitle("注销微信读书,右上角头像点击退出登录~"),this.modal.show()})),this.modal.webContents.session.webRequest.onCompleted({urls:["https://weread.qq.com/web/logout"]},(e=>{200==e.statusCode&&(console.log("weread logout success, clear cookies..."),h.actions.clearCookies(),this.settingTab.display(),this.modal.close())}))}doLogout(){return e(this,void 0,void 0,(function*(){yield this.modal.loadURL("https://weread.qq.com/web/shelf/#logout")}))}onClose(){this.modal.close()}}var O=r(6040),q=r.n(O);class B extends t.PluginSettingTab{constructor(e,t){super(e,t),this.plugin=t,this.renderer=new g}display(){const{containerEl:e}=this;e.empty(),e.createEl("h2",{text:"设置微信读书插件"});const r=l(h).isCookieValid;t.Platform.isDesktopApp?r?this.showLogout():this.showLogin():r?this.showMobileLogout():this.showMobileLogin(),this.notebookFolder(),this.notebookBlacklist(),this.noteCountLimit(),this.fileNameType(),this.subFolderType(),this.convertTagToggle(),this.saveArticleToggle(),this.showEmptyChapterTitleToggle(),this.dailyNotes(),l(h).dailyNotesToggle&&(this.dailyNotesFolder(),this.dailyNoteFormat(),this.insertAfter()),this.template(),t.Platform.isDesktopApp&&this.showDebugHelp()}showMobileLogin(){this.containerEl.createDiv().setText("微信读书未登录,请先在电脑端登录!")}showMobileLogout(){this.containerEl.createDiv().setText(`微信读书已登录,用户名:${l(h).user}`)}notebookFolder(){new t.Setting(this.containerEl).setName("笔记保存位置").setDesc("请选择Obsidian Vault中微信读书笔记存放的位置").addDropdown((t=>{const r=this.app.vault.adapter.files,n=q()(r,(e=>"folder"===e.type));return Object.keys(n).forEach((e=>{t.addOption(e,e)})),t.setValue(l(h).noteLocation).onChange((t=>e(this,void 0,void 0,(function*(){h.actions.setNoteLocationFolder(t)}))))}))}notebookBlacklist(){new t.Setting(this.containerEl).setName("书籍黑名单").setDesc("请填写不同步的bookId,bookId可在meta信息中找到,多本书使用逗号「,」隔开").addText((e=>{e.setValue(l(h).notesBlacklist).onChange((e=>{h.actions.setNoteBlacklist(e)}))}))}showLogin(){new t.Setting(this.containerEl).setName("登录微信读书").addButton((t=>t.setButtonText("登录").setCta().onClick((()=>e(this,void 0,void 0,(function*(){t.setDisabled(!0);const e=new L(this);yield e.doLogin(),this.display()}))))))}saveArticleToggle(){new t.Setting(this.containerEl).setName("同步公众号文章?").setDesc("开启此选项会将同步公众号文章到单独的笔记中").addToggle((e=>e.setValue(l(h).saveArticleToggle).onChange((e=>{h.actions.setSaveArticleToggle(e),this.display()}))))}convertTagToggle(){new t.Setting(this.containerEl).setName("将标签转换为双链?").setDesc("开启此选项会笔记中的 #标签 转换为:[[标签]]").addToggle((e=>e.setValue(l(h).convertTags).onChange((e=>{h.actions.setConvertTags(e),this.display()}))))}dailyNotes(){new t.Setting(this.containerEl).setName("是否保存笔记到 DailyNotes?").setHeading().addToggle((e=>e.setValue(l(h).dailyNotesToggle).onChange((e=>{console.debug("set daily notes toggle to",e),h.actions.setDailyNotesToggle(e),this.display()}))))}dailyNotesFolder(){new t.Setting(this.containerEl).setName("Daily Notes文件夹").setDesc("请选择Daily Notes文件夹").addDropdown((t=>{const r=this.app.vault.adapter.files,n=q()(r,(e=>"folder"===e.type));return Object.keys(n).forEach((e=>{t.addOption(e,e)})),t.setValue(l(h).dailyNotesLocation).onChange((t=>e(this,void 0,void 0,(function*(){h.actions.setDailyNotesFolder(t)}))))}))}dailyNoteFormat(){new t.Setting(this.containerEl).setName("Daily Notes Format").setDesc("请填写Daily Notes文件名格式,支持官方Daily Notes插件的格式,比如:YYYY-MM-DD \t\t\t\t 和 Periodic Notes的嵌套格式,比如 YYYY/[W]ww/YYYY-MM-DD").addText((e=>{e.setValue(l(h).dailyNotesFormat).onChange((e=>{h.actions.setDailyNotesFormat(e)}))}))}insertAfter(){new t.Setting(this.containerEl).setName("在特定区间之内插入").setDesc("请填写Daily Notes中希望读书笔记插入的区间,使用前记得修改Daily Notes模板🫡, 💥注意: 区间之内的内容会被覆盖,请不要在区间内修改内容,").addText((e=>{e.setValue(l(h).insertAfter).onChange((e=>{h.actions.setInsertAfter(e)}))})).addButton((e=>e.setButtonText("至").buttonEl.style.borderStyle="none")).addText((e=>{e.setValue(l(h).insertBefore).onChange((e=>{h.actions.setInsertBefore(e)}))}))}subFolderType(){new t.Setting(this.containerEl).setName("文件夹分类").setDesc("请选择按照哪个维度对笔记文件进行分类").addDropdown((t=>(t.addOptions({"-1":"无分类",title:"书名",category:"图书分类"}),t.setValue(l(h).subFolderType).onChange((t=>e(this,void 0,void 0,(function*(){h.actions.setSubFolderType(t)})))))))}fileNameType(){new t.Setting(this.containerEl).setName("文件名模板").setDesc("你选择你喜欢的文件名模板,重复的书会在文件名后加上ID").addDropdown((t=>(t.addOptions({BOOK_ID:"bookId",BOOK_NAME:"书名",BOOK_NAME_AUTHOR:"书名-作者名",BOOK_NAME_BOOKID:"书名-bookId"}),t.setValue(l(h).fileNameType).onChange((t=>e(this,void 0,void 0,(function*(){h.actions.setFileNameType(t)})))))))}showLogout(){document.createRange().createContextualFragment;const r=document.createRange().createContextualFragment("1. 登录:点击登录按钮,在弹出页面【扫码登录】。\n 2. 注销:点击注销,在弹出书架页面右上角点击头像,下拉菜单选择【退出登录】");new t.Setting(this.containerEl).setName(`微信读书已登录,用户名: ${l(h).user}`).setDesc(r).addButton((t=>t.setButtonText("注销").setCta().onClick((()=>e(this,void 0,void 0,(function*(){t.setDisabled(!0);const e=new D(this);yield e.doLogout(),this.display()})))))).addButton((r=>r.setButtonText("拷贝Cookie").setCta().onClick((()=>e(this,void 0,void 0,(function*(){const e=l(h).cookies.map((e=>{const t=e.name,r=e.value;return t+"="+encodeURIComponent(r)})).join(";");navigator.clipboard.writeText(e).then((function(){new t.Notice("拷贝Cookie到剪切板成功!")}),(function(e){new t.Notice("拷贝Cookie到剪切板失败!"),console.error("拷贝微信读书Cookie失败",e)}))}))))))}template(){const r=document.createRange().createContextualFragment('模板使用说明\n

\n

可用变量

\n

\n元数据变量(metaData)\n
    \n
  • {{title}} - 书名
  • \n
  • {{author}} - 作者
  • \n
  • {{cover}} - 封面
  • \n
  • {{intro}} - 书籍简介
  • \n
  • {{bookId}} - 微信图书ID
  • \n
  • {{publishTime}} - 出版时间
  • \n
  • {{noteCount}} - 划线数量
  • \n
  • {{reviewCount}} - 笔记数量
  • \n
  • {{isbn}} - ISBN
  • \n
  • {{category}} - 分类
  • \n
  • {{publisher}} - 出版社
  • \n
  • {{finish}} - 是否读完(还未支持)
  • \n
\n划线变量(chapterHighlights)\n
    \n
  • {{chapterUid}} - 章节ID
  • \n
  • {{chapterTitle}} - 章节标题
  • \n
  • {{createTime}} - 创建时间
  • \n
  • {{range}} - 划线范围
  • \n
  • {{markText}} - 划线文本
  • \n
\n笔记笔记(bookReview)\n
    \n
  • {{reviewId}} - reviewId
  • \n
  • {{chapterUid}} - 章节ID
  • \n
  • {{chapterTitle}} - 章节标题
  • \n
  • {{createTime}} - 创建时间
  • \n
  • {{abstract}} - 摘录内容
  • \n
  • {{content}} - 笔记内容
  • \n
  • {{mdContent}} - markdown笔记格式
  • \n
  • {{type}} - 类型
  • \n
  • {{range}} - 范围
  • \n
\n');new t.Setting(this.containerEl).setName("笔记模板").setDesc(r).addTextArea((t=>(t.inputEl.style.width="100%",t.inputEl.style.height="540px",t.inputEl.style.fontSize="0.8em",t.setValue(l(h).template).onChange((r=>e(this,void 0,void 0,(function*(){const e=this.renderer.validate(r);e&&h.actions.setTemplate(r),t.inputEl.style.border=e?"":"2px solid red"})))),t)))}noteCountLimit(){new t.Setting(this.containerEl).setName("笔记划线数量最小值").setDesc("划线数量小于该值的笔记将不会被同步").addDropdown((t=>{t.addOptions({"-1":"无限制",3:"3条",5:"5条",10:"10条",15:"15条",30:"30条"}).setValue(l(h).noteCountLimit.toString()).onChange((t=>e(this,void 0,void 0,(function*(){console.log("[weread plugin] new note count limit",t),h.actions.setNoteCountLimit(+t)}))))}))}showDebugHelp(){const e=this.containerEl.createDiv();e.setAttr("align","center"),e.setText("查看控制台日志: 使用以下快捷键快速打开控制台,查看本插件以及其他插件的运行日志");const r=this.containerEl.createDiv();r.setAttr("align","center"),r.style.margin="10px",!0===t.Platform.isMacOS?r.createEl("kbd",{text:"CMD (⌘) + OPTION (⌥) + I"}):r.createEl("kbd",{text:"CTRL + SHIFT + I"})}showEmptyChapterTitleToggle(){new t.Setting(this.containerEl).setName("展示空白章节标题?").setDesc("如果启用,则章节内没有划线也将展示章节标题").setHeading().addToggle((e=>e.setValue(l(h).showEmptyChapterTitleToggle).onChange((e=>{console.debug("set empty chapter title toggle to",e),h.actions.setEmptyChapterTitleToggle(e),this.display()}))))}}const R="weread-reading-view";class P extends t.ItemView{constructor(e){super(e)}getViewType(){return R}getDisplayText(){return"微信读书"}getIcon(){return"book-open"}onClose(){return e(this,void 0,void 0,(function*(){}))}onOpen(){return e(this,void 0,void 0,(function*(){this.webviewEl=this.contentEl.doc.createElement("webview"),this.webviewEl.setAttribute("allowpopups",""),this.webviewEl.addClass("weread-frame"),this.webviewEl.setAttribute("src","https://r.qq.com"),this.leaf.setViewState({type:R,active:!0}),this.contentEl.appendChild(this.webviewEl),this.contentEl.addClass("weread-view-content")}))}}var j=r(3379),M=r.n(j),F=r(7795),I=r.n(F),U=r(569),H=r.n(U),V=r(3565),z=r.n(V),G=r(9216),K=r.n(G),$=r(4589),W=r.n($),Y=r(5902),J={};J.styleTagTransform=W(),J.setAttributes=z(),J.insert=H().bind(null,"head"),J.domAPI=I(),J.insertStyleElement=K(),M()(Y.Z,J),Y.Z&&Y.Z.locals&&Y.Z.locals;class X extends t.Plugin{constructor(){super(...arguments),this.syncing=!1}onload(){return e(this,void 0,void 0,(function*(){console.log("load weread plugin"),h.initialise(this);const e=new k(this.app.vault,this.app.metadataCache),r=new N;this.syncNotebooks=new S(e,r),this.addRibbonIcon("book-open","同步微信读书笔记",(e=>{0===e.button&&this.startSync()})).addEventListener("contextmenu",(e=>{e.preventDefault(),e.stopPropagation();const r=e=>{e.preventDefault()};window.addEventListener("mousedown",r);const n=new t.Menu;n.addItem((e=>e.setTitle("同步微信读书笔记").setIcon("refresh-ccw").onClick((()=>{this.startSync()})))),n.addItem((e=>e.setTitle("强制同步微信读书笔记").setIcon("refresh-ccw-dot").onClick((()=>{this.startSync(!0)})))),n.addItem((e=>e.setTitle("在新标签页打开微信读书").setIcon("book-open-text").onClick((()=>{this.activateReadingView("TAB")})))),n.addItem((e=>e.setTitle("在窗口打开微信读书").setIcon("app-window").onClick((()=>{this.activateReadingView("WINDOW")})))),n.showAtMouseEvent(e),n.onHide((()=>{window.removeEventListener("mousedown",r)}))})),this.addCommand({id:"sync-weread-notes-command",name:"同步微信读书笔记",callback:()=>{this.startSync()}}),this.addCommand({id:"Force-sync-weread-notes-command",name:"强制同步微信读书笔记",callback:()=>{this.startSync(!0)}}),this.registerView(R,(e=>new P(e))),this.addCommand({id:"open-weread-reading-view",name:"在新标签页打开微信读书",callback:()=>{this.activateReadingView("TAB")}}),this.addCommand({id:"open-weread-reading-view",name:"在新窗口打开微信读书",callback:()=>{this.activateReadingView("WINDOW")}}),this.registerEvent(this.app.workspace.on("editor-menu",((t,r,n)=>{const i=e.getWereadNoteAnnotationFile(n.file);null!=i&&(t.addSeparator(),t.addItem((e=>e.setIcon("refresh-ccw").setTitle("同步当前读书笔记").onClick((()=>{this.syncNotebooks.syncNotebook(i)})))))}))),this.addSettingTab(new B(this.app,this))}))}startSync(r=!1){return e(this,void 0,void 0,(function*(){if(this.syncing)new t.Notice("正在同步微信读书笔记,请勿重复点击");else{this.syncing=!0;try{yield this.syncNotebooks.syncNotebooks(r,window.moment().format("YYYY-MM-DD")),console.log("syncing Weread note finish")}catch(e){t.Platform.isDesktopApp?new t.Notice("同步微信读书笔记异常,请打开控制台查看详情"):new t.Notice("同步微信读书笔记异常,请使用电脑端打开控制台查看详情"+e),console.error("同步微信读书笔记异常",e)}finally{this.syncing=!1}}}))}activateReadingView(t){return e(this,void 0,void 0,(function*(){const{workspace:e}=this.app;let r=null;const n=e.getLeavesOfType(R);n.length>0?r=n[0]:("TAB"===t?r=e.getLeaf("split","vertical"):"WINDOW"===t&&(r=e.openPopoutLeaf()),yield r.setViewState({type:R,active:!0})),e.revealLeaf(r)}))}onunload(){console.log("unloading weread plugin",(new Date).toLocaleString())}}})();var i=exports;for(var o in n)i[o]=n[o];n.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})(); \ No newline at end of file +(()=>{var e={1073:e=>{e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},452:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],p=[],f=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var h=n^n<<1^n<<2^n<<3^n<<4;h=h>>>8^255&h^99,i[r]=h,o[h]=r;var g=e[r],m=e[g],v=e[m],b=257*e[h]^16843008*h;a[r]=b<<24|b>>>8,s[r]=b<<16|b>>>16,c[r]=b<<8|b>>>24,l[r]=b,b=16843009*v^65537*m^257*g^16843008*r,u[h]=b<<24|b>>>8,p[h]=b<<16|b>>>16,f[h]=b<<8|b>>>24,d[h]=b,r?(r=g^e[e[e[v^g]]],n^=e[e[n]]):r=n=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a6&&a%r==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=h[a/r|0]<<24),o[a]=o[a-r]^l);for(var s=this._invKeySchedule=[],c=0;c>>24]]^p[i[l>>>16&255]]^f[i[l>>>8&255]]^d[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,p,f,d,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],p=e[t+2]^r[2],f=e[t+3]^r[3],d=4,h=1;h>>24]^i[u>>>16&255]^o[p>>>8&255]^a[255&f]^r[d++],m=n[u>>>24]^i[p>>>16&255]^o[f>>>8&255]^a[255&l]^r[d++],v=n[p>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[d++],b=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&p]^r[d++];l=g,u=m,p=v,f=b}g=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[p>>>8&255]<<8|s[255&f])^r[d++],m=(s[u>>>24]<<24|s[p>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[d++],v=(s[p>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[d++],b=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&p])^r[d++],e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=b},keySize:8});e.AES=t._createHelper(g)}(),n.AES)},7407:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib.BlockCipher,r=e.algo;const i=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function c(e,t){let r=t>>24&255,n=t>>16&255,i=t>>8&255,o=255&t,a=e.sbox[0][r]+e.sbox[1][n];return a^=e.sbox[2][i],a+=e.sbox[3][o],a}function l(e,t,r){let n,o=t,a=r;for(let t=0;t=r&&(n=0);let s=0,c=0,u=0;for(let t=0;t1;--t)o^=e.pbox[t],a=c(e,o)^a,n=o,o=a,a=n;return n=o,o=a,a=n,a^=e.pbox[1],o^=e.pbox[0],{left:o,right:a}}(s,e[t],e[t+1]);e[t]=r.left,e[t+1]=r.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=t._createHelper(u)}(),n.Blowfish)},5109:function(e,t,r){var n,i,o,a,s,c,l,u,p,f,d,h,g,m,v,b,y,w,_;e.exports=(n=r(8249),r(888),void(n.lib.Cipher||(i=n,o=i.lib,a=o.Base,s=o.WordArray,c=o.BufferedBlockAlgorithm,l=i.enc,l.Utf8,u=l.Base64,p=i.algo.EvpKDF,f=o.Cipher=c.extend({cfg:a.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,r){this.cfg=this.cfg.extend(r),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?_:y}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()}),o.StreamCipher=f.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),d=i.mode={},h=o.BlockCipherMode=a.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}}),g=d.CBC=function(){var e=h.extend();function t(e,t,r){var n,i=this._iv;i?(n=i,this._iv=void 0):n=this._prevBlock;for(var o=0;o>>2];e.sigBytes-=t}},o.BlockCipher=f.extend({cfg:f.cfg.extend({mode:g,padding:m}),reset:function(){var e;f.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.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}),v=o.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),b=(i.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?s.create([1398893684,1701076831]).concat(r).concat(t):t).toString(u)},parse:function(e){var t,r=u.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=s.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),v.create({ciphertext:r,salt:t})}},y=o.SerializableCipher=a.extend({cfg:a.extend({format:b}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return v.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=(i.kdf={}).OpenSSL={execute:function(e,t,r,n,i){if(n||(n=s.random(8)),i)o=p.create({keySize:t+r,hasher:i}).compute(e,n);else var o=p.create({keySize:t+r}).compute(e,n);var a=s.create(o.words.slice(t),4*r);return o.sigBytes=4*t,v.create({key:o,iv:a,salt:n})}},_=o.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:w}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=y.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=i.iv,y.decrypt.call(this,e,t,i.key,n)}}))))},8249:function(e,t,r){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&"undefined"!=typeof global&&global.crypto&&(n=global.crypto),!n)try{n=r(6113)}catch(e){}var i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),a={},s=a.lib={},c=s.Base={extend:function(e){var t=o(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)}},l=s.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||p).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(r,t/2)}},f=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(r,t)}},d=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*c,o);if(c){for(var p=0;p>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i>>6-a%4*2;n[i>>>2]|=s<<24-i%4*8,i++}return o.create(n,i)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},3786:function(e,t,r){var n,i,o;e.exports=(n=r(8249),o=(i=n).lib.WordArray,i.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,c=0;c<4&&a+.75*c>>6*(3-c)&63));var l=i.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,n=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a>>6-a%4*2;n[i>>>2]|=s<<24-i%4*8,i++}return o.create(n,i)}(e,r,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},n.enc.Base64url)},298:function(e,t,r){var n;e.exports=(n=r(8249),function(){var e=n,t=e.lib.WordArray,r=e.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var r=e.length,n=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(n,2*r)}}}(),n.enc.Utf16)},888:function(e,t,r){var n,i,o,a,s,c,l,u;e.exports=(u=r(8249),r(2783),r(9824),o=(i=(n=u).lib).Base,a=i.WordArray,c=(s=n.algo).MD5,l=s.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,i=n.hasher.create(),o=a.create(),s=o.words,c=n.keySize,l=n.iterations;s.lengthn&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,c=a.words,l=0;l>>2]|=e[i]<<24-i%4*8;t.call(this,n,r)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)},8214:function(e,t,r){var n;e.exports=(n=r(8249),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],d=e[t+2],h=e[t+3],g=e[t+4],m=e[t+5],v=e[t+6],b=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],k=e[t+11],x=e[t+12],E=e[t+13],T=e[t+14],A=e[t+15],S=o[0],C=o[1],N=o[2],L=o[3];S=l(S,C,N,L,a,7,s[0]),L=l(L,S,C,N,c,12,s[1]),N=l(N,L,S,C,d,17,s[2]),C=l(C,N,L,S,h,22,s[3]),S=l(S,C,N,L,g,7,s[4]),L=l(L,S,C,N,m,12,s[5]),N=l(N,L,S,C,v,17,s[6]),C=l(C,N,L,S,b,22,s[7]),S=l(S,C,N,L,y,7,s[8]),L=l(L,S,C,N,w,12,s[9]),N=l(N,L,S,C,_,17,s[10]),C=l(C,N,L,S,k,22,s[11]),S=l(S,C,N,L,x,7,s[12]),L=l(L,S,C,N,E,12,s[13]),N=l(N,L,S,C,T,17,s[14]),S=u(S,C=l(C,N,L,S,A,22,s[15]),N,L,c,5,s[16]),L=u(L,S,C,N,v,9,s[17]),N=u(N,L,S,C,k,14,s[18]),C=u(C,N,L,S,a,20,s[19]),S=u(S,C,N,L,m,5,s[20]),L=u(L,S,C,N,_,9,s[21]),N=u(N,L,S,C,A,14,s[22]),C=u(C,N,L,S,g,20,s[23]),S=u(S,C,N,L,w,5,s[24]),L=u(L,S,C,N,T,9,s[25]),N=u(N,L,S,C,h,14,s[26]),C=u(C,N,L,S,y,20,s[27]),S=u(S,C,N,L,E,5,s[28]),L=u(L,S,C,N,d,9,s[29]),N=u(N,L,S,C,b,14,s[30]),S=p(S,C=u(C,N,L,S,x,20,s[31]),N,L,m,4,s[32]),L=p(L,S,C,N,y,11,s[33]),N=p(N,L,S,C,k,16,s[34]),C=p(C,N,L,S,T,23,s[35]),S=p(S,C,N,L,c,4,s[36]),L=p(L,S,C,N,g,11,s[37]),N=p(N,L,S,C,b,16,s[38]),C=p(C,N,L,S,_,23,s[39]),S=p(S,C,N,L,E,4,s[40]),L=p(L,S,C,N,a,11,s[41]),N=p(N,L,S,C,h,16,s[42]),C=p(C,N,L,S,v,23,s[43]),S=p(S,C,N,L,w,4,s[44]),L=p(L,S,C,N,x,11,s[45]),N=p(N,L,S,C,A,16,s[46]),S=f(S,C=p(C,N,L,S,d,23,s[47]),N,L,a,6,s[48]),L=f(L,S,C,N,b,10,s[49]),N=f(N,L,S,C,T,15,s[50]),C=f(C,N,L,S,m,21,s[51]),S=f(S,C,N,L,x,6,s[52]),L=f(L,S,C,N,h,10,s[53]),N=f(N,L,S,C,_,15,s[54]),C=f(C,N,L,S,c,21,s[55]),S=f(S,C,N,L,y,6,s[56]),L=f(L,S,C,N,A,10,s[57]),N=f(N,L,S,C,v,15,s[58]),C=f(C,N,L,S,E,21,s[59]),S=f(S,C,N,L,g,6,s[60]),L=f(L,S,C,N,k,10,s[61]),N=f(N,L,S,C,d,15,s[62]),C=f(C,N,L,S,w,21,s[63]),o[0]=o[0]+S|0,o[1]=o[1]+C|0,o[2]=o[2]+N|0,o[3]=o[3]+L|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<>>32-o)+t}function u(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<>>32-o)+t}function p(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),n.MD5)},8568:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.mode.CFB=function(){var e=n.lib.BlockCipherMode.extend();function t(e,t,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var a=0;a>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var c=0;c>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)},2807:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.Iso10126={pad:function(e,t){var r=4*t,i=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)},1077:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},6991:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},6475:function(e,t,r){var n;e.exports=(n=r(8249),r(5109),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},n.pad.ZeroPadding)},2112:function(e,t,r){var n,i,o,a,s,c,l,u,p;e.exports=(p=r(8249),r(2153),r(9824),o=(i=(n=p).lib).Base,a=i.WordArray,c=(s=n.algo).SHA256,l=s.HMAC,u=s.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=l.create(r.hasher,e),i=a.create(),o=a.create([1]),s=i.words,c=o.words,u=r.keySize,p=r.iterations;s.length>>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],n=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 i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),p=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=p,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=p,n[6]^=u,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),n.RabbitLegacy)},4454:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=[],o=[],a=[],s=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var 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],i=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,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),p=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=p,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=p,i[6]^=u,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),n.Rabbit)},1857:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}e.RC4=t._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),n.RC4)},706:function(e,t,r){var n;e.exports=(n=r(8249),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=i.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=i.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]),l=i.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]),u=i.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]),p=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,d,w,_,k,x,E,T,A,S,C=this._hash.words,N=p.words,L=f.words,D=s.words,O=c.words,q=l.words,B=u.words;for(k=o=C[0],x=a=C[1],E=d=C[2],T=w=C[3],A=_=C[4],r=0;r<80;r+=1)S=o+e[t+D[r]]|0,S+=r<16?h(a,d,w)+N[0]:r<32?g(a,d,w)+N[1]:r<48?m(a,d,w)+N[2]:r<64?v(a,d,w)+N[3]:b(a,d,w)+N[4],S=(S=y(S|=0,q[r]))+_|0,o=_,_=w,w=y(d,10),d=a,a=S,S=k+e[t+O[r]]|0,S+=r<16?b(x,E,T)+L[0]:r<32?v(x,E,T)+L[1]:r<48?m(x,E,T)+L[2]:r<64?g(x,E,T)+L[3]:h(x,E,T)+L[4],S=(S=y(S|=0,B[r]))+A|0,k=A,A=T,T=y(E,10),E=x,x=S;S=C[1]+d+T|0,C[1]=C[2]+w+A|0,C[2]=C[3]+_+k|0,C[3]=C[4]+o+x|0,C[4]=C[0]+a+E|0,C[0]=S},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,r){return e^t^r}function g(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function v(e,t,r){return e&r|t&~r}function b(e,t,r){return e^(t|~r)}function y(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(d),t.HmacRIPEMD160=o._createHmacHelper(d)}(Math),n.RIPEMD160)},2783:function(e,t,r){var n,i,o,a,s,c,l,u;e.exports=(i=(n=u=r(8249)).lib,o=i.WordArray,a=i.Hasher,s=n.algo,c=[],l=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=0;l<80;l++){if(l<16)c[l]=0|e[t+l];else{var u=c[l-3]^c[l-8]^c[l-14]^c[l-16];c[l]=u<<1|u>>>31}var p=(n<<5|n>>>27)+s+c[l];p+=l<20?1518500249+(i&o|~i&a):l<40?1859775393+(i^o^a):l<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=p}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=a._createHelper(l),n.HmacSHA1=a._createHmacHelper(l),u.SHA1)},7792:function(e,t,r){var n,i,o,a,s,c;e.exports=(c=r(8249),r(2153),i=(n=c).lib.WordArray,o=n.algo,a=o.SHA256,s=o.SHA224=a.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=a._createHelper(s),n.HmacSHA224=a._createHmacHelper(s),c.SHA224)},2153:function(e,t,r){var n;e.exports=(n=r(8249),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),c[i]=r(e.pow(n,1/3)),i++),n++}();var l=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],p=r[6],f=r[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var h=l[d-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,m=l[d-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[d]=g+l[d-7]+v+l[d-16]}var b=n&i^n&o^i&o,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&p)+c[d]+l[d];f=p,p=u,u=s,s=a+w|0,a=o,o=i,i=n,n=w+(y+b)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+u|0,r[6]=r[6]+p|0,r[7]=r[7]+f|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),n.SHA256)},3327:function(e,t,r){var n;e.exports=(n=r(8249),r(4938),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,c=[],l=[],u=[];!function(){for(var e=1,t=0,r=0;r<24;r++){c[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,p=0,f=0;f<7;f++){if(1&i){var d=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(C=r[i]).high^=a,C.low^=o}for(var s=0;s<24;s++){for(var f=0;f<5;f++){for(var d=0,h=0,g=0;g<5;g++)d^=(C=r[f+5*g]).high,h^=C.low;var m=p[f];m.high=d,m.low=h}for(f=0;f<5;f++){var v=p[(f+4)%5],b=p[(f+1)%5],y=b.high,w=b.low;for(d=v.high^(y<<1|w>>>31),h=v.low^(w<<1|y>>>31),g=0;g<5;g++)(C=r[f+5*g]).high^=d,C.low^=h}for(var _=1;_<25;_++){var k=(C=r[_]).high,x=C.low,E=c[_];E<32?(d=k<>>32-E,h=x<>>32-E):(d=x<>>64-E,h=k<>>64-E);var T=p[l[_]];T.high=d,T.low=h}var A=p[0],S=r[0];for(A.high=S.high,A.low=S.low,f=0;f<5;f++)for(g=0;g<5;g++){var C=r[_=f+5*g],N=p[_],L=p[(f+1)%5+5*g],D=p[(f+2)%5+5*g];C.high=N.high^~L.high&D.high,C.low=N.low^~L.low&D.low}C=r[0];var O=u[s];C.high^=O.high,C.low^=O.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,l=[],u=0;u>>24)|4278255360&(f<<24|f>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(f)}return new i.init(l,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(f),t.HmacSHA3=o._createHmacHelper(f)}(Math),n.SHA3)},7460:function(e,t,r){var n,i,o,a,s,c,l,u;e.exports=(u=r(8249),r(4938),r(34),i=(n=u).x64,o=i.Word,a=i.WordArray,s=n.algo,c=s.SHA512,l=s.SHA384=c.extend({_doReset:function(){this._hash=new a.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=c._createHelper(l),n.HmacSHA384=c._createHmacHelper(l),u.SHA384)},34:function(e,t,r){var n;e.exports=(n=r(8249),r(4938),function(){var e=n,t=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=s()}();var u=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],p=r[6],f=r[7],d=n.high,h=n.low,g=i.high,m=i.low,v=o.high,b=o.low,y=a.high,w=a.low,_=s.high,k=s.low,x=u.high,E=u.low,T=p.high,A=p.low,S=f.high,C=f.low,N=d,L=h,D=g,O=m,q=v,B=b,R=y,P=w,j=_,M=k,I=x,F=E,U=T,H=A,V=S,z=C,G=0;G<80;G++){var K,$,W=l[G];if(G<16)$=W.high=0|e[t+2*G],K=W.low=0|e[t+2*G+1];else{var Y=l[G-15],J=Y.high,X=Y.low,Z=(J>>>1|X<<31)^(J>>>8|X<<24)^J>>>7,Q=(X>>>1|J<<31)^(X>>>8|J<<24)^(X>>>7|J<<25),ee=l[G-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=l[G-7],ae=oe.high,se=oe.low,ce=l[G-16],le=ce.high,ue=ce.low;$=($=($=Z+ae+((K=Q+se)>>>0>>0?1:0))+ne+((K+=ie)>>>0>>0?1:0))+le+((K+=ue)>>>0>>0?1:0),W.high=$,W.low=K}var pe,fe=j&I^~j&U,de=M&F^~M&H,he=N&D^N&q^D&q,ge=L&O^L&B^O&B,me=(N>>>28|L<<4)^(N<<30|L>>>2)^(N<<25|L>>>7),ve=(L>>>28|N<<4)^(L<<30|N>>>2)^(L<<25|N>>>7),be=(j>>>14|M<<18)^(j>>>18|M<<14)^(j<<23|M>>>9),ye=(M>>>14|j<<18)^(M>>>18|j<<14)^(M<<23|j>>>9),we=c[G],_e=we.high,ke=we.low,xe=V+be+((pe=z+ye)>>>0>>0?1:0),Ee=ve+ge;V=U,z=H,U=I,H=F,I=j,F=M,j=R+(xe=(xe=(xe=xe+fe+((pe+=de)>>>0>>0?1:0))+_e+((pe+=ke)>>>0>>0?1:0))+$+((pe+=K)>>>0>>0?1:0))+((M=P+pe|0)>>>0

>>0?1:0)|0,R=q,P=B,q=D,B=O,D=N,O=L,N=xe+(me+he+(Ee>>>0>>0?1:0))+((L=pe+Ee|0)>>>0>>0?1:0)|0}h=n.low=h+L,n.high=d+N+(h>>>0>>0?1:0),m=i.low=m+O,i.high=g+D+(m>>>0>>0?1:0),b=o.low=b+B,o.high=v+q+(b>>>0>>0?1:0),w=a.low=w+P,a.high=y+R+(w>>>0

>>0?1:0),k=s.low=k+M,s.high=_+j+(k>>>0>>0?1:0),E=u.low=E+F,u.high=x+I+(E>>>0>>0?1:0),A=p.low=A+H,p.high=T+U+(A>>>0>>0?1:0),C=f.low=C+z,f.high=S+V+(C>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,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(u),e.HmacSHA512=t._createHmacHelper(u)}(),n.SHA512)},4253:function(e,t,r){var n;e.exports=(n=r(8249),r(8269),r(8214),r(888),r(5109),function(){var e=n,t=e.lib,r=t.WordArray,i=t.BlockCipher,o=e.algo,a=[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],s=[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],l=[{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}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var l=i[o]=[],u=c[o];for(r=0;r<24;r++)l[r/6|0]|=t[(s[r]-1+u)%28]<<31-r%6,l[4+(r/6|0)]|=t[28+(s[r+24]-1+u)%28]<<31-r%6;for(l[0]=l[0]<<1|l[0]>>>31,r=1;r<7;r++)l[r]=l[r]>>>4*(r-1)+3;l[7]=l[7]<<5|l[7]>>>27}var p=this._invSubKeys=[];for(r=0;r<16;r++)p[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,c=0;c<8;c++)s|=l[c][((a^i[c])&u[c])>>>0];this._lBlock=a,this._rBlock=o^s}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=p.createEncryptor(r.create(t)),this._des2=p.createEncryptor(r.create(n)),this._des3=p.createEncryptor(r.create(i))},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=i._createHelper(h)}(),n.TripleDES)},4938:function(e,t,r){var n,i,o,a,s,c;e.exports=(n=r(8249),o=(i=n).lib,a=o.Base,s=o.WordArray,(c=i.x64={}).Word=a.extend({init:function(e,t){this.high=e,this.low=t}}),c.WordArray=a.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,r=[],n=0;n{"use strict";r.d(t,{Z:()=>s});var n=r(8081),i=r.n(n),o=r(3645),a=r.n(o)()(i());a.push([e.id,".weread-view-content {\n\tpadding: 0 !important;\n\toverflow: hidden !important;\n}\n\n.weread-frame {\n\twidth: 100%;\n\theight: 100%;\n\tborder: none;\n\tbackground-clip: content-box;\n}",""]);const s=a},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},996:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeRules=void 0;var n=r(1073),i=/[-[\]{}()*+?.,\\^$|#\s]/g;function o(e){return e.replace(i,"\\$&")}var a=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function s(e,t){return"boolean"==typeof e.ignoreCase?e.ignoreCase:"quirks"===e.ignoreCase?!!t.quirksMode:!t.xmlMode&&a.has(e.name)}t.attributeRules={equals:function(e,t,r){var n=r.adapter,i=t.name,o=t.value;return s(t,r)?(o=o.toLowerCase(),function(t){var r=n.getAttributeValue(t,i);return null!=r&&r.length===o.length&&r.toLowerCase()===o&&e(t)}):function(t){return n.getAttributeValue(t,i)===o&&e(t)}},hyphen:function(e,t,r){var n=r.adapter,i=t.name,o=t.value,a=o.length;return s(t,r)?(o=o.toLowerCase(),function(t){var r=n.getAttributeValue(t,i);return null!=r&&(r.length===a||"-"===r.charAt(a))&&r.substr(0,a).toLowerCase()===o&&e(t)}):function(t){var r=n.getAttributeValue(t,i);return null!=r&&(r.length===a||"-"===r.charAt(a))&&r.substr(0,a)===o&&e(t)}},element:function(e,t,r){var i=r.adapter,a=t.name,c=t.value;if(/\s/.test(c))return n.falseFunc;var l=new RegExp("(?:^|\\s)".concat(o(c),"(?:$|\\s)"),s(t,r)?"i":"");return function(t){var r=i.getAttributeValue(t,a);return null!=r&&r.length>=c.length&&l.test(r)&&e(t)}},exists:function(e,t,r){var n=t.name,i=r.adapter;return function(t){return i.hasAttrib(t,n)&&e(t)}},start:function(e,t,r){var i=r.adapter,o=t.name,a=t.value,c=a.length;return 0===c?n.falseFunc:s(t,r)?(a=a.toLowerCase(),function(t){var r=i.getAttributeValue(t,o);return null!=r&&r.length>=c&&r.substr(0,c).toLowerCase()===a&&e(t)}):function(t){var r;return!!(null===(r=i.getAttributeValue(t,o))||void 0===r?void 0:r.startsWith(a))&&e(t)}},end:function(e,t,r){var i=r.adapter,o=t.name,a=t.value,c=-a.length;return 0===c?n.falseFunc:s(t,r)?(a=a.toLowerCase(),function(t){var r;return(null===(r=i.getAttributeValue(t,o))||void 0===r?void 0:r.substr(c).toLowerCase())===a&&e(t)}):function(t){var r;return!!(null===(r=i.getAttributeValue(t,o))||void 0===r?void 0:r.endsWith(a))&&e(t)}},any:function(e,t,r){var i=r.adapter,a=t.name,c=t.value;if(""===c)return n.falseFunc;if(s(t,r)){var l=new RegExp(o(c),"i");return function(t){var r=i.getAttributeValue(t,a);return null!=r&&r.length>=c.length&&l.test(r)&&e(t)}}return function(t){var r;return!!(null===(r=i.getAttributeValue(t,a))||void 0===r?void 0:r.includes(c))&&e(t)}},not:function(e,t,r){var n=r.adapter,i=t.name,o=t.value;return""===o?function(t){return!!n.getAttributeValue(t,i)&&e(t)}:s(t,r)?(o=o.toLowerCase(),function(t){var r=n.getAttributeValue(t,i);return(null==r||r.length!==o.length||r.toLowerCase()!==o)&&e(t)}):function(t){return n.getAttributeValue(t,i)!==o&&e(t)}}}},8866:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.compileToken=t.compileUnsafe=t.compile=void 0;var i=r(7763),o=r(1073),a=n(r(7353)),s=r(7177),c=r(3621),l=r(1768);function u(e,t,r){return g("string"==typeof e?(0,i.parse)(e):e,t,r)}function p(e){return"pseudo"===e.type&&("scope"===e.name||Array.isArray(e.data)&&e.data.some((function(e){return e.some(p)})))}t.compile=function(e,t,r){var n=u(e,t,r);return(0,l.ensureIsTag)(n,t.adapter)},t.compileUnsafe=u;var f={type:i.SelectorType.Descendant},d={type:"_flexibleDescendant"},h={type:i.SelectorType.Pseudo,name:"scope",data:null};function g(e,t,r){var n;(e=e.filter((function(e){return e.length>0}))).forEach(a.default),r=null!==(n=t.context)&&void 0!==n?n:r;var i=Array.isArray(r),u=r&&(Array.isArray(r)?r:[r]);!function(e,t,r){for(var n=t.adapter,i=!!(null==r?void 0:r.every((function(e){var t=n.isTag(e)&&n.getParent(e);return e===l.PLACEHOLDER_ELEMENT||t&&n.isTag(t)}))),o=0,a=e;o0&&(0,s.isTraversal)(c[0])&&"descendant"!==c[0].type);else{if(!i||c.some(p))continue;c.unshift(f)}c.unshift(h)}}(e,t,u);var v=!1,b=e.map((function(e){if(e.length>=2){var r=e[0],n=e[1];"pseudo"!==r.type||"scope"!==r.name||(i&&"descendant"===n.type?e[1]=d:"adjacent"!==n.type&&"sibling"!==n.type||(v=!0))}return function(e,t,r){var n;return e.reduce((function(e,n){return e===o.falseFunc?o.falseFunc:(0,c.compileGeneralSelector)(e,n,t,r,g)}),null!==(n=t.rootFunc)&&void 0!==n?n:o.trueFunc)}(e,t,u)})).reduce(m,o.falseFunc);return b.shouldTestNextSiblings=v,b}function m(e,t){return t===o.falseFunc||e===o.trueFunc?e:e===o.falseFunc||t===o.trueFunc?t:function(r){return e(r)||t(r)}}t.compileToken=g},3621:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileGeneralSelector=void 0;var n=r(996),i=r(8677),o=r(7763);t.compileGeneralSelector=function(e,t,r,a,s){var c=r.adapter,l=r.equals;switch(t.type){case o.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case o.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case o.SelectorType.Attribute:if(null!=t.namespace)throw new Error("Namespaced attributes are not yet supported by css-select");return r.xmlMode&&!r.lowerCaseAttributeNames||(t.name=t.name.toLowerCase()),n.attributeRules[t.action](e,t,r);case o.SelectorType.Pseudo:return(0,i.compilePseudoSelector)(e,t,r,a,s);case o.SelectorType.Tag:if(null!=t.namespace)throw new Error("Namespaced tag names are not yet supported by css-select");var u=t.name;return r.xmlMode&&!r.lowerCaseTags||(u=u.toLowerCase()),function(t){return c.getName(t)===u&&e(t)};case o.SelectorType.Descendant:if(!1===r.cacheResults||"undefined"==typeof WeakSet)return function(t){for(var r=t;r=c.getParent(r);)if(c.isTag(r)&&e(r))return!0;return!1};var p=new WeakSet;return function(t){for(var r=t;r=c.getParent(r);)if(!p.has(r)){if(c.isTag(r)&&e(r))return!0;p.add(r)}return!1};case"_flexibleDescendant":return function(t){var r=t;do{if(c.isTag(r)&&e(r))return!0}while(r=c.getParent(r));return!1};case o.SelectorType.Parent:return function(t){return c.getChildren(t).some((function(t){return c.isTag(t)&&e(t)}))};case o.SelectorType.Child:return function(t){var r=c.getParent(t);return null!=r&&c.isTag(r)&&e(r)};case o.SelectorType.Sibling:return function(t){for(var r=c.getSiblings(t),n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTraversal=t.procedure=void 0,t.procedure={universal:50,tag:30,attribute:1,pseudo:0,"pseudo-element":0,"column-combinator":-1,descendant:-1,child:-1,parent:-1,sibling:-1,adjacent:-1,_flexibleDescendant:-1},t.isTraversal=function(e){return t.procedure[e.type]<0}},2968:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aliases=void 0,t.aliases={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:":is(\n :is(button, input, select, textarea, optgroup, option)[disabled],\n optgroup[disabled] > option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n )",enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"}},7689:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.filters=void 0;var i=n(r(7540)),o=r(1073);function a(e,t){return function(r){var n=t.getParent(r);return null!=n&&t.isTag(n)&&e(r)}}function s(e){return function(t,r,n){var i=n.adapter[e];return"function"!=typeof i?o.falseFunc:function(e){return i(e)&&t(e)}}}t.filters={contains:function(e,t,r){var n=r.adapter;return function(r){return e(r)&&n.getText(r).includes(t)}},icontains:function(e,t,r){var n=r.adapter,i=t.toLowerCase();return function(t){return e(t)&&n.getText(t).toLowerCase().includes(i)}},"nth-child":function(e,t,r){var n=r.adapter,s=r.equals,c=(0,i.default)(t);return c===o.falseFunc?o.falseFunc:c===o.trueFunc?a(e,n):function(t){for(var r=n.getSiblings(t),i=0,o=0;o=0&&!s(t,r[o]);o--)n.isTag(r[o])&&i++;return c(i)&&e(t)}},"nth-of-type":function(e,t,r){var n=r.adapter,s=r.equals,c=(0,i.default)(t);return c===o.falseFunc?o.falseFunc:c===o.trueFunc?a(e,n):function(t){for(var r=n.getSiblings(t),i=0,o=0;o=0;o--){var a=r[o];if(s(t,a))break;n.isTag(a)&&n.getName(a)===n.getName(t)&&i++}return c(i)&&e(t)}},root:function(e,t,r){var n=r.adapter;return function(t){var r=n.getParent(t);return(null==r||!n.isTag(r))&&e(t)}},scope:function(e,r,n,i){var o=n.equals;return i&&0!==i.length?1===i.length?function(t){return o(i[0],t)&&e(t)}:function(t){return i.includes(t)&&e(t)}:t.filters.root(e,r,n)},hover:s("isHovered"),visited:s("isVisited"),active:s("isActive")}},8677:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compilePseudoSelector=t.aliases=t.pseudos=t.filters=void 0;var n=r(1073),i=r(7763),o=r(7689);Object.defineProperty(t,"filters",{enumerable:!0,get:function(){return o.filters}});var a=r(7221);Object.defineProperty(t,"pseudos",{enumerable:!0,get:function(){return a.pseudos}});var s=r(2968);Object.defineProperty(t,"aliases",{enumerable:!0,get:function(){return s.aliases}});var c=r(1768);t.compilePseudoSelector=function(e,t,r,l,u){var p=t.name,f=t.data;if(Array.isArray(f))return c.subselects[p](e,f,r,l,u);if(p in s.aliases){if(null!=f)throw new Error("Pseudo ".concat(p," doesn't have any arguments"));var d=(0,i.parse)(s.aliases[p]);return c.subselects.is(e,d,r,l,u)}if(p in o.filters)return o.filters[p](e,f,r,l);if(p in a.pseudos){var h=a.pseudos[p];return(0,a.verifyPseudoArgs)(h,p,f),h===n.falseFunc?n.falseFunc:e===n.trueFunc?function(e){return h(e,r,f)}:function(t){return h(t,r,f)&&e(t)}}throw new Error("unmatched pseudo-class :".concat(p))}},7221:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyPseudoArgs=t.pseudos=void 0,t.pseudos={empty:function(e,t){var r=t.adapter;return!r.getChildren(e).some((function(e){return r.isTag(e)||""!==r.getText(e)}))},"first-child":function(e,t){var r=t.adapter,n=t.equals,i=r.getSiblings(e).find((function(e){return r.isTag(e)}));return null!=i&&n(e,i)},"last-child":function(e,t){for(var r=t.adapter,n=t.equals,i=r.getSiblings(e),o=i.length-1;o>=0;o--){if(n(e,i[o]))return!0;if(r.isTag(i[o]))break}return!1},"first-of-type":function(e,t){for(var r=t.adapter,n=t.equals,i=r.getSiblings(e),o=r.getName(e),a=0;a=0;a--){var s=i[a];if(n(e,s))return!0;if(r.isTag(s)&&r.getName(s)===o)break}return!1},"only-of-type":function(e,t){var r=t.adapter,n=t.equals,i=r.getName(e);return r.getSiblings(e).every((function(t){return n(e,t)||!r.isTag(t)||r.getName(t)!==i}))},"only-child":function(e,t){var r=t.adapter,n=t.equals;return r.getSiblings(e).every((function(t){return n(e,t)||!r.isTag(t)}))}},t.verifyPseudoArgs=function(e,t,r){if(null===r){if(e.length>2)throw new Error("pseudo-selector :".concat(t," requires an argument"))}else if(2===e.length)throw new Error("pseudo-selector :".concat(t," doesn't have any arguments"))}},1768:function(e,t,r){"use strict";var n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7763),i=r(7177),o={exists:10,equals:8,not:7,start:6,end:6,any:5,hyphen:4,element:4};function a(e){var t=i.procedure[e.type];if(e.type===n.SelectorType.Attribute)(t=o[e.action])===o.equals&&"id"===e.name&&(t=9),e.ignoreCase&&(t>>=1);else if(e.type===n.SelectorType.Pseudo)if(e.data)if("has"===e.name||"contains"===e.name)t=0;else if(Array.isArray(e.data)){t=0;for(var r=0;rt&&(t=s)}e.data.length>1&&t>0&&(t-=1)}else t=1;else t=3;return t}t.default=function(e){for(var t=e.map(a),r=1;r=0&&n{"use strict";var n;r.r(t),r.d(t,{AttributeAction:()=>o,IgnoreCaseMode:()=>i,SelectorType:()=>n,isTraversal:()=>u,parse:()=>m,stringify:()=>x}),function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"}(n||(n={}));const i={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1};var o;!function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"}(o||(o={}));const a=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,s=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,c=new Map([[126,o.Element],[94,o.Start],[36,o.End],[42,o.Any],[33,o.Not],[124,o.Hyphen]]),l=new Set(["has","not","matches","is","where","host","host-context"]);function u(e){switch(e.type){case n.Adjacent:case n.Child:case n.Descendant:case n.Parent:case n.Sibling:case n.ColumnCombinator:return!0;default:return!1}}const p=new Set(["contains","icontains"]);function f(e,t,r){const n=parseInt(t,16)-65536;return n!=n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)}function d(e){return e.replace(s,f)}function h(e){return 39===e||34===e}function g(e){return 32===e||9===e||10===e||12===e||13===e}function m(e){const t=[],r=v(t,`${e}`,0);if(r0&&r0&&u(i[i.length-1]))throw new Error("Did not expect successive traversals.")}function w(e){i.length>0&&i[i.length-1].type===n.Descendant?i[i.length-1].type=e:(y(),i.push({type:e}))}function _(e,t){i.push({type:n.Attribute,name:e,action:t,value:s(1),namespace:null,ignoreCase:"quirks"})}function k(){if(i.length&&i[i.length-1].type===n.Descendant&&i.pop(),0===i.length)throw new Error("Empty sub-selector");e.push(i)}if(f(0),t.length===r)return r;e:for(;re.charCodeAt(0)))),_=new Set(y.map((e=>e.charCodeAt(0)))),k=new Set([...y,"~","^","$","*","+","!","|",":","[","]"," ","."].map((e=>e.charCodeAt(0))));function x(e){return e.map((e=>e.map(E).join(""))).join(", ")}function E(e,t,r){switch(e.type){case n.Child:return 0===t?"> ":" > ";case n.Parent:return 0===t?"< ":" < ";case n.Sibling:return 0===t?"~ ":" ~ ";case n.Adjacent:return 0===t?"+ ":" + ";case n.Descendant:return" ";case n.ColumnCombinator:return 0===t?"|| ":" || ";case n.Universal:return"*"===e.namespace&&t+10?n+e.slice(r):e}},7837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),t.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},7220:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r";case s.Comment:return"\x3c!--"+e.data+"--\x3e";case s.CDATA:return function(e){return""}(e);case s.Script:case s.Style:case s.Tag:return function(e,t){var r;"foreign"===t.xmlMode&&(e.name=null!==(r=l.elementNames.get(e.name))&&void 0!==r?r:e.name,e.parent&&h.has(e.parent.name)&&(t=n(n({},t),{xmlMode:!1}))),!t.xmlMode&&g.has(e.name)&&(t=n(n({},t),{xmlMode:"foreign"}));var i="<"+e.name,o=function(e,t){if(e)return Object.keys(e).map((function(r){var n,i,o=null!==(n=e[r])&&void 0!==n?n:"";return"foreign"===t.xmlMode&&(r=null!==(i=l.attributeNames.get(r))&&void 0!==i?i:r),t.emptyAttrs||t.xmlMode||""!==o?r+'="'+(!1!==t.decodeEntities?c.encodeXML(o):o.replace(/"/g,"""))+'"':r})).join(" ")}(e.attribs,t);return o&&(i+=" "+o),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&p.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=f(e.children,t)),!t.xmlMode&&p.has(e.name)||(i+="")),i}(e,t);case s.Text:return function(e,t){var r=e.data||"";return!1===t.decodeEntities||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(r=c.encodeXML(r)),r}(e,t)}}t.default=f;var h=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),g=new Set(["svg","math"])},9960:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(r=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},7915:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=r(9960),a=r(7790);i(r(7790),t);var s=/\s+/g,c={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,r){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=c),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:c,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?o.ElementType.Tag:void 0,n=new a.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,r=this.lastNode;if(r&&r.type===o.ElementType.Text)t?r.data=(r.data+e).replace(s," "):r.data+=e,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{t&&(e=e.replace(s," "));var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new a.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},7790:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(c);t.NodeWithChildren=d;var h=function(e){function t(t){return e.call(this,a.ElementType.Root,t)||this}return i(t,e),t}(d);t.Document=h;var g=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,i,n)||this;return o.name=t,o.attribs=r,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(d);function m(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function b(e){return e.type===a.ElementType.Text}function y(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function _(e){return e.type===a.ElementType.Root}function k(e,t){var r;if(void 0===t&&(t=!1),b(e))r=new u(e.data);else if(y(e))r=new p(e.data);else if(m(e)){var n=t?x(e.children):[],i=new g(e.name,o({},e.attribs),n);n.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),r=i}else if(v(e)){n=t?x(e.children):[];var s=new d(a.ElementType.CDATA,n);n.forEach((function(e){return e.parent=s})),r=s}else if(_(e)){n=t?x(e.children):[];var c=new h(n);n.forEach((function(e){return e.parent=c})),e["x-mode"]&&(c["x-mode"]=e["x-mode"]),r=c}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new f(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function x(e){for(var t=e.map((function(e){return k(e,!0)})),r=1;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var n=r(3346),i=r(3905);t.getFeed=function(e){var t=c(p,e);return t?"feed"===t.name?function(e){var t,r=e.children,n={type:"atom",items:(0,i.getElementsByTagName)("entry",r).map((function(e){var t,r=e.children,n={media:s(r)};u(n,"id","id",r),u(n,"title","title",r);var i=null===(t=c("link",r))||void 0===t?void 0:t.attribs.href;i&&(n.link=i);var o=l("summary",r)||l("content",r);o&&(n.description=o);var a=l("updated",r);return a&&(n.pubDate=new Date(a)),n}))};u(n,"id","id",r),u(n,"title","title",r);var o=null===(t=c("link",r))||void 0===t?void 0:t.attribs.href;o&&(n.link=o),u(n,"description","subtitle",r);var a=l("updated",r);return a&&(n.updated=new Date(a)),u(n,"author","email",r,!0),n}(t):function(e){var t,r,n=null!==(r=null===(t=c("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==r?r:[],o={type:e.name.substr(0,3),id:"",items:(0,i.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,r={media:s(t)};u(r,"id","guid",t),u(r,"title","title",t),u(r,"link","link",t),u(r,"description","description",t);var n=l("pubDate",t);return n&&(r.pubDate=new Date(n)),r}))};u(o,"title","title",n),u(o,"link","link",n),u(o,"description","description",n);var a=l("lastBuildDate",n);return a&&(o.updated=new Date(a)),u(o,"author","managingEditor",n,!0),o}(t):null};var o=["url","type","lang"],a=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function s(e){return(0,i.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,r={medium:t.medium,isDefault:!!t.isDefault},n=0,i=o;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.removeSubsets=void 0;var n=r(7915);function i(e,t){var r=[],i=[];if(e===t)return 0;for(var o=(0,n.hasChildren)(e)?e:e.parent;o;)r.unshift(o),o=o.parent;for(o=(0,n.hasChildren)(t)?t:t.parent;o;)i.unshift(o),o=o.parent;for(var a=Math.min(r.length,i.length),s=0;sl.indexOf(p)?c===t?20:4:c===e?10:2}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0)e.splice(t,1);else for(var n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e},t.compareDocumentPosition=i,t.uniqueSort=function(e){return e=e.filter((function(e,t,r){return!r.includes(e,t+1)})),e.sort((function(e,t){var r=i(e,t);return 2&r?-1:4&r?1:0})),e}},9432:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,i(r(3346),t),i(r(5010),t),i(r(6765),t),i(r(8043),t),i(r(3905),t),i(r(4975),t),i(r(6996),t);var o=r(7915);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return o.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return o.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return o.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return o.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return o.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return o.hasChildren}})},3905:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var n=r(7915),i=r(8043),o={tag_name:function(e){return"function"==typeof e?function(t){return(0,n.isTag)(t)&&e(t.name)}:"*"===e?n.isTag:function(t){return(0,n.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,n.isText)(t)&&e(t.data)}:function(t){return(0,n.isText)(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(r){return(0,n.isTag)(r)&&t(r.attribs[e])}:function(r){return(0,n.isTag)(r)&&r.attribs[e]===t}}function s(e,t){return function(r){return e(r)||t(r)}}function c(e){var t=Object.keys(e).map((function(t){var r=e[t];return Object.prototype.hasOwnProperty.call(o,t)?o[t](r):a(t,r)}));return 0===t.length?null:t.reduce(s)}t.testElement=function(e,t){var r=c(e);return!r||r(t)},t.getElements=function(e,t,r,n){void 0===n&&(n=1/0);var o=c(e);return o?(0,i.filter)(o,t,r,n):[]},t.getElementById=function(e,t,r){return void 0===r&&(r=!0),Array.isArray(t)||(t=[t]),(0,i.findOne)(a("id",e),t,r)},t.getElementsByTagName=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(o.tag_name(e),t,r,n)},t.getElementsByTagType=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(o.tag_type(e),t,r,n)}},6765:(e,t)=>{"use strict";function r(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=r,t.replaceElement=function(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(r(t),t.next=null,t.parent=e,e.children.push(t)>1){var n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null},t.append=function(e,t){r(t);var n=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=n,i){if(i.prev=t,n){var o=n.children;o.splice(o.lastIndexOf(i),0,t)}}else n&&n.children.push(t)},t.prependChild=function(e,t){if(r(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var n=e.children[1];n.prev=t,t.next=n}else t.next=null},t.prepend=function(e,t){r(t);var n=e.parent;if(n){var i=n.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},8043:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var n=r(7915);function i(e,t,r,o){for(var a=[],s=0,c=t;s0){var u=i(e,l.children,r,o);if(a.push.apply(a,u),(o-=u.length)<=0)break}}return a}t.filter=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),Array.isArray(t)||(t=[t]),i(e,t,r,n)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,r,i){void 0===i&&(i=!0);for(var o=null,a=0;a0&&(o=e(t,s.children)))}return o},t.existsOne=function e(t,r){return r.some((function(r){return(0,n.isTag)(r)&&(t(r)||r.children.length>0&&e(t,r.children))}))},t.findAll=function(e,t){for(var r,i,o=[],a=t.filter(n.isTag);i=a.shift();){var s=null===(r=i.children)||void 0===r?void 0:r.filter(n.isTag);s&&s.length>0&&a.unshift.apply(a,s),e(i)&&o.push(i)}return o}},3346:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var i=r(7915),o=n(r(7220)),a=r(9960);function s(e,t){return(0,o.default)(e,t)}t.getOuterHTML=s,t.getInnerHTML=function(e,t){return(0,i.hasChildren)(e)?e.children.map((function(e){return s(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,i.isCDATA)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&!(0,i.isComment)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&(t.type===a.ElementType.Tag||(0,i.isCDATA)(t))?e(t.children):(0,i.isText)(t)?t.data:""}},5010:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var n=r(7915),i=[];function o(e){var t;return null!==(t=e.children)&&void 0!==t?t:i}function a(e){return e.parent||null}t.getChildren=o,t.getParent=a,t.getSiblings=function(e){var t=a(e);if(null!=t)return o(t);for(var r=[e],n=e.prev,i=e.next;null!=n;)r.unshift(n),n=n.prev;for(;null!=i;)r.push(i),i=i.next;return r},t.getAttributeValue=function(e,t){var r;return null===(r=e.attribs)||void 0===r?void 0:r[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,n.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,n.isTag)(t);)t=t.prev;return t}},4076:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var i=n(r(9323)),o=n(r(9591)),a=n(r(2586)),s=n(r(26)),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function l(e){var t=p(e);return function(e){return String(e).replace(c,t)}}t.decodeXML=l(a.default),t.decodeHTMLStrict=l(i.default);var u=function(e,t){return e65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+String.fromCharCode(e)};t.default=function(e){return e>=55296&&e<=57343||e>1114111?"�":(e in i.default&&(e=i.default[e]),o(e))}},7322:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=void 0;var i=u(n(r(2586)).default),o=p(i);t.encodeXML=m(i);var a,s,c=u(n(r(9323)).default),l=p(c);function u(e){return Object.keys(e).sort().reduce((function(t,r){return t[e[r]]="&"+r+";",t}),{})}function p(e){for(var t=[],r=[],n=0,i=Object.keys(e);n1?d(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}var g=new RegExp(o.source+"|"+f.source,"g");function m(e){return function(t){return t.replace(g,(function(t){return e[t]||h(t)}))}}t.escape=function(e){return e.replace(g,h)},t.escapeUTF8=function(e){return e.replace(o,h)}},5863:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var n=r(4076),i=r(7322);t.decode=function(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?i.encodeXML:i.encodeHTML)(e)};var o=r(7322);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return o.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return o.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return o.encodeHTML}});var a=r(4076);Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return a.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return a.decodeXML}})},6492:function(e,t,r){var n;e=r.nmd(e),function(i){var o=(e&&e.exports,"object"==typeof global&&global);o.global!==o&&o.window;var a=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[\x01-\x7F]/g,c=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,u={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon",ˆ:"circ",ˇ:"caron","°":"deg","©":"copy","®":"reg","℗":"copysr",℘:"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78",𝒶:"ascr",𝕒:"aopf",𝔞:"afr",𝔸:"Aopf",𝔄:"Afr",𝒜:"Ascr",ª:"ordf",á:"aacute",Á:"Aacute",à:"agrave",À:"Agrave",ă:"abreve",Ă:"Abreve",â:"acirc",Â:"Acirc",å:"aring",Å:"angst",ä:"auml",Ä:"Auml",ã:"atilde",Ã:"Atilde",ą:"aogon",Ą:"Aogon",ā:"amacr",Ā:"Amacr",æ:"aelig",Æ:"AElig",𝒷:"bscr",𝕓:"bopf",𝔟:"bfr",𝔹:"Bopf",ℬ:"Bscr",𝔅:"Bfr",𝔠:"cfr",𝒸:"cscr",𝕔:"copf",ℭ:"Cfr",𝒞:"Cscr",ℂ:"Copf",ć:"cacute",Ć:"Cacute",ĉ:"ccirc",Ĉ:"Ccirc",č:"ccaron",Č:"Ccaron",ċ:"cdot",Ċ:"Cdot",ç:"ccedil",Ç:"Ccedil","℅":"incare",𝔡:"dfr",ⅆ:"dd",𝕕:"dopf",𝒹:"dscr",𝒟:"Dscr",𝔇:"Dfr",ⅅ:"DD",𝔻:"Dopf",ď:"dcaron",Ď:"Dcaron",đ:"dstrok",Đ:"Dstrok",ð:"eth",Ð:"ETH",ⅇ:"ee",ℯ:"escr",𝔢:"efr",𝕖:"eopf",ℰ:"Escr",𝔈:"Efr",𝔼:"Eopf",é:"eacute",É:"Eacute",è:"egrave",È:"Egrave",ê:"ecirc",Ê:"Ecirc",ě:"ecaron",Ě:"Ecaron",ë:"euml",Ë:"Euml",ė:"edot",Ė:"Edot",ę:"eogon",Ę:"Eogon",ē:"emacr",Ē:"Emacr",𝔣:"ffr",𝕗:"fopf",𝒻:"fscr",𝔉:"Ffr",𝔽:"Fopf",ℱ:"Fscr",ff:"fflig",ffi:"ffilig",ffl:"ffllig",fi:"filig",fj:"fjlig",fl:"fllig",ƒ:"fnof",ℊ:"gscr",𝕘:"gopf",𝔤:"gfr",𝒢:"Gscr",𝔾:"Gopf",𝔊:"Gfr",ǵ:"gacute",ğ:"gbreve",Ğ:"Gbreve",ĝ:"gcirc",Ĝ:"Gcirc",ġ:"gdot",Ġ:"Gdot",Ģ:"Gcedil",𝔥:"hfr",ℎ:"planckh",𝒽:"hscr",𝕙:"hopf",ℋ:"Hscr",ℌ:"Hfr",ℍ:"Hopf",ĥ:"hcirc",Ĥ:"Hcirc",ℏ:"hbar",ħ:"hstrok",Ħ:"Hstrok",𝕚:"iopf",𝔦:"ifr",𝒾:"iscr",ⅈ:"ii",𝕀:"Iopf",ℐ:"Iscr",ℑ:"Im",í:"iacute",Í:"Iacute",ì:"igrave",Ì:"Igrave",î:"icirc",Î:"Icirc",ï:"iuml",Ï:"Iuml",ĩ:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Į:"Iogon",ī:"imacr",Ī:"Imacr",ij:"ijlig",IJ:"IJlig",ı:"imath",𝒿:"jscr",𝕛:"jopf",𝔧:"jfr",𝒥:"Jscr",𝔍:"Jfr",𝕁:"Jopf",ĵ:"jcirc",Ĵ:"Jcirc",ȷ:"jmath",𝕜:"kopf",𝓀:"kscr",𝔨:"kfr",𝒦:"Kscr",𝕂:"Kopf",𝔎:"Kfr",ķ:"kcedil",Ķ:"Kcedil",𝔩:"lfr",𝓁:"lscr",ℓ:"ell",𝕝:"lopf",ℒ:"Lscr",𝔏:"Lfr",𝕃:"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ļ:"Lcedil",ł:"lstrok",Ł:"Lstrok",ŀ:"lmidot",Ŀ:"Lmidot",𝔪:"mfr",𝕞:"mopf",𝓂:"mscr",𝔐:"Mfr",𝕄:"Mopf",ℳ:"Mscr",𝔫:"nfr",𝕟:"nopf",𝓃:"nscr",ℕ:"Nopf",𝒩:"Nscr",𝔑:"Nfr",ń:"nacute",Ń:"Nacute",ň:"ncaron",Ň:"Ncaron",ñ:"ntilde",Ñ:"Ntilde",ņ:"ncedil",Ņ:"Ncedil","№":"numero",ŋ:"eng",Ŋ:"ENG",𝕠:"oopf",𝔬:"ofr",ℴ:"oscr",𝒪:"Oscr",𝔒:"Ofr",𝕆:"Oopf",º:"ordm",ó:"oacute",Ó:"Oacute",ò:"ograve",Ò:"Ograve",ô:"ocirc",Ô:"Ocirc",ö:"ouml",Ö:"Ouml",ő:"odblac",Ő:"Odblac",õ:"otilde",Õ:"Otilde",ø:"oslash",Ø:"Oslash",ō:"omacr",Ō:"Omacr",œ:"oelig",Œ:"OElig",𝔭:"pfr",𝓅:"pscr",𝕡:"popf",ℙ:"Popf",𝔓:"Pfr",𝒫:"Pscr",𝕢:"qopf",𝔮:"qfr",𝓆:"qscr",𝒬:"Qscr",𝔔:"Qfr",ℚ:"Qopf",ĸ:"kgreen",𝔯:"rfr",𝕣:"ropf",𝓇:"rscr",ℛ:"Rscr",ℜ:"Re",ℝ:"Ropf",ŕ:"racute",Ŕ:"Racute",ř:"rcaron",Ř:"Rcaron",ŗ:"rcedil",Ŗ:"Rcedil",𝕤:"sopf",𝓈:"sscr",𝔰:"sfr",𝕊:"Sopf",𝔖:"Sfr",𝒮:"Sscr","Ⓢ":"oS",ś:"sacute",Ś:"Sacute",ŝ:"scirc",Ŝ:"Scirc",š:"scaron",Š:"Scaron",ş:"scedil",Ş:"Scedil",ß:"szlig",𝔱:"tfr",𝓉:"tscr",𝕥:"topf",𝒯:"Tscr",𝔗:"Tfr",𝕋:"Topf",ť:"tcaron",Ť:"Tcaron",ţ:"tcedil",Ţ:"Tcedil","™":"trade",ŧ:"tstrok",Ŧ:"Tstrok",𝓊:"uscr",𝕦:"uopf",𝔲:"ufr",𝕌:"Uopf",𝔘:"Ufr",𝒰:"Uscr",ú:"uacute",Ú:"Uacute",ù:"ugrave",Ù:"Ugrave",ŭ:"ubreve",Ŭ:"Ubreve",û:"ucirc",Û:"Ucirc",ů:"uring",Ů:"Uring",ü:"uuml",Ü:"Uuml",ű:"udblac",Ű:"Udblac",ũ:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",ū:"umacr",Ū:"Umacr",𝔳:"vfr",𝕧:"vopf",𝓋:"vscr",𝔙:"Vfr",𝕍:"Vopf",𝒱:"Vscr",𝕨:"wopf",𝓌:"wscr",𝔴:"wfr",𝒲:"Wscr",𝕎:"Wopf",𝔚:"Wfr",ŵ:"wcirc",Ŵ:"Wcirc",𝔵:"xfr",𝓍:"xscr",𝕩:"xopf",𝕏:"Xopf",𝔛:"Xfr",𝒳:"Xscr",𝔶:"yfr",𝓎:"yscr",𝕪:"yopf",𝒴:"Yscr",𝔜:"Yfr",𝕐:"Yopf",ý:"yacute",Ý:"Yacute",ŷ:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml",𝓏:"zscr",𝔷:"zfr",𝕫:"zopf",ℨ:"Zfr",ℤ:"Zopf",𝒵:"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Ż:"Zdot",Ƶ:"imped",þ:"thorn",Þ:"THORN",ʼn:"napos",α:"alpha",Α:"Alpha",β:"beta",Β:"Beta",γ:"gamma",Γ:"Gamma",δ:"delta",Δ:"Delta",ε:"epsi",ϵ:"epsiv",Ε:"Epsilon",ϝ:"gammad",Ϝ:"Gammad",ζ:"zeta",Ζ:"Zeta",η:"eta",Η:"Eta",θ:"theta",ϑ:"thetav",Θ:"Theta",ι:"iota",Ι:"Iota",κ:"kappa",ϰ:"kappav",Κ:"Kappa",λ:"lambda",Λ:"Lambda",μ:"mu",µ:"micro",Μ:"Mu",ν:"nu",Ν:"Nu",ξ:"xi",Ξ:"Xi",ο:"omicron",Ο:"Omicron",π:"pi",ϖ:"piv",Π:"Pi",ρ:"rho",ϱ:"rhov",Ρ:"Rho",σ:"sigma",Σ:"Sigma",ς:"sigmaf",τ:"tau",Τ:"Tau",υ:"upsi",Υ:"Upsilon",ϒ:"Upsi",φ:"phi",ϕ:"phiv",Φ:"Phi",χ:"chi",Χ:"Chi",ψ:"psi",Ψ:"Psi",ω:"omega",Ω:"ohm",а:"acy",А:"Acy",б:"bcy",Б:"Bcy",в:"vcy",В:"Vcy",г:"gcy",Г:"Gcy",ѓ:"gjcy",Ѓ:"GJcy",д:"dcy",Д:"Dcy",ђ:"djcy",Ђ:"DJcy",е:"iecy",Е:"IEcy",ё:"iocy",Ё:"IOcy",є:"jukcy",Є:"Jukcy",ж:"zhcy",Ж:"ZHcy",з:"zcy",З:"Zcy",ѕ:"dscy",Ѕ:"DScy",и:"icy",И:"Icy",і:"iukcy",І:"Iukcy",ї:"yicy",Ї:"YIcy",й:"jcy",Й:"Jcy",ј:"jsercy",Ј:"Jsercy",к:"kcy",К:"Kcy",ќ:"kjcy",Ќ:"KJcy",л:"lcy",Л:"Lcy",љ:"ljcy",Љ:"LJcy",м:"mcy",М:"Mcy",н:"ncy",Н:"Ncy",њ:"njcy",Њ:"NJcy",о:"ocy",О:"Ocy",п:"pcy",П:"Pcy",р:"rcy",Р:"Rcy",с:"scy",С:"Scy",т:"tcy",Т:"Tcy",ћ:"tshcy",Ћ:"TSHcy",у:"ucy",У:"Ucy",ў:"ubrcy",Ў:"Ubrcy",ф:"fcy",Ф:"Fcy",х:"khcy",Х:"KHcy",ц:"tscy",Ц:"TScy",ч:"chcy",Ч:"CHcy",џ:"dzcy",Џ:"DZcy",ш:"shcy",Ш:"SHcy",щ:"shchcy",Щ:"SHCHcy",ъ:"hardcy",Ъ:"HARDcy",ы:"ycy",Ы:"Ycy",ь:"softcy",Ь:"SOFTcy",э:"ecy",Э:"Ecy",ю:"yucy",Ю:"YUcy",я:"yacy",Я:"YAcy",ℵ:"aleph",ℶ:"beth",ℷ:"gimel",ℸ:"daleth"},p=/["&'<>`]/g,f={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},d=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,h=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,m={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},v={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},b={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},y=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],w=String.fromCharCode,_={}.hasOwnProperty,k=function(e,t){return _.call(e,t)},x=function(e,t){if(!e)return t;var r,n={};for(r in t)n[r]=k(e,r)?e[r]:t[r];return n},E=function(e,t){var r="";return e>=55296&&e<=57343||e>1114111?(t&&S("character reference outside the permissible Unicode range"),"�"):k(b,e)?(t&&S("disallowed character reference"),b[e]):(t&&function(e,t){for(var r=-1,n=e.length;++r65535&&(r+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),r+=w(e))},T=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},A=function(e){return"&#"+e+";"},S=function(e){throw Error("Parse error: "+e)},C=function(e,t){(t=x(t,C.options)).strict&&h.test(e)&&S("forbidden code point");var r=t.encodeEverything,n=t.useNamedReferences,i=t.allowUnsafeSymbols,o=t.decimal?A:T,f=function(e){return o(e.charCodeAt(0))};return r?(e=e.replace(s,(function(e){return n&&k(u,e)?"&"+u[e]+";":f(e)})),n&&(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),n&&(e=e.replace(l,(function(e){return"&"+u[e]+";"})))):n?(i||(e=e.replace(p,(function(e){return"&"+u[e]+";"}))),e=(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(l,(function(e){return"&"+u[e]+";"}))):i||(e=e.replace(p,f)),e.replace(a,(function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return o(1024*(t-55296)+r-56320+65536)})).replace(c,f)};C.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var N=function(e,t){var r=(t=x(t,N.options)).strict;return r&&d.test(e)&&S("malformed character reference"),e.replace(g,(function(e,n,i,o,a,s,c,l,u){var p,f,d,h,g,b;return n?m[g=n]:i?(g=i,(b=o)&&t.isAttributeValue?(r&&"="==b&&S("`&` did not start a character reference"),e):(r&&S("named character reference was not terminated by a semicolon"),v[g]+(b||""))):a?(d=a,f=s,r&&!f&&S("character reference was not terminated by a semicolon"),p=parseInt(d,10),E(p,r)):c?(h=c,f=l,r&&!f&&S("character reference was not terminated by a semicolon"),p=parseInt(h,16),E(p,r)):(r&&S("named character reference was not terminated by a semicolon"),e)}))};N.options={isAttributeValue:!1,strict:!1};var L={version:"1.2.0",encode:C,decode:N,escape:function(e){return e.replace(p,(function(e){return f[e]}))},unescape:N};void 0===(n=function(){return L}.call(t,r,t,e))||(e.exports=n)}()},6040:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",i=1,o=2,a=1/0,s=9007199254740991,c="[object Arguments]",l="[object Array]",u="[object Boolean]",p="[object Date]",f="[object Error]",d="[object Function]",h="[object GeneratorFunction]",g="[object Map]",m="[object Number]",v="[object Object]",b="[object Promise]",y="[object RegExp]",w="[object Set]",_="[object String]",k="[object Symbol]",x="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S=/^\w*$/,C=/^\./,N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,L=/\\(\\)?/g,D=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,q={};q["[object Float32Array]"]=q["[object Float64Array]"]=q["[object Int8Array]"]=q["[object Int16Array]"]=q["[object Int32Array]"]=q["[object Uint8Array]"]=q["[object Uint8ClampedArray]"]=q["[object Uint16Array]"]=q["[object Uint32Array]"]=!0,q[c]=q[l]=q[E]=q[u]=q[T]=q[p]=q[f]=q[d]=q[g]=q[m]=q[v]=q[y]=q[w]=q[_]=q[x]=!1;var B="object"==typeof global&&global&&global.Object===Object&&global,R="object"==typeof self&&self&&self.Object===Object&&self,P=B||R||Function("return this")(),j=t&&!t.nodeType&&t,M=j&&e&&!e.nodeType&&e,I=M&&M.exports===j&&B.process,F=function(){try{return I&&I.binding("util")}catch(e){}}(),U=F&&F.isTypedArray;function H(e,t){for(var r=-1,n=t.length,i=e.length;++rl))return!1;var p=s.get(e);if(p&&s.get(t))return p==t;var f=-1,d=!0,h=a&i?new Ce:void 0;for(s.set(e,t),s.set(t,e);++f-1},Ae.prototype.set=function(e,t){var r=this.__data__,n=De(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Se.prototype.clear=function(){this.__data__={hash:new Te,map:new(fe||Ae),string:new Te}},Se.prototype.delete=function(e){return je(this,e).delete(e)},Se.prototype.get=function(e){return je(this,e).get(e)},Se.prototype.has=function(e){return je(this,e).has(e)},Se.prototype.set=function(e,t){return je(this,e).set(e,t),this},Ce.prototype.add=Ce.prototype.push=function(e){return this.__data__.set(e,n),this},Ce.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.clear=function(){this.__data__=new Ae},Ne.prototype.delete=function(e){return this.__data__.delete(e)},Ne.prototype.get=function(e){return this.__data__.get(e)},Ne.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ae){var n=r.__data__;if(!fe||n.length<199)return n.push([e,t]),this;r=this.__data__=new Se(n)}return r.set(e,t),this};var Ie=le?K(le,Object):pt,Fe=le?function(e){for(var t=[];e;)H(t,Ie(e)),e=ae(e);return t}:pt,Ue=function(e){return re.call(e)};function He(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=s}function nt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function it(e){return!!e&&"object"==typeof e}function ot(e){return"symbol"==typeof e||it(e)&&re.call(e)==k}var at,st=U?(at=U,function(e){return at(e)}):function(e){return it(e)&&rt(e.length)&&!!q[re.call(e)]};function ct(e){return et(e)?Le(e):function(e){if(!ze(e))return ue(e);var t=[];for(var r in Object(e))te.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}function lt(e){return et(e)?Le(e,!0):function(e){if(!nt(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ze(e),r=[];for(var n in e)("constructor"!=n||!t&&te.call(e,n))&&r.push(n);return r}(e)}function ut(e){return e}function pt(){return[]}e.exports=function(e,t){return null==e?{}:function(e,t,r){for(var n=-1,i=t.length,o={};++n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodeHtmlParserConfig=t.aTagTranslatorConfig=t.defaultCodeBlockTranslators=t.tableCellTranslatorConfig=t.tableRowTranslatorConfig=t.tableTranslatorConfig=t.defaultTranslators=t.defaultOptions=t.contentlessElements=t.defaultIgnoreElements=t.defaultBlockElements=void 0;const n=r(998),i=r(4923);t.defaultBlockElements=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"],t.defaultIgnoreElements=["AREA","BASE","COL","COMMAND","EMBED","HEAD","INPUT","KEYGEN","LINK","META","PARAM","SCRIPT","SOURCE","STYLE","TRACK","WBR"],t.contentlessElements=["BR","HR","IMG"],t.defaultOptions=Object.freeze({preferNativeParser:!1,codeFence:"```",bulletMarker:"*",indent:" ",codeBlockStyle:"fenced",emDelimiter:"_",strongDelimiter:"**",maxConsecutiveNewlines:3,globalEscape:[/[\\`*_~\[\]]/gm,"\\$&"],lineStartEscape:[/^(\s*?)((?:\+\s)|(?:[=>-])|(?:#{1,6}\s))|(?:(\d+)(\.\s))/gm,"$1$3\\$2$4"]}),t.defaultTranslators={pre:{noEscape:!0,preserveWhitespace:!0},br:{content:" \n",recurse:!1},hr:{content:"---",recurse:!1},"h1,h2,h3,h4,h5,h6":({node:e})=>({prefix:"#".repeat(+e.tagName.charAt(1))+" "}),"strong,b":{spaceIfRepeatingChar:!0,postprocess:({content:e,options:{strongDelimiter:t}})=>(0,n.isWhiteSpaceOnly)(e)?i.PostProcessResult.RemoveNode:(0,n.tagSurround)(e,t)},"del,s,strike":{spaceIfRepeatingChar:!0,postprocess:({content:e})=>(0,n.isWhiteSpaceOnly)(e)?i.PostProcessResult.RemoveNode:(0,n.tagSurround)(e,"~~")},"em,i":{spaceIfRepeatingChar:!0,postprocess:({content:e,options:{emDelimiter:t}})=>(0,n.isWhiteSpaceOnly)(e)?i.PostProcessResult.RemoveNode:(0,n.tagSurround)(e,t)},"ol,ul":({listKind:e})=>({surroundingNewlines:e?1:2}),li:({options:{bulletMarker:e},indentLevel:t,listKind:r,listItemNumber:o})=>{const a=+(t||0);return{prefix:" ".repeat(+(t||0))+("OL"===r&&void 0!==o?`${o}. `:`${e} `),surroundingNewlines:1,postprocess:({content:e})=>(0,n.isWhiteSpaceOnly)(e)?i.PostProcessResult.RemoveNode:e.trim().replace(/([^\r\n])(?:\r?\n)+/g,`$1 \n${" ".repeat(a)}`).replace(/(\S+?)[^\S\r\n]+$/gm,"$1 ")}},blockquote:{postprocess:({content:e})=>(0,n.trimNewLines)(e).replace(/^(>*)[^\S\r\n]?/gm,">$1 ")},code:({node:e,parent:t,options:{codeFence:r,codeBlockStyle:i},visitor:o})=>{var a,s;return["PRE","WRAPPED-PRE"].includes(null==t?void 0:t.tagName)&&t.childNodes.length<2?"fenced"===i?{noEscape:!0,prefix:r+((null===(s=null===(a=e.getAttribute("class"))||void 0===a?void 0:a.match(/language-(\S+)/))||void 0===s?void 0:s[1])||"")+"\n",postfix:"\n"+r,childTranslators:o.instance.codeBlockTranslators}:{noEscape:!0,postprocess:({content:e})=>e.replace(/^/gm," "),childTranslators:o.instance.codeBlockTranslators}:{spaceIfRepeatingChar:!0,noEscape:!0,postprocess:({content:e})=>{var t,r;const i="`"+((null===(r=null===(t=e.match(/`+/g))||void 0===t?void 0:t.sort(((e,t)=>t.length-e.length)))||void 0===r?void 0:r[0])||""),o=i.length>1?" ":"";return(0,n.surround)((0,n.surround)(e,o),i)}}},table:({visitor:e})=>({surroundingNewlines:2,childTranslators:e.instance.tableTranslators,postprocess:({content:e,nodeMetadata:t,node:r})=>{const o=(0,n.splitSpecial)(e).map((({text:e})=>e.replace(/^(?:\|\s+)?(.+)\s*\|\s*$/,"$1"))),a=[];let s=[];for(const e of o){if(!e)continue;const t=e.split(" |").map(((e,t)=>(e=e.trim(),(s.length{var r;l+="| ";for(let t=0;t" "+"-".repeat(e)+" |")).join("")+"\n")})),l}}),a:({node:e,options:t,visitor:r})=>{const n=e.getAttribute("href");if(!n)return{};let i="";for(const e of n)switch(e){case"(":i+="%28";break;case")":i+="%29";break;case"_":i+="%5F";break;case"*":i+="%2A";break;default:i+=e}const o=e.getAttribute("title");return e.textContent===n?{content:`<${i}>`}:{postprocess:({content:e})=>e.replace(/(?:\r?\n)+/g," "),childTranslators:r.instance.aTagTranslators,prefix:"[",postfix:"]"+(t.useLinkReferenceDefinitions?`[${r.addOrGetUrlDefinition(i)}]`:`(${i}${o?` "${o}"`:""})`)}},img:({node:e,options:t})=>{const r=e.getAttribute("src")||"";if(!r||!t.keepDataImages&&/^data:/i.test(r))return{ignore:!0};const n=e.getAttribute("alt")||"",i=e.getAttribute("title")||"";return{content:`![${n}](${r}${i&&` "${i}"`})`,recurse:!1}}},t.tableTranslatorConfig={caption:({visitor:e})=>({surroundingNewlines:!1,childTranslators:e.instance.tableCellTranslators,postprocess:({content:e,nodeMetadata:t,node:r})=>{const n=e.replace(/(?:\r?\n)+/g," ").trim();return n&&(t.get(r).tableMeta.caption="__"+n+"__"),i.PostProcessResult.RemoveNode}}),tr:({visitor:e})=>({surroundingNewlines:!1,childTranslators:e.instance.tableRowTranslators,postfix:"\n",prefix:"| ",postprocess:({content:e})=>/ \|\s*$/.test(e)?e:i.PostProcessResult.RemoveNode}),"th,td":({visitor:e})=>({surroundingNewlines:!1,childTranslators:e.instance.tableCellTranslators,prefix:" ",postfix:" |",postprocess:({content:e})=>(0,n.trimNewLines)(e).replace("|","\\|").replace(/(?:\r?\n)+/g," ").trim()})},t.tableRowTranslatorConfig={"th,td":t.tableTranslatorConfig["th,td"]},t.tableCellTranslatorConfig={a:t.defaultTranslators.a,"strong,b":t.defaultTranslators["strong,b"],"del,s,strike":t.defaultTranslators["del,s,strike"],"em,i":t.defaultTranslators["em,i"],img:t.defaultTranslators.img},t.defaultCodeBlockTranslators={br:{content:"\n",recurse:!1},hr:{content:"---",recurse:!1},"h1,h2,h3,h4,h5,h6":{prefix:"[",postfix:"]"},"ol,ul":t.defaultTranslators["ol,ul"],li:t.defaultTranslators.li,tr:{surroundingNewlines:!0},img:{recurse:!1}},t.aTagTranslatorConfig={br:{content:"\n",recurse:!1},hr:{content:"\n",recurse:!1},pre:t.defaultTranslators.pre,"strong,b":t.defaultTranslators["strong,b"],"del,s,strike":t.defaultTranslators["del,s,strike"],"em,i":t.defaultTranslators["em,i"],img:t.defaultTranslators.img},t.nodeHtmlParserConfig={lowerCaseTagName:!1,comment:!1,blockTextElements:{script:!1,noscript:!1,style:!1}}},2245:(e,t,r)=>{"use strict";t.dx=void 0;var n=r(7352);Object.defineProperty(t,"dx",{enumerable:!0,get:function(){return n.NodeHtmlMarkdown}});r(4923)},7352:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeHtmlMarkdown=void 0;const n=r(4923),i=r(7690),o=r(998),a=r(390);class s{constructor(e,t,r){var o,a,s,c;this.translators=new n.TranslatorCollection,this.aTagTranslators=new n.TranslatorCollection,this.codeBlockTranslators=new n.TranslatorCollection,this.tableTranslators=new n.TranslatorCollection,this.tableRowTranslators=new n.TranslatorCollection,this.tableCellTranslators=new n.TranslatorCollection,this.options=Object.assign(Object.assign({},i.defaultOptions),e);const l=null!==(a=null===(o=this.options.ignore)||void 0===o?void 0:o.concat(i.defaultIgnoreElements))&&void 0!==a?a:i.defaultIgnoreElements,u=null!==(c=null===(s=this.options.blockElements)||void 0===s?void 0:s.concat(i.defaultBlockElements))&&void 0!==c?c:i.defaultBlockElements;null==l||l.forEach((e=>{this.translators.set(e,{ignore:!0,recurse:!1}),this.codeBlockTranslators.set(e,{ignore:!0,recurse:!1})})),null==u||u.forEach((e=>{this.translators.set(e,{surroundingNewlines:2}),this.codeBlockTranslators.set(e,{surroundingNewlines:2})}));for(const[e,r]of Object.entries(Object.assign(Object.assign({},i.defaultTranslators),t)))this.translators.set(e,r,!0);for(const[e,t]of Object.entries(Object.assign(Object.assign({},i.defaultCodeBlockTranslators),r)))this.codeBlockTranslators.set(e,t,!0);for(const[e,t]of Object.entries(i.aTagTranslatorConfig))this.aTagTranslators.set(e,t,!0);for(const[e,t]of Object.entries(i.tableTranslatorConfig))this.tableTranslators.set(e,t,!0);for(const[e,t]of Object.entries(i.tableRowTranslatorConfig))this.tableRowTranslators.set(e,t,!0);for(const[e,t]of Object.entries(i.tableCellTranslatorConfig))this.tableCellTranslators.set(e,t,!0);this.options.textReplace||(this.options.textReplace=[]),this.options.textReplace.push([/^/gim,""])}static translate(e,t,r,n){return s.prototype.translateWorker.call(new s(t,r,n),e)}translate(e){return this.translateWorker(e)}translateWorker(e){const t="string"!=typeof e,r=t?e:{default:e},n={};for(const[e,t]of Object.entries(r)){const r=(0,o.parseHTML)(t,this.options);n[e]=(0,a.getMarkdownForHtmlNodes)(this,r,"default"!==e?e:void 0)}return t?n:n.default}}t.NodeHtmlMarkdown=s},5089:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isElementNode=t.isCommentNode=t.isTextNode=t.CommentNode=t.NodeType=void 0;const n=r(698);Object.defineProperty(t,"CommentNode",{enumerable:!0,get:function(){return n.CommentNode}}),Object.defineProperty(t,"NodeType",{enumerable:!0,get:function(){return n.NodeType}}),t.isTextNode=e=>e.nodeType===n.NodeType.TEXT_NODE,t.isCommentNode=e=>e.nodeType===n.NodeType.COMMENT_NODE,t.isElementNode=e=>e.nodeType===n.NodeType.ELEMENT_NODE},4923:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.createTranslatorContext=t.isTranslatorConfig=t.TranslatorCollection=t.PostProcessResult=void 0,(r=t.PostProcessResult||(t.PostProcessResult={}))[r.NoChange=0]="NoChange",r[r.RemoveNode=1]="RemoveNode",t.TranslatorCollection=class{get size(){return Object.keys(this).length}set(e,r,n){e.split(",").forEach((e=>{e=e.toUpperCase();let i=r;if(n){const n=this[e];(0,t.isTranslatorConfig)(n)&&(i=(0,t.isTranslatorConfig)(r)?Object.assign(Object.assign({},n),r):Object.assign(((...e)=>r.apply(void 0,e)),{base:n}))}this[e]=i}))}get(e){return this[e.toUpperCase()]}entries(){return Object.entries(this)}remove(e){e.split(",").forEach((e=>delete this[e.toUpperCase()]))}},t.isTranslatorConfig=e=>"object"==typeof e,t.createTranslatorContext=function(e,t,r,n){const{instance:i,nodeMetadata:o}=e;return Object.assign({node:t,options:i.options,parent:t.parentNode,nodeMetadata:o,visitor:e,base:n},r)}},998:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.perfStop=t.perfStart=t.getChildNodes=t.parseHTML=t.truthyStr=t.getTrailingWhitespaceInfo=t.tagSurround=t.splitSpecial=t.isWhiteSpaceOnly=t.surround=t.trimNewLines=void 0;const n=r(7690);function i(e){const t=[],r=e.length;for(let n=0,i=0;n1&&++n)}return t}t.trimNewLines=e=>e.replace(/^\n+|\n+$/g,""),t.surround=(e,t)=>`${t}${e}${t}`,t.isWhiteSpaceOnly=e=>!/\S/.test(e),t.splitSpecial=i,t.tagSurround=function(e,t){e.indexOf(t)>=0&&(e=e.replace(new RegExp(`([^\\\\])\\${t.split("").join("\\")}`,"gm"),"$1"));const r=i(e);let n="";for(const{text:e,newLineChar:i}of r){let r,o,a=0;for(;a>=0&&a0?e[r-1]:"",c=o{const t={whitespace:0,newLines:0},r=Math.max(e.length-10,0);for(let n=e.length-1;n>=r;--n){const r=e.slice(n,n+1);if(!/\s/.test(r))break;++t.whitespace,["\r","\n"].includes(r)&&++t.newLines}return t},t.truthyStr=(e,t)=>e?void 0!==t?t:String(e):"";const o=()=>{try{return r(698).parse}catch(e){return}};function a(e){process.env.LOG_PERF&&console.time(e)}function s(e){process.env.LOG_PERF&&console.timeEnd(e)}t.parseHTML=function(e,t){let r,i;if(a("parse"),t.preferNativeParser)try{i=function(e){try{if(!(null===window||void 0===window?void 0:window.DOMParser)||!(new window.DOMParser).parseFromString("","text/html"))return}catch(e){return}let t;try{t=document.implementation.createHTMLDocument("").open()}catch(e){const{ActiveXObject:t}=window;if(t){const e=t("htmlfile");return e.designMode="on",e.open()}throw e}return t.write(""+e+""),t.close(),t.documentElement}(e)}catch(e){if(r=o(),!r)throw e;console.warn("Native DOM parser encountered an error during parse",e)}else r=o();return i||(i=r(e,n.nodeHtmlParserConfig)),s("parse"),i},t.getChildNodes=function(e){if(null==(t=e.childNodes)&&"function"!=typeof t[Symbol.iterator])return e.childNodes;var t;const r=[];return e.childNodes.forEach((e=>r.push(e))),r},t.perfStart=a,t.perfStop=s},390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMarkdownForHtmlNodes=t.Visitor=void 0;const n=r(5089),i=r(998),o=r(4923),a=r(7690);class s{constructor(e,t,r){this.instance=e,this.rootNode=t,this.fileName=r,this.nodeMetadata=new Map,this.urlDefinitions=[],this.result={text:"",trailingNewlineStats:{whitespace:0,newLines:0}},this.options=e.options,this.optimizeTree(t),this.visitNode(t)}addOrGetUrlDefinition(e){let t=this.urlDefinitions.findIndex((t=>t===e));return t<0&&(t=this.urlDefinitions.push(e)-1),t+1}appendResult(e,t,r){if(!e&&void 0===t)return;const{result:n}=this;void 0!==t&&(n.text=n.text.substr(0,t)),n.text+=(r&&n.text.slice(-1)===e[0]?" ":"")+e,n.trailingNewlineStats=(0,i.getTrailingWhitespaceInfo)(n.text)}appendNewlines(e){const{newLines:t}=this.result.trailingNewlineStats;this.appendResult("\n".repeat(Math.max(0,+e-t)))}optimizeTree(e){(0,i.perfStart)("Optimize tree");const{translators:t}=this.instance;!function e(r){let o=!1;if((0,n.isTextNode)(r)||(0,n.isElementNode)(r)&&a.contentlessElements.includes(r.tagName))o=!0;else{const n=(0,i.getChildNodes)(r);if(n.length)for(const t of n)o?e(t):o=e(t);else{const e=t[r.tagName];((null==e?void 0:e.preserveIfEmpty)||"function"==typeof e)&&(o=!0)}}return r.preserve=o}(e),(0,i.perfStop)("Optimize tree")}processText(e,t){let r=e;if((null==t?void 0:t.preserveWhitespace)||(r=r.replace(/\s+/g," ")),null==t?void 0:t.noEscape)return r;const{lineStartEscape:n,globalEscape:i,textReplace:o}=this.options;if(r=r.replace(i[0],i[1]).replace(n[0],n[1]),o)for(const[e,t]of o)r=r.replace(e,t);return r}visitNode(e,t,r){var a,s;const{result:c}=this;if(!e.preserve)return;if((0,n.isTextNode)(e))return e.isWhitespace&&!(null==r?void 0:r.preserveWhitespace)?!c.text.length||c.trailingNewlineStats.whitespace>0?void 0:this.appendResult(" "):this.appendResult(this.processText((null==r?void 0:r.preserveWhitespace)?e.text:e.trimmedText,r));if(t||!(0,n.isElementNode)(e))return;const l=(null==r?void 0:r.translators)?r.translators[e.tagName]:this.instance.translators[e.tagName];switch(e.tagName){case"UL":case"OL":r=Object.assign(Object.assign({},r),{listItemNumber:0,listKind:e.tagName,indentLevel:(null!==(a=null==r?void 0:r.indentLevel)&&void 0!==a?a:-1)+1});break;case"LI":"OL"===(null==r?void 0:r.listKind)&&(r.listItemNumber=(null!==(s=r.listItemNumber)&&void 0!==s?s:0)+1);break;case"PRE":r=Object.assign(Object.assign({},r),{preserveWhitespace:!0});break;case"TABLE":r=Object.assign(Object.assign({},r),{tableMeta:{node:e}})}if(r&&this.nodeMetadata.set(e,r),!l){for(const n of(0,i.getChildNodes)(e))this.visitNode(n,t,r);return}let u,p;if((0,o.isTranslatorConfig)(l)?u=l:(p=(0,o.createTranslatorContext)(this,e,r,l.base),u=Object.assign(Object.assign({},l.base),l(p))),u.ignore)return;u.noEscape&&!(null==r?void 0:r.noEscape)&&(r=Object.assign(Object.assign({},r),{noEscape:u.noEscape}),this.nodeMetadata.set(e,r)),u.childTranslators&&u.childTranslators!==(null==r?void 0:r.translators)&&(r=Object.assign(Object.assign({},r),{translators:u.childTranslators}),this.nodeMetadata.set(e,r));const f=c.text.length;if(u.surroundingNewlines&&this.appendNewlines(+u.surroundingNewlines),u.prefix&&this.appendResult(u.prefix),"string"==typeof u.content)this.appendResult(u.content,void 0,u.spaceIfRepeatingChar);else{const t=c.text.length;for(const t of(0,i.getChildNodes)(e))this.visitNode(t,!1===u.recurse,r);if(u.postprocess){const n=u.postprocess(Object.assign(Object.assign({},p||(0,o.createTranslatorContext)(this,e,r)),{content:c.text.substr(t)}));if(n===o.PostProcessResult.RemoveNode)return"LI"===e.tagName&&(null==r?void 0:r.listItemNumber)&&--r.listItemNumber,this.appendResult("",f);"string"==typeof n&&this.appendResult(n,t,u.spaceIfRepeatingChar)}}u.postfix&&this.appendResult(u.postfix),u.surroundingNewlines&&this.appendNewlines(+u.surroundingNewlines)}}t.Visitor=s,t.getMarkdownForHtmlNodes=function(e,t,r){(0,i.perfStart)("walk");const n=new s(e,t,r);let o=n.result.text;(0,i.perfStop)("walk"),e.options.useLinkReferenceDefinitions&&(/[^\r\n]/.test(o.slice(-1))&&(o+="\n"),n.urlDefinitions.forEach(((e,t)=>{o+=`\n[${t+1}]: ${e}`})));const{maxConsecutiveNewlines:a}=e.options;return a&&(o=o.replace(new RegExp(String.raw`(?:\r?\n\s*)+((?:\r?\n\s*){${a}})`,"g"),"$1")),(0,i.trimNewLines)(o)}},8701:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e[e.length-1]}},698:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeType=t.TextNode=t.Node=t.valid=t.default=t.parse=t.HTMLElement=t.CommentNode=void 0;var i=r(1271);Object.defineProperty(t,"CommentNode",{enumerable:!0,get:function(){return n(i).default}});var o=r(4382);Object.defineProperty(t,"HTMLElement",{enumerable:!0,get:function(){return n(o).default}});var a=r(8821);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return n(a).default}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n(a).default}});var s=r(6389);Object.defineProperty(t,"valid",{enumerable:!0,get:function(){return n(s).default}});var c=r(4936);Object.defineProperty(t,"Node",{enumerable:!0,get:function(){return n(c).default}});var l=r(7923);Object.defineProperty(t,"TextNode",{enumerable:!0,get:function(){return n(l).default}});var u=r(9979);Object.defineProperty(t,"NodeType",{enumerable:!0,get:function(){return n(u).default}})},80:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(9979));function o(e){return e&&e.nodeType===i.default.ELEMENT_NODE}function a(e,t){return o(e)?e.getAttribute(t):void 0}function s(e){return e&&e.childNodes}function c(e){return e?e.parentNode:null}t.default={isTag:o,getAttributeValue:a,getName:function(e){return(e&&e.rawTagName||"").toLowerCase()},getChildren:s,getParent:c,getText:function(e){return e.text},removeSubsets:function(e){for(var t,r,n,i=e.length;--i>-1;){for(t=r=e[i],e[i]=null,n=!0;r;){if(e.indexOf(r)>-1){n=!1,e.splice(i,1);break}r=c(r)}n&&(e[i]=t)}return e},existsOne:function e(t,r){return r.some((function(r){return!!o(r)&&(t(r)||e(t,s(r)))}))},getSiblings:function(e){var t=c(e);return t&&s(t)},hasAttrib:function(e,t){return void 0!==a(e,t)},findOne:function e(t,r){for(var n=null,i=0,o=r.length;i0&&(n=e(t,c))}}return n},findAll:function e(t,r){for(var n=[],i=0,a=r.length;i0&&t.push(e=[]),n.childNodes.forEach(r),e.length>0&&t.push(e=[])):n.childNodes.forEach(r);else if(n.nodeType===g.default.TEXT_NODE)if(n.isWhitespace)e.prependWhitespace=!0;else{var i=n.trimmedText;e.prependWhitespace&&(i=" ".concat(i),e.prependWhitespace=!1),e.push(i)}}(this),t.map((function(e){return e.join("").replace(/\s{2,}/g," ")})).join("\n").replace(/\s+$/,"")},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this.rawTagName;if(e){var t=this.rawAttrs?" ".concat(this.rawAttrs):"";return this.isVoidElement?"<".concat(e).concat(t,">"):"<".concat(e).concat(t,">").concat(this.innerHTML,"")}return this.innerHTML},Object.defineProperty(t.prototype,"innerHTML",{get:function(){return this.childNodes.map((function(e){return e.toString()})).join("")},set:function(e){var t=C(e),r=t.childNodes.length?t.childNodes:[new h.default(e,this)];N(r,this),N(this.childNodes,null),this.childNodes=r},enumerable:!1,configurable:!0}),t.prototype.set_content=function(e,t){if(void 0===t&&(t={}),e instanceof d.default)e=[e];else if("string"==typeof e){var r=C(e,t);e=r.childNodes.length?r.childNodes:[new h.default(e,this)]}return N(this.childNodes,null),N(e,this),this.childNodes=e,this},t.prototype.replaceWith=function(){for(var e=this,t=[],r=0;r-1&&(r.rawText=r.rawText.substr(0,n),this.childNodes.length=t+1)}}return this},Object.defineProperty(t.prototype,"structure",{get:function(){var e=[],t=0;function r(r){e.push(" ".repeat(t)+r)}return function e(n){var i=n.id?"#".concat(n.id):"",o=n.classList.length?".".concat(n.classList.value.join(".")):"";r("".concat(n.rawTagName).concat(i).concat(o)),t++,n.childNodes.forEach((function(t){t.nodeType===g.default.ELEMENT_NODE?e(t):t.nodeType===g.default.TEXT_NODE&&(t.isWhitespace||r("#text"))})),t--}(this),e.join("\n")},enumerable:!1,configurable:!0}),t.prototype.removeWhitespace=function(){var e=this,t=0;return this.childNodes.forEach((function(r){if(r.nodeType===g.default.TEXT_NODE){if(r.isWhitespace)return;r.rawText=r.trimmedRawText}else r.nodeType===g.default.ELEMENT_NODE&&r.removeWhitespace();e.childNodes[t++]=r})),this.childNodes.length=t,this},t.prototype.querySelectorAll=function(e){return(0,c.selectAll)(e,this,{xmlMode:!0,adapter:p.default})},t.prototype.querySelector=function(e){return(0,c.selectOne)(e,this,{xmlMode:!0,adapter:p.default})},t.prototype.getElementsByTagName=function(e){for(var t=e.toUpperCase(),r=[],n=[],i=this,o=0;void 0!==o;){var a=void 0;do{a=i.childNodes[o++]}while(o0&&(n.push(o),i=a,o=0)):(i=i.parentNode,o=n.pop())}return r},t.prototype.getElementById=function(e){for(var t=[],r=this,n=0;void 0!==n;){var i=void 0;do{i=r.childNodes[n++]}while(n0&&(t.push(n),r=i,n=0)}}else r=r.parentNode,n=t.pop()}return null},t.prototype.closest=function(e){var t=new Map,r=this,n=null;function i(e,r){for(var n=null,o=0,a=r.length;o0;)if(this===e[--t])return e[t-1]||null;return null}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousElementSibling",{get:function(){if(this.parentNode){for(var e=this.parentNode.childNodes,r=e.length,n=!1;r>0;){var i=e[--r];if(n){if(i instanceof t)return i||null}else this===i&&(n=!0)}return null}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classNames",{get:function(){return this.classList.toString()},enumerable:!1,configurable:!0}),t.prototype.clone=function(){return C(this.toString()).firstChild},t}(d.default);t.default=w;var _=/|<(\/?)([a-zA-Z][-.:0-9_a-zA-Z]*)((?:\s+[^>]*?(?:(?:'[^']*')|(?:"[^"]*"))?)*)\s*(\/?)>/g,k=/(?:^|\s)(id|class)\s*=\s*((?:'[^']*')|(?:"[^"]*")|\S+)/gi,x={area:!0,AREA:!0,base:!0,BASE:!0,br:!0,BR:!0,col:!0,COL:!0,hr:!0,HR:!0,img:!0,IMG:!0,input:!0,INPUT:!0,link:!0,LINK:!0,meta:!0,META:!0,source:!0,SOURCE:!0,embed:!0,EMBED:!0,param:!0,PARAM:!0,track:!0,TRACK:!0,wbr:!0,WBR:!0},E={li:{li:!0,LI:!0},LI:{li:!0,LI:!0},p:{p:!0,div:!0,P:!0,DIV:!0},P:{p:!0,div:!0,P:!0,DIV:!0},b:{div:!0,DIV:!0},B:{div:!0,DIV:!0},td:{td:!0,th:!0,TD:!0,TH:!0},TD:{td:!0,th:!0,TD:!0,TH:!0},th:{td:!0,th:!0,TD:!0,TH:!0},TH:{td:!0,th:!0,TD:!0,TH:!0},h1:{h1:!0,H1:!0},H1:{h1:!0,H1:!0},h2:{h2:!0,H2:!0},H2:{h2:!0,H2:!0},h3:{h3:!0,H3:!0},H3:{h3:!0,H3:!0},h4:{h4:!0,H4:!0},H4:{h4:!0,H4:!0},h5:{h5:!0,H5:!0},H5:{h5:!0,H5:!0},h6:{h6:!0,H6:!0},H6:{h6:!0,H6:!0}},T={li:{ul:!0,ol:!0,UL:!0,OL:!0},LI:{ul:!0,ol:!0,UL:!0,OL:!0},a:{div:!0,DIV:!0},A:{div:!0,DIV:!0},b:{div:!0,DIV:!0},B:{div:!0,DIV:!0},i:{div:!0,DIV:!0},I:{div:!0,DIV:!0},p:{div:!0,DIV:!0},P:{div:!0,DIV:!0},td:{tr:!0,table:!0,TR:!0,TABLE:!0},TD:{tr:!0,table:!0,TR:!0,TABLE:!0},th:{tr:!0,table:!0,TR:!0,TABLE:!0},TH:{tr:!0,table:!0,TR:!0,TABLE:!0}},A="documentfragmentcontainer";function S(e,t){void 0===t&&(t={lowerCaseTagName:!1,comment:!1});var r=t.blockTextElements||{script:!0,noscript:!0,style:!0,pre:!0},n=Object.keys(r),i=n.map((function(e){return new RegExp("^".concat(e,"$"),"i")})),o=n.filter((function(e){return r[e]})).map((function(e){return new RegExp("^".concat(e,"$"),"i")}));function a(e){return o.some((function(t){return t.test(e)}))}function s(e){return i.some((function(t){return t.test(e)}))}var c,l=function(e,t){return[e-S,t-S]},p=new w(null,{},"",null,[0,e.length]),d=p,g=[p],m=-1,v=void 0;e="<".concat(A,">").concat(e,"");for(var b=t.lowerCaseTagName,y=e.length-(A.length+2),S=A.length+2;c=_.exec(e);){var C=c[0],N=c[1],L=c[2],D=c[3],O=c[4],q=C.length,B=_.lastIndex-q,R=_.lastIndex;if(m>-1&&m+q"),K=b?e.toLocaleLowerCase().indexOf(G,_.lastIndex):e.indexOf(G,_.lastIndex),$=-1===K?y:K;a(L)&&(P=e.substring(V,$)).length>0&&/\S/.test(P)&&d.appendChild(new h.default(P,d,l(V,$))),-1===K?m=_.lastIndex=e.length+1:(m=_.lastIndex=K+G.length,N="/")}}if(N||O||x[L])for(;;){if("a"!==L&&"A"!==L||(v=void 0),d.rawTagName===L){d.range[1]=l(-1,Math.max(m,R))[1],g.pop(),d=(0,u.default)(g);break}if(H=d.tagName,!T[H]||!T[H][L])break;g.pop(),d=(0,u.default)(g)}}else if(t.comment){P=e.substring(B+4,R-3);d.appendChild(new f.default(P,d,l(B,R)))}}return g}function C(e,t){void 0===t&&(t={lowerCaseTagName:!1,comment:!1});for(var r=S(e,t),n=r[0],i=function(){var e=r.pop(),n=(0,u.default)(r);e.parentNode&&e.parentNode.parentNode&&(e.parentNode===n&&e.tagName===n.tagName?!0!==t.parseNoneClosedTags&&(n.removeChild(e),e.childNodes.forEach((function(e){n.parentNode.appendChild(e)})),r.pop()):!0!==t.parseNoneClosedTags&&(n.removeChild(e),e.childNodes.forEach((function(e){n.appendChild(e)}))))};r.length>1;)i();return n}function N(e,t){return e.map((function(e){return e.parentNode=t,e}))}t.base_parse=S,t.parse=C},4936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6492),i=function(){function e(e,t){void 0===e&&(e=null),this.parentNode=e,this.childNodes=[],Object.defineProperty(this,"range",{enumerable:!1,writable:!0,configurable:!0,value:null!=t?t:[-1,-1]})}return e.prototype.remove=function(){var e=this;if(this.parentNode){var t=this.parentNode.childNodes;this.parentNode.childNodes=t.filter((function(t){return e!==t})),this.parentNode=null}return this},Object.defineProperty(e.prototype,"innerText",{get:function(){return this.rawText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{get:function(){return(0,n.decode)(this.rawText)},set:function(e){this.rawText=(0,n.encode)(e)},enumerable:!1,configurable:!0}),e}();t.default=i},7923:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(6492),s=o(r(4936)),c=o(r(9979)),l=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;return i.nodeType=c.default.TEXT_NODE,i._rawText=t,i}return i(t,e),t.prototype.clone=function(){return new t(this._rawText,null)},Object.defineProperty(t.prototype,"rawText",{get:function(){return this._rawText},set:function(e){this._rawText=e,this._trimmedRawText=void 0,this._trimmedText=void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trimmedRawText",{get:function(){return void 0!==this._trimmedRawText||(this._trimmedRawText=u(this.rawText)),this._trimmedRawText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trimmedText",{get:function(){return void 0!==this._trimmedText||(this._trimmedText=u(this.text)),this._trimmedText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return(0,a.decode)(this.rawText)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isWhitespace",{get:function(){return/^(\s| )*$/.test(this.rawText)},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return this.rawText},t}(s.default);function u(e){for(var t,r,n=0;n>=0&&n0&&/[^\S\r\n]/.test(e[t-1]),o=r{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE"}(r||(r={})),t.default=r},8821:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(4382);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.parse}})},6389:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4382);t.default=function(e,t){void 0===t&&(t={lowerCaseTagName:!1,comment:!1});var r=(0,n.base_parse)(e,t);return Boolean(1===r.length)}},9769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compile=void 0;var n=r(1073);t.compile=function(e){var t=e[0],r=e[1]-1;if(r<0&&t<=0)return n.falseFunc;if(-1===t)return function(e){return e<=r};if(0===t)return function(e){return e===r};if(1===t)return r<0?n.trueFunc:function(e){return e>=r};var i=Math.abs(t),o=(r%i+i)%i;return t>1?function(e){return e>=r&&e%i===o}:function(e){return e<=r&&e%i===o}}},7540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compile=t.parse=void 0;var n=r(7766);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return n.parse}});var i=r(9769);Object.defineProperty(t,"compile",{enumerable:!0,get:function(){return i.compile}}),t.default=function(e){return(0,i.compile)((0,n.parse)(e))}},7766:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;var r=new Set([9,10,12,13,32]),n="0".charCodeAt(0),i="9".charCodeAt(0);t.parse=function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];var t=0,o=0,a=c(),s=l();if(t=n&&e.charCodeAt(t)<=i;)o=10*o+(e.charCodeAt(t)-n),t++;return t===r?null:o}function u(){for(;t":">","\\":"\"},a=/[&"'<>\\]/g;function s(e,t){return i.hasOwnProperty.call(e,t)}function c(e){return o[e]}function l(e,t,r){var n,i,o;if(e instanceof Error&&(e=(i=e).name+": "+i.message),Object.setPrototypeOf?(n=new Error(e),Object.setPrototypeOf(n,l.prototype)):(n=this,Object.defineProperty(n,"message",{enumerable:!1,writable:!0,value:e})),Object.defineProperty(n,"name",{value:"Template render error"}),Error.captureStackTrace&&Error.captureStackTrace(n,this.constructor),i){var a=Object.getOwnPropertyDescriptor(i,"stack");(o=a&&(a.get||function(){return a.value}))||(o=function(){return i.stack})}else{var s=new Error(e).stack;o=function(){return s}}return Object.defineProperty(n,"stack",{get:function(){return o.call(n)}}),Object.defineProperty(n,"cause",{value:i}),n.lineno=t,n.colno=r,n.firstUpdate=!0,n.Update=function(e){var t="("+(e||"unknown path")+")";return this.firstUpdate&&(this.lineno&&this.colno?t+=" [Line "+this.lineno+", Column "+this.colno+"]":this.lineno&&(t+=" [Line "+this.lineno+"]")),t+="\n ",this.firstUpdate&&(t+=" "),this.message=t+(this.message||""),this.firstUpdate=!1,this},n}function u(e){return"[object Function]"===i.toString.call(e)}function p(e){return"[object Array]"===i.toString.call(e)}function f(e){return"[object String]"===i.toString.call(e)}function d(e){return"[object Object]"===i.toString.call(e)}function h(e){var t,r=(t=e)?"string"==typeof t?t.split("."):[t]:[];return function(e){for(var t=e,n=0;ne.length)a=i.slice(0,e.length),i.slice(a.length,l).forEach((function(e,r){r2?i-2:0),a=2;a0||!r)&&process.stdout.write(" ".repeat(t));var o=i===n.length-1?"":"\n";process.stdout.write(""+e+o)}))}e.exports={Node:c,Root:p,NodeList:u,Value:l,Literal:f,Symbol:d,Group:h,Array:g,Pair:m,Dict:v,Output:F,Capture:U,TemplateData:H,If:y,IfAsync:w,InlineIf:_,For:k,AsyncEach:x,AsyncAll:E,Macro:T,Caller:A,Import:S,FromImport:C,FunCall:N,Filter:L,FilterAsync:D,KeywordArgs:O,Block:q,Super:B,Extends:R,Include:P,Set:j,Switch:M,Case:I,LookupVal:b,BinOp:z,In:G,Is:K,Or:$,And:W,Not:Y,Add:J,Concat:X,Sub:Z,Mul:Q,Div:ee,FloorDiv:te,Mod:re,Pow:ne,Neg:ie,Pos:oe,Compare:ae,CompareOperand:se,CallExtension:ce,CallExtensionAsync:le,printNodes:function e(t,r){if(r=r||0,ue(t.typename+": ",r),t instanceof u)ue("\n"),t.children.forEach((function(t){e(t,r+2)}));else if(t instanceof ce)ue(t.extName+"."+t.prop+"\n"),t.args&&e(t.args,r+2),t.contentArgs&&t.contentArgs.forEach((function(t){e(t,r+2)}));else{var n=[],i=null;t.iterFields((function(e,t){e instanceof c?n.push([t,e]):(i=i||{})[t]=e})),i?ue(JSON.stringify(i,null,2)+"\n",null,!0):ue("\n"),n.forEach((function(t){var n=t[0],i=t[1];ue("["+n+"] =>",r+2),e(i,r+4)}))}}}},function(e,t){},function(e,t,r){"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}var i=r(8),o=r(17),a=r(3),s=r(0).TemplateError,c=r(2).Frame,l=r(1).Obj,u={"==":"==","===":"===","!=":"!=","!==":"!==","<":"<",">":">","<=":"<=",">=":">="},p=function(e){var t,r;function i(){return e.apply(this,arguments)||this}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,n(t,r);var o=i.prototype;return o.init=function(e,t){this.templateName=e,this.codebuf=[],this.lastId=0,this.buffer=null,this.bufferStack=[],this._scopeClosers="",this.inBlock=!1,this.throwOnUndefined=t},o.fail=function(e,t,r){throw void 0!==t&&(t+=1),void 0!==r&&(r+=1),new s(e,t,r)},o._pushBuffer=function(){var e=this._tmpid();return this.bufferStack.push(this.buffer),this.buffer=e,this._emit("var "+this.buffer+' = "";'),e},o._popBuffer=function(){this.buffer=this.bufferStack.pop()},o._emit=function(e){this.codebuf.push(e)},o._emitLine=function(e){this._emit(e+"\n")},o._emitLines=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n0&&i._emit(","),i.compile(e,t)})),n&&this._emit(n)},o._compileExpression=function(e,t){this.assertType(e,a.Literal,a.Symbol,a.Group,a.Array,a.Dict,a.FunCall,a.Caller,a.Filter,a.LookupVal,a.Compare,a.InlineIf,a.In,a.Is,a.And,a.Or,a.Not,a.Add,a.Concat,a.Sub,a.Mul,a.Div,a.FloorDiv,a.Mod,a.Pow,a.Neg,a.Pos,a.Compare,a.NodeList),this.compile(e,t)},o.assertType=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&n._emit(","),e){n._emitLine("function(cb) {"),n._emitLine("if(!cb) { cb = function(err) { if(err) { throw err; }}}");var i=n._pushBuffer();n._withScopedSyntax((function(){n.compile(e,t),n._emitLine("cb(null, "+i+");")})),n._popBuffer(),n._emitLine("return "+i+";"),n._emitLine("}")}else n._emit("null")})),r){var c=this._tmpid();this._emitLine(", "+this._makeCallback(c)),this._emitLine(this.buffer+" += runtime.suppressValue("+c+", "+s+" && env.opts.autoescape);"),this._addScopeLevel()}else this._emit(")"),this._emit(", "+s+" && env.opts.autoescape);\n")},o.compileCallExtensionAsync=function(e,t){this.compileCallExtension(e,t,!0)},o.compileNodeList=function(e,t){this._compileChildren(e,t)},o.compileLiteral=function(e){if("string"==typeof e.value){var t=e.value.replace(/\\/g,"\\\\");t=(t=(t=(t=(t=t.replace(/"/g,'\\"')).replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t")).replace(/\u2028/g,"\\u2028"),this._emit('"'+t+'"')}else null===e.value?this._emit("null"):this._emit(e.value.toString())},o.compileSymbol=function(e,t){var r=e.value,n=t.lookup(r);n?this._emit(n):this._emit('runtime.contextOrFrameLookup(context, frame, "'+r+'")')},o.compileGroup=function(e,t){this._compileAggregate(e,t,"(",")")},o.compileArray=function(e,t){this._compileAggregate(e,t,"[","]")},o.compileDict=function(e,t){this._compileAggregate(e,t,"{","}")},o.compilePair=function(e,t){var r=e.key,n=e.value;r instanceof a.Symbol?r=new a.Literal(r.lineno,r.colno,r.value):r instanceof a.Literal&&"string"==typeof r.value||this.fail("compilePair: Dict keys must be strings or names",r.lineno,r.colno),this.compile(r,t),this._emit(": "),this._compileExpression(n,t)},o.compileInlineIf=function(e,t){this._emit("("),this.compile(e.cond,t),this._emit("?"),this.compile(e.body,t),this._emit(":"),null!==e.else_?this.compile(e.else_,t):this._emit('""'),this._emit(")")},o.compileIn=function(e,t){this._emit("runtime.inOperator("),this.compile(e.left,t),this._emit(","),this.compile(e.right,t),this._emit(")")},o.compileIs=function(e,t){var r=e.right.name?e.right.name.value:e.right.value;this._emit('env.getTest("'+r+'").call(context, '),this.compile(e.left,t),e.right.args&&(this._emit(","),this.compile(e.right.args,t)),this._emit(") === true")},o._binOpEmitter=function(e,t,r){this.compile(e.left,t),this._emit(r),this.compile(e.right,t)},o.compileOr=function(e,t){return this._binOpEmitter(e,t," || ")},o.compileAnd=function(e,t){return this._binOpEmitter(e,t," && ")},o.compileAdd=function(e,t){return this._binOpEmitter(e,t," + ")},o.compileConcat=function(e,t){return this._binOpEmitter(e,t,' + "" + ')},o.compileSub=function(e,t){return this._binOpEmitter(e,t," - ")},o.compileMul=function(e,t){return this._binOpEmitter(e,t," * ")},o.compileDiv=function(e,t){return this._binOpEmitter(e,t," / ")},o.compileMod=function(e,t){return this._binOpEmitter(e,t," % ")},o.compileNot=function(e,t){this._emit("!"),this.compile(e.target,t)},o.compileFloorDiv=function(e,t){this._emit("Math.floor("),this.compile(e.left,t),this._emit(" / "),this.compile(e.right,t),this._emit(")")},o.compilePow=function(e,t){this._emit("Math.pow("),this.compile(e.left,t),this._emit(", "),this.compile(e.right,t),this._emit(")")},o.compileNeg=function(e,t){this._emit("-"),this.compile(e.target,t)},o.compilePos=function(e,t){this._emit("+"),this.compile(e.target,t)},o.compileCompare=function(e,t){var r=this;this.compile(e.expr,t),e.ops.forEach((function(e){r._emit(" "+u[e.type]+" "),r.compile(e.expr,t)}))},o.compileLookupVal=function(e,t){this._emit("runtime.memberLookup(("),this._compileExpression(e.target,t),this._emit("),"),this._compileExpression(e.val,t),this._emit(")")},o._getNodeName=function(e){switch(e.typename){case"Symbol":return e.value;case"FunCall":return"the return value of ("+this._getNodeName(e.name)+")";case"LookupVal":return this._getNodeName(e.target)+'["'+this._getNodeName(e.val)+'"]';case"Literal":return e.value.toString();default:return"--expression--"}},o.compileFunCall=function(e,t){this._emit("(lineno = "+e.lineno+", colno = "+e.colno+", "),this._emit("runtime.callWrap("),this._compileExpression(e.name,t),this._emit(', "'+this._getNodeName(e.name).replace(/"/g,'\\"')+'", context, '),this._compileAggregate(e.args,t,"[","])"),this._emit(")")},o.compileFilter=function(e,t){var r=e.name;this.assertType(r,a.Symbol),this._emit('env.getFilter("'+r.value+'").call(context, '),this._compileAggregate(e.args,t),this._emit(")")},o.compileFilterAsync=function(e,t){var r=e.name,n=e.symbol.value;this.assertType(r,a.Symbol),t.set(n,n),this._emit('env.getFilter("'+r.value+'").call(context, '),this._compileAggregate(e.args,t),this._emitLine(", "+this._makeCallback(n)),this._addScopeLevel()},o.compileKeywordArgs=function(e,t){this._emit("runtime.makeKeywordArgs("),this.compileDict(e,t),this._emit(")")},o.compileSet=function(e,t){var r=this,n=[];e.targets.forEach((function(e){var i=e.value,o=t.lookup(i);null==o&&(o=r._tmpid(),r._emitLine("var "+o+";")),n.push(o)})),e.value?(this._emit(n.join(" = ")+" = "),this._compileExpression(e.value,t),this._emitLine(";")):(this._emit(n.join(" = ")+" = "),this.compile(e.body,t),this._emitLine(";")),e.targets.forEach((function(e,t){var i=n[t],o=e.value;r._emitLine('frame.set("'+o+'", '+i+", true);"),r._emitLine("if(frame.topLevel) {"),r._emitLine('context.setVariable("'+o+'", '+i+");"),r._emitLine("}"),"_"!==o.charAt(0)&&(r._emitLine("if(frame.topLevel) {"),r._emitLine('context.addExport("'+o+'", '+i+");"),r._emitLine("}"))}))},o.compileSwitch=function(e,t){var r=this;this._emit("switch ("),this.compile(e.expr,t),this._emit(") {"),e.cases.forEach((function(e,n){r._emit("case "),r.compile(e.cond,t),r._emit(": "),r.compile(e.body,t),e.body.children.length&&r._emitLine("break;")})),e.default&&(this._emit("default:"),this.compile(e.default,t)),this._emit("}")},o.compileIf=function(e,t,r){var n=this;this._emit("if("),this._compileExpression(e.cond,t),this._emitLine(") {"),this._withScopedSyntax((function(){n.compile(e.body,t),r&&n._emit("cb()")})),e.else_?(this._emitLine("}\nelse {"),this._withScopedSyntax((function(){n.compile(e.else_,t),r&&n._emit("cb()")}))):r&&(this._emitLine("}\nelse {"),this._emit("cb()")),this._emitLine("}")},o.compileIfAsync=function(e,t){this._emit("(function(cb) {"),this.compileIf(e,t,!0),this._emit("})("+this._makeCallback()),this._addScopeLevel()},o._emitLoopBindings=function(e,t,r,n){var i=this;[{name:"index",val:r+" + 1"},{name:"index0",val:r},{name:"revindex",val:n+" - "+r},{name:"revindex0",val:n+" - "+r+" - 1"},{name:"first",val:r+" === 0"},{name:"last",val:r+" === "+n+" - 1"},{name:"length",val:n}].forEach((function(e){i._emitLine('frame.set("loop.'+e.name+'", '+e.val+");")}))},o.compileFor=function(e,t){var r=this,n=this._tmpid(),i=this._tmpid(),o=this._tmpid();if(t=t.push(),this._emitLine("frame = frame.push();"),this._emit("var "+o+" = "),this._compileExpression(e.arr,t),this._emitLine(";"),this._emit("if("+o+") {"),this._emitLine(o+" = runtime.fromIterator("+o+");"),e.name instanceof a.Array){this._emitLine("var "+n+";"),this._emitLine("if(runtime.isArray("+o+")) {"),this._emitLine("var "+i+" = "+o+".length;"),this._emitLine("for("+n+"=0; "+n+" < "+o+".length; "+n+"++) {"),e.name.children.forEach((function(i,a){var s=r._tmpid();r._emitLine("var "+s+" = "+o+"["+n+"]["+a+"];"),r._emitLine('frame.set("'+i+'", '+o+"["+n+"]["+a+"]);"),t.set(e.name.children[a].value,s)})),this._emitLoopBindings(e,o,n,i),this._withScopedSyntax((function(){r.compile(e.body,t)})),this._emitLine("}"),this._emitLine("} else {");var s=e.name.children,c=s[0],l=s[1],u=this._tmpid(),p=this._tmpid();t.set(c.value,u),t.set(l.value,p),this._emitLine(n+" = -1;"),this._emitLine("var "+i+" = runtime.keys("+o+").length;"),this._emitLine("for(var "+u+" in "+o+") {"),this._emitLine(n+"++;"),this._emitLine("var "+p+" = "+o+"["+u+"];"),this._emitLine('frame.set("'+c.value+'", '+u+");"),this._emitLine('frame.set("'+l.value+'", '+p+");"),this._emitLoopBindings(e,o,n,i),this._withScopedSyntax((function(){r.compile(e.body,t)})),this._emitLine("}"),this._emitLine("}")}else{var f=this._tmpid();t.set(e.name.value,f),this._emitLine("var "+i+" = "+o+".length;"),this._emitLine("for(var "+n+"=0; "+n+" < "+o+".length; "+n+"++) {"),this._emitLine("var "+f+" = "+o+"["+n+"];"),this._emitLine('frame.set("'+e.name.value+'", '+f+");"),this._emitLoopBindings(e,o,n,i),this._withScopedSyntax((function(){r.compile(e.body,t)})),this._emitLine("}")}this._emitLine("}"),e.else_&&(this._emitLine("if (!"+i+") {"),this.compile(e.else_,t),this._emitLine("}")),this._emitLine("frame = frame.pop();")},o._compileAsyncLoop=function(e,t,r){var n=this,i=this._tmpid(),o=this._tmpid(),s=this._tmpid(),c=r?"asyncAll":"asyncEach";if(t=t.push(),this._emitLine("frame = frame.push();"),this._emit("var "+s+" = runtime.fromIterator("),this._compileExpression(e.arr,t),this._emitLine(");"),e.name instanceof a.Array){var l=e.name.children.length;this._emit("runtime."+c+"("+s+", "+l+", function("),e.name.children.forEach((function(e){n._emit(e.value+",")})),this._emit(i+","+o+",next) {"),e.name.children.forEach((function(e){var r=e.value;t.set(r,r),n._emitLine('frame.set("'+r+'", '+r+");")}))}else{var u=e.name.value;this._emitLine("runtime."+c+"("+s+", 1, function("+u+", "+i+", "+o+",next) {"),this._emitLine('frame.set("'+u+'", '+u+");"),t.set(u,u)}this._emitLoopBindings(e,s,i,o),this._withScopedSyntax((function(){var o;r&&(o=n._pushBuffer()),n.compile(e.body,t),n._emitLine("next("+i+(o?","+o:"")+");"),r&&n._popBuffer()}));var p=this._tmpid();this._emitLine("}, "+this._makeCallback(p)),this._addScopeLevel(),r&&this._emitLine(this.buffer+" += "+p+";"),e.else_&&(this._emitLine("if (!"+s+".length) {"),this.compile(e.else_,t),this._emitLine("}")),this._emitLine("frame = frame.pop();")},o.compileAsyncEach=function(e,t){this._compileAsyncLoop(e,t)},o.compileAsyncAll=function(e,t){this._compileAsyncLoop(e,t,!0)},o._compileMacro=function(e,t){var r=this,n=[],i=null,o="macro_"+this._tmpid(),s=void 0!==t;e.args.children.forEach((function(t,o){o===e.args.children.length-1&&t instanceof a.Dict?i=t:(r.assertType(t,a.Symbol),n.push(t))}));var l,u=[].concat(n.map((function(e){return"l_"+e.value})),["kwargs"]),p=n.map((function(e){return'"'+e.value+'"'})),f=(i&&i.children||[]).map((function(e){return'"'+e.key.value+'"'}));l=s?t.push(!0):new c,this._emitLines("var "+o+" = runtime.makeMacro(","["+p.join(", ")+"], ","["+f.join(", ")+"], ","function ("+u.join(", ")+") {","var callerFrame = frame;","frame = "+(s?"frame.push(true);":"new runtime.Frame();"),"kwargs = kwargs || {};",'if (Object.prototype.hasOwnProperty.call(kwargs, "caller")) {','frame.set("caller", kwargs.caller); }'),n.forEach((function(e){r._emitLine('frame.set("'+e.value+'", l_'+e.value+");"),l.set(e.value,"l_"+e.value)})),i&&i.children.forEach((function(e){var t=e.key.value;r._emit('frame.set("'+t+'", '),r._emit('Object.prototype.hasOwnProperty.call(kwargs, "'+t+'")'),r._emit(' ? kwargs["'+t+'"] : '),r._compileExpression(e.value,l),r._emit(");")}));var d=this._pushBuffer();return this._withScopedSyntax((function(){r.compile(e.body,l)})),this._emitLine("frame = "+(s?"frame.pop();":"callerFrame;")),this._emitLine("return new runtime.SafeString("+d+");"),this._emitLine("});"),this._popBuffer(),o},o.compileMacro=function(e,t){var r=this._compileMacro(e),n=e.name.value;t.set(n,r),t.parent?this._emitLine('frame.set("'+n+'", '+r+");"):("_"!==e.name.value.charAt(0)&&this._emitLine('context.addExport("'+n+'");'),this._emitLine('context.setVariable("'+n+'", '+r+");"))},o.compileCaller=function(e,t){this._emit("(function (){");var r=this._compileMacro(e,t);this._emit("return "+r+";})()")},o._compileGetTemplate=function(e,t,r,n){var i=this._tmpid(),o=this._templateName(),a=this._makeCallback(i),s=r?"true":"false",c=n?"true":"false";return this._emit("env.getTemplate("),this._compileExpression(e.template,t),this._emitLine(", "+s+", "+o+", "+c+", "+a),i},o.compileImport=function(e,t){var r=e.target.value,n=this._compileGetTemplate(e,t,!1,!1);this._addScopeLevel(),this._emitLine(n+".getExported("+(e.withContext?"context.getVariables(), frame, ":"")+this._makeCallback(n)),this._addScopeLevel(),t.set(r,n),t.parent?this._emitLine('frame.set("'+r+'", '+n+");"):this._emitLine('context.setVariable("'+r+'", '+n+");")},o.compileFromImport=function(e,t){var r=this,n=this._compileGetTemplate(e,t,!1,!1);this._addScopeLevel(),this._emitLine(n+".getExported("+(e.withContext?"context.getVariables(), frame, ":"")+this._makeCallback(n)),this._addScopeLevel(),e.names.children.forEach((function(e){var i,o,s=r._tmpid();e instanceof a.Pair?(i=e.key.value,o=e.value.value):o=i=e.value,r._emitLine("if(Object.prototype.hasOwnProperty.call("+n+', "'+i+'")) {'),r._emitLine("var "+s+" = "+n+"."+i+";"),r._emitLine("} else {"),r._emitLine("cb(new Error(\"cannot import '"+i+"'\")); return;"),r._emitLine("}"),t.set(o,s),t.parent?r._emitLine('frame.set("'+o+'", '+s+");"):r._emitLine('context.setVariable("'+o+'", '+s+");")}))},o.compileBlock=function(e){var t=this._tmpid();this.inBlock||this._emit('(parentTemplate ? function(e, c, f, r, cb) { cb(""); } : '),this._emit('context.getBlock("'+e.name.value+'")'),this.inBlock||this._emit(")"),this._emitLine("(env, context, frame, runtime, "+this._makeCallback(t)),this._emitLine(this.buffer+" += "+t+";"),this._addScopeLevel()},o.compileSuper=function(e,t){var r=e.blockName.value,n=e.symbol.value,i=this._makeCallback(n);this._emitLine('context.getSuper(env, "'+r+'", b_'+r+", frame, runtime, "+i),this._emitLine(n+" = runtime.markSafe("+n+");"),this._addScopeLevel(),t.set(n,n)},o.compileExtends=function(e,t){var r=this._tmpid(),n=this._compileGetTemplate(e,t,!0,!1);this._emitLine("parentTemplate = "+n),this._emitLine("for(var "+r+" in parentTemplate.blocks) {"),this._emitLine("context.addBlock("+r+", parentTemplate.blocks["+r+"]);"),this._emitLine("}"),this._addScopeLevel()},o.compileInclude=function(e,t){this._emitLine("var tasks = [];"),this._emitLine("tasks.push("),this._emitLine("function(callback) {");var r=this._compileGetTemplate(e,t,!1,e.ignoreMissing);this._emitLine("callback(null,"+r+");});"),this._emitLine("});");var n=this._tmpid();this._emitLine("tasks.push("),this._emitLine("function(template, callback){"),this._emitLine("template.render(context.getVariables(), frame, "+this._makeCallback(n)),this._emitLine("callback(null,"+n+");});"),this._emitLine("});"),this._emitLine("tasks.push("),this._emitLine("function(result, callback){"),this._emitLine(this.buffer+" += result;"),this._emitLine("callback(null);"),this._emitLine("});"),this._emitLine("env.waterfall(tasks, function(){"),this._addScopeLevel()},o.compileTemplateData=function(e,t){this.compileLiteral(e,t)},o.compileCapture=function(e,t){var r=this,n=this.buffer;this.buffer="output",this._emitLine("(function() {"),this._emitLine('var output = "";'),this._withScopedSyntax((function(){r.compile(e.body,t)})),this._emitLine("return output;"),this._emitLine("})()"),this.buffer=n},o.compileOutput=function(e,t){var r=this;e.children.forEach((function(n){n instanceof a.TemplateData?n.value&&(r._emit(r.buffer+" += "),r.compileLiteral(n,t),r._emitLine(";")):(r._emit(r.buffer+" += runtime.suppressValue("),r.throwOnUndefined&&r._emit("runtime.ensureDefined("),r.compile(n,t),r.throwOnUndefined&&r._emit(","+e.lineno+","+e.colno+")"),r._emit(", env.opts.autoescape);\n"))}))},o.compileRoot=function(e,t){var r=this;t&&this.fail("compileRoot: root node can't have frame"),t=new c,this._emitFuncBegin(e,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(e,t),this._emitLine("if(parentTemplate) {"),this._emitLine("parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);"),this._emitLine("} else {"),this._emitLine("cb(null, "+this.buffer+");"),this._emitLine("}"),this._emitFuncEnd(!0),this.inBlock=!0;var n=[],i=e.findAll(a.Block);i.forEach((function(e,t){var i=e.name.value;if(-1!==n.indexOf(i))throw new Error('Block "'+i+'" defined more than once.');n.push(i),r._emitFuncBegin(e,"b_"+i);var o=new c;r._emitLine("var frame = frame.push(true);"),r.compile(e.body,o),r._emitFuncEnd()})),this._emitLine("return {"),i.forEach((function(e,t){var n="b_"+e.name.value;r._emitLine(n+": "+n+",")})),this._emitLine("root: root\n};")},o.compile=function(e,t){var r=this["compile"+e.typename];r?r.call(this,e,t):this.fail("compile: Cannot compile node: "+e.typename,e.lineno,e.colno)},o.getCode=function(){return this.codebuf.join("")},i}(l);e.exports={compile:function(e,t,r,n,a){void 0===a&&(a={});var s=new p(n,a.throwOnUndefined),c=(r||[]).map((function(e){return e.preprocess})).filter((function(e){return!!e})).reduce((function(e,t){return t(e)}),e);return s.compile(o.transform(i.parse(c,r,a),t,n)),s.getCode()},Compiler:p}},function(e,t,r){"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}var i=r(4),o=r(1).EmitterObj;e.exports=function(e){var t,r;function o(){return e.apply(this,arguments)||this}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,n(t,r);var a=o.prototype;return a.resolve=function(e,t){return i.resolve(i.dirname(e),t)},a.isRelative=function(e){return 0===e.indexOf("./")||0===e.indexOf("../")},o}(o)},function(e,t,r){"use strict";function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var o=r(12),a=r(15),s=r(0),c=r(5),l=r(18),u=r(10),p=u.FileSystemLoader,f=u.WebLoader,d=u.PrecompiledLoader,h=r(20),g=r(21),m=r(1),v=m.Obj,b=m.EmitterObj,y=r(2),w=y.handleError,_=y.Frame,k=r(22);function x(e,t,r){o((function(){e(t,r)}))}var E={type:"code",obj:{root:function(e,t,r,n,i){try{i(null,"")}catch(e){i(w(e,null,null))}}}},T=function(e){function t(){return e.apply(this,arguments)||this}n(t,e);var r=t.prototype;return r.init=function(e,t){var r=this;t=this.opts=t||{},this.opts.dev=!!t.dev,this.opts.autoescape=null==t.autoescape||t.autoescape,this.opts.throwOnUndefined=!!t.throwOnUndefined,this.opts.trimBlocks=!!t.trimBlocks,this.opts.lstripBlocks=!!t.lstripBlocks,this.loaders=[],e?this.loaders=s.isArray(e)?e:[e]:p?this.loaders=[new p("views")]:f&&(this.loaders=[new f("/views")]),"undefined"!=typeof window&&window.nunjucksPrecompiled&&this.loaders.unshift(new d(window.nunjucksPrecompiled)),this._initLoaders(),this.globals=g(),this.filters={},this.tests={},this.asyncFilters=[],this.extensions={},this.extensionsList=[],s._entries(l).forEach((function(e){var t=e[0],n=e[1];return r.addFilter(t,n)})),s._entries(h).forEach((function(e){var t=e[0],n=e[1];return r.addTest(t,n)}))},r._initLoaders=function(){var e=this;this.loaders.forEach((function(t){t.cache={},"function"==typeof t.on&&(t.on("update",(function(r,n){t.cache[r]=null,e.emit("update",r,n,t)})),t.on("load",(function(r,n){e.emit("load",r,n,t)})))}))},r.invalidateCache=function(){this.loaders.forEach((function(e){e.cache={}}))},r.addExtension=function(e,t){return t.__name=e,this.extensions[e]=t,this.extensionsList.push(t),this},r.removeExtension=function(e){var t=this.getExtension(e);t&&(this.extensionsList=s.without(this.extensionsList,t),delete this.extensions[e])},r.getExtension=function(e){return this.extensions[e]},r.hasExtension=function(e){return!!this.extensions[e]},r.addGlobal=function(e,t){return this.globals[e]=t,this},r.getGlobal=function(e){if(void 0===this.globals[e])throw new Error("global not found: "+e);return this.globals[e]},r.addFilter=function(e,t,r){var n=t;return r&&this.asyncFilters.push(e),this.filters[e]=n,this},r.getFilter=function(e){if(!this.filters[e])throw new Error("filter not found: "+e);return this.filters[e]},r.addTest=function(e,t){return this.tests[e]=t,this},r.getTest=function(e){if(!this.tests[e])throw new Error("test not found: "+e);return this.tests[e]},r.resolveTemplate=function(e,t,r){return e.isRelative&&t&&e.isRelative(r)&&e.resolve?e.resolve(t,r):r},r.getTemplate=function(e,t,r,n,i){var o,a=this,c=this,l=null;if(e&&e.raw&&(e=e.raw),s.isFunction(r)&&(i=r,r=null,t=t||!1),s.isFunction(t)&&(i=t,t=!1),e instanceof S)l=e;else{if("string"!=typeof e)throw new Error("template names must be a string: "+e);for(var u=0;u0&&!this.skip(i.TOKEN_COMMA)&&this.fail("parseFrom: expected comma",e.lineno,e.colno);var s=this.parsePrimary();if("_"===s.value.charAt(0)&&this.fail("parseFrom: names starting with an underscore cannot be imported",s.lineno,s.colno),this.skipSymbol("as")){var c=this.parsePrimary();n.addChild(new o.Pair(s.lineno,s.colno,s,c))}else n.addChild(s);r=this.parseWithContext()}return new o.FromImport(e.lineno,e.colno,t,n,r)},c.parseBlock=function(){var e=this.peekToken();this.skipSymbol("block")||this.fail("parseBlock: expected block",e.lineno,e.colno);var t=new o.Block(e.lineno,e.colno);t.name=this.parsePrimary(),t.name instanceof o.Symbol||this.fail("parseBlock: variable name expected",e.lineno,e.colno),this.advanceAfterBlockEnd(e.value),t.body=this.parseUntilBlocks("endblock"),this.skipSymbol("endblock"),this.skipSymbol(t.name.value);var r=this.peekToken();return r||this.fail("parseBlock: expected endblock, got end of file"),this.advanceAfterBlockEnd(r.value),t},c.parseExtends=function(){var e="extends",t=this.peekToken();this.skipSymbol(e)||this.fail("parseTemplateRef: expected "+e);var r=new o.Extends(t.lineno,t.colno);return r.template=this.parseExpression(),this.advanceAfterBlockEnd(t.value),r},c.parseInclude=function(){var e="include",t=this.peekToken();this.skipSymbol(e)||this.fail("parseInclude: expected "+e);var r=new o.Include(t.lineno,t.colno);return r.template=this.parseExpression(),this.skipSymbol("ignore")&&this.skipSymbol("missing")&&(r.ignoreMissing=!0),this.advanceAfterBlockEnd(t.value),r},c.parseIf=function(){var e,t=this.peekToken();this.skipSymbol("if")||this.skipSymbol("elif")||this.skipSymbol("elseif")?e=new o.If(t.lineno,t.colno):this.skipSymbol("ifAsync")?e=new o.IfAsync(t.lineno,t.colno):this.fail("parseIf: expected if, elif, or elseif",t.lineno,t.colno),e.cond=this.parseExpression(),this.advanceAfterBlockEnd(t.value),e.body=this.parseUntilBlocks("elif","elseif","else","endif");var r=this.peekToken();switch(r&&r.value){case"elseif":case"elif":e.else_=this.parseIf();break;case"else":this.advanceAfterBlockEnd(),e.else_=this.parseUntilBlocks("endif"),this.advanceAfterBlockEnd();break;case"endif":e.else_=null,this.advanceAfterBlockEnd();break;default:this.fail("parseIf: expected elif, else, or endif, got end of file")}return e},c.parseSet=function(){var e=this.peekToken();this.skipSymbol("set")||this.fail("parseSet: expected set",e.lineno,e.colno);for(var t,r=new o.Set(e.lineno,e.colno,[]);(t=this.parsePrimary())&&(r.targets.push(t),this.skip(i.TOKEN_COMMA)););return this.skipValue(i.TOKEN_OPERATOR,"=")?(r.value=this.parseExpression(),this.advanceAfterBlockEnd(e.value)):this.skip(i.TOKEN_BLOCK_END)?(r.body=new o.Capture(e.lineno,e.colno,this.parseUntilBlocks("endset")),r.value=null,this.advanceAfterBlockEnd()):this.fail("parseSet: expected = or block end in set tag",e.lineno,e.colno),r},c.parseSwitch=function(){var e="switch",t="endswitch",r="case",n="default",i=this.peekToken();this.skipSymbol(e)||this.skipSymbol(r)||this.skipSymbol(n)||this.fail('parseSwitch: expected "switch," "case" or "default"',i.lineno,i.colno);var a=this.parseExpression();this.advanceAfterBlockEnd(e),this.parseUntilBlocks(r,n,t);var s,c=this.peekToken(),l=[];do{this.skipSymbol(r);var u=this.parseExpression();this.advanceAfterBlockEnd(e);var p=this.parseUntilBlocks(r,n,t);l.push(new o.Case(c.line,c.col,u,p)),c=this.peekToken()}while(c&&c.value===r);switch(c.value){case n:this.advanceAfterBlockEnd(),s=this.parseUntilBlocks(t),this.advanceAfterBlockEnd();break;case t:this.advanceAfterBlockEnd();break;default:this.fail('parseSwitch: expected "case," "default" or "endswitch," got EOF.')}return new o.Switch(i.lineno,i.colno,a,l,s)},c.parseStatement=function(){var e=this.peekToken();if(e.type!==i.TOKEN_SYMBOL&&this.fail("tag name expected",e.lineno,e.colno),this.breakOnBlocks&&-1!==s.indexOf(this.breakOnBlocks,e.value))return null;switch(e.value){case"raw":return this.parseRaw();case"verbatim":return this.parseRaw("verbatim");case"if":case"ifAsync":return this.parseIf();case"for":case"asyncEach":case"asyncAll":return this.parseFor();case"block":return this.parseBlock();case"extends":return this.parseExtends();case"include":return this.parseInclude();case"set":return this.parseSet();case"macro":return this.parseMacro();case"call":return this.parseCall();case"import":return this.parseImport();case"from":return this.parseFrom();case"filter":return this.parseFilterStatement();case"switch":return this.parseSwitch();default:if(this.extensions.length)for(var t=0;t0;){var c=a[0],l=a[1],u=a[2];u===e?n+=1:u===t&&(n-=1),0===n?(i+=l,this.tokens.backN(c.length-l.length)):i+=c}return new o.Output(s.lineno,s.colno,[new o.TemplateData(s.lineno,s.colno,i)])},c.parsePostfix=function(e){for(var t,r=this.peekToken();r;){if(r.type===i.TOKEN_LEFT_PAREN)e=new o.FunCall(r.lineno,r.colno,e,this.parseSignature());else if(r.type===i.TOKEN_LEFT_BRACKET)(t=this.parseAggregate()).children.length>1&&this.fail("invalid index"),e=new o.LookupVal(r.lineno,r.colno,e,t.children[0]);else{if(r.type!==i.TOKEN_OPERATOR||"."!==r.value)break;this.nextToken();var n=this.nextToken();n.type!==i.TOKEN_SYMBOL&&this.fail("expected name as lookup value, got "+n.value,n.lineno,n.colno),t=new o.Literal(n.lineno,n.colno,n.value),e=new o.LookupVal(r.lineno,r.colno,e,t)}r=this.peekToken()}return e},c.parseExpression=function(){return this.parseInlineIf()},c.parseInlineIf=function(){var e=this.parseOr();if(this.skipSymbol("if")){var t=this.parseOr(),r=e;(e=new o.InlineIf(e.lineno,e.colno)).body=r,e.cond=t,this.skipSymbol("else")?e.else_=this.parseOr():e.else_=null}return e},c.parseOr=function(){for(var e=this.parseAnd();this.skipSymbol("or");){var t=this.parseAnd();e=new o.Or(e.lineno,e.colno,e,t)}return e},c.parseAnd=function(){for(var e=this.parseNot();this.skipSymbol("and");){var t=this.parseNot();e=new o.And(e.lineno,e.colno,e,t)}return e},c.parseNot=function(){var e=this.peekToken();return this.skipSymbol("not")?new o.Not(e.lineno,e.colno,this.parseNot()):this.parseIn()},c.parseIn=function(){for(var e=this.parseIs();;){var t=this.nextToken();if(!t)break;var r=t.type===i.TOKEN_SYMBOL&&"not"===t.value;if(r||this.pushToken(t),!this.skipSymbol("in")){r&&this.pushToken(t);break}var n=this.parseIs();e=new o.In(e.lineno,e.colno,e,n),r&&(e=new o.Not(e.lineno,e.colno,e))}return e},c.parseIs=function(){var e=this.parseCompare();if(this.skipSymbol("is")){var t=this.skipSymbol("not"),r=this.parseCompare();e=new o.Is(e.lineno,e.colno,e,r),t&&(e=new o.Not(e.lineno,e.colno,e))}return e},c.parseCompare=function(){for(var e=["==","===","!=","!==","<",">","<=",">="],t=this.parseConcat(),r=[];;){var n=this.nextToken();if(!n)break;if(-1===e.indexOf(n.value)){this.pushToken(n);break}r.push(new o.CompareOperand(n.lineno,n.colno,this.parseConcat(),n.value))}return r.length?new o.Compare(r[0].lineno,r[0].colno,t,r):t},c.parseConcat=function(){for(var e=this.parseAdd();this.skipValue(i.TOKEN_TILDE,"~");){var t=this.parseAdd();e=new o.Concat(e.lineno,e.colno,e,t)}return e},c.parseAdd=function(){for(var e=this.parseSub();this.skipValue(i.TOKEN_OPERATOR,"+");){var t=this.parseSub();e=new o.Add(e.lineno,e.colno,e,t)}return e},c.parseSub=function(){for(var e=this.parseMul();this.skipValue(i.TOKEN_OPERATOR,"-");){var t=this.parseMul();e=new o.Sub(e.lineno,e.colno,e,t)}return e},c.parseMul=function(){for(var e=this.parseDiv();this.skipValue(i.TOKEN_OPERATOR,"*");){var t=this.parseDiv();e=new o.Mul(e.lineno,e.colno,e,t)}return e},c.parseDiv=function(){for(var e=this.parseFloorDiv();this.skipValue(i.TOKEN_OPERATOR,"/");){var t=this.parseFloorDiv();e=new o.Div(e.lineno,e.colno,e,t)}return e},c.parseFloorDiv=function(){for(var e=this.parseMod();this.skipValue(i.TOKEN_OPERATOR,"//");){var t=this.parseMod();e=new o.FloorDiv(e.lineno,e.colno,e,t)}return e},c.parseMod=function(){for(var e=this.parsePow();this.skipValue(i.TOKEN_OPERATOR,"%");){var t=this.parsePow();e=new o.Mod(e.lineno,e.colno,e,t)}return e},c.parsePow=function(){for(var e=this.parseUnary();this.skipValue(i.TOKEN_OPERATOR,"**");){var t=this.parseUnary();e=new o.Pow(e.lineno,e.colno,e,t)}return e},c.parseUnary=function(e){var t,r=this.peekToken();return t=this.skipValue(i.TOKEN_OPERATOR,"-")?new o.Neg(r.lineno,r.colno,this.parseUnary(!0)):this.skipValue(i.TOKEN_OPERATOR,"+")?new o.Pos(r.lineno,r.colno,this.parseUnary(!0)):this.parsePrimary(),e||(t=this.parseFilter(t)),t},c.parsePrimary=function(e){var t,r=this.nextToken(),n=null;if(r?r.type===i.TOKEN_STRING?t=r.value:r.type===i.TOKEN_INT?t=parseInt(r.value,10):r.type===i.TOKEN_FLOAT?t=parseFloat(r.value):r.type===i.TOKEN_BOOLEAN?"true"===r.value?t=!0:"false"===r.value?t=!1:this.fail("invalid boolean: "+r.value,r.lineno,r.colno):r.type===i.TOKEN_NONE?t=null:r.type===i.TOKEN_REGEX&&(t=new RegExp(r.value.body,r.value.flags)):this.fail("expected expression, got end of file"),void 0!==t?n=new o.Literal(r.lineno,r.colno,t):r.type===i.TOKEN_SYMBOL?n=new o.Symbol(r.lineno,r.colno,r.value):(this.pushToken(r),n=this.parseAggregate()),e||(n=this.parsePostfix(n)),n)return n;throw this.error("unexpected token: "+r.value,r.lineno,r.colno)},c.parseFilterName=function(){for(var e=this.expect(i.TOKEN_SYMBOL),t=e.value;this.skipValue(i.TOKEN_OPERATOR,".");)t+="."+this.expect(i.TOKEN_SYMBOL).value;return new o.Symbol(e.lineno,e.colno,t)},c.parseFilterArgs=function(e){return this.peekToken().type===i.TOKEN_LEFT_PAREN?this.parsePostfix(e).args.children:[]},c.parseFilter=function(e){for(;this.skip(i.TOKEN_PIPE);){var t=this.parseFilterName();e=new o.Filter(t.lineno,t.colno,t,new o.NodeList(t.lineno,t.colno,[e].concat(this.parseFilterArgs(e))))}return e},c.parseFilterStatement=function(){var e=this.peekToken();this.skipSymbol("filter")||this.fail("parseFilterStatement: expected filter");var t=this.parseFilterName(),r=this.parseFilterArgs(t);this.advanceAfterBlockEnd(e.value);var n=new o.Capture(t.lineno,t.colno,this.parseUntilBlocks("endfilter"));this.advanceAfterBlockEnd();var i=new o.Filter(t.lineno,t.colno,t,new o.NodeList(t.lineno,t.colno,[n].concat(r)));return new o.Output(t.lineno,t.colno,[i])},c.parseAggregate=function(){var e,t=this.nextToken();switch(t.type){case i.TOKEN_LEFT_PAREN:e=new o.Group(t.lineno,t.colno);break;case i.TOKEN_LEFT_BRACKET:e=new o.Array(t.lineno,t.colno);break;case i.TOKEN_LEFT_CURLY:e=new o.Dict(t.lineno,t.colno);break;default:return null}for(;;){var r=this.peekToken().type;if(r===i.TOKEN_RIGHT_PAREN||r===i.TOKEN_RIGHT_BRACKET||r===i.TOKEN_RIGHT_CURLY){this.nextToken();break}if(e.children.length>0&&(this.skip(i.TOKEN_COMMA)||this.fail("parseAggregate: expected comma after expression",t.lineno,t.colno)),e instanceof o.Dict){var n=this.parsePrimary();this.skip(i.TOKEN_COLON)||this.fail("parseAggregate: expected colon after dict key",t.lineno,t.colno);var a=this.parseExpression();e.addChild(new o.Pair(n.lineno,n.colno,n,a))}else{var s=this.parseExpression();e.addChild(s)}}return e},c.parseSignature=function(e,t){var r=this.peekToken();if(!t&&r.type!==i.TOKEN_LEFT_PAREN){if(e)return null;this.fail("expected arguments",r.lineno,r.colno)}r.type===i.TOKEN_LEFT_PAREN&&(r=this.nextToken());for(var n=new o.NodeList(r.lineno,r.colno),a=new o.KeywordArgs(r.lineno,r.colno),s=!1;;){if(r=this.peekToken(),!t&&r.type===i.TOKEN_RIGHT_PAREN){this.nextToken();break}if(t&&r.type===i.TOKEN_BLOCK_END)break;if(s&&!this.skip(i.TOKEN_COMMA))this.fail("parseSignature: expected comma after expression",r.lineno,r.colno);else{var c=this.parseExpression();this.skipValue(i.TOKEN_OPERATOR,"=")?a.addChild(new o.Pair(c.lineno,c.colno,c,this.parseExpression())):n.addChild(c)}s=!0}return a.children.length&&n.addChild(a),n},c.parseUntilBlocks=function(){for(var e=this.breakOnBlocks,t=arguments.length,r=new Array(t),n=0;n=","//","**"],j=D+this.current();switch(-1!==n.indexOf(P,j)&&(this.forward(),D=j,-1!==n.indexOf(P,j+this.current())&&(D=j+this.current(),this.forward())),D){case"(":R=h;break;case")":R=g;break;case"[":R=m;break;case"]":R=v;break;case"{":R=b;break;case"}":R=y;break;case",":R=_;break;case":":R=k;break;case"~":R=x;break;case"|":R=E;break;default:R=w}return L(R,D,t,r)}if((e=this._extractUntil(i+o)).match(/^[-+]?[0-9]+$/)){if("."===this.current()){this.forward();var M=this._extract("0123456789");return L(T,e+"."+M,t,r)}return L("int",e,t,r)}if(e.match(/^(true|false)$/))return L(A,e,t,r);if("none"===e)return L(S,e,t,r);if("null"===e)return L(S,e,t,r);if(e)return L(C,e,t,r);throw new Error("Unexpected value while parsing: "+e)}var I,F=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if((e=this._extractString(this.tags.BLOCK_START+"-"))||(e=this._extractString(this.tags.BLOCK_START)))return this.in_code=!0,L(l,e,t,r);if((e=this._extractString(this.tags.VARIABLE_START+"-"))||(e=this._extractString(this.tags.VARIABLE_START)))return this.in_code=!0,L(p,e,t,r);e="";var U=!1;for(this._matches(this.tags.COMMENT_START)&&(U=!0,e=this._extractString(this.tags.COMMENT_START));null!==(I=this._extractUntil(F));){if(e+=I,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!U){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&this.colno>0&&this.colno<=e.length){var H=e.slice(-this.colno);if(/^\s+$/.test(H)&&!(e=e.slice(0,-this.colno)).length)return this.nextToken()}break}if(this._matches(this.tags.COMMENT_END)){if(!U)throw new Error("unexpected end of comment");e+=this._extractString(this.tags.COMMENT_END);break}e+=this.current(),this.forward()}if(null===I&&U)throw new Error("expected end of comment, got end of file");return L(U?d:c,e,t,r)},t._parseString=function(e){this.forward();for(var t="";!this.isFinished()&&this.current()!==e;){var r=this.current();if("\\"===r){switch(this.forward(),this.current()){case"n":t+="\n";break;case"t":t+="\t";break;case"r":t+="\r";break;default:t+=this.current()}this.forward()}else t+=r,this.forward()}return this.forward(),t},t._matches=function(e){return this.index+e.length>this.len?null:this.str.slice(this.index,this.index+e.length)===e},t._extractString=function(e){return this._matches(e)?(this.forwardN(e.length),e):null},t._extractUntil=function(e){return this._extractMatching(!0,e||"")},t._extract=function(e){return this._extractMatching(!1,e)},t._extractMatching=function(e,t){if(this.isFinished())return null;var r=t.indexOf(this.current());if(e&&-1===r||!e&&-1!==r){var n=this.current();this.forward();for(var i=t.indexOf(this.current());(e&&-1===i||!e&&-1!==i)&&!this.isFinished();)n+=this.current(),this.forward(),i=t.indexOf(this.current());return n}return""},t._extractRegex=function(e){var t=this.currentStr().match(e);return t?(this.forwardN(t[0].length),t):null},t.isFinished=function(){return this.index>=this.len},t.forwardN=function(e){for(var t=0;t1024){for(var t=0,r=i.length-o;t0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var l=c.length,u=m(c,l);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){"use strict";var n=r(3),i=r(0),o=0;function a(){return"hole_"+o++}function s(e,t){for(var r=null,n=0;n=t)return e;var r=t-e.length,a=n.repeat(" ",r/2-r%2),s=n.repeat(" ",r/2);return i.copySafeness(e,a+e+s)},t.default=function(e,t,r){return r?e||t:void 0!==e?e:t},t.dictsort=function(e,t,r){if(!n.isObject(e))throw new n.TemplateError("dictsort filter: val must be an object");var i,o=[];for(var a in e)o.push([a,e[a]]);if(void 0===r||"key"===r)i=0;else{if("value"!==r)throw new n.TemplateError("dictsort filter: You can only sort by either key or value");i=1}return o.sort((function(e,r){var o=e[i],a=r[i];return t||(n.isString(o)&&(o=o.toUpperCase()),n.isString(a)&&(a=a.toUpperCase())),o>a?1:o===a?0:-1})),o},t.dump=function(e,t){return JSON.stringify(e,null,t)},t.escape=function(e){return e instanceof i.SafeString?e:(e=null==e?"":e,i.markSafe(n.escape(e.toString())))},t.safe=function(e){return e instanceof i.SafeString?e:(e=null==e?"":e,i.markSafe(e.toString()))},t.first=function(e){return e[0]},t.forceescape=function(e){return e=null==e?"":e,i.markSafe(n.escape(e.toString()))},t.groupby=function(e,t){return n.groupBy(e,t,this.env.opts.throwOnUndefined)},t.indent=function(e,t,r){if(""===(e=o(e,"")))return"";t=t||4;var a=e.split("\n"),s=n.repeat(" ",t),c=a.map((function(e,t){return 0!==t||r?""+s+e:e})).join("\n");return i.copySafeness(e,c)},t.join=function(e,t,r){return t=t||"",r&&(e=n.map(e,(function(e){return e[r]}))),e.join(t)},t.last=function(e){return e[e.length-1]},t.length=function(e){var t=o(e,"");return void 0!==t?"function"==typeof Map&&t instanceof Map||"function"==typeof Set&&t instanceof Set?t.size:!n.isObject(t)||t instanceof i.SafeString?t.length:n.keys(t).length:0},t.list=c,t.lower=function(e){return(e=o(e,"")).toLowerCase()},t.nl2br=function(e){return null==e?"":i.copySafeness(e,e.replace(/\r\n|\n/g,"
\n"))},t.random=function(e){return e[Math.floor(Math.random()*e.length)]},t.reject=l(!1),t.rejectattr=function(e,t){return e.filter((function(e){return!e[t]}))},t.select=l(!0),t.selectattr=function(e,t){return e.filter((function(e){return!!e[t]}))},t.replace=function(e,t,r,n){var o=e;if(t instanceof RegExp)return e.replace(t,r);void 0===n&&(n=-1);var a="";if("number"==typeof t)t=""+t;else if("string"!=typeof t)return e;if("number"==typeof e&&(e=""+e),"string"!=typeof e&&!(e instanceof i.SafeString))return e;if(""===t)return a=r+e.split("").join(r)+r,i.copySafeness(e,a);var s=e.indexOf(t);if(0===n||-1===s)return e;for(var c=0,l=0;s>-1&&(-1===n||l=i&&u.push(r),o.push(u)}return o},t.sum=function(e,t,r){return void 0===r&&(r=0),t&&(e=n.map(e,(function(e){return e[t]}))),r+e.reduce((function(e,t){return e+t}),0)},t.sort=i.makeMacro(["value","reverse","case_sensitive","attribute"],[],(function(e,t,r,i){var o=this,a=n.map(e,(function(e){return e})),s=n.getAttrGetter(i);return a.sort((function(e,a){var c=i?s(e):e,l=i?s(a):a;if(o.env.opts.throwOnUndefined&&i&&(void 0===c||void 0===l))throw new TypeError('sort: attribute "'+i+'" resolved to undefined');return!r&&n.isString(c)&&n.isString(l)&&(c=c.toLowerCase(),l=l.toLowerCase()),cl?t?-1:1:0})),a})),t.string=function(e){return i.copySafeness(e,e)},t.striptags=function(e,t){var r,n=u((e=o(e,"")).replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>|/gi,""));return r=t?n.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,"\n").replace(/\n\n\n+/g,"\n\n"):n.replace(/\s+/gi," "),i.copySafeness(e,r)},t.title=function(e){var t=(e=o(e,"")).split(" ").map((function(e){return s(e)}));return i.copySafeness(e,t.join(" "))},t.trim=u,t.truncate=function(e,t,r,n){var a=e;if(t=t||255,(e=o(e,"")).length<=t)return e;if(r)e=e.substring(0,t);else{var s=e.lastIndexOf(" ",t);-1===s&&(s=t),e=e.substring(0,s)}return e+=null!=n?n:"...",i.copySafeness(a,e)},t.upper=function(e){return(e=o(e,"")).toUpperCase()},t.urlencode=function(e){var t=encodeURIComponent;return n.isString(e)?t(e):(n.isArray(e)?e:n._entries(e)).map((function(e){var r=e[0],n=e[1];return t(r)+"="+t(n)})).join("&")};var p=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,f=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,d=/^https?:\/\/.*$/,h=/^www\./,g=/\.(?:org|net|com)(?:\:|\/|$)/;t.urlize=function(e,t,r){a(t)&&(t=1/0);var n=!0===r?' rel="nofollow"':"";return e.split(/(\s+)/).filter((function(e){return e&&e.length})).map((function(e){var r=e.match(p),i=r?r[1]:e,o=i.substr(0,t);return d.test(i)?'"+o+"":h.test(i)?'"+o+"":f.test(i)?''+i+"":g.test(i)?'"+o+"":e})).join("")},t.wordcount=function(e){var t=(e=o(e,""))?e.match(/\w+/g):null;return t?t.length:null},t.float=function(e,t){var r=parseFloat(e);return a(r)?t:r};var m=i.makeMacro(["value","default","base"],[],(function(e,t,r){void 0===r&&(r=10);var n=parseInt(e,r);return a(n)?t:n}));t.int=m,t.d=t.default,t.e=t.escape},function(e,t,r){"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}var i=function(e){var t,r;function i(t){var r;return(r=e.call(this)||this).precompiled=t||{},r}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,n(t,r),i.prototype.getSource=function(e){return this.precompiled[e]?{src:{type:"code",obj:this.precompiled[e]},path:e}:null},i}(r(6));e.exports={PrecompiledLoader:i}},function(e,t,r){"use strict";var n=r(2).SafeString;t.callable=function(e){return"function"==typeof e},t.defined=function(e){return void 0!==e},t.divisibleby=function(e,t){return e%t==0},t.escaped=function(e){return e instanceof n},t.equalto=function(e,t){return e===t},t.eq=t.equalto,t.sameas=t.equalto,t.even=function(e){return e%2==0},t.falsy=function(e){return!e},t.ge=function(e,t){return e>=t},t.greaterthan=function(e,t){return e>t},t.gt=t.greaterthan,t.le=function(e,t){return e<=t},t.lessthan=function(e,t){return e0)for(var i=e;it;o+=r)n.push(o);return n},cycler:function(){return e=Array.prototype.slice.call(arguments),t=-1,{current:null,reset:function(){t=-1,this.current=null},next:function(){return++t>=e.length&&(t=0),this.current=e[t],this.current}};var e,t},joiner:function(e){return function(e){e=e||",";var t=!0;return function(){var r=t?"":e;return t=!1,r}}(e)}}}},function(e,t,r){var n=r(4);e.exports=function(e,t){function r(e,t){if(this.name=e,this.path=e,this.defaultEngine=t.defaultEngine,this.ext=n.extname(e),!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");this.ext||(this.name+=this.ext=("."!==this.defaultEngine[0]?".":"")+this.defaultEngine)}return r.prototype.render=function(t,r){e.render(this.name,t,r)},t.set("view",r),t.set("nunjucksEnv",e),e}},function(e,t,r){"use strict";var n=r(4),i=r(4),o=r(0)._prettifyError,a=r(5),s=r(7).Environment,c=r(24);function l(e,t){return!!Array.isArray(t)&&t.some((function(t){return e.match(t)}))}function u(e,t){(t=t||{}).isString=!0;var r=t.env||new s([]),n=t.wrapper||c;if(!t.name)throw new Error('the "name" option is required when compiling a string');return n([p(e,t.name,r)],t)}function p(e,t,r){var n,i=(r=r||new s([])).asyncFilters,c=r.extensionsList;t=t.replace(/\\/g,"/");try{n=a.compile(e,i,c,t,r.opts)}catch(e){throw o(t,!1,e)}return{name:t,template:n}}e.exports={precompile:function(e,t){var r=(t=t||{}).env||new s([]),o=t.wrapper||c;if(t.isString)return u(e,t);var a=n.existsSync(e)&&n.statSync(e),f=[],d=[];if(a.isFile())f.push(p(n.readFileSync(e,"utf-8"),t.name||e,r));else if(a.isDirectory()){!function r(o){n.readdirSync(o).forEach((function(a){var s=i.join(o,a),c=s.substr(i.join(e,"/").length),u=n.statSync(s);u&&u.isDirectory()?l(c+="/",t.exclude)||r(s):l(c,t.include)&&d.push(s)}))}(e);for(var h=0;he.length||i>0&&a>=n||i<0&&a<=n);a+=i)o.push(r.memberLookup(e,a));return o}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var h={pop:function(e){if(void 0===e)return this.pop();if(e>=this.length||e<0)throw new Error("KeyError");return this.splice(e,1)},append:function(e){return this.push(e)},remove:function(e){for(var t=0;t{"use strict";var n=r(3700),i=/[\/\?<>\\:\*\|"]/g,o=/[\x00-\x1f\x80-\x9f]/g,a=/^\.+$/,s=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,c=/[\. ]+$/;function l(e,t){if("string"!=typeof e)throw new Error("Input must be string");var r=e.replace(i,t).replace(o,t).replace(a,t).replace(s,t).replace(c,t);return n(r,255)}e.exports=function(e,t){var r=t&&t.replacement||"",n=l(e,r);return""===r?n:l(n,"")}},9328:e=>{"use strict";var t={decodeValues:!0,map:!1,silent:!1};function r(e){return"string"==typeof e&&!!e.trim()}function n(e,n){var i=e.split(";").filter(r),o=i.shift().split("="),a=o.shift(),s=o.join("=");n=n?Object.assign({},t,n):t;try{s=n.decodeValues?decodeURIComponent(s):s}catch(e){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+s+"'. Set options.decodeValues to false to disable this feature.",e)}var c={name:a,value:s};return i.forEach((function(e){var t=e.split("="),r=t.shift().trimLeft().toLowerCase(),n=t.join("=");"expires"===r?c.expires=new Date(n):"max-age"===r?c.maxAge=parseInt(n,10):"secure"===r?c.secure=!0:"httponly"===r?c.httpOnly=!0:"samesite"===r?c.sameSite=n:c[r]=n})),c}function i(e,i){if(i=i?Object.assign({},t,i):t,!e)return i.map?{}:[];if(e.headers&&e.headers["set-cookie"])e=e.headers["set-cookie"];else if(e.headers){var o=e.headers[Object.keys(e.headers).find((function(e){return"set-cookie"===e.toLowerCase()}))];o||!e.headers.cookie||i.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=o}return Array.isArray(e)||(e=[e]),(i=i?Object.assign({},t,i):t).map?e.filter(r).reduce((function(e,t){var r=n(t,i);return e[r.name]=r,e}),{}):e.filter(r).map((function(e){return n(e,i)}))}e.exports=i,e.exports.parse=i,e.exports.parseString=n,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,r,n,i,o,a=[],s=0;function c(){for(;s=e.length)&&a.push(e.substring(t,e.length))}return a}},3379:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var i=void 0!==r.layer;i&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,i&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},3700:(e,t,r)=>{"use strict";var n=r(1156),i=r(793);e.exports=n.bind(null,i)},1156:e=>{"use strict";function t(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}e.exports=function(e,n,i){if("string"!=typeof n)throw new Error("Input must be string");for(var o,a,s=n.length,c=0,l=0;li)return n.slice(0,l-a.length+1)}return n}},793:e=>{"use strict";function t(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}e.exports=function(e){if("string"!=typeof e)throw new Error("Input must be string");for(var n=e.length,i=0,o=null,a=null,s=0;s=128&&o<=2047?i+=2:o>=2048&&o<=65535&&(i+=3),a=o;return i}},5840:e=>{"use strict";e.exports=require("electron")},6113:e=>{"use strict";e.exports=require("crypto")},3600:e=>{"use strict";e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},9323:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},9591:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},2586:e=>{"use strict";e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.nc=void 0;var n={};(()=>{"use strict";function e(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}r.r(n),r.d(n,{default:()=>Z}),Object.create,Object.create;const t=require("obsidian");var i=r(2985);function o(){}function a(e){return e()}function s(e){e.forEach(a)}function c(e){return"function"==typeof e}function l(e){let t;return function(e,...t){if(null==e)return o;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}(e,(e=>t=e))(),t}new Set,new Map;let u,p=[];new Set,new Set,"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global,new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&(u=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(a).filter(c);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){s(this.$$.on_disconnect)}$destroy(){(function(e,t){const r=e.$$;null!==r.fragment&&(function(e){const t=[],r=[];p.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),p=t}(r.after_update),s(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])})(this,1),this.$destroy=o}$on(e,t){if(!c(t))return o;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});const f=[];const d={cookies:[],noteLocation:"/",dailyNotesLocation:"/",insertAfter:"\x3c!-- start of weread --\x3e",insertBefore:"\x3c!-- end of weread --\x3e",dailyNotesFormat:"YYYY-MM-DD",lastCookieTime:-1,isCookieValid:!1,user:"",userVid:"",template:"---\nisbn: {{metaData.isbn}}\nlastReadDate: {{metaData.lastReadDate}}\n---\n# 元数据\n> [!abstract] {{metaData.title}}\n> - ![ {{metaData.title}}|200]({{metaData.cover}})\n> - 书名: {{metaData.title}}\n> - 作者: {{metaData.author}}\n> - 简介: {{metaData.intro}}\n> - 出版时间: {{metaData.publishTime}}\n> - ISBN: {{metaData.isbn}}\n> - 分类: {{metaData.category}}\n> - 出版社: {{metaData.publisher}}\n> - PC地址:{{metaData.pcUrl}}\n\n# 高亮划线\n{% for chapter in chapterHighlights %}\n{% if chapter.level == 1 %}## {{chapter.chapterTitle}}{% elif chapter.level == 2 %}### {{chapter.chapterTitle}}{% elif chapter.level == 3 %}#### {{chapter.chapterTitle}}{% endif %}\n{% for highlight in chapter.highlights %}{% if highlight.reviewContent %}\n> 📌 {{ highlight.markText |trim }} ^{{highlight.bookmarkId}}\n- 💭 {{highlight.reviewContent}} - ⏱ {{highlight.createTime}} {% else %}\n> 📌 {{ highlight.markText |trim }} \n> ⏱ {{highlight.createTime}} ^{{highlight.bookmarkId}}{% endif %}\n{% endfor %}{% endfor %}\n# 读书笔记\n{% for chapter in bookReview.chapterReviews %}{% if chapter.reviews or chapter.chapterReview %}\n## {{chapter.chapterTitle}}\n{% if chapter.chapterReviews %}{% for chapterReview in chapter.chapterReviews %}\n### 章节评论 No.{{loop.index}}\n- {{chapterReview.content}} ^{{chapterReview.reviewId}}\n - ⏱ {{chapterReview.createTime}} {% endfor %}{% endif %}{% if chapter.reviews %}{% for review in chapter.reviews %}\n### 划线评论\n> 📌 {{review.abstract |trim }} ^{{review.reviewId}}\n - 💭 {{review.content}}\n - ⏱ {{review.createTime}}\n{% endfor %} {% endif %} {% endif %} {% endfor %}\n# 本书评论\n{% if bookReview.bookReviews %}{% for bookReview in bookReview.bookReviews %}\n## 书评 No.{{loop.index}} \n{{bookReview.mdContent}} ^{{bookReview.reviewId}}\n⏱ {{bookReview.createTime}}\n{% endfor %}{% endif %}\n",noteCountLimit:-1,subFolderType:"-1",fileNameType:"BOOK_NAME",dailyNotesToggle:!1,notesBlacklist:"",showEmptyChapterTitleToggle:!1,convertTags:!1,saveArticleToggle:!0,saveReadingInfoToggle:!0},h=(()=>{const t=function(e,t=o){let r;const n=new Set;function i(t){if(o=t,((i=e)!=i?o==o:i!==o||i&&"object"==typeof i||"function"==typeof i)&&(e=t,r)){const t=!f.length;for(const t of n)t[1](),f.push(t,e);if(t){for(let e=0;e{n.delete(c),0===n.size&&r&&(r(),r=null)}}}}(d);let r;t.subscribe((t=>e(void 0,void 0,void 0,(function*(){if(r){const e=Object.assign({},t);yield r.saveData(e)}}))));const n=e=>{for(const r of e)"wr_name"==r.name&&""!==r.value&&(console.log("[weread plugin] setting user name=>",r.value),t.update((e=>(e.user=r.value,e)))),"wr_vid"==r.name&&""!==r.value&&(console.log("[weread plugin] setting user vid=>",r.value),t.update((e=>(e.userVid=r.value,e))))};return{subscribe:t.subscribe,initialise:i=>e(void 0,void 0,void 0,(function*(){const e=Object.assign({},d,yield i.loadData()),o=Object.assign({},e);console.log("--------init cookie------",o.cookies),o.cookies.length>1&&n(o.cookies);const a=o.cookies.find((e=>"wr_vid"===e.name));void 0!==a&&""!==a.value||(o.userVid="",o.isCookieValid=!1),t.set(o),r=i})),actions:{setNoteLocationFolder:e=>{t.update((t=>(t.noteLocation=e,t)))},setCookies:e=>{t.update((t=>(t.cookies=e,t.lastCookieTime=(new Date).getTime(),t.isCookieValid=!0,n(e),t)))},clearCookies:()=>{console.log("[weread plugin] cookie已失效,清理cookie..."),t.update((e=>(e.cookies=[],e.lastCookieTime=(new Date).getTime(),e.user="",e.userVid="",e.isCookieValid=!1,e)))},setTemplate:e=>{t.update((t=>(t.template=e,t)))},setNoteCountLimit:e=>{t.update((t=>(t.noteCountLimit=e,t)))},setSubFolderType:e=>{t.update((t=>(t.subFolderType=e,t)))},setFileNameType:e=>{t.update((t=>(t.fileNameType=e,t)))},setDailyNotesToggle:e=>{t.update((t=>(t.dailyNotesToggle=e,t)))},setDailyNotesFolder:e=>{t.update((t=>(t.dailyNotesLocation=e,t)))},setDailyNotesFormat:e=>{t.update((t=>(t.dailyNotesFormat=e,t)))},setInsertAfter:e=>{t.update((t=>(t.insertAfter=e,t)))},setInsertBefore:e=>{t.update((t=>(t.insertBefore=e,t)))},setNoteBlacklist:e=>{t.update((t=>(t.notesBlacklist=e,t)))},setEmptyChapterTitleToggle:e=>{t.update((t=>(t.showEmptyChapterTitleToggle=e,t)))},setConvertTags:e=>{t.update((t=>(t.convertTags=e,t)))},setSaveArticleToggle:e=>{t.update((t=>(t.saveArticleToggle=e,t)))},setSaveReadingInfoToggle:e=>{t.update((t=>(t.saveReadingInfoToggle=e,t)))}}}})();class g{constructor(){i.configure({autoescape:!1})}validate(e){try{return i.renderString(e,{}),!0}catch(e){return console.error("validate weread template error,please check",e),!1}}render(e){const{metaData:t,chapterHighlights:r,bookReview:n}=e,o={metaData:t,chapterHighlights:r,bookReview:n},a=l(h).template;return i.renderString(a,o)}}var m=r(202),v=r.n(m);const b=e=>window.moment(1e3*e).format("YYYY-MM-DD"),y="weread-highlights-reviews";var w;!function(e){e[e["未标记"]=1]="未标记",e[e["在读"]=2]="在读",e[e["读过"]=3]="读过",e[e["读完"]=4]="读完"}(w||(w={}));const _=(e,r,n)=>{const i={doc_type:y,bookId:r.metaData.bookId,reviewCount:r.metaData.reviewCount,noteCount:r.metaData.noteCount};if(l(h).saveReadingInfoToggle){i.author=r.metaData.author,i.cover=r.metaData.cover;const e=r.metaData.readInfo;e&&(i.readingStatus=w[e.markedStatus],i.progress=void 0===e.readingProgress?"-1":e.readingProgress+"%",i.totalReadDay=e.totalReadDay,i.readingTime=(o=e.readingTime,`${Math.floor(o/3600)}小时${Math.floor(o%3600/60)}分钟`),i.readingDate=b(e.readingBookDate),e.finishedDate&&(i.finishedDate=b(e.finishedDate)))}var o;let a=Object();if(n){if(a=app.metadataCache.getFileCache(n).frontmatter,void 0===a)throw new t.Notice("weread front matter invalid"),Error("weread front matter invalid");delete a.position}const s=e.indexOf("---");let c=Object();if(-1!==s){const r=e.indexOf("---")+4,n=e.substring(r).indexOf("---")-1,o=e.substring(r,r+n);c=(0,t.parseYaml)(o);const s=e.substring(n+4),l=Object.assign(Object.assign(Object.assign({},a),i),c);return"---\n"+(0,t.stringifyYaml)(l)+s}return"---\n"+(0,t.stringifyYaml)(i)+"---\n"+e};class k{constructor(e,t){this.getWereadNoteAnnotationFile=e=>{const t=this.metadataCache.getFileCache(e),r=null==t?void 0:t.frontmatter;return(null==r?void 0:r.doc_type)===y&&void 0!==(null==r?void 0:r.bookId)?{file:e,bookId:r.bookId,reviewCount:r.reviewCount,noteCount:r.noteCount,new:!1}:null},this.vault=e,this.metadataCache=t,this.renderer=new g}saveDailyNotes(r,n){return e(this,void 0,void 0,(function*(){const e=yield this.fileExists(r),i=this.buildAppendContent(n);if(e){const e=yield this.getFileByPath(r),t=yield this.vault.cachedRead(e),n=yield this.insertAfter(t,i);this.vault.modify(e,n)}else new t.Notice("没有找到Daily Note,请先创建"+r)}))}buildAppendContent(e){return e.map((e=>"\n### ".concat(e.metaData.title).concat("\n")+e.refBlocks.map((t=>`![[${this.getFileName(e.metaData)}#^${t.refBlockId}]]`)).join("\n"))).join("\n")}getDailyNotePath(e){let r;const n=l(h).dailyNotesFormat;try{r=e.format(n)}catch(e){throw new t.Notice("Daily Notes 日期格式不正确"+n),e}return l(h).dailyNotesLocation+"/"+r+".md"}fileExists(t){return e(this,void 0,void 0,(function*(){return yield this.vault.adapter.exists(t)}))}getFileByPath(r){return e(this,void 0,void 0,(function*(){const e=yield this.vault.getAbstractFileByPath(r);return e?e instanceof t.TFolder?(console.error(`${r} found but it's a folder`),null):e instanceof t.TFile?e:void 0:(console.error(`${r} not found`),null)}))}insertAfter(r,n){return e(this,void 0,void 0,(function*(){const e=l(h).insertAfter,i=new RegExp(`s*${e}s*`),o=(e=>{const t=[];let r=e;for(;r.contains("\n");){const e=r.indexOf("\n");t.push(r.slice(0,e)),r=r.slice(e+1)}return t.push(r),t})(r).findIndex((e=>i.test(e)));if(-1===o)throw new t.Notice(`没有在Daily Note中找到区间开始:${e}!请检查Daily Notes设置`),new Error("cannot find "+e);return this.insertTextAfterPosition(n,r,o)}))}insertTextAfterPosition(e,r,n){const i=r.split("\n"),o=i.slice(0,n+1).join("\n"),a=i.slice(n+1),s=l(h).insertBefore,c=a.findIndex((e=>new RegExp(`s*${s}s*`).test(e)));if(-1===c)throw new t.Notice(`没有在Daily Note中找到区间结束:${s}!请检查Daily Notes设置`),new Error("cannot find "+s);return`${o}\n${e}\n${a.slice(c-1).join("\n")}`}saveNotebook(t){return e(this,void 0,void 0,(function*(){const e=t.metaData.file;if(e){if(e.new){const r=e.file;console.log(`Updating ${r.path}`);const n=this.renderer.render(t),i=_(n,t,r);yield this.vault.modify(r,i)}}else{const e=yield this.getNewNotebookFilePath(t);console.log(`Creating ${e}`);const r=this.renderer.render(t),n=_(r,t);yield this.vault.create(e,n)}}))}getNotebookFiles(){return e(this,void 0,void 0,(function*(){return this.vault.getMarkdownFiles().map((e=>{const t=this.metadataCache.getFileCache(e);return{file:e,frontmatter:null==t?void 0:t.frontmatter}})).filter((({frontmatter:e})=>(null==e?void 0:e.doc_type)===y)).map((({file:e,frontmatter:t})=>({file:e,bookId:t.bookId,reviewCount:t.reviewCount,noteCount:t.noteCount,new:!0})))}))}getNewNotebookFilePath(t){return e(this,void 0,void 0,(function*(){const e=`${l(h).noteLocation}/${this.getSubFolderPath(t.metaData)}`;return(yield this.vault.adapter.exists(e))||(console.info(`Folder ${e} not found. Will be created`),yield this.vault.createFolder(e)),`${e}/${this.getFileName(t.metaData)}.md`}))}getFileName(e){const t=l(h).fileNameType,r=(e=>{const t=e.replace(/[':#|]/g,"").trim();return v()(t)})(e.title);switch(t){case"BOOK_ID":return e.bookId;case"BOOK_NAME_AUTHOR":return e.duplicate?`${r}-${e.author}-${e.bookId}`:`${r}-${e.author}`;case"BOOK_NAME_BOOKID":return`${r}-${e.bookId}`;case"BOOK_NAME":return e.duplicate?`${r}-${e.bookId}`:r;default:return r}}getSubFolderPath(e){const t=l(h).subFolderType;return"title"==t?e.title:"category"==t?e.category?e.category.split("-")[0]:"公众号"===e.author?"公众号":"未分类":""}}var x=r(2245),E=r(1354);const T=e=>e.replace(/(?<=^|\s)#([^\s]+)/g,"[[$1]]"),A=e=>{if(void 0===e||""==e)return e;const t=e.split("\n");for(let e=1;e{const t=l(h).convertTags;return e.reviews.map((e=>{var r;const n=e.review,i=n.createTime,o=window.moment(1e3*i).format("YYYY-MM-DD HH:mm:ss"),a=(n.htmlContent?x.dx.translate(n.htmlContent):null)||n.content,s=t?T(a):a,c=n.reviewId;return{bookId:n.bookId,created:i,createTime:o,chapterUid:n.chapterUid,chapterTitle:n.chapterTitle||(null===(r=n.refMpInfo)||void 0===r?void 0:r.title),content:t?T(n.content):n.content,reviewId:null==c?void 0:c.replace(/[_~]/g,"-"),mdContent:s,range:n.range,abstract:n.abstract,type:n.type}}))};class C{constructor(e,t){this.fileManager=e,this.apiManager=t}syncNotebook(r){return e(this,void 0,void 0,(function*(){const e=(yield this.getALlMetadata()).find((e=>e.bookId===r.bookId));if(r.new=!0,e.file=r,e){const r=yield this.convertToNotebook(e);yield this.saveNotebook(r),new t.Notice(`当前笔记 《${e.title}》 同步成功!`)}else new t.Notice("当前笔记元数据缺少,同步失败!")}))}syncNotebooks(r=!1,n){return e(this,void 0,void 0,(function*(){new t.Notice("微信读书笔记同步开始!");const e=(new Date).getTime(),i=yield this.getALlMetadata(),o=yield this.filterNoteMetas(r,i);let a=0;const s=new t.Notice("微信读书笔记同步中, 请稍后!",3e5);try{for(const e of o){const t=yield this.convertToNotebook(e);if(yield this.saveNotebook(t),a++,a%10==0||a===o.length){const e=a/o.length*100;s.setMessage(`微信读书笔记同步中, 请稍后!正在更新 ${o.length} 本书 ,更新进度 ${e.toFixed(0)}%`)}}}finally{s.hide()}this.saveToJounal(n,i);const c=(((new Date).getTime()-e)/1e3).toFixed(2);new t.Notice(`微信读书笔记同步完成!, 总共 ${i.length} 本书 , 本次更新 ${o.length} 本书, 耗时${c} 秒`)}))}syncNotesToJounal(t){return e(this,void 0,void 0,(function*(){const e=yield this.getALlMetadata();this.saveToJounal(t,e)}))}convertToNotebook(t){return e(this,void 0,void 0,(function*(){const e=yield this.apiManager.getBook(t.bookId);e&&(t.category=e.category,t.publisher=e.publisher,t.isbn=e.isbn,t.intro=e.intro,t.totalWords=e.totalWords,t.rating=e.newRating/10+"%");const r=yield this.apiManager.getBookReadInfo(t.bookId);r&&(t.readInfo=Object.assign({},r));const n=yield this.apiManager.getNotebookHighlights(t.bookId),i=yield this.apiManager.getNotebookReviews(t.bookId),o=yield this.apiManager.getChapters(t.bookId),a=((e,t)=>{const r=l(h).convertTags;return e.updated.map((n=>{var i;const o=n.range;let a;if(t.reviews){const e=t.reviews.map((e=>e.review)).filter((e=>e.range===o)).first();e&&(a=r?T(e.content):e.content)}const s=e.chapters.filter((e=>e.chapterUid===n.chapterUid)).first(),c=A(n.markText);return{bookmarkId:null===(i=n.bookmarkId)||void 0===i?void 0:i.replace(/[_~]/g,"-"),created:n.createTime,createTime:window.moment(1e3*n.createTime).format("YYYY-MM-DD HH:mm:ss"),chapterUid:n.chapterUid,chapterIdx:(null==s?void 0:s.chapterIdx)||n.chapterUid,refMpReviewId:n.refMpReviewId,range:n.range,style:n.style,colorStyle:n.colorStyle,chapterTitle:(null==s?void 0:s.title)||"未知章节",markText:c,reviewContent:A(a)}}))})(n,i),s=S(i),c=((e,t)=>void 0===e?[]:void 0!==e.data&&e.data[0].updated.length>0?e.data[0].updated:void 0!==t.refMpInfos?t.refMpInfos.map((e=>({refMpReviewId:e.reviewId,updateTime:e.createTime,title:e.title,isMPChapter:1,level:2}))):[])(o,n);let u;3===t.bookType?(console.log("sync 公众号:",t.title),u=((e,t,r)=>{const n=[];for(const i of e){const e=i.refMpReviewId,o=i.title,a=t.filter((t=>t.refMpReviewId===e)).sort(((e,t)=>parseInt(e.range.split("-")[0])-parseInt(t.range.split("-")[0])));let s;a&&a.length>0&&r&&(s=r.filter((t=>{var r;return e==(null===(r=t.refMpInfo)||void 0===r?void 0:r.reviewId)})).sort(((e,t)=>void 0===e.range&&void 0===t.range?0:void 0===e.range?1:void 0===t.range?-1:parseInt(e.range.split("-")[0])-parseInt(t.range.split("-")[0])))),a&&a.length>0&&n.push({chapterTitle:o,level:i.level,isMPChapter:i.isMPChapter,chapterReviews:s,highlights:a})}return n.sort(((e,t)=>e.chapterIdx-t.chapterIdx))})(c,a,s),console.log("sync 公众号 result",t.title,u)):u=((e,t,r)=>{const n=[];for(const i of e){const e=i.chapterUid,o=i.chapterIdx,a=i.title,s=t.filter((t=>t.chapterUid==e)).sort(((e,t)=>parseInt(e.range.split("-")[0])-parseInt(t.range.split("-")[0])));let c;s&&s.length>0&&r&&(c=r.filter((t=>e==t.chapterUid&&1==t.type)).sort(((e,t)=>void 0===e.range&&void 0===t.range?0:void 0===e.range?1:void 0===t.range?-1:parseInt(e.range.split("-")[0])-parseInt(t.range.split("-")[0]))));const u=l(h).showEmptyChapterTitleToggle;(s&&s.length>0||u)&&n.push({chapterUid:e,chapterIdx:o,chapterTitle:a,level:i.level,isMPChapter:i.isMPChapter,chapterReviews:c,highlights:s})}return n.sort(((e,t)=>e.chapterIdx-t.chapterIdx))})(c,a,s),console.log("chapters:",c,u,n);const p=(e=>{const t=S(e),r=t.filter((e=>1==e.type));r.sort(((e,t)=>void 0===e.range&&void 0===t.range?0:void 0===e.range?1:void 0===t.range?-1:parseInt(e.range.split("-")[0])-parseInt(t.range.split("-")[0])));const n=t.filter((e=>4==e.type)),i=new Map;for(const e of r){const t=e.chapterUid,r=e.chapterTitle;if(null==i.get(e.chapterUid)){const n={chapterUid:t,chapterTitle:r,reviews:[],chapterReviews:[]};e.range?n.reviews.push(e):n.chapterReviews.push(e),i.set(e.chapterUid,n)}else{const t=i.get(e.chapterUid);e.range?t.reviews.push(e):t.chapterReviews.push(e)}}return{bookReviews:n,chapterReviews:Array.from(i.values()).sort(((e,t)=>e.chapterUid-t.chapterUid))}})(i);return{metaData:t,chapterHighlights:u,bookReview:p}}))}filterNoteMetas(t=!1,r){return e(this,void 0,void 0,(function*(){const e=yield this.fileManager.getNotebookFiles(),n=this.getDuplicateBooks(r),i=[];for(const o of r){if(!l(h).saveArticleToggle&&3===o.bookType)continue;if(o.noteCount<+l(h).noteCountLimit){console.info(`[weread plugin] skip book ${o.title} note count: ${o.noteCount}`);continue}const r=yield this.getLocalNotebookFile(o,e,t);r&&!r.new||(l(h).notesBlacklist.includes(o.bookId)?console.info(`[weread plugin] skip book ${o.title},id:${o.bookId} for blacklist`):(o.file=r,n.has(o.title)&&(o.duplicate=!0),i.push(o)))}return i}))}getALlMetadata(){return e(this,void 0,void 0,(function*(){return(yield this.apiManager.getNotebooksWithRetry()).map((e=>(e=>{const t=e.book,r=t.cover.replace("/s_","/t7_"),n=window.moment(1e3*e.sort).format("YYYY-MM-DD"),i=(e=>{const t=E.MD5(e).toString(E.enc.Hex),r=(e=>{if(/^\d*$/.test(e)){const t=[];for(let r=0;re.lastReadDate===t)),n=[];for(const t of e){const e=yield this.convertToNotebook(t);n.push(e)}if(l(h).dailyNotesToggle){const e=(e=>{const t=window.moment().format("YYYYMMDD"),r=[];for(const n of e){const e=n.chapterHighlights.flatMap((e=>e.highlights)).filter((e=>{const r=window.moment(1e3*e.created).format("YYYYMMDD");return t===r})),i=[];if(e)for(const t of e)i.push({refBlockId:t.bookmarkId,createTime:t.created});i.length>0&&r.push({metaData:n.metaData,refBlocks:i})}return r})(n),t=this.fileManager.getDailyNotePath(window.moment());console.log("get daily note path",t," size:",e.length),this.fileManager.saveDailyNotes(t,e)}}))}getDuplicateBooks(e){const t=e.map((e=>e.title)),r=new Set(t),n=t.filter((e=>{if(!r.has(e))return e;r.delete(e)}));return new Set(n)}getLocalNotebookFile(t,r,n=!1){return e(this,void 0,void 0,(function*(){const e=r.find((e=>e.bookId===t.bookId))||null;return e?(e.noteCount!=t.noteCount||e.reviewCount!=t.reviewCount||n?e.new=!0:e.new=!1,e):null}))}saveNotebook(t){return e(this,void 0,void 0,(function*(){try{yield this.fileManager.saveNotebook(t)}catch(e){console.log("[weread plugin] sync note book error",t.metaData.title,e)}}))}}var N=r(9328);class L{constructor(){this.baseUrl="https://i.weread.qq.com"}getHeaders(){return{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36","Accept-Encoding":"gzip, deflate, br","Accept-Language":"zh-CN,zh;q=0.9,en;q=0.8",Cookie:(e=l(h).cookies,e.map((e=>{const t=e.name,r=e.value;return t+"="+(-1!==r.indexOf("%")?decodeURIComponent(r):r)})).join(";"))};var e}refreshCookie(){return e(this,void 0,void 0,(function*(){const e={url:"https://weread.qq.com",method:"HEAD",headers:this.getHeaders()},r=yield(0,t.requestUrl)(e),n=r.headers["set-cookie"]||r.headers["Set-Cookie"];void 0===n?new t.Notice("尝试刷新Cookie失败"):(new t.Notice("cookie已过期,尝试刷新Cookie成功"),this.updateCookies(n))}))}getNotebooksWithRetry(){return e(this,void 0,void 0,(function*(){let e=yield this.getNotebooks();if(void 0!==e&&0!==e.length||(e=yield this.getNotebooks()),void 0===e||0===e.length)throw new t.Notice("长时间未登录,Cookie已失效,请重新扫码登录!"),h.actions.clearCookies(),Error("get weread note book error after retry");return e}))}getRecentBooks(){return e(this,void 0,void 0,(function*(){const e=l(h).userVid;console.debug("get userVid settings",e);const r={url:this.baseUrl+"/shelf/friendCommon?userVid="+e,method:"GET",headers:this.getHeaders()};try{return(yield(0,t.requestUrl)(r)).json.recentBooks}catch(t){console.error("get recent books error: vid"+e,t)}}))}getNotebooks(){return e(this,void 0,void 0,(function*(){let e=[];const r={url:this.baseUrl+"/user/notebooks",method:"GET",headers:this.getHeaders()};try{const n=yield(0,t.requestUrl)(r);401===n.status&&(-2012==n.json.errcode?(console.log("weread cookie expire retry refresh cookie... "),yield this.refreshCookie()):(t.Platform.isDesktopApp?new t.Notice("微信读书未登录或者用户异常,请在设置中重新登录!"):new t.Notice("微信读书未登录或者用户异常,请在电脑端重新登录!"),console.log("微信读书未登录或者用户异常,请重新登录, http status code:",n.json.errcode),h.actions.clearCookies())),e=n.json.books}catch(e){401==e.status&&(console.log(`parse request to cURL for debug: ${this.parseToCurl(r)}`),yield this.refreshCookie())}return e}))}parseToCurl(e){const t=["curl"];t.push(e.url);const r=e.headers;return Object.keys(r).forEach((e=>{t.push("-H"),t.push(this.escapeStringPosix(e.replace(/^:/,"")+": "+r[e]))})),t.push(" --compressed"),t.join(" ")}escapeStringPosix(e){return/[^\x20-\x7E]|'/.test(e)?"$'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[^\x20-\x7E]/g,(function(e){let t=e.charCodeAt(0);return t<256?t<16?"\\x0"+t.toString(16):"\\x"+t.toString(16):(t=t.toString(16),"\\u"+("0000"+t).substr(t.length,4))}))+"'":"'"+e+"'"}getBook(r){return e(this,void 0,void 0,(function*(){try{const e={url:`${this.baseUrl}/book/info?bookId=${r}`,method:"GET",headers:this.getHeaders()};return(yield(0,t.requestUrl)(e)).json}catch(e){console.error("get book detail error",e)}}))}getNotebookHighlights(r){return e(this,void 0,void 0,(function*(){try{const e={url:`${this.baseUrl}/book/bookmarklist?bookId=${r}`,method:"GET",headers:this.getHeaders()};return(yield(0,t.requestUrl)(e)).json}catch(e){console.error("get book highlight error"+r,e)}}))}getNotebookReviews(r){return e(this,void 0,void 0,(function*(){try{const e={url:`${this.baseUrl}/review/list?bookId=${r}&listType=11&mine=1&synckey=0`,method:"GET",headers:this.getHeaders()};return(yield(0,t.requestUrl)(e)).json}catch(e){new t.Notice("Failed to fetch weread notebook reviews . Please check your Cookies and try again."),console.error("get book review error"+r,e)}}))}getChapters(r){return e(this,void 0,void 0,(function*(){try{const e=`${this.baseUrl}/book/chapterInfos?bookIds=${r}&synckey=0`,n={bookIds:[r],synckeys:[0],teenmode:0},i={url:e,method:"POST",headers:this.getHeaders(),body:JSON.stringify(n)};return(yield(0,t.requestUrl)(i)).json}catch(e){new t.Notice("Failed to fetch weread notebook chapters . Please check your Cookies and try again."),console.error("get book chapters error"+r,e)}}))}getBookReadInfo(r){return e(this,void 0,void 0,(function*(){try{const e={url:`${this.baseUrl}/book/readinfo?bookId=${r}&readingDetail=1&readingBookIndex=1&finishedDate=1`,method:"GET",headers:this.getHeaders()};return(yield(0,t.requestUrl)(e)).json}catch(e){new t.Notice("Failed to fetch weread notebook read info . Please check your Cookies and try again."),console.error("get book read info error"+r,e)}}))}updateCookies(e){let t;if(Array.isArray(e))t=(0,N.parse)(e);else{const r=(0,N.splitCookiesString)(e);t=(0,N.parse)(r)}const r=l(h).cookies;r.forEach((e=>{const r=t.find((t=>t.name==e.name));r&&(e.value=r.value)})),h.actions.setCookies(r)}}class D{constructor(e){this.settingTab=e;const{remote:t}=r(5840),{BrowserWindow:n}=t;this.modal=new n({parent:t.getCurrentWindow(),width:960,height:540,show:!1}),this.modal.once("ready-to-show",(()=>{this.modal.setTitle("登录微信读书~"),this.modal.show()}));const i=this.modal.webContents.session;i.webRequest.onCompleted({urls:["https://weread.qq.com/api/auth/getLoginInfo?uid=*"]},(e=>{200==e.statusCode&&(console.log("weread login success, redirect to weread shelf"),this.modal.loadURL("https://weread.qq.com/web/shelf"))})),i.webRequest.onSendHeaders({urls:["https://weread.qq.com/web/user?userVid=*"]},(t=>{const r=""===(n=t.requestHeaders.Cookie)?[]:n.split(";").map((e=>e.split("="))).map((e=>({name:decodeURIComponent(e[0].trim()),value:decodeURIComponent(e[1].trim())})));var n;""!==r.find((e=>"wr_name"==e.name)).value?(h.actions.setCookies(r),e.display(),this.modal.close()):this.modal.reload()}))}doLogin(){return e(this,void 0,void 0,(function*(){try{yield this.modal.loadURL("https://weread.qq.com/#login")}catch(e){console.log(e),new t.Notice("加载微信读书登录页面失败")}}))}onClose(){this.modal.close()}}class O{constructor(e){this.settingTab=e;const{remote:t}=r(5840),{BrowserWindow:n}=t;this.modal=new n({parent:t.getCurrentWindow(),width:960,height:540,show:!1}),this.modal.once("ready-to-show",(()=>{this.modal.setTitle("注销微信读书,点击头像选择->退出登录"),this.modal.show()})),this.modal.webContents.session.webRequest.onCompleted({urls:["https://weread.qq.com/api/auth/logout"]},(e=>{200!=e.statusCode&&204!=e.statusCode||(console.log("weread logout success, clear cookies..."),h.actions.clearCookies(),this.settingTab.display(),this.modal.close())}))}doLogout(){return e(this,void 0,void 0,(function*(){yield this.modal.loadURL("https://weread.qq.com")}))}onClose(){this.modal.close()}}var q=r(6040),B=r.n(q);class R extends t.PluginSettingTab{constructor(e,t){super(e,t),this.plugin=t,this.renderer=new g}display(){const{containerEl:e}=this;e.empty(),e.createEl("h2",{text:"设置微信读书插件"});const r=l(h).isCookieValid;t.Platform.isDesktopApp?r?this.showLogout():this.showLogin():r?this.showMobileLogout():this.showMobileLogin(),this.notebookFolder(),this.notebookBlacklist(),this.noteCountLimit(),this.fileNameType(),this.subFolderType(),this.convertTagToggle(),this.saveArticleToggle(),this.saveReadingInfoToggle(),this.showEmptyChapterTitleToggle(),this.dailyNotes(),l(h).dailyNotesToggle&&(this.dailyNotesFolder(),this.dailyNoteFormat(),this.insertAfter()),this.template(),t.Platform.isDesktopApp&&this.showDebugHelp()}showMobileLogin(){this.containerEl.createDiv().setText("微信读书未登录,请先在电脑端登录!")}showMobileLogout(){this.containerEl.createDiv().setText(`微信读书已登录,用户名:${l(h).user}`)}notebookFolder(){new t.Setting(this.containerEl).setName("笔记保存位置").setDesc("请选择Obsidian Vault中微信读书笔记存放的位置").addDropdown((t=>{const r=this.app.vault.adapter.files,n=B()(r,(e=>"folder"===e.type));return Object.keys(n).forEach((e=>{t.addOption(e,e)})),t.setValue(l(h).noteLocation).onChange((t=>e(this,void 0,void 0,(function*(){h.actions.setNoteLocationFolder(t)}))))}))}notebookBlacklist(){new t.Setting(this.containerEl).setName("书籍黑名单").setDesc("请填写不同步的bookId,bookId可在meta信息中找到,多本书使用逗号「,」隔开").addText((e=>{e.setValue(l(h).notesBlacklist).onChange((e=>{h.actions.setNoteBlacklist(e)}))}))}showLogin(){new t.Setting(this.containerEl).setName("登录微信读书").addButton((t=>t.setButtonText("登录").setCta().onClick((()=>e(this,void 0,void 0,(function*(){t.setDisabled(!0);const e=new D(this);yield e.doLogin(),this.display()}))))))}saveArticleToggle(){new t.Setting(this.containerEl).setName("同步公众号文章?").setDesc("开启此选项会将同步公众号文章到单独的笔记中").addToggle((e=>e.setValue(l(h).saveArticleToggle).onChange((e=>{h.actions.setSaveArticleToggle(e),this.display()}))))}saveReadingInfoToggle(){new t.Setting(this.containerEl).setName("保存阅读元数据?").setDesc("开启此选项会阅读数据写入frontmatter").addToggle((e=>e.setValue(l(h).saveReadingInfoToggle).onChange((e=>{h.actions.setSaveReadingInfoToggle(e),this.display()}))))}convertTagToggle(){new t.Setting(this.containerEl).setName("将标签转换为双链?").setDesc("开启此选项会笔记中的 #标签 转换为:[[标签]]").addToggle((e=>e.setValue(l(h).convertTags).onChange((e=>{h.actions.setConvertTags(e),this.display()}))))}dailyNotes(){new t.Setting(this.containerEl).setName("是否保存笔记到 DailyNotes?").setHeading().addToggle((e=>e.setValue(l(h).dailyNotesToggle).onChange((e=>{console.debug("set daily notes toggle to",e),h.actions.setDailyNotesToggle(e),this.display()}))))}dailyNotesFolder(){new t.Setting(this.containerEl).setName("Daily Notes文件夹").setDesc("请选择Daily Notes文件夹").addDropdown((t=>{const r=this.app.vault.adapter.files,n=B()(r,(e=>"folder"===e.type));return Object.keys(n).forEach((e=>{t.addOption(e,e)})),t.setValue(l(h).dailyNotesLocation).onChange((t=>e(this,void 0,void 0,(function*(){h.actions.setDailyNotesFolder(t)}))))}))}dailyNoteFormat(){new t.Setting(this.containerEl).setName("Daily Notes Format").setDesc("请填写Daily Notes文件名格式,支持官方Daily Notes插件的格式,比如:YYYY-MM-DD \t\t\t\t 和 Periodic Notes的嵌套格式,比如 YYYY/[W]ww/YYYY-MM-DD").addText((e=>{e.setValue(l(h).dailyNotesFormat).onChange((e=>{h.actions.setDailyNotesFormat(e)}))}))}insertAfter(){new t.Setting(this.containerEl).setName("在特定区间之内插入").setDesc("请填写Daily Notes中希望读书笔记插入的区间,使用前记得修改Daily Notes模板🫡, 💥注意: 区间之内的内容会被覆盖,请不要在区间内修改内容,").addText((e=>{e.setValue(l(h).insertAfter).onChange((e=>{h.actions.setInsertAfter(e)}))})).addButton((e=>e.setButtonText("至").buttonEl.style.borderStyle="none")).addText((e=>{e.setValue(l(h).insertBefore).onChange((e=>{h.actions.setInsertBefore(e)}))}))}subFolderType(){new t.Setting(this.containerEl).setName("文件夹分类").setDesc("请选择按照哪个维度对笔记文件进行分类").addDropdown((t=>(t.addOptions({"-1":"无分类",title:"书名",category:"图书分类"}),t.setValue(l(h).subFolderType).onChange((t=>e(this,void 0,void 0,(function*(){h.actions.setSubFolderType(t)})))))))}fileNameType(){new t.Setting(this.containerEl).setName("文件名模板").setDesc("你选择你喜欢的文件名模板,重复的书会在文件名后加上ID").addDropdown((t=>(t.addOptions({BOOK_ID:"bookId",BOOK_NAME:"书名",BOOK_NAME_AUTHOR:"书名-作者名",BOOK_NAME_BOOKID:"书名-bookId"}),t.setValue(l(h).fileNameType).onChange((t=>e(this,void 0,void 0,(function*(){h.actions.setFileNameType(t)})))))))}showLogout(){document.createRange().createContextualFragment;const r=document.createRange().createContextualFragment("1. 登录:点击登录按钮,在弹出页面【扫码登录】。\n 2. 注销:点击注销,在弹出书架页面右上角点击头像,下拉菜单选择【退出登录】");new t.Setting(this.containerEl).setName(`微信读书已登录,用户名: ${l(h).user}`).setDesc(r).addButton((t=>t.setButtonText("注销").setCta().onClick((()=>e(this,void 0,void 0,(function*(){t.setDisabled(!0);const e=new O(this);yield e.doLogout(),this.display()})))))).addButton((r=>r.setButtonText("拷贝Cookie").setCta().onClick((()=>e(this,void 0,void 0,(function*(){const e=l(h).cookies.map((e=>{const t=e.name,r=e.value;return t+"="+encodeURIComponent(r)})).join(";");navigator.clipboard.writeText(e).then((function(){new t.Notice("拷贝Cookie到剪切板成功!")}),(function(e){new t.Notice("拷贝Cookie到剪切板失败!"),console.error("拷贝微信读书Cookie失败",e)}))}))))))}template(){const r=document.createRange().createContextualFragment('模板使用说明\n

\n

可用变量

\n

\n元数据变量(metaData)\n
    \n
  • {{title}} - 书名
  • \n
  • {{author}} - 作者
  • \n
  • {{cover}} - 封面
  • \n
  • {{intro}} - 书籍简介
  • \n
  • {{bookId}} - 微信图书ID
  • \n
  • {{publishTime}} - 出版时间
  • \n
  • {{noteCount}} - 划线数量
  • \n
  • {{reviewCount}} - 笔记数量
  • \n
  • {{isbn}} - ISBN
  • \n
  • {{category}} - 分类
  • \n
  • {{publisher}} - 出版社
  • \n
  • {{readInfo}} - 阅读信息, 点击查看详情
  • \n
\n划线变量(chapterHighlights)\n
    \n
  • {{chapterUid}} - 章节ID
  • \n
  • {{chapterTitle}} - 章节标题
  • \n
  • {{createTime}} - 创建时间
  • \n
  • {{range}} - 划线范围
  • \n
  • {{markText}} - 划线文本
  • \n
\n笔记笔记(bookReview)\n
    \n
  • {{reviewId}} - reviewId
  • \n
  • {{chapterUid}} - 章节ID
  • \n
  • {{chapterTitle}} - 章节标题
  • \n
  • {{createTime}} - 创建时间
  • \n
  • {{abstract}} - 摘录内容
  • \n
  • {{content}} - 笔记内容
  • \n
  • {{mdContent}} - markdown笔记格式
  • \n
  • {{type}} - 类型
  • \n
  • {{range}} - 范围
  • \n
\n');new t.Setting(this.containerEl).setName("笔记模板").setDesc(r).addTextArea((t=>(t.inputEl.style.width="100%",t.inputEl.style.height="540px",t.inputEl.style.fontSize="0.8em",t.setValue(l(h).template).onChange((r=>e(this,void 0,void 0,(function*(){const e=this.renderer.validate(r);e&&h.actions.setTemplate(r),t.inputEl.style.border=e?"":"2px solid red"})))),t)))}noteCountLimit(){new t.Setting(this.containerEl).setName("笔记划线数量最小值").setDesc("划线数量小于该值的笔记将不会被同步").addDropdown((t=>{t.addOptions({"-1":"无限制",3:"3条",5:"5条",10:"10条",15:"15条",30:"30条"}).setValue(l(h).noteCountLimit.toString()).onChange((t=>e(this,void 0,void 0,(function*(){console.log("[weread plugin] new note count limit",t),h.actions.setNoteCountLimit(+t)}))))}))}showDebugHelp(){const e=this.containerEl.createDiv();e.setAttr("align","center"),e.setText("查看控制台日志: 使用以下快捷键快速打开控制台,查看本插件以及其他插件的运行日志");const r=this.containerEl.createDiv();r.setAttr("align","center"),r.style.margin="10px",!0===t.Platform.isMacOS?r.createEl("kbd",{text:"CMD (⌘) + OPTION (⌥) + I"}):r.createEl("kbd",{text:"CTRL + SHIFT + I"})}showEmptyChapterTitleToggle(){new t.Setting(this.containerEl).setName("展示空白章节标题?").setDesc("如果启用,则章节内没有划线也将展示章节标题").setHeading().addToggle((e=>e.setValue(l(h).showEmptyChapterTitleToggle).onChange((e=>{console.debug("set empty chapter title toggle to",e),h.actions.setEmptyChapterTitleToggle(e),this.display()}))))}}const P="weread-reading-view";class j extends t.ItemView{constructor(e){super(e)}getViewType(){return P}getDisplayText(){return"微信读书"}getIcon(){return"book-open"}onClose(){return e(this,void 0,void 0,(function*(){}))}onOpen(){return e(this,void 0,void 0,(function*(){this.webviewEl=this.contentEl.doc.createElement("webview"),this.webviewEl.setAttribute("allowpopups",""),this.webviewEl.addClass("weread-frame"),this.webviewEl.setAttribute("src","https://r.qq.com"),this.leaf.setViewState({type:P,active:!0}),this.contentEl.appendChild(this.webviewEl),this.contentEl.addClass("weread-view-content")}))}}var M=r(3379),I=r.n(M),F=r(7795),U=r.n(F),H=r(569),V=r.n(H),z=r(3565),G=r.n(z),K=r(9216),$=r.n(K),W=r(4589),Y=r.n(W),J=r(5902),X={};X.styleTagTransform=Y(),X.setAttributes=G(),X.insert=V().bind(null,"head"),X.domAPI=U(),X.insertStyleElement=$(),I()(J.Z,X),J.Z&&J.Z.locals&&J.Z.locals;class Z extends t.Plugin{constructor(){super(...arguments),this.syncing=!1}onload(){return e(this,void 0,void 0,(function*(){console.log("load weread plugin"),h.initialise(this);const e=new k(this.app.vault,this.app.metadataCache),r=new L;this.syncNotebooks=new C(e,r),this.addRibbonIcon("book-open","同步微信读书笔记",(e=>{0===e.button&&this.startSync()})).addEventListener("contextmenu",(e=>{e.preventDefault(),e.stopPropagation();const r=e=>{e.preventDefault()};window.addEventListener("mousedown",r);const n=new t.Menu;n.addItem((e=>e.setTitle("同步微信读书笔记").setIcon("refresh-ccw").onClick((()=>{this.startSync()})))),n.addItem((e=>e.setTitle("强制同步微信读书笔记").setIcon("refresh-ccw-dot").onClick((()=>{this.startSync(!0)})))),n.addItem((e=>e.setTitle("在新标签页打开微信读书").setIcon("book-open-text").onClick((()=>{this.activateReadingView("TAB")})))),n.addItem((e=>e.setTitle("在窗口打开微信读书").setIcon("app-window").onClick((()=>{this.activateReadingView("WINDOW")})))),n.showAtMouseEvent(e),n.onHide((()=>{window.removeEventListener("mousedown",r)}))})),this.addCommand({id:"sync-weread-notes-command",name:"同步微信读书笔记",callback:()=>{this.startSync()}}),this.addCommand({id:"Force-sync-weread-notes-command",name:"强制同步微信读书笔记",callback:()=>{this.startSync(!0)}}),this.registerView(P,(e=>new j(e))),this.addCommand({id:"open-weread-reading-view",name:"在新标签页打开微信读书",callback:()=>{this.activateReadingView("TAB")}}),this.addCommand({id:"open-weread-reading-view",name:"在新窗口打开微信读书",callback:()=>{this.activateReadingView("WINDOW")}}),this.registerEvent(this.app.workspace.on("editor-menu",((t,r,n)=>{const i=e.getWereadNoteAnnotationFile(n.file);null!=i&&(t.addSeparator(),t.addItem((e=>e.setIcon("refresh-ccw").setTitle("同步当前读书笔记").onClick((()=>{this.syncNotebooks.syncNotebook(i)})))))}))),this.addSettingTab(new R(this.app,this))}))}startSync(r=!1){return e(this,void 0,void 0,(function*(){if(this.syncing)new t.Notice("正在同步微信读书笔记,请勿重复点击");else{this.syncing=!0;try{yield this.syncNotebooks.syncNotebooks(r,window.moment().format("YYYY-MM-DD")),console.log("syncing Weread note finish")}catch(e){t.Platform.isDesktopApp?new t.Notice("同步微信读书笔记异常,请打开控制台查看详情"):new t.Notice("同步微信读书笔记异常,请使用电脑端打开控制台查看详情"+e),console.error("同步微信读书笔记异常",e)}finally{this.syncing=!1}}}))}activateReadingView(t){return e(this,void 0,void 0,(function*(){const{workspace:e}=this.app;let r=null;const n=e.getLeavesOfType(P);n.length>0?r=n[0]:("TAB"===t?r=e.getLeaf("split","vertical"):"WINDOW"===t&&(r=e.openPopoutLeaf()),yield r.setViewState({type:P,active:!0})),e.revealLeaf(r)}))}onunload(){console.log("unloading weread plugin",(new Date).toLocaleString())}}})();var i=exports;for(var o in n)i[o]=n[o];n.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})(); \ No newline at end of file diff --git a/.obsidian/plugins/obsidian-weread-plugin/manifest.json b/.obsidian/plugins/obsidian-weread-plugin/manifest.json index 4c80b319..88693eb1 100644 --- a/.obsidian/plugins/obsidian-weread-plugin/manifest.json +++ b/.obsidian/plugins/obsidian-weread-plugin/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-weread-plugin", "name": "Weread", - "version": "0.10.0", + "version": "0.11.2", "minAppVersion": "0.12.0", "description": "This is obsidian plugin for Tencent weread.", "author": "hankzhao",