vault backup: 2024-10-16 09:12:37

This commit is contained in:
boris committed 2024-10-16 09:12:37 +01:00
1 parent bad31f35c5
commit 124e0b67ef
190 files changed
+192115

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
{
"showInlineTitle": true,
"useMarkdownLinks": true,
"promptDelete": true,
"showLineNumber": true,
"attachmentFolderPath": "images",
"pdfExportSettings": {
"pageSize": "A4",
"landscape": false,
"margin": "0",
"downscalePercent": 64
},
"readableLineLength": false,
"alwaysUpdateLinks": true,
"newFileLocation": "current"
}
+7
View File
@@ -0,0 +1,7 @@
{
"accentColor": "#4f78d8",
"theme": "obsidian",
"cssTheme": "Things",
"nativeMenus": true,
"baseFontSize": 16
}
+18
View File
@@ -0,0 +1,18 @@
{
"items": [
{
"type": "file",
"ctime": 1695299728113,
"path": "Semester 1/Web Development and HCI/Week 1/Week 1 Web Development.md",
"subpath": "#^401105",
"title": "WebDev Assessment Deadline"
},
{
"type": "file",
"ctime": 1695715480041,
"path": "Semester 1/Professional Development & Practices/Week 1/Week 1 Professional Development.md",
"subpath": "#^af5cab",
"title": "PDP Weighting"
}
]
}
+11
View File
@@ -0,0 +1,11 @@
[
"obsidian-git",
"obsidian-excel-to-markdown-table",
"obsidian-linter",
"omnisearch",
"obsidian-full-calendar",
"obsidian-style-settings",
"url-into-selection",
"obsidian-csv-table",
"mermaid-tools"
]
+30
View File
@@ -0,0 +1,30 @@
{
"file-explorer": true,
"global-search": true,
"switcher": true,
"graph": true,
"backlink": true,
"canvas": false,
"outgoing-link": true,
"tag-pane": true,
"properties": true,
"page-preview": true,
"daily-notes": false,
"templates": false,
"note-composer": true,
"command-palette": true,
"slash-command": false,
"editor-status": true,
"bookmarks": true,
"markdown-importer": false,
"zk-prefixer": false,
"random-note": false,
"outline": true,
"word-count": true,
"slides": false,
"audio-recorder": false,
"workspaces": false,
"file-recovery": true,
"publish": false,
"sync": false
}
+18
View File
@@ -0,0 +1,18 @@
[
"file-explorer",
"global-search",
"switcher",
"graph",
"backlink",
"outgoing-link",
"tag-pane",
"properties",
"page-preview",
"note-composer",
"command-palette",
"editor-status",
"bookmarks",
"outline",
"word-count",
"file-recovery"
]
+22
View File
@@ -0,0 +1,22 @@
{
"collapse-filter": false,
"search": "",
"showTags": false,
"showAttachments": false,
"hideUnresolved": false,
"showOrphans": true,
"collapse-color-groups": false,
"colorGroups": [],
"collapse-display": true,
"showArrow": false,
"textFadeMultiplier": 0,
"nodeSizeMultiplier": 1,
"lineSizeMultiplier": 1,
"collapse-forces": true,
"centerStrength": 0.518713248970312,
"repelStrength": 10,
"linkStrength": 1,
"linkDistance": 250,
"scale": 1,
"close": true
}
+29
View File
@@ -0,0 +1,29 @@
{
"file-explorer:open": [
{
"modifiers": [
"Mod",
"Shift"
],
"key": "E"
}
],
"obsidian-diagrams-net:app:diagrams-net-new-diagram": [
{
"modifiers": [
"Mod",
"Shift"
],
"key": "D"
}
],
"obsidian-linter:lint-all-files": [
{
"modifiers": [
"Alt",
"Mod"
],
"key": "S"
}
]
}
@@ -0,0 +1,6 @@
{
"enabled": false,
"typewriterOffset": 0,
"zenEnabled": true,
"zenOpacity": 0.75
}
+425
View File
@@ -0,0 +1,425 @@
'use strict';
var obsidian = require('obsidian');
var state = require('@codemirror/state');
var view = require('@codemirror/view');
/*! *****************************************************************************
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.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
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());
});
}
function __generator(thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
}
// all credit to azu: https://github.com/azu/codemirror-typewriter-scrolling/blob/b0ac076d72c9445c96182de87d974de2e8cc56e2/typewriter-scrolling.js
var movedByMouse = false;
CodeMirror.commands.scrollSelectionToCenter = function (cm) {
var cursor = cm.getCursor('head');
var charCoords = cm.charCoords(cursor, "local");
var top = charCoords.top;
var halfLineHeight = (charCoords.bottom - top) / 2;
var halfWindowHeight = cm.getWrapperElement().offsetHeight / 2;
var scrollTo = Math.round((top - halfWindowHeight + halfLineHeight));
cm.scrollTo(null, scrollTo);
};
CodeMirror.defineOption("typewriterScrolling", false, function (cm, val, old) {
if (old && old != CodeMirror.Init) {
const linesEl = cm.getScrollerElement().querySelector('.CodeMirror-lines');
linesEl.style.paddingTop = null;
linesEl.style.paddingBottom = null;
cm.off("cursorActivity", onCursorActivity);
cm.off("refresh", onRefresh);
cm.off("mousedown", onMouseDown);
cm.off("keydown", onKeyDown);
cm.off("beforeChange", onBeforeChange);
}
if (val) {
onRefresh(cm);
cm.on("cursorActivity", onCursorActivity);
cm.on("refresh", onRefresh);
cm.on("mousedown", onMouseDown);
cm.on("keydown", onKeyDown);
cm.on("beforeChange", onBeforeChange);
}
});
function onMouseDown() {
movedByMouse = true;
}
const modiferKeys = ["Alt", "AltGraph", "CapsLock", "Control", "Fn", "FnLock", "Hyper", "Meta", "NumLock", "ScrollLock", "Shift", "Super", "Symbol", "SymbolLock"];
function onKeyDown(cm, e) {
if (!modiferKeys.includes(e.key)) {
movedByMouse = false;
}
}
function onBeforeChange() {
movedByMouse = false;
}
function onCursorActivity(cm) {
const linesEl = cm.getScrollerElement().querySelector('.CodeMirror-lines');
if (cm.getSelection().length !== 0) {
linesEl.classList.add("selecting");
}
else {
linesEl.classList.remove("selecting");
}
if(!movedByMouse) {
cm.execCommand("scrollSelectionToCenter");
}
}
function onRefresh(cm) {
const halfWindowHeight = cm.getWrapperElement().offsetHeight / 2;
const linesEl = cm.getScrollerElement().querySelector('.CodeMirror-lines');
linesEl.style.paddingTop = `${halfWindowHeight}px`;
linesEl.style.paddingBottom = `${halfWindowHeight}px`; // Thanks @walulula!
if (cm.getSelection().length === 0) {
cm.execCommand("scrollSelectionToCenter");
}
}
var allowedUserEvents = /^(select|input|delete|undo|redo)(\..+)?$/;
var disallowedUserEvents = /^(select.pointer)$/;
var typewriterOffset = state.Facet.define({
combine: function (values) { return values.length ? Math.min.apply(Math, values) : 0.5; }
});
var resetTypewriterScrollPaddingPlugin = view.ViewPlugin.fromClass(/** @class */ (function () {
function class_1(view) {
this.view = view;
}
class_1.prototype.update = function (update) {
if (this.view.contentDOM.style.paddingTop) {
this.view.contentDOM.style.paddingTop = "";
this.view.contentDOM.style.paddingBottom = (update.view.dom.clientHeight / 2) + "px";
}
};
return class_1;
}()));
var typewriterScrollPaddingPlugin = view.ViewPlugin.fromClass(/** @class */ (function () {
function class_2(view) {
this.view = view;
this.topPadding = null;
}
class_2.prototype.update = function (update) {
var offset = (update.view.dom.clientHeight * update.view.state.facet(typewriterOffset)) - (update.view.defaultLineHeight / 2);
this.topPadding = offset + "px";
if (this.topPadding != this.view.contentDOM.style.paddingTop) {
this.view.contentDOM.style.paddingTop = this.topPadding;
this.view.contentDOM.style.paddingBottom = (update.view.dom.clientHeight - offset) + "px";
}
};
return class_2;
}()));
var typewriterScrollPlugin = view.ViewPlugin.fromClass(/** @class */ (function () {
function class_3(view) {
this.view = view;
this.myUpdate = false;
}
class_3.prototype.update = function (update) {
if (this.myUpdate)
this.myUpdate = false;
else {
var userEvents = update.transactions.map(function (tr) { return tr.annotation(state.Transaction.userEvent); });
var isAllowed = userEvents.reduce(function (result, event) { return result && allowedUserEvents.test(event) && !disallowedUserEvents.test(event); }, userEvents.length > 0);
if (isAllowed) {
this.myUpdate = true;
this.centerOnHead(update);
}
}
};
class_3.prototype.centerOnHead = function (update) {
return __awaiter(this, void 0, void 0, function () {
var _this = this;
return __generator(this, function (_a) {
// can't update inside an update, so request the next animation frame
window.requestAnimationFrame(function () {
// current selection range
if (update.state.selection.ranges.length == 1) {
// only act on the one range
var head = update.state.selection.main.head;
var prevHead = update.startState.selection.main.head;
// TODO: work out line number and use that instead? Is that even possible?
// don't bother with this next part if the range (line??) hasn't changed
if (prevHead != head) {
// this is the effect that does the centering
var offset = (update.view.dom.clientHeight * update.view.state.facet(typewriterOffset)) - (update.view.defaultLineHeight / 2);
var effect = view.EditorView.scrollIntoView(head, { y: "start", yMargin: offset });
// const effect = EditorView.scrollIntoView(head, { y: "center" });
var transaction = _this.view.state.update({ effects: effect });
_this.view.dispatch(transaction);
}
}
});
return [2 /*return*/];
});
});
};
return class_3;
}()));
function typewriterScroll(options) {
if (options === void 0) { options = {}; }
return [
options.typewriterOffset == null ? [] : typewriterOffset.of(options.typewriterOffset),
typewriterScrollPaddingPlugin,
typewriterScrollPlugin
];
}
function resetTypewriterSrcoll() {
return [
resetTypewriterScrollPaddingPlugin
];
}
var DEFAULT_SETTINGS = {
enabled: true,
typewriterOffset: 0.5,
zenEnabled: false,
zenOpacity: 0.25
};
var CMTypewriterScrollPlugin = /** @class */ (function (_super) {
__extends(CMTypewriterScrollPlugin, _super);
function CMTypewriterScrollPlugin() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.extArray = [];
_this.toggleTypewriterScroll = function (newValue) {
if (newValue === void 0) { newValue = null; }
// if no value is passed in, toggle the existing value
if (newValue === null)
newValue = !_this.settings.enabled;
// assign the new value and call the correct enable / disable function
(_this.settings.enabled = newValue)
? _this.enableTypewriterScroll() : _this.disableTypewriterScroll();
// save the new settings
_this.saveData(_this.settings);
};
_this.changeTypewriterOffset = function (newValue) {
_this.settings.typewriterOffset = newValue;
if (_this.settings.enabled) {
_this.disableTypewriterScroll();
// delete the extension, so it gets recreated with the new value
delete _this.ext;
_this.enableTypewriterScroll();
}
_this.saveData(_this.settings);
};
_this.toggleZen = function (newValue) {
if (newValue === void 0) { newValue = null; }
// if no value is passed in, toggle the existing value
if (newValue === null)
newValue = !_this.settings.zenEnabled;
// assign the new value and call the correct enable / disable function
(_this.settings.zenEnabled = newValue)
? _this.enableZen() : _this.disableZen();
// save the new settings
_this.saveData(_this.settings);
};
_this.changeZenOpacity = function (newValue) {
if (newValue === void 0) { newValue = 0.25; }
_this.settings.zenOpacity = newValue;
_this.css.innerText = "body{--zen-opacity: ".concat(newValue, ";}");
// save the new settings
_this.saveData(_this.settings);
};
_this.enableTypewriterScroll = function () {
// add the class
document.body.classList.add('plugin-cm-typewriter-scroll');
// register the codemirror add on setting
_this.registerCodeMirror(function (cm) {
// @ts-ignore
cm.setOption("typewriterScrolling", true);
});
if (!_this.ext) {
_this.ext = typewriterScroll({ typewriterOffset: _this.settings.typewriterOffset });
_this.extArray = [_this.ext];
_this.registerEditorExtension(_this.extArray);
}
else {
_this.extArray.splice(0, _this.extArray.length);
_this.extArray.push(_this.ext);
_this.app.workspace.updateOptions();
}
};
_this.disableTypewriterScroll = function () {
// remove the class
document.body.classList.remove('plugin-cm-typewriter-scroll');
// remove the codemirror add on setting
_this.app.workspace.iterateCodeMirrors(function (cm) {
// @ts-ignore
cm.setOption("typewriterScrolling", false);
});
// clear out the registered extension
_this.extArray.splice(0, _this.extArray.length);
_this.extArray.push(resetTypewriterSrcoll());
_this.app.workspace.updateOptions();
};
_this.enableZen = function () {
// add the class
document.body.classList.add('plugin-cm-typewriter-scroll-zen');
};
_this.disableZen = function () {
// remove the class
document.body.classList.remove('plugin-cm-typewriter-scroll-zen');
};
return _this;
}
CMTypewriterScrollPlugin.prototype.onload = function () {
return __awaiter(this, void 0, void 0, function () {
var _a, _b, _c, _d;
return __generator(this, function (_e) {
switch (_e.label) {
case 0:
_a = this;
_c = (_b = Object).assign;
_d = [DEFAULT_SETTINGS];
return [4 /*yield*/, this.loadData()];
case 1:
_a.settings = _c.apply(_b, _d.concat([_e.sent()]));
// enable the plugin (based on settings)
if (this.settings.enabled)
this.enableTypewriterScroll();
if (this.settings.zenEnabled)
this.enableZen();
this.css = document.createElement('style');
this.css.id = 'plugin-typewriter-scroll';
this.css.setAttr('type', 'text/css');
document.getElementsByTagName("head")[0].appendChild(this.css);
this.css.innerText = "body{--zen-opacity: ".concat(this.settings.zenOpacity, ";}");
// add the settings tab
this.addSettingTab(new CMTypewriterScrollSettingTab(this.app, this));
// add the commands / keyboard shortcuts
this.addCommands();
return [2 /*return*/];
}
});
});
};
CMTypewriterScrollPlugin.prototype.onunload = function () {
// disable the plugin
this.disableTypewriterScroll();
this.disableZen();
};
CMTypewriterScrollPlugin.prototype.addCommands = function () {
var _this = this;
// add the toggle on/off command
this.addCommand({
id: 'toggle-typewriter-sroll',
name: 'Toggle On/Off',
callback: function () { _this.toggleTypewriterScroll(); }
});
// toggle zen mode
this.addCommand({
id: 'toggle-typewriter-sroll-zen',
name: 'Toggle Zen Mode On/Off',
callback: function () { _this.toggleZen(); }
});
};
return CMTypewriterScrollPlugin;
}(obsidian.Plugin));
var CMTypewriterScrollSettingTab = /** @class */ (function (_super) {
__extends(CMTypewriterScrollSettingTab, _super);
function CMTypewriterScrollSettingTab(app, plugin) {
var _this = _super.call(this, app, plugin) || this;
_this.plugin = plugin;
return _this;
}
CMTypewriterScrollSettingTab.prototype.display = function () {
var _this = this;
var containerEl = this.containerEl;
containerEl.empty();
new obsidian.Setting(containerEl)
.setName("Toggle Typewriter Scrolling")
.setDesc("Turns typewriter scrolling on or off globally")
.addToggle(function (toggle) {
return toggle.setValue(_this.plugin.settings.enabled)
.onChange(function (newValue) { _this.plugin.toggleTypewriterScroll(newValue); });
});
new obsidian.Setting(containerEl)
.setName("Center offset")
.setDesc("Positions the typewriter text at the specified percentage of the screen")
.addSlider(function (slider) {
return slider.setLimits(0, 100, 5)
.setValue(_this.plugin.settings.typewriterOffset * 100)
.onChange(function (newValue) { _this.plugin.changeTypewriterOffset(newValue / 100); });
});
new obsidian.Setting(containerEl)
.setName("Zen Mode")
.setDesc("Darkens non-active lines in the editor so you can focus on what you're typing")
.addToggle(function (toggle) {
return toggle.setValue(_this.plugin.settings.zenEnabled)
.onChange(function (newValue) { _this.plugin.toggleZen(newValue); });
});
new obsidian.Setting(containerEl)
.setName("Zen Opacity")
.setDesc("The opacity of unfocused lines in zen mode")
.addSlider(function (slider) {
return slider.setLimits(0, 100, 5)
.setValue(_this.plugin.settings.zenOpacity * 100)
.onChange(function (newValue) { _this.plugin.changeZenOpacity(newValue / 100); });
});
};
return CMTypewriterScrollSettingTab;
}(obsidian.PluginSettingTab));
module.exports = CMTypewriterScrollPlugin;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZXMiOlsibm9kZV9tb2R1bGVzL3RzbGliL3RzbGliLmVzNi5qcyIsInR5cGV3cml0ZXItc2Nyb2xsaW5nLmpzIiwiZXh0ZW5zaW9uLnRzIiwibWFpbi50cyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKiEgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKipcclxuQ29weXJpZ2h0IChjKSBNaWNyb3NvZnQgQ29ycG9yYXRpb24uXHJcblxyXG5QZXJtaXNzaW9uIHRvIHVzZSwgY29weSwgbW9kaWZ5LCBhbmQvb3IgZGlzdHJpYnV0ZSB0aGlzIHNvZnR3YXJlIGZvciBhbnlcclxucHVycG9zZSB3aXRoIG9yIHdpdGhvdXQgZmVlIGlzIGhlcmVieSBncmFudGVkLlxyXG5cclxuVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEIFwiQVMgSVNcIiBBTkQgVEhFIEFVVEhPUiBESVNDTEFJTVMgQUxMIFdBUlJBTlRJRVMgV0lUSFxyXG5SRUdBUkQgVE8gVEhJUyBTT0ZUV0FSRSBJTkNMVURJTkcgQUxMIElNUExJRUQgV0FSUkFOVElFUyBPRiBNRVJDSEFOVEFCSUxJVFlcclxuQU5EIEZJVE5FU1MuIElOIE5PIEVWRU5UIFNIQUxMIFRIRSBBVVRIT1IgQkUgTElBQkxFIEZPUiBBTlkgU1BFQ0lBTCwgRElSRUNULFxyXG5JTkRJUkVDVCwgT1IgQ09OU0VRVUVOVElBTCBEQU1BR0VTIE9SIEFOWSBEQU1BR0VTIFdIQVRTT0VWRVIgUkVTVUxUSU5HIEZST01cclxuTE9TUyBPRiBVU0UsIERBVEEgT1IgUFJPRklUUywgV0hFVEhFUiBJTiBBTiBBQ1RJT04gT0YgQ09OVFJBQ1QsIE5FR0xJR0VOQ0UgT1JcclxuT1RIRVIgVE9SVElPVVMgQUNUSU9OLCBBUklTSU5HIE9VVCBPRiBPUiBJTiBDT05ORUNUSU9OIFdJVEggVEhFIFVTRSBPUlxyXG5QRVJGT1JNQU5DRSBPRiBUSElTIFNPRlRXQVJFLlxyXG4qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiAqL1xyXG4vKiBnbG9iYWwgUmVmbGVjdCwgUHJvbWlzZSAqL1xyXG5cclxudmFyIGV4dGVuZFN0YXRpY3MgPSBmdW5jdGlvbihkLCBiKSB7XHJcbiAgICBleHRlbmRTdGF0aWNzID0gT2JqZWN0LnNldFByb3RvdHlwZU9mIHx8XHJcbiAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fFxyXG4gICAgICAgIGZ1bmN0aW9uIChkLCBiKSB7IGZvciAodmFyIHAgaW4gYikgaWYgKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChiLCBwKSkgZFtwXSA9IGJbcF07IH07XHJcbiAgICByZXR1cm4gZXh0ZW5kU3RhdGljcyhkLCBiKTtcclxufTtcclxuXHJcbmV4cG9ydCBmdW5jdGlvbiBfX2V4dGVuZHMoZCwgYikge1xyXG4gICAgaWYgKHR5cGVvZiBiICE9PSBcImZ1bmN0aW9uXCIgJiYgYiAhPT0gbnVsbClcclxuICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKFwiQ2xhc3MgZXh0ZW5kcyB2YWx1ZSBcIiArIFN0cmluZyhiKSArIFwiIGlzIG5vdCBhIGNvbnN0cnVjdG9yIG9yIG51bGxcIik7XHJcbiAgICBleHRlbmRTdGF0aWNzKGQsIGIpO1xyXG4gICAgZnVuY3Rpb24gX18oKSB7IHRoaXMuY29uc3RydWN0b3IgPSBkOyB9XHJcbiAgICBkLnByb3RvdHlwZSA9IGIgPT09IG51bGwgPyBPYmplY3QuY3JlYXRlKGIpIDogKF9fLnByb3RvdHlwZSA9IGIucHJvdG90eXBlLCBuZXcgX18oKSk7XHJcbn1cclxuXHJcbmV4cG9ydCB2YXIgX19hc3NpZ24gPSBmdW5jdGlvbigpIHtcclxuICAgIF9fYXNzaWduID0gT2JqZWN0LmFzc2lnbiB8fCBmdW5jdGlvbiBfX2Fzc2lnbih0KSB7XHJcbiAgICAgICAgZm9yICh2YXIgcywgaSA9IDEsIG4gPSBhcmd1bWVudHMubGVuZ3RoOyBpIDwgbjsgaSsrKSB7XHJcbiAgICAgICAgICAgIHMgPSBhcmd1bWVudHNbaV07XHJcbiAgICAgICAgICAgIGZvciAodmFyIHAgaW4gcykgaWYgKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChzLCBwKSkgdFtwXSA9IHNbcF07XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHJldHVybiB0O1xyXG4gICAgfVxyXG4gICAgcmV0dXJuIF9fYXNzaWduLmFwcGx5KHRoaXMsIGFyZ3VtZW50cyk7XHJcbn1cclxuXHJcbmV4cG9ydCBmdW5jdGlvbiBfX3Jlc3QocywgZSkge1xyXG4gICAgdmFyIHQgPSB7fTtcclxuICAgIGZvciAodmFyIHAgaW4gcykgaWYgKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChzLCBwKSAmJiBlLmluZGV4T2YocCkgPCAwKVxyXG4gICAgICAgIHRbcF0gPSBzW3BdO1xyXG4gICAgaWYgKHMgIT0gbnVsbCAmJiB0eXBlb2YgT2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyA9PT0gXCJmdW5jdGlvblwiKVxyXG4gICAgICAgIGZvciAodmFyIGkgPSAwLCBwID0gT2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhzKTsgaSA8IHAubGVuZ3RoOyBpKyspIHtcclxuICAgICAgICAgICAgaWYgKGUuaW5kZXhPZihwW2ldKSA8IDAgJiYgT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKHMsIHBbaV0pKVxyXG4gICAgICAgICAgICAgICAgdFtwW2ldXSA9IHNbcFtpXV07XHJcbiAgICAgICAgfVxyXG4gICAgcmV0dXJuIHQ7XHJcbn1cclxuXHJcbmV4cG9ydCBmdW5jdGlvbiBfX2RlY29yYXRlKGRlY29yYXRvcnMsIHRhcmdldCwga2V5LCBkZXNjKSB7XHJcbiAgICB2YXIgYyA9IGFyZ3VtZW50cy5sZW5ndGgsIHIgPSBjIDwgMyA/IHRhcmdldCA6IGRlc2MgPT09IG51bGwgPyBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcih0YXJnZXQsIGtleSkgOiBkZXNjLCBkO1xyXG4gICAgaWYgKHR5cGVvZiBSZWZsZWN0ID09PSBcIm9iamVjdFwiICYmIHR5cGVvZiBSZWZsZWN0LmRlY29yYXRlID09PSBcImZ1bmN0aW9uXCIpIHIgPSBSZWZsZWN0LmRlY29yYXRlKGRlY29yYXRvcnMsIHRhcmdldCwga2V5LCBkZXNjKTtcclxuICAgIGVsc2UgZm9yICh2YXIgaSA9IGRlY29yYXRvcnMubGVuZ3RoIC0gMTsgaSA+PSAwOyBpLS0pIGlmIChkID0gZGVjb3JhdG9yc1tpXSkgciA9IChjIDwgMyA/IGQocikgOiBjID4gMyA/IGQodGFyZ2V0LCBrZXksIHIpIDogZCh0YXJnZXQsIGtleSkpIHx8IHI7XHJcbiAgICByZXR1cm4gYyA+IDMgJiYgciAmJiBPYmplY3QuZGVmaW5lUHJvcGVydHkodGFyZ2V0LCBrZXksIHIpLCByO1xyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gX19wYXJhbShwYXJhbUluZGV4LCBkZWNvcmF0b3IpIHtcclxuICAgIHJldHVybiBmdW5jdGlvbiAodGFyZ2V0LCBrZXkpIHsgZGVjb3JhdG9yKHRhcmdldCwga2V5LCBwYXJhbUluZGV4KTsgfVxyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gX19tZXRhZGF0YShtZXRhZGF0YUtleSwgbWV0YWRhdGFWYWx1ZSkge1xyXG4gICAgaWYgKHR5cGVvZiBSZWZsZWN0ID09PSBcIm9iamVjdFwiICYmIHR5cGVvZiBSZWZsZWN0Lm1ldGFkYXRhID09PSBcImZ1bmN0aW9uXCIpIHJldHVybiBSZWZsZWN0Lm1ldGFkYXRhKG1ldGFkYXRhS2V5LCBtZXRhZGF0YVZhbHVlKTtcclxufVxyXG5cclxuZXhwb3J0IGZ1bmN0aW9uIF9fYXdhaXRlcih0aGlzQXJnLCBfYXJndW1lbnRzLCBQLCBnZW5lcmF0b3IpIHtcclxuICAgIGZ1bmN0aW9uIGFkb3B0KHZhbHVlKSB7IHJldHVybiB2YWx1ZSBpbnN0YW5jZW9mIFAgPyB2YWx1ZSA6IG5ldyBQKGZ1bmN0aW9uIChyZXNvbHZlKSB Line truncated
@@ -0,0 +1,10 @@
{
"id": "cm-typewriter-scroll-obsidian",
"name": "Typewriter Scroll",
"author": "death_au",
"authorUrl": "https://github.com/deathau",
"description": "Typewriter-style scrolling which keeps the view centered in the editor.",
"isDesktopOnly": false,
"version": "0.2.2",
"minAppVersion": "0.10.0"
}
@@ -0,0 +1,6 @@
body.plugin-cm-typewriter-scroll-zen .CodeMirror-lines:not(.selecting) .CodeMirror-code > :not(.CodeMirror-activeline) {
opacity: var(--zen-opacity);
}
body.plugin-cm-typewriter-scroll-zen .cm-editor.cm-focused .cm-line:not(.cm-active) {
opacity: var(--zen-opacity);
}
+20723
View File
File diff suppressed because it is too large. Load diff
+11
View File
@@ -0,0 +1,11 @@
{
"id": "dataview",
"name": "Dataview",
"version": "0.5.67",
"minAppVersion": "0.13.11",
"description": "Complex data views for the data-obsessed.",
"author": "Michael Brenan <blacksmithgu@gmail.com>",
"authorUrl": "https://github.com/blacksmithgu",
"helpUrl": "https://blacksmithgu.github.io/obsidian-dataview/",
"isDesktopOnly": false
}
+146
View File
@@ -0,0 +1,146 @@
/** Live Preview padding fixes, specifically for DataviewJS custom HTML elements. */
.is-live-preview .block-language-dataviewjs > p, .is-live-preview .block-language-dataviewjs > span {
line-height: 1.0;
}
.block-language-dataview {
overflow-y: auto;
}
/*****************/
/** Table Views **/
/*****************/
/* List View Default Styling; rendered internally as a table. */
.table-view-table {
width: 100%;
}
.table-view-table > thead > tr, .table-view-table > tbody > tr {
margin-top: 1em;
margin-bottom: 1em;
text-align: left;
}
.table-view-table > tbody > tr:hover {
background-color: var(--table-row-background-hover);
}
.table-view-table > thead > tr > th {
font-weight: 700;
font-size: larger;
border-top: none;
border-left: none;
border-right: none;
border-bottom: solid;
max-width: 100%;
}
.table-view-table > tbody > tr > td {
text-align: left;
border: none;
font-weight: 400;
max-width: 100%;
}
.table-view-table ul, .table-view-table ol {
margin-block-start: 0.2em !important;
margin-block-end: 0.2em !important;
}
/** Rendered value styling for any view. */
.dataview-result-list-root-ul {
padding: 0em !important;
margin: 0em !important;
}
.dataview-result-list-ul {
margin-block-start: 0.2em !important;
margin-block-end: 0.2em !important;
}
/** Generic grouping styling. */
.dataview.result-group {
padding-left: 8px;
}
/*******************/
/** Inline Fields **/
/*******************/
.dataview.inline-field-key {
padding-left: 8px;
padding-right: 8px;
font-family: var(--font-monospace);
background-color: var(--background-primary-alt);
color: var(--text-nav-selected);
}
.dataview.inline-field-value {
padding-left: 8px;
padding-right: 8px;
font-family: var(--font-monospace);
background-color: var(--background-secondary-alt);
color: var(--text-nav-selected);
}
.dataview.inline-field-standalone-value {
padding-left: 8px;
padding-right: 8px;
font-family: var(--font-monospace);
background-color: var(--background-secondary-alt);
color: var(--text-nav-selected);
}
/***************/
/** Task View **/
/***************/
.dataview.task-list-item, .dataview.task-list-basic-item {
margin-top: 3px;
margin-bottom: 3px;
transition: 0.4s;
}
.dataview.task-list-item:hover, .dataview.task-list-basic-item:hover {
background-color: var(--text-selection);
box-shadow: -40px 0 0 var(--text-selection);
cursor: pointer;
}
/*****************/
/** Error Views **/
/*****************/
div.dataview-error-box {
width: 100%;
min-height: 150px;
display: flex;
align-items: center;
justify-content: center;
border: 4px dashed var(--background-secondary);
}
.dataview-error-message {
color: var(--text-muted);
text-align: center;
}
/*************************/
/** Additional Metadata **/
/*************************/
.dataview.small-text {
font-size: smaller;
color: var(--text-muted);
margin-left: 3px;
}
.dataview.small-text::before {
content: "(";
}
.dataview.small-text::after {
content: ")";
}
+10
View File
@@ -0,0 +1,10 @@
{
"welcomeComplete": true,
"theme": {
"dark": true,
"layout": "compact"
},
"drawing": {
"sketch": false
}
}
+15
View File
@@ -0,0 +1,15 @@
"use strict";var e=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 t(e,t,n,i){return new(n||(n=Promise))((function(a,r){function l(e){try{s(i.next(e))}catch(e){r(e)}}function o(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,o)}s((i=i.apply(e,t||[])).next())}))}class n extends e.EditableFileView{constructor(e,t){super(e),this.plugin=t}onMoreOptionsMenu(e){super.onMoreOptionsMenu(e),e.addItem((e=>{e.onClick((e=>{this.saveAsPng()})),e.setIcon("image-file"),e.setTitle("Export as png")}))}readBlob(e){const t=new FileReader;return new Promise((n=>{t.onload=e=>{n(e.target.result)},t.readAsDataURL(e)}))}loadImage(e){const t=new Image;return new Promise((n=>{t.onload=()=>n(t),t.src=e}))}saveAsPng(){return t(this,void 0,void 0,(function*(){const e=yield this.app.vault.read(this.file),t=document.createElement("canvas"),n=t.getContext("2d"),i=new Blob([e],{type:"image/svg+xml"}),a=yield this.readBlob(i),r=yield this.loadImage(a);t.height=r.naturalHeight,t.width=r.naturalWidth,n.fillStyle="#fff",n.fillRect(0,0,t.width,t.height),n.drawImage(r,0,0);const l=t.toDataURL("image/png"),o=document.createElement("a");o.setAttribute("href",l),o.setAttribute("download",this.file.basename+".png"),document.body.appendChild(o),o.click(),document.body.removeChild(o)}))}}var i,a;!function(e){e.Script="script",e.Stylesheet="stylesheet",e.Css="css",e.FrameConfig="frame-config",e.Load="load",e.ToggleBodyClass="toggle-body-class"}(i||(i={})),function(e){e.Change="change",e.Iframe="iframe",e.Init="init",e.Load="load",e.FocusIn="focusin",e.FocusOut="focusout"}(a||(a={}));class r{constructor(e,t){this.awaitedMessages=new Set,this.targetFactory=e,this.listener=n=>{const i=e();if(n.source!==i)return;const a=JSON.parse(n.data);t&&t(a);Array.from(this.awaitedMessages.values()).forEach((e=>{e.filter(a)&&(this.awaitedMessages.delete(e),e.callback(a))}))},window.addEventListener("message",this.listener)}validateTarget(e){if("object"!=typeof e||null===e)throw Error("Target window is not an object");if("function"!=typeof e.postMessage)throw Error("Target window does not have a postMessage function")}waitForMessage(e,t){return new Promise(((n,i)=>{const a=setTimeout((()=>{this.awaitedMessages.delete(r),i("Timeout waiting for message")}),t),r={filter:e,callback:e=>{this.awaitedMessages.delete(r),clearTimeout(a),n(e)}};this.awaitedMessages.add(r)}))}sendMessageAndWait(e,t,n){const i=this.targetFactory();this.validateTarget(i);const a=this.waitForMessage(t,n);return i.postMessage(JSON.stringify(e),"*"),a}sendMessage(e){const t=this.targetFactory();this.validateTarget(t),t.postMessage(JSON.stringify(e),"*")}destroy(){window.removeEventListener("message",this.listener)}}class l extends Event{constructor(e){super("fileChange"),this.data=e}}class o extends Event{constructor(e){super("fileLoad"),this.data=e}}class s extends Event{constructor(e){super("stateChange"),this.initialized=e}}class c{constructor(e,t){this.iframeElement=null,this.contentEl=e,this.settings=t,this.file=null,this.isInitialized=!1,this.iframeElement=this.createFrameElement(),this.frameMessenger=new r((()=>this.iframeElement.contentWindow),this.handleMessage.bind(this)),this.contentEl.appendChild(this.iframeElement)}destroy(){this.iframeElement&&(this.iframeElement.parentElement&&this.iframeElement.parentElement.removeChild(this.iframeElement),this.iframeElement=null),this.frameMessenger&&this.frameMessenger.destroy()}loadFile(e){return t(this,void 0,void 0,(function*(){this.file=null,this.isInitialized||(yield this.waitForInit()),this.frameMessenger.sendMessage({action:i.Load,xml:e});const t="undefined"!==(yield this.frameMessenger.waitForMessage((e=>"load"===e.event),5e3)).xml;return t&&(this.file={data:e}),t}))}addEventListener(e,t,n){return this.iframeElement.addEventListener.call(this.iframeElement,e,t,n)}dispatchEvent(e){return this.iframeElement.dispatchEvent.call(this.iframeElement,e)}removeEventListener(e,t,n){return this.iframeElement.removeEventListener.call(this.iframeElement,e,t,n)}createFrameElement(){const e="data:text/html,"+encodeURIComponent('\n<script>\nconst onWindowMessage = (messageEvent) => {\n const message = JSON.parse(messageEvent.data);\n if(message.action==="script"){\n const scriptElement = document.createElement("script");\n scriptElement.text = message.script;\n document.head.appendChild(scriptElement);\n }\n window.removeEventListener("message", onWindowMessage);\n}\nwindow.addEventListener("message",onWindowMessage);\nwindow.parent.postMessage("{\\"event\\":\\"iframe\\"}",\'*\');\n<\/script>'),t=document.createElement("iframe");return t.setAttribute("frameborder","0"),t.setAttribute("style","z-index:1;display:block;height:100%;width:100%;"),t.setAttribute("src",e),t}toggleBodyClassName(e,t){this.frameMessenger.sendMessage({action:i.ToggleBodyClass,className:e,force:t})}addScriptToFrame(e){this.frameMessenger.sendMessage({action:i.ScriLine truncated
+10
View File
@@ -0,0 +1,10 @@
{
"id": "drawio-obsidian",
"name": "Diagrams",
"version": "1.5.0",
"minAppVersion": "0.9.12",
"description": "Draw.io diagrams for Obsidian. This plugin introduces diagrams that can be included within notes or as stand-alone files. Diagrams are created as SVG files (although .drawio extensions are also supported).",
"author": "Sam Greenhalgh",
"authorUrl": "https://www.radicalresearch.co.uk/",
"isDesktopOnly": true
}
+28
View File
@@ -0,0 +1,28 @@
.progress-bar-line {
width: 100%;
left: 0;
}
.progress-bar-indicator {
width: 90%;
margin: 0 10%;
}
.diagram-view svg {
max-width: 100%;
max-height: 100%;
display: block;
}
.diagram-view svg a:link,
.diagram-view svg a:visited {
color: var(--interactive-accent, #00f);
filter: drop-shadow(
0 0 3px rgba(var(--interactive-accent-rgb, "0, 0, 255"), 0.5)
);
}
.diagram-view svg a:hover {
color: var(--interactive-accent-hover, #00f);
filter: drop-shadow(0 0 3px var(--interactive-accent-hover, #00f));
}
+5
View File
@@ -0,0 +1,5 @@
{
"startupSetting": true,
"lifecycleSetting": "3",
"savePathSetting": "/home/boris/Documents/Obsidian"
}
File diff suppressed because it is too large. Load diff
+13
View File
@@ -0,0 +1,13 @@
{
"id": "local-backup",
"name": "Local Backup",
"version": "0.1.7",
"minAppVersion": "0.15.0",
"description": "Automatically creates a local backup of the vault.",
"author": "GC Chen",
"authorUrl": "https://github.com/cgcel/obsidian-local-backup",
"fundingUrl": "https://www.buymeacoffee.com/cgcel",
"isDesktopOnly": true,
"js": "main.js",
"tags": ["backup"]
}
+775
View File
@@ -0,0 +1,775 @@
{
"categories": {
"Flowchart": "Flowchart",
"SequenceDiagram": "SequenceDiagram",
"ClassDiagram": "ClassDiagram",
"StateDiagram": "StateDiagram",
"EntityRelationshipDiagram": "EntityRelationshipDiagram",
"UserJourneyDiagram": "UserJourneyDiagram",
"GanttChart": "GanttChart",
"PieChart": "PieChart",
"RequirementDiagram": "RequirementDiagram",
"GitGraph": "GitGraph",
"Mindmap": "Mindmap",
"Timeline": "Timeline",
"C4Diagram": "C4Diagram",
"QuadrantChart": "QuadrantChart",
"SankeyDiagram": "SankeyDiagram",
"XyChart": "XyChart"
},
"elements": [
{
"id": "f0b470f6-e758-40a1-b83a-ee8877bab687",
"category": "Flowchart",
"description": "a simple flowchart with top to down direction",
"content": "flowchart TD\nStart --> Stop",
"sortingOrder": 1,
"isPinned": false
},
{
"id": "c8f4d7ae-2ad7-439c-b29e-b955b1b4843e",
"category": "Flowchart",
"description": "a simple flowchart with left to right direction",
"content": "flowchart LR\nStart --> Stop",
"sortingOrder": 2,
"isPinned": false
},
{
"id": "0d341c0f-f212-4b95-a933-4cea34d7d9ff",
"category": "Flowchart",
"description": "A node with round edges",
"content": "id1(Some text)",
"sortingOrder": 3,
"isPinned": false
},
{
"id": "b7130fb4-47b2-43b7-be7e-766b8d63b2a6",
"category": "Flowchart",
"description": "A stadium-shaped node",
"content": "id1([Some text])",
"sortingOrder": 4,
"isPinned": false
},
{
"id": "3d1f71ab-5695-4c56-91fc-c7691065bdaa",
"category": "Flowchart",
"description": "A node in a cylindrical shape",
"content": "id1[(Database)]",
"sortingOrder": 5,
"isPinned": false
},
{
"id": "05ee45db-6f42-4c2c-b16b-2992921e2b90",
"category": "Flowchart",
"description": "Circle",
"content": "id1((Some text))",
"sortingOrder": 6,
"isPinned": false
},
{
"id": "62806473-c5d9-4f8e-8269-9ff81d21b555",
"category": "Flowchart",
"description": "Rhombus",
"content": "id1{Some text}",
"sortingOrder": 7,
"isPinned": false
},
{
"id": "e0b82242-e824-4cff-a875-aa1497ca323e",
"category": "Flowchart",
"description": "Hexagon",
"content": "id1{{Some text}}",
"sortingOrder": 8,
"isPinned": false
},
{
"id": "a3624459-1eaa-4c4c-8f58-77f0b2f24317",
"category": "Flowchart",
"description": "Parallelogram skewed right",
"content": "id1[/Some text/]",
"sortingOrder": 9,
"isPinned": false
},
{
"id": "3c43f246-7f2e-42ad-a547-fa4f74379f4c",
"category": "Flowchart",
"description": "Parallelogram skewed left",
"content": "id1[\\Some text\\]",
"sortingOrder": 10,
"isPinned": false
},
{
"id": "4994bf34-7776-4b11-a913-ff30a5dd96c0",
"category": "Flowchart",
"description": "Trapezoid",
"content": "A[/Some text\\]",
"sortingOrder": 11,
"isPinned": false
},
{
"id": "d1637dee-0e3d-4c00-861f-030127faba04",
"category": "Flowchart",
"description": "Trapezoid upside down",
"content": "A[\\Some text/]",
"sortingOrder": 12,
"isPinned": false
},
{
"id": "1b0c8a81-43a3-4fe4-9fe1-df069b5f58ef",
"category": "Flowchart",
"description": "Double circle node",
"content": "id1(((Some text)))",
"sortingOrder": 13,
"isPinned": false
},
{
"id": "2d12f3b2-4e8c-43ba-9547-2f195b01fda3",
"category": "Flowchart",
"description": "A link with arrow head",
"content": "A-->B",
"sortingOrder": 14,
"isPinned": false
},
{
"id": "b65a89eb-445f-4893-91b4-8e8f6e8263d0",
"category": "Flowchart",
"description": "An open link",
"content": "A --- B",
"sortingOrder": 15,
"isPinned": false
},
{
"id": "ac373a66-7204-4a53-825a-eb6fbc493c4a",
"category": "Flowchart",
"description": "Text on links",
"content": "A-- This is the text! ---B",
"sortingOrder": 16,
"isPinned": false
},
{
"id": "405d1a66-a98d-497b-a518-4eb983d42954",
"category": "Flowchart",
"description": "A link with arrow head and text",
"content": "A-->|text|B",
"sortingOrder": 17,
"isPinned": false
},
{
"id": "2d72edb7-af63-4a2a-8b6f-cb2194a77c22",
"category": "Flowchart",
"description": "Dotted link",
"content": "A-.->B",
"sortingOrder": 18,
"isPinned": false
},
{
"id": "81d9ebb0-a88f-49b1-94e4-99ba6e7830c6",
"category": "Flowchart",
"description": "Thick link",
"content": "A ==> B",
"sortingOrder": 19,
"isPinned": false
},
{
"id": "34590175-e487-406c-87c0-af36aff52227",
"category": "Flowchart",
"description": "Invisible link",
"content": "A ~~~ B",
"sortingOrder": 20,
"isPinned": false
},
{
"id": "09e29cb2-2d29-4a03-adfd-1b114bf0c652",
"category": "Flowchart",
"description": "Link with circle edge",
"content": "A --o B",
"sortingOrder": 21,
"isPinned": false
},
{
"id": "3e83e974-06e1-455b-b06d-4e03528e7034",
"category": "Flowchart",
"description": "Link with cross edge",
"content": "A --x B",
"sortingOrder": 22,
"isPinned": false
},
{
"id": "e912d1f6-4c16-45fd-abcb-ec4905baa94a",
"category": "Flowchart",
"description": "Subgraph",
"content": "subgraph one\na1-->a2\nend",
"sortingOrder": 14,
"isPinned": false
},
{
"id": "b97108ee-8e30-4191-9581-fb3217dadae8",
"category": "SequenceDiagram",
"description": "a simple sequence diagram",
"content": "sequenceDiagram\nAlice->>John: Hello John, how are you?\nJohn-->>Alice: Great!\nAlice-)John: See you later!",
"sortingOrder": 0,
"isPinned": false
},
{
"id": "8302a3e3-23c7-467e-9b77-bc4ff89c2939",
"category": "SequenceDiagram",
"description": "a simple sequence diagram with actors",
"content": "sequenceDiagram\nactor Alice\nactor John\nAlice->>John: Hello John, how are you?\nJohn-->>Alice: Great!\nAlice-)John: See you later!",
"sortingOrder": 1,
"isPinned": false
},
{
"id": "7517b980-928d-4067-b032-e9bcaece4368",
"category": "ClassDiagram",
"description": "sample class",
"content": "class Duck{\n +String beakColor\n +swim()\n +quack()\n }",
"sortingOrder": 0,
"isPinned": false
},
{
"id": "c9f304da-ed52-4d9c-80ae-f4e583ea4bf4",
"category": "ClassDiagram",
"description": "sample class",
"content": "class BankAccount\n BankAccount : +String owner\n BankAccount : +Bigdecimal balance\n BankAccount : +deposit(amount)\n BankAccount : +withdrawal(amount)",
"sortingOrder": 1,
"isPinned": false
},
{
"id": "bf93cb8c-4c06-4fea-973a-d9ada4c4bb65",
"category": "ClassDiagram",
"description": "generic class",
"content": "class Square~Shape~{\n int id\n List~int~ position\n setPoints(List~int~ points)\n getPoints() List~int~\n }\n \n Square : -List~string~ messages\n Square : +setMessages(List~string~ messages)\n Square : +getMessages() List~string~",
"sortingOrder": 2,
"isPinned": false
},
{
"id": "782a4caf-bcb4-479b-b084-6cdaf9b87bb7",
"category": "ClassDiagram",
"description": "inheritance",
"content": "classA <|-- classB",
"sortingOrder": 3,
"isPinned": false
},
{
"id": "a2f694b0-b9a2-4c51-b0d2-e30f1513a62f",
"category": "ClassDiagram",
"description": "composition",
"content": "classC *-- classD",
"sortingOrder": 4,
"isPinned": false
},
{
"id": "adbea3a9-c070-44c9-8aaf-34780d330c40",
"category": "ClassDiagram",
"description": "aggregation",
"content": "classE o-- classF",
"sortingOrder": 5,
"isPinned": false
},
{
"id": "c98bdcb6-2490-48f5-8373-2cd456e2c435",
"category": "ClassDiagram",
"description": "association",
"content": "classG <-- classH",
"sortingOrder": 6,
"isPinned": false
},
{
"id": "4c58d09d-91ca-4de4-adb9-b85282b79d7f",
"category": "ClassDiagram",
"description": "solid link",
"content": "classI -- classJ",
"sortingOrder": 7,
"isPinned": false
},
{
"id": "c1830a64-1247-4176-8439-c9badac5fd39",
"category": "ClassDiagram",
"description": "dependency",
"content": "classK <.. classL",
"sortingOrder": 8,
"isPinned": false
},
{
"id": "5218e72c-db76-48a3-8dd7-7cd39e5499b0",
"category": "ClassDiagram",
"description": "realization",
"content": "classM <|.. classN",
"sortingOrder": 9,
"isPinned": false
},
{
"id": "34819115-9a4f-432f-8fcd-abffbd3851b3",
"category": "ClassDiagram",
"description": "dashed link",
"content": "classO .. classP",
"sortingOrder": 10,
"isPinned": false
},
{
"id": "07f02636-7c88-4c50-8249-b4f9fd922699",
"category": "ClassDiagram",
"description": "two-way relation",
"content": "Animal <|--|> Zebra",
"sortingOrder": 11,
"isPinned": false
},
{
"id": "629680af-30d3-4e6e-8b14-b77eee92fe33",
"category": "ClassDiagram",
"description": "sample class diagram",
"content": "classDiagram\n Animal <|-- Duck\n Animal <|-- Fish\n Animal <|-- Zebra\n Animal : +int age\n Animal : +String gender\n Animal: +isMammal()\n Animal: +mate()\n class Duck{\n +String beakColor\n +swim()\n +quack()\n }\n class Fish{\n -int sizeInFeet\n -canEat()\n }\n class Zebra{\n +bool is_wild\n +run()\n }",
"sortingOrder": 12,
"isPinned": false
},
{
"id": "b729d6a2-56fc-47a1-9d20-ff4edc7dbc9f",
"category": "StateDiagram",
"description": "a sample state diagram",
"content": "stateDiagram-v2\n [*] --> Still\n Still --> [*]\n \n Still --> Moving\n Moving --> Still\n Moving --> Crash\n Crash --> [*]",
"sortingOrder": 0,
"isPinned": false
},
{
"id": "202e804d-3cc2-4193-aa3f-6f453aebabe7",
"category": "StateDiagram",
"description": "a sample state diagram with left-to-right direction",
"content": "stateDiagram-v2\n direction LR\n [*] --> Still\n Still --> [*]\n \n Still --> Moving\n Moving --> Still\n Moving --> Crash\n Crash --> [*]",
"sortingOrder": 1,
"isPinned": false
},
{
"id": "33746916-9359-44ce-a67f-ee3e9d892b2f",
"category": "StateDiagram",
"description": "node with description",
"content": "s2 : This is a state description",
"sortingOrder": 2,
"isPinned": false
},
{
"id": "b578cd8a-f522-456f-b113-bdf5326b3fe8",
"category": "StateDiagram",
"description": "a transition",
"content": "s1 --> s2",
"sortingOrder": 3,
"isPinned": false
},
{
"id": "0f3325b1-3712-4cbf-a6ec-0c626d0b805e",
"category": "StateDiagram",
"description": "a transition with label",
"content": "s1 --> s2: A transition",
"sortingOrder": 4,
"isPinned": false
},
{
"id": "7dceb7de-cd40-4c05-ad54-4077a91eead1",
"category": "StateDiagram",
"description": "composite state",
"content": "\n [*] --> First\n state First {\n [*] --> second\n second --> [*]\n }",
"sortingOrder": 5,
"isPinned": false
},
{
"id": "6ff8f945-a713-4c3b-9574-10f4df026c1f",
"category": "StateDiagram",
"description": "diagram with choice",
"content": "stateDiagram-v2\n state if_state <<choice>>\n [*] --> IsPositive\n IsPositive --> if_state\n if_state --> False: if n < 0\n if_state --> True : if n >= 0",
"sortingOrder": 6,
"isPinned": false
},
{
"id": "3cf86621-2a99-40b7-9e7e-fb533fbaa68d",
"category": "StateDiagram",
"description": "diagram with fork",
"content": "stateDiagram-v2\n state fork_state <<fork>>\n [*] --> fork_state\n fork_state --> State2\n fork_state --> State3\n \n state join_state <<join>>\n State2 --> join_state\n State3 --> join_state\n join_state --> State4\n State4 --> [*]",
"sortingOrder": 7,
"isPinned": false
},
{
"id": "f5b8a154-1722-4ccf-931c-3c8f7543ef56",
"category": "StateDiagram",
"description": "a diagram with concurrency",
"content": "stateDiagram-v2\n [*] --> Active\n \n state Active {\n [*] --> NumLockOff\n NumLockOff --> NumLockOn : EvNumLockPressed\n NumLockOn --> NumLockOff : EvNumLockPressed\n --\n [*] --> CapsLockOff\n CapsLockOff --> CapsLockOn : EvCapsLockPressed\n CapsLockOn --> CapsLockOff : EvCapsLockPressed\n --\n [*] --> ScrollLockOff\n ScrollLockOff --> ScrollLockOn : EvScrollLockPressed\n ScrollLockOn --> ScrollLockOff : EvScrollLockPressed\n }",
"sortingOrder": 8,
"isPinned": false
},
{
"id": "8f570530-6f1f-4f62-961a-b25c81a5f3d3",
"category": "EntityRelationshipDiagram",
"description": "a sample entity relationship diagram",
"content": "erDiagram\n CUSTOMER ||--o{ ORDER : places\n ORDER ||--|{ LINE-ITEM : contains\n CUSTOMER }|..|{ DELIVERY-ADDRESS : uses",
"sortingOrder": 0,
"isPinned": false
},
{
"id": "bda50acd-6d9d-4761-b4a1-9d46fa0e529d",
"category": "EntityRelationshipDiagram",
"description": "an entity",
"content": " CUSTOMER {\n string name\n string custNumber\n string sector\n }",
"sortingOrder": 1,
"isPinned": false
},
{
"id": "b34b4ecb-dde3-4774-bb95-451592d3962d",
"category": "EntityRelationshipDiagram",
"description": "one-to-many relationship",
"content": "A ||--|{ B : label",
"sortingOrder": 2,
"isPinned": false
},
{
"id": "186bd61c-75d8-45d9-8fbc-7c75ba382934",
"category": "EntityRelationshipDiagram",
"description": "many-to-many relationship",
"content": "A }|--|{ B : label",
"sortingOrder": 3,
"isPinned": false
},
{
"id": "d59103dc-aa07-42ca-a9ef-99206967f64b",
"category": "EntityRelationshipDiagram",
"description": "one-to-one relationship",
"content": "A ||--|| B : label",
"sortingOrder": 4,
"isPinned": false
},
{
"id": "cc04e766-d90e-417e-9965-ca61c5227619",
"category": "EntityRelationshipDiagram",
"description": "many-to-one relationship",
"content": "A }|--|| B : label",
"sortingOrder": 5,
"isPinned": false
},
{
"id": "728a5cd8-bf05-45a2-bb3d-d3e60a1972fb",
"category": "EntityRelationshipDiagram",
"description": "zero/one-to-one relationship",
"content": "A |o--|| B : label",
"sortingOrder": 6,
"isPinned": false
},
{
"id": "c671792a-c9fc-4fec-a2f1-1c2e731438d6",
"category": "EntityRelationshipDiagram",
"description": "one-to-one/zero relationship",
"content": "A ||--o| B : label",
"sortingOrder": 7,
"isPinned": false
},
{
"id": "435b1b1a-7d2a-41c7-8819-61f8d40a1e36",
"category": "EntityRelationshipDiagram",
"description": "zero-or-more-to-one relationship",
"content": "A }o--|| B : label",
"sortingOrder": 8,
"isPinned": false
},
{
"id": "073e36a5-549d-4188-80b6-dba7b4cf4a6c",
"category": "EntityRelationshipDiagram",
"description": "one-to-zero-or-more relationship",
"content": "A ||--o{ B : label",
"sortingOrder": 9,
"isPinned": false
},
{
"id": "f26adf9c-95cb-49e4-a762-8e92662ef391",
"category": "EntityRelationshipDiagram",
"description": "zero-or-more-to-many relationship",
"content": "A }o--|{ B : label",
"sortingOrder": 10,
"isPinned": false
},
{
"id": "f41b436c-7eeb-4fc8-8299-9bedae50ddf6",
"category": "EntityRelationshipDiagram",
"description": "many-to-zero-or-more relationship",
"content": "A }|--o{ B : label",
"sortingOrder": 11,
"isPinned": false
},
{
"id": "b5c9e252-5913-40da-9727-9ae4df412301",
"category": "UserJourneyDiagram",
"description": "a sample user journey diagram",
"content": "journey\n title My working day\n section Go to work\n Make tea: 5: Me\n Go upstairs: 3: Me\n Do work: 1: Me, Cat\n section Go home\n Go downstairs: 5: Me\n Sit down: 5: Me",
"sortingOrder": 0,
"isPinned": false
},
{
"id": "2f8a880d-c5ff-4621-a6bc-4da7a3f6161d",
"category": "UserJourneyDiagram",
"description": "a step in user journey",
"content": " Step Title: 5: ActorName",
"sortingOrder": 1,
"isPinned": false
},
{
"id": "17d7b59b-a5bf-4cee-af6e-2c8ab524b58a",
"category": "GanttChart",
"description": "simple gantt chart",
"content": "gantt\n title A Gantt Diagram\n dateFormat YYYY-MM-DD\n section Section\n A task :a1, 2014-01-01, 30d\n Another task :after a1 , 20d\n section Another\n Task in sec :2014-01-12 , 12d\n another task : 24d",
"sortingOrder": 0,
"isPinned": false
},
{
"id": "ada6159a-fbdf-4cab-8279-e0c2ec09334f",
"category": "GanttChart",
"description": "rich gantt chart",
"content": "gantt\n dateFormat YYYY-MM-DD\n title Adding GANTT diagram functionality to mermaid\n excludes weekends\n \n section A section\n Completed task :done, des1, 2014-01-06,2014-01-08\n Active task :active, des2, 2014-01-09, 3d\n Future task : des3, after des2, 5d\n Future task2 : des4, after des3, 5d\n \n section Critical tasks\n Completed task in the critical line :crit, done, 2014-01-06,24h\n Implement parser and jison :crit, done, after des1, 2d\n Create tests for parser :crit, active, 3d\n Future task in critical line :crit, 5d\n Create tests for renderer :2d\n Add to mermaid :1d\n Functionality added :milestone, 2014-01-25, 0d\n \n section Documentation\n Describe gantt syntax :active, a1, after des1, 3d\n Add gantt diagram to demo page :after a1 , 20h\n Add another diagram to demo page :doc1, after a1 , 48h\n \n section Last section\n Describe gantt syntax :after doc1, 3d\n Add gantt diagram to demo page :20h\n Add another diagram to demo page :48h",
"sortingOrder": 1,
"isPinned": false
},
{
"id": "9455ce9c-d136-4ce5-97c8-dea67c643edc",
"category": "GanttChart",
"description": "milestones example",
"content": "gantt\n dateFormat HH:mm\n axisFormat %H:%M\n Initial milestone : milestone, m1, 17:49,2min\n taska2 : 10min\n taska3 : 5min\n Final milestone : milestone, m2, 18:14, 2min",
"sortingOrder": 2,
"isPinned": false
},
{
"id": "d1debb13-ea98-481e-b3e7-7d736131ec6c",
"category": "PieChart",
"description": "sample pie chart",
"content": "pie title /r/obsidianmd posts by type\n \"Look at my awesome graph\" : 85\n \"Look at my cool dashboard\" : 14\n \"Moved from Notion, liking it\" : 1",
"sortingOrder": 0,
"isPinned": false
},
{
"id": "b38f6ae2-908e-4129-9d68-7b78e8adbf36",
"category": "PieChart",
"description": "sample pie chart with values shown in legend",
"content": "pie showdata\n title /r/obsidianmd posts by type\n \"Graphs\" : 85\n \"Dashboards\" : 14\n \"Tips\" : 1",
"sortingOrder": 1,
"isPinned": false
},
{
"id": "9c4f6451-6a32-4750-9b9d-98be0763372b",
"category": "RequirementDiagram",
"description": "sample requirements diagram",
"content": " requirementDiagram\n\n requirement test_req {\n id: 1\n text: the test text.\n risk: high\n verifymethod: test\n }\n \n element test_entity {\n type: simulation\n }\n \n test_entity - satisfies -> test_req",
"sortingOrder": 0,
"isPinned": false
},
{
"id": "b6ca2fc5-5048-4dca-a46f-432d6b3de467",
"category": "RequirementDiagram",
"description": "sample requirements diagram",
"content": "element customElement {\n type: customType\n docref: customDocRef\n }",
"sortingOrder": 1,
"isPinned": false
},
{
"id": "d8a91025-62e1-4373-b25c-25b21963843e",
"category": "RequirementDiagram",
"description": "a requirement with high risk",
"content": "functionalRequirement myReq {\n id: reqId\n text: someText\n risk: High\n verifymethod: analysis\n }",
"sortingOrder": 2,
"isPinned": false
},
{
"id": "29c26c80-e603-437d-882e-3c850feb1534",
"category": "RequirementDiagram",
"description": "sample requirements diagram",
"content": "interfaceRequirement myReq2 {\n id: reqId\n text: someText\n risk: Medium\n verifymethod: demonstration\n }",
"sortingOrder": 3,
"isPinned": false
},
{
"id": "65423e9f-032a-46bb-939a-620aacb72c1b",
"category": "RequirementDiagram",
"description": "sample requirements diagram",
"content": "designConstraint myReq3 {\n id: reqId\n text: someText\n risk: Low\n verifymethod: test\n }",
"sortingOrder": 4,
"isPinned": false
},
{
"id": "f3c005e4-c1ca-4c59-8981-7d0199840c78",
"category": "GitGraph",
"description": "simple git graph",
"content": "gitGraph\n commit\n commit\n branch develop\n checkout develop\n commit\n commit\n checkout main\n merge develop\n commit\n commit",
"sortingOrder": 0,
"isPinned": false
},
{
"id": "e1dc1d49-17ed-4821-b8f4-4ea7e69dc6ea",
"category": "GitGraph",
"description": "tagged commit",
"content": "commit id: \"Normal\" tag: \"v1.0.0\"",
"sortingOrder": 1,
"isPinned": false
},
{
"id": "c2daef1c-2fe9-4762-af73-274dd20c3922",
"category": "GitGraph",
"description": "reverse commit",
"content": "commit id: \"Reverse\" type: REVERSE",
"sortingOrder": 2,
"isPinned": false
},
{
"id": "f9b1b682-5ba9-4b0f-8491-37e8c00745e7",
"category": "GitGraph",
"description": "highlighted commit",
"content": "commit id: \"Highlight\" type: HIGHLIGHT",
"sortingOrder": 3,
"isPinned": false
},
{
"id": "243c6251-5898-4cd6-8453-85684c423dee",
"category": "GitGraph",
"description": "reverse commit",
"content": "commit id: \"Reverse\" type: REVERSE",
"sortingOrder": 4,
"isPinned": false
},
{
"id": "0c003837-d67c-4e12-afea-ac495d38e404",
"category": "GitGraph",
"description": "git graph with cherry-pick",
"content": "gitGraph\n commit id: \"ZERO\"\n branch develop\n commit id:\"A\"\n checkout main\n commit id:\"ONE\"\n checkout develop\n commit id:\"B\"\n checkout main\n commit id:\"TWO\"\n cherry-pick id:\"A\"\n commit id:\"THREE\"\n checkout develop\n commit id:\"C\"",
"sortingOrder": 5,
"isPinned": false
},
{
"id": "79cfc768-1500-47e8-8827-b33b28f9ebb0",
"category": "Mindmap",
"description": "a simple mindmap",
"content": "mindmap\n Root\n A\n B\n C",
"sortingOrder": 1,
"isPinned": false
},
{
"id": "9f4648c8-0697-4b09-8f45-847f11f9bdca",
"category": "Mindmap",
"description": "square",
"content": "id[I am a square]",
"sortingOrder": 2,
"isPinned": false
},
{
"id": "eec294f8-60a6-4a5f-a6a1-ead4c5f5af77",
"category": "Mindmap",
"description": "rounded square",
"content": "id(I am a rounded square)",
"sortingOrder": 3,
"isPinned": false
},
{
"id": "48f045fc-30db-4f14-9b16-04c72f4ca067",
"category": "Mindmap",
"description": "circle",
"content": "id((I am a circle))",
"sortingOrder": 4,
"isPinned": false
},
{
"id": "0980f34a-2627-46be-9f63-7924d9db8b20",
"category": "Mindmap",
"description": "bang",
"content": "id))I am a bang((",
"sortingOrder": 5,
"isPinned": false
},
{
"id": "ff554a9c-5d63-43d8-9de7-2b7cc8945fd8",
"category": "Mindmap",
"description": "cloud",
"content": "id)I am a cloud(",
"sortingOrder": 6,
"isPinned": false
},
{
"id": "0ffe41de-a327-4e5e-9191-f21dea9be077",
"category": "Mindmap",
"description": "hexagon",
"content": "id{{I am a hexagon}}",
"sortingOrder": 7,
"isPinned": false
},
{
"id": "73c96ed1-9f4e-4c00-a8bb-96f6dc32e9d1",
"category": "Mindmap",
"description": "default",
"content": "I am the default shape",
"sortingOrder": 8,
"isPinned": false
},
{
"id": "2e741382-2b79-4c8e-be64-bd8818bacbc9",
"category": "Mindmap",
"description": "sample mindmap",
"content": "mindmap\n root((mindmap))\n Origins\n Long history\n Popularisation\n British popular psychology author Tony Buzan\n Research\n On effectiveness<br/>and features\n On Automatic creation\n Uses\n Creative techniques\n Strategic planning\n Argument mapping\n Tools\n Pen and paper\n Mermaid",
"sortingOrder": 9,
"isPinned": false
},
{
"id": "fd8a19e0-fd13-42b0-bc3d-f70f4a517ea6",
"category": "Timeline",
"description": "sample timeline",
"content": "timeline\n\t\ttitle History of Social Media Platform\n\t\t2002 : LinkedIn\n\t\t2004 : Facebook\n\t\t\t : Google\n\t\t2005 : Youtube\n\t\t2006 : Twitter",
"sortingOrder": 1,
"isPinned": false
},
{
"id": "26851611-0f5e-4903-bc1d-aaf20d91a7ab",
"category": "Timeline",
"description": "timeline with grouping",
"content": "timeline\n\t\ttitle Timeline of Industrial Revolution\n\t\tsection 17th-20th century\n\t\t\tIndustry 1.0 : Machinery, Water power, Steam <br>power\n\t\t\tIndustry 2.0 : Electricity, Internal combustion engine, Mass production\n\t\t\tIndustry 3.0 : Electronics, Computers, Automation\n\t\tsection 21st century\n\t\t\tIndustry 4.0 : Internet, Robotics, Internet of Things\n\t\t\tIndustry 5.0 : Artificial intelligence, Big data,3D printing",
"sortingOrder": 2,
"isPinned": false
},
{
"id": "7bc16821-c2f6-402d-acfe-41625398a383",
"category": "Timeline",
"description": "timeline with Forest theme. see the docs for additional themes",
"content": "%%{init: { 'logLevel': 'debug', 'theme': 'forest' } }%%\n\t\ttimeline\n\t\t\ttitle History of Social Media Platform\n\t\t\t 2002 : LinkedIn\n\t\t\t 2004 : Facebook : Google\n\t\t\t 2005 : Youtube\n\t\t\t 2006 : Twitter\n\t\t\t 2007 : Tumblr\n\t\t\t 2008 : Instagram\n\t\t\t 2010 : Pinterest",
"sortingOrder": 3,
"isPinned": false
},
{
"id": "5ebc370e-37e0-475f-8036-c18e5144f0cd",
"category": "QuadrantChart",
"description": "sample quadrant chart",
"content": "quadrantChart\n\t\ttitle Reach and engagement of campaigns\n\t\tx-axis Low Reach --> High Reach\n\t\ty-axis Low Engagement --> High Engagement\n\t\tquadrant-1 We should expand\n\t\tquadrant-2 Need to promote\n\t\tquadrant-3 Re-evaluate\n\t\tquadrant-4 May be improved\n\t\tCampaign A: [0.3, 0.6]\n\t\tCampaign B: [0.45, 0.23]\n\t\tCampaign C: [0.57, 0.69]\n\t\tCampaign D: [0.78, 0.34]\n\t\tCampaign E: [0.40, 0.34]\n\t\tCampaign F: [0.35, 0.78]",
"sortingOrder": 1,
"isPinned": false
},
{
"id": "c4283670-6d36-425d-abe9-ffc0251d4dab",
"category": "QuadrantChart",
"description": "themed quadrant chart",
"content": "%%{init: {\"quadrantChart\": {\"chartWidth\": 400, \"chartHeight\": 400}, \"themeVariables\": {\"quadrant1TextFill\": \"#ff0000\"} }}%%\n\t\tquadrantChart\n\t\t x-axis Urgent --> Not Urgent\n\t\t y-axis Not Important --> \"Important ❤\"\n\t\t quadrant-1 Plan\n\t\t quadrant-2 Do\n\t\t quadrant-3 Delegate\n\t\t quadrant-4 Delete",
"sortingOrder": 1,
"isPinned": false
},
{
"id": "c7226c80-ae6d-49e5-b974-69107b83cb81",
"category": "C4Diagram",
"description": "sample C4 diagram (compatible with PlantUML)",
"content": "C4Context\n\t\ttitle System Context diagram for Internet Banking System\n\t\tEnterprise_Boundary(b0, \"BankBoundary0\") {\n\t\t Person(customerA, \"Banking Customer A\", \"A customer of the bank, with personal bank accounts.\")\n\t\t Person(customerB, \"Banking Customer B\")\n\t\t Person_Ext(customerC, \"Banking Customer C\", \"desc\")\n \n\t\t Person(customerD, \"Banking Customer D\", \"A customer of the bank, <br/> with personal bank accounts.\")\n \n\t\t System(SystemAA, \"Internet Banking System\", \"Allows customers to view information about their bank accounts, and make payments.\")\n \n\t\t Enterprise_Boundary(b1, \"BankBoundary\") {\n \n\t\t\tSystemDb_Ext(SystemE, \"Mainframe Banking System\", \"Stores all of the core banking information about customers, accounts, transactions, etc.\")\n \n\t\t\tSystem_Boundary(b2, \"BankBoundary2\") {\n\t\t\t System(SystemA, \"Banking System A\")\n\t\t\t System(SystemB, \"Banking System B\", \"A system of the bank, with personal bank accounts. next line.\")\n\t\t\t}\n \n\t\t\tSystem_Ext(SystemC, \"E-mail system\", \"The internal Microsoft Exchange e-mail system.\")\n\t\t\tSystemDb(SystemD, \"Banking System D Database\", \"A system of the bank, with personal bank accounts.\")\n \n\t\t\tBoundary(b3, \"BankBoundary3\", \"boundary\") {\n\t\t\t SystemQueue(SystemF, \"Banking System F Queue\", \"A system of the bank.\")\n\t\t\t SystemQueue_Ext(SystemG, \"Banking System G Queue\", \"A system of the bank, with personal bank accounts.\")\n\t\t\t}\n\t\t }\n\t\t}\n \n\t\tBiRel(customerA, SystemAA, \"Uses\")\n\t\tBiRel(SystemAA, SystemE, \"Uses\")\n\t\tRel(SystemAA, SystemC, \"Sends e-mails\", \"SMTP\")\n\t\tRel(SystemC, customerA, \"Sends e-mails to\")\n \n\t\tUpdateElementStyle(customerA, $fontColor=\"red\", $bgColor=\"grey\", $borderColor=\"red\")\n\t\tUpdateRelStyle(customerA, SystemAA, $textColor=\"blue\", $lineColor=\"blue\", $offsetX=\"5\")\n\t\tUpdateRelStyle(SystemAA, SystemE, $textColor=\"blue\", $lineColor=\"blue\", $offsetY=\"-10\")\n\t\tUpdateRelStyle(SystemAA, SystemC, $textColor=\"blue\", $lineColor=\"blue\", $offsetY=\"-40\", $offsetX=\"-50\")\n\t\tUpdateRelStyle(SystemC, customerA, $textColor=\"red\", $lineColor=\"red\", $offsetX=\"-50\", $offsetY=\"20\")\n \n\t\tUpdateLayoutConfig($c4ShapeInRow=\"3\", $c4BoundaryInRow=\"1\")",
"sortingOrder": 1,
"isPinned": false
},
{
"id": "31b2c838-9a6d-45cc-b4ce-72a390a97b3a",
"category": "SankeyDiagram",
"description": "",
"content": "sankey-beta\n %% source,target,value\n Electricity grid,Over generation / exports,104.453\n Electricity grid,Heating and cooling - homes,113.726\n Electricity grid,H2 conversion,27.14",
"sortingOrder": 0,
"isPinned": false
},
{
"id": "89c31de2-14ce-49e0-ad02-87802d70bb8b",
"category": "XyChart",
"description": "a sample XYChart diagram",
"content": "xychart-beta\n title \"Sales Revenue\"\n x-axis [jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec]\n y-axis \"Revenue (in $)\" 4000 --> 11000\n bar [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]\n line [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]",
"sortingOrder": 0,
"isPinned": false
}
],
"selectedCategory": "Flowchart"
}
File diff suppressed because it is too large. Load diff
+11
View File
@@ -0,0 +1,11 @@
{
"id": "mermaid-tools",
"name": "Mermaid Tools",
"version": "1.1.3",
"minAppVersion": "1.4.0",
"description": "Improved Mermaid.js experience for Obsidian: visual toolbar with common elements & more",
"author": "dartungar",
"authorUrl": "https://dartungar.com",
"fundingUrl": "https://www.paypal.com/paypalme/dartungar",
"isDesktopOnly": false
}
+55
View File
@@ -0,0 +1,55 @@
.mermaid-toolbar-container, .mermaid-toolbar-container * {
max-width: 100%;
max-height: 100%;
}
.mermaid-toolbar-top-row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 8px;
}
.mermaid-toolbar-elements-container {
padding-top: 1rem;
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.mermaid-toolbar-element {
font-size: var(--font-ui-small);
cursor: pointer;
padding: 2px 2px 2px 5px;
border-radius: 3px;
flex: 1 0 auto;
}
.mermaid-toolbar-element:hover {
background-color: var(--interactive-hover);
}
.mermaid-tools-element-category-header::before {
content: "▼ ";
font-size: 70%;
padding-bottom: 2px;
}
.mermaid-tools-element-category-header.collapsed::before {
content: "▶ ";
font-size: 70%;
padding-bottom: 2px;
}
.mermaid-tools-element-container {
padding-top: 6px;
border-bottom: var(--border-width) solid var(--color-base-35);
}
.mermaid-tools-edit-element-modal > div {
margin-bottom: 0.5rem;
}
.mermaid-tools-edit-element-modal label {
margin-right: 1rem;
}
File diff suppressed because it is too large. Load diff
+10
View File
@@ -0,0 +1,10 @@
{
"id": "obsidian-csv-table",
"name": "CSV Table",
"version": "1.2.0",
"minAppVersion": "0.11.10",
"description": "Render CSV data as a table within your notes.",
"author": "Adam Coddington <me@adamcoddington.net>",
"authorUrl": "https://coddingtonbear.net/",
"isDesktopOnly": false
}
+8
View File
@@ -0,0 +1,8 @@
.csv-table {
width: 100%;
}
.csv-error {
font-weight: 700;
padding: 10em;
border: 1px solid #f00;
}
File diff suppressed because it is too large. Load diff
+10
View File
@@ -0,0 +1,10 @@
{
"id": "obsidian-diagrams-net",
"name": "Diagrams.net",
"version": "1.0.4",
"minAppVersion": "0.12.0",
"description": "Enable diagrams.net (previously draw.io) type diagrams, with the diagrams.net embedded editor.",
"author": "Jens M Gleditsch",
"authorUrl": "https://github.com/jensmtg",
"isDesktopOnly": true
}
@@ -0,0 +1,228 @@
/*
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());
});
};
// src/main.ts
__export(exports, {
default: () => ExcelToMarkdownTablePlugin
});
var import_obsidian = __toModule(require("obsidian"));
// src/table-alignment-syntax.ts
var ALIGNED_LEFT_SYNTAX = {
prefix: "",
postfix: "",
adjust: 0
};
var ALIGNED_RIGHT_SYNTAX = {
prefix: "",
postfix: ":",
adjust: 1
};
var ALIGNED_CENTER_SYNTAX = {
prefix: ":",
postfix: ":",
adjust: 2
};
// src/excel-markdown-helpers.ts
var ALIGNED_LEFT = "l";
var ALIGNED_RIGHT = "r";
var ALIGNED_CENTER = "c";
var EXCEL_COLUMN_DELIMITER = " ";
var MARKDOWN_NEWLINE = "<br/>";
var UNESCAPED_DOUBLE_QUOTE = '"';
var EXCEL_ROW_DELIMITER_REGEX = /[\n\u0085\u2028\u2029]|\r\n?/g;
var COLUMN_ALIGNMENT_REGEX = /^(\^[lcr])/i;
var EXCEL_NEWLINE_ESCAPED_CELL_REGEX = /"([^\t]*(?<=[^\r])\n[^\t]*)"/g;
var EXCEL_NEWLINE_REGEX = /\n/g;
var EXCEL_DOUBLE_QUOTE_ESCAPED_REGEX = /""/g;
function addMarkdownSyntax(rows, columnWidths) {
return rows.map(function(row, rowIndex) {
return "| " + row.map(function(column, index) {
column = column.replace("|", "\\|");
return column + Array(columnWidths[index] - column.length + 1).join(" ");
}).join(" | ") + " |";
});
}
function addAlignmentSyntax(markdownRows, columnWidths, colAlignments) {
let result = Object.assign([], markdownRows);
result.splice(1, 0, "|" + columnWidths.map(function(width, index) {
let { prefix, postfix, adjust } = calculateAlignmentMarkdownSyntaxMetadata(colAlignments[index]);
return prefix + Array(columnWidths[index] + 3 - adjust).join("-") + postfix;
}).join("|") + "|");
return result;
}
function calculateAlignmentMarkdownSyntaxMetadata(alignment) {
switch (alignment) {
case ALIGNED_LEFT:
return ALIGNED_LEFT_SYNTAX;
case ALIGNED_CENTER:
return ALIGNED_CENTER_SYNTAX;
case ALIGNED_RIGHT:
return ALIGNED_RIGHT_SYNTAX;
default:
return ALIGNED_LEFT_SYNTAX;
}
}
function getColumnWidthsAndAlignments(rows) {
let colAlignments = [];
return {
columnWidths: rows[0].map(function(column, columnIndex) {
let alignment = columnAlignment(column);
colAlignments.push(alignment);
column = column.replace(COLUMN_ALIGNMENT_REGEX, "");
rows[0][columnIndex] = column;
return columnWidth(rows, columnIndex);
}),
colAlignments
};
}
function columnAlignment(columnHeaderText) {
var m = columnHeaderText.match(COLUMN_ALIGNMENT_REGEX);
if (m) {
var alignChar = m[1][1].toLowerCase();
return columnAlignmentFromChar(alignChar);
}
return ALIGNED_LEFT;
}
function columnAlignmentFromChar(alignChar) {
switch (alignChar) {
case ALIGNED_LEFT:
return ALIGNED_LEFT;
case ALIGNED_CENTER:
return ALIGNED_CENTER;
case ALIGNED_RIGHT:
return ALIGNED_RIGHT;
default:
return ALIGNED_LEFT;
}
}
function columnWidth(rows, columnIndex) {
return Math.max.apply(null, rows.map(function(row) {
return row[columnIndex] && row[columnIndex].length || 0;
}));
}
function splitIntoRowsAndColumns(data) {
var rows = data.split(EXCEL_ROW_DELIMITER_REGEX).map(function(row) {
return row.split(EXCEL_COLUMN_DELIMITER);
});
return rows;
}
function replaceIntraCellNewline(data) {
let cellReplacer = (_) => _.slice(1, -1).replace(EXCEL_DOUBLE_QUOTE_ESCAPED_REGEX, UNESCAPED_DOUBLE_QUOTE).replace(EXCEL_NEWLINE_REGEX, MARKDOWN_NEWLINE);
return data.replace(EXCEL_NEWLINE_ESCAPED_CELL_REGEX, cellReplacer);
}
// src/excel-markdown-tables.ts
var LINE_ENDING = "\n";
function excelToMarkdown(rawData) {
let data = rawData.trim();
var intraCellNewlineReplacedData = replaceIntraCellNewline(data);
var rows = splitIntoRowsAndColumns(intraCellNewlineReplacedData);
var { columnWidths, colAlignments } = getColumnWidthsAndAlignments(rows);
const markdownRows = addMarkdownSyntax(rows, columnWidths);
return addAlignmentSyntax(markdownRows, columnWidths, colAlignments).join(LINE_ENDING);
}
function getExcelRows(rawData) {
let data = rawData.trim();
var intraCellNewlineReplacedData = replaceIntraCellNewline(data);
return splitIntoRowsAndColumns(intraCellNewlineReplacedData);
}
function excelRowsToMarkdown(rows) {
var { columnWidths, colAlignments } = getColumnWidthsAndAlignments(rows);
const markdownRows = addMarkdownSyntax(rows, columnWidths);
return addAlignmentSyntax(markdownRows, columnWidths, colAlignments).join(LINE_ENDING);
}
function isExcelData(rows) {
return rows && rows[0] && rows[0].length > 1 ? true : false;
}
// src/main.ts
var ExcelToMarkdownTablePlugin = class extends import_obsidian.Plugin {
constructor() {
super(...arguments);
this.pasteHandler = (evt, editor) => {
if (evt.clipboardData === null) {
return;
}
if (evt.clipboardData.types.length === 1 && evt.clipboardData.types[0] === "text/plain") {
return;
}
const rawData = evt.clipboardData.getData("text");
const rows = getExcelRows(rawData);
if (isExcelData(rows)) {
const markdownData = excelRowsToMarkdown(rows);
editor.replaceSelection(markdownData + "\n");
evt.preventDefault();
}
};
}
onload() {
return __async(this, null, function* () {
this.addCommand({
id: "excel-to-markdown-table",
name: "Excel to Markdown",
hotkeys: [
{
modifiers: ["Mod", "Alt"],
key: "v"
}
],
editorCallback: (editor, view) => __async(this, null, function* () {
const text = yield navigator.clipboard.readText();
editor.replaceSelection(excelToMarkdown(text));
})
});
this.app.workspace.on("editor-paste", this.pasteHandler);
});
}
onunload() {
this.app.workspace.off("editor-paste", this.pasteHandler);
}
};
@@ -0,0 +1,10 @@
{
"id": "obsidian-excel-to-markdown-table",
"name": "Excel to Markdown Table",
"version": "0.4.0",
"minAppVersion": "0.12.0",
"description": "An Obsidian plugin to paste data from Microsoft Excel, Google Sheets, Apple Numbers and LibreOffice Calc as Markdown tables in Obsidian editor.",
"author": "Ganessh Kumar R P <rpganesshkumar@gmail.com>",
"authorUrl": "https://ganesshkumar.com",
"isDesktopOnly": false
}
@@ -0,0 +1 @@
+29
View File
@@ -0,0 +1,29 @@
{
"calendarSources": [
{
"type": "caldav",
"name": "Personal",
"url": "https://cloud.borishub.co.uk/remote.php/dav",
"homeUrl": "https://cloud.borishub.co.uk/remote.php/dav/calendars/boris/personal/",
"color": "#795AAB",
"username": "boris",
"password": "9PFNM-dwLnK-ZPAQq-ndZNa-H2YSa"
},
{
"type": "caldav",
"name": "Contact birthdays",
"url": "https://cloud.borishub.co.uk/remote.php/dav",
"homeUrl": "https://cloud.borishub.co.uk/remote.php/dav/calendars/boris/contact_birthdays/",
"color": "#E9D859",
"username": "boris",
"password": "9PFNM-dwLnK-ZPAQq-ndZNa-H2YSa"
}
],
"defaultCalendar": 0,
"firstDay": 0,
"initialView": {
"desktop": "timeGridWeek",
"mobile": "timeGrid3Days"
},
"timeFormat24h": false
}
File diff suppressed because it is too large. Load diff
+11
View File
@@ -0,0 +1,11 @@
{
"id": "obsidian-full-calendar",
"name": "Full Calendar",
"version": "0.10.7",
"minAppVersion": "0.16.3",
"description": "Obsidian integration with Full Calendar (fullcalendar.io)",
"author": "Davis Haupt",
"authorUrl": "https://davi.sh",
"isDesktopOnly": false,
"fundingUrl": "https://ko-fi.com/davish"
}
File diff suppressed because it is too large. Load diff
+58
View File
@@ -0,0 +1,58 @@
{
"commitMessage": "vault backup: {{date}}",
"commitDateFormat": "YYYY-MM-DD HH:mm:ss",
"autoSaveInterval": 0,
"autoPushInterval": 0,
"autoPullInterval": 0,
"autoPullOnBoot": true,
"disablePush": false,
"pullBeforePush": true,
"disablePopups": false,
"disablePopupsForNoChanges": false,
"listChangedFilesInMessageBody": false,
"showStatusBar": true,
"updateSubmodules": false,
"syncMethod": "merge",
"customMessageOnAutoBackup": false,
"autoBackupAfterFileChange": false,
"treeStructure": true,
"refreshSourceControl": true,
"basePath": "",
"differentIntervalCommitAndPush": false,
"changedFilesInStatusBar": false,
"showedMobileNotice": true,
"refreshSourceControlTimer": 7000,
"showBranchStatusBar": true,
"setLastSaveToLastCommit": false,
"submoduleRecurseCheckout": false,
"gitDir": "",
"showFileMenu": true,
"authorInHistoryView": "hide",
"dateInHistoryView": false,
"lineAuthor": {
"show": false,
"followMovement": "inactive",
"authorDisplay": "initials",
"showCommitHash": false,
"dateTimeFormatOptions": "date",
"dateTimeFormatCustomString": "YYYY-MM-DD HH:mm",
"dateTimeTimezone": "viewer-local",
"coloringMaxAge": "1y",
"colorNew": {
"r": 255,
"g": 150,
"b": 150
},
"colorOld": {
"r": 120,
"g": 160,
"b": 255
},
"textColorCss": "var(--text-muted)",
"ignoreWhitespace": false,
"gutterSpacingFallbackLength": 5,
"lastShownAuthorDisplay": "initials",
"lastShownDateTimeFormatOptions": "date"
},
"autoCommitMessage": "vault backup: {{date}}"
}
File diff suppressed because it is too large. Load diff
+10
View File
@@ -0,0 +1,10 @@
{
"author": "Vinzent",
"authorUrl": "https://github.com/Vinzent03",
"id": "obsidian-git",
"name": "Git",
"description": "Integrate Git version control with automatic backup and other advanced features.",
"isDesktopOnly": false,
"fundingUrl": "https://ko-fi.com/vinzent",
"version": "2.26.0"
}
+562
View File
@@ -0,0 +1,562 @@
@keyframes loading {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.workspace-leaf-content[data-type="git-view"] .button-border {
border: 2px solid var(--interactive-accent);
border-radius: var(--radius-s);
}
.workspace-leaf-content[data-type="git-view"] .view-content {
padding: 0;
}
.workspace-leaf-content[data-type="git-history-view"] .view-content {
padding: 0;
}
.loading > svg {
animation: 2s linear infinite loading;
transform-origin: 50% 50%;
display: inline-block;
}
.obsidian-git-center {
margin: auto;
text-align: center;
width: 50%;
}
.obsidian-git-textarea {
display: block;
margin-left: auto;
margin-right: auto;
}
.obsidian-git-center-button {
display: block;
margin: 20px auto;
}
.tooltip.mod-left {
overflow-wrap: break-word;
}
.tooltip.mod-right {
overflow-wrap: break-word;
}
.git-tools {
display: flex;
margin-left: auto;
}
.git-tools .type {
padding-left: var(--size-2-1);
display: flex;
align-items: center;
justify-content: center;
width: 11px;
}
.git-tools .type[data-type="M"] {
color: orange;
}
.git-tools .type[data-type="D"] {
color: red;
}
.git-tools .buttons {
display: flex;
}
.git-tools .buttons > * {
padding: 0 0;
height: auto;
}
.is-active .git-tools .buttons > * {
color: var(--nav-item-color-active);
}
.git-author {
color: var(--text-accent);
}
.git-date {
color: var(--text-accent);
}
.git-ref {
color: var(--text-accent);
}
.workspace-leaf-content[data-type="diff-view"] .d2h-d-none {
display: none;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-wrapper {
text-align: left;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-header {
background-color: var(--background-primary);
border-bottom: 1px solid var(--interactive-accent);
font-family: var(--font-monospace);
height: 35px;
padding: 5px 10px;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-header,
.workspace-leaf-content[data-type="diff-view"] .d2h-file-stats {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-stats {
font-size: 14px;
margin-left: auto;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-lines-added {
border: 1px solid #b4e2b4;
border-radius: 5px 0 0 5px;
color: #399839;
padding: 2px;
text-align: right;
vertical-align: middle;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-lines-deleted {
border: 1px solid #e9aeae;
border-radius: 0 5px 5px 0;
color: #c33;
margin-left: 1px;
padding: 2px;
text-align: left;
vertical-align: middle;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-name-wrapper {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
font-size: 15px;
width: 100%;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-name {
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-wrapper {
border: 1px solid var(--background-modifier-border);
border-radius: 3px;
margin-bottom: 1em;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse {
-webkit-box-pack: end;
-ms-flex-pack: end;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
border: 1px solid var(--background-modifier-border);
border-radius: 3px;
cursor: pointer;
display: none;
font-size: 12px;
justify-content: flex-end;
padding: 4px 8px;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse.d2h-selected {
background-color: #c8e1ff;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-collapse-input {
margin: 0 4px 0 0;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-diff-table {
border-collapse: collapse;
font-family: Menlo, Consolas, monospace;
font-size: 13px;
width: 100%;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-files-diff {
width: 100%;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-diff {
overflow-y: hidden;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-side-diff {
display: inline-block;
margin-bottom: -8px;
margin-right: -4px;
overflow-x: scroll;
overflow-y: hidden;
width: 50%;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line {
padding: 0 8em;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line {
display: inline-block;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
white-space: nowrap;
width: 100%;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line {
padding: 0 4.5em;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line-ctn {
word-wrap: normal;
background: none;
display: inline-block;
padding: 0;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
vertical-align: middle;
white-space: pre;
width: 100%;
}
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
.theme-light
.workspace-leaf-content[data-type="diff-view"]
.d2h-code-side-line
del {
background-color: #ffb6ba;
}
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
.theme-dark
.workspace-leaf-content[data-type="diff-view"]
.d2h-code-side-line
del {
background-color: #8d232881;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line del,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line del,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-line ins {
border-radius: 0.2em;
display: inline-block;
margin-top: -1px;
text-decoration: none;
vertical-align: middle;
}
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
.theme-light
.workspace-leaf-content[data-type="diff-view"]
.d2h-code-side-line
ins {
background-color: #97f295;
text-align: left;
}
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-code-line ins,
.theme-dark
.workspace-leaf-content[data-type="diff-view"]
.d2h-code-side-line
ins {
background-color: #1d921996;
text-align: left;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line-prefix {
word-wrap: normal;
background: none;
display: inline;
padding: 0;
white-space: pre;
}
.workspace-leaf-content[data-type="diff-view"] .line-num1 {
float: left;
}
.workspace-leaf-content[data-type="diff-view"] .line-num1,
.workspace-leaf-content[data-type="diff-view"] .line-num2 {
-webkit-box-sizing: border-box;
box-sizing: border-box;
overflow: hidden;
padding: 0 0.5em;
text-overflow: ellipsis;
width: 3.5em;
}
.workspace-leaf-content[data-type="diff-view"] .line-num2 {
float: right;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber {
background-color: var(--background-primary);
border: solid var(--background-modifier-border);
border-width: 0 1px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: var(--text-muted);
cursor: pointer;
display: inline-block;
position: absolute;
text-align: right;
width: 7.5em;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber:after {
content: "\200b";
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber {
background-color: var(--background-primary);
border: solid var(--background-modifier-border);
border-width: 0 1px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: var(--text-muted);
cursor: pointer;
display: inline-block;
overflow: hidden;
padding: 0 0.5em;
position: absolute;
text-align: right;
text-overflow: ellipsis;
width: 4em;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-diff-tbody tr {
position: relative;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber:after {
content: "\200b";
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-emptyplaceholder,
.workspace-leaf-content[data-type="diff-view"] .d2h-emptyplaceholder {
background-color: var(--background-primary);
border-color: var(--background-modifier-border);
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-line-prefix,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber,
.workspace-leaf-content[data-type="diff-view"] .d2h-emptyplaceholder {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-code-linenumber,
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber {
direction: rtl;
}
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-del {
background-color: #fee8e9;
border-color: #e9aeae;
}
.theme-light .workspace-leaf-content[data-type="diff-view"] .d2h-ins {
background-color: #dfd;
border-color: #b4e2b4;
}
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-del {
background-color: #521b1d83;
border-color: #691d1d73;
}
.theme-dark .workspace-leaf-content[data-type="diff-view"] .d2h-ins {
background-color: rgba(30, 71, 30, 0.5);
border-color: #13501381;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-info {
background-color: var(--background-primary);
border-color: var(--background-modifier-border);
color: var(--text-normal);
}
.theme-light
.workspace-leaf-content[data-type="diff-view"]
.d2h-file-diff
.d2h-del.d2h-change {
background-color: #fdf2d0;
}
.theme-dark
.workspace-leaf-content[data-type="diff-view"]
.d2h-file-diff
.d2h-del.d2h-change {
background-color: #55492480;
}
.theme-light
.workspace-leaf-content[data-type="diff-view"]
.d2h-file-diff
.d2h-ins.d2h-change {
background-color: #ded;
}
.theme-dark
.workspace-leaf-content[data-type="diff-view"]
.d2h-file-diff
.d2h-ins.d2h-change {
background-color: rgba(37, 78, 37, 0.418);
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-wrapper {
margin-bottom: 10px;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-wrapper a {
color: #3572b0;
text-decoration: none;
}
.workspace-leaf-content[data-type="diff-view"]
.d2h-file-list-wrapper
a:visited {
color: #3572b0;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-header {
text-align: left;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-title {
font-weight: 700;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list-line {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
text-align: left;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list {
display: block;
list-style: none;
margin: 0;
padding: 0;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list > li {
border-bottom: 1px solid var(--background-modifier-border);
margin: 0;
padding: 5px 10px;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-list > li:last-child {
border-bottom: none;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-file-switch {
cursor: pointer;
display: none;
font-size: 10px;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-icon {
fill: currentColor;
margin-right: 10px;
vertical-align: middle;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-deleted {
color: #c33;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-added {
color: #399839;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-changed {
color: #d0b44c;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-moved {
color: #3572b0;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-tag {
background-color: var(--background-primary);
display: -webkit-box;
display: -ms-flexbox;
display: flex;
font-size: 10px;
margin-left: 5px;
padding: 0 2px;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-deleted-tag {
border: 2px solid #c33;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-added-tag {
border: 1px solid #399839;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-changed-tag {
border: 1px solid #d0b44c;
}
.workspace-leaf-content[data-type="diff-view"] .d2h-moved-tag {
border: 1px solid #3572b0;
}
/* ====================== Line Authoring Information ====================== */
.cm-gutterElement.obs-git-blame-gutter {
/* Add background color to spacing inbetween and around the gutter for better aesthetics */
border-width: 0px 2px 0.2px 2px;
border-style: solid;
border-color: var(--background-secondary);
background-color: var(--background-secondary);
}
.cm-gutterElement.obs-git-blame-gutter > div,
.line-author-settings-preview {
/* delegate text color to settings */
color: var(--obs-git-gutter-text);
font-family: monospace;
height: 100%; /* ensure, that age-based background color occupies entire parent */
text-align: right;
padding: 0px 6px 0px 6px;
white-space: pre; /* Keep spaces and do not collapse them. */
}
@media (max-width: 800px) {
/* hide git blame gutter not to superpose text */
.cm-gutterElement.obs-git-blame-gutter {
display: none;
}
}
+257
View File
@@ -0,0 +1,257 @@
{
"ruleConfigs": {
"escape-yaml-special-characters": {
"enabled": false,
"try-to-escape-single-line-arrays": false
},
"force-yaml-escape": {
"enabled": false,
"force-yaml-escape-keys": ""
},
"format-tags-in-yaml": {
"enabled": false
},
"format-yaml-array": {
"enabled": false,
"alias-key": true,
"tag-key": true,
"default-array-style": "single-line",
"default-array-keys": true,
"force-single-line-array-style": "",
"force-multi-line-array-style": ""
},
"insert-yaml-attributes": {
"enabled": false,
"text-to-insert": "aliases: \ntags: "
},
"move-tags-to-yaml": {
"enabled": false,
"how-to-handle-existing-tags": "Nothing",
"tags-to-ignore": ""
},
"remove-yaml-keys": {
"enabled": false,
"yaml-keys-to-remove": ""
},
"yaml-key-sort": {
"enabled": false,
"yaml-key-priority-sort-order": "",
"priority-keys-at-start-of-yaml": true,
"yaml-sort-order-for-other-keys": "None"
},
"yaml-timestamp": {
"enabled": false,
"date-created": true,
"date-created-key": "date created",
"force-retention-of-create-value": false,
"date-modified": true,
"date-modified-key": "date modified",
"format": "dddd, MMMM Do YYYY, h:mm:ss a"
},
"yaml-title": {
"enabled": false,
"title-key": "title",
"mode": "first-h1-or-filename-if-h1-missing"
},
"yaml-title-alias": {
"enabled": false,
"preserve-existing-alias-section-style": true,
"keep-alias-that-matches-the-filename": false,
"use-yaml-key-to-keep-track-of-old-filename-or-heading": true
},
"capitalize-headings": {
"enabled": true,
"style": "Title Case",
"ignore-case-words": true,
"ignore-words": "macOS, iOS, iPhone, iPad, JavaScript, TypeScript, AppleScript, I",
"lowercase-words": "a, an, the, aboard, about, abt., above, abreast, absent, across, after, against, along, aloft, alongside, amid, amidst, mid, midst, among, amongst, anti, apropos, around, round, as, aslant, astride, at, atop, ontop, bar, barring, before, B4, behind, below, beneath, neath, beside, besides, between, 'tween, beyond, but, by, chez, circa, c., ca., come, concerning, contra, counting, cum, despite, spite, down, during, effective, ere, except, excepting, excluding, failing, following, for, from, in, including, inside, into, less, like, minus, modulo, mod, near, nearer, nearest, next, notwithstanding, of, o', off, offshore, on, onto, opposite, out, outside, over, o'er, pace, past, pending, per, plus, post, pre, pro, qua, re, regarding, respecting, sans, save, saving, short, since, sub, than, through, thru, throughout, thruout, till, times, to, t', touching, toward, towards, under, underneath, unlike, until, unto, up, upon, versus, vs., v., via, vice, vis-à-vis, wanting, with, w/, w., c̄, within, w/i, without, 'thout, w/o, abroad, adrift, aft, afterward, afterwards, ahead, apart, ashore, aside, away, back, backward, backwards, beforehand, downhill, downstage, downstairs, downstream, downward, downwards, downwind, east, eastward, eastwards, forth, forward, forwards, heavenward, heavenwards, hence, henceforth, here, hereby, herein, hereof, hereto, herewith, home, homeward, homewards, indoors, inward, inwards, leftward, leftwards, north, northeast, northward, northwards, northwest, now, onward, onwards, outdoors, outward, outwards, overboard, overhead, overland, overseas, rightward, rightwards, seaward, seawards, skywards, skyward, south, southeast, southwards, southward, southwest, then, thence, thenceforth, there, thereby, therein, thereof, thereto, therewith, together, underfoot, underground, uphill, upstage, upstairs, upstream, upward, upwards, upwind, west, westward, westwards, when, whence, where, whereby, wherein, whereto, wherewith, although, because, considering, given, granted, if, lest, once, provided, providing, seeing, so, supposing, though, unless, whenever, whereas, wherever, while, whilst, ago, according to, as regards, counter to, instead of, owing to, pertaining to, at the behest of, at the expense of, at the hands of, at risk of, at the risk of, at variance with, by dint of, by means of, by virtue of, by way of, for the sake of, for sake of, for lack of, for want of, from want of, in accordance with, in addition to, in case of, in charge of, in compliance with, in conformity with, in contact with, in exchange for, in favor of, in front of, in lieu of, in light of, in the light of, in line with, in place of, in point of, in quest of, in relation to, in regard to, with regard to, in respect to, with respect to, in return for, in search of, in step with, in touch with, in terms of, in the name of, in view of, on account of, on behalf of, on grounds of, on the grounds of, on the part of, on top of, with a view to, with the exception of, à la, a la, as soon as, as well as, close to, due to, far from, in case, other than, prior to, pursuant to, regardless of, subsequent to, as long as, as much as, as far as, by the time, in as much as, inasmuch, in order to, in order that, even, provide that, if only, whether, whose, whoever, why, how, or not, whatever, what, both, and, or, not only, but also, either, neither, nor, just, rather, no sooner, such, that, yet, is, it"
},
"file-name-heading": {
"enabled": false
},
"header-increment": {
"enabled": false,
"start-at-h2": false
},
"headings-start-line": {
"enabled": false
},
"remove-trailing-punctuation-in-heading": {
"enabled": false,
"punctuation-to-remove": ".,;:!。,;:!"
},
"footnote-after-punctuation": {
"enabled": true
},
"move-footnotes-to-the-bottom": {
"enabled": true
},
"re-index-footnotes": {
"enabled": true
},
"auto-correct-common-misspellings": {
"enabled": true,
"ignore-words": ""
},
"blockquote-style": {
"enabled": true,
"style": "space"
},
"convert-bullet-list-markers": {
"enabled": true
},
"emphasis-style": {
"enabled": true,
"style": "asterisk"
},
"no-bare-urls": {
"enabled": true,
"no-bare-uris": true
},
"ordered-list-style": {
"enabled": true,
"number-style": "ascending",
"list-end-style": "."
},
"proper-ellipsis": {
"enabled": true
},
"quote-style": {
"enabled": false,
"single-quote-enabled": true,
"single-quote-style": "''",
"double-quote-enabled": true,
"double-quote-style": "\"\""
},
"remove-consecutive-list-markers": {
"enabled": true
},
"remove-empty-list-markers": {
"enabled": true
},
"remove-hyphenated-line-breaks": {
"enabled": true
},
"remove-multiple-spaces": {
"enabled": true
},
"strong-style": {
"enabled": true,
"style": "consistent"
},
"two-spaces-between-lines-with-content": {
"enabled": true
},
"unordered-list-style": {
"enabled": true,
"list-style": "consistent"
},
"compact-yaml": {
"enabled": true,
"inner-new-lines": false
},
"consecutive-blank-lines": {
"enabled": true
},
"convert-spaces-to-tabs": {
"enabled": true,
"tabsize": " "
},
"empty-line-around-blockquotes": {
"enabled": true
},
"empty-line-around-code-fences": {
"enabled": true
},
"empty-line-around-math-blocks": {
"enabled": true
},
"empty-line-around-tables": {
"enabled": true
},
"heading-blank-lines": {
"enabled": true,
"bottom": true,
"empty-line-after-yaml": true
},
"line-break-at-document-end": {
"enabled": true
},
"move-math-block-indicators-to-their-own-line": {
"enabled": true
},
"paragraph-blank-lines": {
"enabled": true
},
"remove-empty-lines-between-list-markers-and-checklists": {
"enabled": true
},
"remove-link-spacing": {
"enabled": true
},
"remove-space-around-characters": {
"enabled": false,
"include-fullwidth-forms": true,
"include-cjk-symbols-and-punctuation": true,
"include-dashes": true,
"other-symbols": ""
},
"remove-space-before-or-after-characters": {
"enabled": false,
"characters-to-remove-space-before": ",!?;:).’”]",
"characters-to-remove-space-after": "¿¡‘“(["
},
"space-after-list-markers": {
"enabled": true
},
"space-between-chinese-japanese-or-korean-and-english-or-numbers": {
"enabled": false
},
"trailing-spaces": {
"enabled": true,
"twp-space-line-break": false
},
"add-blockquote-indentation-on-paste": {
"enabled": false
},
"prevent-double-checklist-indicator-on-paste": {
"enabled": true
},
"prevent-double-list-item-indicator-on-paste": {
"enabled": true
},
"proper-ellipsis-on-paste": {
"enabled": false
},
"remove-hyphens-on-paste": {
"enabled": false
},
"remove-leading-or-trailing-whitespace-on-paste": {
"enabled": true
},
"remove-leftover-footnotes-from-quote-on-paste": {
"enabled": true
},
"remove-multiple-blank-lines-on-paste": {
"enabled": true
}
},
"lintOnSave": true,
"recordLintOnSaveLogs": false,
"displayChanged": true,
"lintOnFileChange": false,
"displayLintOnFileChangeNotice": false,
"settingsConvertedToConfigKeyValues": true,
"foldersToIgnore": [],
"linterLocale": "system-default",
"logLevel": "ERROR",
"lintCommands": [],
"customRegexes": [],
"commonStyles": {
"aliasArrayStyle": "single-line",
"tagArrayStyle": "single-line",
"minimumNumberOfDollarSignsToBeAMathBlock": 2,
"escapeCharacter": "\"",
"removeUnnecessaryEscapeCharsForMultiLineArrays": false
}
}
+320
View File
@@ -0,0 +1,320 @@
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var Nm=Object.create;var $n=Object.defineProperty;var Yc=Object.getOwnPropertyDescriptor;var jm=Object.getOwnPropertyNames;var Ym=Object.getPrototypeOf,Pm=Object.prototype.hasOwnProperty;var mn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pc=(e,t)=>{for(var i in t)$n(e,i,{get:t[i],enumerable:!0})},Hc=(e,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of jm(t))!Pm.call(e,r)&&r!==i&&$n(e,r,{get:()=>t[r],enumerable:!(n=Yc(t,r))||n.enumerable});return e};var gn=(e,t,i)=>(i=e!=null?Nm(Ym(e)):{},Hc(t||!e||!e.__esModule?$n(i,"default",{value:e,enumerable:!0}):i,e)),Hm=e=>Hc($n({},"__esModule",{value:!0}),e),z=(e,t,i,n)=>{for(var r=n>1?void 0:n?Yc(t,i):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(n?s(t,i,r):s(r))||r);return n&&r&&$n(t,i,r),r};var Ko=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)};var _=(e,t,i)=>(Ko(e,t,"read from private field"),i?i.call(e):t.get(e)),ke=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},Me=(e,t,i,n)=>(Ko(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i);var _o=(e,t,i,n)=>({set _(r){Me(e,t,r,i)},get _(){return _(e,t,n)}}),me=(e,t,i)=>(Ko(e,t,"access private method"),i);var Za=mn((Bd,Qa)=>{(function(e,t){"use strict";typeof define=="function"&&define.amd?define(t):typeof Qa=="object"&&Qa.exports?Qa.exports=t():e.log=t()})(Bd,function(){"use strict";var e=function(){},t="undefined",i=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],r={},a=null;function s(g,b){var f=g[b];if(typeof f.bind=="function")return f.bind(g);try{return Function.prototype.bind.call(f,g)}catch{return function(){return Function.prototype.apply.apply(f,[g,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(g){return g==="debug"&&(g="log"),typeof console===t?!1:g==="trace"&&i?o:console[g]!==void 0?s(console,g):console.log!==void 0?s(console,"log"):e}function c(){for(var g=this.getLevel(),b=0;b<n.length;b++){var f=n[b];this[f]=b<g?e:this.methodFactory(f,g,this.name)}if(this.log=this.debug,typeof console===t&&g<this.levels.SILENT)return"No console available for logging"}function d(g){return function(){typeof console!==t&&(c.call(this),this[g].apply(this,arguments))}}function u(g,b,f){return l(g)||d.apply(this,arguments)}function m(g,b){var f=this,x,k,L,E="loglevel";typeof g=="string"?E+=":"+g:typeof g=="symbol"&&(E=void 0);function O(D){var U=(n[D]||"silent").toUpperCase();if(!(typeof window===t||!E)){try{window.localStorage[E]=U;return}catch{}try{window.document.cookie=encodeURIComponent(E)+"="+U+";"}catch{}}}function S(){var D;if(!(typeof window===t||!E)){try{D=window.localStorage[E]}catch{}if(typeof D===t)try{var U=window.document.cookie,$=encodeURIComponent(E),F=U.indexOf($+"=");F!==-1&&(D=/^([^;]+)/.exec(U.slice(F+$.length+1))[1])}catch{}return f.levels[D]===void 0&&(D=void 0),D}}function I(){if(!(typeof window===t||!E)){try{window.localStorage.removeItem(E)}catch{}try{window.document.cookie=encodeURIComponent(E)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function K(D){var U=D;if(typeof U=="string"&&f.levels[U.toUpperCase()]!==void 0&&(U=f.levels[U.toUpperCase()]),typeof U=="number"&&U>=0&&U<=f.levels.SILENT)return U;throw new TypeError("log.setLevel() called with invalid level: "+D)}f.name=g,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=b||u,f.getLevel=function(){return L??k??x},f.setLevel=function(D,U){return L=K(D),U!==!1&&O(L),c.call(f)},f.setDefaultLevel=function(D){k=K(D),S()||f.setLevel(D,!1)},f.resetLevel=function(){L=null,I(),c.call(f)},f.enableAll=function(D){f.setLevel(f.levels.TRACE,D)},f.disableAll=function(D){f.setLevel(f.levels.SILENT,D)},f.rebuild=function(){if(a!==f&&(x=K(a.getLevel())),c.call(f),a===f)for(var D in r)r[D].rebuild()},x=K(a?a.getLevel():"WARN");var B=S();B!=null&&(L=K(B)),c.call(f)}a=new m,a.getLogger=function(b){if(typeof b!="symbol"&&typeof b!="string"||b==="")throw new TypeError("You must supply a name when creating a logger.");var f=r[b];return f||(f=r[b]=new m(b,a.methodFactory)),f};var p=typeof window!==t?window.log:void 0;return a.noConflict=function(){return typeof window!==t&&window.log===a&&(window.log=p),a},a.getLoggers=function(){return r},a.default=a,a})});var cm=mn((H1,Dn)=>{var C=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},ne=-1,se=1,G=0;C.Diff=function(e,t){return[e,t]};C.prototype.diff_main=function(e,t,i,n){typeof n>"u"&&(this.Diff_Timeout<=0?n=Number.MAX_VALUE:n=new Date().getTime()+this.Diff_Timeout*1e3);var r=n;if(e==null||t==null)throw new Error("Null input. (diff_main)");if(e==t)return e?[new C.Diff(G,e)]:[];typeof i>"u"&&(i=!0);var a=i,s=tLine truncated
`,d),u==-1&&(u=l.length-1);var p=l.substring(d,u+1);(n.hasOwnProperty?n.hasOwnProperty(p):n[p]!==void 0)?c+=String.fromCharCode(n[p]):(m==a&&(p=l.substring(d),u=l.length),c+=String.fromCharCode(m),n[p]=m,i[m++]=p),d=u+1}return c}var a=4e4,s=r(e);a=65535;var o=r(t);return{chars1:s,chars2:o,lineArray:i}};C.prototype.diff_charsToLines_=function(e,t){for(var i=0;i<e.length;i++){for(var n=e[i][1],r=[],a=0;a<n.length;a++)r[a]=t[n.charCodeAt(a)];e[i][1]=r.join("")}};C.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var i=0,n=Math.min(e.length,t.length),r=n,a=0;i<r;)e.substring(a,r)==t.substring(a,r)?(i=r,a=i):n=r,r=Math.floor((n-i)/2+i);return r};C.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var i=0,n=Math.min(e.length,t.length),r=n,a=0;i<r;)e.substring(e.length-r,e.length-a)==t.substring(t.length-r,t.length-a)?(i=r,a=i):n=r,r=Math.floor((n-i)/2+i);return r};C.prototype.diff_commonOverlap_=function(e,t){var i=e.length,n=t.length;if(i==0||n==0)return 0;i>n?e=e.substring(i-n):i<n&&(t=t.substring(0,i));var r=Math.min(i,n);if(e==t)return r;for(var a=0,s=1;;){var o=e.substring(r-s),l=t.indexOf(o);if(l==-1)return a;s+=l,(l==0||e.substring(r-s)==t.substring(0,s))&&(a=s,s++)}};C.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var i=e.length>t.length?e:t,n=e.length>t.length?t:e;if(i.length<4||n.length*2<i.length)return null;var r=this;function a(g,b,f){for(var x=g.substring(f,f+Math.floor(g.length/4)),k=-1,L="",E,O,S,I;(k=b.indexOf(x,k+1))!=-1;){var K=r.diff_commonPrefix(g.substring(f),b.substring(k)),B=r.diff_commonSuffix(g.substring(0,f),b.substring(0,k));L.length<B+K&&(L=b.substring(k-B,k)+b.substring(k,k+K),E=g.substring(0,f-B),O=g.substring(f+K),S=b.substring(0,k-B),I=b.substring(k+K))}return L.length*2>=g.length?[E,O,S,I,L]:null}var s=a(i,n,Math.ceil(i.length/4)),o=a(i,n,Math.ceil(i.length/2)),l;if(!s&&!o)return null;o?s?l=s[4].length>o[4].length?s:o:l=o:l=s;var c,d,u,m;e.length>t.length?(c=l[0],d=l[1],u=l[2],m=l[3]):(u=l[0],m=l[1],c=l[2],d=l[3]);var p=l[4];return[c,d,u,m,p]};C.prototype.diff_cleanupSemantic=function(e){for(var t=!1,i=[],n=0,r=null,a=0,s=0,o=0,l=0,c=0;a<e.length;)e[a][0]==G?(i[n++]=a,s=l,o=c,l=0,c=0,r=e[a][1]):(e[a][0]==se?l+=e[a][1].length:c+=e[a][1].length,r&&r.length<=Math.max(s,o)&&r.length<=Math.max(l,c)&&(e.splice(i[n-1],0,new C.Diff(ne,r)),e[i[n-1]+1][0]=se,n--,n--,a=n>0?i[n-1]:-1,s=0,o=0,l=0,c=0,r=null,t=!0)),a++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),a=1;a<e.length;){if(e[a-1][0]==ne&&e[a][0]==se){var d=e[a-1][1],u=e[a][1],m=this.diff_commonOverlap_(d,u),p=this.diff_commonOverlap_(u,d);m>=p?(m>=d.length/2||m>=u.length/2)&&(e.splice(a,0,new C.Diff(G,u.substring(0,m))),e[a-1][1]=d.substring(0,d.length-m),e[a+1][1]=u.substring(m),a++):(p>=d.length/2||p>=u.length/2)&&(e.splice(a,0,new C.Diff(G,d.substring(0,p))),e[a-1][0]=se,e[a-1][1]=u.substring(0,u.length-p),e[a+1][0]=ne,e[a+1][1]=d.substring(p),a++),a++}a++}};C.prototype.diff_cleanupSemanticLossless=function(e){function t(p,g){if(!p||!g)return 6;var b=p.charAt(p.length-1),f=g.charAt(0),x=b.match(C.nonAlphaNumericRegex_),k=f.match(C.nonAlphaNumericRegex_),L=x&&b.match(C.whitespaceRegex_),E=k&&f.match(C.whitespaceRegex_),O=L&&b.match(C.linebreakRegex_),S=E&&f.match(C.linebreakRegex_),I=O&&p.match(C.blanklineEndRegex_),K=S&&g.match(C.blanklineStartRegex_);return I||K?5:O||S?4:x&&!L&&E?3:L||E?2:x||k?1:0}for(var i=1;i<e.length-1;){if(e[i-1][0]==G&&e[i+1][0]==G){var n=e[i-1][1],r=e[i][1],a=e[i+1][1],s=this.diff_commonSuffix(n,r);if(s){var o=r.substring(r.length-s);n=n.substring(0,n.length-s),r=o+r.substring(0,r.length-s),a=o+a}for(var l=n,c=r,d=a,u=t(n,r)+t(r,a);r.charAt(0)===a.charAt(0);){n+=r.charAt(0),r=r.substring(1)+a.charAt(0),a=a.substring(1);var m=t(n,r)+t(r,a);m>=u&&(u=m,l=n,c=r,d=a)}e[i-1][1]!=l&&(l?e[i-1][1]=l:(e.splice(i-1,1),i--),e[i][1]=c,d?e[i+1][1]=d:(e.splice(i+1,1),i--))}i++}};C.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;C.whitespaceRegex_=/\s/;C.linebreakRegex_=/[\r\n]/;C.blanklineEndRegex_=/\n\r?\n$/;C.blanklineStartRegex_=/^\r?\n\r?\n/;C.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,i=[],n=0,r=null,a=0,s=!1,o=!1,l=!1,c=!1;a<e.length;)e[a][0]==G?(e[a][1].length<this.Diff_EditCost&&(l||c)?(i[n++]=a,s=l,o=c,r=e[a][1]):(n=0,r=null),l=c=!1):(e[a][0]==ne?c=!0:l=!0,r&&(s&&o&&l&&c||r.length<this.Diff_EditCost/2&&s+o+l+c==3)&&(e.splice(i[n-1],0,new C.Diff(ne,r)),e[i[n-1]+1][0]=se,n--,r=null,s&&o?(l=c=!0,n=0):(n--,a=n>0?i[n-1]:-1,l=c=!1),t=!0)),a++;t&&this.diff_cleanupMerge(e)};C.prototype.diff_cleanupMerge=function(e){e.push(new C.Diff(G,""));for(var t=0,i=0,n=0,r="",a="",s;t<e.length;)switch(e[t][0]){case se:n++,a+=e[t][1],t++;break;case ne:i++,r+=e[t][1],t++;break;case G:i+n>1?(i!==0&&n!==0&&(s=this.diff_commonPrefix(a,r),s!==0&&(t-i-n>0&&e[t-i-n-1][0]==G?e[t-i-n-1][1]+=a.substring(0,s):(e.splice(0,0,new C.Diff(G,a.substring(0,s))),t++),a=a.substring(s),r=r.substr Line truncated
`),n=0,r=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;n<i.length;){var a=i[n].match(r);if(!a)throw new Error("Invalid patch string: "+i[n]);var s=new C.patch_obj;for(t.push(s),s.start1=parseInt(a[1],10),a[2]===""?(s.start1--,s.length1=1):a[2]=="0"?s.length1=0:(s.start1--,s.length1=parseInt(a[2],10)),s.start2=parseInt(a[3],10),a[4]===""?(s.start2--,s.length2=1):a[4]=="0"?s.length2=0:(s.start2--,s.length2=parseInt(a[4],10)),n++;n<i.length;){var o=i[n].charAt(0);try{var l=decodeURI(i[n].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+l)}if(o=="-")s.diffs.push(new C.Diff(ne,l));else if(o=="+")s.diffs.push(new C.Diff(se,l));else if(o==" ")s.diffs.push(new C.Diff(G,l));else{if(o=="@")break;if(o!=="")throw new Error('Invalid patch mode "'+o+'" in: '+l)}n++}}return t};C.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0};C.patch_obj.prototype.toString=function(){var e,t;this.length1===0?e=this.start1+",0":this.length1==1?e=this.start1+1:e=this.start1+1+","+this.length1,this.length2===0?t=this.start2+",0":this.length2==1?t=this.start2+1:t=this.start2+1+","+this.length2;for(var i=["@@ -"+e+" +"+t+` @@
`],n,r=0;r<this.diffs.length;r++){switch(this.diffs[r][0]){case se:n="+";break;case ne:n="-";break;case G:n=" ";break}i[r+1]=n+encodeURI(this.diffs[r][1])+`
`}return i.join("").replace(/%20/g," ")};Dn.exports=C;Dn.exports.diff_match_patch=C;Dn.exports.DIFF_DELETE=ne;Dn.exports.DIFF_INSERT=se;Dn.exports.DIFF_EQUAL=G});var ym=mn((XK,fm)=>{fm.exports=_w;var Fx=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Rx=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Dx=["Su","Mo","Tu","We","Th","Fr","Sa"],xo=["January","February","March","April","May","June","July","August","September","October","November","December"],Kx=["ACDT","ACST","ACWT","ADT","ACT","AEDT","AEST","AFT","AKDT","AKST","ALMT","AMT","AMST","ANAT","ANAST","AQTT","ART","AST","AWDT","AWST","AZOT","AZOST","AZT","AZST","BNT","BDT","BOT","BRT","BRST","BST","BTT","B","CAST","CAT","CCT","CDT","CEDT","CEST","CET","CHADT","CHAST","CHOT","CHOST","CHsT","CHUT","CIT","CKT","CLST","CLT","COT","CST","CVT","CWST","CXT","C","DAVT","DDUT","DST","EASST","EAST","EAT","ECT","EDT","EEDT","EEST","EET","EGT","EGST","EST","E","EIT","FET","FJT","FJST","FKST","FKT","FNT","F","GALT","GAMT","GET","GFT","GILT","GMT","GST","GYT","G","HADT","HAST","HKT","HOVT","HOVST","HST","ICT","IDT","IOT","IRDT","IRKT","IRKST","IRST","IST","JST","KGT","KOST","KRAT","KRAST","KST","KUYT","LHDT","LHST","LINT","L","MAGT","MAGST","MART","MAWT","MDT","MeST","MHT","MIST","MMT","MSD","MSK","MST","MUT","MVT","MYT","NCT","NDT","NFT","N","NOVT","NOVST","NPT","NRT","NST","NT","NUT","NZDT","NZST","OMST","OMSST","ORAT","O","PDT","PET","PETT","PETST","PGT","PHT","PHOT","PKT","PMDT","PMST","PONT","PST","PWT","PYT","PYST","P","QYZT","RET","ROTT","R","SAKT","SAMT","SAST","SBT","SCT","SGT","SRT","SLT","SLST","SRET","SST","SYOT","TAHT","TFT","TJT","TKT","TLT","TMT","TOT","TRUT","TVT","T","ULAT","ULAST","UTC","UYST","UYT","UZT","U","VET","VLAT","VLAST","VOLT","VUT","V","WAKT","WAT","WAST","WDT","WEDT","WEST","WET","WFT","WGT","WGST","WIB","WIT","WITA","WST","WT","YAKT","YAKST","YAP","YEK","YEKS"],wo=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],_x=new RegExp(Fx.join("|"),"i"),Nx=new RegExp(Rx.join("|"),"i"),jx=new RegExp("\\b("+Dx.join("|")+")\\b","i"),Yx=new RegExp(xo.join("|"),"i"),Px=new RegExp(wo.join("|"),"i"),Hx=new RegExp("\\b("+Kx.join("|")+")\\b","i"),Ux=/(\d+)(st|nd|rd|th)\b/i,Wx=/(\d{1,4})([/.-])(\d{1,2})[/.-](\d{1,4})/,Vx=/((\+|-)(12:00|11:00|10:00|09:30|09:00|08:00|07:00|06:00|05:00|04:00|03:30|03:00|02:00|01:00|00:00|01:00|02:00|03:00|03:30|04:00|04:30|05:00|05:30|05:45|06:00|06:30|07:00|08:00|08:45|09:00|09:30|10:00|10:30|11:00|12:00|12:45|13:00|14:00))$/,$x=/((\+|-)(1200|1100|1000|0930|0900|0800|0700|0600|0500|0400|0330|0300|0200|0100|0000|0100|0200|0300|0330|0400|0430|0500|0530|0545|0600|0630|0700|0800|0845|0900|0930|1000|1030|1100|1200|1245|1300|1400))$/,jn="("+["AM?","PM?"].join("|")+")",Gx=new RegExp("0\\d\\:\\d{1,2}\\:\\d{1,2}(\\s*)"+jn,"i"),Qx=new RegExp("0\\d\\:\\d{1,2}(\\s*)"+jn,"i"),Zx=new RegExp("0\\d(\\s*)"+jn,"i"),Jx=new RegExp("\\d{1,2}\\:\\d{1,2}\\:\\d{1,2}(\\s*)"+jn,"i"),Xx=new RegExp("\\d{1,2}\\:\\d{1,2}(\\s*)"+jn,"i"),ew=new RegExp("\\d{1,2}(\\s*)"+jn,"i"),iw=new RegExp("\\d{1,2}"),tw=new RegExp(xo.join("|")+"-\\d{2}","i"),nw=new RegExp(wo.join("|")+"-\\d{2}","i"),Dc=new RegExp("(\\d{1,2})(\\D+)("+xo.join("|")+"|"+wo.join("|")+")(\\2)('?\\d{2,4})"),rw=/\d{2}:\d{2}:\d{2}\.\d{3}/,aw=/\d{2}:\d{2}:\d{2}\.\d{2}/,sw=/\d{2}:\d{2}:\d{2}\.\d{1}/,ow=/T\d{2}:\d{2}:\d{2}/,lw=/0\d:\d{2}:\d{2}/,cw=/0\d:\d{2}/,dw=/\b([01]?[0-9]|2[0-3]):[0-5][0-9]:\d{2}/,uw=/\b([01]?[0-9]|2[0-3]):[0-5][0-9]:\d{2}\.\d{3}/,pw=/\b([01]?[0-9]|2[0-3]):[0-5][0-9]:\d{2}\.\d{2}/,mw=/\b([01]?[0-9]|2[0-3]):[0-5][0-9]:\d{2}\.\d{1}/,gw=/\b([01]?[0-9]|2[0-3]):[0-5][0-9]/,hw=/24:00:\d{2}/,fw=/24:00:\d{2}\.\d{3}/,yw=/24:00:\d{2}\.\d{2}/,bw=/24:00:\d{2}\.\d{1}/,vw=/24:00/,xw=/\d{4}/,ww=/\d{2}/,kw=/'\d{2}/,um=/0\d/,pm=/\d{1,2}/,zw=/0\d/,Aw=/\d{1,2}/,Sw=/^([1-9])\/([1-9]|0[1-9])$/,Lw=/^([1-9])\/(1[012])$/,Tw=/^(0[1-9]|[12][0-9]|3[01])\/([1-9])$/,Ew=/^(0[1-9]|[12][0-9]|3[01])\/(1[012]|0[1-9])$/,Cw=/^([1-9])(\D)([1-9][0-9])$/,Ow=/^([1-9])(\D)([0][0-9])$/,Mw=/^(0[1-9]|1[012])(\D)([1-9][0-9])$/,qw=/^(0[1-9]|1[012])(\D)([0][0-9])$/,Kc=/([/][M]|[M][/]|[MM]|[MMMM])/,mm=/(D)/,_c=/(Y)/,gm=/\d+\D.+$/,hm=/\D+(\d+)($|Z)/,Iw=/M\s*\d{1,2}\b.+$/,Bw=/M\D+(0[1-9])\b.+$/,vo=/\d+\s+(H|h|k)/,Fw=/\b(at)\b/i,Rw=/\d{13}/,Dw=/\d{10}/,Kw={"/":"MDY",".":"DMY","-":"YMD"};function _w(e,t){var i=e.toString();if(t=t||{},t.preferredOrder=t.preferredOrder||Kw,i=i.replace(Rw,"x"),i=i.replace(Dw,"X"),i=i.replace(Fw,"[$1]"),i.match(Dc)){let[,c,d,u,m,p]=i.match(Dc),g=[];c.length===2&&c[0]==="0"||t.preferLongFormat?g.push("DD"):g.push("D"),g.push(d),u.match(xo)?g.push("MMMM"):u.match(wo)?g.push("MMM"):g.push(u),g.push(m),p[0]==="'"?g.push("'YY"):p.length===2?g.push("YY"):(p.length,g.push("YYYY"));var n=g.join("");i=i.replace(Dc,n)}i=i.replace(_x,"dddd"),i=i.replace(Nx,"ddd"),i=i.replace(jx,"dd"),i=i.replace(Ux,"Do"),i=i.replace(Yx,"MMMM"),i=i.replace(Px,"MMM"),i=i.replace(Wx,Nw.bind(null,t)),i=i.replace(Hx,c=>"["+c+"]"),i=i.replace(Vx,"Z"),i=i.replace($x,"ZZ"),i=i.replace(rw, Line truncated
`+e.mark.snippet),n+" "+i):n}function Qn(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=od(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Qn.prototype=Object.create(Error.prototype);Qn.prototype.constructor=Qn;Qn.prototype.toString=function(t){return this.name+": "+od(this,t)};var We=Qn;function No(e,t,i,n,r){var a="",s="",o=Math.floor(r/2)-1;return n-t>o&&(a=" ... ",t=n-o+a.length),i-n>o&&(s=" ...",i=n+o-s.length),{str:a+e.slice(t,i).replace(/\t/g,"\u2192")+s,pos:n-t+a.length}}function jo(e,t){return Se.repeat(" ",t-e.length)+e}function tg(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var i=/\r?\n|\r|\0/g,n=[0],r=[],a,s=-1;a=i.exec(e.buffer);)r.push(a.index),n.push(a.index+a[0].length),e.position<=a.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var o="",l,c,d=Math.min(e.line+t.linesAfter,r.length).toString().length,u=t.maxLength-(t.indent+d+3);for(l=1;l<=t.linesBefore&&!(s-l<0);l++)c=No(e.buffer,n[s-l],r[s-l],e.position-(n[s]-n[s-l]),u),o=Se.repeat(" ",t.indent)+jo((e.line-l+1).toString(),d)+" | "+c.str+`
`+o;for(c=No(e.buffer,n[s],r[s],e.position,u),o+=Se.repeat(" ",t.indent)+jo((e.line+1).toString(),d)+" | "+c.str+`
`,o+=Se.repeat("-",t.indent+d+3+c.pos)+`^
`,l=1;l<=t.linesAfter&&!(s+l>=r.length);l++)c=No(e.buffer,n[s+l],r[s+l],e.position-(n[s]-n[s+l]),u),o+=Se.repeat(" ",t.indent)+jo((e.line+l+1).toString(),d)+" | "+c.str+`
`;return o.replace(/\n$/,"")}var ng=tg,rg=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ag=["scalar","sequence","mapping"];function sg(e){var t={};return e!==null&&Object.keys(e).forEach(function(i){e[i].forEach(function(n){t[String(n)]=i})}),t}function og(e,t){if(t=t||{},Object.keys(t).forEach(function(i){if(rg.indexOf(i)===-1)throw new We('Unknown option "'+i+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(i){return i},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=sg(t.styleAliases||null),ag.indexOf(this.kind)===-1)throw new We('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ne=og;function Uc(e,t){var i=[];return e[t].forEach(function(n){var r=i.length;i.forEach(function(a,s){a.tag===n.tag&&a.kind===n.kind&&a.multi===n.multi&&(r=s)}),i[r]=n}),i}function lg(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,i;function n(r){r.multi?(e.multi[r.kind].push(r),e.multi.fallback.push(r)):e[r.kind][r.tag]=e.fallback[r.tag]=r}for(t=0,i=arguments.length;t<i;t+=1)arguments[t].forEach(n);return e}function Po(e){return this.extend(e)}Po.prototype.extend=function(t){var i=[],n=[];if(t instanceof Ne)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(i=i.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new We("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(a){if(!(a instanceof Ne))throw new We("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new We("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new We("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(a){if(!(a instanceof Ne))throw new We("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(Po.prototype);return r.implicit=(this.implicit||[]).concat(i),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=Uc(r,"implicit"),r.compiledExplicit=Uc(r,"explicit"),r.compiledTypeMap=lg(r.compiledImplicit,r.compiledExplicit),r};var cg=Po,dg=new Ne("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),ug=new Ne("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),pg=new Ne("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),mg=new cg({explicit:[dg,ug,pg]});function gg(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function hg(){return null}function fg(e){return e===null}var yg=new Ne("tag:yaml.org,2002:null",{kind:"scalar",resolve:gg,construct:hg,predicate:fg,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function bg(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function vg(e){return e==="true"||e==="True"||e==="TRUE"}function xg(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var wg=new Ne("tag:yaml.org,2002:bool",{kind:"scalar",resolve:bg,construct:vg,predicate:xg,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function kg(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function zg(e){return 48<=e&&e<=55}function Ag(e){return 48<=e&&e<=57}function Sg(e){if(e===null)return!1;var t=e.length,i=0,n=!1,r;if(!t)return!1;if(r=e[i],(r==="-"||r==="+")&&(r=e[++i]),r==="0"){if(i+1===t)return!0;if(r=e[++i],r==="b"){for(i++;i<t;i++)if(r=e[i],r!=="_"){if(r!=="0"&&r!=="1")return!1;n=!0}return n&&r!=="_"}if(r==="x"){for(i++;i<t;i++)if(r=e[i],r!=="_"){if(!kg(e.charCodeAt(i)))return!1;n=!0}return n&&r!=="_"}if(r==="o"){for(i++;i<t;i++)if(r=e[i],r!=="_"){if(!zg(e.charCodeAt(i)))return!1;n=!0}return n&&r!=="_"}}if(r==="_")return!1;for(;i<t;i++)if(r=e[i],r!=="_"){if(!Ag(e.charCodeAt(i)))return!1;n=!0}return!(!n||r==="_")}function Lg(e){var t=e,i=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(i=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return i*parseInt(t. Line truncated
\r`;function Hg(e){if(e===null)return!1;var t,i,n=0,r=e.length,a=$o;for(i=0;i<r;i++)if(t=a.indexOf(e.charAt(i)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function Ug(e){var t,i,n=e.replace(/[\r\n=]/g,""),r=n.length,a=$o,s=0,o=[];for(t=0;t<r;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|a.indexOf(n.charAt(t));return i=r%4*6,i===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):i===18?(o.push(s>>10&255),o.push(s>>2&255)):i===12&&o.push(s>>4&255),new Uint8Array(o)}function Wg(e){var t="",i=0,n,r,a=e.length,s=$o;for(n=0;n<a;n++)n%3===0&&n&&(t+=s[i>>18&63],t+=s[i>>12&63],t+=s[i>>6&63],t+=s[i&63]),i=(i<<8)+e[n];return r=a%3,r===0?(t+=s[i>>18&63],t+=s[i>>12&63],t+=s[i>>6&63],t+=s[i&63]):r===2?(t+=s[i>>10&63],t+=s[i>>4&63],t+=s[i<<2&63],t+=s[64]):r===1&&(t+=s[i>>2&63],t+=s[i<<4&63],t+=s[64],t+=s[64]),t}function Vg(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var $g=new Ne("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Hg,construct:Ug,predicate:Vg,represent:Wg}),Gg=Object.prototype.hasOwnProperty,Qg=Object.prototype.toString;function Zg(e){if(e===null)return!0;var t=[],i,n,r,a,s,o=e;for(i=0,n=o.length;i<n;i+=1){if(r=o[i],s=!1,Qg.call(r)!=="[object Object]")return!1;for(a in r)if(Gg.call(r,a))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function Jg(e){return e!==null?e:[]}var Xg=new Ne("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Zg,construct:Jg}),eh=Object.prototype.toString;function ih(e){if(e===null)return!0;var t,i,n,r,a,s=e;for(a=new Array(s.length),t=0,i=s.length;t<i;t+=1){if(n=s[t],eh.call(n)!=="[object Object]"||(r=Object.keys(n),r.length!==1))return!1;a[t]=[r[0],n[r[0]]]}return!0}function th(e){if(e===null)return[];var t,i,n,r,a,s=e;for(a=new Array(s.length),t=0,i=s.length;t<i;t+=1)n=s[t],r=Object.keys(n),a[t]=[r[0],n[r[0]]];return a}var nh=new Ne("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ih,construct:th}),rh=Object.prototype.hasOwnProperty;function ah(e){if(e===null)return!0;var t,i=e;for(t in i)if(rh.call(i,t)&&i[t]!==null)return!1;return!0}function sh(e){return e!==null?e:{}}var oh=new Ne("tag:yaml.org,2002:set",{kind:"mapping",resolve:ah,construct:sh}),dd=Dg.extend({implicit:[jg,Pg],explicit:[$g,Xg,nh,oh]}),Zi=Object.prototype.hasOwnProperty,Ha=1,ud=2,pd=3,Ua=4,Yo=1,lh=2,Wc=3,ch=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,dh=/[\x85\u2028\u2029]/,uh=/[,\[\]\{\}]/,md=/^(?:!|!!|![a-z\-]+!)$/i,gd=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Vc(e){return Object.prototype.toString.call(e)}function Ti(e){return e===10||e===13}function kt(e){return e===9||e===32}function Xe(e){return e===9||e===32||e===10||e===13}function fn(e){return e===44||e===91||e===93||e===123||e===125}function ph(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function mh(e){return e===120?2:e===117?4:e===85?8:0}function gh(e){return 48<=e&&e<=57?e-48:-1}function $c(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function hh(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var hd=new Array(256),fd=new Array(256);for(wt=0;wt<256;wt++)hd[wt]=$c(wt)?1:0,fd[wt]=$c(wt);var wt;function fh(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||dd,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function yd(e,t){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=ng(i),new We(t,i)}function N(e,t){throw yd(e,t)}function Wa(e,t){e.onWarning&&e.onWarning.call(null,yd(e,t))}var Gc={YAML:function(t,i,n){var r,a,s;t.version!==null&&N(t,"duplication of %YAML directive"),n.length!==1&&N(t,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&N(t,"ill-formed argument of the YAML directive"),a=parseInt(r[1],10),s=parseInt(r[2],10),a!==1&&N(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Wa(t,"unsupported YAML version of the document")},TAG:function(t,i,n){var r,a;n.length!==2&&N(t,"TAG directive accepts exactly two arguments"),r=n[0],a=n[1],md.test(r)||N(t,"ill-formed tag handle (first argument) of the TAG directive"),Zi.call(t.tagMap,r)&&N(t,'there is a previously declared suffix for "'+r+'" tag handle'),gd.test(a)||N(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{N(t,"tag prefix is malformed: "+a)}t.tagMap[r]=a}};function Qi(e,t,i,n){var r,a,s,o;if(t<i){if(o=e.input.slice(t,i),n)for(r=0,a=o.length;r<a;r+=1)s=o.charCodeAt(r),s===9||32<=s&&s<=1114111||N(e,"expected valid JSON character");else ch.test(o)&&N(e,"the stream contains non-printable characters");e.result+=o}}function Qc(e,t,i,n){var r,a,s,o;for(Se.isObject(i)||N(e,"cannot merge mappings; the provided source object is unacceptable"),r=Object.keys(i),s=0,o=r.length;s<o;s+=1)a=r[s],Zi.call(t,a)||(t[a]=i[a],n[a]=!0)}function yn(e,t,i,n,r,a,s,o,l){var c,d;if(Array.isArray(r))for(r=Array.prototype.slice.call(r),c=0,d=r.length;c<d;c+=1)Array.isArray(r[c])&&N(e,"nested arrays are not supported inside keys"),typeof r=="object"&&Vc(r[c])==="[object Object]"&&(r[c]="[object Object]");if(typeof r=="object"&&Vc(r)==="[object Object]"&&(r="[object Object]"),r=String(r),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(c=0,d=a.length;c<d;c+=1)Qc(e,t,a[c],i);else Qc(e,t,a,i);else!e.json&&!Zi.call(i,r)&&Zi.call(t,r)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,N(e,"duplicated mapping key")),r==="__proto__"?Object.defineProperty(t,r,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[r]=a,delete i[r];return t}function Go(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):N(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function ze(e,t,i){for(var n=0,r=e.input.charCodeAt(e.position);r!==0;){for(;kt(r);)r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&r===35)do r=e.input.charCodeAt(++e.position);while(r!==10&&r!==13&&r!==0);if(Ti(r))for(Go(e),r=e.input.charCodeAt(e.position),n++,e.lineIndent=0;r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return i!==-1&&n!==0&&e.lineIndent<i&&Wa(e,"deficient indentation"),n}function Ga(e){var t=e.position,i;return i=e.input.charCodeAt(t),!!((i===45||i===46)&&i===e.input.charCodeAt(t+1)&&i===e.input.charCodeAt(t+2)&&(t+=3,i=e.input.charCodeAt(t),i===0||Xe(i)))}function Qo(e,t){t===1?e.result+=" ":t>1&&(e.result+=Se.repeat(`
`,t-1))}function yh(e,t,i){var n,r,a,s,o,l,c,d,u=e.kind,m=e.result,p;if(p=e.input.charCodeAt(e.position),Xe(p)||fn(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(r=e.input.charCodeAt(e.position+1),Xe(r)||i&&fn(r)))return!1;for(e.kind="scalar",e.result="",a=s=e.position,o=!1;p!==0;){if(p===58){if(r=e.input.charCodeAt(e.position+1),Xe(r)||i&&fn(r))break}else if(p===35){if(n=e.input.charCodeAt(e.position-1),Xe(n))break}else{if(e.position===e.lineStart&&Ga(e)||i&&fn(p))break;if(Ti(p))if(l=e.line,c=e.lineStart,d=e.lineIndent,ze(e,!1,-1),e.lineIndent>=t){o=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=c,e.lineIndent=d;break}}o&&(Qi(e,a,s,!1),Qo(e,e.line-l),a=s=e.position,o=!1),kt(p)||(s=e.position+1),p=e.input.charCodeAt(++e.position)}return Qi(e,a,s,!1),e.result?!0:(e.kind=u,e.result=m,!1)}function bh(e,t){var i,n,r;if(i=e.input.charCodeAt(e.position),i!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39)if(Qi(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)n=e.position,e.position++,r=e.position;else return!0;else Ti(i)?(Qi(e,n,r,!0),Qo(e,ze(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Ga(e)?N(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);N(e,"unexpected end of the stream within a single quoted scalar")}function vh(e,t){var i,n,r,a,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return Qi(e,i,e.position,!0),e.position++,!0;if(o===92){if(Qi(e,i,e.position,!0),o=e.input.charCodeAt(++e.position),Ti(o))ze(e,!1,t);else if(o<256&&hd[o])e.result+=fd[o],e.position++;else if((s=mh(o))>0){for(r=s,a=0;r>0;r--)o=e.input.charCodeAt(++e.position),(s=ph(o))>=0?a=(a<<4)+s:N(e,"expected hexadecimal character");e.result+=hh(a),e.position++}else N(e,"unknown escape sequence");i=n=e.position}else Ti(o)?(Qi(e,i,n,!0),Qo(e,ze(e,!1,t)),i=n=e.position):e.position===e.lineStart&&Ga(e)?N(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}N(e,"unexpected end of the stream within a double quoted scalar")}function xh(e,t){var i=!0,n,r,a,s=e.tag,o,l=e.anchor,c,d,u,m,p,g=Object.create(null),b,f,x,k;if(k=e.input.charCodeAt(e.position),k===91)d=93,p=!1,o=[];else if(k===123)d=125,p=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),k=e.input.charCodeAt(++e.position);k!==0;){if(ze(e,!0,t),k=e.input.charCodeAt(e.position),k===d)return e.position++,e.tag=s,e.anchor=l,e.kind=p?"mapping":"sequence",e.result=o,!0;i?k===44&&N(e,"expected the node content, but found ','"):N(e,"missed comma between flow collection entries"),f=b=x=null,u=m=!1,k===63&&(c=e.input.charCodeAt(e.position+1),Xe(c)&&(u=m=!0,e.position++,ze(e,!0,t))),n=e.line,r=e.lineStart,a=e.position,bn(e,t,Ha,!1,!0),f=e.tag,b=e.result,ze(e,!0,t),k=e.input.charCodeAt(e.position),(m||e.line===n)&&k===58&&(u=!0,k=e.input.charCodeAt(++e.position),ze(e,!0,t),bn(e,t,Ha,!1,!0),x=e.result),p?yn(e,o,g,f,b,x,n,r,a):u?o.push(yn(e,null,g,f,b,x,n,r,a)):o.push(b),ze(e,!0,t),k=e.input.charCodeAt(e.position),k===44?(i=!0,k=e.input.charCodeAt(++e.position)):i=!1}N(e,"unexpected end of the stream within a flow collection")}function wh(e,t){var i,n,r=Yo,a=!1,s=!1,o=t,l=0,c=!1,d,u;if(u=e.input.charCodeAt(e.position),u===124)n=!1;else if(u===62)n=!0;else return!1;for(e.kind="scalar",e.result="";u!==0;)if(u=e.input.charCodeAt(++e.position),u===43||u===45)Yo===r?r=u===43?Wc:lh:N(e,"repeat of a chomping mode identifier");else if((d=gh(u))>=0)d===0?N(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?N(e,"repeat of an indentation width identifier"):(o=t+d-1,s=!0);else break;if(kt(u)){do u=e.input.charCodeAt(++e.position);while(kt(u));if(u===35)do u=e.input.charCodeAt(++e.position);while(!Ti(u)&&u!==0)}for(;u!==0;){for(Go(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&u===32;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),Ti(u)){l++;continue}if(e.lineIndent<o){r===Wc?e.result+=Se.repeat(`
`,a?1+l:l):r===Yo&&a&&(e.result+=`
`);break}for(n?kt(u)?(c=!0,e.result+=Se.repeat(`
`,a?1+l:l)):c?(c=!1,e.result+=Se.repeat(`
`,l+1)):l===0?a&&(e.result+=" "):e.result+=Se.repeat(`
`,l):e.result+=Se.repeat(`
`,a?1+l:l),a=!0,s=!0,l=0,i=e.position;!Ti(u)&&u!==0;)u=e.input.charCodeAt(++e.position);Qi(e,i,e.position,!1)}return!0}function Zc(e,t){var i,n=e.tag,r=e.anchor,a=[],s,o=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,N(e,"tab characters must not be used in indentation")),!(l!==45||(s=e.input.charCodeAt(e.position+1),!Xe(s))));){if(o=!0,e.position++,ze(e,!0,-1)&&e.lineIndent<=t){a.push(null),l=e.input.charCodeAt(e.position);continue}if(i=e.line,bn(e,t,pd,!1,!0),a.push(e.result),ze(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===i||e.lineIndent>t)&&l!==0)N(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=n,e.anchor=r,e.kind="sequence",e.result=a,!0):!1}function kh(e,t,i){var n,r,a,s,o,l,c=e.tag,d=e.anchor,u={},m=Object.create(null),p=null,g=null,b=null,f=!1,x=!1,k;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),k=e.input.charCodeAt(e.position);k!==0;){if(!f&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,N(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),a=e.line,(k===63||k===58)&&Xe(n))k===63?(f&&(yn(e,u,m,p,g,null,s,o,l),p=g=b=null),x=!0,f=!0,r=!0):f?(f=!1,r=!0):N(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,k=n;else{if(s=e.line,o=e.lineStart,l=e.position,!bn(e,i,ud,!1,!0))break;if(e.line===a){for(k=e.input.charCodeAt(e.position);kt(k);)k=e.input.charCodeAt(++e.position);if(k===58)k=e.input.charCodeAt(++e.position),Xe(k)||N(e,"a whitespace character is expected after the key-value separator within a block mapping"),f&&(yn(e,u,m,p,g,null,s,o,l),p=g=b=null),x=!0,f=!1,r=!1,p=e.tag,g=e.result;else if(x)N(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=d,!0}else if(x)N(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=d,!0}if((e.line===a||e.lineIndent>t)&&(f&&(s=e.line,o=e.lineStart,l=e.position),bn(e,t,Ua,!0,r)&&(f?g=e.result:b=e.result),f||(yn(e,u,m,p,g,b,s,o,l),p=g=b=null),ze(e,!0,-1),k=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&k!==0)N(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return f&&yn(e,u,m,p,g,null,s,o,l),x&&(e.tag=c,e.anchor=d,e.kind="mapping",e.result=u),x}function zh(e){var t,i=!1,n=!1,r,a,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&N(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(i=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,r="!!",s=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(a=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):N(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Xe(s);)s===33&&(n?N(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),md.test(r)||N(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),uh.test(a)&&N(e,"tag suffix cannot contain flow indicator characters")}a&&!gd.test(a)&&N(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{N(e,"tag name is malformed: "+a)}return i?e.tag=a:Zi.call(e.tagMap,r)?e.tag=e.tagMap[r]+a:r==="!"?e.tag="!"+a:r==="!!"?e.tag="tag:yaml.org,2002:"+a:N(e,'undeclared tag handle "'+r+'"'),!0}function Ah(e){var t,i;if(i=e.input.charCodeAt(e.position),i!==38)return!1;for(e.anchor!==null&&N(e,"duplication of an anchor property"),i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!Xe(i)&&!fn(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&N(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Sh(e){var t,i,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Xe(n)&&!fn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&N(e,"name of an alias node must contain at least one character"),i=e.input.slice(t,e.position),Zi.call(e.anchorMap,i)||N(e,'unidentified alias "'+i+'"'),e.result=e.anchorMap[i],ze(e,!0,-1),!0}function bn(e,t,i,n,r){var a,s,o,l=1,c=!1,d=!1,u,m,p,g,b,f;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=o=Ua===i||pd===i,n&&ze(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;zh(e)||Ah(e);)ze(e,!0,-1)?(c=!0,o=a,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):o=!1;if(o&&(o=c||r),(l===1||Ua===i)&&(Ha===i||ud===i?b=t:b=t+1,f=e.position-e.lineStart,l===1?o&&(Zc(e,f)||kh(e,f,b))||xh(e,b)?d=!0:(s&&wh(e,b)||bh(e,b)||vh(e,b)?d=!0:Sh(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&N(e,"alias node should no Line truncated
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var i=new fh(e,t),n=e.indexOf("\0");for(n!==-1&&(i.position=n,N(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)Lh(i);return i.documents}function Th(e,t,i){t!==null&&typeof t=="object"&&typeof i>"u"&&(i=t,t=null);var n=bd(e,i);if(typeof t!="function")return n;for(var r=0,a=n.length;r<a;r+=1)t(n[r])}function Eh(e,t){var i=bd(e,t);if(i.length!==0){if(i.length===1)return i[0];throw new We("expected a single document in the stream, but found more")}}var Ch=Th,Oh=Eh,vd={loadAll:Ch,load:Oh},xd=Object.prototype.toString,wd=Object.prototype.hasOwnProperty,Zo=65279,Mh=9,Zn=10,qh=13,Ih=32,Bh=33,Fh=34,Ho=35,Rh=37,Dh=38,Kh=39,_h=42,kd=44,Nh=45,Va=58,jh=61,Yh=62,Ph=63,Hh=64,zd=91,Ad=93,Uh=96,Sd=123,Wh=124,Ld=125,je={};je[0]="\\0";je[7]="\\a";je[8]="\\b";je[9]="\\t";je[10]="\\n";je[11]="\\v";je[12]="\\f";je[13]="\\r";je[27]="\\e";je[34]='\\"';je[92]="\\\\";je[133]="\\N";je[160]="\\_";je[8232]="\\L";je[8233]="\\P";var Vh=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],$h=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Gh(e,t){var i,n,r,a,s,o,l;if(t===null)return{};for(i={},n=Object.keys(t),r=0,a=n.length;r<a;r+=1)s=n[r],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&wd.call(l.styleAliases,o)&&(o=l.styleAliases[o]),i[s]=o;return i}function Qh(e){var t,i,n;if(t=e.toString(16).toUpperCase(),e<=255)i="x",n=2;else if(e<=65535)i="u",n=4;else if(e<=4294967295)i="U",n=8;else throw new We("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+i+Se.repeat("0",n-t.length)+t}var Zh=1,Jn=2;function Jh(e){this.schema=e.schema||dd,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Se.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Gh(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Jn:Zh,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Jc(e,t){for(var i=Se.repeat(" ",t),n=0,r=-1,a="",s,o=e.length;n<o;)r=e.indexOf(`
`,n),r===-1?(s=e.slice(n),n=o):(s=e.slice(n,r+1),n=r+1),s.length&&s!==`
`&&(a+=i),a+=s;return a}function Uo(e,t){return`
`+Se.repeat(" ",e.indent*t)}function Xh(e,t){var i,n,r;for(i=0,n=e.implicitTypes.length;i<n;i+=1)if(r=e.implicitTypes[i],r.resolve(t))return!0;return!1}function $a(e){return e===Ih||e===Mh}function Xn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Zo||65536<=e&&e<=1114111}function Xc(e){return Xn(e)&&e!==Zo&&e!==qh&&e!==Zn}function ed(e,t,i){var n=Xc(e),r=n&&!$a(e);return(i?n:n&&e!==kd&&e!==zd&&e!==Ad&&e!==Sd&&e!==Ld)&&e!==Ho&&!(t===Va&&!r)||Xc(t)&&!$a(t)&&e===Ho||t===Va&&r}function ef(e){return Xn(e)&&e!==Zo&&!$a(e)&&e!==Nh&&e!==Ph&&e!==Va&&e!==kd&&e!==zd&&e!==Ad&&e!==Sd&&e!==Ld&&e!==Ho&&e!==Dh&&e!==_h&&e!==Bh&&e!==Wh&&e!==jh&&e!==Yh&&e!==Kh&&e!==Fh&&e!==Rh&&e!==Hh&&e!==Uh}function tf(e){return!$a(e)&&e!==Va}function Gn(e,t){var i=e.charCodeAt(t),n;return i>=55296&&i<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(i-55296)*1024+n-56320+65536:i}function Td(e){var t=/^\n* /;return t.test(e)}var Ed=1,Wo=2,Cd=3,Od=4,hn=5;function nf(e,t,i,n,r,a,s,o){var l,c=0,d=null,u=!1,m=!1,p=n!==-1,g=-1,b=ef(Gn(e,0))&&tf(Gn(e,e.length-1));if(t||s)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Gn(e,l),!Xn(c))return hn;b=b&&ed(c,d,o),d=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=Gn(e,l),c===Zn)u=!0,p&&(m=m||l-g-1>n&&e[g+1]!==" ",g=l);else if(!Xn(c))return hn;b=b&&ed(c,d,o),d=c}m=m||p&&l-g-1>n&&e[g+1]!==" "}return!u&&!m?b&&!s&&!r(e)?Ed:a===Jn?hn:Wo:i>9&&Td(e)?hn:s?a===Jn?hn:Wo:m?Od:Cd}function rf(e,t,i,n,r){e.dump=function(){if(t.length===0)return e.quotingType===Jn?'""':"''";if(!e.noCompatMode&&(Vh.indexOf(t)!==-1||$h.test(t)))return e.quotingType===Jn?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,i),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),o=n||e.flowLevel>-1&&i>=e.flowLevel;function l(c){return Xh(e,c)}switch(nf(t,o,e.indent,s,l,e.quotingType,e.forceQuotes&&!n,r)){case Ed:return t;case Wo:return"'"+t.replace(/'/g,"''")+"'";case Cd:return"|"+id(t,e.indent)+td(Jc(t,a));case Od:return">"+id(t,e.indent)+td(Jc(af(t,s),a));case hn:return'"'+sf(t)+'"';default:throw new We("impossible error: invalid scalar style")}}()}function id(e,t){var i=Td(e)?String(t):"",n=e[e.length-1]===`
`,r=n&&(e[e.length-2]===`
`||e===`
`),a=r?"+":n?"":"-";return i+a+`
`}function td(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function af(e,t){for(var i=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
`);return c=c!==-1?c:e.length,i.lastIndex=c,nd(e.slice(0,c),t)}(),r=e[0]===`
`||e[0]===" ",a,s;s=i.exec(e);){var o=s[1],l=s[2];a=l[0]===" ",n+=o+(!r&&!a&&l!==""?`
`:"")+nd(l,t),r=a}return n}function nd(e,t){if(e===""||e[0]===" ")return e;for(var i=/ [^ ]/g,n,r=0,a,s=0,o=0,l="";n=i.exec(e);)o=n.index,o-r>t&&(a=s>r?s:o,l+=`
`+e.slice(r,a),r=a+1),s=o;return l+=`
`,e.length-r>t&&s>r?l+=e.slice(r,s)+`
`+e.slice(s+1):l+=e.slice(r),l.slice(1)}function sf(e){for(var t="",i=0,n,r=0;r<e.length;i>=65536?r+=2:r++)i=Gn(e,r),n=je[i],!n&&Xn(i)?(t+=e[r],i>=65536&&(t+=e[r+1])):t+=n||Qh(i);return t}function of(e,t,i){var n="",r=e.tag,a,s,o;for(a=0,s=i.length;a<s;a+=1)o=i[a],e.replacer&&(o=e.replacer.call(i,String(a),o)),(ji(e,t,o,!1,!1)||typeof o>"u"&&ji(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=r,e.dump="["+n+"]"}function rd(e,t,i,n){var r="",a=e.tag,s,o,l;for(s=0,o=i.length;s<o;s+=1)l=i[s],e.replacer&&(l=e.replacer.call(i,String(s),l)),(ji(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&ji(e,t+1,null,!0,!0,!1,!0))&&((!n||r!=="")&&(r+=Uo(e,t)),e.dump&&Zn===e.dump.charCodeAt(0)?r+="-":r+="- ",r+=e.dump);e.tag=a,e.dump=r||"[]"}function lf(e,t,i){var n="",r=e.tag,a=Object.keys(i),s,o,l,c,d;for(s=0,o=a.length;s<o;s+=1)d="",n!==""&&(d+=", "),e.condenseFlow&&(d+='"'),l=a[s],c=i[l],e.replacer&&(c=e.replacer.call(i,l,c)),ji(e,t,l,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ji(e,t,c,!1,!1)&&(d+=e.dump,n+=d));e.tag=r,e.dump="{"+n+"}"}function cf(e,t,i,n){var r="",a=e.tag,s=Object.keys(i),o,l,c,d,u,m;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new We("sortKeys must be a boolean or a function");for(o=0,l=s.length;o<l;o+=1)m="",(!n||r!=="")&&(m+=Uo(e,t)),c=s[o],d=i[c],e.replacer&&(d=e.replacer.call(i,c,d)),ji(e,t+1,c,!0,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&Zn===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,u&&(m+=Uo(e,t)),ji(e,t+1,d,!0,u)&&(e.dump&&Zn===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,r+=m));e.tag=a,e.dump=r||"{}"}function ad(e,t,i){var n,r,a,s,o,l;for(r=i?e.explicitTypes:e.implicitTypes,a=0,s=r.length;a<s;a+=1)if(o=r[a],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(i?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(l=e.styleMap[o.tag]||o.defaultStyle,xd.call(o.represent)==="[object Function]")n=o.represent(t,l);else if(wd.call(o.represent,l))n=o.represent[l](t,l);else throw new We("!<"+o.tag+'> tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}function ji(e,t,i,n,r,a,s){e.tag=null,e.dump=i,ad(e,i,!1)||ad(e,i,!0);var o=xd.call(e.dump),l=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var d=o==="[object Object]"||o==="[object Array]",u,m;if(d&&(u=e.duplicates.indexOf(i),m=u!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(r=!1),m&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(d&&m&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),o==="[object Object]")n&&Object.keys(e.dump).length!==0?(cf(e,t,e.dump,r),m&&(e.dump="&ref_"+u+e.dump)):(lf(e,t,e.dump),m&&(e.dump="&ref_"+u+" "+e.dump));else if(o==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?rd(e,t-1,e.dump,r):rd(e,t,e.dump,r),m&&(e.dump="&ref_"+u+e.dump)):(of(e,t,e.dump),m&&(e.dump="&ref_"+u+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&rf(e,e.dump,t,a,l);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new We("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function df(e,t){var i=[],n=[],r,a;for(Vo(e,i,n),r=0,a=n.length;r<a;r+=1)t.duplicates.push(i[n[r]]);t.usedDuplicates=new Array(a)}function Vo(e,t,i){var n,r,a;if(e!==null&&typeof e=="object")if(r=t.indexOf(e),r!==-1)i.indexOf(r)===-1&&i.push(r);else if(t.push(e),Array.isArray(e))for(r=0,a=e.length;r<a;r+=1)Vo(e[r],t,i);else for(n=Object.keys(e),r=0,a=n.length;r<a;r+=1)Vo(e[n[r]],t,i)}function uf(e,t){t=t||{};var i=new Jh(t);i.noRefs||df(e,i);var n=e;return i.replacer&&(n=i.replacer.call({"":n},"",n)),ji(i,0,n,!0,!0)?i.dump+`
`:""}var pf=uf,mf={dump:pf};function Jo(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var Xo=vd.load,hk=vd.loadAll,el=mf.dump,Md=We;var fk=Jo("safeLoad","load"),yk=Jo("safeLoadAll","loadAll"),bk=Jo("safeDump","dump");function er(e,t){if(e==null)return null;let i=il(e,t);return typeof i=="string"?i:null}function qd(e,t){if(e==null)return null;let i=il(e,t);return typeof i=="number"?i:null}function Id(e,t){if(e==null)return null;let i=il(e,t);return typeof i=="boolean"?i:null}function il(e,t){t=t.replace("..",".");let i=t.split(".");i!=null&&i[i.length-1]==""&&(i[i.length-1]=".");let n=e;for(let r of i)if(n=n[r],n==null)return null;return n}var re=gn(Za());var Ja="[Obsidian Linter]",tl=new Map,ir=!1;var Xa=[];function Fd(e,t){let i=`${Ja} ${e}:
`;i+=`${t.name} ${t.message}`,t.stack&&(i+=`
`+t.stack),re.default.error(i),ir&&es(i.substring(i.indexOf("]")+2),re.default.levels.TRACE)}function vn(e){re.default.info(`${Ja} ${e}`),ir&&es(e,re.default.levels.INFO)}function ii(e){re.default.debug(`${Ja} ${e}`),ir&&es(e,re.default.levels.DEBUG)}function Yi(e){re.default.warn(`${Ja} ${e}`),ir&&es(e,re.default.levels.WARN)}function zt(e){re.default.getLevel()>re.default.levels.DEBUG||tl.set(e,performance.now())}function Ji(e){if(re.default.getLevel()>re.default.levels.DEBUG)return;tl.has(e)||Yi(A("logs.timing-key-not-found").replace("{TIMING_KEY}",e));let t=performance.now()-tl.get(e);ii(`${e}: ${t} `+A("logs.milliseconds-abbreviation"))}function es(e,t){re.default.getLevel()<=t&&Xa.push(e)}function Rd(){Xa=[]}function nl(e){ir=e}function is(e){switch(e){case"INFO":{re.default.setLevel("info");break}case"TRACE":{re.default.setLevel("trace");break}case"DEBUG":{re.default.setLevel("debug");break}case"SILENT":{re.default.setLevel("silent");break}case"ERROR":{re.default.setLevel("error");break}case"WARN":{re.default.setLevel("warn");break}}}function Dd(e){switch(e){case re.default.levels.INFO:return"INFO";case re.default.levels.TRACE:return"TRACE";case re.default.levels.DEBUG:return"DEBUG";case re.default.levels.SILENT:return"SILENT";case re.default.levels.ERROR:return"ERROR";case re.default.levels.WARN:return"WARN"}}var Kd={};var _d={};var Nd={};var jd={commands:{"lint-file":{name:"Linten Sie die aktuelle Datei","error-message":"Lint-Datei-Fehler in der Datei"},"lint-file-unless-ignored":{name:"Linten Sie die aktuelle Datei, es sei denn, sie wird ignoriert"},"lint-all-files":{name:"Linten Sie alle Dateien im Vault","error-message":"Beim Linten aller Dateien Fehler in der Datei","success-message":"Alle Dateien gelinted","errors-message-singular":"Beim Linten aller Dateien gab es einen Fehler.","errors-message-plural":"Beim Linten aller Dateien gab es {NUM} Fehler.","start-message":"Dadurch werden alle Ihre Dateien ver\xE4ndert und es k\xF6nnen Fehler entstehen.","submit-button-text":"Linte alle","submit-button-notice-text":"Linte alle Dateien..."},"lint-all-files-in-folder":{name:"Linte alle Dateien im aktuellen Ordner","start-message":"Dadurch werden alle Ihre Dateien in {FOLDER_NAME} bearbeitet, einschlie\xDFlich der Dateien in den Unterordnern, was zu Fehlern f\xFChren kann.","submit-button-text":"Linte alle Dateien in {FOLDER_NAME}","submit-button-notice-text":"Linten aller Dateien in {FOLDER_NAME}...","error-message":"Beim Linten aller Dateien im Ordner gab es Fehler in der Datei","success-message":"Alle {NUM}-Dateien in {FOLDER_NAME} wurden gelinted.","message-singular":"Alle {NUM}-Dateien in {FOLDER_NAME} wurden gelinted und es trat ein Fehler auf.","message-plural":"Alle {FILE_COUNT}-Dateien in {FOLDER_NAME} wurden gelinted und es gab {ERROR_COUNT} Fehler."},"paste-as-plain-text":{name:"Einf\xFCgen als reiner Text und ohne \xC4nderungen"},"lint-file-pop-up-menu-text":{name:"Linte Datei"},"lint-folder-pop-up-menu-text":{name:"Linte Ordner"}},logs:{"plugin-load":"Plugin wird geladen","plugin-unload":"Plugin entladen","folder-lint":"Linting-Ordner ","linter-run":"Laufender Linter","paste-link-warning":"Abgebrochenes Einf\xFCgen des Lints, da der Inhalt der Zwischenablage ein Link ist, wodurch Konflikte mit anderen Plugins vermieden werden, die das Einf\xFCgen \xE4ndern.","see-console":"Weitere Informationen finden Sie in der Konsole.","unknown-error":"Beim Linten ist ein unbekannter Fehler aufgetreten.","moment-locale-not-found":"Beim Versuch, Moment.js locale auf {MOMENT_LOCALE} umzustellen, wurde {CURRENT_LOCALE} angezeigt","file-change-lint-message-start":"Linted","pre-rules":"Regeln vor regul\xE4ren Regeln","post-rules":"Regeln nach regul\xE4ren Regeln","rule-running":"Laufende Regeln","custom-regex":"Benutzerdefinierte Regex-Regeln","running-custom-regex":"Ausf\xFChren von benutzerdefinierten Regex","running-custom-lint-command":"Ausf\xFChren von benutzerdefinierten Lint-Befehlen","custom-lint-duplicate-warning":'Sie k\xF6nnen denselben Befehl ("{COMMAND_NAME}") nicht zweimal als benutzerdefinierte Lint-Regel ausf\xFChren.',"custom-lint-error-message":"Benutzerdefinierter Lint-Befehl","disabled-text":"ist deaktiviert","run-rule-text":"L\xE4uft","timing-key-not-found":"Der Timing-Schl\xFCssel '{TIMING_KEY}' ist in der Timing-Info-Liste nicht vorhanden, daher wurde er ignoriert","milliseconds-abbreviation":"ms","invalid-date-format-error":"Das Format des Erstellungsdatums '{DATE}' konnte nicht analysiert oder bestimmt werden, sodass das Erstellungsdatum in '{FILE_NAME}","invalid-delimiter-error-message":"Trennzeichen darf nur ein einzelnes Zeichen sein","missing-footnote-error-message":"Die Fu\xDFnote '{FOOTNOTE}' hat keinen entsprechenden Fu\xDFnotenverweis vor dem Fu\xDFnoteninhalt und kann nicht verarbeitet werden. Bitte achten Sie darauf, dass alle Fu\xDFnoten vor dem Inhalt der Fu\xDFnote einen entsprechenden Verweis haben.","too-many-footnotes-error-message":"Der Fu\xDFnotenschl\xFCssel '{FO Line truncated
`)break;r.trim()===""||r===">"?i=r+i:i="",n--}return[i,n]}function ll(e=""){let[t]=xn(e,e.length);return`
`+t.trim()}function cu(e="",t=!1,i=1){let n=ll(e),r=Xi(n,">");return(t||us.test(e))&&i===r||i<r?n.substring(0,n.lastIndexOf(">")):n}function xf(e,t){if(t===0)return e;let i=t,n=t;for(;i>=0;){let r=e.charAt(i);if(r.trim()!=="")break;r===`
`&&(n=i),i--}return i<0||n===0?e.substring(t+1):e.substring(0,n)+`
`+e.substring(t)}function wf(e,t,i,n=!1,r=!1){if(i===0)return e;let a=t.split(">").length-1,s=i,o=i,l=0,c=!1,d="";for(;s>=0;){let k=e.charAt(s);if(k.trim()!==""&&k!==">")break;if(k===">"){if(c)break;l++}else if(k===`
`)if(l===0||l===a||l+1===a)o=s,l=0,d===`
`&&(c=!0);else break;s--,d=k}if(s<0||o===0)return e.substring(i+1);let u=e.substring(o,i);if(u===`
`||u.startsWith(`
`))return e.substring(0,o)+`
`+e.substring(i);let p=e.lastIndexOf(`
`,o-1),g="";p===-1?g=e.substring(0,o):g=e.substring(p,o);let b,f=e.indexOf(`
`,i+1);f===-1?b=e.substring(i):b=e.substring(i,f);let x;return r?x=cu(g,n,a):Xi(g,">")!=0&&!us.test(g)&&(tr.test(g)||tr.test(b))?x=e.substring(o,i).trimEnd():x=ll(g),e.substring(0,o)+x+e.substring(i)}function kf(e,t){if(t===e.length-1)return e;let i=t,n=t,r=!0;for(;i<e.length;){let a=e.charAt(i);if(a.trim()!=="")break;a===`
`&&(r?r=!1:n=i),i++}return i===e.length||n===e.length-1?e.substring(0,t):e.substring(0,t)+`
`+e.substring(n)}function zf(e,t,i,n=!1,r=!1){if(i===e.length-1)return e;let a=t.split(">").length-1,s=i,o=i,l=!0,c=0,d=!1,u="",m=!0,p=e.charAt(s-1);for(;s<e.length;){let O=e.charAt(s);if(O.trim()!==""&&O!==">")break;if(O===">"){if(d)break;c++}else if(O===`
`)if(c===0||c===a||c+1===a)c=0,l?l=!1:o=s,u===`
`&&(d=!0);else break;if(s++,u=O,m&&O===`
`&&r&&p===`
`){o=s;break}m=!1}if(s===e.length||o===e.length-1)return e.substring(0,i);let g=e.substring(i,o);if(g===`
`||g.endsWith(`
`))return e.substring(0,i)+`
`+e.substring(o);let f=e.indexOf(`
`,o+1),x="";f===-1?x=e.substring(o):x=e.substring(o+1,f);let k,L=e.lastIndexOf(`
`,i-1);L===-1?k=e.substring(0,o):k=e.substring(L+1,i);let E;return r?E=cu(x,n,a):tr.test(x)||tr.test(k)?E=e.substring(i,o).trimEnd():E=ll(x),e.substring(0,i)+E+e.substring(o)}function St(e,t,i,n=!1){let[r,a]=xn(e,t);if(r.trim()!==""){let o=us.test(e.substring(t,i)),l=Xi(r,">"),c=Sf(e,i,l),d=zf(e,r,c,o,n);return a=Af(d,a,l),wf(d,r,a,o,n)}let s=kf(e,i);return xf(s,a)}function du(e,t=0){let i=3735928559^t,n=1103547991^t;for(let r=0,a;r<e.length;r++)a=e.charCodeAt(r),i=Math.imul(i^a,2654435761),n=Math.imul(n^a,1597334677);return i=Math.imul(i^i>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(i^i>>>13,3266489909),4294967296*(2097151&n)+(i>>>0)}function uu(e){return e=e.replaceAll("\\b","\b"),e=e.replaceAll("\\f","\f"),e=e.replaceAll("\\n",`
`),e=e.replaceAll("\\r","\r"),e=e.replaceAll("\\t"," "),e=e.replaceAll("\\v","\v"),e}function rr(e,t){if(t==0)return t;let i=t;for(;i>0&&e.charAt(i-1)!==`
`;)i--;return i}function pu(e,t,i,n){return n>e.length-1?e:e.slice(0,n)+e.slice(n,e.length).replace(t,i)}function Xi(e,t){let i=0;for(let n=0,r=e.length;n<r;n++){let a=e.indexOf(t,n);a>-1&&(i++,n=a)}return i}function cs(e){let t=typeof e;return t!="string"?t==="number":!isNaN(e)&&!isNaN(parseFloat(e))}function mu(e,t){let i=[],n=-1;for(;(n=t.indexOf(e,n+1))>=0;)i.push(n);return i}function Af(e,t,i){let n=t,r=t+1,a="",s=!1,o=0;for(;r<e.length;){if(a=e.charAt(r),a.trim()!==""&&a!==">"){s=!0;break}else if(a===`
`){if(o!==i)break;o=0,n=r}else a===">"&&o++;r++}return s?n:t}function Sf(e,t,i){let n=t,r=t-1,a="",s=!1,o=0;for(;r>=0;){if(a=e.charAt(r),a.trim()!==""&&a!==">"){s=!0;break}else if(a===`
`){if(o!==i)break;o=0,n=r}else a===">"&&o++;r--}return s?n:t}function ds(e){let t=wn(e),i=new Map,n="",r=[],a=[];for(let s of t){n=e.substring(s.startIndex,s.endIndex),r=n.split(`
`),r.splice(0,2);for(let o of r){if(a=o.split("|"),a.length!==4){Yi(A("options.custom-auto-correct.custom-row-parse-warning").replace("{ROW}",o));continue}i.set(a[1].trim().toLowerCase(),a[2].trim())}}return i}function Fe(e,t,i,n){let r=e.length,a=0,s;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,i=i>0?i:0,n.length<1e4)s=Array.from(n),s.unshift(t,i),e.splice(...s);else for(i&&e.splice(t,i);a<n.length;)s=n.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function Ve(e,t){return e.length>0?(Fe(e,e.length,0,t),e):t}var Lf=et(/\p{P}/u),ti=et(/[A-Za-z]/),$e=et(/[\dA-Za-z]/),gu=et(/[#-'*+\--9=?A-Z^-~]/);function ar(e){return e!==null&&(e<32||e===127)}var sr=et(/\d/),hu=et(/[\dA-Fa-f]/),cl=et(/[!-/:-@[-`{-~]/);function q(e){return e!==null&&e<-2}function te(e){return e!==null&&(e<0||e===32)}function V(e){return e===-2||e===-1||e===32}function fu(e){return cl(e)||Lf(e)}var yu=et(/\s/);function et(e){return t;function t(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function dl(e){if(e===null||te(e)||yu(e))return 1;if(fu(e))return 2}function kn(e,t,i){let n=[],r=-1;for(;++r<e.length;){let a=e[r].resolveAll;a&&!n.includes(a)&&(t=a(t,i),n.push(a))}return t}var or={name:"attention",tokenize:Ef,resolveAll:Tf};function Tf(e,t){let i=-1,n,r,a,s,o,l,c,d;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(n=i;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[n][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;let u=Object.assign({},e[n][1].end),m=Object.assign({},e[i][1].start);bu(u,-l),bu(m,l),s={type:l>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[n][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[i][1].start),end:m},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[i][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},o.end)},e[n][1].end=Object.assign({},s.start),e[i][1].start=Object.assign({},o.end),c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=Ve(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=Ve(c,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",a,t]]),c=Ve(c,kn(t.parser.constructs.insideSpan.null,e.slice(n+1,i),t)),c=Ve(c,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[i][1].end.offset-e[i][1].start.offset?(d=2,c=Ve(c,[["enter",e[i][1],t],["exit",e[i][1],t]])):d=0,Fe(e,n-1,i-n+3,c),i=n+c.length-d-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function Ef(e,t){let i=this.parser.constructs.attentionMarkers.null,n=this.previous,r=dl(n),a;return s;function s(l){return a=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===a)return e.consume(l),o;let c=e.exit("attentionSequence"),d=dl(l),u=!d||d===2&&r||i.includes(l),m=!r||r===2&&d||i.includes(n);return c._open=!!(a===42?u:u&&(r||!m)),c._close=!!(a===42?m:m&&(d||!u)),t(l)}}function bu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var ul={name:"autolink",tokenize:Cf};function Cf(e,t,i){let n=0;return r;function r(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return ti(p)?(e.consume(p),s):c(p)}function s(p){return p===43||p===45||p===46||$e(p)?(n=1,o(p)):c(p)}function o(p){return p===58?(e.consume(p),n=0,l):(p===43||p===45||p===46||$e(p))&&n++<32?(e.consume(p),o):(n=0,c(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||ar(p)?i(p):(e.consume(p),l)}function c(p){return p===64?(e.consume(p),d):gu(p)?(e.consume(p),c):i(p)}function d(p){return $e(p)?u(p):i(p)}function u(p){return p===46?(e.consume(p),n=0,d):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):m(p)}function m(p){if((p===45||$e(p))&&n++<63){let g=p===45?m:u;return e.consume(p),g}return i(p)}}function j(e,t,i,n){let r=n?n-1:Number.POSITIVE_INFINITY,a=0;return s;function s(l){return V(l)?(e.enter(i),o(l)):t(l)}function o(l){return V(l)&&a++<r?(e.consume(l),o):(e.exit(i),t(l))}}var Ei={tokenize:Of,partial:!0};function Of(e,t,i){return n;function n(a){return V(a)?j(e,r,"linePrefix")(a):r(a)}function r(a){return a===null||q(a)?t(a):i(a)}}var ps={name:"blockQuote",tokenize:Mf,continuation:{tokenize:qf},exit:If};function Mf(e,t,i){let n=this;return r;function r(s){if(s===62){let o=n.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit(Line truncated
`;break}case-3:{s=`\r
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&r)continue;s=" ";break}default:s=String.fromCharCode(a)}r=a===-2,n.push(s)}return n.join("")}var Tl={};Pc(Tl,{attentionMarkers:()=>cb,contentInitial:()=>nb,disable:()=>db,document:()=>tb,flow:()=>ab,flowInitial:()=>rb,insideSpan:()=>lb,string:()=>sb,text:()=>ob});var tb={42:Pe,43:Pe,45:Pe,48:Pe,49:Pe,50:Pe,51:Pe,52:Pe,53:Pe,54:Pe,55:Pe,56:Pe,57:Pe,62:ps},nb={91:gl},rb={[-2]:lr,[-1]:lr,32:lr},ab={35:fl,42:Et,45:[xs,Et],60:bl,61:xs,95:Et,96:hs,126:hs},sb={38:gs,92:ms},ob={[-5]:cr,[-4]:cr,[-3]:cr,33:xl,38:gs,42:or,60:[ul,vl],91:wl,92:[hl,ms],93:Tt,95:or,96:pl},lb={null:[or,qu]},cb={null:[42,95]},db={null:[]};function El(e){let i=ws([Tl,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:i,content:r(Eu),document:r(Ou),flow:r(Mu),string:r(Iu),text:r(Bu)};return n;function r(a){return s;function s(o){return Du(n,a,o)}}}function Cl(e){for(;!fs(e););return e}var Ku=/[\0\t\n\r]/g;function Ol(){let e=1,t="",i=!0,n;return r;function r(a,s,o){let l=[],c,d,u,m,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),u=0,t="",i&&(a.charCodeAt(0)===65279&&u++,i=void 0);u<a.length;){if(Ku.lastIndex=u,c=Ku.exec(a),m=c&&c.index!==void 0?c.index:a.length,p=a.charCodeAt(m),!c){t=a.slice(u);break}if(p===10&&u===m&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),u<m&&(l.push(a.slice(u,m)),e+=m-u),p){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}u=m+1}return o&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}var ub=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _u(e){return e.replace(ub,pb)}function pb(e,t,i){if(t)return t;if(i.charCodeAt(0)===35){let r=i.charCodeAt(1),a=r===120||r===88;return ks(i.slice(a?2:1),a?16:10)}return zn(i)||e}function An(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Nu(e.position):"start"in e||"end"in e?Nu(e):"line"in e||"column"in e?Ml(e):""}function Ml(e){return ju(e&&e.line)+":"+ju(e&&e.column)}function Nu(e){return Ml(e&&e.start)+"-"+Ml(e&&e.end)}function ju(e){return e&&typeof e=="number"?e:1}var Pu={}.hasOwnProperty;function ql(e,t,i){return typeof t!="string"&&(i=t,t=void 0),mb(i)(Cl(El(i).document().write(Ol()(e,t,!0))))}function mb(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Na),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(Da),blockQuote:a(Di),characterEscape:B,characterReference:B,codeFenced:a(oi),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(oi,s),codeText:a(Li,s),codeTextData:B,data:B,codeFlowValue:B,definition:a(Gi),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(dn),hardBreakEscape:a(Ka),hardBreakTrailing:a(Ka),htmlFlow:a(Hn,s),htmlFlowData:B,htmlText:a(Hn,s),htmlTextData:B,image:a(_a),label:s,link:a(Na),listItem:a(Ki),listItemValue:m,listOrdered:a(ja,u),listUnordered:a(ja),paragraph:a(un),reference:w,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(Da),strong:a(Ya),thematicBreak:a(Un)},exit:{atxHeading:l(),atxHeadingSequence:O,autolink:l(),autolinkEmail:oe,autolinkProtocol:Ri,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:_e,characterReferenceMarkerNumeric:_e,characterReferenceValue:Fi,codeFenced:l(f),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:D,codeIndented:l(x),codeText:l(P),codeTextData:D,data:D,definition:l(),definitionDestinationString:E,definitionLabelString:k,definitionTitleString:L,emphasis:l(),hardBreakEscape:l($),hardBreakTrailing:l($),htmlFlow:l(F),htmlFlowData:D,htmlText:l(Y),htmlTextData:D,image:l(J),label:Oe,labelText:De,lineEnding:U,link:l(Z),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:we,resourceDestinationString:v,resourceTitleString:Ke,resource:Ue,setextHeading:l(K),setextHeadingLineSequence:I,setextHeadingText:S,strong:l(),thematicBreak:l()}};Hu(t,(e||{}).mdastExtensions||[]);let i={};return n;function n(T){let M={type:"root",children:[]},W={stack:[M],tokenStack:[],config:t,enter:o,exit:c,buffer:s,resume:d,data:i},Q=[],ie=-1;for(;++ie<T.length;)if(T[ie][1].type==="listOrdered"||T[ie][1].type==="listUnordered")if(T[ie][0]==="enter")Q.push(ie);else{let hi=Q.pop();ie=r(T,hi,ie)}for(ie=-1;++ie<T.length;){let hi=t[T[ie][0]];Pu.call(hi,T[ie][1].type)&&hi[T[ie][1].type].call(Object.assign({sliceSerialize:T[ie][2].sliceSerialize},W),T[ie][1])}if(W.tokenStack.length>0){let hi=W.tokenStack[W.tokenStack.length-1];(hi[1]||Yu).call(W,void 0,hi[0])}for(M.position={start:it(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:it(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},ie=-1;++ie<t.transforms.length;)M=t.transforms[ie](M)||M;return M}function r(T,M,W){let Q=M-1,ie=-1,hi=!1,xt,_i,Wn,Vn;for(;++Q<=W;){let ei=T[Q];switch(ei[1].type){case"listUnordered":case"listOrdered":case"blockQuoteLine truncated
`&&(e=e.substring(0,s.end.offset)+e.substring(s.end.offset+1)),s.end.offset<e.length&&e[s.end.offset]===`
`&&(e=e.substring(0,s.end.offset)+e.substring(s.end.offset+1)),e=e.substring(0,s.start.offset)+e.substring(s.end.offset),a(e,o,s.start.offset)}for(let s of n){let o=s[1],l=o.referencePositions.length-o.footnotesReferencingKey.length;l=l>=0?l:0;let c=0;for(let d of o.footnotesReferencingKey){if(c+l>=o.referencePositions.length)throw new Error(A("logs.missing-footnote-error-message").replace("{FOOTNOTE}",d));r.set(d,o.referencePositions[l+c++])}}i=i.sort((s,o)=>r.get(s)-r.get(o)),i.length>0&&(e=e.trimEnd()+`
`);for(let s of i)e+=`
`+s;return e}function Ju(e){let t=ye("footnoteDefinition",e),i=[],n=new Map,r=new Map,a=[],s=new Set,o=[],l=function(u,m,p){let g=m.match(/\[\^.*?\]/)[0];n.set(m,g);let b=s.has(g);if(b&&i.includes(m)){o.unshift(m);return}else if(b)throw new Error(A("logs.too-many-footnotes-error-message").replace("{FOOTNOTE_KEY}",g));let f;do f=u.lastIndexOf(g,p),f!==-1&&((f+m.length>u.length||u.substring(f,f+m.length)!==m)&&a.push({key:g,position:f}),p=f-1);while(f>0);s.add(g)};for(let u of t){let m=e.substring(u.start.offset,u.end.offset);i.unshift(m),l(e,m,u.start.offset)}let c=1,d=new Set;for(let u of i){if(d.has(u))continue;d.add(u);let m=n.get(u),p=`[^${c++}]`;r.set(m,p)}a.sort((u,m)=>m.position-u.position);for(let u of a){let m=r.get(u.key);e=pu(e,u.key,m,u.position)}for(let u of d){let m=n.get(u),p=r.get(m);e=e.replace(u,u.replace(m,p))}for(let u of o){let m=e.replace(`
${u}
`,`
`);e===m&&(m=e.replace(u,"")),e=m}return e}function Ss(e,t,i){let n=ye(i,e);if(n.length===0)return e;let r="";if(t==="underscore")r="_";else if(t==="asterisk")r="*";else{let a=n[n.length-1];r=e.substring(a.start.offset,a.start.offset+1)}i==="strong"&&(r+=r);for(let a of n){let s=r+e.substring(a.start.offset+r.length,a.end.offset-r.length)+r;e=le(e,a.start.offset,a.end.offset,s)}return e}function Xu(e,t){let i=ye("paragraph",e);if(i.length===0)return e;for(let n of i){let r=e.substring(n.start.offset,n.end.offset).split(`
`),a=r.length-1;if(!(a<1)){for(let s=0;s<a;s++){let o=r[s];Tb(o,t)||(r[s]=Eb(o,t))}e=le(e,n.start.offset,n.end.offset,r.join(`
`))}}return e}function Tb(e,t){return!!(e.endsWith("<br>")&&t=="<br>"||e.endsWith("<br/>")&&t=="<br/>"||e.endsWith(" ")&&t==" "||!e.endsWith("\\\\")&&e.endsWith("\\")&&t=="\\")}function Eb(e,t){e=e.trimEnd();let i=0;return e.endsWith("<br>")&&(i=4),e.endsWith("<br/>")&&(i=5),!e.endsWith("\\\\")&&e.endsWith("\\")&&(i=1),i&&(e=e.substring(0,e.length-i)),e.trimEnd()+t}function ep(e){let t=e.endsWith(`
`),i=ye("paragraph",e);if(i.length===0)return e;for(let n of i){let r=n.start.offset;for(r>0&&r--;r>=0&&e.charAt(r)!=`
`;)r--;r++;let a=e.substring(r,n.end.offset).split(`
`),s=a[0].trimStart();if(s.startsWith(">")||s.match(Ts)||s.match(Es))continue;let o=a.length,l=[],c=!1;for(let g=0;g<o;g++){let b=a[g];if(c){let f=l.length-1;l[f]+=`
`+b}else l.push(b);c=b.endsWith("<br>")||b.endsWith("<br/>")||b.endsWith(" ")||!b.endsWith("\\\\")&&b.endsWith("\\")}for(;r>0&&e.charAt(r-1)==`
`;)r--;let d=e.length,u=n.end.offset;for(u<d&&u++;u<d&&e.charAt(u)==`
`;)u++;let m=`
`;r==0&&(m="");let p=`
`;u==d&&(p=""),e=le(e,r,u,m+l.join(`
`)+p)}return t&&!e.endsWith(`
`)&&(e+=`
`),e}function ip(e){let t=ye("link",e);for(let i of t){if(i==null)continue;let n=e.substring(i.start.offset,i.end.offset);if(!n.match(yr))continue;let r=n.indexOf("]"),a=n.substring(0,1)+n.substring(1,r).trim()+n.substring(r);e=le(e,i.start.offset,i.end.offset,a)}return e}function tp(e,t){let i=ye("emphasis",e);for(let n of i){let r=e.substring(n.start.offset+1,n.end.offset-1);r=t(r),e=le(e,n.start.offset+1,n.end.offset-1,r)}return e}function np(e,t){let i=ye("strong",e);for(let n of i){let r=e.substring(n.start.offset+2,n.end.offset-2);r=t(r),e=le(e,n.start.offset+2,n.end.offset-2,r)}return e}function Ls(e,t){let i=Lb(e);for(let n of i){let r=n.start.offset;for(;r>0&&e.charAt(r-1).trim()==="";)r--;(r===0||e.charAt(r-1).trim()!="")&&r++;let a=e.substring(r,n.end.offset);yp.test(a)&&(r+=4,a=a.substring(4)),a=t(a),e=le(e,r,n.end.offset,a)}return e}function rp(e){let t=ye("code",e);for(let i of t){let n=e.substring(i.start.offset,i.end.offset);!n.startsWith("```")&&!n.startsWith("~~~")||(e=St(e,i.start.offset,i.end.offset))}return e}function ap(e,t){let i=ye("math",e);for(let n of i)e=St(e,n.start.offset,n.end.offset);i=ye("inlineMath",e);for(let n of i)e.substring(n.start.offset,n.end.offset).startsWith("$".repeat(t))&&(e=St(e,n.start.offset,n.end.offset));return e}function sp(e){let t=ye("blockquote",e);for(let i of t){let n=i.end.offset;for(;n<e.length-1&&e.charAt(n)!==`
`;)n++;e=St(e,i.start.offset,n,!0)}return e}function op(e,t,i){let n=ye("list",e);if(!n)return e;for(let r of n){let a=r.start.offset;for(;a>0&&e.charAt(a-1)!==`
`;)a--;let s=e.substring(a,r.end.offset),o=function(u){let m=u.lastIndexOf("> ");return m!==-1&&(u=u.substring(m+2)),u=u.replaceAll(" "," "),Math.floor((u.split(" ").length-1)/2)+1},l=new Map,c=function(u,m){let p=m;for(;p>u;)l.delete(p--)},d=-1;s=s.replace(/^(( |\t|> )*)((\d+(\.|\)))|[-*+])([^\n]*)$/gm,(u,m="",p,g,b,f,x)=>{let k=1,L=o(m);if(!/^\d/.test(g)){let E=L>d?L:d;return c(L,E),u}return l.has(L)?t==="ascending"&&(k=l.get(L)+1,l.set(L,k)):l.set(L,1),d>L&&c(L,d),d=L,`${m}${k}${i}${x}`}),e=le(e,a,r.end.offset,s)}return e}function lp(e,t){let i=ye("listItem",e);if(!i)return e;let n=/^((\d+[.)])|(- \[[ x]\]))/m,r=t;if(t=="consistent"){let a=i.length-1;for(;a>=0;){let s=e.substring(i[a].start.offset,i[a].end.offset);if(a--,!s.match(n)){r=s.charAt(0);break}}if(a==-1)return e}for(let a of i){let s=e.substring(a.start.offset,a.end.offset);s.match(n)||(s=r+s.substring(1),e=le(e,a.start.offset,a.end.offset,s))}return e}function Pl(e,t){let i=ye("blockquote",e);for(let n of i){let r=n.end.offset;for(;r<e.length-1&&e.charAt(r)!==`
`;)r++;let a=e.substring(n.start.offset,r);a=t(a),e=le(e,n.start.offset,r,a)}return e}function cp(e,t){let i=ye("math",e),n=new RegExp("^(\\${"+t+",})(\\n*)"),r=new RegExp("(\\n*)(\\${"+t+",})([^\\$]*)$");for(let a of i){let s=e.substring(a.start.offset,a.end.offset),o=Cb(s,t,a.start.offset);for(let l of o)e=$u(e,l.startIndex,l.endIndex,n,r)}i=ye("inlineMath",e);for(let a of i)e.substring(a.start.offset,a.end.offset).startsWith("$".repeat(t))&&(e=$u(e,a.start.offset,a.end.offset,n,r));return e}function Cb(e,t,i){let n="$".repeat(t),r=t;for(;e.charAt(r)==="$";)n+="$",r++;let a=[],s=Xi(e,n);if(s<=1)return[];if(s===2)return a.unshift({startIndex:i,endIndex:i+e.length}),a;s===3&&a.unshift({startIndex:i,endIndex:i+e.indexOf(n,n.length)+n.length}),s%2===1&&s--;let o=i,l=n.length;for(;s>2;){let c=e.indexOf(n,l)+n.length;a.unshift({startIndex:o,endIndex:i+c}),o=i+c+1,l=c+1,s-=2}return a.unshift({startIndex:i+e.indexOf(n,l),endIndex:i+e.length}),a}function $u(e,t,i,n,r){let a=e.substring(rr(e,t),t)??"",[s]=xn(a,a.length),o=e.substring(rr(e,i),i)??"",l=e.substring(t,i),c=pp.test(a.trim()),d=!1;for(l=l.replace(n,(u,m,p="")=>{let g="";return!c&&a.trim()!=""?(g+=`
`,d=!0):c&&!jl.test(a)&&(g+=`
`+s,d=!0),g+=m+`
`,p===""&&c&&(g+=s),g}),l=l.replace(r,(u,m="",p,g)=>{let b=m==="";return b&&c&&jl.test(o.trim())?u:b&&c?`
`+s+p+g:`
`+p+g});d&&t>0;){let u=e[t-1];if(u!==" "&&u!==" ")break;t--}return le(e,t,i,l)}function wn(e){let t=[...e.matchAll(mp)],i=[];for(let n of t){let r=rr(e,n.index);if(r===0)continue;let a=rr(e,r-1),s=n[0],o=e.substring(r,n.index+s.length);if(Ob(o,s))continue;let l=a,c=e.substring(a,r-1);if(!s.includes("|")&&!c.includes("|"))continue;c=c.replace(Yl,g=>{let b=g.trim();return b===""||b==="|"||(l+=g.length-1),""});let d=s.replace(Yl,"");if(c.endsWith("|")&&(c=c.slice(0,-1)),d.endsWith("|")&&(d=d.slice(0,-1)),Gu(c)!==Gu(d))continue;let u=n.index+n[0].length;if(u>=e.length-1){i.push({startIndex:l,endIndex:e.length});continue}let m=e.substring(u+1).split(`
`),p=0;for(;p<m.length&&gp.test(m[p]);)u+=m[p].length+1,p++;i.push({startIndex:l,endIndex:u})}return i.reverse()}function Ob(e,t){if(e.trim()===""||t.includes("||"))return!0;let i=e.replace(t,"");return/[^\s>]/.test(i)}function Gu(e){let t=!1,i=0,n=0,r="";for(let a=0;a<e.length;a++)r=e[a],r==="\\"?(i++,t=i%2==1):(i=0,r==="|"&&!t&&n++,t=!1);return n}function dp(e){let t=0,i=[],n=[...e.matchAll(hp)];if(!n||n.length===0)return i;let r=[...e.matchAll(fp)];return n.forEach(a=>{t=a.index;let s=!1,o=e.length-1;for(;r&&r.length!==0&&!s;)if(r[0].index<=t)r.shift();else{s=!0;let l=r[0];o=l.index+l[0].length}i.push({startIndex:t,endIndex:o}),!r||r.length}),i.reverse()}function up(e,t){let i=ye("code",e);for(let n of i){let r=e.substring(n.start.offset,n.end.offset);!r.startsWith("```")||r.substring(3,r.indexOf(`
`)).trim()!==""||(e=le(e,n.start.offset+3,n.start.offset+3,t))}return e}var rt=/^([ \t]*)(#+)([ \t]+)([^\n\r]*?)([ \t]+#+)?$/gm,bp=`^XXX\\.*?
(?:((?:.|
)*?)
)?XXX(?=\\s|$)$`,Ge=/^---\n((?:(((?!---)(?:.|\n)*?)\n)?))---(?=\n|$)/,Mb=bp.replaceAll("X","`"),qb=bp.replaceAll("X","~"),Ib=`^(( |( {4})).*
)+`,ZT=new RegExp(`${Mb}|${qb}|${Ib}`,"gm"),Cs=/(!?)\[{2}([^\][\n|]+)(\|([^\][\n|]+))?(\|([^\][\n|]+))?\]{2}/g,yr=/(!?)\[([^[]*)\](\(.*\))/g,br=/(\s|^)(#[\p{L}\-_\d/\p{Emoji_Presentation}]+)/gu,vp=/^%%\n[^%]*\n%%/gm,vr=/[,\s]+/,Os=/(\. ?){2}\./g,xr="\\s*(>\\s*)*",jl=/^(>( |\t)*)+\$*?$/m,pp=/^\s*(>\s*)+/m,mp=/(\|? *:?-{1,}:? *\|?)(\| *:?-{1,}:? *\|?)*( |\t)*$/gm,Yl=/^(((>[ ]?)*)|([ ]{0,3}))\|/m,gp=/[^\n]*?\|[^\n]*?(\n|$)/m,xp=/(([a-z\-0-9]+:)\/{2,3})([^\s/?#]*[^\s")'.?!/]|[/])?(([/?#][^\s")']*[^\s")'.?!])|[/])?/gi,Ct=/(?:(?:(?:[a-z]+:)?\/\/)|www\.)(?:localhost|(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?|(?:(?:[a-z0-9][-_]*)*[a-z0-9]+)(?:\.(?:[a-z0-9]-*)*[a-z0-9]+)*(?:\.(?:[a-z]{2,})))(?::\d{2,5})?(?:(?:[/?#][a-z0-9-_%/&=?$.+~!*‘(,#@]*[a-z0-9-%_/$+~!*‘(,])|[/])?/gi,JT=new RegExp("^"+Ct.source+"$","si"),wp=/<a[\s]+([^>]+)>((?:.(?!<\/a>))*.)<\/a>/g,kp=/[\p{L}\p{N}\p{Pc}\p{M}\-'’`]+/gu,zp=/&[^\s]+;$/mi,hp=Mp(!0),fp=Mp(!1),Ap=/[“”„«»]/g,Sp=/[‘’‚‹›]/g,Lp=/<%[^]*?%>/g,Ot="\\[.\\]",yp=new RegExp(`^${Ot}`),Tp=new RegExp(`^${xr}- ${Ot} `),Ms=new RegExp(`^\\s*- ${Ot} `),Ts=new RegExp(`^\\s*(-|\\*|\\+|\\d+[.)]|- (${Ot}))`,"m"),Es=/^(\[\^[^\]]*\]) ?([,.;!:?])/gm,us=/^(>\s*)+\[![^\s]*\]/m,tr=/^\n?(>\s*)+((```)|(~~~))/m,Hl=RegExp(/\p{L}/,"u");function Qe(e){return e.replace(/\$/g,"$$$$")}function at(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ep(e){let t=e.match(Cs);if(t){for(let i of t)if(i.includes("|")){let n=i.indexOf("|"),r=i.substring(0,n+1)+i.substring(n+1,i.length-2).trim()+"]]";e=e.replace(i,r)}}return e}function Cp(e){let t=wn(e);if(t.length===0)return e;for(let i of t)e=St(e,i.startIndex,i.endIndex);return e}function qs(e){let t=e.match(/^#\s+(.*)/m);if(t&&t[1]){let i=t[1];return i=i.replaceAll(Cs,(n,r,a,s)=>s!=null?s.replace("|",""):a),i.replaceAll(yr,"$2")}return""}function Op(e){return[...e.matchAll(br)].map(t=>t[2])}function Mp(e){let t="(?:<!-{2,}|%%) *linter-{ENDING_TEXT} *(?:-{2,}>|%%)",i="";return e?i+="disable":i+="enable",new RegExp(t.replace("{ENDING_TEXT}",i),"g")}var Ul="tag",wr="tags",yi=[Ul,wr],Bb="alias",Wl="aliases",bi=[Bb,Wl],Vl="linter-yaml-title-alias",Sn="disabled rules";function Ci(e){return e.match(Ge)===null&&(e=`---
---
`+e),e}function Ln(e){let t=e.match(Ge);return t?t[1]:null}function he(e,t){if(!e.match(Ge))return e;let i=e.match(Ge)[0],n=t(i);return e=e.replace(i,Qe(n)),e}function $l(e,t=!0){return t?new RegExp(`^([\\t ]*)${e}:[ \\t]*(\\S.*|(?:(?:\\n *- \\S.*)|((?:\\n *- *))*|(\\n([ \\t]+[^\\n]*))*)*)\\n`,"m"):new RegExp(`^${e}:[ \\t]*(\\S.*|(?:(?:\\n *- \\S.*)|((?:\\n *- *))*|(\\n([ \\t]+[^\\n]*))*)*)\\n`,"m")}function ae(e,t,i){let n=`${t}:${i}
`,r=!1,a=e.replace($l(t),(s,o)=>(r=!0,o+n));return r||(a=`${e}${n}`),a}function de(e,t,i=!0){let n=e.match($l(t,i));if(n==null)return null;let r=n[2];return i||(r=n[1]),r}function Mt(e,t,i=!0){return e.replace($l(t,i),"")}function ri(e){if(e==null)return null;let t=Xo(e.replace(/\n(\t)+/g,`
`));return t??{}}function be(e,t,i,n,r=!1){if(typeof e=="string"&&(e=[e]),e==null||e.length===0)return Fb(t);let a=n&&(t=="multi-line"||t=="single string to multi-line"&&e.length>1);if(r||a)for(let s=0;s<e.length;s++){let o=e[s],l=Tn(o);l&&(o=o.substring(1,o.length-1));let c=r&&cs(o);l&&c||(c||l&&a)&&(e[s]=vi(o,i,c))}switch(t){case"single string to single-line":if(e.length===1)return" "+e[0];case"single-line":return" "+qp(e);case"single string to multi-line":if(e.length===1)return" "+e[0];case"multi-line":return Rb(e);case"single string space delimited":return e.length===1?" "+e[0]:" "+e.join(" ");case"single string comma delimited":return e.length===1?" "+e[0]:" "+e.join(", ");case"single-line space delimited":return e.length===1?" "+e[0]:" "+qp(e).replaceAll(", "," ")}}function Fb(e){switch(e){case"single-line":case"single-line space delimited":case"multi-line":return" []";case"single string to single-line":case"single string to multi-line":case"single string space delimited":case"single string comma delimited":return" "}}function qp(e){return e==null||e.length===0?"[]":"["+e.join(", ")+"]"}function Rb(e){return e==null||e.length===0?"[]":`
- `+e.join(`
- `)}function qe(e){if(e==null||e.length===0)return null;if(e=e.trimEnd(),e.startsWith("["))return e=e.substring(1),e.endsWith("]")&&(e=e.substring(0,e.length-1)),e.length===0?null:Is(e,",").filter(i=>i!="");if(e.includes(`
`)){let t=e.split(/[ \t]*\n[ \t]*-[ \t]*/);return t.splice(0,1),t=t.filter(i=>i!=""),t==null||t.length===0?null:t}return e}function st(e){if(e==null)return[];let t=[],i=[];Array.isArray(e)?i=e:e.includes(",")?i=Is(e,","):i=Is(e," ");for(let n of i)t.push(n.trim());return t}function ot(e){return typeof e=="string"?Is(e,","):e}function Is(e,t=","){if(e==""||e==null)return null;if(t.length>1)throw new Error(A("logs.invalid-delimiter-error-message"));let i=[],n="",r=0;for(;r<e.length;){let a=e.charAt(r);if(a===t)i.push(n.trim()),n="";else if(a==='"'||a==="'"){let s=e.indexOf(a,r+1);s!=-1?(n+=e.substring(r,s+1),r=s):n+=a}else n+=a;r++}return n.trim()!=""&&i.push(n.trim()),i}function Tn(e){return e.length>1&&(e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"'))}function vi(e,t,i=!1,n=!1){let r=Db(e,t,i);if(n)return r;try{if(Xo(r)===e)return r}catch{}let a=el(e,{lineWidth:-1,quotingType:t,forceQuotes:i}).slice(0,-1),s=el(e,{lineWidth:-1,quotingType:t=='"'?"'":'"',forceQuotes:i}).slice(0,-1);return s===e||s.length<a.length?s:a}function Db(e,t,i=!1){if(Tn(e))return e;let n=e.includes("'"),r=e.includes('"'),a=e.includes(": ");return!n&&!r&&!a&&!i||n&&r?e:n?`"${e}"`:r?`'${e}'`:`${t}${e}${t}`}function Ip(e){let t=de(e,Sn);if(t==null)return[];let i=t.includes(`
`)?`${Sn}:
`:`${Sn}: `;i+=t;let r=ri(i)["disabled rules"];return r?(typeof r=="string"&&(r=[r]),r):[]}var Fn=require("obsidian");var Bp=require("obsidian");function Oi(e,t,i){Bp.MarkdownRenderer.renderMarkdown(e,t,"",i);let n=t.innerHTML.trim();n.startsWith("<p>")&&(n=n.substring(3)),n.endsWith("</p>")&&(n=n.substring(0,n.length-4)),t.innerHTML=n}function ci(e){e.addClass("linter-visually-hidden")}function Mi(e){e.removeClass("linter-visually-hidden")}var In=require("obsidian");var Fp=require("obsidian");var di=class{constructor(t,i,n,r,a,s,o,l){this.containerEl=t;this.parentComponent=i;this.name=n;this.description=r;this.warning=a;this.addInputBtnText=s;this.saveSettings=o;this.onAddInput=l}display(){this.containerEl.createDiv({cls:"setting-item-name",text:this.name});let t=this.containerEl.createDiv({cls:"setting-item-description"});Oi(this.description,t.createEl("p",{cls:"custom-row-description"}),this.parentComponent),this.warning!=null&&this.warning.trim()!=""&&t.createEl("p",{text:this.warning,cls:"mod-warning"}),new Fp.Setting(this.containerEl).addButton(i=>{i.setButtonText(this.addInputBtnText).setCta().onClick(()=>this.onAddInput())}),this.inputElDiv=this.containerEl.createDiv(),this.showInputEls()}resetInputEls(){this.inputElDiv.empty(),this.showInputEls()}};var nm=require("obsidian");var fe="top",Le="bottom",Ae="right",ve="left",Bs="auto",lt=[fe,Le,Ae,ve],Pi="start",qt="end",Rp="clippingParents",Fs="viewport",En="popper",Dp="reference",Gl=lt.reduce(function(e,t){return e.concat([t+"-"+Pi,t+"-"+qt])},[]),Rs=[].concat(lt,[Bs]).reduce(function(e,t){return e.concat([t,t+"-"+Pi,t+"-"+qt])},[]),Kb="beforeRead",_b="read",Nb="afterRead",jb="beforeMain",Yb="main",Pb="afterMain",Hb="beforeWrite",Ub="write",Wb="afterWrite",Kp=[Kb,_b,Nb,jb,Yb,Pb,Hb,Ub,Wb];function Ie(e){return e?(e.nodeName||"").toLowerCase():null}function ue(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ui(e){var t=ue(e).Element;return e instanceof t||e instanceof Element}function Te(e){var t=ue(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Cn(e){if(typeof ShadowRoot>"u")return!1;var t=ue(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Vb(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var n=t.styles[i]||{},r=t.attributes[i]||{},a=t.elements[i];!Te(a)||!Ie(a)||(Object.assign(a.style,n),Object.keys(r).forEach(function(s){var o=r[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function $b(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:i[n]),o=s.reduce(function(l,c){return l[c]="",l},{});!Te(r)||!Ie(r)||(Object.assign(r.style,o),Object.keys(a).forEach(function(l){r.removeAttribute(l)}))})}}var _p={name:"applyStyles",enabled:!0,phase:"write",fn:Vb,effect:$b,requires:["computeStyles"]};function Be(e){return e.split("-")[0]}var xi=Math.max,It=Math.min,Hi=Math.round;function On(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function kr(){return!/^((?!chrome|android).)*safari/i.test(On())}function pi(e,t,i){t===void 0&&(t=!1),i===void 0&&(i=!1);var n=e.getBoundingClientRect(),r=1,a=1;t&&Te(e)&&(r=e.offsetWidth>0&&Hi(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Hi(n.height)/e.offsetHeight||1);var s=ui(e)?ue(e):window,o=s.visualViewport,l=!kr()&&i,c=(n.left+(l&&o?o.offsetLeft:0))/r,d=(n.top+(l&&o?o.offsetTop:0))/a,u=n.width/r,m=n.height/a;return{width:u,height:m,top:d,right:c+u,bottom:d+m,left:c,x:c,y:d}}function Bt(e){var t=pi(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function zr(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Cn(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ze(e){return ue(e).getComputedStyle(e)}function Ql(e){return["table","td","th"].indexOf(Ie(e))>=0}function Re(e){return((ui(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ui(e){return Ie(e)==="html"?e:e.assignedSlot||e.parentNode||(Cn(e)?e.host:null)||Re(e)}function Np(e){return!Te(e)||Ze(e).position==="fixed"?null:e.offsetParent}function Gb(e){var t=/firefox/i.test(On()),i=/Trident/i.test(On());if(i&&Te(e)){var n=Ze(e);if(n.position==="fixed")return null}var r=Ui(e);for(Cn(r)&&(r=r.host);Te(r)&&["html","body"].indexOf(Ie(r))<0;){var a=Ze(r);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","per Line truncated
---`)},wikiLink:{replaceAction:Cs,placeholder:"{WIKI_LINK_PLACEHOLDER}"},obsidianMultiLineComments:{replaceAction:vp,placeholder:"{OBSIDIAN_COMMENT_PLACEHOLDER}"},footnoteAtStartOfLine:{replaceAction:Es,placeholder:"{FOOTNOTE_AT_START_OF_LINE_PLACEHOLDER}"},footnoteAfterATask:{replaceAction:/- \[.] (\[\^\w+\]) ?([,.;!:?])/gm,placeholder:"{FOOTNOTE_AFTER_A_TASK_PLACEHOLDER}"},url:{replaceAction:Ct,placeholder:"{URL_PLACEHOLDER}"},anchorTag:{replaceAction:wp,placeholder:"{ANCHOR_PLACEHOLDER}"},templaterCommand:{replaceAction:Lp,placeholder:"{TEMPLATER_PLACEHOLDER}"},link:{replaceAction:xv,placeholder:"{REGULAR_LINK_PLACEHOLDER}"},tag:{replaceAction:wv,placeholder:"#tag-placeholder"},table:{replaceAction:kv,placeholder:"{TABLE_PLACEHOLDER}"},customIgnore:{replaceAction:zv,placeholder:"{CUSTOM_IGNORE_PLACEHOLDER}"}};function Ee(e,t,i){let n=[];for(let r of e){let a;if(typeof r.replaceAction=="string")a=bv(t,r.placeholder,r.replaceAction);else if(r.replaceAction instanceof RegExp)a=vv(t,r.placeholder,r.replaceAction);else if(typeof r.replaceAction=="function"){let s=r.replaceAction;a=s(t,r.placeholder)}t=a.newText,n.push({replacedValues:a.replacedValues,placeholder:r.placeholder})}return t=i(t),n=n.reverse(),n!=null&&n.length>0&&n.forEach(r=>{r.replacedValues.forEach(a=>{t=t.replace(new RegExp(r.placeholder,"i"),Qe(a))})}),t}function bv(e,t,i){let n=ye(i,e),r=[];for(let a of n){let s=e.substring(a.start.offset,a.end.offset);r.push(s),e=le(e,a.start.offset,a.end.offset,t)}return r.reverse(),{newText:e,replacedValues:r}}function vv(e,t,i){let n=e.match(i),r=[];if(i.flags.includes("g")){if(e=e.replaceAll(i,t),n)for(let a of n)r.push(a)}else e=e.replace(i,t),n&&r.push(n[0]);return{newText:e,replacedValues:r}}function xv(e,t){let i=ye("link",e),n=[];for(let r of i){if(r==null)continue;let a=e.substring(r.start.offset,r.end.offset);a.match(yr)&&(n.push(a),e=le(e,r.start.offset,r.end.offset,t))}return n.reverse(),{newText:e,replacedValues:n}}function wv(e,t){let i=[];return e=e.replace(br,(n,r,a)=>(i.push(a),r+t)),{newText:e,replacedValues:i}}function kv(e,t){let i=wn(e),n=new Array(i.length),r=0,a=n.length;for(let s of i)n[a-1-r++]=e.substring(s.startIndex,s.endIndex),e=le(e,s.startIndex,s.endIndex,t);return{newText:e,replacedValues:n}}function zv(e,t){let i=dp(e),n=new Array(i.length),r=0,a=n.length;for(let s of i)n[a-1-r++]=e.substring(s.startIndex,s.endIndex),e=le(e,s.startIndex,s.endIndex,t);return{newText:e,replacedValues:n}}var R=(s=>(s.YAML="YAML",s.HEADING="Heading",s.FOOTNOTE="Footnote",s.CONTENT="Content",s.SPACING="Spacing",s.PASTE="Paste",s))(R||{}),Vs=class{constructor(t,i,n,r,a,s,o=[],l=!1,c=[]){this.nameKey=t;this.descriptionKey=i;this.settingsKey=n;this.alias=r;this.type=a;this.applyAfterIgnore=s;this.options=o;this.hasSpecialExecutionOrder=l;this.ignoreTypes=c;this.ruleHeading=this.getName().toLowerCase().replaceAll(" ","-"),o.unshift(new Bn("enabled",this.descriptionKey,"",!1));for(let d of o)d.ruleAlias=r}getDefaultOptions(){let t={};for(let i of this.options)t[i.configKey]=i.defaultValue;return t}getOptions(t){return t.ruleConfigs[this.settingsKey]}getName(){return A(this.nameKey)}getDescription(){return A(this.descriptionKey)}getURL(){return"https://platers.github.io/obsidian-linter/settings/"+this.type.toLowerCase()+"-rules/#"+this.ruleHeading}enabledOptionName(){return this.options[0].configKey}apply(t,i){return Ee(this.ignoreTypes,t,n=>this.applyAfterIgnore(n,i))}};var om=Object.values(R);function $s(e){let t=Ln(e);if(t===null)return[[],!1];let i=Ip(t);return i.includes("all")?[qi.map(n=>n.alias),!0]:[i,!1]}var qi=[],Av={},Nt=new Map;function lm(e){qi.push(e),qi.sort((t,i)=>om.indexOf(t.type)-om.indexOf(i.type)||t.settingsKey.localeCompare(i.settingsKey)),Av[e.alias]=e,Nt.has(e.type)?Nt.get(e.type).push(e):Nt.set(e.type,[e])}function Gs(e,t){let i;throw e instanceof Md?(i=e.toString(),i=A("logs.wrapper-yaml-error").replace("{ERROR_MESSAGE}",i.substring(i.indexOf(":")+1))):i=A("logs.wrapper-unknown-error").replace("{ERROR_MESSAGE}",e.message),new Rn(`"${t}" encountered an ${i}`,e)}var vt=gn(cm());function Sv(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var r=n.reduce(function(o,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?o.concat(c.map(function(d){var u,m;return(m=(u=d.match(/[\t ]/g))===null||u===void 0?void 0:u.length)!==null&&m!==void 0?m:0})):o},[]);if(r.length){var a=new RegExp(`
[ ]{`+Math.min.apply(Math,r)+"}","g");n=n.map(function(o){return o.replace(a,`
`)})}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return t.forEach(function(o,l){var c=s.match(/(?:^|\n)( *)$/),d=c?c[1]:"",u=o;typeof o=="string"&&o.includes(`
`)&&(u=String(o).split(`
`).map(function(m,p){return p===0?m:""+d+m}).join(`
`)),s+=u+n[l+1]}),s}var dm=Sv;var Ro=require("obsidian");var Kn,Or,pt,Je=class Je{static getRule(){if(!_(Je,Kn).has(this.name)){let t=new this,i=new Vs(t.nameKey,t.descriptionKey,t.settingsKey,t.alias,t.type,t.safeApply.bind(t),t.optionBuilders.map(n=>n.option),t.hasSpecialExecutionOrder,t.ignoreTypes);_(Je,Kn).set(this.name,i),_(Je,Or).set(t.alias,t)}return _(Je,Kn).get(this.name)}static applyIfEnabledBase(t,i,n,r){let a=t.getOptions(n);if(a[t.enabledOptionName()]){zt(t.alias);let s=Object.assign({},a,r);ii(`${A("logs.run-rule-text")} ${t.getName()}`);try{let o=t.apply(i,s);return Ji(t.alias),ii(o),[o,!0]}catch(o){Ji(t.alias),Gs(o,t.getName())}}else return[i,!1]}static getBuilderByName(t){return _(Je,Or).get(t)}static setNoSettingControl(t,i){_(Je,pt).has(t)||_(Je,pt).set(t,[]),_(Je,pt).get(t).push(i)}static hasSettingControl(t,i){return!_(Je,pt).has(t)||!_(Je,pt).get(t).includes(i)}};Kn=new WeakMap,Or=new WeakMap,pt=new WeakMap,ke(Je,Kn,new Map),ke(Je,Or,new Map),ke(Je,pt,new Map);var mt=Je,y=class extends mt{constructor(t){super(),this.alias=t.nameKey.replace(/rules\.(.*)\.name/,"$1"),this.settingsKey=t.nameKey.replace(/rules\.(.*)\.name/,"$1"),this.nameKey=t.nameKey,this.descriptionKey=t.descriptionKey,this.type=t.type,this.hasSpecialExecutionOrder=t.hasSpecialExecutionOrder??!1,t.ruleIgnoreTypes?this.ignoreTypes=[h.customIgnore,...t.ruleIgnoreTypes]:this.ignoreTypes=[h.customIgnore]}static register(t){let i=t.getRule();lm(i)}safeApply(t,i){return this.apply(t,this.buildRuleOptions(i))}buildRuleOptions(t){t=t??{};let i=new this.OptionsClass,n=Object.assign(i,t);for(let r of this.optionBuilders)r.setRuleOption(n,t);return n}static applyIfEnabled(t,i,n,r){let a=this.getRule();return n.includes(a.alias)?(ii(a.alias+" "+A("logs.disabled-text")),[t,!1]):mt.applyIfEnabledBase(a,t,i,r)}static getRuleOptions(t){let i=mt.getRule.bind(this)(),n=new this,r=i.getOptions(t);return n.buildRuleOptions(r)}static noSettingControl(){return(t,i)=>{let n=t.constructor.name;mt.setNoSettingControl(n,i)}}};var _n,Wi=class{constructor(t){ke(this,_n,void 0);this.OptionsClass=t.OptionsClass;let i=t.nameKey.split(".");i.length==1?this.configKey=i[0]:this.configKey=i[i.length-2],this.nameKey=t.nameKey,this.descriptionKey=t.descriptionKey,this.optionsKey=t.optionsKey}get defaultValue(){return new this.OptionsClass()[this.optionsKey]}get option(){return _(this,_n)||Me(this,_n,this.buildOption()),_(this,_n)}setRuleOption(t,i){let n=i[this.configKey];n!==void 0&&(t[this.optionsKey]=n)}};_n=new WeakMap;var H=class extends Wi{buildOption(){return new Bn(this.configKey,this.nameKey,this.descriptionKey,this.defaultValue)}},Qs=class extends Wi{buildOption(){return new Cr(this.configKey,this.nameKey,this.descriptionKey,this.defaultValue)}},ee=class extends Wi{constructor(t){super(t),this.records=t.records.map(i=>new Hs("enums."+i.value,i.description))}buildOption(){return new Us(this.configKey,this.nameKey,this.descriptionKey,this.defaultValue,this.records)}},pe=class extends Wi{constructor(t){super(t),this.separator=t.separator??`
`,this.splitter=t.splitter??/\n/}buildOption(){return new Ys(this.configKey,this.nameKey,this.descriptionKey,this.defaultValue.join(this.separator))}setRuleOption(t,i){if(i[this.configKey]!==void 0){let n=i[this.configKey].split(this.splitter).filter(function(r){return r!=""});t[this.optionsKey]=n}}},xe=class extends Wi{buildOption(){return new Cr(this.configKey,this.nameKey,this.descriptionKey,this.defaultValue)}},Zs=class extends Wi{buildOption(){return new Ps(this.configKey,this.nameKey,this.descriptionKey,this.defaultValue)}},Js=class extends Wi{buildOption(){return new Ws(this.configKey,this.nameKey,this.descriptionKey)}};var dc=class{},Mr=class extends y{constructor(){super({nameKey:"rules.add-blank-line-after-yaml.name",descriptionKey:"rules.add-blank-line-after-yaml.description",type:"YAML"})}get OptionsClass(){return dc}apply(t,i){let n=t.match(Ge);if(n===null)return t;let r=n[0],a=t.indexOf(r)+r.length;return a+1>=t.length||t.trimEnd()===r.trimEnd()||t.charAt(a+1)===`
`?t:t.replace(r,r+`
`)}get optionBuilders(){return[]}};Mr=z([y.register],Mr);var uc=new Map([["1nd","1st"],["2rd","2nd"],["2st","2nd"],["3nd","3rd"],["3st","3rd"],["4rd","4th"],["a-diaerers","a-diaereses"],["aaccess","access"],["aaccessibility","accessibility"],["aaccession","accession"],["aack","ack"],["aactual","actual"],["aactually","actually"],["aadd","add"],["aagain","again"],["aaggregation","aggregation"],["aanother","another"],["aapply","apply"],["aaproximate","approximate"],["aaproximated","approximated"],["aaproximately","approximately"],["aaproximates","approximates"],["aaproximating","approximating"],["aare","are"],["aassign","assign"],["aassignment","assignment"],["aassignments","assignments"],["aassociated","associated"],["aassumed","assumed"],["aautomatic","automatic"],["aautomatically","automatically"],["abailable","available"],["abanden","abandon"],["abandonded","abandoned"],["abandone","abandon"],["abandonned","abandoned"],["abandonning","abandoning"],["abbbreviated","abbreviated"],["abberation","aberration"],["abberations","aberrations"],["abberivates","abbreviates"],["abberration","aberration"],["abborted","aborted"],["abborting","aborting"],["abbrevate","abbreviate"],["abbrevation","abbreviation"],["abbrevations","abbreviations"],["abbreviaton","abbreviation"],["abbreviatons","abbreviations"],["abbriviate","abbreviate"],["abbriviation","abbreviation"],["abbriviations","abbreviations"],["aberation","aberration"],["abigious","ambiguous"],["abiguity","ambiguity"],["abilityes","abilities"],["abilties","abilities"],["abilty","ability"],["abiss","abyss"],["abitrarily","arbitrarily"],["abitrary","arbitrary"],["abitrate","arbitrate"],["abitration","arbitration"],["abizmal","abysmal"],["abnoramlly","abnormally"],["abnormalty","abnormally"],["abnormaly","abnormally"],["abnornally","abnormally"],["abnove","above"],["abnrormal","abnormal"],["aboluste","absolute"],["abolustely","absolutely"],["abolute","absolute"],["abondon","abandon"],["abondoned","abandoned"],["abondoning","abandoning"],["abondons","abandons"],["aboout","about"],["aborigene","aborigine"],["abortificant","abortifacient"],["aboslute","absolute"],["aboslutely","absolutely"],["abosulte","absolute"],["abosultely","absolutely"],["abosulute","absolute"],["abosulutely","absolutely"],["abotu","about"],["abount","about"],["aboutit","about it"],["aboutthe","about the"],["abouve","above"],["abov","above"],["aboved","above"],["abovemtioned","abovementioned"],["aboves","above"],["abovmentioned","abovementioned"],["abreviate","abbreviate"],["abreviated","abbreviated"],["abreviates","abbreviates"],["abreviating","abbreviating"],["abreviation","abbreviation"],["abreviations","abbreviations"],["abritrarily","arbitrarily"],["abritrary","arbitrary"],["abriviate","abbreviate"],["absail","abseil"],["absailing","abseiling"],["absance","absence"],["abscence","absence"],["abscound","abscond"],["abselutely","absolutely"],["abselutly","absolutely"],["absense","absence"],["absodefly","absolute"],["absodeflyly","absolutely"],["absolate","absolute"],["absolately","absolutely"],["absolaute","absolute"],["absolautely","absolutely"],["absoleted","obsoleted"],["absoletely","absolutely"],["absoliute","absolute"],["absoliutely","absolutely"],["absoloute","absolute"],["absoloutely","absolutely"],["absolte","absolute"],["absoltely","absolutely"],["absoltue","absolute"],["absoltuely","absolutely"],["absoluate","absolute"],["absoluately","absolutely"],["absolue","absolute"],["absoluely","absolutely"],["absoluet","absolute"],["absoluetly","absolutely"],["absolule","absolute"],["absolulte","absolute"],["absolultely","absolutely"],["absolune","absolute"],["absolunely","absolutely"],["absolure","absolute"],["absolurely","absolutely"],["absolut","absolute"],["absolutelly","absolutely"],["absoluth","absolute"],["absoluthe","absolute"],["absoluthely","absolutely"],["absoluthly","absolutely"],["absolutley","absolutely"],["absolutly","absolutely"],["absolutlye","absolutely"],["absoluute","absolute"],["absoluutely","absolutely"],["absoluve","absolute"],["absoluvely","absolutely"],["absoolute","absolute"],["absoolutely","absolutely"],["absorbant","absorbent"],["absorbsion","absorption"],["absorbtion","absorption"],["absorve","absorb"],["absould","absolute"],["absouldly","absolutely"],["absoule","absolute"],["absoulely","absolutely"],["absouletely","absolutely"],["absoult","absolute"],["absoulte","absolute"],["absoultely","absolutely"],["absoultly","absolutely"],["absoulute","absolute"],["absoulutely","absolutely"],["absout","absolute"],["absoute","absolute"],["absoutely","absolutely"],["absoutly","absolutely"],["abstact","abstract"],["abstacted","abstracted"],["abstacter","abstracter"],["abstacting","abstracting"],["abstaction","abstraction"],["abstactions","abstractions"],["abstactly","abstractly"],["abstactness","abstractness"],["abstactor","abstractor"],["abstacts","abstracts"],["abstanence","abstinence"],["abstrac","abstract"],["abstraced","abstracted"],["abstracer","abstracter"],["abstracing","a Line truncated
`,n),r===-1&&(r=l.length-1,c=!0),[a,o]=xn(l,r-1);let d=o+a.length+1,u=r;c&&u++;let m=l.substring(d,u);if(m.includes(h.math.placeholder)||m.includes(h.code.placeholder)){n++;continue}let p=Ts.test(m);s=i(a,p),o++,l=le(l,o,o+a.length,s),n=r+1+s.length-a.length}while(!c);return l}get optionBuilders(){return[new ee({OptionsClass:Xs,nameKey:"rules.blockquote-style.style.name",descriptionKey:"rules.blockquote-style.style.description",optionsKey:"style",records:[{value:"space",description:"> indicator is followed by a space"},{value:"no space",description:">indicator is not followed by a space"}]})]}};jt=z([y.register],jt);var eo=class{};z([y.noSettingControl()],eo.prototype,"lineContent",2);var Yt=class extends y{constructor(){super({nameKey:"rules.add-blockquote-indentation-on-paste.name",descriptionKey:"rules.add-blockquote-indentation-on-paste.description",type:"Paste"})}get OptionsClass(){return eo}apply(t,i){let n=/^(\s*)((> ?)+) .*/,r=i.lineContent.match(n);if(!r)return t;let a=r[1]??"",s=r[2]??"";return t.trim().replace(/\n/gm,`
${a}${s} `)}get optionBuilders(){return[]}};Yt=z([y.register],Yt);var Pt=class{constructor(){this.style="Title Case";this.ignoreWords=["macOS","iOS","iPhone","iPad","JavaScript","TypeScript","AppleScript","I"];this.lowercaseWords=["a","an","the","aboard","about","abt.","above","abreast","absent","across","after","against","along","aloft","alongside","amid","amidst","mid","midst","among","amongst","anti","apropos","around","round","as","aslant","astride","at","atop","ontop","bar","barring","before","B4","behind","below","beneath","neath","beside","besides","between","'tween","beyond","but","by","chez","circa","c.","ca.","come","concerning","contra","counting","cum","despite","spite","down","during","effective","ere","except","excepting","excluding","failing","following","for","from","in","including","inside","into","less","like","minus","modulo","mod","near","nearer","nearest","next","notwithstanding","of","o'","off","offshore","on","onto","opposite","out","outside","over","o'er","pace","past","pending","per","plus","post","pre","pro","qua","re","regarding","respecting","sans","save","saving","short","since","sub","than","through","thru","throughout","thruout","till","times","to","t'","touching","toward","towards","under","underneath","unlike","until","unto","up","upon","versus","vs.","v.","via","vice","vis-\xE0-vis","wanting","with","w/","w.","c\u0304","within","w/i","without","'thout","w/o","abroad","adrift","aft","afterward","afterwards","ahead","apart","ashore","aside","away","back","backward","backwards","beforehand","downhill","downstage","downstairs","downstream","downward","downwards","downwind","east","eastward","eastwards","forth","forward","forwards","heavenward","heavenwards","hence","henceforth","here","hereby","herein","hereof","hereto","herewith","home","homeward","homewards","indoors","inward","inwards","leftward","leftwards","north","northeast","northward","northwards","northwest","now","onward","onwards","outdoors","outward","outwards","overboard","overhead","overland","overseas","rightward","rightwards","seaward","seawards","skywards","skyward","south","southeast","southwards","southward","southwest","then","thence","thenceforth","there","thereby","therein","thereof","thereto","therewith","together","underfoot","underground","uphill","upstage","upstairs","upstream","upward","upwards","upwind","west","westward","westwards","when","whence","where","whereby","wherein","whereto","wherewith","although","because","considering","given","granted","if","lest","once","provided","providing","seeing","so","supposing","though","unless","whenever","whereas","wherever","while","whilst","ago","according to","as regards","counter to","instead of","owing to","pertaining to","at the behest of","at the expense of","at the hands of","at risk of","at the risk of","at variance with","by dint of","by means of","by virtue of","by way of","for the sake of","for sake of","for lack of","for want of","from want of","in accordance with","in addition to","in case of","in charge of","in compliance with","in conformity with","in contact with","in exchange for","in favor of","in front of","in lieu of","in light of","in the light of","in line with","in place of","in point of","in quest of","in relation to","in regard to","with regard to","in respect to","with respect to","in return for","in search of","in step with","in touch with","in terms of","in the name of","in view of","on account of","on behalf of","on grounds of","on the grounds of","on the part of","on top of","with a view to","with the exception of","\xE0 la","a la","as soon as","as well as","close to","due to","far from","in case","other than","prior to","pursuant to","regardless of","subsequent to","as long as","as much as","as far as","by the time","in as much as","inasmuch","in order to","in order that","even","provide that","if only","whether","whose","whoever","why","how","or not","whatever","what","both","and","or","not only","but also","either","neither","nor","just","rather","no sooner","such","that","yet","is","it"];this.ignoreCasedWords=!0}},Ht=class extends y{constructor(){super({nameKey:"rules.capitalize-headings.name",descriptionKey:"rules.capitalize-headings.description",type:"Heading",hasSpecialExecutionOrder:!0,ruleIgnoreTypes:[h.code,h.inlineCode,h.yaml,h.link,h.wikiLink,h.tag]})}get OptionsClass(){return Pt}apply(t,i){return t.replace(rt,n=>{if(i.style==="ALL CAPS")return n.toUpperCase();let r=i.style==="First letter",a=n.match(/\S+/g),s=i.ignoreWords,o=i.lowercaseWords,l=!0;for(let c=1;c<a.length;c++){if(!a[c].match(/^[\p{L}'-]{1,}[.?!,:;\d]*$/u)||a[c]==="-"||a[c]==="'")continue;if(i.ignoreCasedWords&&a[c]!==a[c].toLowerCase()||s.includes(a[c])||(a[c]=a[c].toLowerCase(),(!o.includes(a[c])&&!r||l===!0)&&(a[c]=a[c][0].toUpperCase()+a[c].slice(1))),l=!1,i.ignoreCasedWords&&r)break}return a.join(" ")})}get optionBuilders(){return[new ee({OptionsClass:Pt,nameKey:"rules.capitalize-headings.style.name",descriptionKey:"rules.capitalize-headings.style. Line truncated
`),n=n.replace(/\n+---/,`
---`),i.innerNewLines&&(n=n.replaceAll(/\n{2,}/g,`
`)),n))}get optionBuilders(){return[new H({OptionsClass:io,nameKey:"rules.compact-yaml.inner-new-lines.name",descriptionKey:"rules.compact-yaml.inner-new-lines.description",optionsKey:"innerNewLines"})]}};Br=z([y.register],Br);var pc=class{},Fr=class extends y{constructor(){super({nameKey:"rules.consecutive-blank-lines.name",descriptionKey:"rules.consecutive-blank-lines.description",type:"Spacing",ruleIgnoreTypes:[h.code,h.math,h.yaml,h.link,h.wikiLink,h.tag]})}get OptionsClass(){return pc}apply(t,i){return t.replace(/(\n([\t\v\f\r \u00a0\u2000-\u200b\u2028-\u2029\u3000]+)?){2,}\n/g,`
`)}get optionBuilders(){return[]}};Fr=z([y.register],Fr);var mc=class{},Rr=class extends y{constructor(){super({nameKey:"rules.convert-bullet-list-markers.name",descriptionKey:"rules.convert-bullet-list-markers.description",type:"Content",ruleIgnoreTypes:[h.code,h.math,h.yaml,h.link,h.wikiLink,h.tag]})}get OptionsClass(){return mc}apply(t,i){return t.replace(/^([^\S\n]*)([•§])([^\S\n]*)/gm,"$1-$3")}get optionBuilders(){return[]}};Rr=z([y.register],Rr);var to=class{constructor(){this.tabsize=4}},Dr=class extends y{constructor(){super({nameKey:"rules.convert-spaces-to-tabs.name",descriptionKey:"rules.convert-spaces-to-tabs.description",type:"Spacing",ruleIgnoreTypes:[h.code,h.math,h.yaml,h.link,h.wikiLink,h.tag]})}get OptionsClass(){return to}apply(t,i){let n=String(i.tabsize),r=new RegExp("^( *) {"+n+"}","gm");t=this.replaceAllRegexMatches(t,r);let a=new RegExp("^((>( | *))*(>( | )) *) {"+n+"}","gm");return t=this.replaceAllRegexMatches(t,a),t}replaceAllRegexMatches(t,i){for(;t.match(i)!=null;)t=t.replace(i,"$1 ");return t}get optionBuilders(){return[new Qs({OptionsClass:to,nameKey:"rules.convert-spaces-to-tabs.tabsize.name",descriptionKey:"rules.convert-spaces-to-tabs.tabsize.description",optionsKey:"tabsize"})]}};Dr=z([y.register],Dr);var zi=class{constructor(){this.aliasArrayStyle="single-line";this.dedupeAliasKey=!0;this.tagArrayStyle="single-line";this.dedupeTagKey=!0;this.dedupeArrayKeys=!0;this.ignoreDedupeArrayKeys=[];this.defaultEscapeCharacter='"';this.removeUnnecessaryEscapeCharsForMultiLineArrays=!1}};z([y.noSettingControl()],zi.prototype,"aliasArrayStyle",2),z([y.noSettingControl()],zi.prototype,"tagArrayStyle",2),z([y.noSettingControl()],zi.prototype,"defaultEscapeCharacter",2),z([y.noSettingControl()],zi.prototype,"removeUnnecessaryEscapeCharsForMultiLineArrays",2);var Kr=class extends y{constructor(){super({nameKey:"rules.dedupe-yaml-array-values.name",descriptionKey:"rules.dedupe-yaml-array-values.description",type:"YAML"})}get OptionsClass(){return zi}apply(t,i){return he(t,n=>{let r=ri(n.replace(`---
`,"").replace(`
---`,""));if(!r)return n;for(let a of bi)if(i.dedupeAliasKey&&Object.keys(r).includes(a)){n=ae(n,a,be(ot(this.getUniqueArray(qe(de(n,a)))),i.aliasArrayStyle,i.defaultEscapeCharacter,i.removeUnnecessaryEscapeCharsForMultiLineArrays,!0));break}for(let a of yi)if(i.dedupeTagKey&&Object.keys(r).includes(a)){n=ae(n,a,be(st(this.getUniqueArray(qe(de(n,a)))),i.tagArrayStyle,i.defaultEscapeCharacter,i.removeUnnecessaryEscapeCharsForMultiLineArrays));break}if(i.dedupeArrayKeys){let a=[...bi,...yi,...i.ignoreDedupeArrayKeys];for(let s of Object.keys(r)){if(a.includes(s)||!Array.isArray(r[s])||r[s].length!==0&&typeof r[s][0]=="object"&&r[s][0]!==null)continue;let o=de(n,s),l="single-line";o.includes(`
`)&&(l="multi-line");let c=this.getUniqueArray(qe(o));n=ae(n,s,be(c,l,i.defaultEscapeCharacter,i.removeUnnecessaryEscapeCharsForMultiLineArrays))}}return n})}getUniqueArray(t){return t==null||typeof t=="string"||t.length<=1?t:[...new Set(t)]}get optionBuilders(){return[new H({OptionsClass:zi,nameKey:"rules.dedupe-yaml-array-values.dedupe-alias-key.name",descriptionKey:"rules.dedupe-yaml-array-values.dedupe-alias-key.description",optionsKey:"dedupeAliasKey"}),new H({OptionsClass:zi,nameKey:"rules.dedupe-yaml-array-values.dedupe-tag-key.name",descriptionKey:"rules.dedupe-yaml-array-values.dedupe-tag-key.description",optionsKey:"dedupeTagKey"}),new H({OptionsClass:zi,nameKey:"rules.dedupe-yaml-array-values.dedupe-array-keys.name",descriptionKey:"rules.dedupe-yaml-array-values.dedupe-array-keys.description",optionsKey:"dedupeArrayKeys"}),new pe({OptionsClass:zi,nameKey:"rules.dedupe-yaml-array-values.ignore-keys.name",descriptionKey:"rules.dedupe-yaml-array-values.ignore-keys.description",optionsKey:"ignoreDedupeArrayKeys"})]}};Kr=z([y.register],Kr);var no=class{constructor(){this.defaultLanguage=""}},_r=class extends y{constructor(){super({nameKey:"rules.default-language-for-code-fences.name",descriptionKey:"rules.default-language-for-code-fences.description",type:"Content",ruleIgnoreTypes:[h.yaml,h.math,h.yaml,h.link,h.wikiLink,h.tag]})}get OptionsClass(){return no}apply(t,i){return up(t,i.defaultLanguage)}get optionBuilders(){return[new xe({OptionsClass:no,nameKey:"rules.default-language-for-code-fences.default-language.name",descriptionKey:"rules.default-language-for-code-fences.default-language.description",optionsKey:"defaultLanguage"})]}};_r=z([y.register],_r);var ro=class{constructor(){this.style="consistent"}},Nr=class extends y{constructor(){super({nameKey:"rules.emphasis-style.name",descriptionKey:"rules.emphasis-style.description",type:"Content",ruleIgnoreTypes:[h.code,h.math,h.yaml,h.link,h.wikiLink,h.tag,h.math,h.inlineMath]})}get OptionsClass(){return ro}apply(t,i){return Ss(t,i.style,"emphasis")}get optionBuilders(){return[new ee({OptionsClass:ro,nameKey:"rules.emphasis-style.style.name",descriptionKey:"rules.emphasis-style.style.description",optionsKey:"style",records:[{value:"consistent",description:"Makes sure the first instance of emphasis is the style that will be used throughout the document"},{value:"asterisk",description:"Makes sure * is the emphasis indicator"},{value:"underscore",description:"Makes sure _ is the emphasis indicator"}]})]}};Nr=z([y.register],Nr);var gc=class{},jr=class extends y{constructor(){super({nameKey:"rules.empty-line-around-blockquotes.name",descriptionKey:"rules.empty-line-around-blockquotes.description",type:"Spacing"})}get OptionsClass(){return gc}apply(t,i){return sp(t)}get optionBuilders(){return[]}};jr=z([y.register],jr);var hc=class{},Yr=class extends y{constructor(){super({nameKey:"rules.empty-line-around-code-fences.name",descriptionKey:"rules.empty-line-around-code-fences.description",type:"Spacing"})}get OptionsClass(){return hc}apply(t,i){return rp(t)}get optionBuilders(){return[]}};Yr=z([y.register],Yr);var ao=class{constructor(){this.minimumNumberOfDollarSignsToBeAMathBlock=2}};z([y.noSettingControl()],ao.prototype,"minimumNumberOfDollarSignsToBeAMathBlock",2);var Pr=class extends y{constructor(){super({nameKey:"rules.empty-line-around-math-blocks.name",descriptionKey:"rules.empty-line-around-math-blocks.description",type:"Spacing",ruleIgnoreTypes:[h.yaml,h.code]})}get OptionsClass(){return ao}apply(t,i){return ap(t,i.minimumNumberOfDollarSignsToBeAMathBlock)}get optionBuilders(){return[]}};Pr=z([y.register],Pr);var fc=class{},Hr=class extends y{constructor(){super({nameKey:"rules.empty-line-around-tables.name",descriptionKey:"rules.empty-line-around-tables.description",type:"Spacing",ruleIgnoreTypes:[h.yaml,h.code,h.math,h.inlineMath,h.wikiLink,h.link]})}get OptionsClass(){return fc}apply(t,i){return Cp(t)}get optionBuilders(){return[]}};Hr=z([y.register],Hr);var Ur=class{constructor(){this.defaultEscapeCharacter='"';this.tryToEscapeSingleLineArrays=!1}};z([y.noSettingControl()],Ur.prototype,"defaultEscapeCharacter",2);var Ut=class extends y{constructor(){super({nameKey:"rules.escape-yaml-special-characters.name",descriptionKey:"rules.escape-yaml-special-characters.description",type:"YAML",hasSpecialExecutionOrder:!0})}get OptionsClass(){return Ur}apply(t,i){return he(t,n=>{let r=n.split(`
`),a=r.length;if(a<1)return n;for(let s=0;s<a;s++){let o=r[s].trim(),l=o.indexOf(":"),c=l<0||l+1>=o.length,d=o.startsWith("-"),u=d&&o.length<2;if(c&&u)continue;let m=1;if(!d)m+=l;else if(l!==-1&&s+1<a){let g=r[s],b=g.indexOf("-")+1;for(;b<g.length&&g.charAt(b)===" ";)b++;let f=0,x=r[s+1];for(;f<x.length&&x.charAt(f)===" ";)f++;b<=f&&(m+=l)}let p=o.substring(m).trim();if(p.startsWith("[")){if(i.tryToEscapeSingleLineArrays){if(p.length<3)continue;let g=p.substring(1,p.length-1).split(","),b=g.length;for(let f=0;f<b;f++){let x=g[f].trim();x.startsWith("[")&&(x=x.substring(1).trimStart()),x.endsWith("]")&&(x=x.substring(0,x.length-1).trimEnd()),g[f]=g[f].replace(x,vi(x,i.defaultEscapeCharacter,!1,!0))}r[s]=r[s].replace(p,"["+g.join(",")+"]")}continue}r[s]=r[s].replace(p,vi(p,i.defaultEscapeCharacter,!1,!0))}return r.join(`
`)})}get optionBuilders(){return[new H({OptionsClass:Ur,nameKey:"rules.escape-yaml-special-characters.try-to-escape-single-line-arrays.name",descriptionKey:"rules.escape-yaml-special-characters.try-to-escape-single-line-arrays.description",optionsKey:"tryToEscapeSingleLineArrays"})]}};Ut=z([y.register],Ut);var so=class{};z([y.noSettingControl()],so.prototype,"fileName",2);var Wr=class extends y{constructor(){super({nameKey:"rules.file-name-heading.name",descriptionKey:"rules.file-name-heading.description",type:"Heading",ruleIgnoreTypes:[h.code,h.math,h.yaml,h.link,h.wikiLink,h.tag]})}get OptionsClass(){return so}apply(t,i){if(t.match(/^#\s.*/m))return t;let r=i.fileName,a=t.indexOf(`
---`);a=a==-1||!t.startsWith(`---
`)?0:a+5;let s=`# ${r}
`;return t.length<a&&(s=`
`+s),At(t,a,s)}get optionBuilders(){return[]}};Wr=z([y.register],Wr);var yc=class{},Vr=class extends y{constructor(){super({nameKey:"rules.footnote-after-punctuation.name",descriptionKey:"rules.footnote-after-punctuation.description",type:"Footnote",ruleIgnoreTypes:[h.code,h.inlineCode,h.math,h.yaml,h.link,h.wikiLink,h.tag,h.footnoteAtStartOfLine,h.footnoteAfterATask]})}get OptionsClass(){return yc}apply(t,i){return t.replace(/(\[\^[^\]]+\]) ?([,.;!:?])/gm,"$2$1")}get optionBuilders(){return[]}};Vr=z([y.register],Vr);var $r=class{constructor(){this.defaultEscapeCharacter='"';this.forceYamlEscape=[]}};z([y.noSettingControl()],$r.prototype,"defaultEscapeCharacter",2);var Wt=class extends y{constructor(){super({nameKey:"rules.force-yaml-escape.name",descriptionKey:"rules.force-yaml-escape.description",type:"YAML",hasSpecialExecutionOrder:!0})}get OptionsClass(){return $r}apply(t,i){return he(t,n=>{for(let r of i.forceYamlEscape){let a=de(n,r);if(a!=null){if(a.includes(`
`)||a.startsWith(" [")||Tn(a))continue;a=vi(a,i.defaultEscapeCharacter,!0),n=ae(n,r," "+a)}}return n})}get optionBuilders(){return[new pe({OptionsClass:$r,nameKey:"rules.force-yaml-escape.force-yaml-escape-keys.name",descriptionKey:"rules.force-yaml-escape.force-yaml-escape-keys.description",optionsKey:"forceYamlEscape"})]}};Wt=z([y.register],Wt);var bc=class{},Vt=class extends y{constructor(){super({nameKey:"rules.format-tags-in-yaml.name",descriptionKey:"rules.format-tags-in-yaml.description",type:"YAML",hasSpecialExecutionOrder:!0})}get OptionsClass(){return bc}apply(t,i){return he(t,n=>n.replace(new RegExp(`^(${wr}|${Ul}):[ \\t]*(\\S.*|(?:(?:\\n *- \\S.*)|((?:\\n *- *))*|(\\n([ \\t]+[^\\n]*))*)*)\\n`,"m"),function(r){return r.replaceAll("#","")}))}get optionBuilders(){return[]}};Vt=z([y.register],Vt);var ai=class{constructor(){this.aliasArrayStyle="single-line";this.formatAliasKey=!0;this.tagArrayStyle="single-line";this.formatTagKey=!0;this.defaultArrayStyle="single-line";this.formatArrayKeys=!0;this.forceSingleLineArrayStyle=[];this.forceMultiLineArrayStyle=[];this.defaultEscapeCharacter='"';this.removeUnnecessaryEscapeCharsForMultiLineArrays=!1}};z([y.noSettingControl()],ai.prototype,"aliasArrayStyle",2),z([y.noSettingControl()],ai.prototype,"tagArrayStyle",2),z([y.noSettingControl()],ai.prototype,"defaultEscapeCharacter",2),z([y.noSettingControl()],ai.prototype,"removeUnnecessaryEscapeCharsForMultiLineArrays",2);var Gr=class extends y{constructor(){super({nameKey:"rules.format-yaml-array.name",descriptionKey:"rules.format-yaml-array.description",type:"YAML"})}get OptionsClass(){return ai}apply(t,i){return he(t,n=>{let r=ri(n.replace(`---
`,"").replace(`
---`,""));if(!r)return n;for(let a of bi)if(i.formatAliasKey&&Object.keys(r).includes(a)){n=ae(n,a,be(ot(qe(de(n,a))),i.aliasArrayStyle,i.defaultEscapeCharacter,i.removeUnnecessaryEscapeCharsForMultiLineArrays,!0));break}for(let a of yi)if(i.formatTagKey&&Object.keys(r).includes(a)){n=ae(n,a,be(st(qe(de(n,a))),i.tagArrayStyle,i.defaultEscapeCharacter,i.removeUnnecessaryEscapeCharsForMultiLineArrays));break}if(i.formatArrayKeys){let a=[...bi,...yi,...i.forceMultiLineArrayStyle,...i.forceSingleLineArrayStyle];for(let s of Object.keys(r))a.includes(s)||!Array.isArray(r[s])||r[s].length!==0&&typeof r[s][0]=="object"&&r[s][0]!==null||(n=ae(n,s,be(qe(de(n,s)),i.defaultArrayStyle,i.defaultEscapeCharacter,i.removeUnnecessaryEscapeCharsForMultiLineArrays)))}for(let a of i.forceSingleLineArrayStyle)Object.keys(r).includes(a)&&(n=ae(n,a,be(qe(de(n,a)),"single-line",i.defaultEscapeCharacter,i.removeUnnecessaryEscapeCharsForMultiLineArrays)));for(let a of i.forceMultiLineArrayStyle)Object.keys(r).includes(a)&&(n=ae(n,a,be(qe(de(n,a)),"multi-line",i.defaultEscapeCharacter,i.removeUnnecessaryEscapeCharsForMultiLineArrays)));return n})}get optionBuilders(){return[new H({OptionsClass:ai,nameKey:"rules.format-yaml-array.alias-key.name",descriptionKey:"rules.format-yaml-array.alias-key.description",optionsKey:"formatAliasKey"}),new H({OptionsClass:ai,nameKey:"rules.format-yaml-array.tag-key.name",descriptionKey:"rules.format-yaml-array.tag-key.description",optionsKey:"formatTagKey"}),new ee({OptionsClass:ai,nameKey:"rules.format-yaml-array.default-array-style.name",descriptionKey:"rules.format-yaml-array.default-array-style.description",optionsKey:"defaultArrayStyle",records:[{value:"multi-line",description:"```key:\\n - value```"},{value:"single-line",description:"```key: [value]```"}]}),new H({OptionsClass:ai,nameKey:"rules.format-yaml-array.default-array-keys.name",descriptionKey:"rules.format-yaml-array.default-array-keys.description",optionsKey:"formatArrayKeys"}),new pe({OptionsClass:ai,nameKey:"rules.format-yaml-array.force-single-line-array-style.name",descriptionKey:"rules.format-yaml-array.force-single-line-array-style.description",optionsKey:"forceSingleLineArrayStyle"}),new pe({OptionsClass:ai,nameKey:"rules.format-yaml-array.force-multi-line-array-style.name",descriptionKey:"rules.format-yaml-array.force-multi-line-array-style.description",optionsKey:"forceMultiLineArrayStyle"})]}};Gr=z([y.register],Gr);var oo=class{constructor(){this.startAtH2=!1}},Qr=class extends y{constructor(){super({nameKey:"rules.header-increment.name",descriptionKey:"rules.header-increment.description",type:"Heading",ruleIgnoreTypes:[h.code,h.math,h.yaml,h.link,h.wikiLink,h.tag]})}get OptionsClass(){return oo}apply(t,i){let n=0,r=i.startAtH2?2:1,a=[],s=[0,0,0,0,0,0],o=s.length;return t.replace(rt,(l,c="",d="",u="",m="",p="")=>{let g=d.length;if(g=g<=o?g:o,s[g-1]>=0&&g<n){let b=s.length;for(;a.length!==0&&g<=a[a.length-1];)b=a.pop();a.length===0?b=0:b--;for(let f=s.length-1;f>=b;f--)s[f]=0}if(s[g-1]<=0){let b=n,f=a.length+r;f=f<=o?f:o;for(let x=b;x<g-1;x++)s[x]=f-1;a.push(g),s[g-1]=f}return n=g,c+"#".repeat(s[g-1])+u+m+p})}get optionBuilders(){return[new H({OptionsClass:oo,nameKey:"rules.header-increment.start-at-h2.name",descriptionKey:"rules.header-increment.start-at-h2.description",optionsKey:"startAtH2"})]}};Qr=z([y.register],Qr);var Jr=class{constructor(){this.bottom=!0;this.emptyLineAfterYaml=!0}},Zr=class extends y{constructor(){super({nameKey:"rules.heading-blank-lines.name",descriptionKey:"rules.heading-blank-lines.description",type:"Spacing",ruleIgnoreTypes:[h.code,h.math,h.yaml,h.link,h.wikiLink]})}get OptionsClass(){return Jr}apply(t,i){return i.bottom?(t=t.replace(/^(#+\s.*)/gm,`
$1
`),t=t.replace(/\n+(#+\s.*)/g,`
$1`),t=t.replace(/(^#+\s.*)\n+/gm,`$1
`)):t=t.replace(/^([^#\n][^\n]+)\n+(#+\s.*)/gm,`$1
$2`),t=t.replace(/^\n+(#+\s.*)/,"$1"),t=t.replace(/(#+\s.*)\n+$/,"$1"),i.emptyLineAfterYaml||(t=t.replace(new RegExp("("+Ge.source+")\\n+(#+\\s.*)"),`$1
$5`)),t}get optionBuilders(){return[new H({OptionsClass:Jr,nameKey:"rules.heading-blank-lines.bottom.name",descriptionKey:"rules.heading-blank-lines.bottom.description",optionsKey:"bottom"}),new H({OptionsClass:Jr,nameKey:"rules.heading-blank-lines.empty-line-after-yaml.name",descriptionKey:"rules.heading-blank-lines.empty-line-after-yaml.description",optionsKey:"emptyLineAfterYaml"})]}};Zr=z([y.register],Zr);var vc=class{},Xr=class extends y{constructor(){super({nameKey:"rules.headings-start-line.name",descriptionKey:"rules.headings-start-line.description",type:"Heading",ruleIgnoreTypes:[h.code,h.math,h.yaml]})}get OptionsClass(){return vc}apply(t,i){return t.replaceAll(rt,n=>n.trimStart())}get optionBuilders(){return[]}};Xr=z([y.register],Xr);var lo=class{constructor(){this.textToInsert=["aliases: ","tags: "]}},ea=class extends y{constructor(){super({nameKey:"rules.insert-yaml-attributes.name",descriptionKey:"rules.insert-yaml-attributes.description",type:"YAML"})}get OptionsClass(){return lo}apply(t,i){return t=Ci(t),he(t,n=>{let r=i.textToInsert.reverse(),a=ri(n.match(Ge)[1]);for(let s of r){let o=s.split(":")[0];Object.prototype.hasOwnProperty.call(a,o)||(n=n.replace(/^---\n/,Qe(`---
${s}
`)))}return n})}get optionBuilders(){return[new pe({OptionsClass:lo,nameKey:"rules.insert-yaml-attributes.text-to-insert.name",descriptionKey:"rules.insert-yaml-attributes.text-to-insert.description",optionsKey:"textToInsert"})]}};ea=z([y.register],ea);var xc=class{},ia=class extends y{constructor(){super({nameKey:"rules.line-break-at-document-end.name",descriptionKey:"rules.line-break-at-document-end.description",type:"Spacing"})}get OptionsClass(){return xc}apply(t,i){return t=t.replace(/\n+$/g,""),t+=`
`,t}get optionBuilders(){return[]}};ia=z([y.register],ia);var wc=class{},ta=class extends y{constructor(){super({nameKey:"rules.move-footnotes-to-the-bottom.name",descriptionKey:"rules.move-footnotes-to-the-bottom.description",type:"Footnote",ruleIgnoreTypes:[h.code,h.inlineCode,h.math,h.yaml]})}get OptionsClass(){return wc}apply(t,i){return Zu(t)}get optionBuilders(){return[]}};ta=z([y.register],ta);var co=class{constructor(){this.minimumNumberOfDollarSignsToBeAMathBlock=2}};z([y.noSettingControl()],co.prototype,"minimumNumberOfDollarSignsToBeAMathBlock",2);var $t=class extends y{constructor(){super({nameKey:"rules.move-math-block-indicators-to-their-own-line.name",descriptionKey:"rules.move-math-block-indicators-to-their-own-line.description",type:"Spacing",ruleIgnoreTypes:[h.code,h.inlineCode],hasSpecialExecutionOrder:!0})}get OptionsClass(){return co}apply(t,i){return cp(t,i.minimumNumberOfDollarSignsToBeAMathBlock)}get optionBuilders(){return[]}};$t=z([y.register],$t);var gt=class{constructor(){this.tagArrayStyle="single-line";this.howToHandleExistingTags="Nothing";this.tagsToIgnore=[];this.defaultEscapeCharacter='"';this.removeUnnecessaryEscapeCharsForMultiLineArrays=!1}};z([y.noSettingControl()],gt.prototype,"tagArrayStyle",2),z([y.noSettingControl()],gt.prototype,"defaultEscapeCharacter",2),z([y.noSettingControl()],gt.prototype,"removeUnnecessaryEscapeCharsForMultiLineArrays",2);var na=class extends y{constructor(){super({nameKey:"rules.move-tags-to-yaml.name",descriptionKey:"rules.move-tags-to-yaml.description",type:"YAML",ruleIgnoreTypes:[h.code,h.inlineCode,h.math,h.html,h.wikiLink,h.link]})}get OptionsClass(){return gt}apply(t,i){let n;return Ee([h.yaml],t,r=>(n=Op(r),r)),n.length===0||(t=Ci(t),t=he(t,r=>{r=r.replace(`---
`,"").replace("---","");let a=[],s=wr;for(let c of yi){let d=de(r,c);if(d!=null){a=st(qe(d)),s=c;break}}let o=new Set;if(typeof a=="string")o.add(a),a=[a];else if(a!=null)for(let c of a)o.add(c);else a=[];for(let c of n){let d=c.trim().substring(1);!o.has(d)&&!i.tagsToIgnore.includes(d)&&(o.add(d),a.push(d))}return`---
${ae(r,s,be(a,i.tagArrayStyle,i.defaultEscapeCharacter,i.removeUnnecessaryEscapeCharsForMultiLineArrays))}---`}),t=Ee([h.yaml],t,r=>(i.howToHandleExistingTags!=="Nothing"&&(r=r.replace(br,a=>{let s=a.indexOf("#"),o=a.substring(s+1);return i.tagsToIgnore.includes(o)?a:i.howToHandleExistingTags==="Remove hashtag"?a.substring(0,s)+o:""})),r)),t=t.replace(/(\n---)( |\t)+/,"$1")),t}get optionBuilders(){return[new ee({OptionsClass:gt,nameKey:"rules.move-tags-to-yaml.how-to-handle-existing-tags.name",descriptionKey:"rules.move-tags-to-yaml.how-to-handle-existing-tags.description",optionsKey:"howToHandleExistingTags",records:[{value:"Nothing",description:"Leaves tags in the body of the file alone"},{value:"Remove hashtag",description:"Removes `#` from tags in content body after moving them to the YAML frontmatter"},{value:"Remove whole tag",description:"Removes the whole tag in content body after moving them to the YAML frontmatter. _Note that this removes the first space prior to the tag as well_"}]}),new pe({OptionsClass:gt,nameKey:"rules.move-tags-to-yaml.tags-to-ignore.name",descriptionKey:"rules.move-tags-to-yaml.tags-to-ignore.description",optionsKey:"tagsToIgnore"})]}};na=z([y.register],na);var po=class{constructor(){this.noBareURIs=!1}},uo="'\"\u2018\u2019\u201C\u201D`[]",nx=["http","ftp","https","smtp"],ra=class extends y{constructor(){super({nameKey:"rules.no-bare-urls.name",descriptionKey:"rules.no-bare-urls.description",type:"Content",ruleIgnoreTypes:[h.code,h.math,h.yaml,h.link,h.wikiLink,h.tag,h.image,h.inlineCode,h.anchorTag,h.html]})}get OptionsClass(){return po}apply(t,i){let n=t.match(Ct);if(n&&(t=this.handleMatches(t,n,!1)),i.noBareURIs){let r=t.match(xp);r&&(t=this.handleMatches(t,r,!0))}return t}handleMatches(t,i,n){let r=0,a=i.length;for(let s=0;s<a;s++){let o=i[s],l=t.indexOf(o,r),c=l+o.length;o.charAt(0)==="<"&&(o=o.substring(1),l++),o.charAt(o.length-1)===">"&&(o=o.substring(0,o.length-1),c--);let d=l===0?void 0:t.charAt(l-1),u=c>=t.length?void 0:t.charAt(c),m=Xi(o,"(");if(m!=0&&m!=Xi(o,")")&&u==")"?(o+=u,c++,u=c>=t.length?void 0:t.charAt(c)):m==0&&o.endsWith(")")&&(u=")",c--,o=o.substring(0,o.length-1)),this.skipMatch(d,u,o,n)){r=l+o.length;continue}if(d!=null&&d==="<"&&u!=null&&u===">"){let p=l-1;for(;p>0&&t.charAt(p-1)==="<";)p--;let g=c;for(;g<t.length-1&&t.charAt(g+1)===">";)g++;t=le(t,p,g+1,"<"+o+">"),r=l+o.length;continue}t=le(t,l,l+o.length,"<"+o+">"),r=l+o.length+2}return t}skipMatch(t,i,n,r){let a=t!=null&&uo.includes(t)||uo.includes(n.charAt(0)),s=i!=null&&uo.includes(i)||uo.includes(n.charAt(n.length-1));return a&&s?!0:r?nx.includes(n.substring(0,n.indexOf(":"))):!1}get optionBuilders(){return[new H({OptionsClass:po,nameKey:"rules.no-bare-urls.no-bare-uris.name",descriptionKey:"rules.no-bare-urls.no-bare-uris.description",optionsKey:"noBareURIs"})]}};ra=z([y.register],ra);var sa=class{constructor(){this.numberStyle="ascending";this.listEndStyle="."}},aa=class extends y{constructor(){super({nameKey:"rules.ordered-list-style.name",descriptionKey:"rules.ordered-list-style.description",type:"Content",ruleIgnoreTypes:[h.code,h.math,h.yaml,h.tag]})}get OptionsClass(){return sa}apply(t,i){return op(t,i.numberStyle,i.listEndStyle)}get optionBuilders(){return[new ee({OptionsClass:sa,nameKey:"rules.ordered-list-style.number-style.name",descriptionKey:"rules.ordered-list-style.number-style.description",optionsKey:"numberStyle",records:[{value:"ascending",description:"Makes sure ordered list items are ascending (i.e. 1, 2, 3, etc.)"},{value:"lazy",description:"Makes sure ordered list item indicators all are the number 1"}]}),new ee({OptionsClass:sa,nameKey:"rules.ordered-list-style.list-end-style.name",descriptionKey:"rules.ordered-list-style.list-end-style.description",optionsKey:"listEndStyle",records:[{value:".",description:"Makes sure ordered list items indicators end in '.' (i.e `1.`)"},{value:")",description:"Makes sure ordered list item indicators end in ')' (i.e. `1)`)"}]})]}};aa=z([y.register],aa);var kc=class{},oa=class extends y{constructor(){super({nameKey:"rules.paragraph-blank-lines.name",descriptionKey:"rules.paragraph-blank-lines.description",type:"Spacing",ruleIgnoreTypes:[h.obsidianMultiLineComments,h.yaml,h.table]})}get OptionsClass(){return kc}apply(t,i){return ep(t)}get optionBuilders(){return[]}};oa=z([y.register],oa);var la=class{};z([y.noSettingControl()],la.prototype,"lineContent",2),z([y.noSettingControl()],la.prototype,"selectedText",2);var Gt=class extends y{constructor(){super({nameKey:"rules.prevent-double-checklist-indicator-on-paste.name",descriptionKey:"rules.prevent-double-checklist-indicator-on-paste.description",type:"Paste"})}get OptionsClass(){return la}apply(t,i){let n=Tp.test(i.lineContent),r=Ms.test(t),a=Ms.test(i.selectedText);return!n||!r||a?t:t.replace(Ms,"")}get optionBuilders(){return[]}};Gt=z([y.register],Gt);var ca=class{};z([y.noSettingControl()],ca.prototype,"lineContent",2),z([y.noSettingControl()],ca.prototype,"selectedText",2);var Qt=claLine truncated
{2,}${n}$`,"gm"),a,s=i;do a=s.match(r),s=s.replaceAll(r,`$1
$4`);while(a);return s}}get OptionsClass(){return Tc}apply(i,n){let r=`(( |\\t)*- ${Ot}( |\\t)+.+)`;i=this.replaceEmptyLinesBetweenList(i,r),i=this.replaceEmptyLinesBetweenList(i,"(( |\\t)*\\d+\\.( |\\t)+.+)"),i=this.replaceEmptyLinesBetweenList(i,"(( |\\t)*\\+( |\\t)+.+)");let o=`(( |\\t)*-(?! ${Ot})( |\\t)+.+)`;return i=this.replaceEmptyLinesBetweenList(i,o),this.replaceEmptyLinesBetweenList(i,"(( |\\t)*\\*( |\\t)+.+)")}get optionBuilders(){return[]}};ga=z([y.register],ga);var Ec=class{},ha=class extends y{constructor(){super({nameKey:"rules.remove-empty-list-markers.name",descriptionKey:"rules.remove-empty-list-markers.description",type:"Content",ruleIgnoreTypes:[h.code,h.math,h.yaml,h.link,h.wikiLink,h.tag]})}get OptionsClass(){return Ec}apply(t,i){let n=new RegExp(`^${xr}(-|\\*|\\+|\\d+[.)]|- (\\[(.)\\]))\\s*?$`,"gm");return t=t.replace(new RegExp(n.source+"\\n","gm"),""),t=t.replace(new RegExp("\\n"+n.source,"gm"),""),t.replace(n,"")}get optionBuilders(){return[]}};ha=z([y.register],ha);var Cc=class{},fa=class extends y{constructor(){super({nameKey:"rules.remove-hyphenated-line-breaks.name",descriptionKey:"rules.remove-hyphenated-line-breaks.description",type:"Content",ruleIgnoreTypes:[h.code,h.math,h.yaml,h.link,h.wikiLink,h.tag]})}get OptionsClass(){return Cc}apply(t,i){return t.replace(/\b[-‐] \b/g,"")}get optionBuilders(){return[]}};fa=z([y.register],fa);var Oc=class{},Xt=class extends y{constructor(){super({nameKey:"rules.remove-hyphens-on-paste.name",descriptionKey:"rules.remove-hyphens-on-paste.description",type:"Paste"})}get OptionsClass(){return Oc}apply(t,i){return t.replace(/([^\s-])[-‐]\s+\n?(?=\w)/g,"$1")}get optionBuilders(){return[]}};Xt=z([y.register],Xt);var Mc=class{},en=class extends y{constructor(){super({nameKey:"rules.remove-leading-or-trailing-whitespace-on-paste.name",descriptionKey:"rules.remove-leading-or-trailing-whitespace-on-paste.description",type:"Paste"})}get OptionsClass(){return Mc}apply(t,i){return t.replace(/^[\n ]+|\s+$/g,"")}get optionBuilders(){return[]}};en=z([y.register],en);var qc=class{},tn=class extends y{constructor(){super({nameKey:"rules.remove-leftover-footnotes-from-quote-on-paste.name",descriptionKey:"rules.remove-leftover-footnotes-from-quote-on-paste.description",ruleIgnoreTypes:[h.wikiLink,h.link,h.image],type:"Paste"})}get OptionsClass(){return qc}apply(t,i){return t.replace(/(\D)[.,]\d+/g,"$1")}get optionBuilders(){return[]}};tn=z([y.register],tn);var Ic=class{},ya=class extends y{constructor(){super({nameKey:"rules.remove-link-spacing.name",descriptionKey:"rules.remove-link-spacing.description",type:"Spacing"})}get OptionsClass(){return Ic}apply(t,i){return t=ip(t),Ep(t)}get optionBuilders(){return[]}};ya=z([y.register],ya);var Bc=class{},nn=class extends y{constructor(){super({nameKey:"rules.remove-multiple-blank-lines-on-paste.name",descriptionKey:"rules.remove-multiple-blank-lines-on-paste.description",type:"Paste"})}get OptionsClass(){return Bc}apply(t,i){return t.replace(/\n{3,}/g,`
`)}get optionBuilders(){return[]}};nn=z([y.register],nn);var Fc=class{},ba=class extends y{constructor(){super({nameKey:"rules.remove-multiple-spaces.name",descriptionKey:"rules.remove-multiple-spaces.description",type:"Content",ruleIgnoreTypes:[h.code,h.inlineCode,h.math,h.inlineMath,h.yaml,h.link,h.wikiLink,h.tag,h.table]})}get OptionsClass(){return Fc}apply(t,i){return t=t.replace(/(?!^>)([^\s])( ){2,}([^\s])/gm,"$1 $3"),t}get optionBuilders(){return[]}};ba=z([y.register],ba);var rn=class{constructor(){this.includeFullwidthForms=!0;this.includeCJKSymbolsAndPunctuation=!0;this.includeDashes=!0;this.otherSymbols=""}},va=class extends y{constructor(){super({nameKey:"rules.remove-space-around-characters.name",descriptionKey:"rules.remove-space-around-characters.description",type:"Spacing",ruleIgnoreTypes:[h.code,h.inlineCode,h.math,h.yaml,h.link,h.wikiLink,h.tag]})}get OptionsClass(){return rn}apply(t,i){let n="";if(i.includeFullwidthForms&&(n+="\uFF01-\uFF5E"),i.includeCJKSymbolsAndPunctuation&&(n+="\u3000-\u303F"),i.includeDashes&&(n+="\u2013\u2014"),n+=at(i.otherSymbols),!n)return t;let r=new RegExp(`([ ])+([${n}])`,"g"),a=new RegExp(`([${n}])([ ])+`,"g"),s=function(l){return l.replace(r,"$2").replace(a,"$1")},o=Ee([h.list],t,s);return o=Ls(o,s),o}get optionBuilders(){return[new H({nameKey:"rules.remove-space-around-characters.include-fullwidth-forms.name",descriptionKey:"rules.remove-space-around-characters.include-fullwidth-forms.description",OptionsClass:rn,optionsKey:"includeFullwidthForms"}),new H({nameKey:"rules.remove-space-around-characters.include-cjk-symbols-and-punctuation.name",descriptionKey:"rules.remove-space-around-characters.include-cjk-symbols-and-punctuation.description",OptionsClass:rn,optionsKey:"includeCJKSymbolsAndPunctuation"}),new H({nameKey:"rules.remove-space-around-characters.include-dashes.name",descriptionKey:"rules.remove-space-around-characters.include-dashes.description",OptionsClass:rn,optionsKey:"includeDashes"}),new xe({nameKey:"rules.remove-space-around-characters.other-symbols.name",descriptionKey:"rules.remove-space-around-characters.other-symbols.description",OptionsClass:rn,optionsKey:"otherSymbols"})]}};va=z([y.register],va);var wa=class{constructor(){this.charactersToRemoveSpacesBefore=",!?;:).\u2019\u201D]";this.charactersToRemoveSpacesAfter="\xBF\xA1\u2018\u201C(["}},xa=class extends y{constructor(){super({nameKey:"rules.remove-space-before-or-after-characters.name",descriptionKey:"rules.remove-space-before-or-after-characters.description",type:"Spacing",ruleIgnoreTypes:[h.code,h.math,h.yaml,h.link,h.wikiLink,h.tag]})}get OptionsClass(){return wa}apply(t,i){let n=at(i.charactersToRemoveSpacesBefore),r=at(i.charactersToRemoveSpacesAfter);if(!n&&!r)return t;let a=new RegExp(`([ ])+([${n}])`,"g"),s=new RegExp(`([${r}])([ ])+`,"g"),o=function(c){return c.replace(a,"$2").replace(s,"$1")},l=Ee([h.list,h.html],t,o);return l=Ls(l,o),l}get optionBuilders(){return[new xe({nameKey:"rules.remove-space-before-or-after-characters.characters-to-remove-space-before.name",descriptionKey:"rules.remove-space-before-or-after-characters.characters-to-remove-space-before.description",OptionsClass:wa,optionsKey:"charactersToRemoveSpacesBefore"}),new xe({nameKey:"rules.remove-space-before-or-after-characters.characters-to-remove-space-after.name",descriptionKey:"rules.remove-space-before-or-after-characters.characters-to-remove-space-after.description",OptionsClass:wa,optionsKey:"charactersToRemoveSpacesAfter"})]}};xa=z([y.register],xa);var mo=class{constructor(){this.punctuationToRemove=".,;:!\u3002\uFF0C\uFF1B\uFF1A\uFF01"}},ka=class extends y{constructor(){super({nameKey:"rules.remove-trailing-punctuation-in-heading.name",descriptionKey:"rules.remove-trailing-punctuation-in-heading.description",type:"Heading",ruleIgnoreTypes:[h.code,h.math,h.yaml]})}get OptionsClass(){return mo}apply(t,i){return t.replaceAll(rt,(n,r="",a="",s="",o="",l="")=>{if(o==""||o.match(zp))return n;let c=o.trimEnd(),d=c.charAt(c.length-1);return i.punctuationToRemove.includes(d)?r+a+s+o.substring(0,c.length-1)+o.substring(c.length)+l:n})}get optionBuilders(){return[new xe({OptionsClass:mo,nameKey:"rules.remove-trailing-punctuation-in-heading.punctuation-to-remove.name",descriptionKey:"rules.remove-trailing-punctuation-in-heading.punctuation-to-remove.description",optionsKey:"punctuationToRemove"})]}};ka=z([y.register],ka);var go=class{constructor(){this.yamlKeysToRemove=[]}},za=class extends y{constructor(){super({nameKey:"rules.remove-yaml-keys.name",descriptionKey:"rules.remove-yaml-keys.description",type:"YAML"})}get OptionsClass(){return go}apply(t,i){let n=i.yamlKeysToRemove;if(n.length===0)return t;let r=Ln(t);if(r===null)return t;let a=r;for(let s of n){let o=s.trim();o.endsWith(":")&&(o=o.substring(0,o.length-1)),a=Mt(a,o)}return t.replace(r,a)}get optionBuilders(){return[new pe({OptionsClass:go,nameKey:"rules.remove-yaml-keys.yaml-keys-to-remove.name",descriptionKey:"rules.remove-yaml-keys.yaml Line truncated
`,"").replace(`
---`,""));if(!r)return n;for(let a of bi)if(i.sortAliasKey&&Object.keys(r).includes(a)){n=ae(n,a,be(ot(this.sortArray(qe(de(n,a)),i.sortOrder)),i.aliasArrayStyle,i.defaultEscapeCharacter,i.removeUnnecessaryEscapeCharsForMultiLineArrays,!0));break}for(let a of yi)if(i.sortTagKey&&Object.keys(r).includes(a)){n=ae(n,a,be(st(this.sortArray(qe(de(n,a)),i.sortOrder)),i.tagArrayStyle,i.defaultEscapeCharacter,i.removeUnnecessaryEscapeCharsForMultiLineArrays));break}if(i.sortArrayKeys){let a=[...bi,...yi,...i.ignoreSortArrayKeys];for(let s of Object.keys(r)){if(a.includes(s)||!Array.isArray(r[s])||r[s].length!==0&&typeof r[s][0]=="object"&&r[s][0]!==null)continue;let o=de(n,s),l="single-line";o.includes(`
`)&&(l="multi-line");let c=this.sortArray(qe(o),i.sortOrder);n=ae(n,s,be(c,l,i.defaultEscapeCharacter,i.removeUnnecessaryEscapeCharsForMultiLineArrays))}}return n})}sortArray(t,i){return t==null||typeof t=="string"||t.length<=1||(t.sort(function(n,r){let a=n.toLowerCase().localeCompare(r.toLowerCase());return a===0?n.localeCompare(r):a}),i==="Ascending Alphabetical")||t.reverse(),t}get optionBuilders(){return[new H({OptionsClass:gi,nameKey:"rules.sort-yaml-array-values.sort-alias-key.name",descriptionKey:"rules.sort-yaml-array-values.sort-alias-key.description",optionsKey:"sortAliasKey"}),new H({OptionsClass:gi,nameKey:"rules.sort-yaml-array-values.sort-tag-key.name",descriptionKey:"rules.sort-yaml-array-values.sort-tag-key.description",optionsKey:"sortTagKey"}),new H({OptionsClass:gi,nameKey:"rules.sort-yaml-array-values.sort-array-keys.name",descriptionKey:"rules.sort-yaml-array-values.sort-array-keys.description",optionsKey:"sortArrayKeys"}),new pe({OptionsClass:gi,nameKey:"rules.sort-yaml-array-values.ignore-keys.name",descriptionKey:"rules.sort-yaml-array-values.ignore-keys.description",optionsKey:"ignoreSortArrayKeys"}),new ee({OptionsClass:gi,nameKey:"rules.sort-yaml-array-values.sort-order.name",descriptionKey:"rules.sort-yaml-array-values.sort-order.description",optionsKey:"sortOrder",records:[{value:"Ascending Alphabetical",description:"Sorts the array values from a to z"},{value:"Descending Alphabetical",description:"Sorts the array values from z to a"}]})]}};Aa=z([y.register],Aa);var Rc=class{},Sa=class extends y{constructor(){super({nameKey:"rules.space-after-list-markers.name",descriptionKey:"rules.space-after-list-markers.description",type:"Spacing",ruleIgnoreTypes:[h.code,h.math,h.yaml,h.link,h.wikiLink,h.tag]})}get OptionsClass(){return Rc}apply(t,i){return t=t.replace(/^(\s*\d+\.|\s*[-+*])[^\S\r\n]+/gm,"$1 "),t.replace(/^(\s*\d+\.|\s*[-+*]\s+\[[ xX]\])[^\S\r\n]+/gm,"$1 ")}get optionBuilders(){return[]}};Sa=z([y.register],Sa);var Ta=class{constructor(){this.englishNonLetterCharactersAfterCJKCharacters=`-+'"([\xA5$`;this.englishNonLetterCharactersBeforeCJKCharacters=`-+;:'"\xB0%$)]`}},La=class extends y{constructor(){super({nameKey:"rules.space-between-chinese-japanese-or-korean-and-english-or-numbers.name",descriptionKey:"rules.space-between-chinese-japanese-or-korean-and-english-or-numbers.description",type:"Spacing",ruleIgnoreTypes:[h.code,h.inlineCode,h.yaml,h.image,h.link,h.wikiLink,h.tag,h.math,h.inlineMath,h.html]})}get OptionsClass(){return Ta}apply(t,i){let n=this.buildHeadRegex(i.englishNonLetterCharactersAfterCJKCharacters),r=this.buildTailRegex(i.englishNonLetterCharactersBeforeCJKCharacters),a=`${h.link.placeholder}|${h.inlineMath.placeholder}|${h.inlineCode.placeholder}|${h.wikiLink.placeholder}`.replaceAll("{","\\{").replaceAll("}","\\}"),s=new RegExp(`(\\p{sc=Han}|\\p{sc=Katakana}|\\p{sc=Hiragana}|\\p{sc=Hangul})( *)(${a})`,"gmu"),o=new RegExp(`(${a})( *)(\\p{sc=Han}|\\p{sc=Katakana}|\\p{sc=Hiragana}|\\p{sc=Hangul})`,"gmu"),l=function(d){return d.replace(n,"$1 $3").replace(r,"$1 $3")},c=Ee([h.italics,h.bold],t,l);return c=c.replace(s,"$1 $3").replace(o,"$1 $3"),c=tp(c,l),c=np(c,l),c}buildHeadRegex(t){t&&t!==""&&(t=t.replaceAll(/\s/g,""));let i="";return t&&t.length!=0&&(i=`|[${at(t)}]`),new RegExp(`(\\p{sc=Han}|\\p{sc=Katakana}|\\p{sc=Hiragana}|\\p{sc=Hangul})( *)(\\[[^[]*\\]\\(.*\\)|\`[^\`]*\`|\\w+${i}|\\*[^*])`,"gmu")}buildTailRegex(t){t&&t!==""&&(t=t.replaceAll(/\s/g,""));let i="";return t&&t.length!=0&&(i=`|[${at(t)}]`),new RegExp(`(\\[[^[]*\\]\\(.*\\)|\`[^\`]*\`|\\w+${i}|[^*]\\*)( *)(\\p{sc=Han}|\\p{sc=Katakana}|\\p{sc=Hiragana}|\\p{sc=Hangul})`,"gmu")}get optionBuilders(){return[new xe({OptionsClass:Ta,nameKey:"rules.space-between-chinese-japanese-or-korean-and-english-or-numbers.english-symbols-punctuation-before.name",descriptionKey:"rules.space-between-chinese-japanese-or-korean-and-english-or-numbers.english-symbols-punctuation-before.description",optionsKey:"englishNonLetterCharactersBeforeCJKCharacters"}),new xe({OptionsClass:Ta,nameKey:"rules.space-between-chinese-japanese-or-korean-and-english-or-numbers.english-symbols-punctuation-after.name",descriptionKey:"rules.space-between-chinese-japanese-or-korean-and-english-or-numbers.english-symbols-punctuation-after.description",optionsKey:"englishNonLetterCharactersAfterCJKCharacters"})]}};La=z([y.register],La);var ho=class{constructor(){this.style="consistent"}},Ea=class extends y{constructor(){super({nameKey:"rules.strong-style.name",descriptionKey:"rules.strong-style.description",type:"Content",ruleIgnoreTypes:[h.code,h.yaml,h.link,h.wikiLink,h.tag,h.math,h.inlineMath]})}get OptionsClass(){return ho}apply(t,i){return Ss(t,i.style,"strong")}get optionBuilders(){return[new ee({OptionsClass:ho,nameKey:"rules.strong-style.style.name",descriptionKey:"rules.strong-style.style.description",optionsKey:"style",records:[{value:"consistent",description:"Makes sure the first instance of strong is the style that will be usedLine truncated
`)?r+=`${a}:${s}
`:r+=`${a}: ${s}
`,t=Mt(t,a,!1))}return{remainingYaml:t,sortedYamlKeyValues:r}}updateDateModifiedIfYamlChanged(t,i,n,r){return t==i?i:ae(i,n," "+r)}getTextWithNewYamlFrontmatter(t,i,n,r,a,s,o,l){let c=`${r}${n}`;return a&&(c=`${n}${r}`),l&&(c=this.updateDateModifiedIfYamlChanged(i,c,s,o)),t.replace(i,c)}sortAlphabeticallyAsc(t,i){return t=t.toLowerCase(),i=i.toLowerCase(),t<i?-1:i<t?1:0}sortAlphabeticallyDesc(t,i){return t=t.toLowerCase(),i=i.toLowerCase(),t>i?-1:i>t?1:0}get optionBuilders(){return[new pe({OptionsClass:Vi,nameKey:"rules.yaml-key-sort.yaml-key-priority-sort-order.name",descriptionKey:"rules.yaml-key-sort.yaml-key-priority-sort-order.description",optionsKey:"yamlKeyPrioritySortOrder"}),new H({OptionsClass:Vi,nameKey:"rules.yaml-key-sort.priority-keys-at-start-of-yaml.name",descriptionKey:"rules.yaml-key-sort.priority-keys-at-start-of-yaml.description",optionsKey:"priorityKeysAtStartOfYaml"}),new ee({OptionsClass:Vi,nameKey:"rules.yaml-key-sort.yaml-sort-order-for-other-keys.name",descriptionKey:"rules.yaml-key-sort.yaml-sort-order-for-other-keys.description",optionsKey:"yamlSortOrderForOtherKeys",records:[{value:"None",description:"No sorting other than what is in the YAML Key Priority Sort Order text area"},{value:"Ascending Alphabetical",description:"Sorts the keys based on key value from a to z"},{value:"Descending Alphabetical",description:"Sorts the keys based on key value from z to a"}]})]}};sn=z([y.register],sn);var Ai=require("obsidian");var Nc=gn(xm());var He=class{constructor(){this.dateCreatedKey="date created";this.dateCreated=!0;this.forceRetentionOfCreatedValue=!1;this.format="dddd, MMMM Do YYYY, h:mm:ss a";this.dateModified=!0;this.dateModifiedKey="date modified";this.convertToUTC=!1;this.locale="en"}};z([y.noSettingControl()],He.prototype,"alreadyModified",2),z([y.noSettingControl()],He.prototype,"fileCreatedTime",2),z([y.noSettingControl()],He.prototype,"fileModifiedTime",2),z([y.noSettingControl()],He.prototype,"locale",2),z([y.noSettingControl()],He.prototype,"currentTime",2),z([y.noSettingControl()],He.prototype,"fileName",2);var ht=class extends y{constructor(){super({nameKey:"rules.yaml-timestamp.name",descriptionKey:"rules.yaml-timestamp.description",type:"YAML",hasSpecialExecutionOrder:!0})}get OptionsClass(){return He}apply(t,i){let n=i.alreadyModified,r=Ci(t);return n=n||r!==t,i.format=i.format.trimEnd(),he(r,a=>{if(i.dateCreated){let s=!1;[a,s]=this.handleDateCreatedValue(a,i),n=n||s}return i.dateModified&&(a=this.handleDateModifiedValue(a,n,i)),a})}handleDateCreatedValue(t,i){let n=!1,r=`
${i.dateCreatedKey}: [^
]+
`,a=`
${i.dateCreatedKey}:[ ]*
`,s=new RegExp(a),o=new RegExp(r),l=(0,Ai.moment)(i.fileCreatedTime);l.locale(i.locale);let c=i.convertToUTC?l.utc().format(i.format):l.format(i.format),d=`
${i.dateCreatedKey}: ${c}`,u=o.test(t);if(!u&&s.test(t))t=t.replace(s,Qe(d)+`
`),n=!0;else if(u){if(u){let m=this.getYAMLTimestampString(t,o,i.dateCreatedKey),p=(0,Nc.default)(m);if(i.forceRetentionOfCreatedValue&&i.format!==p){let g=this.parseValueToCurrentFormatIfPossible(m,i.format,i.locale,i.convertToUTC);if(g==null)throw new Error(A("logs.invalid-date-format-error").replace("{DATE}",m).replace("{FILE_NAME}",i.fileName));let b=i.convertToUTC?g.utc().format(i.format):g.format(i.format);if(b!==m){let f=`
${i.dateCreatedKey}: ${b}`;t=t.replace(o,Qe(f)+`
`),n=!0}}else if(!i.forceRetentionOfCreatedValue){let g=(0,Ai.moment)(m,i.format,i.locale,!0);(g==null||!g.isValid())&&(t=t.replace(o,Qe(d)+`
`),n=!0)}}}else{let m=t.indexOf(`
---`);t=At(t,m,`
${i.dateCreatedKey}: ${c}`),n=!0}return[t,n]}handleDateModifiedValue(t,i,n){let r=`
${n.dateModifiedKey}: [^
]+
`,a=`
${n.dateModifiedKey}:[ ]*
`,s=new RegExp(a),o=new RegExp(r),l=(0,Ai.moment)(n.fileModifiedTime);l.locale(n.locale);let c=n.convertToUTC?n.currentTime.utc().format(n.format):n.currentTime.format(n.format),d=`
${n.dateModifiedKey}: ${c}`,u=o.test(t);if(u){let m=(0,Ai.moment)(t.match(o)[0].replace(n.dateModifiedKey+":","").trim(),n.format,n.locale,!0);(i||m==null||!m.isValid()||this.getTimeDifferenceInSeconds(m,l,n)>5)&&(t=t.replace(o,Qe(d)+`
`))}else if(s.test(t))t=t.replace(s,Qe(d)+`
`);else if(!u){let m=t.indexOf(`
---`);t=At(t,m,d)}return t}parseValueToCurrentFormatIfPossible(t,i,n,r){if(t==null)return null;let a=r?Ai.moment.utc(t,i,n,!0):(0,Ai.moment)(t,i,n,!0);if(a!=null&&a.isValid())return a;let s=(0,Nc.default)(t);if(s!=null){let o=r?Ai.moment.utc(t,s):(0,Ai.moment)(t,s);o.locale(n);let l=r?o.utc().format(i):o.format(i);return(0,Ai.moment)(l,i,n,!0)}return null}getYAMLTimestampString(t,i,n){return t.match(i)[0].replace(n+":","").trim()}getTimeDifferenceInSeconds(t,i,n){let r=(0,Ai.moment)(i.format(n.format),n.format,n.locale,!0);return Math.abs(t.diff(r,"seconds"))}get optionBuilders(){return[new H({OptionsClass:He,nameKey:"rules.yaml-timestamp.date-created.name",descriptionKey:"rules.yaml-timestamp.date-created.description",optionsKey:"dateCreated"}),new xe({OptionsClass:He,nameKey:"rules.yaml-timestamp.date-created-key.name",descriptionKey:"rules.yaml-timestamp.date-created-key.description",optionsKey:"dateCreatedKey"}),new H({OptionsClass:He,nameKey:"rules.yaml-timestamp.force-retention-of-create-value.name",descriptionKey:"rules.yaml-timestamp.force-retention-of-create-value.description",optionsKey:"forceRetentionOfCreatedValue"}),new H({OptionsClass:He,nameKey:"rules.yaml-timestamp.date-modified.name",descriptionKey:"rules.yaml-timestamp.date-modified.description",optionsKey:"dateModified"}),new xe({OptionsClass:He,nameKey:"rules.yaml-timestamp.date-modified-key.name",descriptionKey:"rules.yaml-timestamp.date-modified-key.description",optionsKey:"dateModifiedKey"}),new Zs({OptionsClass:He,nameKey:"rules.yaml-timestamp.format.name",descriptionKey:"rules.yaml-timestamp.format.description",optionsKey:"format"}),new H({OptionsClass:He,nameKey:"rules.yaml-timestamp.convert-to-utc.name",descriptionKey:"rules.yaml-timestamp.convert-to-utc.description",optionsKey:"convertToUTC"})]}};ht=z([y.register],ht);var Si=class{constructor(){this.preserveExistingAliasesSectionStyle=!0;this.keepAliasThatMatchesTheFilename=!1;this.useYamlKeyToKeepTrackOfOldFilenameOrHeading=!0;this.aliasHelperKey=Vl;this.aliasArrayStyle="multi-line";this.defaultEscapeCharacter='"';this.removeUnnecessaryEscapeCharsForMultiLineArrays=!1}};z([y.noSettingControl()],Si.prototype,"aliasArrayStyle",2),z([y.noSettingControl()],Si.prototype,"fileName",2),z([y.noSettingControl()],Si.prototype,"defaultEscapeCharacter",2),z([y.noSettingControl()],Si.prototype,"removeUnnecessaryEscapeCharsForMultiLineArrays",2);var on=class extends y{constructor(){super({nameKey:"rules.yaml-title-alias.name",descriptionKey:"rules.yaml-title-alias.description",type:"YAML",hasSpecialExecutionOrder:!0})}get OptionsClass(){return Si}apply(t,i){t=Ci(t);let[n,r]=this.getTitleInfo(t,i.fileName,i.aliasArrayStyle,i.defaultEscapeCharacter),a=null,s=t.match(Ge)[1],o=!i.keepAliasThatMatchesTheFilename&&n===i.fileName,l=s.replace(`---
`,"").replace(`
---`,""),c=ri(s),d=i.aliasHelperKey??Vl;d.endsWith(":")&&(d=d.substring(0,d.length-1)),a=c[d]??null,a!=null&&(a=a+"",a=vi(a,i.defaultEscapeCharacter,this.forceEscape(a,i.aliasArrayStyle)));let u=null,m=Object.keys(c);for(let p of bi)if(m.includes(p)){u=p;break}if(u!=null){let p=de(l,u),g="multi-line",b=p==="",f=!1;!p.includes(`
`)&&!(p==="[]"&&i.aliasArrayStyle==="multi-line")&&(p.match(/^\[.*\]/)===null?(g="single string to single-line",f=!0):g="single-line");let x=ot(qe(p)),k=this.getNewAliasValue(x,o,r,a);k===""?l=Mt(l,u):i.preserveExistingAliasesSectionStyle?!b&&(f&&r==k||!f||x==k)?l=ae(l,u,be(k,g,i.defaultEscapeCharacter,i.removeUnnecessaryEscapeCharsForMultiLineArrays,!0)):l=ae(l,u,be(k,i.aliasArrayStyle,i.defaultEscapeCharacter,i.removeUnnecessaryEscapeCharsForMultiLineArrays,!0)):l=ae(l,u,be(k,i.aliasArrayStyle,i.defaultEscapeCharacter,i.removeUnnecessaryEscapeCharsForMultiLineArrays,!0))}else o||(l=ae(l,Wl,be(r,i.aliasArrayStyle,i.defaultEscapeCharacter,i.removeUnnecessaryEscapeCharsForMultiLineArrays,!0)));return!i.useYamlKeyToKeepTrackOfOldFilenameOrHeading||o?l=Mt(l,d):l=ae(l,d,` ${r}`),t=t.replace(`---
${s}---`,`---
${l}---`),t}getTitleInfo(t,i,n,r){let a=Ee([h.code,h.math,h.yaml,h.tag],t,qs);a=a||i;let s=vi(a,r,this.forceEscape(a,n));return[a,s]}forceEscape(t,i){return cs(t)||t.includes(",")&&(i==="single-line"||i==="single string to single-line"||i==="single string comma delimited")}getNewAliasValue(t,i,n,r){if(t==null)return i?"":n;if(typeof t=="string")i?t===n&&(t=""):r===t?t=n:t=[n,t];else if(r!==null){let a=t.indexOf(r);a===-1&&Tn(r)&&(a=t.indexOf(r.substring(1,r.length-1))),a!==-1?i?t.splice(a,1):t[a]=n:t=[n,...t]}else{let a=t.indexOf(n);a!==-1?i&&t.splice(a,1):i||(t=[n,...t])}return t===""||t.length===0?"":t}get optionBuilders(){return[new H({OptionsClass:Si,nameKey:"rules.yaml-title-alias.preserve-existing-alias-section-style.name",descriptionKey:"rules.yaml-title-alias.preserve-existing-alias-section-style.description",optionsKey:"preserveExistingAliasesSectionStyle"}),new H({OptionsClass:Si,nameKey:"rules.yaml-title-alias.keep-alias-that-matches-the-filename.name",descriptionKey:"rules.yaml-title-alias.keep-alias-that-matches-the-filename.description",optionsKey:"keepAliasThatMatchesTheFilename"}),new H({OptionsClass:Si,nameKey:"rules.yaml-title-alias.use-yaml-key-to-keep-track-of-old-filename-or-heading.name",descriptionKey:"rules.yaml-title-alias.use-yaml-key-to-keep-track-of-old-filename-or-heading.description",optionsKey:"useYamlKeyToKeepTrackOfOldFilenameOrHeading"}),new xe({OptionsClass:Si,nameKey:"rules.yaml-title-alias.alias-helper-key.name",descriptionKey:"rules.yaml-title-alias.alias-helper-key.description",optionsKey:"aliasHelperKey"})]}};on=z([y.register],on);var ln=class{constructor(){this.defaultEscapeCharacter='"';this.titleKey="title";this.mode="first-h1-or-filename-if-h1-missing"}};z([y.noSettingControl()],ln.prototype,"fileName",2),z([y.noSettingControl()],ln.prototype,"defaultEscapeCharacter",2);var cn=class extends y{constructor(){super({nameKey:"rules.yaml-title.name",descriptionKey:"rules.yaml-title.description",type:"YAML",hasSpecialExecutionOrder:!0})}get OptionsClass(){return ln}apply(t,i){t=Ci(t);let n="";switch(i.mode){case"filename":n=i.fileName;break;case"first-h1":n=this.getFirstH1Header(t);break;default:n=this.getFirstH1Header(t),n=n||i.fileName}return n=vi(n,i.defaultEscapeCharacter),he(t,r=>{let a=`
${i.titleKey}.*
`,s=new RegExp(a);if(s.test(r))r=r.replace(s,Qe(`
${i.titleKey}: ${n}
`));else{let o=r.indexOf(`
---`);r=At(r,o,`
${i.titleKey}: ${n}`)}return r})}getFirstH1Header(t){return Ee([h.code,h.math,h.yaml,h.tag],t,qs)}get optionBuilders(){return[new xe({OptionsClass:ln,nameKey:"rules.yaml-title.title-key.name",descriptionKey:"rules.yaml-title.title-key.description",optionsKey:"titleKey"}),new ee({OptionsClass:ln,nameKey:"rules.yaml-title.mode.name",descriptionKey:"rules.yaml-title.mode.description",optionsKey:"mode",records:[{value:"first-h1-or-filename-if-h1-missing",description:"Uses the first H1 in the file or the filename of the file if there is not H1"},{value:"filename",description:"Uses the filename as the title"},{value:"first-h1",description:"Uses the first H1 in the file as the title"}]})]}};cn=z([y.register],cn);var Uw=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-cog">
<circle cx="6" cy="13" r="3"/>
<path d="m9.7 14.4-.9-.3"/>
<path d="m3.2 11.9-.9-.3"/>
<path d="m4.6 16.7.3-.9"/>
<path d="m7.6 16.7-.4-1"/>
<path d="m4.8 10.3-.4-1"/>
<path d="m2.3 14.6 1-.4"/>
<path d="m8.7 11.8 1-.4"/>
<path d="m7.4 9.3-.3.9"/>
<path d="M14 2v6h6"/>
<path d="M4 5.5V4a2 2 0 0 1 2-2h8.5L20 7.5V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-1.5"/>
</svg>`,Ww=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-folder-cog">
<circle cx="18" cy="18" r="3"/>
<path d="M10.5 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v3.5"/>
<path d="m21.7 19.4-.9-.3"/>
<path d="m15.2 16.9-.9-.3"/>
<path d="m16.6 21.7.3-.9"/>
<path d="m19.1 15.2.3-.9"/>
<path d="m19.6 21.7-.4-1"/>
<path d="m16.8 15.3-.4-1"/>
<path d="m14.3 19.6 1-.4"/>
<path d="m20.7 16.8 1-.4"/>
</svg>`,Vw=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-server-cog">
<circle cx="12" cy="12" r="3"/><path d="M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5"/>
<path d="M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5"/>
<path d="M6 6h.01"/><path d="M6 18h.01"/>
<path d="m15.7 13.4-.9-.3"/>
<path d="m9.2 10.9-.9-.3"/>
<path d="m10.6 15.7.3-.9"/>
<path d="m13.6 15.7-.4-1"/>
<path d="m10.8 9.3-.4-1"/>
<path d="m8.3 13.6 1-.4"/>
<path d="m14.7 10.8 1-.4"/>
<path d="m13.4 8.3-.3.9"/>
</svg>`,$w=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pilcrow">
<path d="M13 4v16"/>
<path d="M17 4v16"/>
<path d="M19 4H9.5a4.5 4.5 0 0 0 0 9H13"/>
</svg>`,Gw=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-function-square">
<rect width="18" height="18" x="3" y="3" rx="2" ry="2"/>
<path d="M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3"/>
<path d="M9 11.2h5.7"/>
</svg>`,Qw=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-gantt-chart-square">
<rect width="18" height="18" x="3" y="3" rx="2"/>
<path d="M9 8h7"/>
<path d="M8 12h6"/>
<path d="M11 16h5"/>
</svg>`,Zw=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-clipboard-list">
<rect width="8" height="4" x="8" y="2" rx="1" ry="1"/>
<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/>
<path d="M12 11h4"/>
<path d="M12 16h4"/>
<path d="M8 11h.01"/>
<path d="M8 16h.01"/>
</svg>`,Jw=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-plus">
<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20"/>
<path d="M9 10h6"/>
<path d="M12 7v6"/>
</svg>`,Xw=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-heading-1">
<path d="M4 12h8"/>
<path d="M4 18V6"/>
<path d="M12 18V6"/>
<path d="m17 12 3-2v8"/>
</svg>`,ek=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-superscript">
<path d="m4 19 8-8"/>
<path d="m12 19-8-8"/>
<path d="M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06"/>
</svg>`,ik=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-code-2">
<path d="M4 22h14a2 2 0 0 0 2-2V7.5L14.5 2H6a2 2 0 0 0-2 2v4"/>
<polyline points="14 2 14 8 20 8"/>
<path d="m9 18 3-3-3-3"/>
<path d="m5 12-3 3 3 3"/>
</svg>`,tk=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings">
<path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/>
<circle cx="12" cy="12" r="3"/>
</svg>`,nk=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-bug-play">
<path d="m8 2 1.88 1.88"/>
<path d="M14.12 3.88 16 2"/>
<path d="M9 7.13v-1a3.003 3.003 0 1 1 6 0v1"/>
<path d="M18 11a4 4 0 0 0-4-4h-4a4 4 0 0 0-4 4v3a6.1 6.1 0 0 0 2 4.5"/>
<path d="M6.53 9C4.6 8.8 3 7.1 3 5"/>
<path d="M6 13H2"/>
<path d="M3 21c0-2.1 1.7-3.9 3.8-4"/>
<path d="M20.97 5c0 2.1-1.6 3.8-3.5 4"/>
<path d="m12 12 8 5-8 5Z"/>
</svg>`,rk=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-clipboard">
<rect width="8" height="4" x="8" y="2" rx="1" ry="1"/>
<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/>
</svg>`,ak=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check">
<polyline points="20 6 9 17 4 12"/>
</svg>`,Ce={folder:{id:"lint-folder",source:Ww},file:{id:"lint-file",source:Uw},vault:{id:"lint-vault",source:Vw},whitespace:{id:"lint-whitespace",source:$w},math:{id:"lint-math",source:Gw},content:{id:"lint-content",source:Qw},paste:{id:"lint-paste",source:Zw},custom:{id:"lint-custom",source:Jw},heading:{id:"lint-heading",source:Xw},footer:{id:"lint-footer",source:ek},yaml:{id:"lint-yaml",source:ik},general:{id:"lint-general",source:tk},debug:{id:"lint-debug",source:nk},clipboard:{id:"linter-clipboard",source:rk},success:{id:"linter-success",source:ak}};var Yn=require("obsidian");var ko=class{constructor(){this.disabledRules=[]}lintText(t){this.skipFile=!1;let i=t.oldText;if([this.disabledRules,this.skipFile]=$s(i),this.skipFile)return i;zt(A("logs.rule-running"));let n=A("logs.pre-rules");zt(n);let r=this.runBeforeRegularRules(t);Ji(n);let a=A("logs.disabled-text");for(let o of qi){if(this.disabledRules.includes(o.alias)){ii(o.alias+" "+a);continue}else if(o.hasSpecialExecutionOrder||o.type==="Paste")continue;[r]=mt.applyIfEnabledBase(o,r,t.settings,{fileCreatedTime:t.fileInfo.createdAtFormatted,fileModifiedTime:t.fileInfo.modifiedAtFormatted,fileName:t.fileInfo.name,locale:t.momentLocale,minimumNumberOfDollarSignsToBeAMathBlock:t.settings.commonStyles.minimumNumberOfDollarSignsToBeAMathBlock,aliasArrayStyle:t.settings.commonStyles.aliasArrayStyle,tagArrayStyle:t.settings.commonStyles.tagArrayStyle,defaultEscapeCharacter:t.settings.commonStyles.escapeCharacter,removeUnnecessaryEscapeCharsForMultiLineArrays:t.settings.commonStyles.removeUnnecessaryEscapeCharsForMultiLineArrays})}let s=A("logs.custom-regex");return zt(s),r=this.runCustomRegexReplacement(t.settings.customRegexes,r),Ji(s),t.oldText=r,this.runAfterRegularRules(i,t)}runBeforeRegularRules(t){let i=t.oldText;return[i]=Vt.applyIfEnabled(i,t.settings,this.disabledRules),[i]=Ut.applyIfEnabled(i,t.settings,this.disabledRules,{defaultEscapeCharacter:t.settings.commonStyles.escapeCharacter}),[i]=$t.applyIfEnabled(i,t.settings,this.disabledRules,{minimumNumberOfDollarSignsToBeAMathBlock:t.settings.commonStyles.minimumNumberOfDollarSignsToBeAMathBlock}),i}runAfterRegularRules(t,i){let n=i.oldText,r=A("logs.post-rules");zt(r),[n]=Ht.applyIfEnabled(n,i.settings,this.disabledRules),[n]=cn.applyIfEnabled(n,i.settings,this.disabledRules,{fileName:i.fileInfo.name,defaultEscapeCharacter:i.settings.commonStyles.escapeCharacter}),[n]=on.applyIfEnabled(n,i.settings,this.disabledRules,{fileName:i.fileInfo.name,aliasArrayStyle:i.settings.commonStyles.aliasArrayStyle,defaultEscapeCharacter:i.settings.commonStyles.escapeCharacter,removeUnnecessaryEscapeCharsForMultiLineArrays:i.settings.commonStyles.removeUnnecessaryEscapeCharsForMultiLineArrays}),[n]=jt.applyIfEnabled(n,i.settings,this.disabledRules),[n]=Wt.applyIfEnabled(n,i.settings,this.disabledRules,{defaultEscapeCharacter:i.settings.commonStyles.escapeCharacter}),[n]=an.applyIfEnabled(n,i.settings,this.disabledRules);let a=i.getCurrentTime(),s;[n,s]=ht.applyIfEnabled(n,i.settings,this.disabledRules,{fileCreatedTime:i.fileInfo.createdAtFormatted,fileModifiedTime:i.fileInfo.modifiedAtFormatted,currentTime:a,alreadyModified:t!=n,locale:i.momentLocale});let o=ht.getRuleOptions(i.settings);return a=i.getCurrentTime(),o.convertToUTC&&(a=a.utc()),[n]=sn.applyIfEnabled(n,i.settings,this.disabledRules,{currentTimeFormatted:a.format(o.format.trimEnd()),yamlTimestampDateModifiedEnabled:s&&o.dateModified,dateModifiedKey:o.dateModifiedKey}),Ji(r),Ji(A("logs.rule-running")),n}runCustomCommands(t,i){if(this.skipFile)return;ii(A("logs.running-custom-lint-command"));let n=new Set;for(let r of t){if(r.id){if(n.has(r.id)){Yi(A("logs.custom-lint-duplicate-warning").replace("{COMMAND_NAME}",r.name));continue}}else continue;try{n.add(r.id),i.executeCommandById(r.id)}catch(a){Gs(a,`${A("logs.custom-lint-error-message")} ${r.id}`)}}}runCustomRegexReplacement(t,i){return Ee([h.customIgnore],i,n=>{ii(A("logs.running-custom-regex"));let r=n,a=n;for(let s of t){let o=s.find===void 0||s.find==""||s.find===null,l=s.replace===void 0||s.replace===null;if(o||l)continue;let c=s.label;c&&c.trim()!=""&&(c+=`:
`),c+=`/${s.find}/${s.flags}/${s.replace}/`,ii(c);let d=new RegExp(`${s.find}`,s.flags);r=r.replace(d,uu(s.replace)),a!=r&&ii(r),a=r}return r})}runPasteLint(t,i,n){let r=n.oldText;return[r]=Xt.applyIfEnabled(r,n.settings,[]),[r]=nn.applyIfEnabled(r,n.settings,[]),[r]=tn.applyIfEnabled(r,n.settings,[]),[r]=Zt.applyIfEnabled(r,n.settings,[]),[r]=en.applyIfEnabled(r,n.settings,[]),[r]=Gt.applyIfEnabled(r,n.settings,[],{lineContent:t,selectedText:i}),[r]=Qt.applyIfEnabled(r,n.settings,[],{lineContent:t,selectedText:i}),[r]=Yt.applyIfEnabled(r,n.settings,[],{lineContent:t}),r}};function Ma(e,t=null,i,n){let r=t?(0,Yn.moment)(t.stat.ctime):(0,Yn.moment)();r.locale(i);let a=t?(0,Yn.moment)(t.stat.mtime):(0,Yn.moment)();a.locale(i);let s=a.format(),o=r.format();return{oldText:e,fileInfo:{name:t?t.basename:"",createdAtFormatted:o,modifiedAtFormatted:s},settings:n,momentLocale:i,getCurrentTime:()=>{let l=(0,Yn.moment)();return l.locale(i),l}}}var zo=require("obsidian");var qa=class extends zo.Modal{constructor(t,i,n,r,a,s=!1){super(t),this.modalEl.addClass("confirm-modal"),this.contentEl.createEl("h3",{text:A("warning-text")}).style.textAlign="center",s&&(this.contentEl.createEl("p",{text:A("custom-command-warning")}).style.fontWeight="bold"),this.contentEl.createEl("p",{text:i+" "+A("file-backup-text")}).id="confirm-dialog",this.contentEl.createDiv("modal-button-container",o=>{o.createEl("button",{text:A("cancel-button-text")}).addEventListener("click",()=>this.close());let l=o.createEl("button",{attr:{type:"submit"},cls:"mod-cta",text:n});l.addEventListener("click",async c=>{new zo.Notice(r),this.close(),await a()}),setTimeout(()=>{l.focus()},50)})}};var yt=require("obsidian");var wm=require("obsidian");var sk={General:Ce.general.id,Custom:Ce.custom.id,YAML:Ce.yaml.id,Heading:Ce.heading.id,Footnote:Ce.footer.id,Content:Ce.content.id,Spacing:Ce.whitespace.id,Paste:Ce.paste.id,Debug:Ce.debug.id},ok={General:"tabs.names.general",Custom:"tabs.names.custom",YAML:"tabs.names.yaml",Heading:"tabs.names.heading",Footnote:"tabs.names.footnote",Content:"tabs.names.content",Spacing:"tabs.names.spacing",Paste:"tabs.names.paste",Debug:"tabs.names.debug"},Ii=class{constructor(t,i,n,r,a){this.name=n;this.isMobile=r;this.plugin=a;this.searchSettingInfo=[];this.navButton=t.createDiv("linter-navigation-item");let s="linter-desktop";r&&(s="linter-mobile"),this.navButton.addClass(s),(0,wm.setIcon)(this.navButton.createSpan({cls:"linter-navigation-item-icon"}),sk[n]);let o=A(ok[n]);this.navButton.createSpan().setText(o),this.contentEl=i.createDiv("linter-tab-settings"),this.contentEl.id=n.toLowerCase().replace(" ","-"),this.headingEl=this.contentEl.createEl("h2",{text:o}),ci(this.headingEl)}addSettingSearchInfo(t,i="",n="",r=null,a=null){this.searchSettingInfo.push({containerEl:t,name:i.toLowerCase(),description:n.toLowerCase(),options:r,alias:a})}addSettingSearchInfoForGeneralSettings(t){this.searchSettingInfo.push({containerEl:t.containerEl,name:t.name.toLowerCase(),description:t.description.toLowerCase(),options:null,alias:null})}updateTabDisplayMode(t,i="the status is still the same"){switch(t?(this.navButton.addClass("linter-navigation-item-selected"),Mi(this.contentEl)):(this.navButton.removeClass("linter-navigation-item-selected"),ci(this.contentEl)),i){case"entering search mode by focusing on the search input box":Mi(this.contentEl),Mi(this.headingEl);for(let n of this.searchSettingInfo)Mi(n.containerEl);break;case"leaving search mode by selecting a tab":ci(this.headingEl);for(let n of this.searchSettingInfo)Mi(n.containerEl);break}}};var Em=require("obsidian");var km=require("obsidian");var Ia={ruleConfigs:{},lintOnSave:!1,recordLintOnSaveLogs:!1,displayChanged:!0,lintOnFileChange:!1,displayLintOnFileChangeNotice:!1,settingsConvertedToConfigKeyValues:!1,foldersToIgnore:[],filesToIgnore:[],linterLocale:"system-default",logLevel:"ERROR",lintCommands:[],customRegexes:[],commonStyles:{aliasArrayStyle:"single-line",tagArrayStyle:"single-line",minimumNumberOfDollarSignsToBeAMathBlock:2,escapeCharacter:'"',removeUnnecessaryEscapeCharsForMultiLineArrays:!1}};var ft=class{constructor(t,i,n,r,a,s=null){this.containerEl=t;this.keyToUpdate=r;this.plugin=a;this.beforeSave=s;this.name=A(i),this.description=A(n)}async saveValue(t){let i=this.keyToUpdate.split(".");i.length===2?this.plugin.settings[i[0]][i[1]]=t:this.plugin.settings[this.keyToUpdate]=t,this.beforeSave&&this.beforeSave(),await this.plugin.saveSettings()}getDefaultValue(){let t=this.keyToUpdate.split(".");return t.length===2?Ia[t[0]][t[1]]:Ia[this.keyToUpdate]}getString(){return er(this.plugin.settings,this.keyToUpdate)??this.getDefaultValue()}getBoolean(){return Id(this.plugin.settings,this.keyToUpdate)??this.getDefaultValue()}getNumber(){return qd(this.plugin.settings,this.keyToUpdate)??this.getDefaultValue()}parseNameAndDescription(){Oi(this.name,this.setting.nameEl,this.plugin.settingsTab.component),Oi(this.description,this.setting.descEl,this.plugin.settingsTab.component)} Line truncated
`," "));let p=this.contentEl.createDiv(),g=new Lo(p,this.plugin.settingsTab.component,this.plugin.settings.filesToIgnore,()=>{this.plugin.saveSettings()});this.addSettingSearchInfo(p,g.name,g.description.replaceAll(`
`," "))}};var Eo=class extends Ii{constructor(i,n,r,a,s,o){super(i,n,r,s,o);this.rules=a;this.display()}display(){for(let i of this.rules){let n=this.contentEl.createDiv();n.id=i.alias,n.createEl(this.isMobile?"h4":"h3",{},a=>{a.innerHTML=`<a href="${i.getURL()}">${i.getName()}</a>`});let r=[];for(let a of i.options)a.display(n,this.plugin.settings,this.plugin),r.push(a.getSearchInfo());this.addSettingSearchInfo(n,i.getName().toLowerCase(),i.getDescription().toLowerCase(),r,n.id)}}};var Cm=require("obsidian");var Fa=class extends dt{constructor(i,n,r=[]){super(i,n);this.app=i;this.inputEl=n;this.valuesToExclude=r}getSuggestions(i){let n=this.app.commands.listCommands();if(!n)return[];let r=n.filter(o=>{for(let l of this.valuesToExclude)if(l.id==o.id&&!(this.inputEl.hasAttribute("commandId")&&this.inputEl.getAttribute("commandId")==o.id))return!1;return!0}),a=[],s=i.toLowerCase();return r.forEach(o=>{(o.id.contains(s)||o.name.toLowerCase().contains(s))&&a.push(o)}),a}renderSuggestion(i,n){n.setText(i.name)}selectSuggestion(i){this.inputEl.value=i.name,this.inputEl.setAttribute("commandId",i.id),this.inputEl.trigger("input"),this.close()}};var Co=class extends di{constructor(i,n,r,a,s){super(i,n,A("options.custom-command.name"),A("options.custom-command.description"),A("options.custom-command.warning"),A("options.custom-command.add-input-button-text"),s,()=>{let o={id:"",name:""};this.lintCommands.push(o),this.saveSettings(),this.addCommand(o,this.lintCommands.length-1,!0)});this.lintCommands=r;this.app=a;this.display()}showInputEls(){this.lintCommands.forEach((i,n)=>{this.addCommand(i,n)})}addCommand(i,n,r=!1){new Cm.Setting(this.inputElDiv).addSearch(a=>{new Fa(this.app,a.inputEl,this.lintCommands),a.setPlaceholder(A("options.custom-command.command-search-placeholder-text")).setValue(i.name).onChange(s=>{let o={id:a.inputEl.getAttribute("commandId"),name:s};o.name&&o.id?(this.lintCommands[n]=o,this.saveSettings()):!o.name&&!o.id&&(this.lintCommands[n]=o,this.saveSettings())}),a.inputEl.setAttr("tabIndex",n),a.inputEl.addClass("linter-custom-command"),r&&a.inputEl.focus()}).addExtraButton(a=>{a.setIcon("up-chevron-glyph").setTooltip(A("options.custom-command.move-up-tooltip")).onClick(()=>{this.arrayMove(n,n-1),this.saveSettings(),this.resetInputEls()})}).addExtraButton(a=>{a.setIcon("down-chevron-glyph").setTooltip(A("options.custom-command.move-down-tooltip")).onClick(()=>{this.arrayMove(n,n+1),this.saveSettings(),this.resetInputEls()})}).addExtraButton(a=>{a.setIcon("cross").setTooltip(A("options.custom-command.delete-tooltip")).onClick(()=>{this.lintCommands.splice(n,1),this.saveSettings(),this.resetInputEls()})})}arrayMove(i,n){if(n<0||n===this.lintCommands.length)return;let r=this.lintCommands[i];this.lintCommands[i]=this.lintCommands[n],this.lintCommands[n]=r}};var jc=require("obsidian");var ck="gm",Oo=class extends di{constructor(i,n,r,a){super(i,n,A("options.custom-replace.name"),A("options.custom-replace.description"),A("options.custom-replace.warning"),A("options.custom-replace.add-input-button-text"),a,()=>{let s={label:"",find:"",replace:"",flags:ck};this.regexes.push(s),this.saveSettings(),this.addRegex(s,this.regexes.length-1,!0)});this.regexes=r;this.display(),this.inputElDiv.addClass("linter-custom-regex-replacement-container")}showInputEls(){this.regexes.forEach((i,n)=>{this.addRegex(i,n)})}addRegex(i,n,r=!1){let a=this.inputElDiv.createDiv({cls:"linter-custom-regex-replacement"}),s=a.createDiv(),o=new jc.Setting(s).addText(d=>{d.setPlaceholder(A("options.custom-replace.label-placeholder-text")).setValue(i.label).onChange(u=>{this.regexes[n].label=u,this.saveSettings()}),d.inputEl.setAttr("inputIndex",n),d.inputEl.addClass("linter-custom-regex-replacement-label-input"),r&&d.inputEl.focus()});o.controlEl.addClass("linter-custom-regex-replacement-label"),o.descEl.remove(),o.infoEl.remove(),o.nameEl.remove();let l=a.createDiv();new jc.Setting(l).addText(d=>{d.setPlaceholder(A("options.custom-replace.regex-to-find-placeholder-text")).setValue(i.find).onChange(u=>{this.regexes[n].find=u,this.saveSettings()}),d.inputEl.addClass("linter-custom-regex-replacement-normal-input")}).addText(d=>{d.setPlaceholder(A("options.custom-replace.flags-placeholder-text")).setValue(i.flags).onChange(u=>{this.regexes[n].flags=u,this.saveSettings()}),d.inputEl.addClass("linter-custom-regex-replacement-flags")}).addText(d=>{d.setPlaceholder(A("options.custom-replace.regex-to-replace-placeholder-text")).setValue(i.replace).onChange(u=>{this.regexes[n].replace=u,this.saveSettings()}),d.inputEl.addClass("linter-custom-regex-replacement-normal-input")}).addExtraButton(d=>{d.setIcon("up-chevron-glyph").setTooltip(A("options.custom-replace.move-up-tooltip")).onClick(()=>{this.arrayMove(n,n-1),this.saveSettings(),this.resetInputEls()})}).addExtraButton(d=>{d.setIcon("down-chevron-glyph").setTooltip(A("options.custom-replace.move-down-tooltip")).onClick(()=>{this.arrayMove(n,n+1),this.saveSettings(),this.resetInputEls()})}Line truncated
`," ")+n.warning.replaceAll(`
`," "));let r=this.contentEl.createDiv(),a=new Oo(r,this.plugin.settingsTab.component,this.plugin.settings.customRegexes,()=>{this.plugin.saveSettings()});this.addSettingSearchInfo(r,a.name,a.description.replaceAll(`
`," ")+a.warning.replaceAll(`
`," "))}};var Om=require("obsidian");var qo=class{constructor(t,i,n,r){this.containerEl=t;this.searchZeroState=i;this.tabNameToTab=n;this.onFocus=r;this.searchSettingInfo=new Map;for(let[a,s]of n)this.searchSettingInfo.set(a,s.searchSettingInfo);this.display()}display(){let t=new Om.Setting(this.containerEl);t.settingEl.style.border="none",t.addSearch(i=>{this.search=i}),this.search.setPlaceholder(A("tabs.default-search-bar-text")),this.search.inputEl.onfocus=()=>{this.onFocus()},this.search.onChange(i=>{this.searchSettings(i.toLowerCase())})}searchSettings(t){let i=new Set,n=function(r,a){Mi(r),i.has(a)||i.add(a)};for(let[r,a]of this.searchSettingInfo)for(let s of a)if(t.trim()===""||s.alias?.includes(t)||s.description.includes(t)||s.name.includes(t))n(s.containerEl,r);else if(s.options)for(let o of s.options){if(o.description.toLowerCase().includes(t)||o.name.toLowerCase().includes(t)){n(s.containerEl,r);break}else if(o.options){for(let l of o.options)if(l.description.toLowerCase().includes(t)||l.value.toLowerCase().includes(t)){n(s.containerEl,r);break}}ci(s.containerEl)}else ci(s.containerEl);for(let[r,a]of this.tabNameToTab)i.has(r)?Mi(a.headingEl):ci(a.headingEl);i.size===0?Mi(this.searchZeroState):ci(this.searchZeroState)}focusOnInput(){this.search.inputEl.focus()}};var Mm=gn(Za());var Pn=require("obsidian");var Ra=class{constructor(t,i,n,r=!0){this.containerEl=t;this.name=i;this.description=n;this.disabled=r;this.display()}display(){let t=this.containerEl.createDiv(),i=t.createDiv("setting-item-info");this.nameEl=i.createDiv("setting-item-name"),this.nameEl.setText(this.name),this.descEl=i.createDiv("setting-item-description"),this.descEl.setText(this.description),this.inputContainerEl=t.createDiv("full-width-textbox-input-wrapper"),this.inputContainerEl.onmouseover=()=>{this.getInput().trim()!=""&&this.copyEl.removeClass("linter-visually-hidden")},this.inputContainerEl.onmouseleave=()=>{this.copyEl.addClass("linter-visually-hidden")},this.inputEl=this.inputContainerEl.createEl("textarea",{cls:"full-width"}),this.inputEl.spellcheck=!1,this.inputEl.disabled=this.disabled,this.copyEl=this.inputContainerEl.createDiv({cls:"settings-copy-button linter-visually-hidden ",attr:{"aria-label":A("copy-aria-label")}}),this.copyIconEl=this.copyEl.createSpan(),(0,Pn.setIcon)(this.copyIconEl,"linter-clipboard"),this.copyIconEl.onclick=()=>{this.handleCopy(this.copyIconEl)}}getInput(){return this.inputEl.value}handleCopy(t){navigator.clipboard.writeText(this.getInput()).then(()=>{(0,Pn.setIcon)(t,"linter-success"),setTimeout(()=>{(0,Pn.setIcon)(t,"linter-clipboard")},1500)},i=>{new Pn.Notice(`${A("notice-text.copy-to-clipboard-failed")+i}`,0)})}};var dk=Object.keys(Mm.default.levels),Io=class extends Ii{constructor(t,i,n,r){super(t,i,"Debug",n,r),this.display()}display(){let t=this.contentEl.createDiv(),i={isForEnum:!0,values:dk,descriptions:[]};this.addSettingSearchInfoForGeneralSettings(new $i(t,"tabs.debug.log-level.name","tabs.debug.log-level.description","logLevel",this.plugin,i,async()=>{is(this.plugin.settings.logLevel)})),t=this.contentEl.createDiv();let n=A("tabs.debug.linter-config.name"),r=A("tabs.debug.linter-config.description");new Ra(t,n,r).inputEl.setText(JSON.stringify(this.plugin.settings,null,2)),this.addSettingSearchInfo(t,n,r),t=this.contentEl.createDiv(),this.addSettingSearchInfoForGeneralSettings(new Bi(t,"tabs.debug.log-collection.name","tabs.debug.log-collection.description","recordLintOnSaveLogs",this.plugin)),t=this.contentEl.createDiv(),n=A("tabs.debug.linter-logs.name"),r=A("tabs.debug.linter-logs.description");let s=new Ra(t,n,"");s.inputEl.setText(Xa.join(`
`)),Oi(r,s.descEl,this.plugin.settingsTab.component),this.addSettingSearchInfo(t,n,r)}};var Bo=class extends yt.PluginSettingTab{constructor(i,n){super(i,n);this.plugin=n;this.tabNameToTab=new Map;this.selectedTab="General";this.component=new yt.Component}display(){let{containerEl:i}=this;this.component.load(),i.empty();let n=i.createDiv("linter-setting-title");yt.Platform.isMobile?n.addClass("linter-mobile"):n.createEl("h1").setText(A("linter-title")),this.navContainer=i.createEl("nav",{cls:"linter-setting-header"}),this.tabNavEl=this.navContainer.createDiv("linter-setting-tab-group"),this.settingsContentEl=i.createDiv("linter-setting-content"),this.addTabs(yt.Platform.isMobile),this.createSearchZeroState(yt.Platform.isMobile),this.generateSearchBar(n),this.selectedTab==""&&this.tabSearcher.focusOnInput()}hide(){this.component.unload()}addTabs(i){this.addTab(new To(this.tabNavEl,this.settingsContentEl,i,this.plugin,this.app));for(let n of Object.values(R))this.addTab(new Eo(this.tabNavEl,this.settingsContentEl,n,Nt.get(n),i,this.plugin));this.addTab(new Mo(this.tabNavEl,this.settingsContentEl,i,this.app,this.plugin)),this.addTab(new Io(this.tabNavEl,this.settingsContentEl,i,this.plugin))}generateSearchBar(i){this.tabSearcher=new qo(i,this.searchZeroState,this.tabNameToTab,()=>{for(let n of this.tabNameToTab.values()){n.updateTabDisplayMode(!1,"entering search mode by focusing on the search input box");let r=this.tabSearcher.search.getValue();this.selectedTab==""&&r.trim()!=""&&this.tabSearcher.searchSettings(r.toLowerCase()),this.selectedTab=""}})}createSearchZeroState(i){this.searchZeroState=this.settingsContentEl.createDiv(),ci(this.searchZeroState),this.searchZeroState.createEl(i?"h3":"h2",{text:A("empty-search-results-text")}).style.textAlign="center"}addTab(i){i.navButton.onclick=()=>{this.onTabClick(i.name)},i.updateTabDisplayMode(this.selectedTab===i.name,"the status is still the same"),this.tabNameToTab.set(i.name,i)}onTabClick(i){if(this.selectedTab!==i){if(this.selectedTab=="")for(let[n,r]of this.tabNameToTab)r.updateTabDisplayMode(n===i,"leaving search mode by selecting a tab");else ci(this.searchZeroState),this.tabNameToTab.get(i).updateTabDisplayMode(!0),this.tabNameToTab.get(this.selectedTab).updateTabDisplayMode(!1);this.selectedTab=i}}};var Im=require("obsidian");var uk=/^---\n/gm,qm=`${Sn}:`,Fo=class extends Im.EditorSuggest{constructor(i){super(i.app);this.plugin=i;this.inline=!1;let n=A("all-rules-option");this.ruleInfo=[{displayName:n,name:n.toLowerCase(),alias:"all"}];for(let r of qi){let a=r.getName();this.ruleInfo.push({displayName:a,name:a.toLowerCase(),alias:r.alias})}}onTrigger(i,n,r){let a=n.getLine(i.line).toLowerCase();if(a.startsWith(qm)||this.disabledRulesIsEndOfStartOfFileToCursor(n.getRange({line:0,ch:0},i))){this.inline=a.startsWith(qm);let o=n.getLine(i.line).substring(0,i.ch),l=o.match(/(\S+)$/)?.first().replaceAll("[","").replaceAll("]","");if(l)return{end:i,start:{ch:o.lastIndexOf(l),line:i.line},query:l}}return null}getSuggestions(i){let[n,r]=$s(i.editor.getValue());if(r)return[];let a=i.query.toLowerCase();return this.ruleInfo.filter(o=>(o.name.contains(a)||o.alias.contains(a))&&!n.includes(o.alias))}renderSuggestion(i,n){n.addClass("mod-complex");let r=n.createDiv({cls:"suggestion-content"});r.createDiv({cls:"suggestion-title"}).setText(`${i.displayName}`),r.createDiv({cls:"suggestion-note"}).setText(`${i.alias}`)}selectSuggestion(i){if(this.context){let n=i.alias;this.inline?n=`${n},`:n=`${n}
-`,this.context.editor.replaceRange(`${n} `,this.context.start,this.context.end)}}disabledRulesIsEndOfStartOfFileToCursor(i){if(!i||!i.length||i.match(uk)?.length!=1)return!1;let n=de(i+`
`,Sn)?.trimEnd();return n===null?!1:i.trimEnd().endsWith(n)}};var Km=gn(Dm()),_m=gn(Za()),pk={en:"en-gb",zh:"zh-cn","zh-TW":"zh-tw",ru:"ru",ko:"ko",it:"it",id:"id",ro:"ro","pt-BR":"pt-br",cz:"cs",da:"da",de:"de",es:"es",fr:"fr",no:"nn",pl:"pl",pt:"pt",tr:"tr",hi:"hi",nl:"nl",ar:"ar",ja:"ja"},bt=0,Do=class extends X.Plugin{constructor(){super(...arguments);this.eventRefs=[];this.isEnabled=!0;this.rulesRunner=new ko;this.overridePaste=!1;this.hasCustomCommands=!1;this.hasLoadedFiles=!1;this.customCommandsLock=new Km.default;this.originalSaveCallback=null;this.editorLintFiles=[];this.fileLintFiles=new Set;this.customCommandsCallback=null;this.currentlyOpeningSidebar=!1}async onload(){rs(window.localStorage.getItem("language")),vn(A("logs.plugin-load")),this.isEnabled=!0;for(let i in Ce){let n=Ce[i];(0,X.addIcon)(n.id,n.source)}await this.loadSettings(),this.addCommands(),this.registerEventsAndSaveCallback(),this.registerEditorSuggest(new Fo(this)),this.settingsTab=new Bo(this.app,this),this.addSettingTab(this.settingsTab)}async onunload(){vn(A("logs.plugin-unload")),this.isEnabled=!1;for(let n of this.eventRefs)this.app.workspace.offref(n);let i=this.app.commands?.commands?.["editor:save-file"];i&&i.callback&&this.originalSaveCallback&&(i.callback=this.originalSaveCallback)}async loadSettings(){let i=await this.loadData();this.settings=Object.assign({},Ia,i),typeof this.settings.logLevel=="number"&&(this.settings.logLevel=Dd(this.settings.logLevel)),is(this.settings.logLevel),this.setOrUpdateMomentInstance(),this.settings.settingsConvertedToConfigKeyValues||this.moveConfigValuesToKeyBasedFormat();for(let n of qi)if(this.settings.ruleConfigs[n.alias]||(this.settings.ruleConfigs[n.alias]=n.getDefaultOptions()),n.alias=="space-between-chinese-japanese-or-korean-and-english-or-numbers"){let r=n.getDefaultOptions();"english-symbols-punctuation-before"in this.settings.ruleConfigs[n.alias]||(this.settings.ruleConfigs[n.alias]["english-symbols-punctuation-before"]=r["english-symbols-punctuation-before"]),"english-symbols-punctuation-after"in this.settings.ruleConfigs[n.alias]||(this.settings.ruleConfigs[n.alias]["english-symbols-punctuation-after"]=r["english-symbols-punctuation-after"])}this.updatePasteOverrideStatus(),this.updateHasCustomCommandStatus()}async saveSettings(){await this.saveData(this.settings),this.updatePasteOverrideStatus(),this.updateHasCustomCommandStatus()}addCommands(){let i=this;this.addCommand({id:"lint-file",name:A("commands.lint-file.name"),editorCheckCallback(n,r,a){if(n)return i.isMarkdownFile(a.file);i.runLinterEditor(r)},icon:Ce.file.id,hotkeys:[{modifiers:["Mod","Alt"],key:"L"}]}),this.addCommand({id:"lint-file-unless-ignored",name:A("commands.lint-file-unless-ignored.name"),editorCheckCallback(n,r,a){if(n)return i.isMarkdownFile(a.file);i.shouldIgnoreFile(a.file)||i.runLinterEditor(r)},icon:Ce.file.id}),this.addCommand({id:"lint-all-files",name:A("commands.lint-all-files.name"),icon:Ce.vault.id,callback:()=>{let n=A("commands.lint-all-files.start-message"),r=A("commands.lint-all-files.submit-button-text"),a=A("commands.lint-all-files.submit-button-notice-text");new qa(this.app,n,r,a,()=>this.runLinterAllFiles(this.app),this.settings.lintCommands&&this.settings.lintCommands.length>0).open()}}),this.addCommand({id:"lint-all-files-in-folder",name:A("commands.lint-all-files-in-folder.name"),icon:Ce.folder.id,editorCheckCallback:(n,r,a)=>{if(n)return!a.file.parent.isRoot();this.createFolderLintModal(a.file.parent)}}),this.addCommand({id:"paste-as-plain-text",name:A("commands.paste-as-plain-text.name"),editorCheckCallback:(n,r)=>{if(n)return this.overridePaste;this.pasteAsPlainText(r)}})}registerEventsAndSaveCallback(){let i=this.app.workspace.on("editor-paste",a=>{a.defaultPrevented||!this.overridePaste||this.modifyPasteEvent(a)});this.registerEvent(i),this.eventRefs.push(i),i=this.app.workspace.on("file-menu",(a,s,o)=>this.onMenuOpenCallback(a,s,o)),this.registerEvent(i),this.eventRefs.push(i),this.lastActiveFile=this.app.workspace.getActiveFile(),i=this.app.workspace.on("active-leaf-change",()=>this.onActiveLeafChange()),this.registerEvent(i),this.eventRefs.push(i),i=this.app.metadataCache.on("changed",a=>this.onMetadataCacheUpdatedCallback(a)),this.registerEvent(i),this.eventRefs.push(i);let n=this.app.commands?.commands?.["editor:save-file"];this.originalSaveCallback=n?.callback,typeof this.originalSaveCallback=="function"&&(n.callback=()=>{if(this.originalSaveCallback(),this.settings.lintOnSave&&this.isEnabled){let a=this.getEditor();if(a){let s=this.app.workspace.getActiveFile();!this.shouldIgnoreFile(s)&&this.isMarkdownFile(s)&&this.runLinterEditor(a)}}});let r=this;window.CodeMirrorAdapter.commands.save=()=>{r.app.commands.executeCommandById("editor:save-file")}}async onMetadataCacheUpdatedCallback(i){this.editorLintFiles.includes(i)?(this.editorLintFiles.remove(i),this.runCustomCommands(i)):this.fileLintFiles.has(i)&&(this.fileLintFiles.delete(i),this.runCustomCommandsInSidebar(i) Line truncated
${b.frontmatter}---`:(f=b.frontmatter,x+=3),i.replaceRange(f,i.offsetToPos(g.from),i.offsetToPos(g.to)),d=g.from+f.length+x}}let u=!1;l.forEach(g=>{let[b,f]=g;if(u=c.length<d,u&&c.length+f.length>=d&&b==vt.default.DIFF_INSERT){let x=d-c.length;c+=f.substring(0,x),f=f.substring(x),u=!1}if(!u){if(b==vt.default.DIFF_INSERT)i.replaceRange(f,this.endOfDocument(c));else if(b==vt.default.DIFF_DELETE){let x=this.endOfDocument(c),k=c;k+=f;let L=this.endOfDocument(k);i.replaceRange("",x,L)}}b!=vt.default.DIFF_DELETE&&(c+=f)});let m=l.map(g=>g[0]==vt.default.DIFF_INSERT?g[1].length:0).reduce((g,b)=>g+b,0),p=l.map(g=>g[0]==vt.default.DIFF_DELETE?g[1].length:0).reduce((g,b)=>g+b,0);this.displayChangedMessage(m,p),!m&&!p?this.runCustomCommands(n):this.editorLintFiles.push(n),nl(!1)}async setOrUpdateMomentInstance(){let i=localStorage.getItem("language")||"en",n=navigator.language?.toLowerCase(),r=pk[i];this.settings.linterLocale!=="system-default"?r=this.settings.linterLocale:n.startsWith(i)&&(r=n),this.momentLocale=r;let a=Ro.moment.locale(),s=Ro.moment.locale(r);ii(A("logs.moment-locale-not-found").replace("{MOMENT_LOCALE}",r).replace("{CURRENT_LOCALE}",s)),Ro.moment.locale(a)}displayChangedMessage(i,n){if(this.settings.displayChanged){let r=dm`
${i} ${A("notice-text.characters-added")}
${n} ${A("notice-text.characters-removed")}
`;new X.Notice(r)}}handleLintError(i,n,r,a=!0){let s=r.replace("{FILE_PATH}",i.path),o=A("logs.see-console");n instanceof Rn?a?new X.Notice(`${s} ${n.message}.
${o}`,bt):new X.Notice(`${n.message}.
${o}`,bt):new X.Notice(`${A("logs.unknown-error")} ${o}`,bt),Fd(s,n)}async modifyPasteEvent(i){let n=this.getEditor();if(!n)return;let r=i.clipboardData.getData("text/plain");if(!r)return;let a=r.trim();if(Ct.test(a)){console.log('failed: "'+a+'"'),Yi(A("logs.paste-link-warning"));return}if(console.log('passed: "'+a+'"'),i.stopPropagation(),i.preventDefault(),!i.defaultPrevented)return;let s=this.app.vault.getConfig("autoConvertHtml"),o=i.clipboardData.getData("text/html"),l=o&&s?(0,X.htmlToMarkdown)(o):r,c=n.listSelections();if(c.length===1){let d=c[0];l=this.rulesRunner.runPasteLint(this.getLineContent(n,d),n.getSelection()??"",Ma(l,null,this.momentLocale,this.settings)),n.replaceSelection(l)}else this.handleMultiCursorPaste(n,c,l)}handleMultiCursorPaste(i,n,r){let a=this.convertContentIntoProperPasteContent(n,r),s=[];n.forEach((o,l)=>{r=this.rulesRunner.runPasteLint(this.getLineContent(i,o),i.getRange(o.anchor,o.head)??"",Ma(a[l],null,this.momentLocale,this.settings)),s.push({text:r,from:o.anchor,to:o.head})}),i.transaction({changes:s})}convertContentIntoProperPasteContent(i,n){let r=n.split(`
`),a=[];if(r.length%i.length!==0)for(let s=0;s<i.length;s++)a.push(n);else{let s=r.length/i.length,o="";for(let l=0;l<r.length;l++)o+=r[l],(l+1===i.length||(l+1)%s===0)&&(a.push(o),o="")}return a}async pasteAsPlainText(i){let n=await navigator.clipboard.readText();if(!n){new X.Notice(A("notice-text.empty-clipboard"),bt);return}i.replaceSelection(n)}setCustomCommandCallback(i){(0,_m.warn)(A("logs.custom-command-callback-warning")),this.customCommandsCallback=i}async runCustomCommandsInSidebar(i){if(!this.settings.lintCommands||this.settings.lintCommands.length==0||!this.hasCustomCommands)return;let n=this.app.workspace.getRightLeaf(!1),r=this.getEditor();await this.customCommandsLock.acquire("command",async()=>{this.currentlyOpeningSidebar=!0,await n.openFile(i),this.rulesRunner.runCustomCommands(this.settings.lintCommands,this.app.commands),this.customCommandsCallback&&await this.customCommandsCallback(i)}),n.detach(),r&&r.focus(),this.currentlyOpeningSidebar=!1}async runCustomCommands(i){!this.settings.lintCommands||this.settings.lintCommands.length==0||!this.hasCustomCommands||await this.customCommandsLock.acquire("command",async()=>{try{this.rulesRunner.runCustomCommands(this.settings.lintCommands,this.app.commands)}catch(n){this.handleLintError(i,n,A("commands.lint-file.error-message")+" '{FILE_PATH}'",!1)}this.customCommandsCallback&&await this.customCommandsCallback(i)})}getEditor(){let i=this.app.workspace.getActiveViewOfType(X.MarkdownView);return i?i.editor:null}getCurrentMode(){let i=this.app.workspace.getActiveFileView();if(!i)return;let n=i.getState();return Object.hasOwn(n,"source")?n.source?"source":"preview":null}getLineContent(i,n){return i.getLine(n.anchor.line)}moveConfigValuesToKeyBasedFormat(){rs("en");for(let i of qi){let n=A("rules."+i.alias+".name"),r=this.settings.ruleConfigs[n];if(r!=null){let a=A("rules."+i.alias+".description"),s={enabled:r[a]??!1};for(let o of i.options){if(o.configKey==="enabled")continue;let l=A("rules."+i.alias+"."+o.configKey+".name");s[o.configKey]=r[l]??o.defaultValue}this.settings.ruleConfigs[i.alias]=s,delete this.settings.ruleConfigs[n]}}this.settings.settingsConvertedToConfigKeyValues=!0,this.saveSettings(),rs(window.localStorage.getItem("language"))}getAllFilesInFolder(i){let n=[],r=[i];for(let a of r)for(let s of a.children)s instanceof X.TFile&&this.isMarkdownFile(s)?n.push(s):s instanceof X.TFolder&&r.push(s);return n}updatePasteOverrideStatus(){for(let i of Nt.get("Paste"))if(i.getOptions(this.settings).enabled){this.overridePaste=!0;return}this.overridePaste=!1}updateHasCustomCommandStatus(){for(let i of this.settings.lintCommands)if(i.id&&i.id.trim()!=""){this.hasCustomCommands=!0;return}this.hasCustomCommands=!1}endOfDocument(i){let n=i.split(`
`);return{line:n.length-1,ch:n[n.length-1].length}}async loadCustomReplacements(){for(let i of this.settings.ruleConfigs["auto-correct-common-misspellings"]["extra-auto-correct-files"]??[])if(i.filePath!=""){let n=this.getFileFromPath(i.filePath);n&&(i.customReplacements=ds(nr(await this.app.vault.cachedRead(n))))}this.hasLoadedFiles=!0}getFileFromPath(i){let n=this.app.vault.getAbstractFileByPath((0,X.normalizePath)(i));return n instanceof X.TFile?n:null}};
/*! Bundled license information:
js-yaml/dist/js-yaml.mjs:
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
*/
+11
View File
@@ -0,0 +1,11 @@
{
"id": "obsidian-linter",
"name": "Linter",
"version": "1.26.0",
"minAppVersion": "1.5.7",
"description": "Formats and styles your notes. It can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular markdown contents like list, italics, and bold styles; and more with the use of custom rule options as well.",
"author": "Victor Tao",
"authorUrl": "https://github.com/platers",
"helpUrl": "https://platers.github.io/obsidian-linter/",
"isDesktopOnly": false
}
+244
View File
@@ -0,0 +1,244 @@
/**
* Based on https://github.com/Fevol/obsidian-translate/blob/master/src/ui/translator-components/SettingsPage.svelte
*/
.linter-navigation-item {
cursor: pointer;
border-radius: 100px;
border: 1px solid var(--background-modifier-border);
border-radius: 8px 8px 2px 2px;
font-weight: bold;
font-size: 16px;
display: flex;
flex-direction: row;
white-space: nowrap;
padding: 4px 6px;
align-items: center;
gap: 4px;
overflow: hidden;
background-color: var(--background-primary-secondary-alt);
transition: color 0.25s ease-in-out,
padding 0.25s ease-in-out,
background-color 0.35s cubic-bezier(0.45, 0.25, 0.83, 0.67),
max-width 0.35s cubic-bezier(0.57, 0.04, 0.58, 1);
height: 32px;
}
@media screen and (max-width: 1325px) {
.linter-navigation-item.linter-desktop {
max-width: 32px;
}
}
@media screen and (max-width: 800px) {
.linter-navigation-item.linter-mobile {
max-width: 32px;
}
}
.linter-navigation-item-icon {
padding-top: 5px;
}
.linter-navigation-item:hover {
border-color: var(--interactive-accent-hover);
border-bottom: 0px;
}
.linter-navigation-item-selected {
background-color: var(--interactive-accent) !important;
color: var(--text-on-accent);
padding: 4px 9px !important;
max-width: 100% !important;
border: 1px solid var(--background-modifier-border);
border-radius: 8px 8px 2px 2px;
border-bottom: 0px;
transition: color 0.25s ease-in-out,
padding 0.25s ease-in-out,
background-color 0.35s cubic-bezier(0.45, 0.25, 0.83, 0.67),
max-width 0.45s cubic-bezier(0.57, 0.04, 0.58, 1) 0.2s;
}
/**
* Based on https://github.com/phibr0/obsidian-commander/blob/main/src/styles.scss
*/
.linter {
transition: transform 400ms 0s;
}
.linter-setting-title {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 30px;
}
.linter-setting-title.linter-mobile {
justify-content: space-around;
}
.linter-setting-title h1 {
font-weight: 900;
margin-top: 6px;
margin-bottom: 12px;
}
.linter-setting-header {
margin-bottom: 24px;
overflow-y: hidden;
overflow-x: auto;
}
.linter-setting-header .linter-setting-tab-group {
display: flex;
align-items: flex-end;
flex-wrap: wrap;
width: 100%;
}
.linter-setting-tab-group {
margin-top: 6px;
padding-left: 2px;
padding-right: 2px;
border-bottom: 2px solid var(--background-modifier-border);
}
.linter-setting-header .linter-tab-settings {
padding: 6px 12px;
font-weight: 600;
cursor: pointer;
white-space: nowrap;
border-left: 2px solid transparent;
border-right: 2px solid transparent;
}
.linter-setting-header .linter-tab-settings:first-child {
margin-left: 6px;
}
.linter-setting-header .linter-tab-settings.linter-tab-settings-active {
border-bottom: 2px solid var(--background-primary);
transform: translateY(2px);
border-radius: 2px;
border-left: 2px solid var(--background-modifier-border);
border-top: 2px solid var(--background-modifier-border);
border-right: 2px solid var(--background-modifier-border);
}
/** Hide linter element css
* Based on https://zellwk.com/blog/hide-content-accessibly/
*/
.linter-navigation-item:not(.linter-navigation-item-selected) > span:nth-child(2),
.linter-visually-hidden {
border: 0;
clip: rect(0 0 0 0);
clip-path: rect(0 0 0 0);
height: auto;
margin: 0;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
white-space: nowrap;
}
/**
* Full-width text areas
* Based on https://github.com/nyable/obsidian-code-block-enhancer/blob/bb0c636c1e7609b6d26c48a8d7ca15d5cd9abdcf/src/styles/index.scss
*/
textarea.full-width {
width: 100%;
min-height: 10em;
margin-top: 0.8em;
margin-bottom: 0.8em;
}
.full-width-textbox-input-wrapper {
position: relative;
}
.settings-copy-button {
position: absolute;
top: 0.8em;
right: 0.8em;
margin: 0 0 0 auto;
padding: 4px;
}
.settings-copy-button svg.linter-clipboard path {
fill: var(--text-faint);
}
.settings-copy-button svg.linter-success path {
fill: var(--interactive-success);
}
.settings-copy-button:hover, .settings-copy-button:active {
cursor: pointer;
}
.settings-copy-button:hover svg path, .settings-copy-button:active svg path {
fill: var(--text-accent-hover);
transition: all ease 0.3s;
}
.settings-copy-button:focus {
outline: 0;
}
/**
* Custom regex replacement
*/
.linter-custom-regex-replacement-container div:last-child {
border: none;
}
.linter-custom-regex-replacement {
margin-bottom: 15px;
border: none;
border-bottom: var(--hr-thickness) solid;
border-color: var(--hr-color);
}
.linter-custom-regex-replacement-row2 {
flex-wrap: wrap;
}
.linter-custom-regex-replacement-normal-input {
width: 40%;
}
.linter-custom-regex-replacement-flags {
width: 15%;
}
.linter-custom-regex-replacement-label {
flex-direction: row-reverse;
}
.linter-custom-regex-replacement-label-input {
width: 50%;
}
/**
* Files to ignore
*/
.linter-files-to-ignore-container div:last-child {
border: none;
}
.linter-files-to-ignore {
margin-bottom: 15px;
border: none;
border-bottom: var(--hr-thickness) solid;
border-color: var(--hr-color);
}
.linter-files-to-ignore-normal-input {
width: 40%;
}
.linter-files-to-ignore-flags {
width: 15%;
}
/**
* Setting item no border
*/
.linter-no-border {
border: none;
}
/**
* Custom row
*/
.custom-row-description {
margin-top: 0px;
}
+19
View File
@@ -0,0 +1,19 @@
{
"title@@vibrant": true,
"title@@dim-light-mode": false,
"title@@enable-mica": true,
"title@@no-top-space": false,
"title@@fab-enabled-desktop": true,
"title@@custom-page-header": true,
"title@@more-drag-desktop": false,
"title@@hide-toolbar-desktop": false,
"title@@space-above-document": true,
"title@@button-shapes-mobile": true,
"title@@win-menu": false,
"things-style@@no-kanban-styles": false,
"things-style@@fancy-highlight": true,
"things-style@@fancy-code": true,
"things-style@@active-line": true,
"things-style@@link-decoration": "None",
"things-style@@default-font-color": false
}
+163
View File
@@ -0,0 +1,163 @@
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var al=Object.create;var Kt=Object.defineProperty;var sl=Object.getOwnPropertyDescriptor;var ol=Object.getOwnPropertyNames;var ll=Object.getPrototypeOf,cl=Object.prototype.hasOwnProperty;var Zr=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),ul=(e,n)=>{for(var t in n)Kt(e,t,{get:n[t],enumerable:!0})},Zn=(e,n,t,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of ol(n))!cl.call(e,i)&&i!==t&&Kt(e,i,{get:()=>n[i],enumerable:!(a=sl(n,i))||a.enumerable});return e};var Xt=(e,n,t)=>(t=e!=null?al(ll(e)):{},Zn(n||!e||!e.__esModule?Kt(t,"default",{value:e,enumerable:!0}):t,e)),fl=e=>Zn(Kt({},"__esModule",{value:!0}),e);var Jn=Zr((Jr,en)=>{(function(e,n){typeof Jr=="object"&&typeof en!="undefined"?en.exports=n():typeof define=="function"&&define.amd?define(n):e.chroma=n()})(Jr,function(){"use strict";for(var e=function(r,s,o){return s===void 0&&(s=0),o===void 0&&(o=1),r<s?s:r>o?o:r},n=function(r){r._clipped=!1,r._unclipped=r.slice(0);for(var s=0;s<=3;s++)s<3?((r[s]<0||r[s]>255)&&(r._clipped=!0),r[s]=e(r[s],0,255)):s===3&&(r[s]=e(r[s],0,1));return r},t={},a=0,i=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];a<i.length;a+=1){var l=i[a];t["[object "+l+"]"]=l.toLowerCase()}var c=function(r){return t[Object.prototype.toString.call(r)]||"object"},f=function(r,s){return s===void 0&&(s=null),r.length>=3?Array.prototype.slice.call(r):c(r[0])=="object"&&s?s.split("").filter(function(o){return r[0][o]!==void 0}).map(function(o){return r[0][o]}):r[0]},p=function(r){if(r.length<2)return null;var s=r.length-1;return c(r[s])=="string"?r[s].toLowerCase():null},w=Math.PI,S={clip_rgb:n,limit:e,type:c,unpack:f,last:p,PI:w,TWOPI:w*2,PITHIRD:w/3,DEG2RAD:w/180,RAD2DEG:180/w},E={format:{},autodetect:[]},B=S.last,Y=S.clip_rgb,K=S.type,Q=function(){for(var s=[],o=arguments.length;o--;)s[o]=arguments[o];var g=this;if(K(s[0])==="object"&&s[0].constructor&&s[0].constructor===this.constructor)return s[0];var b=B(s),y=!1;if(!b){y=!0,E.sorted||(E.autodetect=E.autodetect.sort(function(R,O){return O.p-R.p}),E.sorted=!0);for(var d=0,A=E.autodetect;d<A.length;d+=1){var k=A[d];if(b=k.test.apply(k,s),b)break}}if(E.format[b]){var N=E.format[b].apply(null,y?s:s.slice(0,-1));g._rgb=Y(N)}else throw new Error("unknown format: "+s);g._rgb.length===3&&g._rgb.push(1)};Q.prototype.toString=function(){return K(this.hex)=="function"?this.hex():"["+this._rgb.join(",")+"]"};var L=Q,re=function(){for(var r=[],s=arguments.length;s--;)r[s]=arguments[s];return new(Function.prototype.bind.apply(re.Color,[null].concat(r)))};re.Color=L,re.version="2.1.2";var F=re,oe=S.unpack,ke=Math.max,Ye=function(){for(var r=[],s=arguments.length;s--;)r[s]=arguments[s];var o=oe(r,"rgb"),g=o[0],b=o[1],y=o[2];g=g/255,b=b/255,y=y/255;var d=1-ke(g,ke(b,y)),A=d<1?1/(1-d):0,k=(1-g-d)*A,N=(1-b-d)*A,R=(1-y-d)*A;return[k,N,R,d]},qe=Ye,Te=S.unpack,xe=function(){for(var r=[],s=arguments.length;s--;)r[s]=arguments[s];r=Te(r,"cmyk");var o=r[0],g=r[1],b=r[2],y=r[3],d=r.length>4?r[4]:1;return y===1?[0,0,0,d]:[o>=1?0:255*(1-o)*(1-y),g>=1?0:255*(1-g)*(1-y),b>=1?0:255*(1-b)*(1-y),d]},Pe=xe,Qe=S.unpack,ie=S.type;L.prototype.cmyk=function(){return qe(this._rgb)},F.cmyk=function(){for(var r=[],s=arguments.length;s--;)r[s]=arguments[s];return new(Function.prototype.bind.apply(L,[null].concat(r,["cmyk"])))},E.format.cmyk=Pe,E.autodetect.push({p:2,test:function(){for(var r=[],s=arguments.length;s--;)r[s]=arguments[s];if(r=Qe(r,"cmyk"),ie(r)==="array"&&r.length===4)return"cmyk"}});var Tt=S.unpack,Ve=S.last,V=function(r){return Math.round(r*100)/100},M=function(){for(var r=[],s=arguments.length;s--;)r[s]=arguments[s];var o=Tt(r,"hsla"),g=Ve(r)||"lsa";return o[0]=V(o[0]||0),o[1]=V(o[1]*100)+"%",o[2]=V(o[2]*100)+"%",g==="hsla"||o.length>3&&o[3]<1?(o[3]=o.length>3?o[3]:1,g="hsla"):o.length=3,g+"("+o.join(",")+")"},_=M,u=S.unpack,h=function(){for(var r=[],s=arguments.length;s--;)r[s]=arguments[s];r=u(r,"rgba");var o=r[0],g=r[1],b=r[2];o/=255,g/=255,b/=255;var y=Math.min(o,g,b),d=Math.max(o,g,b),A=(d+y)/2,k,N;return d===y?(k=0,N=Number.NaN):k=A<.5?(d-y)/(d+y):(d-y)/(2-d-y),o==d?N=(g-b)/(d-y):g==d?N=2+(b-o)/(d-y):b==d&&(N=4+(o-g)/(d-y)),N*=60,N<0&&(N+=360),r.length>3&&r[3]!==void 0?[N,k,A,r[3]]:[N,k,A]},m=h,C=S.unpack,v=S.last,x=Math.round,T=function(){for(var r=[],s=arguments.length;s--;)r[s]=arguments[s];var o=C(r,"rgba"),g=v(r)||"rgb";return g.substr(0,3)=="hsl"?_(m(o),g):(o[0]=x(o[0]),o[1]=x(o[1]),o[2]=x(o[2]),(g==="rgba"||o.length>3&&o[3]<1)&&(o[3]=o.length>3?o[3]:1,g="rgba"),g+"("+o.slice(0,g==="rgb"?3:4).join(",")+")")},I=T,D=S.unpack,P=Math.round,G=function(){for(var r,s=[],o=arguments.length;o--;)s[o]=arguments[o];s=D(s,"hsl");var g=s[0],b=s[1],y=s[2],d,A,k;if(b===0)d=A=k=y*255;else{var N=[0,0,0],R=[0,0,0],O=y<.5?y*(1+b):y+b-y*b,j=2*y-O,H=g/360;N[0]=H+1/3,N[1]=H,N[2]=H-1/3;for(var X=0;X<3;X++)N[X]<0&&(N[X]+=1),N[X]>1&&(N[X]-=1),6*N[X]<1?R[X]=j+(O-j)*6*N[X]:2*N[X]<1?R[X]=O:3*N[X]<2?R[X]=j+(O-j)*(2/3-N[X])*6:R[X]=j;r=[P(R[0]*255),P(R[1]*255),P(R[2]*255)],dLine truncated
<div :ref="root" class="pickr">
${C?"":'<button type="button" :ref="button" class="pcr-button"></button>'}
<div :ref="app" class="pcr-app ${x||""}" data-theme="${T}" ${v?'style="position: unset"':""} aria-label="${P("ui:dialog")}" role="window">
<div class="pcr-selection" ${D(m.palette)}>
<div :obj="preview" class="pcr-color-preview" ${D(m.preview)}>
<button type="button" :ref="lastColor" class="pcr-last-color" aria-label="${P("btn:last-color")}"></button>
<div :ref="currentColor" class="pcr-current-color"></div>
</div>
<div :obj="palette" class="pcr-color-palette">
<div :ref="picker" class="pcr-picker"></div>
<div :ref="palette" class="pcr-palette" tabindex="0" aria-label="${P("aria:palette")}" role="listbox"></div>
</div>
<div :obj="hue" class="pcr-color-chooser" ${D(m.hue)}>
<div :ref="picker" class="pcr-picker"></div>
<div :ref="slider" class="pcr-hue pcr-slider" tabindex="0" aria-label="${P("aria:hue")}" role="slider"></div>
</div>
<div :obj="opacity" class="pcr-color-opacity" ${D(m.opacity)}>
<div :ref="picker" class="pcr-picker"></div>
<div :ref="slider" class="pcr-opacity pcr-slider" tabindex="0" aria-label="${P("aria:opacity")}" role="slider"></div>
</div>
</div>
<div class="pcr-swatches ${m.palette?"":"pcr-last"}" :ref="swatches"></div>
<div :obj="interaction" class="pcr-interaction" ${D(Object.keys(m.interaction).length)}>
<input :ref="result" class="pcr-result" type="text" spellcheck="false" ${D(m.interaction.input)} aria-label="${P("aria:input")}">
<input :arr="options" class="pcr-type" data-type="HEXA" value="${I?"HEX":"HEXA"}" type="button" ${D(m.interaction.hex)}>
<input :arr="options" class="pcr-type" data-type="RGBA" value="${I?"RGB":"RGBA"}" type="button" ${D(m.interaction.rgba)}>
<input :arr="options" class="pcr-type" data-type="HSLA" value="${I?"HSL":"HSLA"}" type="button" ${D(m.interaction.hsla)}>
<input :arr="options" class="pcr-type" data-type="HSVA" value="${I?"HSV":"HSVA"}" type="button" ${D(m.interaction.hsva)}>
<input :arr="options" class="pcr-type" data-type="CMYK" value="CMYK" type="button" ${D(m.interaction.cmyk)}>
<input :ref="save" class="pcr-save" value="${P("btn:save")}" type="button" ${D(m.interaction.save)} aria-label="${P("aria:btn:save")}">
<input :ref="cancel" class="pcr-cancel" value="${P("btn:cancel")}" type="button" ${D(m.interaction.cancel)} aria-label="${P("aria:btn:cancel")}">
<input :ref="clear" class="pcr-clear" value="${P("btn:clear")}" type="button" ${D(m.interaction.clear)} aria-label="${P("aria:btn:clear")}">
</div>
</div>
</div>
`),q=G.interaction;return q.options.find(U=>!U.hidden&&!U.classList.add("active")),q.type=()=>q.options.find(U=>U.classList.contains("active")),G})(this),u.useAsButton&&(this._root.button=u.el),u.container.appendChild(this._root.root)}_finalBuild(){let u=this.options,h=this._root;if(u.container.removeChild(h.root),u.inline){let m=u.el.parentElement;u.el.nextSibling?m.insertBefore(h.app,u.el.nextSibling):m.appendChild(h.app)}else u.container.appendChild(h.app);u.useAsButton?u.inline&&u.el.remove():u.el.parentNode.replaceChild(h.root,u.el),u.disabled&&this.disable(),u.comparison||(h.button.style.transition="none",u.useAsButton||(h.preview.lastColor.style.transition="none")),this.hide()}_buildComponents(){let u=this,h=this.options.components,m=(u.options.sliders||"v").repeat(2),[C,v]=m.match(/^[vh]+$/g)?m:[],x=()=>this._color||(this._color=this._lastColor.clone()),T={palette:Qe({element:u._root.palette.picker,wrapper:u._root.palette.palette,onstop:()=>u._emit("changestop","slider",u),onchange(I,D){if(!h.palette)return;let P=x(),{_root:G,options:q}=u,{lastColor:U,currentColor:fe}=G.preview;u._recalc&&(P.s=100*I,P.v=100-100*D,P.v<0&&(P.v=0),u._updateOutput("slider"));let le=P.toRGBA().toString(0);this.element.style.background=le,this.wrapper.style.background=`
linear-gradient(to top, rgba(0, 0, 0, ${P.a}), transparent),
linear-gradient(to left, hsla(${P.h}, 100%, 50%, ${P.a}), rgba(255, 255, 255, ${P.a}))
`,q.comparison?q.useAsButton||u._lastColor||U.style.setProperty("--pcr-color",le):(G.button.style.setProperty("--pcr-color",le),G.button.classList.remove("clear"));let Oe=P.toHEXA().toString();for(let{el:ye,color:Se}of u._swatchColors)ye.classList[Oe===Se.toHEXA().toString()?"add":"remove"]("pcr-active");fe.style.setProperty("--pcr-color",le)}}),hue:Qe({lock:v==="v"?"h":"v",element:u._root.hue.picker,wrapper:u._root.hue.slider,onstop:()=>u._emit("changestop","slider",u),onchange(I){if(!h.hue||!h.palette)return;let D=x();u._recalc&&(D.h=360*I),this.element.style.backgroundColor=`hsl(${D.h}, 100%, 50%)`,T.palette.trigger()}}),opacity:Qe({lock:C==="v"?"h":"v",element:u._root.opacity.picker,wrapper:u._root.opacity.slider,onstop:()=>u._emit("changestop","slider",u),onchange(I){if(!h.opacity||!h.palette)return;let D=x();u._recalc&&(D.a=Math.round(100*I)/100),this.element.style.background=`rgba(0, 0, 0, ${D.a})`,T.palette.trigger()}}),selectable:ie({elements:u._root.interaction.options,className:"active",onchange(I){u._representation=I.target.getAttribute("data-type").toUpperCase(),u._recalc&&u._updateOutput("swatch")}})};this._components=T}_bindEvents(){let{_root:u,options:h}=this,m=[i(u.interaction.clear,"click",()=>this._clearColor()),i([u.interaction.cancel,u.preview.lastColor],"click",()=>{this.setHSVA(...(this._lastColor||this._color).toHSVA(),!0),this._emit("cancel")}),i(u.interaction.save,"click",()=>{!this.applyColor()&&!h.showAlways&&this.hide()}),i(u.interaction.result,["keyup","input"],C=>{this.setColor(C.target.value,!0)&&!this._initializingActive&&(this._emit("change",this._color,"input",this),this._emit("changestop","input",this)),C.stopImmediatePropagation()}),i(u.interaction.result,["focus","blur"],C=>{this._recalc=C.type==="blur",this._recalc&&this._updateOutput(null)}),i([u.palette.palette,u.palette.picker,u.hue.slider,u.hue.picker,u.opacity.slider,u.opacity.picker],["mousedown","touchstart"],()=>this._recalc=!0,{passive:!0})];if(!h.showAlways){let C=h.closeWithKey;m.push(i(u.button,"click",()=>this.isOpen()?this.hide():this.show()),i(document,"keyup",v=>this.isOpen()&&(v.key===C||v.code===C)&&this.hide()),i(document,["touchstart","mousedown"],v=>{this.isOpen()&&!p(v).some(x=>x===u.app||x===u.button)&&this.hide()},{capture:!0}))}if(h.adjustableNumbers){let C={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};S(u.interaction.result,(v,x,T)=>{let I=C[this.getColorRepresentation().toLowerCase()];if(I){let D=I[T],P=v+(D>=100?1e3*x:x);return P<=0?0:Number((P<D?P:D).toPrecision(3))}return v})}if(h.autoReposition&&!h.inline){let C=null,v=this;m.push(i(window,["scroll","resize"],()=>{v.isOpen()&&(h.closeOnScroll&&v.hide(),C===null?(C=setTimeout(()=>C=null,100),requestAnimationFrame(function x(){v._rePositioningPicker(),C!==null&&requestAnimationFrame(x)})):(clearTimeout(C),C=setTimeout(()=>C=null,100)))},{capture:!0}))}this._eventBindings=m}_rePositioningPicker(){let{options:u}=this;if(!u.inline&&!this._nanopop.update({container:document.body.getBoundingClientRect(),position:u.position})){let h=this._root.app,m=h.getBoundingClientRect();h.style.top=(window.innerHeight-m.height)/2+"px",h.style.left=(window.innerWidth-m.width)/2+"px"}}_updateOutput(u){let{_root:h,_color:m,options:C}=this;if(h.interaction.type()){let v=`to${h.interaction.type().getAttribute("data-type")}`;h.interaction.result.value=typeof m[v]=="function"?m[v]().toString(C.outputPrecision):""}!this._initializingActive&&this._recalc&&this._emit("change",m,u,this)}_clearColor(){let u=arguments.length>0&&arguments[0]!==void 0&&arguments[0],{_root:h,options:m}=this;m.useAsButton||h.button.style.setProperty("--pcr-color","rgba(0, 0, 0, 0.15)"),h.button.classList.add("clear"),m.showAlways||this.hide(),this._lastColor=null,this._initializingActive||u||(this._emit("save",null),this._emit("clear"))}_parseLocalColor(u){let{values:h,type:m,a:C}=Te(u),{lockOpacity:v}=this.options,x=C!==void 0&&C!==1;return h&&h.length===3&&(h[3]=void 0),{values:!h||v&&x?null:h,type:m}}_t(u){return this.options.i18n[u]||M.I18N_DEFAULTS[u]}_emit(u){for(var h=arguments.length,m=new Array(h>1?h-1:0),C=1;C<h;C++)m[C-1]=arguments[C];this._eventListener[u].forEach(v=>v(...m,this))}on(u,h){return this._eventListener[u].push(h),this}off(u,h){let m=this._eventListener[u]||[],C=m.indexOf(h);return~C&&m.splice(C,1),this}addSwatch(u){let{values:h}=this._parseLocalColor(u);if(h){let{_swatchColors:m,_root:C}=this,v=xe(...h),x=c(`<button type="button" style="--pcr-color: ${v.toRGBA().toString(0)}" aria-label="${this._t("btn:swatch")}"/>`);return C.swatches.appendChild(x),m.push({el:x,color:v}),this._eventBindings.push(i(x,"click",()=>{this.setHSVA(...v.toHSVA(),!0),this._emit("swatchselect",v),this._emit("change",v,"swatch",this)})),!0}return!1}removeSwatch(u){let h=this._swatchColors[u];if(h){let{el:m}=h;return this._root.swatches.removeChild(m),this._swatchColors.splice(u,1),!0}return!1}applyColor(){let u=arguments.length>0& Line truncated
body.css-settings-manager {
${n.reduce((i,l)=>i+`--${l.key}: ${l.value}; `,"")}
}
body.theme-light.css-settings-manager {
${t.reduce((i,l)=>i+`--${l.key}: ${l.value}; `,"")}
}
body.theme-dark.css-settings-manager {
${a.reduce((i,l)=>i+`--${l.key}: ${l.value}; `,"")}
}
`.trim().replace(/[\r\n\s]+/g," "),this.plugin.app.workspace.trigger("css-change",{source:"style-settings"})}setConfig(n){this.config={},this.gradients={},n.forEach(a=>{this.config[a.id]={},a.settings.forEach(i=>{this.config[a.id][i.id]=i,i.type===he.COLOR_GRADIENT&&(this.gradients[a.id]||(this.gradients[a.id]=[]),this.gradients[a.id].push(i))})});let t=!1;for(let a in this.settings){let[i,l]=a.split("@@");this.config[i]&&!this.config[i][l]&&(delete this.settings[a],t=!0)}t?this.save():this.setCSSVariables()}getSetting(n,t){return this.settings[`${n}@@${t}`]}getSettings(n,t){return t.reduce((a,i)=>{let l=`${n}@@${i}`,c=["dark","light"];return this.settings[l]&&(a[l]=this.settings[l]),c.forEach(f=>{let p=`${l}@@${f}`;this.settings[p]&&(a[p]=this.settings[p])}),a},{})}setSetting(n,t,a){this.settings[`${n}@@${t}`]=a,this.save(),this.removeClasses(),this.initClasses()}setSettings(n){return Object.keys(n).forEach(t=>{this.settings[t]=n[t]}),this.removeClasses(),this.initClasses(),this.save()}clearSetting(n,t){delete this.settings[`${n}@@${t}`],this.save(),this.removeClasses(),this.initClasses()}clearSection(n){Object.keys(this.settings).forEach(t=>{let[a]=t.split("@@");a===n&&delete this.settings[t]}),this.save(),this.removeClasses(),this.initClasses()}export(n,t){new Qt(this.plugin.app,this.plugin,n,t).open()}import(){new Zt(this.plugin.app,this.plugin).open()}};var ei={};var ti={};var ri={};var ni={"Default:":"Standard:","Error:":"Fehler:","missing default light value, or value is not in a valid color format":"Fehlender heller standard Wert oder Wert ist in keinem validen Farb-Format","missing default dark value, or value is not in a valid color format":"Fehlender dunkler standard Wert oder Wert ist in keinem validen Farb-Format","missing default value, or value is not in a valid color format":"Fehlender standard Wert oder Wert ist in keinem validen Farb-Format","missing default value":"Fehlender standard Wert"};var nn={"Default:":"Default:","Error:":"Error:","missing default light value, or value is not in a valid color format":"missing default light value, or value is not in a valid color format","missing default dark value, or value is not in a valid color format":"missing default dark value, or value is not in a valid color format","missing default value, or value is not in a valid color format":"missing default value, or value is not in a valid color format","missing default value":"missing default value"};var ii={};var ai={};var si={};var oi={};var li={};var ci={};var ui={};var fi={"Default:":"Standaard:","Error:":"Error:","missing default light value, or value is not in a valid color format":"Geen standaard waarde voor het lichte thema, of de waarde is niet in het goede formaat","missing default dark value, or value is not in a valid color format":"Geen standaard waarde voor het donkere thema, of de waarde is niet in het goede formaat","missing default value, or value is not in a valid color format":"Geen standaard waarde, of de waarde is niet in het goede formaat","missing default value":"Geen standaard waarde"};var gi={};var pi={};var hi={};var di={};var vi={};var mi={};var bi={};var yi={};var Si={};var Ci={"Default:":"\u9ED8\u8BA4\uFF1A","Error:":"\u9519\u8BEF\uFF1A","missing default light value, or value is not in a valid color format":"\u7F3A\u5C11\u9ED8\u8BA4\u7684\u6D45\u8272\u6A21\u5F0F\u8272\u503C\uFF0C\u6216\u8BE5\u8272\u503C\u6CA1\u6709\u91C7\u7528\u4E00\u4E2A\u6709\u6548\u7684\u989C\u8272\u683C\u5F0F","missing default dark value, or value is not in a valid color format":"\u7F3A\u5C11\u9ED8\u8BA4\u7684\u6DF1\u8272\u6A21\u5F0F\u8272\u503C\uFF0C\u6216\u8BE5\u8272\u503C\u6CA1\u6709\u91C7\u7528\u4E00\u4E2A\u6709\u6548\u7684\u989C\u8272\u683C\u5F0F","missing default value, or value is not in a valid color format":"\u7F3A\u5C11\u9ED8\u8BA4\u8272\u503C\uFF0C\u6216\u8BE5\u8272\u503C\u6CA1\u6709\u91C7\u7528\u4E00\u4E2A\u6709\u6548\u7684\u989C\u8272\u683C\u5F0F","missing default value":"\u7F3A\u5C11\u9ED8\u8BA4\u8272\u503C"};var xi={};var ct=window.localStorage.getItem("language"),pl={ar:ei,cz:ti,da:ri,de:ni,en:nn,es:ii,fr:ai,hi:si,id:oi,it:li,ja:ci,ko:ui,nl:fi,no:gi,pl:pi,"pt-BR":di,pt:hi,ro:vi,ru:mi,sq:bi,tr:yi,uk:Si,"zh-TW":xi,zh:Ci},an=pl[ct||"en"];function de(e){return an||console.error("Error: Style Settings locale not found",ct),an&&an[e]||nn[e]}var sn=/\/\*!?\s*@settings[\r\n]+?([\s\S]+?)\*\//g,wi=/^name:\s*(.+)$/m;function ve(e){return ct&&e[`title.${ct}`]||e.title}function me(e){return ct&&e[`description.${ct}`]||e.description}function Ct(e){return/^(#|rgb|hsl)/.test(e)}function Nt(e){let{el:n,isView:t,containerEl:a,swatches:i,opacity:l,defaultColor:c}=e;return{el:n,container:t?document.body:a,theme:"nano",swatches:i,lockOpacity:!l,default:c,position:"left-middle",components:{preview:!0,hue:!0,opacity:!!l,interaction:{hex:!0,rgba:!0,hsla:!0,input:!0,cancel:!0,save:!0}}}}function Ot(e){e.hide()}function Ei(e){return e===""?'""':e.replace(/[;<>]/g,"")}function We(e,n,t){let a=createFragment Line truncated
`+e.mark.snippet),a+" "+t):a}function Pt(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=ea(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Pt.prototype=Object.create(Error.prototype);Pt.prototype.constructor=Pt;Pt.prototype.toString=function(n){return this.name+": "+ea(this,n)};var $e=Pt;function gn(e,n,t,a,i){var l="",c="",f=Math.floor(i/2)-1;return a-n>f&&(l=" ... ",n=a-f+l.length),t-a>f&&(c=" ...",t=a+f-c.length),{str:l+e.slice(n,t).replace(/\t/g,"\u2192")+c,pos:a-n+l.length}}function pn(e,n){return Ae.repeat(" ",n-e.length)+e}function Il(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var t=/\r?\n|\r|\0/g,a=[0],i=[],l,c=-1;l=t.exec(e.buffer);)i.push(l.index),a.push(l.index+l[0].length),e.position<=l.index&&c<0&&(c=a.length-2);c<0&&(c=a.length-1);var f="",p,w,S=Math.min(e.line+n.linesAfter,i.length).toString().length,E=n.maxLength-(n.indent+S+3);for(p=1;p<=n.linesBefore&&!(c-p<0);p++)w=gn(e.buffer,a[c-p],i[c-p],e.position-(a[c]-a[c-p]),E),f=Ae.repeat(" ",n.indent)+pn((e.line-p+1).toString(),S)+" | "+w.str+`
`+f;for(w=gn(e.buffer,a[c],i[c],e.position,E),f+=Ae.repeat(" ",n.indent)+pn((e.line+1).toString(),S)+" | "+w.str+`
`,f+=Ae.repeat("-",n.indent+S+3+w.pos)+`^
`,p=1;p<=n.linesAfter&&!(c+p>=i.length);p++)w=gn(e.buffer,a[c+p],i[c+p],e.position-(a[c]-a[c+p]),E),f+=Ae.repeat(" ",n.indent)+pn((e.line+p+1).toString(),S)+" | "+w.str+`
`;return f.replace(/\n$/,"")}var Fl=Il,Nl=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Ol=["scalar","sequence","mapping"];function Dl(e){var n={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(a){n[String(a)]=t})}),n}function Rl(e,n){if(n=n||{},Object.keys(n).forEach(function(t){if(Nl.indexOf(t)===-1)throw new $e('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(t){return t},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=Dl(n.styleAliases||null),Ol.indexOf(this.kind)===-1)throw new $e('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ne=Rl;function Pi(e,n){var t=[];return e[n].forEach(function(a){var i=t.length;t.forEach(function(l,c){l.tag===a.tag&&l.kind===a.kind&&l.multi===a.multi&&(i=c)}),t[i]=a}),t}function $l(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,t;function a(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(n=0,t=arguments.length;n<t;n+=1)arguments[n].forEach(a);return e}function dn(e){return this.extend(e)}dn.prototype.extend=function(n){var t=[],a=[];if(n instanceof Ne)a.push(n);else if(Array.isArray(n))a=a.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(t=t.concat(n.implicit)),n.explicit&&(a=a.concat(n.explicit));else throw new $e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(l){if(!(l instanceof Ne))throw new $e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(l.loadKind&&l.loadKind!=="scalar")throw new $e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(l.multi)throw new $e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(l){if(!(l instanceof Ne))throw new $e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(dn.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(a),i.compiledImplicit=Pi(i,"implicit"),i.compiledExplicit=Pi(i,"explicit"),i.compiledTypeMap=$l(i.compiledImplicit,i.compiledExplicit),i};var ta=dn,ra=new Ne("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),na=new Ne("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),ia=new Ne("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),aa=new ta({explicit:[ra,na,ia]});function Pl(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function Vl(){return null}function Bl(e){return e===null}var sa=new Ne("tag:yaml.org,2002:null",{kind:"scalar",resolve:Pl,construct:Vl,predicate:Bl,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Hl(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function jl(e){return e==="true"||e==="True"||e==="TRUE"}function Gl(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var oa=new Ne("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Hl,construct:jl,predicate:Gl,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Yl(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Ul(e){return 48<=e&&e<=55}function Wl(e){return 48<=e&&e<=57}function ql(e){if(e===null)return!1;var n=e.length,t=0,a=!1,i;if(!n)return!1;if(i=e[t],(i==="-"||i==="+")&&(i=e[++t]),i==="0"){if(t+1===n)return!0;if(i=e[++t],i==="b"){for(t++;t<n;t++)if(i=e[t],i!=="_"){if(i!=="0"&&i!=="1")return!1;a=!0}return a&&i!=="_"}if(i==="x"){for(t++;t<n;t++)if(i=e[t],i!=="_"){if(!Yl(e.charCodeAt(t)))return!1;a=!0}return a&&i!=="_"}if(i==="o"){for(t++;t<n;t++)if(i=e[t],i!=="_"){if(!Ul(e.charCodeAt(t)))return!1;a=!0}return a&&i!=="_"}}if(i==="_")return!1;for(;t<n;t++)if(i=e[t],i!=="_"){if(!Wl(e.charCodeAt(t)))return!1;a=!0}return!(!a||i==="_")}function zl(e){var n=e,t=1,a;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),a=n[0],(a==="-"||a==="+")&&(a==="-"&&(t=-1),n=n.slice(1),a=n[0]),n==="0")return 0;if(a==="0"){if(n[1]==="b")return t*parseInt(n. Line truncated
\r`;function sc(e){if(e===null)return!1;var n,t,a=0,i=e.length,l=Sn;for(t=0;t<i;t++)if(n=l.indexOf(e.charAt(t)),!(n>64)){if(n<0)return!1;a+=6}return a%8===0}function oc(e){var n,t,a=e.replace(/[\r\n=]/g,""),i=a.length,l=Sn,c=0,f=[];for(n=0;n<i;n++)n%4===0&&n&&(f.push(c>>16&255),f.push(c>>8&255),f.push(c&255)),c=c<<6|l.indexOf(a.charAt(n));return t=i%4*6,t===0?(f.push(c>>16&255),f.push(c>>8&255),f.push(c&255)):t===18?(f.push(c>>10&255),f.push(c>>2&255)):t===12&&f.push(c>>4&255),new Uint8Array(f)}function lc(e){var n="",t=0,a,i,l=e.length,c=Sn;for(a=0;a<l;a++)a%3===0&&a&&(n+=c[t>>18&63],n+=c[t>>12&63],n+=c[t>>6&63],n+=c[t&63]),t=(t<<8)+e[a];return i=l%3,i===0?(n+=c[t>>18&63],n+=c[t>>12&63],n+=c[t>>6&63],n+=c[t&63]):i===2?(n+=c[t>>10&63],n+=c[t>>4&63],n+=c[t<<2&63],n+=c[64]):i===1&&(n+=c[t>>2&63],n+=c[t<<4&63],n+=c[64],n+=c[64]),n}function cc(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var va=new Ne("tag:yaml.org,2002:binary",{kind:"scalar",resolve:sc,construct:oc,predicate:cc,represent:lc}),uc=Object.prototype.hasOwnProperty,fc=Object.prototype.toString;function gc(e){if(e===null)return!0;var n=[],t,a,i,l,c,f=e;for(t=0,a=f.length;t<a;t+=1){if(i=f[t],c=!1,fc.call(i)!=="[object Object]")return!1;for(l in i)if(uc.call(i,l))if(!c)c=!0;else return!1;if(!c)return!1;if(n.indexOf(l)===-1)n.push(l);else return!1}return!0}function pc(e){return e!==null?e:[]}var ma=new Ne("tag:yaml.org,2002:omap",{kind:"sequence",resolve:gc,construct:pc}),hc=Object.prototype.toString;function dc(e){if(e===null)return!0;var n,t,a,i,l,c=e;for(l=new Array(c.length),n=0,t=c.length;n<t;n+=1){if(a=c[n],hc.call(a)!=="[object Object]"||(i=Object.keys(a),i.length!==1))return!1;l[n]=[i[0],a[i[0]]]}return!0}function vc(e){if(e===null)return[];var n,t,a,i,l,c=e;for(l=new Array(c.length),n=0,t=c.length;n<t;n+=1)a=c[n],i=Object.keys(a),l[n]=[i[0],a[i[0]]];return l}var ba=new Ne("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:dc,construct:vc}),mc=Object.prototype.hasOwnProperty;function bc(e){if(e===null)return!0;var n,t=e;for(n in t)if(mc.call(t,n)&&t[n]!==null)return!1;return!0}function yc(e){return e!==null?e:{}}var ya=new Ne("tag:yaml.org,2002:set",{kind:"mapping",resolve:bc,construct:yc}),Cn=fa.extend({implicit:[ha,da],explicit:[va,ma,ba,ya]}),ot=Object.prototype.hasOwnProperty,yr=1,Sa=2,Ca=3,Sr=4,hn=1,Sc=2,Vi=3,Cc=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,xc=/[\x85\u2028\u2029]/,wc=/[,\[\]\{\}]/,xa=/^(?:!|!!|![a-z\-]+!)$/i,wa=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Bi(e){return Object.prototype.toString.call(e)}function Xe(e){return e===10||e===13}function ft(e){return e===9||e===32}function Ge(e){return e===9||e===32||e===10||e===13}function _t(e){return e===44||e===91||e===93||e===123||e===125}function Ec(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function _c(e){return e===120?2:e===117?4:e===85?8:0}function Ac(e){return 48<=e&&e<=57?e-48:-1}function Hi(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function kc(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Ea=new Array(256),_a=new Array(256);for(ut=0;ut<256;ut++)Ea[ut]=Hi(ut)?1:0,_a[ut]=Hi(ut);var ut;function Tc(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||Cn,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Aa(e,n){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=Fl(t),new $e(n,t)}function W(e,n){throw Aa(e,n)}function Cr(e,n){e.onWarning&&e.onWarning.call(null,Aa(e,n))}var ji={YAML:function(n,t,a){var i,l,c;n.version!==null&&W(n,"duplication of %YAML directive"),a.length!==1&&W(n,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(a[0]),i===null&&W(n,"ill-formed argument of the YAML directive"),l=parseInt(i[1],10),c=parseInt(i[2],10),l!==1&&W(n,"unacceptable YAML version of the document"),n.version=a[0],n.checkLineBreaks=c<2,c!==1&&c!==2&&Cr(n,"unsupported YAML version of the document")},TAG:function(n,t,a){var i,l;a.length!==2&&W(n,"TAG directive accepts exactly two arguments"),i=a[0],l=a[1],xa.test(i)||W(n,"ill-formed tag handle (first argument) of the TAG directive"),ot.call(n.tagMap,i)&&W(n,'there is a previously declared suffix for "'+i+'" tag handle'),wa.test(l)||W(n,"ill-formed tag prefix (second argument) of the TAG directive");try{l=decodeURIComponent(l)}catch(c){W(n,"tag prefix is malformed: "+l)}n.tagMap[i]=l}};function st(e,n,t,a){var i,l,c,f;if(n<t){if(f=e.input.slice(n,t),a)for(i=0,l=f.length;i<l;i+=1)c=f.charCodeAt(i),c===9||32<=c&&c<=1114111||W(e,"expected valid JSON character");else Cc.test(f)&&W(e,"the stream contains non-printable characters");e.result+=f}}function Gi(e,n,t,a){var i,l,c,f;for(Ae.isObject(t)||W(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(t),c=0,f=i.length;c<f;c+=1)l=i[c],ot.call(n,l)||(n[l]=t[l],a[l]=!0)}function At(e,n,t,a,i,l,c,f,p){var w,S;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),w=0,S=i.length;w<S;w+=1)Array.isArray(i[w])&&W(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Bi(i[w])==="[object Object]"&&(i[w]="[object Object]");if(typeof i=="object"&&Bi(i)==="[object Object]"&&(i="[object Object]"),i=String(i),n===null&&(n={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(l))for(w=0,S=l.length;w<S;w+=1)Gi(e,n,l[w],t);else Gi(e,n,l,t);else!e.json&&!ot.call(t,i)&&ot.call(n,i)&&(e.line=c||e.line,e.lineStart=f||e.lineStart,e.position=p||e.position,W(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(n,i,{configurable:!0,enumerable:!0,writable:!0,value:l}):n[i]=l,delete t[i];return n}function xn(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):W(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ee(e,n,t){for(var a=0,i=e.input.charCodeAt(e.position);i!==0;){for(;ft(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(n&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Xe(i))for(xn(e),i=e.input.charCodeAt(e.position),a++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return t!==-1&&a!==0&&e.lineIndent<t&&Cr(e,"deficient indentation"),a}function Er(e){var n=e.position,t;return t=e.input.charCodeAt(n),!!((t===45||t===46)&&t===e.input.charCodeAt(n+1)&&t===e.input.charCodeAt(n+2)&&(n+=3,t=e.input.charCodeAt(n),t===0||Ge(t)))}function wn(e,n){n===1?e.result+=" ":n>1&&(e.result+=Ae.repeat(`
`,n-1))}function Lc(e,n,t){var a,i,l,c,f,p,w,S,E=e.kind,B=e.result,Y;if(Y=e.input.charCodeAt(e.position),Ge(Y)||_t(Y)||Y===35||Y===38||Y===42||Y===33||Y===124||Y===62||Y===39||Y===34||Y===37||Y===64||Y===96||(Y===63||Y===45)&&(i=e.input.charCodeAt(e.position+1),Ge(i)||t&&_t(i)))return!1;for(e.kind="scalar",e.result="",l=c=e.position,f=!1;Y!==0;){if(Y===58){if(i=e.input.charCodeAt(e.position+1),Ge(i)||t&&_t(i))break}else if(Y===35){if(a=e.input.charCodeAt(e.position-1),Ge(a))break}else{if(e.position===e.lineStart&&Er(e)||t&&_t(Y))break;if(Xe(Y))if(p=e.line,w=e.lineStart,S=e.lineIndent,Ee(e,!1,-1),e.lineIndent>=n){f=!0,Y=e.input.charCodeAt(e.position);continue}else{e.position=c,e.line=p,e.lineStart=w,e.lineIndent=S;break}}f&&(st(e,l,c,!1),wn(e,e.line-p),l=c=e.position,f=!1),ft(Y)||(c=e.position+1),Y=e.input.charCodeAt(++e.position)}return st(e,l,c,!1),e.result?!0:(e.kind=E,e.result=B,!1)}function Mc(e,n){var t,a,i;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=i=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(st(e,a,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)a=e.position,e.position++,i=e.position;else return!0;else Xe(t)?(st(e,a,i,!0),wn(e,Ee(e,!1,n)),a=i=e.position):e.position===e.lineStart&&Er(e)?W(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);W(e,"unexpected end of the stream within a single quoted scalar")}function Ic(e,n){var t,a,i,l,c,f;if(f=e.input.charCodeAt(e.position),f!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=a=e.position;(f=e.input.charCodeAt(e.position))!==0;){if(f===34)return st(e,t,e.position,!0),e.position++,!0;if(f===92){if(st(e,t,e.position,!0),f=e.input.charCodeAt(++e.position),Xe(f))Ee(e,!1,n);else if(f<256&&Ea[f])e.result+=_a[f],e.position++;else if((c=_c(f))>0){for(i=c,l=0;i>0;i--)f=e.input.charCodeAt(++e.position),(c=Ec(f))>=0?l=(l<<4)+c:W(e,"expected hexadecimal character");e.result+=kc(l),e.position++}else W(e,"unknown escape sequence");t=a=e.position}else Xe(f)?(st(e,t,a,!0),wn(e,Ee(e,!1,n)),t=a=e.position):e.position===e.lineStart&&Er(e)?W(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}W(e,"unexpected end of the stream within a double quoted scalar")}function Fc(e,n){var t=!0,a,i,l,c=e.tag,f,p=e.anchor,w,S,E,B,Y,K=Object.create(null),Q,L,re,F;if(F=e.input.charCodeAt(e.position),F===91)S=93,Y=!1,f=[];else if(F===123)S=125,Y=!0,f={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),F=e.input.charCodeAt(++e.position);F!==0;){if(Ee(e,!0,n),F=e.input.charCodeAt(e.position),F===S)return e.position++,e.tag=c,e.anchor=p,e.kind=Y?"mapping":"sequence",e.result=f,!0;t?F===44&&W(e,"expected the node content, but found ','"):W(e,"missed comma between flow collection entries"),L=Q=re=null,E=B=!1,F===63&&(w=e.input.charCodeAt(e.position+1),Ge(w)&&(E=B=!0,e.position++,Ee(e,!0,n))),a=e.line,i=e.lineStart,l=e.position,kt(e,n,yr,!1,!0),L=e.tag,Q=e.result,Ee(e,!0,n),F=e.input.charCodeAt(e.position),(B||e.line===a)&&F===58&&(E=!0,F=e.input.charCodeAt(++e.position),Ee(e,!0,n),kt(e,n,yr,!1,!0),re=e.result),Y?At(e,f,K,L,Q,re,a,i,l):E?f.push(At(e,null,K,L,Q,re,a,i,l)):f.push(Q),Ee(e,!0,n),F=e.input.charCodeAt(e.position),F===44?(t=!0,F=e.input.charCodeAt(++e.position)):t=!1}W(e,"unexpected end of the stream within a flow collection")}function Nc(e,n){var t,a,i=hn,l=!1,c=!1,f=n,p=0,w=!1,S,E;if(E=e.input.charCodeAt(e.position),E===124)a=!1;else if(E===62)a=!0;else return!1;for(e.kind="scalar",e.result="";E!==0;)if(E=e.input.charCodeAt(++e.position),E===43||E===45)hn===i?i=E===43?Vi:Sc:W(e,"repeat of a chomping mode identifier");else if((S=Ac(E))>=0)S===0?W(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?W(e,"repeat of an indentation width identifier"):(f=n+S-1,c=!0);else break;if(ft(E)){do E=e.input.charCodeAt(++e.position);while(ft(E));if(E===35)do E=e.input.charCodeAt(++e.position);while(!Xe(E)&&E!==0)}for(;E!==0;){for(xn(e),e.lineIndent=0,E=e.input.charCodeAt(e.position);(!c||e.lineIndent<f)&&E===32;)e.lineIndent++,E=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>f&&(f=e.lineIndent),Xe(E)){p++;continue}if(e.lineIndent<f){i===Vi?e.result+=Ae.repeat(`
`,l?1+p:p):i===hn&&l&&(e.result+=`
`);break}for(a?ft(E)?(w=!0,e.result+=Ae.repeat(`
`,l?1+p:p)):w?(w=!1,e.result+=Ae.repeat(`
`,p+1)):p===0?l&&(e.result+=" "):e.result+=Ae.repeat(`
`,p):e.result+=Ae.repeat(`
`,l?1+p:p),l=!0,c=!0,p=0,t=e.position;!Xe(E)&&E!==0;)E=e.input.charCodeAt(++e.position);st(e,t,e.position,!1)}return!0}function Yi(e,n){var t,a=e.tag,i=e.anchor,l=[],c,f=!1,p;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),p=e.input.charCodeAt(e.position);p!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,W(e,"tab characters must not be used in indentation")),!(p!==45||(c=e.input.charCodeAt(e.position+1),!Ge(c))));){if(f=!0,e.position++,Ee(e,!0,-1)&&e.lineIndent<=n){l.push(null),p=e.input.charCodeAt(e.position);continue}if(t=e.line,kt(e,n,Ca,!1,!0),l.push(e.result),Ee(e,!0,-1),p=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>n)&&p!==0)W(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return f?(e.tag=a,e.anchor=i,e.kind="sequence",e.result=l,!0):!1}function Oc(e,n,t){var a,i,l,c,f,p,w=e.tag,S=e.anchor,E={},B=Object.create(null),Y=null,K=null,Q=null,L=!1,re=!1,F;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=E),F=e.input.charCodeAt(e.position);F!==0;){if(!L&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,W(e,"tab characters must not be used in indentation")),a=e.input.charCodeAt(e.position+1),l=e.line,(F===63||F===58)&&Ge(a))F===63?(L&&(At(e,E,B,Y,K,null,c,f,p),Y=K=Q=null),re=!0,L=!0,i=!0):L?(L=!1,i=!0):W(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,F=a;else{if(c=e.line,f=e.lineStart,p=e.position,!kt(e,t,Sa,!1,!0))break;if(e.line===l){for(F=e.input.charCodeAt(e.position);ft(F);)F=e.input.charCodeAt(++e.position);if(F===58)F=e.input.charCodeAt(++e.position),Ge(F)||W(e,"a whitespace character is expected after the key-value separator within a block mapping"),L&&(At(e,E,B,Y,K,null,c,f,p),Y=K=Q=null),re=!0,L=!1,i=!1,Y=e.tag,K=e.result;else if(re)W(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=w,e.anchor=S,!0}else if(re)W(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=w,e.anchor=S,!0}if((e.line===l||e.lineIndent>n)&&(L&&(c=e.line,f=e.lineStart,p=e.position),kt(e,n,Sr,!0,i)&&(L?K=e.result:Q=e.result),L||(At(e,E,B,Y,K,Q,c,f,p),Y=K=Q=null),Ee(e,!0,-1),F=e.input.charCodeAt(e.position)),(e.line===l||e.lineIndent>n)&&F!==0)W(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return L&&At(e,E,B,Y,K,null,c,f,p),re&&(e.tag=w,e.anchor=S,e.kind="mapping",e.result=E),re}function Dc(e){var n,t=!1,a=!1,i,l,c;if(c=e.input.charCodeAt(e.position),c!==33)return!1;if(e.tag!==null&&W(e,"duplication of a tag property"),c=e.input.charCodeAt(++e.position),c===60?(t=!0,c=e.input.charCodeAt(++e.position)):c===33?(a=!0,i="!!",c=e.input.charCodeAt(++e.position)):i="!",n=e.position,t){do c=e.input.charCodeAt(++e.position);while(c!==0&&c!==62);e.position<e.length?(l=e.input.slice(n,e.position),c=e.input.charCodeAt(++e.position)):W(e,"unexpected end of the stream within a verbatim tag")}else{for(;c!==0&&!Ge(c);)c===33&&(a?W(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(n-1,e.position+1),xa.test(i)||W(e,"named tag handle cannot contain such characters"),a=!0,n=e.position+1)),c=e.input.charCodeAt(++e.position);l=e.input.slice(n,e.position),wc.test(l)&&W(e,"tag suffix cannot contain flow indicator characters")}l&&!wa.test(l)&&W(e,"tag name cannot contain such characters: "+l);try{l=decodeURIComponent(l)}catch(f){W(e,"tag name is malformed: "+l)}return t?e.tag=l:ot.call(e.tagMap,i)?e.tag=e.tagMap[i]+l:i==="!"?e.tag="!"+l:i==="!!"?e.tag="tag:yaml.org,2002:"+l:W(e,'undeclared tag handle "'+i+'"'),!0}function Rc(e){var n,t;if(t=e.input.charCodeAt(e.position),t!==38)return!1;for(e.anchor!==null&&W(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),n=e.position;t!==0&&!Ge(t)&&!_t(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&W(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function $c(e){var n,t,a;if(a=e.input.charCodeAt(e.position),a!==42)return!1;for(a=e.input.charCodeAt(++e.position),n=e.position;a!==0&&!Ge(a)&&!_t(a);)a=e.input.charCodeAt(++e.position);return e.position===n&&W(e,"name of an alias node must contain at least one character"),t=e.input.slice(n,e.position),ot.call(e.anchorMap,t)||W(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],Ee(e,!0,-1),!0}function kt(e,n,t,a,i){var l,c,f,p=1,w=!1,S=!1,E,B,Y,K,Q,L;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,l=c=f=Sr===t||Ca===t,a&&Ee(e,!0,-1)&&(w=!0,e.lineIndent>n?p=1:e.lineIndent===n?p=0:e.lineIndent<n&&(p=-1)),p===1)for(;Dc(e)||Rc(e);)Ee(e,!0,-1)?(w=!0,f=l,e.lineIndent>n?p=1:e.lineIndent===n?p=0:e.lineIndent<n&&(p=-1)):f=!1;if(f&&(f=w||i),(p===1||Sr===t)&&(yr===t||Sa===t?Q=n:Q=n+1,L=e.position-e.lineStart,p===1?f&&(Yi(e,L)||Oc(e,L,Q))||Fc(e,Q)?S=!0:(c&&Nc(e,Q)||Mc(e,Q)||Ic(e,Q)?S=!0:$c(e)?(S=!0,(e.tag!==null||e.anchor!==null)&&W(e,"alias node Line truncated
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new Tc(e,n),a=e.indexOf("\0");for(a!==-1&&(t.position=a,W(t,"null byte is not allowed in input")),t.input+="\0";t.input.charCodeAt(t.position)===32;)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)Pc(t);return t.documents}function Vc(e,n,t){n!==null&&typeof n=="object"&&typeof t=="undefined"&&(t=n,n=null);var a=ka(e,t);if(typeof n!="function")return a;for(var i=0,l=a.length;i<l;i+=1)n(a[i])}function Bc(e,n){var t=ka(e,n);if(t.length!==0){if(t.length===1)return t[0];throw new $e("expected a single document in the stream, but found more")}}var Hc=Vc,jc=Bc,Ta={loadAll:Hc,load:jc},La=Object.prototype.toString,Ma=Object.prototype.hasOwnProperty,En=65279,Gc=9,Vt=10,Yc=13,Uc=32,Wc=33,qc=34,vn=35,zc=37,Kc=38,Xc=39,Qc=42,Ia=44,Zc=45,xr=58,Jc=61,eu=62,tu=63,ru=64,Fa=91,Na=93,nu=96,Oa=123,iu=124,Da=125,De={};De[0]="\\0";De[7]="\\a";De[8]="\\b";De[9]="\\t";De[10]="\\n";De[11]="\\v";De[12]="\\f";De[13]="\\r";De[27]="\\e";De[34]='\\"';De[92]="\\\\";De[133]="\\N";De[160]="\\_";De[8232]="\\L";De[8233]="\\P";var au=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],su=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ou(e,n){var t,a,i,l,c,f,p;if(n===null)return{};for(t={},a=Object.keys(n),i=0,l=a.length;i<l;i+=1)c=a[i],f=String(n[c]),c.slice(0,2)==="!!"&&(c="tag:yaml.org,2002:"+c.slice(2)),p=e.compiledTypeMap.fallback[c],p&&Ma.call(p.styleAliases,f)&&(f=p.styleAliases[f]),t[c]=f;return t}function lu(e){var n,t,a;if(n=e.toString(16).toUpperCase(),e<=255)t="x",a=2;else if(e<=65535)t="u",a=4;else if(e<=4294967295)t="U",a=8;else throw new $e("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+Ae.repeat("0",a-n.length)+n}var cu=1,Bt=2;function uu(e){this.schema=e.schema||Cn,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ae.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=ou(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Bt:cu,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ui(e,n){for(var t=Ae.repeat(" ",n),a=0,i=-1,l="",c,f=e.length;a<f;)i=e.indexOf(`
`,a),i===-1?(c=e.slice(a),a=f):(c=e.slice(a,i+1),a=i+1),c.length&&c!==`
`&&(l+=t),l+=c;return l}function mn(e,n){return`
`+Ae.repeat(" ",e.indent*n)}function fu(e,n){var t,a,i;for(t=0,a=e.implicitTypes.length;t<a;t+=1)if(i=e.implicitTypes[t],i.resolve(n))return!0;return!1}function wr(e){return e===Uc||e===Gc}function Ht(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==En||65536<=e&&e<=1114111}function Wi(e){return Ht(e)&&e!==En&&e!==Yc&&e!==Vt}function qi(e,n,t){var a=Wi(e),i=a&&!wr(e);return(t?a:a&&e!==Ia&&e!==Fa&&e!==Na&&e!==Oa&&e!==Da)&&e!==vn&&!(n===xr&&!i)||Wi(n)&&!wr(n)&&e===vn||n===xr&&i}function gu(e){return Ht(e)&&e!==En&&!wr(e)&&e!==Zc&&e!==tu&&e!==xr&&e!==Ia&&e!==Fa&&e!==Na&&e!==Oa&&e!==Da&&e!==vn&&e!==Kc&&e!==Qc&&e!==Wc&&e!==iu&&e!==Jc&&e!==eu&&e!==Xc&&e!==qc&&e!==zc&&e!==ru&&e!==nu}function pu(e){return!wr(e)&&e!==xr}function $t(e,n){var t=e.charCodeAt(n),a;return t>=55296&&t<=56319&&n+1<e.length&&(a=e.charCodeAt(n+1),a>=56320&&a<=57343)?(t-55296)*1024+a-56320+65536:t}function Ra(e){var n=/^\n* /;return n.test(e)}var $a=1,bn=2,Pa=3,Va=4,Et=5;function hu(e,n,t,a,i,l,c,f){var p,w=0,S=null,E=!1,B=!1,Y=a!==-1,K=-1,Q=gu($t(e,0))&&pu($t(e,e.length-1));if(n||c)for(p=0;p<e.length;w>=65536?p+=2:p++){if(w=$t(e,p),!Ht(w))return Et;Q=Q&&qi(w,S,f),S=w}else{for(p=0;p<e.length;w>=65536?p+=2:p++){if(w=$t(e,p),w===Vt)E=!0,Y&&(B=B||p-K-1>a&&e[K+1]!==" ",K=p);else if(!Ht(w))return Et;Q=Q&&qi(w,S,f),S=w}B=B||Y&&p-K-1>a&&e[K+1]!==" "}return!E&&!B?Q&&!c&&!i(e)?$a:l===Bt?Et:bn:t>9&&Ra(e)?Et:c?l===Bt?Et:bn:B?Va:Pa}function du(e,n,t,a,i){e.dump=function(){if(n.length===0)return e.quotingType===Bt?'""':"''";if(!e.noCompatMode&&(au.indexOf(n)!==-1||su.test(n)))return e.quotingType===Bt?'"'+n+'"':"'"+n+"'";var l=e.indent*Math.max(1,t),c=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-l),f=a||e.flowLevel>-1&&t>=e.flowLevel;function p(w){return fu(e,w)}switch(hu(n,f,e.indent,c,p,e.quotingType,e.forceQuotes&&!a,i)){case $a:return n;case bn:return"'"+n.replace(/'/g,"''")+"'";case Pa:return"|"+zi(n,e.indent)+Ki(Ui(n,l));case Va:return">"+zi(n,e.indent)+Ki(Ui(vu(n,c),l));case Et:return'"'+mu(n)+'"';default:throw new $e("impossible error: invalid scalar style")}}()}function zi(e,n){var t=Ra(e)?String(n):"",a=e[e.length-1]===`
`,i=a&&(e[e.length-2]===`
`||e===`
`),l=i?"+":a?"":"-";return t+l+`
`}function Ki(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function vu(e,n){for(var t=/(\n+)([^\n]*)/g,a=function(){var w=e.indexOf(`
`);return w=w!==-1?w:e.length,t.lastIndex=w,Xi(e.slice(0,w),n)}(),i=e[0]===`
`||e[0]===" ",l,c;c=t.exec(e);){var f=c[1],p=c[2];l=p[0]===" ",a+=f+(!i&&!l&&p!==""?`
`:"")+Xi(p,n),i=l}return a}function Xi(e,n){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,a,i=0,l,c=0,f=0,p="";a=t.exec(e);)f=a.index,f-i>n&&(l=c>i?c:f,p+=`
`+e.slice(i,l),i=l+1),c=f;return p+=`
`,e.length-i>n&&c>i?p+=e.slice(i,c)+`
`+e.slice(c+1):p+=e.slice(i),p.slice(1)}function mu(e){for(var n="",t=0,a,i=0;i<e.length;t>=65536?i+=2:i++)t=$t(e,i),a=De[t],!a&&Ht(t)?(n+=e[i],t>=65536&&(n+=e[i+1])):n+=a||lu(t);return n}function bu(e,n,t){var a="",i=e.tag,l,c,f;for(l=0,c=t.length;l<c;l+=1)f=t[l],e.replacer&&(f=e.replacer.call(t,String(l),f)),(Je(e,n,f,!1,!1)||typeof f=="undefined"&&Je(e,n,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=i,e.dump="["+a+"]"}function Qi(e,n,t,a){var i="",l=e.tag,c,f,p;for(c=0,f=t.length;c<f;c+=1)p=t[c],e.replacer&&(p=e.replacer.call(t,String(c),p)),(Je(e,n+1,p,!0,!0,!1,!0)||typeof p=="undefined"&&Je(e,n+1,null,!0,!0,!1,!0))&&((!a||i!=="")&&(i+=mn(e,n)),e.dump&&Vt===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=l,e.dump=i||"[]"}function yu(e,n,t){var a="",i=e.tag,l=Object.keys(t),c,f,p,w,S;for(c=0,f=l.length;c<f;c+=1)S="",a!==""&&(S+=", "),e.condenseFlow&&(S+='"'),p=l[c],w=t[p],e.replacer&&(w=e.replacer.call(t,p,w)),Je(e,n,p,!1,!1)&&(e.dump.length>1024&&(S+="? "),S+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Je(e,n,w,!1,!1)&&(S+=e.dump,a+=S));e.tag=i,e.dump="{"+a+"}"}function Su(e,n,t,a){var i="",l=e.tag,c=Object.keys(t),f,p,w,S,E,B;if(e.sortKeys===!0)c.sort();else if(typeof e.sortKeys=="function")c.sort(e.sortKeys);else if(e.sortKeys)throw new $e("sortKeys must be a boolean or a function");for(f=0,p=c.length;f<p;f+=1)B="",(!a||i!=="")&&(B+=mn(e,n)),w=c[f],S=t[w],e.replacer&&(S=e.replacer.call(t,w,S)),Je(e,n+1,w,!0,!0,!0)&&(E=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,E&&(e.dump&&Vt===e.dump.charCodeAt(0)?B+="?":B+="? "),B+=e.dump,E&&(B+=mn(e,n)),Je(e,n+1,S,!0,E)&&(e.dump&&Vt===e.dump.charCodeAt(0)?B+=":":B+=": ",B+=e.dump,i+=B));e.tag=l,e.dump=i||"{}"}function Zi(e,n,t){var a,i,l,c,f,p;for(i=t?e.explicitTypes:e.implicitTypes,l=0,c=i.length;l<c;l+=1)if(f=i[l],(f.instanceOf||f.predicate)&&(!f.instanceOf||typeof n=="object"&&n instanceof f.instanceOf)&&(!f.predicate||f.predicate(n))){if(t?f.multi&&f.representName?e.tag=f.representName(n):e.tag=f.tag:e.tag="?",f.represent){if(p=e.styleMap[f.tag]||f.defaultStyle,La.call(f.represent)==="[object Function]")a=f.represent(n,p);else if(Ma.call(f.represent,p))a=f.represent[p](n,p);else throw new $e("!<"+f.tag+'> tag resolver accepts not "'+p+'" style');e.dump=a}return!0}return!1}function Je(e,n,t,a,i,l,c){e.tag=null,e.dump=t,Zi(e,t,!1)||Zi(e,t,!0);var f=La.call(e.dump),p=a,w;a&&(a=e.flowLevel<0||e.flowLevel>n);var S=f==="[object Object]"||f==="[object Array]",E,B;if(S&&(E=e.duplicates.indexOf(t),B=E!==-1),(e.tag!==null&&e.tag!=="?"||B||e.indent!==2&&n>0)&&(i=!1),B&&e.usedDuplicates[E])e.dump="*ref_"+E;else{if(S&&B&&!e.usedDuplicates[E]&&(e.usedDuplicates[E]=!0),f==="[object Object]")a&&Object.keys(e.dump).length!==0?(Su(e,n,e.dump,i),B&&(e.dump="&ref_"+E+e.dump)):(yu(e,n,e.dump),B&&(e.dump="&ref_"+E+" "+e.dump));else if(f==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!c&&n>0?Qi(e,n-1,e.dump,i):Qi(e,n,e.dump,i),B&&(e.dump="&ref_"+E+e.dump)):(bu(e,n,e.dump),B&&(e.dump="&ref_"+E+" "+e.dump));else if(f==="[object String]")e.tag!=="?"&&du(e,e.dump,n,l,p);else{if(f==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new $e("unacceptable kind of an object to dump "+f)}e.tag!==null&&e.tag!=="?"&&(w=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?w="!"+w:w.slice(0,18)==="tag:yaml.org,2002:"?w="!!"+w.slice(18):w="!<"+w+">",e.dump=w+" "+e.dump)}return!0}function Cu(e,n){var t=[],a=[],i,l;for(yn(e,t,a),i=0,l=a.length;i<l;i+=1)n.duplicates.push(t[a[i]]);n.usedDuplicates=new Array(l)}function yn(e,n,t){var a,i,l;if(e!==null&&typeof e=="object")if(i=n.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(n.push(e),Array.isArray(e))for(i=0,l=e.length;i<l;i+=1)yn(e[i],n,t);else for(a=Object.keys(e),i=0,l=a.length;i<l;i+=1)yn(e[a[i]],n,t)}function xu(e,n){n=n||{};var t=new uu(n);t.noRefs||Cu(e,t);var a=e;return t.replacer&&(a=t.replacer.call({"":a},"",a)),Je(t,0,a,!0,!0)?t.dump+`
`:""}var wu=xu,Eu={dump:wu};function _n(e,n){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}var _u=Ne,Au=ta,ku=aa,Tu=ua,Lu=fa,Mu=Cn,Iu=Ta.load,Fu=Ta.loadAll,Nu=Eu.dump,Ou=$e,Du={binary:va,float:ca,map:ia,null:sa,pairs:ba,set:ya,timestamp:ha,bool:oa,int:la,merge:da,omap:ma,seq:na,str:ra},Ru=_n("safeLoad","load"),$u=_n("safeLoadAll","loadAll"),Pu=_n("safeDump","dump"),Vu={Type:_u,Schema:Au,FAILSAFE_SCHEMA:ku,JSON_SCHEMA:Tu,CORE_SCHEMA:Lu,DEFAULT_SCHEMA:Mu,load:Iu,loadAll:Fu,dump:Nu,YAMLException:Ou,types:Du,safeLoad:Ru,safeLoadAll:$u,safeDump:Pu},Ba=Vu;var Ha=require("obsidian"),_r=class extends Ha.Plugin{constructor(){super(...arguments);this.settingsList=[];this.errorList=[];this.commandList=[];this.debounceTimer=0}async onload(){this.settingsManager=new Jt(this),await this.settingsManager.load(),this.settingsTab=new mr(this.app,this),this.addSettingTab(this.settingsTab),this.registerView(at,t=>new br(this,t)),this.addCommand({id:"show-style-settings-leaf",name:"Show style settings view",callback:()=>{this.activateView()}}),this.registerEvent(this.app.workspace.on("css-change",t=>{(t==null?void 0:t.source)!=="style-settings"&&this.parseCSS()})),this.registerEvent(this.app.workspace.on("parse-style-settings",()=>{this.parseCSS()})),this.lightEl=document.body.createDiv("theme-light style-settings-ref"),this.darkEl=document.body.createDiv("theme-dark style-settings-ref"),document.body.classList.add("css-settings-manager"),this.parseCSS(),this.app.workspace.onLayoutReady(()=>{this.settingsList&&this.app.workspace.getLeavesOfType(at).forEach(t=>{t.view.setSettings(this.settingsList,this.errorList)})})}getCSSVar(t){let a=getComputedStyle(this.lightEl).getPropertyValue(`--${t}`),i=getComputedStyle(this.darkEl).getPropertyValue(`--${t}`),l=getComputedStyle(document.body).getPropertyValue(`--${t}`);return{light:a,dark:i,current:l}}parseCSS(){clearTimeout(this.debounceTimer),this.debounceTimer=activeWindow.setTimeout(()=>{this.settingsList=[],this.errorList=[];for(let a of this.commandList)this.app.commands.removeCommand(a.id);this.commandList=[],this.settingsManager.removeClasses();let t=document.styleSheets;for(let a=0,i=t.length;a<i;a++){let l=t.item(a);l&&this.parseCSSStyleSheet(l)}this.registerSettingsToSettingsSearch(),this.settingsTab.setSettings(this.settingsList,this.errorList),this.app.workspace.getLeavesOfType(at).forEach(a=>{a.view.setSettings(this.settingsList,this.errorList)}),this.settingsManager.setConfig(this.settingsList),this.settingsManager.initClasses(),this.registerSettingCommands()},100)}registerSettingsToSettingsSearch(){var a;let t=()=>{if(window.SettingsSearch){let i=window.SettingsSearch;i.removeTabResources("obsidian-style-settings");for(let l of this.settingsList)i.addResources(...l.settings.map(c=>{var p,w;return{tab:"obsidian-style-settings",name:"Style Settings",text:(p=ve(c))!=null?p:"",desc:(w=me(c))!=null?w:""}}))}};(a=this.app.plugins.plugins["settings-search"])!=null&&a.loaded?t():this.app.workspace.on("settings-search-loaded",()=>{t()})}unregisterSettingsFromSettingsSearch(){var t;(t=this.app.plugins.plugins["settings-search"])!=null&&t.loaded&&window.SettingsSearch.removeTabResources("obsidian-style-settings")}parseCSSStyleSheet(t){var l,c;let a=(c=(l=t==null?void 0:t.ownerNode)==null?void 0:l.textContent)==null?void 0:c.trim();if(!a)return;let i=sn.exec(a);if(i!=null&&i.length)do{let f=a.match(wi);if(!f)continue;let p=f[1];try{let w=i[1].trim(),S=this.parseCSSSettings(w,p);S&&typeof S=="object"&&S.name&&S.id&&S.settings&&S.settings.length&&this.settingsList.push(S)}catch(w){this.errorList.push({name:p,error:`${w}`})}}while((i=sn.exec(a))!==null)}parseCSSSettings(t,a){let i=fn(t),l=Ba.load(t.replace(/\t/g,i.type==="space"?i.indent:" "),{filename:a});if(l.settings)return l.settings=l.settings.filter(c=>c),l}registerSettingCommands(){for(let t of this.settingsList)for(let a of t.settings)a.type===he.CLASS_TOGGLE&&a.addCommand&&this.addClassToggleCommand(t,a)}addClassToggleCommand(t,a){this.commandList.push(this.addCommand({id:`style-settings-class-toggle-${t.id}-${a.id}`,name:`Toggle ${a.title}`,callback:()=>{let i=!this.settingsManager.getSetting(t.id,a.id);this.settingsManager.setSetting(t.id,a.id,i),this.settingsTab.rerender();for(let l of this.app.workspace.getLeavesOfType(at))l.view.rerender()}}))}onunload(){this.lightEl.remove(),this.darkEl.remove(),document.body.classList.remove("css-settings-manager"),this.settingsManager.cleanup(),this.deactivateView(),this.unregisterSettingsFromSettingsSearch()}deactivateView(){this.app.workspace.detachLeavesOfType(at)}async activateView(){this.deactivateView();let t=this.app.workspace.getLeaf("tab");await t.setViewState({type:at,active:!0}),t.view.setSettings(this.settingsList,this.errorList)}};
/*! Bundled license information:
chroma-js/chroma.js:
(**
* chroma.js - JavaScript library for color conversions
*
* Copyright (c) 2011-2019, Gregor Aisch
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. The name Gregor Aisch may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* -------------------------------------------------------
*
* chroma.js includes colors from colorbrewer2.org, which are released under
* the following license:
*
* Copyright (c) 2002 Cynthia Brewer, Mark Harrower,
* and The Pennsylvania State University.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*
* ------------------------------------------------------
*
* Named colors are taken from X11 Color Names.
* http://www.w3.org/TR/css3-color/#svg-color
*
* @preserve
*)
@simonwep/pickr/dist/pickr.min.js:
(*! Pickr 1.8.4 MIT | https://github.com/Simonwep/pickr *)
js-yaml/dist/js-yaml.mjs:
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
*/
+10
View File
@@ -0,0 +1,10 @@
{
"id": "obsidian-style-settings",
"name": "Style Settings",
"version": "1.0.9",
"minAppVersion": "0.11.5",
"description": "Offers controls for adjusting theme, plugin, and snippet CSS variables.",
"author": "mgmeyers",
"authorUrl": "https://github.com/mgmeyers/obsidian-style-settings",
"isDesktopOnly": false
}
+243
View File
@@ -0,0 +1,243 @@
.style-settings-heading {
cursor: pointer;
margin-bottom: 18px;
padding-bottom: 6px;
border-bottom: 1px solid var(--background-modifier-border);
}
.style-settings-heading[data-level="0"] {
margin-bottom: 26px;
}
.style-settings-container {
padding-bottom: 16px;
}
.style-settings-heading[data-level="0"] + .style-settings-container {
padding-left: 34px;
}
.style-settings-heading.is-collapsed {
margin-bottom: 0;
}
.style-settings-heading.is-collapsed + .style-settings-container {
display: none;
}
.style-settings-collapse-indicator {
color: var(--text-faint);
display: inline-block;
margin-right: 8px;
position: relative;
top: -1px;
}
.style-settings-heading[data-level="0"]
+ .style-settings-container
.style-settings-collapse-indicator {
margin-left: -17px;
}
.style-settings-collapse-indicator > svg {
height: 9px;
width: 9px;
}
.style-settings-heading.is-collapsed .style-settings-collapse-indicator > svg {
transform: rotate(-90deg);
}
.style-settings-filter-result-count {
color: var(--text-faint);
line-height: var(--line-height-tight);
margin-inline: var(--size-4-2);
}
.style-settings-error {
font-size: 14px;
border-radius: 6px;
background: rgba(var(--background-modifier-error-rgb), 0.2);
color: var(--text-error);
padding: 10px;
margin-bottom: 1rem;
}
.style-settings-error-name {
font-weight: bold;
margin-bottom: 5px;
}
.style-settings-error-desc {
white-space: pre;
}
.style-settings-empty {
font-size: 14px;
background: var(--background-secondary);
padding: 10px;
}
.style-settings-empty-name {
font-weight: bold;
margin-bottom: 5px;
}
.style-settings-import-input {
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
}
.style-settings-import-label {
cursor: pointer;
color: var(--text-accent);
text-decoration: underline;
}
.style-settings-import-label:hover {
color: var(--text-accent-hover);
}
.style-settings-export,
.style-settings-import {
display: inline-block;
margin-right: 10px;
}
.style-settings-copy,
.style-settings-download {
position: relative;
display: inline-block;
margin-left: 10px;
}
.style-settings-copy:before {
color: var(--interactive-success);
content: "✓";
position: absolute;
left: -18px;
font-weight: bold;
opacity: 0;
transition: 150ms opacity ease-in-out;
}
.style-settings-copy.success:before {
opacity: 1;
}
.modal-style-settings {
height: 70vh;
display: flex;
flex-direction: column;
}
.modal-style-settings .modal-content {
flex-grow: 1;
margin: 0;
display: flex;
flex-direction: column;
}
.modal-style-settings textarea {
display: block;
width: 100%;
height: 100%;
font-family: var(--font-monospace) !important;
font-size: 12px;
white-space: pre;
overflow-wrap: normal;
overflow-x: scroll;
margin-bottom: 5px;
}
.modal-style-settings .setting-item {
align-items: flex-start;
}
.modal-style-settings button {
margin: 10px 0 0;
}
.style-settings-import-error {
display: none;
color: var(--text-error);
}
.style-settings-import-error.active {
display: block;
}
.view-content .style-settings-container .setting-item:not(.setting-item-heading) {
flex-direction: column;
align-items: flex-start;
}
.view-content .style-settings-container .setting-item:not(.setting-item-heading) .setting-item-control {
padding-top: 0.5em;
}
.view-content .style-settings-container .setting-item:not(.setting-item-heading) .themed-color-wrapper {
display: flex;
}
.style-settings-ref {
position: absolute;
width: 0 !important;
height: 0 !important;
pointer-events: none;
}
.style-settings-info-text .style-settings-markdown :first-child {
margin-top: 0;
}
.style-settings-info-text .style-settings-markdown :last-child {
margin-bottom: 0;
}.style-settings-container .pcr-app {
display: none;
}
.style-settings-container .pcr-app.visible {
display: flex;
}
.pcr-app .pcr-swatches > button {
padding: 0;
}
.pickr .pcr-button {
margin-right: 0;
}
.themed-color-wrapper > div {
background: var(--background-primary);
padding: 10px;
display: flex;
align-items: center;
border-radius: 4px;
}
.themed-color-wrapper > div + div {
margin-top: 6px;
}
.themed-color-wrapper button {
display: block;
}
.themed-color-wrapper .pickr-reset > button {
margin: 0 0 0 10px;
padding: 9px;
line-height: 1;
}
.themed-color-wrapper .pickr-reset > button > svg {
display: block;
}
/*! Pickr 1.8.4 MIT | https://github.com/Simonwep/pickr */
.pickr{position:relative;overflow:visible;transform:translateY(0)}.pickr *{box-sizing:border-box;outline:none;border:none;-webkit-appearance:none}.pickr .pcr-button{position:relative;height:2em;width:2em;padding:0.5em;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif;border-radius:.15em;background:url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" stroke="%2342445A" stroke-width="5px" stroke-linecap="round"><path d="M45,45L5,5"></path><path d="M45,5L5,45"></path></svg>') no-repeat center;background-size:0;transition:all 0.3s}.pickr .pcr-button::before{position:absolute;content:'';top:0;left:0;width:100%;height:100%;background:url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>');background-size:.5em;border-radius:.15em;z-index:-1}.pickr .pcr-button::before{z-index:initial}.pickr .pcr-button::after{position:absolute;content:'';top:0;left:0;height:100%;width:100%;transition:background 0.3s;background:var(--pcr-color);border-radius:.15em}.pickr .pcr-button.clear{background-size:70%}.pickr .pcr-button.clear::before{opacity:0}.pickr .pcr-button.clear:focus{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px var(--pcr-color)}.pickr .pcr-button.disabled{cursor:not-allowed}.pickr *,.pcr-app *{box-sizing:border-box;outline:none;border:none;-webkit-appearance:none}.pickr input:focus,.pickr input.pcr-active,.pickr button:focus,.pickr button.pcr-active,.pcr-app input:focus,.pcr-app input.pcr-active,.pcr-app button:focus,.pcr-app button.pcr-active{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px var(--pcr-color)}.pickr .pcr-palette,.pickr .pcr-slider,.pcr-app .pcr-palette,.pcr-app .pcr-slider{transition:box-shadow 0.3s}.pickr .pcr-palette:focus,.pickr .pcr-slider:focus,.pcr-app .pcr-palette:focus,.pcr-app .pcr-slider:focus{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px rgba(0,0,0,0.25)}.pcr-app{position:fixed;display:flex;flex-direction:column;z-index:10000;border-radius:0.1em;background:#fff;opacity:0;visibility:hidden;transition:opacity 0.3s, visibility 0s 0.3s;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif;box-shadow:0 0.15em 1.5em 0 rgba(0,0,0,0.1),0 0 1em 0 rgba(0,0,0,0.03);left:0;top:0}.pcr-app.visible{transition:opacity 0.3s;visibility:visible;opacity:1}.pcr-app .pcr-swatches{display:flex;flex-wrap:wrap;margin-top:0.75em}.pcr-app .pcr-swatches.pcr-last{margin:0}@supports (display: grid){.pcr-app .pcr-swatches{display:grid;align-items:center;grid-template-columns:repeat(auto-fit, 1.75em)}}.pcr-app .pcr-swatches>button{font-size:1em;position:relative;width:calc(1.75em - 5px);height:calc(1.75em - 5px);border-radius:0.15em;cursor:pointer;margin:2.5px;flex-shrink:0;justify-self:center;transition:all 0.15s;overflow:hidden;background:transparent;z-index:1}.pcr-app .pcr-swatches>button::before{position:absolute;content:'';top:0;left:0;width:100%;height:100%;background:url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>');background-size:6px;border-radius:.15em;z-index:-1}.pcr-app .pcr-swatches>button::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:var(--pcr-color);border:1px solid rgba(0,0,0,0.05);border-radius:0.15em;box-sizing:border-box}.pcr-app .pcr-swatches>button:hover{filter:brightness(1.05)}.pcr-app .pcr-swatches>button:not(.pcr-active){box-shadow:none}.pcr-app .pcr-interaction{display:flex;flex-wrap:wrap;align-items:center;margin:0 -0.2em 0 -0.2em}.pcr-app .pcr-interaction>*{margin:0 0.2em}.pcr-app .pcr-interaction input{letter-spacing:0.07em;font-size:0.75em;text-align:center;cursor:pointer;color:#75797e;background:#f1f3f4;border-radius:.15em;transition:all 0.15s;padding:0.45em 0.5em;margin-top:0.75em}.pcr-app .pcr-interaction input:hover{filter:brightness(0.975)}.pcr-app .pcr-interaction input:focus{box-shadow:0 0 0 1px rgba(255,255,255,0.85),0 0 0 3px rgba(66,133,244,0.75)}.pcr-app .pcr-interaction .pcr-result{color:#75797e;text-align:left;flex:1 1 8em;min-width:8em;transition:all 0.2s;border-radius:.15em;background:#f1f3f4;cursor:text}.pcr-app .pcr-interaction .pcr-result::-moz-selection{background:#4285f4;color:#fff}.pcr-app .pcr-interaction .pcr-result::selection{background:#4285f4;color:#fff}.pcr-app .pcr-interaction .pcr-type.active{color:#fff;background:#4285f4}.pcr-app .pcr-interaction .pcr-save,.pcr-app .pcr-interaction .pcr-cancel,.pcr-app .pcr-interaction .pcr-clear{color:#fff;width:auto}.pcr-app .pcr-interaction .pcr-save,.pcr-app .pcr-interaction .pcr-cancel,.pcr-app .pcr-interaction .pcr-clear{color:#fff}.pcr-app .pcr-interaction .pcr-save:hover,.pcr-app .pcr-interaction .pcr-cancel:hover,.pcr-app .pcr-interactioLine truncated
+40
View File
@@ -0,0 +1,40 @@
{
"useCache": true,
"hideExcluded": false,
"downrankedFoldersFilters": [],
"ignoreDiacritics": true,
"ignoreArabicDiacritics": false,
"indexedFileTypes": [],
"displayTitle": "",
"PDFIndexing": false,
"officeIndexing": false,
"imagesIndexing": false,
"aiImageIndexing": false,
"unsupportedFilesIndexing": "no",
"splitCamelCase": true,
"openInNewPane": false,
"vimLikeNavigationShortcut": false,
"ribbonIcon": true,
"showExcerpt": true,
"renderLineReturnInExcerpts": true,
"showCreateButton": false,
"highlight": true,
"showPreviousQueryResults": true,
"simpleSearch": false,
"tokenizeUrls": false,
"fuzziness": "1",
"weightBasename": 3,
"weightDirectory": 2,
"weightH1": 1.5,
"weightH2": 1.3,
"weightH3": 1.1,
"weightUnmarkedTags": 1.1,
"weightCustomProperties": [],
"httpApiEnabled": false,
"httpApiPort": "51361",
"httpApiNotice": true,
"welcomeMessage": "1.21.0",
"verboseLogging": false,
"DANGER_httpHost": null,
"DANGER_forceSaveCache": false
}
+105
View File
@@ -0,0 +1,105 @@
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var By=Object.create;var Xs=Object.defineProperty,jy=Object.defineProperties,Hy=Object.getOwnPropertyDescriptor,Uy=Object.getOwnPropertyDescriptors,Gy=Object.getOwnPropertyNames,qh=Object.getOwnPropertySymbols,qy=Object.getPrototypeOf,zh=Object.prototype.hasOwnProperty,zy=Object.prototype.propertyIsEnumerable;var $c=(e,t,r)=>t in e?Xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,J=(e,t)=>{for(var r in t||(t={}))zh.call(t,r)&&$c(e,r,t[r]);if(qh)for(var r of qh(t))zy.call(t,r)&&$c(e,r,t[r]);return e},Fe=(e,t)=>jy(e,Uy(t)),Vh=e=>Xs(e,"__esModule",{value:!0});var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kh=(e,t)=>{Vh(e);for(var r in t)Xs(e,r,{get:t[r],enumerable:!0})},Vy=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Gy(t))!zh.call(e,n)&&n!=="default"&&Xs(e,n,{get:()=>t[n],enumerable:!(r=Hy(t,n))||r.enumerable});return e},Xe=e=>Vy(Vh(Xs(e!=null?By(qy(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Wh=(e,t,r)=>($c(e,typeof t!="symbol"?t+"":t,r),r);function qe(){}function Ky(e,t){for(let r in t)e[r]=t[r];return e}function Xc(e){return e()}function Yh(){return Object.create(null)}function lr(e){e.forEach(Xc)}function Li(e){return typeof e=="function"}function ot(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Zc(e,t){return Su||(Su=document.createElement("a")),Su.href=t,e===Su.href}function Qh(e){return Object.keys(e).length===0}function $h(e,...t){if(e==null)return qe;let r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function xu(e,t,r){e.$$.on_destroy.push($h(t,r))}function Mi(e,t,r,n){if(e){let i=Xh(e,t,r,n);return e[0](i)}}function Xh(e,t,r,n){return e[1]&&n?Ky(r.ctx.slice(),e[1](n(t))):r.ctx}function ki(e,t,r,n){if(e[2]&&n){let i=e[2](n(r));if(t.dirty===void 0)return i;if(typeof i=="object"){let s=[],a=Math.max(t.dirty.length,i.length);for(let u=0;u<a;u+=1)s[u]=t.dirty[u]|i[u];return s}return t.dirty|i}return t.dirty}function Fi(e,t,r,n,i,s){if(i){let a=Xh(t,r,n,s);e.p(a,i)}}function Bi(e){if(e.ctx.length>32){let t=[],r=e.ctx.length/32;for(let n=0;n<r;n++)t[n]=-1;return t}return-1}function Zh(e){return e&&Li(e.destroy)?e.destroy:qe}function Wy(){e0=!0}function Yy(){e0=!1}function j(e,t){e.appendChild(t)}function ae(e,t,r){e.insertBefore(t,r||null)}function se(e){e.parentNode&&e.parentNode.removeChild(e)}function Nu(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function V(e){return document.createElement(e)}function dt(e){return document.createTextNode(e)}function ue(){return dt(" ")}function Zs(){return dt("")}function ht(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function Z(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function Qy(e){return Array.from(e.childNodes)}function xr(e,t){t=""+t,e.data!==t&&(e.data=t)}function Jc(e,t){e.value=t??""}function zt(e,t,r,n){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function el(e,t,r){e.classList[r?"add":"remove"](t)}function $y(e,t,{bubbles:r=!1,cancelable:n=!1}={}){let i=document.createEvent("CustomEvent");return i.initCustomEvent(e,r,n,t),i}function ea(e){Js=e}function tl(){if(!Js)throw new Error("Function called outside component initialization");return Js}function ta(e){tl().$$.on_mount.push(e)}function ra(e){tl().$$.on_destroy.push(e)}function rl(){let e=tl();return(t,r,{cancelable:n=!1}={})=>{let i=e.$$.callbacks[t];if(i){let s=$y(t,r,{cancelable:n});return i.slice().forEach(a=>{a.call(e,s)}),!s.defaultPrevented}return!0}}function Vt(e,t){let r=e.$$.callbacks[t.type];r&&r.slice().forEach(n=>n.call(this,t))}function n0(){nl||(nl=!0,r0.then(i0))}function mn(){return n0(),r0}function il(e){Hi.push(e)}function i0(){if(Ui!==0)return;let e=Js;do{try{for(;Ui<ji.length;){let t=ji[Ui];Ui++,ea(t),Xy(t.$$)}}catch(t){throw ji.length=0,Ui=0,t}for(ea(null),ji.length=0,Ui=0;Yr.length;)Yr.pop()();for(let t=0;t<Hi.length;t+=1){let r=Hi[t];sl.has(r)||(sl.add(r),r())}Hi.length=0}while(ji.length);for(;t0.length;)t0.pop()();nl=!1,sl.clear(),ea(e)}function Xy(e){if(e.fragment!==null){e.update(),lr(e.before_update);let t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(il)}}function Zy(e){let t=[],r=[];Hi.forEach(n=>e.indexOf(n)===-1?t.push(n):r.push(n)),r.forEach(n=>n()),Hi=t}function ei(){Jn={r:0,c:[],p:Jn}}function ti(){Jn.r||lr(Jn.c),Jn=Jn.p}function Ee(e,t){e&&e.i&&(wu.delete(e),e.i(t))}function Oe(e,t,r,n){if(e&&e.o){if(wu.has(e))return;wu.add(e),Jn.c.push(()=>{wu.delete(e),n&&(r&&e.d(1),n())}),e.o(t)}else n&&n()}function Lt(e){e&&e.c()}function Dt(e,t,r,n){let{fragment:i,after_update:s}=e.$$;i&&i.m(t,r),n||il(()=>{let a=e.$$.on_mount.map(Xc).filter(Li);e.$$.on_destroy?e.$$.on_destroy.push(...a):lr(a),e.$$.on_mount=[]}),s.forEach(il)}function Tt(e,t){let r=e.$$;r.fragment!==null&&(Zy(r.after_update),lr(r.on_destroy),r.fragment&&r.fragment.d(t),Line truncated
<iframe sandbox="allow-top-navigation-by-user-activation" src="https://github.com/sponsors/scambier/button" title="Sponsor scambier" height="35" width="116" style="border: 0;"></iframe>
<a href='https://ko-fi.com/B0B6LQ2C' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi2.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
`,new ee.Setting(t).setName("Indexing").setHeading().setDesc(sr(`\u26A0\uFE0F <span style="color: var(--text-accent)">Changing indexing settings will clear the cache, and requires a restart of Obsidian.</span><br/><br/>
${n?`\u{1F44D} You have installed <a href="https://github.com/scambier/obsidian-text-extractor">Text Extractor</a>, Omnisearch can use it to index PDFs and images contents.
<br />Text extraction only works on desktop, but the cache can be synchronized with your mobile device.`:'\u26A0\uFE0F Omnisearch requires <a href="https://github.com/scambier/obsidian-text-extractor">Text Extractor</a> to index PDFs and images.'}
${s?'<br/>\u{1F44D} You have installed <a href="https://github.com/Swaggeroo/obsidian-ai-image-analyzer">AI Image Analyzer</a>, Omnisearch can use it to index images contents with ai.':'<br/>\u26A0\uFE0F Omnisearch requires <a href="https://github.com/Swaggeroo/obsidian-ai-image-analyzer">AI Image Analyzer</a> to index images with ai.'}`)),new ee.Setting(t).setName(`PDFs content indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(sr("Omnisearch will use Text Extractor to index the content of your PDFs.")).addToggle(d=>d.setValue(z.PDFIndexing).onChange(async f=>{await r.clearCache(),z.PDFIndexing=f,await pe(this.plugin)})).setDisabled(!n),new ee.Setting(t).setName(`Images OCR indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(sr("Omnisearch will use Text Extractor to OCR your images and index their content.")).addToggle(d=>d.setValue(z.imagesIndexing).onChange(async f=>{await r.clearCache(),z.imagesIndexing=f,await pe(this.plugin)})).setDisabled(!n);let u=new DocumentFragment;u.createSpan({},d=>{d.innerHTML='Omnisearch will use Text Extractor to index the content of your office documents (currently <pre style="display:inline">.docx</pre> and <pre style="display:inline">.xlsx</pre>).'}),new ee.Setting(t).setName(`Documents content indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(u).addToggle(d=>d.setValue(z.officeIndexing).onChange(async f=>{await r.clearCache(),z.officeIndexing=f,await pe(this.plugin)})).setDisabled(!n);let o=new DocumentFragment;o.createSpan({},d=>{d.innerHTML="Omnisearch will use AI Image Analyzer to index the content of your images with ai."}),new ee.Setting(t).setName(`Images AI indexing ${s?"":"\u26A0\uFE0F Disabled"}`).setDesc(o).addToggle(d=>d.setValue(z.aiImageIndexing).onChange(async f=>{await r.clearCache(),z.aiImageIndexing=f,await pe(this.plugin)})).setDisabled(!s),new ee.Setting(t).setName("Index paths of unsupported files").setDesc(sr(`
Omnisearch can index file<strong>names</strong> of "unsupported" files, such as e.g. <pre style="display:inline">.mp4</pre>
or non-extracted PDFs & images.<br/>
"Obsidian setting" will respect the value of "Files & Links > Detect all file extensions".`)).addDropdown(d=>{d.addOptions({yes:"Yes",no:"No",default:"Obsidian setting"}).setValue(z.unsupportedFilesIndexing).onChange(async f=>{await i(),z.unsupportedFilesIndexing=f,await pe(this.plugin)})}),new ee.Setting(t).setName("Set frontmatter property key as title").setDesc(sr(`If you have a custom property in your notes that you want to use as the title in search results.<br>
Leave empty to disable.`)).addText(d=>{d.setValue(z.displayTitle).onChange(async f=>{await i(),z.displayTitle=f,await pe(this.plugin)})}),new ee.Setting(t).setName("Additional TEXT files to index").setDesc(sr(`In addition to standard <code>md</code> files, Omnisearch can also index other <strong style="color: var(--text-accent)">PLAINTEXT</strong> files.<br/>
Add extensions separated by a space, without the dot. Example: "<code>txt org csv</code>".<br />
\u26A0\uFE0F <span style="color: var(--text-accent)">Using extensions of non-plaintext files (like .pptx) WILL cause crashes,
because Omnisearch will try to index their content.</span>`)).addText(d=>{d.setValue(z.indexedFileTypes.join(" ")).setPlaceholder("Example: txt org csv").onChange(async f=>{await r.clearCache(),z.indexedFileTypes=f.split(" "),await pe(this.plugin)})}),new ee.Setting(t).setName("Behavior").setHeading(),new ee.Setting(t).setName("Save index to cache").setDesc("Enable caching to speed up indexing time. In rare cases, the cache write may cause a crash in Obsidian. This option will disable itself if it happens.").addToggle(d=>d.setValue(z.useCache).onChange(async f=>{z.useCache=f,await pe(this.plugin)})),new ee.Setting(t).setName("Show previous query results").setDesc("Re-executes the previous query when opening Omnisearch.").addToggle(d=>d.setValue(z.showPreviousQueryResults).onChange(async f=>{z.showPreviousQueryResults=f,await pe(this.plugin)})),new ee.Setting(t).setName(`Respect Obsidian's "Excluded Files"`).setDesc(`By default, files that are in Obsidian's "Options > Files & Links > Excluded Files" list are downranked in results.
Enable this option to completely hide them.`).addToggle(d=>d.setValue(z.hideExcluded).onChange(async f=>{z.hideExcluded=f,await pe(this.plugin)})),new ee.Setting(t).setName("Folders to downrank in search results").setDesc("Folders to downrank in search results. Files in these folders will be downranked in results. They will still be indexed for tags, unlike excluded files. Folders should be comma delimited.").addText(d=>{d.setValue(z.downrankedFoldersFilters.join(",")).setPlaceholder("Example: src,p2/dir").onChange(async f=>{let g=f.split(",");g=g.map(y=>y.trim()),z.downrankedFoldersFilters=g,await pe(this.plugin)})}),new ee.Setting(t).setName("Split CamelCaseWords").setDesc(sr(`Enable this if you want to be able to search for CamelCaseWords as separate words.<br/>
\u26A0\uFE0F <span style="color: var(--text-accent)">Changing this setting will clear the cache.</span><br>
${mo}`)).addToggle(d=>d.setValue(z.splitCamelCase).onChange(async f=>{await r.clearCache(),z.splitCamelCase=f,await pe(this.plugin)})),new ee.Setting(t).setName("Simpler search").setDesc(`Enable this if Obsidian often freezes while making searches.
Words shorter than 3 characters won't be used as prefixes; this can reduce search delay but will return fewer results.`).addToggle(d=>d.setValue(z.simpleSearch).onChange(async f=>{z.simpleSearch=f,await pe(this.plugin)})),ee.Platform.isIosApp||new ee.Setting(t).setName("Tokenize URLs").setDesc(`Enable this if you want to be able to search for URLs as separate words.
This setting has a strong impact on indexing performance, and can crash Obsidian under certain conditions.`).addToggle(d=>d.setValue(z.tokenizeUrls).onChange(async f=>{z.tokenizeUrls=f,await pe(this.plugin)})),new ee.Setting(t).setName("Open in new pane").setDesc("Open and create files in a new pane instead of the current pane.").addToggle(d=>d.setValue(z.openInNewPane).onChange(async f=>{z.openInNewPane=f,await pe(this.plugin)})),new ee.Setting(t).setName("Set Vim like navigation keys").setDesc("Navigate down the results with Ctrl/\u2318 + J/N, or navigate up with Ctrl/\u2318 + K/P").addToggle(d=>d.setValue(z.vimLikeNavigationShortcut).onChange(async f=>{z.vimLikeNavigationShortcut=f,await pe(this.plugin)})),new ee.Setting(t).setName("Fuzziness").setDesc("Define the level of fuzziness for the search. The higher the fuzziness, the more results you'll get.").addDropdown(d=>d.addOptions({0:"Exact match",1:"Not too fuzzy",2:"Fuzzy enough"}).setValue(z.fuzziness).onChange(async f=>{["0","1","2"].includes(f)||(f="2"),z.fuzziness=f,await pe(this.plugin)})),new ee.Setting(t).setName("User Interface").setHeading(),new ee.Setting(t).setName("Show ribbon button").setDesc("Add a button on the sidebar to open the Vault search modal.").addToggle(d=>d.setValue(z.ribbonIcon).onChange(async f=>{z.ribbonIcon=f,await pe(this.plugin),f?this.plugin.addRibbonButton():this.plugin.removeRibbonButton()})),new ee.Setting(t).setName("Show excerpts").setDesc("Shows the contextual part of the note that matches the search. Disable this to only show filenames in results.").addToggle(d=>d.setValue(z.showExcerpt).onChange(async f=>{ai.set(f)})),new ee.Setting(t).setName("Render line return in excerpts").setDesc("Activate this option to render line returns in result excerpts.").addToggle(d=>d.setValue(z.renderLineReturnInExcerpts).onChange(async f=>{z.renderLineReturnInExcerpts=f,await pe(this.plugin)})),new ee.Setting(t).setName('Show "Create note" button').setDesc(sr(`Shows a button next to the search input, to create a note.
Acts the same as the <code>shift \u21B5</code> shortcut, can be useful for mobile device users.`)).addToggle(d=>d.setValue(z.showCreateButton).onChange(async f=>{z.showCreateButton=f,await pe(this.plugin)})),new ee.Setting(t).setName("Highlight matching words in results").setDesc("Will highlight matching results when enabled. See README for more customization options.").addToggle(d=>d.setValue(z.highlight).onChange(async f=>{z.highlight=f,await pe(this.plugin)}));let c=go(this.app);new ee.Setting(t).setName("Results weighting").setHeading(),new ee.Setting(t).setName(`File name & declared aliases (default: ${c.weightBasename})`).addSlider(d=>this.weightSlider(d,"weightBasename")),new ee.Setting(t).setName(`File directory (default: ${c.weightDirectory})`).addSlider(d=>this.weightSlider(d,"weightDirectory")),new ee.Setting(t).setName(`Headings level 1 (default: ${c.weightH1})`).addSlider(d=>this.weightSlider(d,"weightH1")),new ee.Setting(t).setName(`Headings level 2 (default: ${c.weightH2})`).addSlider(d=>this.weightSlider(d,"weightH2")),new ee.Setting(t).setName(`Headings level 3 (default: ${c.weightH3})`).addSlider(d=>this.weightSlider(d,"weightH3")),new ee.Setting(t).setName(`Tags (default: ${c.weightUnmarkedTags})`).addSlider(d=>this.weightSlider(d,"weightUnmarkedTags")),new ee.Setting(t).setName("Header properties fields").setDesc('You can set custom weights for values of header properties (e.g. "keywords"). Weights under 1.0 will downrank the results.');for(let d=0;d<z.weightCustomProperties.length;d++){let f=z.weightCustomProperties[d];new ee.Setting(t).setName((d+1).toString()+".").addText(g=>{g.setPlaceholder("Property name").setValue(f.name).onChange(async y=>{f.name=y,await pe(this.plugin)})}).addSlider(g=>{g.setLimits(.1,5,.1).setValue(f.weight).setDynamicTooltip().onChange(async y=>{f.weight=y,await pe(this.plugin)})}).addButton(g=>{g.setButtonText("Remove"),g.onClick(async()=>{z.weightCustomProperties.splice(d,1),await pe(this.plugin),this.display()})})}new ee.Setting(t).addButton(d=>{d.setButtonText("Add a new property"),d.onClick(f=>{z.weightCustomProperties.push({name:"",weight:1}),this.display()})}),ee.Platform.isMobile||(new ee.Setting(t).setName("API Access Through HTTP").setHeading().setDesc(sr('Omnisearch can be used through a simple HTTP server (<a href="https://publish.obsidian.md/omnisearch/Public+API+%26+URL+Scheme#HTTP+Server">more information</a>).')),new ee.Setting(t).setName("Enable the HTTP server").addToggle(d=>d.setValue(z.httpApiEnabled).onChange(async f=>{z.httpApiEnabled=f,f?this.plugin.apiHttpServer.listen(z.httpApiPort):this.plugin.apiHttpServer.close(),await pe(this.plugin)})),new ee.Setting(t).setName("HTTP Port").addText(d=>{d.setValue(z.httpApiPort).setPlaceholder("51361").onChange(async f=>{parseInt(f)>65535&&(f=z.httpApiPort,d.setValue(z.httpApiPort)),z.httpApiPort=f,z.httpApiEnabled&&(this.plugin.apiHttpServer.close(),this.plugin.apiHttpServer.listen(z.httpApiPort)),await pe(this.plugin)})}),new ee.Setting(t).setName("Show a notification when the server starts").setDesc("Will display a notification if the server is enabled, at Obsidian startup.").addToggle(d=>d.setValue(z.httpApiNotice).onChange(async f=>{z.httpApiNotice=f,await pe(this.plugin)}))),new ee.Setting(t).setName("Debugging").setHeading(),new ee.Setting(t).setName("Enable verbose logging").setDesc("Adds a LOT of logs for debugging purposes. Don't forget to disable it.").addToggle(d=>d.setValue(z.verboseLogging).onChange(async f=>{z.verboseLogging=f,pl(f),await pe(this.plugin)})),new ee.Setting(t).setName("Danger Zone").setHeading(),new ee.Setting(t).setName("Ignore diacritics").setDesc(sr(`Normalize diacritics in search terms. Words like "br\xFBl\xE9e" or "\u017Elu\u0165ou\u010Dk\xFD" will be indexed as "brulee" and "zlutoucky".<br/>
\u26A0\uFE0F <span style="color: var(--text-accent)">You probably should <strong>NOT</strong> disable this.</span><br>
\u26A0\uFE0F <span style="color: var(--text-accent)">Changing this setting will clear the cache.</span><br>
${mo}`)).addToggle(d=>d.setValue(z.ignoreDiacritics).onChange(async f=>{await r.clearCache(),z.ignoreDiacritics=f,await pe(this.plugin)})),new ee.Setting(t).setName("Ignore Arabic diacritics (beta)").addToggle(d=>d.setValue(z.ignoreArabicDiacritics).onChange(async f=>{await r.clearCache(),z.ignoreArabicDiacritics=f,await pe(this.plugin)}));let h=new DocumentFragment;h.createSpan({},d=>{d.innerHTML=`Disable Omnisearch on this device only.<br>
${mo}`}),new ee.Setting(t).setName("Disable on this device").setDesc(h).addToggle(d=>d.setValue(Yl(this.app)).onChange(async f=>{f?(this.app.saveLocalStorage(ia,"1"),new ee.Notice("Omnisearch - Disabled. Please restart Obsidian.")):(this.app.saveLocalStorage(ia),new ee.Notice("Omnisearch - Enabled. Please restart Obsidian."))})),new ee.Setting(t).setName("Force save the cache").setDesc(sr(`Omnisearch has a security feature that automatically disables cache writing if it cannot fully perform the operation.<br>
Use this option to force the cache to be saved, even if it causes a crash.<br>
\u26A0\uFE0F <span style="color: var(--text-accent)">Enabling this setting could lead to crash loops</span>`)).addToggle(d=>d.setValue(z.DANGER_forceSaveCache).onChange(async f=>{z.DANGER_forceSaveCache=f,await pe(this.plugin)})),Nn()&&new ee.Setting(t).setName("Clear cache data").setDesc(sr(`Erase all Omnisearch cache data.
Use this if Omnisearch results are inconsistent, missing, or appear outdated.<br>
${mo}`)).addButton(d=>{d.setButtonText("Clear cache"),d.onClick(async()=>{await r.clearCache()})})}weightSlider(t,r){t.setLimits(1,5,.1).setValue(z[r]).setDynamicTooltip().onChange(async n=>{z[r]=n,await pe(this.plugin)})}}});function YS(e){let t;return{c(){t=V("span"),t.innerHTML='<svg viewBox="0 0 100 100" class="add-note-glyph" width="16" height="16"><path fill="currentColor" stroke="currentColor" d="M23.3,6.7c-3.7,0-6.7,3-6.7,6.7v73.3c0,3.7,3,6.7,6.7,6.7h28.4c-3.2-4.8-5.1-10.5-5.1-16.7c0-16.6,13.4-30,30-30 c2.3,0,4.5,0.3,6.7,0.8V31.7c0-0.9-0.3-1.7-1-2.4L60.7,7.6c-0.6-0.6-1.5-1-2.4-1L23.3,6.7z M56.7,13L77,33.3H60 c-1.8,0-3.3-1.5-3.3-3.3L56.7,13z M76.7,53.3c-12.9,0-23.3,10.4-23.3,23.3S63.8,100,76.7,100S100,89.6,100,76.7 S89.6,53.3,76.7,53.3z M76.7,63.3c1.8,0,3.3,1.5,3.3,3.3v6.7h6.7c1.8,0,3.3,1.5,3.3,3.3c0,1.8-1.5,3.3-3.3,3.3H80v6.7 c0,1.8-1.5,3.3-3.3,3.3c-1.8,0-3.3-1.5-3.3-3.3V80h-6.7c-1.8,0-3.3-1.5-3.3-3.3s1.5-3.3,3.3-3.3h6.7v-6.7 C73.3,64.8,74.8,63.3,76.7,63.3L76.7,63.3z"></path></svg>',Z(t,"class","suggestion-flair"),Z(t,"aria-label","Not created yet, select to create")},m(r,n){ae(r,t,n)},p:qe,i:qe,o:qe,d(r){r&&se(t)}}}function QS(e){"use strict";return[]}var D_,S_,x_=x(()=>{nr();D_=class extends pt{constructor(t){super();bt(this,t,QS,YS,ot,{})}},S_=D_});function O_(e){let t,r;return t=new S_({}),{c(){Lt(t.$$.fragment)},m(n,i){Dt(t,n,i),r=!0},i(n){r||(Ee(t.$$.fragment,n),r=!0)},o(n){Oe(t.$$.fragment,n),r=!1},d(n){Tt(t,n)}}}function $S(e){let t,r,n,i,s,a=e[2]&&O_(e),u=e[4].default,o=Mi(u,e,e[3],null);return{c(){t=V("div"),a&&a.c(),r=ue(),o&&o.c(),Z(t,"data-result-id",e[0]),Z(t,"class","suggestion-item omnisearch-result"),el(t,"is-selected",e[1])},m(c,h){ae(c,t,h),a&&a.m(t,null),j(t,r),o&&o.m(t,null),n=!0,i||(s=[ht(t,"mousemove",e[5]),ht(t,"click",e[6]),ht(t,"keypress",e[7]),ht(t,"auxclick",e[8])],i=!0)},p(c,[h]){c[2]?a?h&4&&Ee(a,1):(a=O_(c),a.c(),Ee(a,1),a.m(t,r)):a&&(ei(),Oe(a,1,1,()=>{a=null}),ti()),o&&o.p&&(!n||h&8)&&Fi(o,u,c,c[3],n?ki(u,c[3],h,null):Bi(c[3]),null),(!n||h&1)&&Z(t,"data-result-id",c[0]),(!n||h&2)&&el(t,"is-selected",c[1])},i(c){n||(Ee(a),Ee(o,c),n=!0)},o(c){Oe(a),Oe(o,c),n=!1},d(c){c&&se(t),a&&a.d(),o&&o.d(c),i=!1,lr(s)}}}function XS(e,t,r){let{$$slots:n={},$$scope:i}=t,{id:s}=t,{selected:a=!1}=t,{glyph:u=!1}=t;function o(f){Vt.call(this,e,f)}function c(f){Vt.call(this,e,f)}function h(f){Vt.call(this,e,f)}function d(f){Vt.call(this,e,f)}return e.$$set=f=>{"id"in f&&r(0,s=f.id),"selected"in f&&r(1,a=f.selected),"glyph"in f&&r(2,u=f.glyph),"$$scope"in f&&r(3,i=f.$$scope)},[s,a,u,i,n,o,c,h,d]}var N_,_o,$l=x(()=>{nr();x_();N_=class extends pt{constructor(t){super();bt(this,t,XS,$S,ot,{id:0,selected:1,glyph:2})}},_o=N_});function w_(e){let t,r=e[1].matches.length+"",n,i,s=(e[1].matches.length>1?"matches":"match")+"",a;return{c(){t=V("span"),n=dt(r),i=dt("\xA0"),a=dt(s),Z(t,"class","omnisearch-result__counter")},m(u,o){ae(u,t,o),j(t,n),j(t,i),j(t,a)},p(u,o){o&2&&r!==(r=u[1].matches.length+"")&&xr(n,r),o&2&&s!==(s=(u[1].matches.length>1?"matches":"match")+"")&&xr(a,s)},d(u){u&&se(t)}}}function R_(e){let t,r,n,i,s=e[2].textProcessor.highlightText(e[4],e[10])+"";return{c(){t=V("div"),r=V("span"),n=ue(),i=V("span"),Z(t,"class","omnisearch-result__folder-path")},m(a,u){ae(a,t,u),j(t,r),e[14](r),j(t,n),j(t,i),i.innerHTML=s},p(a,u){u&1044&&s!==(s=a[2].textProcessor.highlightText(a[4],a[10])+"")&&(i.innerHTML=s)},d(a){a&&se(t),e[14](null)}}}function P_(e){let t,r=e[2].textProcessor.highlightText(e[9],e[1].matches)+"";return{c(){t=V("div"),Z(t,"class","omnisearch-result__body")},m(n,i){ae(n,t,i),t.innerHTML=r},p(n,i){i&518&&r!==(r=n[2].textProcessor.highlightText(n[9],n[1].matches)+"")&&(t.innerHTML=r)},d(n){n&&se(t)}}}function L_(e){let t,r,n;return{c(){t=V("div"),r=V("img"),zt(r,"width","100px"),Zc(r.src,n=e[7])||Z(r,"src",n),Z(r,"alt",""),Z(t,"class","omnisearch-result__image-container")},m(i,s){ae(i,t,s),j(t,r)},p(i,s){s&128&&!Zc(r.src,n=i[7])&&Z(r,"src",n)},d(i){i&&se(t)}}}function ZS(e){let t,r,n,i,s,a,u=e[2].textProcessor.highlightText(e[3],e[11])+"",o,c,h,d=En(e[1].path)+"",f,g,y,b,D,m,v=e[1].matches.length>0&&w_(e),I=e[4]&&R_(e),T=e[12]&&P_(e),E=e[7]&&L_(e);return{c(){t=V("div"),r=V("div"),n=V("span"),i=V("span"),s=ue(),a=V("span"),o=ue(),c=V("span"),h=dt("."),f=dt(d),g=ue(),v&&v.c(),y=ue(),I&&I.c(),b=ue(),D=V("div"),T&&T.c(),m=ue(),E&&E.c(),Z(c,"class","omnisearch-result__extension"),Z(n,"class","omnisearch-result__title"),Z(r,"class","omnisearch-result__title-container"),zt(D,"display","flex"),zt(D,"flex-direction","row")},m(C,S){ae(C,t,S),j(t,r),j(r,n),j(n,i),e[13](i),j(n,s),j(n,a),a.innerHTML=u,j(n,o),j(n,c),j(c,h),j(c,f),j(n,g),v&&v.m(n,null),j(t,y),I&&I.m(t,null),j(t,b),j(t,D),T&&T.m(D,null),j(D,m),E&&E.m(D,null)},p(C,S){S&2060&&u!==(u=C[2].textProcessor.highlightText(C[3],C[11])+"")&&(a.innerHTML=u),S&2&&d!==(d=En(C[1].path)+"")&&xr(f,d),C[1].matches.length>0?v?v.p(C,S):(v=w_(C),v.c(),v.m(n,null)):v&&(v.d(1),v=null),C[4]?I?I.p(C,S):(I=R_(C),I.c(),I.m(t,b)):I&&(I.d(1),I=nul Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var we=!0,tt=!1,Kr;return{s:function(){H=H.call(R)},n:function(){var X=H.next();return we=X.done,X},e:function(X){tt=!0,Kr=X},f:function(){try{!we&&H.return!=null&&H.return()}finally{if(tt)throw Kr}}}}function c(R,F){if(!!R){if(typeof R=="string")return h(R,F);var H=Object.prototype.toString.call(R).slice(8,-1);if(H==="Object"&&R.constructor&&(H=R.constructor.name),H==="Map"||H==="Set")return Array.from(R);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return h(R,F)}}function h(R,F){(F==null||F>R.length)&&(F=R.length);for(var H=0,te=new Array(F);H<F;H++)te[H]=R[H];return te}function d(R,F){if(!(R instanceof F))throw new TypeError("Cannot call a class as a function")}function f(R,F){for(var H=0;H<F.length;H++){var te=F[H];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(R,te.key,te)}}function g(R,F,H){return F&&f(R.prototype,F),H&&f(R,H),Object.defineProperty(R,"prototype",{writable:!1}),R}function y(R,F,H){return F in R?Object.defineProperty(R,F,{value:H,enumerable:!0,configurable:!0,writable:!0}):R[F]=H,R}function b(R,F,H){D(R,F),F.set(R,H)}function D(R,F){if(F.has(R))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(R,F){var H=T(R,F,"get");return v(R,H)}function v(R,F){return F.get?F.get.call(R):F.value}function I(R,F,H){var te=T(R,F,"set");return E(R,te,H),H}function T(R,F,H){if(!F.has(R))throw new TypeError("attempted to "+H+" private field on non-instance");return F.get(R)}function E(R,F,H){if(F.set)F.set.call(R,H);else{if(!F.writable)throw new TypeError("attempted to set read only private field");F.value=H}}var C=typeof Symbol!="undefined"?Symbol.toStringTag:"@@toStringTag",S=new WeakMap,N=new WeakMap,P=function(){function R(F){var H=F.executor,te=H===void 0?function(){}:H,de=F.internals,we=de===void 0?Ke():de,tt=F.promise,Kr=tt===void 0?new Promise(function(_t,X){return te(_t,X,function($e){we.onCancelList.push($e)})}):tt;d(this,R),b(this,S,{writable:!0,value:void 0}),b(this,N,{writable:!0,value:void 0}),y(this,C,"CancelablePromise"),this.cancel=this.cancel.bind(this),I(this,S,we),I(this,N,Kr||new Promise(function(_t,X){return te(_t,X,function($e){we.onCancelList.push($e)})}))}return g(R,[{key:"then",value:function(H,te){return ke(m(this,N).then(he(H,m(this,S)),he(te,m(this,S))),m(this,S))}},{key:"catch",value:function(H){return ke(m(this,N).catch(he(H,m(this,S))),m(this,S))}},{key:"finally",value:function(H,te){var de=this;return te&&m(this,S).onCancelList.push(H),ke(m(this,N).finally(he(function(){if(H)return te&&(m(de,S).onCancelList=m(de,S).onCancelList.filter(function(we){return we!==H})),H()},m(this,S))),m(this,S))}},{key:"cancel",value:function(){m(this,S).isCanceled=!0;var H=m(this,S).onCancelList;m(this,S).onCancelList=[];var te=o(H),de;try{for(te.s();!(de=te.n()).done;){var we=de.value;if(typeof we=="function")try{we()}catch(tt){console.error(tt)}}}catch(tt){te.e(tt)}finally{te.f()}}},{key:"isCanceled",value:function(){return m(this,S).isCanceled===!0}}]),R}(),q=function(R){t(H,R);var F=n(H);function H(te){return d(this,H),F.call(this,{executor:te})}return g(H)}(P);e.CancelablePromise=q,y(q,"all",function(F){return Ie(F,Promise.all(F))}),y(q,"allSettled",function(F){return Ie(F,Promise.allSettled(F))}),y(q,"any",function(F){return Ie(F,Promise.any(F))}),y(q,"race",function(F){return Ie(F,Promise.race(F))}),y(q,"resolve",function(F){return ge(Promise.resolve(F))}),y(q,"reject",function(F){return ge(Promise.reject(F))}),y(q,"isCancelable",W);var $=q;e.default=$;function ge(R){return ke(R,Ke())}function W(R){return R instanceof q||R instanceof P}function he(R,F){if(R)return function(H){if(!F.isCanceled){var te=R(H);return W(te)&&F.onCancelList.push(te.cancel),te}return H}}function ke(R,F){return new P({internals:F,promise:R})}function Ie(R,F){var H=Ke();return H.onCancelList.push(function(){var te=o(R),de;try{for(te.s();!(de=te.n()).done;){var we=de.value;W(we)&&we.cancel()}}catch(tt){te.e(tt)}finally{te.f()}}),new P({internals:H,promise:F})}function Ke(){return{isCanceled:!1,onCancelList:[]}}})});function z_(e,t,r){let n=e.slice();return n[40]=t[r],n[42]=r,n}function V_(e){let t,r,n;return{c(){t=V("button"),t.textContent="Create note"},m(i,s){ae(i,t,s),r||(n=ht(t,"click",e[14]),r=!0)},p:qe,d(i){i&&se(t),r=!1,n()}}}function tx(e){let t,r,n;return{c(){t=V("button"),t.textContent="In-File search"},m(i,s){ae(i,t,s),r||(n=ht(t,"click",e[15]),r=!0)},p:qe,d(i){i&&se(t),r=!1,n()}}}function rx(e){let t,r,n=e[0].settings.showCreateButton&&V_(e),i=gr.Platform.isMobile&&tx(e);return{c(){t=V("div"),n&&n.c(),r=ue(),i&&i.c(),Z(t,"class","omnisearch-input-container__buttons")},m(s,a){ae(s,t,a),n&&n.m(t,null),j(t,r),i&&i.m(t,null)},p(s,a){s[0].settings.showCreateButton?n?n.p(s,a):(n=V_(s),n.c(),n.m(t,r)):n&&(n.d(1),n=null),gr.Platform.isMobile&&i.p(s,a)},d(s){s&&se(t),n&&n.d(),i&&i.d()}}}function K_(e Line truncated
`),i&&i.c(),n=Zs()},m(s,a){ae(s,t,a),i&&i.m(s,a),ae(s,n,a)},p(s,a){a[0]&5&&(r=s[0].settings.simpleSearch&&s[2].split(sa).some(Q_)),r?i||(i=Y_(s),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(s){s&&se(t),i&&i.d(s),s&&se(n)}}}function Y_(e){let t,r,n;return{c(){t=V("br"),r=ue(),n=V("span"),n.textContent=`You have enabled "Simpler Search" in the settings, try to type more
characters.`,zt(n,"color","var(--text-accent)"),zt(n,"font-size","small")},m(i,s){ae(i,t,s),ae(i,r,s),ae(i,n,s)},d(i){i&&se(t),i&&se(r),i&&se(n)}}}function sx(e){let t,r,n,i=e[3],s=[];for(let h=0;h<i.length;h+=1)s[h]=W_(z_(e,i,h));let a=h=>Oe(s[h],1,1,()=>{s[h]=null});function u(h,d){if(!h[3].length&&h[2]&&!h[5])return ix;if(h[5])return nx}let o=u(e,[-1,-1]),c=o&&o(e);return{c(){for(let h=0;h<s.length;h+=1)s[h].c();t=ue(),r=V("div"),c&&c.c(),zt(r,"text-align","center")},m(h,d){for(let f=0;f<s.length;f+=1)s[f]&&s[f].m(h,d);ae(h,t,d),ae(h,r,d),c&&c.m(r,null),n=!0},p(h,d){if(d[0]&12299){i=h[3];let f;for(f=0;f<i.length;f+=1){let g=z_(h,i,f);s[f]?(s[f].p(g,d),Ee(s[f],1)):(s[f]=W_(g),s[f].c(),Ee(s[f],1),s[f].m(t.parentNode,t))}for(ei(),f=i.length;f<s.length;f+=1)a(f);ti()}o===(o=u(h,d))&&c?c.p(h,d):(c&&c.d(1),c=o&&o(h),c&&(c.c(),c.m(r,null)))},i(h){if(!n){for(let d=0;d<i.length;d+=1)Ee(s[d]);n=!0}},o(h){s=s.filter(Boolean);for(let d=0;d<s.length;d+=1)Oe(s[d]);n=!1},d(h){Nu(s,h),h&&se(t),h&&se(r),c&&c.d()}}}function ax(e){let t,r,n,i,s,a,u,o,c,h,d,f,g,y,b,D,m,v,I,T,E,C,S,N,P,q,$,ge,W,he,ke,Ie,Ke,R,F,H,te,de,we,tt,Kr,_t,X,$e,Wr,cr,Zn,Pi,pn,Fy={plugin:e[0],initialValue:e[2],placeholder:"Omnisearch - Vault",$$slots:{default:[rx]},$$scope:{ctx:e}};t=new Fu({props:Fy}),e[19](t),t.$on("input",e[20]);let Pt=e[4]&&K_(e);return i=new Bu({props:{$$slots:{default:[sx]},$$scope:{ctx:e}}}),{c(){Lt(t.$$.fragment),r=ue(),Pt&&Pt.c(),n=ue(),Lt(i.$$.fragment),s=ue(),a=V("div"),u=V("div"),u.innerHTML='<span class="prompt-instruction-command">\u2191\u2193</span><span>to navigate</span>',o=ue(),c=V("div"),c.innerHTML=`<span class="prompt-instruction-command">alt \u2191\u2193</span>
<span>to cycle history</span>`,h=ue(),d=V("div"),f=V("span"),g=dt(e[8]),y=ue(),b=V("span"),b.textContent="to open",D=ue(),m=V("div"),m.innerHTML=`<span class="prompt-instruction-command">tab</span>
<span>to switch to In-File Search</span>`,v=ue(),I=V("div"),T=V("span"),E=dt(e[7]),C=ue(),S=V("span"),S.textContent="to open in a new pane",N=ue(),P=V("div"),q=V("span"),q.textContent=`${e[11]}`,$=ue(),ge=V("span"),ge.textContent="to open in a new split",W=ue(),he=V("div"),he.innerHTML=`<span class="prompt-instruction-command">alt o</span>
<span>to open in the background</span>`,ke=ue(),Ie=V("div"),Ke=V("span"),R=dt(e[10]),F=ue(),H=V("span"),H.textContent="to create",te=ue(),de=V("div"),we=V("span"),tt=dt(e[9]),Kr=ue(),_t=V("span"),_t.textContent="to create in a new pane",X=ue(),$e=V("div"),$e.innerHTML=`<span class="prompt-instruction-command">alt \u21B5</span>
<span>to insert a link</span>`,Wr=ue(),cr=V("div"),cr.innerHTML=`<span class="prompt-instruction-command">ctrl g</span>
<span>to toggle excerpts</span>`,Zn=ue(),Pi=V("div"),Pi.innerHTML='<span class="prompt-instruction-command">esc</span><span>to close</span>',Z(u,"class","prompt-instruction"),Z(c,"class","prompt-instruction"),Z(f,"class","prompt-instruction-command"),Z(d,"class","prompt-instruction"),Z(m,"class","prompt-instruction"),Z(T,"class","prompt-instruction-command"),Z(I,"class","prompt-instruction"),Z(q,"class","prompt-instruction-command"),Z(P,"class","prompt-instruction"),Z(he,"class","prompt-instruction"),Z(Ke,"class","prompt-instruction-command"),Z(Ie,"class","prompt-instruction"),Z(we,"class","prompt-instruction-command"),Z(de,"class","prompt-instruction"),Z($e,"class","prompt-instruction"),Z(cr,"class","prompt-instruction"),Z(Pi,"class","prompt-instruction"),Z(a,"class","prompt-instructions")},m(me,Ye){Dt(t,me,Ye),ae(me,r,Ye),Pt&&Pt.m(me,Ye),ae(me,n,Ye),Dt(i,me,Ye),ae(me,s,Ye),ae(me,a,Ye),j(a,u),j(a,o),j(a,c),j(a,h),j(a,d),j(d,f),j(f,g),j(d,y),j(d,b),j(a,D),j(a,m),j(a,v),j(a,I),j(I,T),j(T,E),j(I,C),j(I,S),j(a,N),j(a,P),j(P,q),j(P,$),j(P,ge),j(a,W),j(a,he),j(a,ke),j(a,Ie),j(Ie,Ke),j(Ke,R),j(Ie,F),j(Ie,H),j(a,te),j(a,de),j(de,we),j(we,tt),j(de,Kr),j(de,_t),j(a,X),j(a,$e),j(a,Wr),j(a,cr),j(a,Zn),j(a,Pi),pn=!0},p(me,Ye){let Du={};Ye[0]&1&&(Du.plugin=me[0]),Ye[0]&4&&(Du.initialValue=me[2]),Ye[0]&1|Ye[1]&4096&&(Du.$$scope={dirty:Ye,ctx:me}),t.$set(Du),me[4]?Pt?Pt.p(me,Ye):(Pt=K_(me),Pt.c(),Pt.m(n.parentNode,n)):Pt&&(Pt.d(1),Pt=null);let Gh={};Ye[0]&47|Ye[1]&4096&&(Gh.$$scope={dirty:Ye,ctx:me}),i.$set(Gh),(!pn||Ye[0]&256)&&xr(g,me[8]),(!pn||Ye[0]&128)&&xr(E,me[7]),(!pn||Ye[0]&1024)&&xr(R,me[10]),(!pn||Ye[0]&512)&&xr(tt,me[9])},i(me){pn||(Ee(t.$$.fragment,me),Ee(i.$$.fragment,me),pn=!0)},o(me){Oe(t.$$.fragment,me),Oe(i.$$.fragment,me),pn=!1},d(me){e[19](null),Tt(t,me),me&&se(r),Pt&&Pt.d(me),me&&se(n),Tt(i,me),me&&se(s),me&&se(a)}}}function ux(e,t,r){let n,i;xu(e,gn,X=>r(18,i=X));let{modal:s}=t,{previousQuery:a}=t,{plugin:u}=t,o=0,c=0,h,d=[],f,g="",y=!0,b,D,m,v,I,T=_n()+" alt \u21B5";ta(async()=>{ce.enable("vault"),ce.on("vault",_e.Enter,$),ce.on("vault",_e.OpenInBackground,ge),ce.on("vault",_e.CreateNote,R),ce.on("vault",_e.OpenInNewPane,W),ce.on("vault",_e.InsertLink,F),ce.on("vault",_e.Tab,H),ce.on("vault",_e.ArrowUp,()=>te(-1)),ce.on("vault",_e.ArrowDown,()=>te(1)),ce.on("vault",_e.PrevSearchHistory,E),ce.on("vault",_e.NextSearchHistory,C),ce.on("vault",_e.OpenInNewLeaf,he),await u.notesIndexer.refreshIndex(),await P()}),ra(()=>{ce.disable("vault")});async function E(){let X=(await u.cacheManager.getSearchHistory()).filter($e=>$e);++c>=X.length&&(c=0),r(2,h=X[c]),b?.setInputValue(h??"")}async function C(){let X=(await u.cacheManager.getSearchHistory()).filter($e=>$e);--c<0&&(c=X.length?X.length-1:0),r(2,h=X[c]),b?.setInputValue(h??"")}let S=null;async function N(){r(5,y=!0),S&&(S.cancel(),S=null),f=new ui(h,{ignoreDiacritics:u.settings.ignoreDiacritics,ignoreArabicDiacritics:u.settings.ignoreArabicDiacritics}),S=(0,q_.cancelable)(new Promise(X=>{X(u.searchEngine.getSuggestions(f))})),r(3,d=await S),r(1,o=0),await de(),r(5,y=!1)}let P=Ea(N,0);function q(X){!n||(X?.ctrlKey?W():$(),s.close())}function $(){!n||(Ie(n),s.close())}function ge(){!n||Ie(n,!0)}function W(){!n||(Ie(n,!0),s.close())}function he(){!n||(Ie(n,!0,!0),s.close())}function ke(){h&&u.cacheManager.addToSearchHistory(h)}function Ie(X,$e=!1,Wr=!1){ke();let cr=X.matches?.[0]?.offset??0;ju(u.app,X,cr,$e,Wr)}async function Ke(X){await R()}async function R(X){if(h){try{await I0(u.app,h,X?.newLeaf)}catch($e){new gr.Notice($e.message);return}s.close()}}function F(){if(!n)return;let X=u.app.vault.getMarkdownFiles().find(Pi=>Pi.path===n.path),$e=u.app.workspace.getActiveFile(),Wr=u.app.workspace.getActiveViewOfType(gr.MarkdownView);if(!Wr?.editor){new gr.Notice("Omnisearch - Error - No active editor",3e3);return}let cr;X&&$e?cr=u.app.fileManager.generateMarkdownLink(X,$e.path):cr=`[[${n.basename}.${En(n.path)}]]`;let Zn=Wr.editor.getCursor();Wr.editor.replaceRange(cr,Zn,Zn),Zn.ch+=cr.length,Wr.editor.setCursor(Zn),s.close()}function H(){if(!(n&&(bn(n?.path)||!n?.matches.length)))if(ke(),s.close(),n){let X=u.app.vault.getAbstractFileByPath(n.path);X&&X instanceof gr.TFile&&new us(u,X,h).open()}else{let X=u.app.workspace.getActiveViewOfType(gr.MarkdownView);X?.file&&new us(u,X.file,h).open()}}function te(X){r(1,o=ku(o+X,d.length)),de()}async function de(){await mn(),n&&activeWindow.document.querySelector(`[data-result-id="${n.path}"]`)?.scrollIntoView({behavior:"auto",block:"nearest"})}function we(X){Yr[X?"unshift":"push"](()=>{b=X,r(6,b)})}let tt=X=>r(2,h=X.detail),Kr=(X,$e)=>r(1,o=X),_t=X=>{X.button==1&&W()};return e.$$set=X=>{"modal"in X&&r(16,s=X.modal),"previousQuery"in X&&r(17,a=X.previousQuery),"plugin"in X&&r(0,u=X.plugin)},e.$$.update=()=>{if(e.$$.dirty[0]&131076){e:r(2,h=h??a)}if(e.$$.dirty[0]&4){e:h?P():(r(5,y=!1),r(3,d=[]))}if(e.$$.dirty[0]&10){e:n=d[o]}if(e.$$.dirty[0]&1){e:u.settings.openInNewPane?(r(7,D="\u21B5"),r(8,m=_n()+" \u21B5"),r(9,v="sLine truncated
<span>to switch to Vault Search</span>`,d=ue(),f=V("div"),g=V("span"),g.textContent="esc",y=ue(),S.c(),b=ue(),D=V("div"),m=V("span"),m.textContent=`${_n()} \u21B5`,v=ue(),I=V("span"),I.textContent="to open in a new pane",Z(a,"class","prompt-instruction"),Z(o,"class","prompt-instruction"),Z(h,"class","prompt-instruction"),Z(g,"class","prompt-instruction-command"),Z(f,"class","prompt-instruction"),Z(m,"class","prompt-instruction-command"),Z(D,"class","prompt-instruction"),Z(s,"class","prompt-instructions")},m(N,P){Dt(t,N,P),ae(N,r,P),Dt(n,N,P),ae(N,i,P),ae(N,s,P),j(s,a),j(s,u),j(s,o),j(s,c),j(s,h),j(s,d),j(s,f),j(f,g),j(f,y),S.m(f,null),j(s,b),j(s,D),j(D,m),j(D,v),j(D,I),T=!0},p(N,[P]){let q={};P&1&&(q.plugin=N[0]),P&4&&(q.initialValue=N[2]),P&8388608&&(q.$$scope={dirty:P,ctx:N}),t.$set(q);let $={};P&8388721&&($.$$scope={dirty:P,ctx:N}),n.$set($),C!==(C=E(N,P))&&(S.d(1),S=C(N),S&&(S.c(),S.m(f,null)))},i(N){T||(Ee(t.$$.fragment,N),Ee(n.$$.fragment,N),T=!0)},o(N){Oe(t.$$.fragment,N),Oe(n.$$.fragment,N),T=!1},d(N){Tt(t,N),N&&se(r),Tt(n,N),N&&se(i),N&&se(s),S.d()}}}function bx(e,t,r){let n=e.find(i=>i.offset>t);return n?e.filter(i=>i.offset>t&&i.offset<=n.offset+r):[]}function Ex(e,t,r){let{plugin:n}=t,{modal:i}=t,{parent:s=null}=t,{singleFilePath:a=""}=t,{previousQuery:u}=t,o,c=[],h=0,d,f;ta(()=>{ce.enable("infile"),ce.on("infile",_e.Enter,m),ce.on("infile",_e.OpenInNewPane,D),ce.on("infile",_e.ArrowUp,()=>y(-1)),ce.on("infile",_e.ArrowDown,()=>y(1)),ce.on("infile",_e.Tab,v)}),ra(()=>{ce.disable("infile")});function g(S){let N=[],P=-1,q=0;for(;++q<100;){let $=bx(S,P,na);if(!$.length)break;P=$.last().offset,N.push($)}return N}function y(S){r(6,h=ku(h+S,c.length)),b()}async function b(){await mn(),document.querySelector(`[data-result-id="${h}"]`)?.scrollIntoView({behavior:"auto",block:"nearest"})}async function D(){return m(!0)}async function m(S=!1){if(d){i.close(),s&&s.close();let N=n.textProcessor.stringsToRegex(d.foundWords);N.exec(d.content),await ju(n.app,d,N.lastIndex,S);let P=n.app.workspace.getActiveViewOfType(Ia.MarkdownView);if(!P)return;let q=c[h]??0,$=P.editor.offsetToPos(q);$.ch=0,P.editor.setCursor($),P.editor.scrollIntoView({from:{line:$.line-10,ch:0},to:{line:$.line+10,ch:0}})}}function v(){new Rn(n,o??u).open(),i.close()}let I=S=>r(3,o=S.detail),T=(S,N)=>r(6,h=S),E=S=>m(S.ctrlKey),C=S=>{S.button==1&&m(!0)};return e.$$set=S=>{"plugin"in S&&r(0,n=S.plugin),"modal"in S&&r(9,i=S.modal),"parent"in S&&r(1,s=S.parent),"singleFilePath"in S&&r(10,a=S.singleFilePath),"previousQuery"in S&&r(2,u=S.previousQuery)},e.$$.update=()=>{if(e.$$.dirty&4){e:r(3,o=u??"")}if(e.$$.dirty&3081){e:(async()=>{o&&(r(11,f=new ui(o,{ignoreDiacritics:n.settings.ignoreDiacritics})),r(4,d=(await n.searchEngine.getSuggestions(f,{singleFilePath:a}))[0]??null)),r(6,h=0),await b()})()}if(e.$$.dirty&2064){e:if(d){let S=g(d.matches),N=f.getExactTerms();N.length&&(S=S.filter(P=>N.every(q=>P.some($=>$.match.includes(q))))),r(5,c=S.map(P=>Math.round(P.first().offset)))}}},[n,s,u,o,d,c,h,m,v,i,a,f,I,T,E,C]}var Ia,iT,sT,aT=x(()=>{nr();ml();Or();Kt();Ru();Ia=Xe(require("obsidian"));gl();ya();tT();bo();ca();iT=class extends pt{constructor(t){super();bt(this,t,Ex,Tx,ot,{plugin:0,modal:9,parent:1,singleFilePath:10,previousQuery:2})}},sT=iT});var Ao,Jl,Rn,us,ya=x(()=>{Ao=Xe(require("obsidian"));Z_();aT();Or();Jl=class extends Ao.Modal{constructor(t){super(t.app);let r=t.settings;this.modalEl.replaceChildren(),this.modalEl.addClass("omnisearch-modal","prompt"),this.modalEl.removeClass("modal"),this.modalEl.tabIndex=-1,this.scope.register([],"ArrowDown",o=>{o.preventDefault(),ce.emit(_e.ArrowDown)}),this.scope.register([],"ArrowUp",o=>{o.preventDefault(),ce.emit(_e.ArrowUp)});for(let o of[{k:"J",dir:"down"},{k:"K",dir:"up"}])for(let c of["Ctrl","Mod"])this.scope.register([c],o.k,h=>{r.vimLikeNavigationShortcut&&ce.emit("arrow-"+o.dir)});for(let o of[{k:"N",dir:"down"},{k:"P",dir:"up"}])for(let c of["Ctrl","Mod"])this.scope.register([c],o.k,h=>{r.vimLikeNavigationShortcut&&ce.emit("arrow-"+o.dir)});let n,i,s,a,u=["Mod","Alt"];r.openInNewPane?(n=["Mod"],i=[],s=["Mod","Shift"],a=["Shift"]):(n=[],i=["Mod"],s=["Shift"],a=["Mod","Shift"]),this.scope.register(i,"Enter",o=>{o.preventDefault(),ce.emit(_e.OpenInNewPane)}),this.scope.register(u,"Enter",o=>{o.preventDefault(),ce.emit(_e.OpenInNewLeaf)}),this.scope.register(["Alt"],"Enter",o=>{o.preventDefault(),ce.emit(_e.InsertLink)}),this.scope.register(s,"Enter",o=>{o.preventDefault(),ce.emit(_e.CreateNote)}),this.scope.register(a,"Enter",o=>{o.preventDefault(),ce.emit(_e.CreateNote,{newLeaf:!0})}),this.scope.register(n,"Enter",o=>{cl()||(o.preventDefault(),ce.emit(_e.Enter))}),this.scope.register(["Ctrl"],"O",o=>{cl()||(o.preventDefault(),ce.emit(_e.OpenInBackground))}),this.scope.register([],"Tab",o=>{o.preventDefault(),ce.emit(_e.Tab)}),this.scope.register(["Alt"],"ArrowDown",o=>{o.preventDefault(),ce.emit(_e.NextSearchHistory)}),this.scope.register(["Alt"],"ArrowUp",o=>{o.preventDefault(),ce.emit(Line truncated
`).map(i=>{let s=i.match(/^\s+/);if(s===null)return i;let[a]=s;return a.length>=n.length?i.slice(n.length):i}).join(`
`)}var Es=class{options;rules;lexer;constructor(t){this.options=t||Re.defaults}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Zo(n,`
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],i=o2(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(/#$/.test(n)){let i=Zo(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:r[0]}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=r[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
$1`);n=Zo(n.replace(/^ *>[ \t]?/gm,""),`
`);let i=this.lexer.state.top;this.lexer.state.top=!0;let s=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:r[0],tokens:s,text:n}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),i=n.length>1,s={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let a=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),u="",o="",c=!1;for(;t;){let h=!1;if(!(r=a.exec(t))||this.rules.block.hr.test(t))break;u=r[0],t=t.substring(u.length);let d=r[2].split(`
`,1)[0].replace(/^\t+/,m=>" ".repeat(3*m.length)),f=t.split(`
`,1)[0],g=0;this.options.pedantic?(g=2,o=d.trimStart()):(g=r[2].search(/[^ ]/),g=g>4?1:g,o=d.slice(g),g+=r[1].length);let y=!1;if(!d&&/^ *$/.test(f)&&(u+=f+`
`,t=t.substring(f.length+1),h=!0),!h){let m=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),v=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),I=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),T=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;t;){let E=t.split(`
`,1)[0];if(f=E,this.options.pedantic&&(f=f.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),I.test(f)||T.test(f)||m.test(f)||v.test(t))break;if(f.search(/[^ ]/)>=g||!f.trim())o+=`
`+f.slice(g);else{if(y||d.search(/[^ ]/)>=4||I.test(d)||T.test(d)||v.test(d))break;o+=`
`+f}!y&&!f.trim()&&(y=!0),u+=E+`
`,t=t.substring(E.length+1),d=f.slice(g)}}s.loose||(c?s.loose=!0:/\n *\n *$/.test(u)&&(c=!0));let b=null,D;this.options.gfm&&(b=/^\[[ xX]\] /.exec(o),b&&(D=b[0]!=="[ ] ",o=o.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:u,task:!!b,checked:D,loose:!1,text:o,tokens:[]}),s.raw+=u}s.items[s.items.length-1].raw=u.trimEnd(),s.items[s.items.length-1].text=o.trimEnd(),s.raw=s.raw.trimEnd();for(let h=0;h<s.items.length;h++)if(this.lexer.state.top=!1,s.items[h].tokens=this.lexer.blockTokens(s.items[h].text,[]),!s.loose){let d=s.items[h].tokens.filter(g=>g.type==="space"),f=d.length>0&&d.some(g=>/\n.*\n/.test(g.raw));s.loose=f}if(s.loose)for(let h=0;h<s.items.length;h++)s.items[h].loose=!0;return s}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let n=r[1].toLowerCase().replace(/\s+/g," "),i=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:s}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!/[:|]/.test(r[2]))return;let n=Eb(r[1]),i=r[2].replace(/^\||\| *$/g,"").split("|"),s=r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
`):[],a={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let u of i)/^ *-+: *$/.test(u)?a.align.push("right"):/^ *:-+: *$/.test(u)?a.align.push("center"):/^ *:-+ *$/.test(u)?a.align.push("left"):a.align.push(null);for(let u of n)a.header.push({text:u,tokens:this.lexer.inline(u)});for(let u of s)a.rows.push(Eb(u,a.header.length).map(o=>({text:o,tokens:this.lexer.inline(o)})));return a}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:$t(r[1])}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;let a=Zo(n.slice(0,-1),"\\");if((n.length-a.length)%2==0)return}else{let a=u2(r[2],"()");if(a>-1){let o=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,o).trim(),r[3]=""}}let i=r[2],s="";if(this.options.pedantic){let a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);a&&(i=a[1],s=a[3])}else s=r[3]?r[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(n)?i=i.slice(1):i=i.slice(1,-1)),Ab(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let i=(n[2]||n[1]).replace(/\s+/g," "),s=r[i.toLowerCase()];if(!s){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return Ab(n,s,n[0],this.lexer)}}emStrong(t,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let a=[...i[0]].length-1,u,o,c=a,h=0,d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*t.length+a);(i=d.exec(r))!=null;){if(u=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!u)continue;if(o=[...u].length,i[3]||i[4]){c+=o;continue}else if((i[5]||i[6])&&a%3&&!((a+o)%3)){h+=o;continue}if(c-=o,c>0)continue;o=Math.min(o,o+c+h);let f=[...i[0]][0].length,g=t.slice(0,a+i.index+f+o);if(Math.min(a,o)%2){let b=g.slice(1,-1);return{type:"em",raw:g,text:b,tokens:this.lexer.inlineTokens(b)}}let y=g.slice(2,-2);return{type:"strong",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(/\n/g," "),i=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return i&&s&&(n=n.substring(1,n.length-1)),n=$t(n,!0),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,i;return r[2]==="@"?(n=$t(r[1]),i="mailto:"+n):(n=$t(r[1]),i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let r;if(r=this.rules.inline.url.exec(t)){let n,i;if(r[2]==="@")n=$t(r[0]),i="mailto:"+n;else{let s;do s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(s!==r[0]);n=$t(r[0]),r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n;return this.lexer.state.inRawBlock?n=r[0]:n=$t(r[0]),{type:"text",raw:r[0],text:n}}}},c2=/^(?: *(?:\n|$))+/,l2=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,f2=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Va=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,d2=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,yb=/(?:[*+-]|\d{1,9}[.)])/,Ib=Se(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,yb).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),ad=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,h2=/^[^\n]+/,ud=/(?!\s*\])(?:\\.|[^\[\]\\])+/,p2=Se(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",ud).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),m2=Se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,yb).getRegex(),Jo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|headLine truncated
]`).replace("lheading",Ib).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Db=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,E2=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Sb=/^( {2,}|\\)\n(?!\s*$)/,A2=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ka="\\p{P}\\p{S}",y2=Se(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Ka).getRegex(),I2=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,v2=Se(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Ka).getRegex(),C2=Se("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Ka).getRegex(),D2=Se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Ka).getRegex(),S2=Se(/\\([punct])/,"gu").replace(/punct/g,Ka).getRegex(),x2=Se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),O2=Se(od).replace("(?:-->|$)","-->").getRegex(),N2=Se("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",O2).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ec=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,w2=Se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ec).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xb=Se(/^!?\[(label)\]\[(ref)\]/).replace("label",ec).replace("ref",ud).getRegex(),Ob=Se(/^!?\[(ref)\](?:\[\])?/).replace("ref",ud).getRegex(),R2=Se("reflink|nolink(?!\\()","g").replace("reflink",xb).replace("nolink",Ob).getRegex(),ld={_backpedal:za,anyPunctuation:S2,autolink:x2,blockSkip:I2,br:Sb,code:E2,del:za,emStrongLDelim:v2,emStrongRDelimAst:C2,emStrongRDelimUnd:D2,escape:Db,link:w2,nolink:Ob,punctuation:y2,reflink:xb,reflinkSearch:R2,tag:N2,text:A2,url:za},P2=Fe(J({},ld),{link:Se(/^!?\[(label)\]\((.*?)\)/).replace("label",ec).getRegex(),reflink:Se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ec).getRegex()}),fd=Fe(J({},ld),{escape:Se(Db).replace("])","~|])").getRegex(),url:Se(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),L2=Fe(J({},fd),{br:Se(Sb).replace("{2,}","*").getRegex(),text:Se(fd.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),tc={normal:cd,gfm:T2,pedantic:b2},Wa={normal:ld,gfm:fd,breaks:L2,pedantic:P2},ar=class{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Re.defaults,this.options.tokenizer=this.options.tokenizer||new Es,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={block:tc.normal,inline:Wa.normal};this.options.pedantic?(r.block=tc.pedantic,r.inline=Wa.pedantic):this.options.gfm&&(r.block=tc.gfm,this.options.breaks?r.inline=Wa.breaks:r.inline=Wa.gfm),this.tokenizer.rules=r}static get rules(){return{block:tc,inline:Wa}}static lex(t,r){return new ar(r).lex(t)}static lexInline(t,r){return new ar(r).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(u,o,c)=>o+" ".repeat(c.length));let n,i,s,a;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(u=>(n=u.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&r.length>0?r[r.length-1].raw+=`
`:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+n.raw,i.text+=`
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+n.raw,i.text+=`
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(s=t,this.options.extensions&&this.options.extensions.startBlock){let u=1/0,o=t.slice(1),c;this.options.extensions.startBlock.forEach(h=>{c=h.call({lexer:this},o),typeof c=="number"&&c>=0&&(u=Math.min(u,c))}),u<1/0&&u>=0&&(s=t.substring(0,u+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s))){i=r[r.length-1],a&&i.type==="paragraph"?(i.raw+=`
`+n.raw,i.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(n),a=s.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&i.type==="text"?(i.raw+=`
`+n.raw,i.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(n);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n,i,s,a=t,u,o,c;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(u=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)h.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(u=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(u=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,u.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(o||(c=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>(n=h.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),i=r[r.length-1],i&&n.type==="text"&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(t,a,c)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),r.push(n);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let h=1/0,d=t.slice(1),f;this.options.extensions.startInline.forEach(g=>{f=g.call({lexer:this},d),typeof f=="number"&&f>=0&&(h=Math.min(h,f))}),h<1/0&&h>=0&&(s=t.substring(0,h+1))}if(n=this.tokenizer.inlineText(s)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(c=n.raw.slice(-1)),o=!0,i=r[r.length-1],i&&i.type==="text"?(i.raw+=n.raw,i.text+=n.text):r.push(n);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},As=class{options;constructor(t){this.options=t||Re.defaults}code(t,r,n){let i=(r||"").match(/^\S*/)?.[0];return t=t.replace(/\n$/,"")+`
`,i?'<pre><code class="language-'+$t(i)+'">'+(n?t:$t(t,!0))+`</code></pre>
`:"<pre><code>"+(n?t:$t(t,!0))+`</code></pre>
`}blockquote(t){return`<blockquote>
${t}</blockquote>
`}html(t,r){return t}heading(t,r,n){return`<h${r}>${t}</h${r}>
`}hr(){return`<hr>
`}list(t,r,n){let i=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+i+s+`>
`+t+"</"+i+`>
`}listitem(t,r,n){return`<li>${t}</li>
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
`}table(t,r){return r&&(r=`<tbody>${r}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+r+`</table>
`}tablerow(t){return`<tr>
${t}</tr>
`}tablecell(t,r){let n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+t+`</${n}>
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,r,n){let i=bb(t);if(i===null)return n;t=i;let s='<a href="'+t+'"';return r&&(s+=' title="'+r+'"'),s+=">"+n+"</a>",s}image(t,r,n){let i=bb(t);if(i===null)return n;t=i;let s=`<img src="${t}" alt="${n}"`;return r&&(s+=` title="${r}"`),s+=">",s}text(t){return t}},Ya=class{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,r,n){return""+n}image(t,r,n){return""+n}br(){return""}},ur=class{options;renderer;textRenderer;constructor(t){this.options=t||Re.defaults,this.options.renderer=this.options.renderer||new As,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ya}static parse(t,r){return new ur(r).parse(t)}static parseInline(t,r){return new ur(r).parseInline(t)}parse(t,r=!0){let n="";for(let i=0;i<t.length;i++){let s=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){let a=s,u=this.options.extensions.renderers[a.type].call({parser:this},a);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){n+=u||"";continue}}switch(s.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{let a=s;n+=this.renderer.heading(this.parseInline(a.tokens),a.depth,s2(this.parseInline(a.tokens,this.textRenderer)));continue}case"code":{let a=s;n+=this.renderer.code(a.text,a.lang,!!a.escaped);continue}case"table":{let a=s,u="",o="";for(let h=0;h<a.header.length;h++)o+=this.renderer.tablecell(this.parseInline(a.header[h].tokens),{header:!0,align:a.align[h]});u+=this.renderer.tablerow(o);let c="";for(let h=0;h<a.rows.length;h++){let d=a.rows[h];o="";for(let f=0;f<d.length;f++)o+=this.renderer.tablecell(this.parseInline(d[f].tokens),{header:!1,align:a.align[f]});c+=this.renderer.tablerow(o)}n+=this.renderer.table(u,c);continue}case"blockquote":{let a=s,u=this.parse(a.tokens);n+=this.renderer.blockquote(u);continue}case"list":{let a=s,u=a.ordered,o=a.start,c=a.loose,h="";for(let d=0;d<a.items.length;d++){let f=a.items[d],g=f.checked,y=f.task,b="";if(f.task){let D=this.renderer.checkbox(!!g);c?f.tokens.length>0&&f.tokens[0].type==="paragraph"?(f.tokens[0].text=D+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&f.tokens[0].tokens[0].type==="text"&&(f.tokens[0].tokens[0].text=D+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:D+" "}):b+=D+" "}b+=this.parse(f.tokens,c),h+=this.renderer.listitem(b,y,!!g)}n+=this.renderer.list(h,u,o);continue}case"html":{let a=s;n+=this.renderer.html(a.text,a.block);continue}case"paragraph":{let a=s;n+=this.renderer.paragraph(this.parseInline(a.tokens));continue}case"text":{let a=s,u=a.tokens?this.parseInline(a.tokens):a.text;for(;i+1<t.length&&t[i+1].type==="text";)a=t[++i],u+=`
`+(a.tokens?this.parseInline(a.tokens):a.text);n+=r?this.renderer.paragraph(u):u;continue}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(t,r){r=r||this.renderer;let n="";for(let i=0;i<t.length;i++){let s=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){let a=this.options.extensions.renderers[s.type].call({parser:this},s);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=a||"";continue}}switch(s.type){case"escape":{let a=s;n+=r.text(a.text);break}case"html":{let a=s;n+=r.html(a.text);break}case"link":{let a=s;n+=r.link(a.href,a.title,this.parseInline(a.tokens,r));break}case"image":{let a=s;n+=r.image(a.href,a.title,a.text);break}case"strong":{let a=s;n+=r.strong(this.parseInline(a.tokens,r));break}case"em":{let a=s;n+=r.em(this.parseInline(a.tokens,r));break}case"codespan":{let a=s;n+=r.codespan(a.text);break}case"br":{n+=r.br();break}case"del":{let a=s;n+=r.del(this.parseInline(a.tokens,r));break}case"text":{let a=s;n+=r.text(a.text);break}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}},mi=class{options;constructor(t){this.options=t||Re.defaults}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}};Wh(mi,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var dd=class{defaults=Xo();options=this.setOptions;parse=this.#e(ar.lex,ur.parse);parseInline=this.#e(ar.lexInline,ur.parseInline);Parser=ur;Renderer=As;TextRenderer=Ya;Lexer=ar;Tokenizer=Es;Hooks=mi;constructor(...t){this.use(...t)}walkTokens(t,r){let n=[];for(let i of t)switch(n=n.concat(r.call(this,i)),i.type){case"table":{let s=i;for(let a of s.header)n=n.concat(this.walkTokens(a.tokens,r));for(let a of s.rows)for(let u of a)n=n.concat(this.walkTokens(u.tokens,r));break}case"list":{let s=i;n=n.concat(this.walkTokens(s.items,r));break}default:{let s=i;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(a=>{let u=s[a].flat(1/0);n=n.concat(this.walkTokens(u,r))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i=J({},n);if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let a=r.renderers[s.name];a?r.renderers[s.name]=function(...u){let o=s.renderer.apply(this,u);return o===!1&&(o=a.apply(this,u)),o}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=r[s.level];a?a.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),i.extensions=r),n.renderer){let s=this.defaults.renderer||new As(this.defaults);for(let a in n.renderer){if(!(a in s))throw new Error(`renderer '${a}' does not exist`);if(a==="options")continue;let u=a,o=n.renderer[u],c=s[u];s[u]=(...h)=>{let d=o.apply(s,h);return d===!1&&(d=c.apply(s,h)),d||""}}i.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new Es(this.defaults);for(let a in n.tokenizer){if(!(a in s))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let u=a,o=n.tokenizer[u],c=s[u];s[u]=(...h)=>{let d=o.apply(s,h);return d===!1&&(d=c.apply(s,h)),d}}i.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new mi;for(let a in n.hooks){if(!(a in s))throw new Error(`hook '${a}' does not exist`);if(a==="options")continue;let u=a,o=n.hooks[u],c=s[u];mi.passThroughHooks.has(a)?s[u]=h=>{if(this.defaults.async)return Promise.resolve(o.call(s,h)).then(f=>c.call(s,f));let d=o.call(s,h);return c.call(s,d)}:s[u]=(...h)=>{let d=o.apply(s,h);return d===!1&&(d=c.apply(s,h)),d}}i.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,a=n.walkTokens;i.walkTokens=function(u){let o=[];return o.push(a.call(this,u)),s&&(o=o.concat(s.call(this,u))),o}}this.defaults=J(J({},this.defaults),i)}),this}setOptions(t){return this.defaults=J(J({},this.defaults),t),this}lexer(t,r){return ar.lex(t,r??this.defaults)}parser(t,r){return ur.parse(t,r??this.defaults)}#e(t,r){return(n,i)=>{let s=J({},i),a=J(J({},this.defaults),s);this.defaults.async===!0&&s.async===!1&&(a.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),a.async=!0);let u=this.#t(!!a.silent,!!a.async);if(typeof n=="undefined"||n===null)return u(new Error("marked(): input parameter Line truncated
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+$t(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},gi=new dd;function Ce(e,t){return gi.parse(e,t)}Ce.options=Ce.setOptions=function(e){return gi.setOptions(e),Ce.defaults=gi.defaults,mb(Ce.defaults),Ce};Ce.getDefaults=Xo;Ce.defaults=Re.defaults;Ce.use=function(...e){return gi.use(...e),Ce.defaults=gi.defaults,mb(Ce.defaults),Ce};Ce.walkTokens=function(e,t){return gi.walkTokens(e,t)};Ce.parseInline=gi.parseInline;Ce.Parser=ur;Ce.parser=ur.parse;Ce.Renderer=As;Ce.TextRenderer=Ya;Ce.Lexer=ar;Ce.lexer=ar.lex;Ce.Tokenizer=Es;Ce.Hooks=mi;Ce.parse=Ce;var M2=Ce.options,k2=Ce.setOptions,F2=Ce.use,B2=Ce.walkTokens,j2=Ce.parseInline,H2=Ce,U2=ur.parse,G2=ar.lex;Re.Hooks=mi;Re.Lexer=ar;Re.Marked=dd;Re.Parser=ur;Re.Renderer=As;Re.TextRenderer=Ya;Re.Tokenizer=Es;Re.getDefaults=Xo;Re.lexer=G2;Re.marked=Ce;Re.options=M2;Re.parse=H2;Re.parseInline=j2;Re.parser=U2;Re.setOptions=k2;Re.use=F2;Re.walkTokens=B2});var Rb=U(wb=>{"use strict";Object.defineProperty(wb,"__esModule",{value:!0})});var hd=U(_i=>{"use strict";var rc=_i&&_i.__assign||function(){return rc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},rc.apply(this,arguments)};Object.defineProperty(_i,"__esModule",{value:!0});_i.flatten=void 0;var q2={xml:!1,decodeEntities:!0};_i.default=q2;var Pb={_useHtmlParser2:!0,xmlMode:!0};function z2(e){return(e==null?void 0:e.xml)?typeof e.xml=="boolean"?Pb:rc(rc({},Pb),e.xml):e??void 0}_i.flatten=z2});var ys=U(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.Doctype=He.CDATA=He.Tag=He.Style=He.Script=He.Comment=He.Directive=He.Text=He.Root=He.isTag=He.ElementType=void 0;var Xt;(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"})(Xt=He.ElementType||(He.ElementType={}));function V2(e){return e.type===Xt.Tag||e.type===Xt.Script||e.type===Xt.Style}He.isTag=V2;He.Root=Xt.Root;He.Text=Xt.Text;He.Directive=Xt.Directive;He.Comment=Xt.Comment;He.Script=Xt.Script;He.Style=Xt.Style;He.Tag=Xt.Tag;He.CDATA=Xt.CDATA;He.Doctype=Xt.Doctype});var _d=U(le=>{"use strict";var jn=le&&le.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Qa=le&&le.__assign||function(){return Qa=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Qa.apply(this,arguments)};Object.defineProperty(le,"__esModule",{value:!0});le.cloneNode=le.hasChildren=le.isDocument=le.isDirective=le.isComment=le.isText=le.isCDATA=le.isTag=le.Element=le.Document=le.CDATA=le.NodeWithChildren=le.ProcessingInstruction=le.Comment=le.Text=le.DataNode=le.Node=void 0;var kt=ys(),pd=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),md(this,t)},e}();le.Node=pd;var nc=function(e){jn(t,e);function t(r){var n=e.call(this)||this;return n.data=r,n}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t}(pd);le.DataNode=nc;var Lb=function(e){jn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=kt.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(nc);le.Text=Lb;var Mb=function(e){jn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=kt.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(nc);le.Comment=Mb;var kb=function(e){jn(t,e);function t(r,n){var i=e.call(this,n)||this;return i.name=r,i.type=kt.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,c Line truncated
`:lc(e.children):(0,Lr.isCDATA)(e)?lc(e.children):(0,Lr.isText)(e)?e.data:""}Ft.getText=lc;function wd(e){return Array.isArray(e)?e.map(wd).join(""):(0,Lr.hasChildren)(e)&&!(0,Lr.isComment)(e)?wd(e.children):(0,Lr.isText)(e)?e.data:""}Ft.textContent=wd;function Rd(e){return Array.isArray(e)?e.map(Rd).join(""):(0,Lr.hasChildren)(e)&&(e.type===RN.ElementType.Tag||(0,Lr.isCDATA)(e))?Rd(e.children):(0,Lr.isText)(e)?e.data:""}Ft.innerText=Rd});var TE=U(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.prevElementSibling=ft.nextElementSibling=ft.getName=ft.hasAttrib=ft.getAttributeValue=ft.getSiblings=ft.getParent=ft.getChildren=void 0;var Ld=yt();function gE(e){return(0,Ld.hasChildren)(e)?e.children:[]}ft.getChildren=gE;function _E(e){return e.parent||null}ft.getParent=_E;function LN(e){var t,r,n=_E(e);if(n!=null)return gE(n);for(var i=[e],s=e.prev,a=e.next;s!=null;)i.unshift(s),t=s,s=t.prev;for(;a!=null;)i.push(a),r=a,a=r.next;return i}ft.getSiblings=LN;function MN(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}ft.getAttributeValue=MN;function kN(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}ft.hasAttrib=kN;function FN(e){return e.name}ft.getName=FN;function BN(e){for(var t,r=e.next;r!==null&&!(0,Ld.isTag)(r);)t=r,r=t.next;return r}ft.nextElementSibling=BN;function jN(e){for(var t,r=e.prev;r!==null&&!(0,Ld.isTag)(r);)t=r,r=t.prev;return r}ft.prevElementSibling=jN});var bE=U(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.prepend=Bt.prependChild=Bt.append=Bt.appendChild=Bt.replaceElement=Bt.removeElement=void 0;function Ja(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}Bt.removeElement=Ja;function HN(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 s=i.children;s[s.lastIndexOf(e)]=t,e.parent=null}}Bt.replaceElement=HN;function UN(e,t){if(Ja(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}Bt.appendChild=UN;function GN(e,t){Ja(t);var r=e.parent,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=r,n){if(n.prev=t,r){var i=r.children;i.splice(i.lastIndexOf(n),0,t)}}else r&&r.children.push(t)}Bt.append=GN;function qN(e,t){if(Ja(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){var r=e.children[1];r.prev=t,t.next=r}else t.next=null}Bt.prependChild=qN;function zN(e,t){Ja(t);var r=e.parent;if(r){var n=r.children;n.splice(n.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}Bt.prepend=zN});var Md=U(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.findAll=jt.existsOne=jt.findOne=jt.findOneChild=jt.find=jt.filter=void 0;var fc=yt();function VN(e,t,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),EE(e,Array.isArray(t)?t:[t],r,n)}jt.filter=VN;function EE(e,t,r,n){for(var i=[],s=[t],a=[0];;){if(a[0]>=s[0].length){if(a.length===1)return i;s.shift(),a.shift();continue}var u=s[0][a[0]++];if(e(u)&&(i.push(u),--n<=0))return i;r&&(0,fc.hasChildren)(u)&&u.children.length>0&&(a.unshift(0),s.unshift(u.children))}}jt.find=EE;function KN(e,t){return t.find(e)}jt.findOneChild=KN;function AE(e,t,r){r===void 0&&(r=!0);for(var n=null,i=0;i<t.length&&!n;i++){var s=t[i];if((0,fc.isTag)(s))e(s)?n=s:r&&s.children.length>0&&(n=AE(e,s.children,!0));else continue}return n}jt.findOne=AE;function yE(e,t){return t.some(function(r){return(0,fc.isTag)(r)&&(e(r)||yE(e,r.children))})}jt.existsOne=yE;function WN(e,t){for(var r=[],n=[t],i=[0];;){if(i[0]>=n[0].length){if(n.length===1)return r;n.shift(),i.shift();continue}var s=n[0][i[0]++];!(0,fc.isTag)(s)||(e(s)&&r.push(s),s.children.length>0&&(i.unshift(0),n.unshift(s.children)))}}jt.findAll=WN});var kd=U(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.getElementsByTagType=or.getElementsByTagName=or.getElementById=or.getElements=or.testElement=void 0;var bi=yt(),dc=Md(),hc={tag_name:function(e){return typeof e=="function"?function(t){return(0,bi.isTag)(t)&&e(t.name)}:e==="*"?bi.isTag:function(t){return(0,bi.isTag)(t)&&t.name===e}},tag_type:function(e){return typeof e=="function"?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return typeof e=="function"?function(t){return(0,bi.isText)(t)&&e(t.data)}:function(t){return(0,bi.isText)(t)&&t.data===e}}};function IE(e,t){return typeof t=="function"?function(r){return(0,bi.isTag)(r)&&t(r.attribs[e])}:function(r){return(0,bi.isTag)(r)&&r.attribs[e]===t}}function YN(e,t){return function(r){return e(r)||t(r)}}function vE(e){var t=Object.keys(e).map(function(r){var n=e[r];return Object.prototype.hasOwnProperty.call(hc,r)?hc[r](n):IE(r,n)});return t.length===0?null:t.reduce(YN)}function QN(e,t){var r=vE(e);return r?r(t):!0}or.testElement=QN;function $N(e,t,r,n){n===void 0&&(n=1/0);var i= Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,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])"}});var Dc=U(Nt=>{"use strict";var g1=Nt&&Nt.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))},fw=Nt&&Nt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.subselects=Nt.getNextSiblings=Nt.ensureIsTag=Nt.PLACEHOLDER_ELEMENT=void 0;var Ir=fw(zn()),dw=qd();Nt.PLACEHOLDER_ELEMENT={};function _1(e,t){return e===Ir.default.falseFunc?Ir.default.falseFunc:function(r){return t.isTag(r)&&e(r)}}Nt.ensureIsTag=_1;function T1(e,t){var r=t.getSiblings(e);if(r.length<=1)return[];var n=r.indexOf(e);return n<0||n===r.length-1?[]:r.slice(n+1).filter(t.isTag)}Nt.getNextSiblings=T1;function Kd(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}var Wd=function(e,t,r,n,i){var s=i(t,Kd(r),n);return s===Ir.default.trueFunc?e:s===Ir.default.falseFunc?Ir.default.falseFunc:function(a){return s(a)&&e(a)}};Nt.subselects={is:Wd,matches:Wd,where:Wd,not:function(e,t,r,n,i){var s=i(t,Kd(r),n);return s===Ir.default.falseFunc?e:s===Ir.default.trueFunc?Ir.default.falseFunc:function(a){return!s(a)&&e(a)}},has:function(e,t,r,n,i){var s=r.adapter,a=Kd(r);a.relativeSelector=!0;var u=t.some(function(f){return f.some(dw.isTraversal)})?[Nt.PLACEHOLDER_ELEMENT]:void 0,o=i(t,a,u);if(o===Ir.default.falseFunc)return Ir.default.falseFunc;var c=_1(o,s);if(u&&o!==Ir.default.trueFunc){var h=o.shouldTestNextSiblings,d=h===void 0?!1:h;return function(f){if(!e(f))return!1;u[0]=f;var g=s.getChildren(f),y=d?g1(g1([],g,!0),T1(f,s),!0):g;return s.existsOne(c,y)}}return function(f){return e(f)&&s.existsOne(c,s.getChildren(f))}}}});var $d=U(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.compilePseudoSelector=Fr.aliases=Fr.pseudos=Fr.filters=void 0;var hw=Ps(),Yd=h1();Object.defineProperty(Fr,"filters",{enumerable:!0,get:function(){return Yd.filters}});var iu=p1();Object.defineProperty(Fr,"pseudos",{enumerable:!0,get:function(){return iu.pseudos}});var b1=m1();Object.defineProperty(Fr,"aliases",{enumerable:!0,get:function(){return b1.aliases}});var Qd=Dc();function pw(e,t,r,n,i){var s,a=t.name,u=t.data;if(Array.isArray(u)){if(!(a in Qd.subselects))throw new Error("Unknown pseudo-class :".concat(a,"(").concat(u,")"));return Qd.subselects[a](e,u,r,n,i)}var o=(s=r.pseudos)===null||s===void 0?void 0:s[a],c=typeof o=="string"?o:b1.aliases[a];if(typeof c=="string"){if(u!=null)throw new Error("Pseudo ".concat(a," doesn't have any arguments"));var h=(0,hw.parse)(c);return Qd.subselects.is(e,h,r,n,i)}if(typeof o=="function")return(0,iu.verifyPseudoArgs)(o,a,u,1),function(f){return o(f,u)&&e(f)};if(a in Yd.filters)return Yd.filters[a](e,u,r,n);if(a in iu.pseudos){var d=iu.pseudos[a];return(0,iu.verifyPseudoArgs)(d,a,u,2),function(f){return d(f,r,u)&&e(f)}}throw new Error("Unknown pseudo-class :".concat(a))}Fr.compilePseudoSelector=pw});var E1=U(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.compileGeneralSelector=void 0;var mw=a1(),gw=$d(),vr=Ps();function Xd(e,t){var r=t.getParent(e);return r&&t.isTag(r)?r:null}function _w(e,t,r,n,i){var s=r.adapter,a=r.equals;switch(t.type){case vr.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case vr.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case vr.SelectorType.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),mw.attributeRules[t.action](e,t,r)}case vr.SelectorType.Pseudo:return(0,gw.compilePseudoSelector)(e,t,r,n,i);case vr.SelectorType.Tag:{if(t.namespace!=null)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(h){return s.getName(h)===u&&e(h)}}case vr.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet=="undefined")return function(h){for(var d=h;d=Xd(d,s);)if(e(d))return!0 Line truncated
`)}}):{name:s,value:a.replace($1,`\r
`)}}).toArray()}Us.serializeArray=KR});var Z1=U(Ur=>{"use strict";var WR=Ur&&Ur.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(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){n===void 0&&(n=r),e[n]=t[r]}),YR=Ur&&Ur.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),cu=Ur&&Ur.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&WR(t,e,r);return YR(t,e),t};Object.defineProperty(Ur,"__esModule",{value:!0});Ur.Cheerio=void 0;var QR=cu(GE()),$R=cu(j1()),XR=cu(V1()),ZR=cu(Y1()),JR=cu(X1()),lu=function(){function e(t,r,n){if(this.length=0,this.options=n,this._root=r,t){for(var i=0;i<t.length;i++)this[i]=t[i];this.length=t.length}}return e}();Ur.Cheerio=lu;lu.prototype.cheerio="[cheerio object]";lu.prototype.splice=Array.prototype.splice;lu.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(lu.prototype,QR,$R,XR,ZR,JR)});var eA=U(Ut=>{"use strict";var eP=Ut&&Ut.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Gs=Ut&&Ut.__assign||function(){return Gs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Gs.apply(this,arguments)},tP=Ut&&Ut.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(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){n===void 0&&(n=r),e[n]=t[r]}),rP=Ut&&Ut.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),J1=Ut&&Ut.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&tP(t,e,r);return rP(t,e),t};Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getLoad=void 0;var _h=J1(hd()),nP=J1(yi()),iP=Z1(),fu=vi();function sP(e,t){return function r(n,i,s){if(s===void 0&&(s=!0),n==null)throw new Error("cheerio.load() expects a string");var a=Gs(Gs({},_h.default),(0,_h.flatten)(i)),u=e(n,a,s,null),o=function(h){eP(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype._make=function(f,g){var y=c(f,g);return y.prevObject=this,y},d.prototype._parse=function(f,g,y,b){return e(f,g,y,b)},d.prototype._render=function(f){return t(f,this.options)},d}(iP.Cheerio);function c(h,d,f,g){if(f===void 0&&(f=u),h&&(0,fu.isCheerio)(h))return h;var y=Gs(Gs({},a),(0,_h.flatten)(g)),b=typeof f=="string"?[e(f,y,!1,null)]:"length"in f?f:[f],D=(0,fu.isCheerio)(b)?b:new o(b,null,y);if(D._root=D,!h)return new o(void 0,D,y);var m=typeof h=="string"&&(0,fu.isHtml)(h)?e(h,y,!1,null).children:aP(h)?[h]:Array.isArray(h)?h:void 0,v=new o(m,D,y);if(m)return v;if(typeof h!="string")throw new Error("Unexpected type of selector");var I=h,T=d?typeof d=="string"?(0,fu.isHtml)(d)?new o([e(d,y,!1,null)],D,y):(I="".concat(d," ").concat(I),D):(0,fu.isCheerio)(d)?d:new o(Array.isArray(d)?d:[d],D,y):D;return T?T.find(I):v}return Object.assign(c,nP,{load:r,_root:u,_options:a,fn:o.prototype,prototype:o.prototype}),c}}Ut.getLoad=sP;function aP(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}});var Rc=U(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.isUndefinedCodePoint=at.isControlCodePoint=at.getSurrogatePairCodePoint=at.isSurrogatePair=at.isSurrogate=at.SEQUENCES=at.CODE_POINTS=at.REPLACEMENT_CHARACTER=void 0;var uP=new Set([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]);at.REPLACEMENT_CHARACTER="\uFFFD";var oP;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="S Line truncated
`).length),r.split(`
`).slice(t).filter(bT).map(n=>`
`+n).join("")):""}var Rx=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],ET=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],cf=Rx.concat(ET),Px={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function fs(e,t){this._e=oi(),this.name=e,this.message=t}cs(fs).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+of(this._e,2))}},toString:function(){return this.name+": "+this.message}});function AT(e,t){return e+". Errors: "+Object.keys(t).map(r=>t[r].toString()).filter((r,n,i)=>i.indexOf(r)===n).join(`
`)}function vo(e,t,r,n){this._e=oi(),this.failures=t,this.failedKeys=n,this.successCount=r,this.message=AT(e,t)}cs(vo).from(fs);function Sa(e,t){this._e=oi(),this.name="BulkError",this.failures=Object.keys(t).map(r=>t[r]),this.failuresByPos=t,this.message=AT(e,t)}cs(Sa).from(fs);var lf=cf.reduce((e,t)=>(e[t]=t+"Error",e),{}),Lx=fs,ie=cf.reduce((e,t)=>{var r=t+"Error";function n(i,s){this._e=oi(),this.name=r,i?typeof i=="string"?(this.message=`${i}${s?`
`+s:""}`,this.inner=s||null):typeof i=="object"&&(this.message=`${i.name} ${i.message}`,this.inner=i):(this.message=Px[t]||r,this.inner=null)}return cs(n).from(Lx),e[t]=n,e},{});ie.Syntax=SyntaxError;ie.Type=TypeError;ie.Range=RangeError;var yT=ET.reduce((e,t)=>(e[t+"Error"]=ie[t],e),{});function Mx(e,t){if(!e||e instanceof fs||e instanceof TypeError||e instanceof SyntaxError||!e.name||!yT[e.name])return e;var r=new yT[e.name](t||e.message,e);return"stack"in e&&Zr(r,"stack",{get:function(){return this.inner.stack}}),r}var Co=cf.reduce((e,t)=>(["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=ie[t]),e),{});Co.ModifyError=vo;Co.DexieError=fs;Co.BulkError=Sa;function Ne(){}function xa(e){return e}function kx(e,t){return e==null||e===xa?t:function(r){return t(e(r))}}function ci(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function Fx(e,t){return e===Ne?t:function(){var r=e.apply(this,arguments);r!==void 0&&(arguments[0]=r);var n=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var s=t.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?ci(n,this.onsuccess):n),i&&(this.onerror=this.onerror?ci(i,this.onerror):i),s!==void 0?s:r}}function Bx(e,t){return e===Ne?t:function(){e.apply(this,arguments);var r=this.onsuccess,n=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?ci(r,this.onsuccess):r),n&&(this.onerror=this.onerror?ci(n,this.onerror):n)}}function jx(e,t){return e===Ne?t:function(r){var n=e.apply(this,arguments);xt(r,n);var i=this.onsuccess,s=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?ci(i,this.onsuccess):i),s&&(this.onerror=this.onerror?ci(s,this.onerror):s),n===void 0?a===void 0?void 0:a:xt(n,a)}}function Hx(e,t){return e===Ne?t:function(){return t.apply(this,arguments)===!1?!1:e.apply(this,arguments)}}function ff(e,t){return e===Ne?t:function(){var r=e.apply(this,arguments);if(r&&typeof r.then=="function"){for(var n=this,i=arguments.length,s=new Array(i);i--;)s[i]=arguments[i];return r.then(function(){return t.apply(n,s)})}return t.apply(this,arguments)}}var Oa={},Ux=100,Gx=20,IT=100,[df,Do,hf]=typeof Promise=="undefined"?[]:(()=>{let e=Promise.resolve();if(typeof crypto=="undefined"||!crypto.subtle)return[e,va(e),e];let t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,va(t),e]})(),vT=Do&&Do.then,So=df&&df.constructor,pf=!!hf,mf=!1,qx=hf?()=>{hf.then(wo)}:je.setImmediate?setImmediate.bind(null,wo):je.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver(()=>{wo(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(wo,0)},Na=function(e,t){wa.push([e,t]),xo&&(qx(),xo=!1)},gf=!0,xo=!0,li=[],Oo=[],_f=null,Tf=xa,ds={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:LT,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(e=>{try{LT(e[0],e[1])}catch{}})}},ne=ds,wa=[],fi=0,No=[];function Y(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Ne,this._lib=!1;var t=this._PSD=ne;if(Nr&&(this._stackHolder=oi(),this._prev=null,this._numPrev=0),typeof e!="function"){if(e!==Oa)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&Ef(this,this._value);return}this._state=null,this._value=null,++t.ref,DT(this,e)}var bf={get:function(){var e=ne,t=Lo;function r(n,i){var s=!e.global&&(e!==ne||t!==Lo);let a=s&&!tn();var u=new Y((o,c)=>{Af(this,new CT(ko(n,e,s,a),ko(i,e,s,a),o,c,e))});return Nr&&OT(u,this),u}return r.prototype=Oa,r},set:function(e){Zr(this,"then",e&&e.prototype===Oa?bf:{get:function(){return e},set:bf.set})}};os(Y.prototype,{then:bf,_then:function(e,t){Af(this,new CT(null,null,e,t,ne))},catch:function(e){if(arguments.length===1)return this.then(null,e);var t=arguments[0],r=arguments[1];return typeof t=="function"?this.then(null,n=>n instanceof t?r(n):Ro(n)):this.then(null,n=>n&&n.name===t?r(n):Ro(n))},finally:function(e){return this.then(t=>(e(),t),t=>(e(),Ro(t)))},stack:{get:function(){if(this._stack)return this._stack;try{mf=!0;var e=xT(this,[],Gx),t=e.join(`
From previous: `);return this._state!==null&&(this._stack=t),t}finally{mf=!1}}},timeout:function(e,t){return e<1/0?new Y((r,n)=>{var i=setTimeout(()=>n(new ie.Timeout(t)),e);this.then(r,n).finally(clearTimeout.bind(null,i))}):this}});typeof Symbol!="undefined"&&Symbol.toStringTag&&Zr(Y.prototype,Symbol.toStringTag,"Dexie.Promise");ds.env=NT();function CT(e,t,r,n,i){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.resolve=r,this.reject=n,this.psd=i}os(Y,{all:function(){var e=en.apply(null,arguments).map(Mo);return new Y(function(t,r){e.length===0&&t([]);var n=e.length;e.forEach((i,s)=>Y.resolve(i).then(a=>{e[s]=a,--n||t(e)},r))})},resolve:e=>{if(e instanceof Y)return e;if(e&&typeof e.then=="function")return new Y((r,n)=>{e.then(r,n)});var t=new Y(Oa,!0,e);return OT(t,_f),t},reject:Ro,race:function(){var e=en.apply(null,arguments).map(Mo);return new Y((t,r)=>{e.map(n=>Y.resolve(n).then(t,r))})},PSD:{get:()=>ne,set:e=>ne=e},totalEchoes:{get:()=>Lo},newPSD:Ln,usePSD:ps,scheduler:{get:()=>Na,set:e=>{Na=e}},rejectionMapper:{get:()=>Tf,set:e=>{Tf=e}},follow:(e,t)=>new Y((r,n)=>Ln((i,s)=>{var a=ne;a.unhandleds=[],a.onunhandled=s,a.finalize=ci(function(){Vx(()=>{this.unhandleds.length===0?i():s(this.unhandleds[0])})},a.finalize),e()},t,r,n))});So&&(So.allSettled&&Zr(Y,"allSettled",function(){let e=en.apply(null,arguments).map(Mo);return new Y(t=>{e.length===0&&t([]);let r=e.length,n=new Array(r);e.forEach((i,s)=>Y.resolve(i).then(a=>n[s]={status:"fulfilled",value:a},a=>n[s]={status:"rejected",reason:a}).then(()=>--r||t(n)))})}),So.any&&typeof AggregateError!="undefined"&&Zr(Y,"any",function(){let e=en.apply(null,arguments).map(Mo);return new Y((t,r)=>{e.length===0&&r(new AggregateError([]));let n=e.length,i=new Array(n);e.forEach((s,a)=>Y.resolve(s).then(u=>t(u),u=>{i[a]=u,--n||r(new AggregateError(i))}))})}));function DT(e,t){try{t(r=>{if(e._state===null){if(r===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&Ra();r&&typeof r.then=="function"?DT(e,(i,s)=>{r instanceof Y?r._then(i,s):r.then(i,s)}):(e._state=!0,e._value=r,ST(e)),n&&Pa()}},Ef.bind(null,e))}catch(r){Ef(e,r)}}function Ef(e,t){if(Oo.push(t),e._state===null){var r=e._lib&&Ra();t=Tf(t),e._state=!1,e._value=t,Nr&&t!==null&&typeof t=="object"&&!t._promise&&Cx(()=>{var n=rf(t,"stack");t._promise=e,Zr(t,"stack",{get:()=>mf?n&&(n.get?n.get.apply(t):n.value):e.stack})}),Kx(e),ST(e),r&&Pa()}}function ST(e){var t=e._listeners;e._listeners=[];for(var r=0,n=t.length;r<n;++r)Af(e,t[r]);var i=e._PSD;--i.ref||i.finalize(),fi===0&&(++fi,Na(()=>{--fi==0&&yf()},[]))}function Af(e,t){if(e._state===null){e._listeners.push(t);return}var r=e._state?t.onFulfilled:t.onRejected;if(r===null)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++fi,Na(zx,[r,e,t])}function zx(e,t,r){try{_f=t;var n,i=t._value;t._state?n=e(i):(Oo.length&&(Oo=[]),n=e(i),Oo.indexOf(i)===-1&&Wx(t)),r.resolve(n)}catch(s){r.reject(s)}finally{_f=null,--fi==0&&yf(),--r.psd.ref||r.psd.finalize()}}function xT(e,t,r){if(t.length===r)return t;var n="";if(e._state===!1){var i=e._value,s,a;i!=null?(s=i.name||"Error",a=i.message||i,n=of(i,0)):(s=i,a=""),t.push(s+(a?": "+a:"")+n)}return Nr&&(n=of(e._stackHolder,2),n&&t.indexOf(n)===-1&&t.push(n),e._prev&&xT(e._prev,t,r)),t}function OT(e,t){var r=t?t._numPrev+1:0;r<Ux&&(e._prev=t,e._numPrev=r)}function wo(){Ra()&&Pa()}function Ra(){var e=gf;return gf=!1,xo=!1,e}function Pa(){var e,t,r;do for(;wa.length>0;)for(e=wa,wa=[],r=e.length,t=0;t<r;++t){var n=e[t];n[0].apply(null,n[1])}while(wa.length>0);gf=!0,xo=!0}function yf(){var e=li;li=[],e.forEach(n=>{n._PSD.onunhandled.call(null,n._value,n)});for(var t=No.slice(0),r=t.length;r;)t[--r]()}function Vx(e){function t(){e(),No.splice(No.indexOf(t),1)}No.push(t),++fi,Na(()=>{--fi==0&&yf()},[])}function Kx(e){li.some(t=>t._value===e._value)||li.push(e)}function Wx(e){for(var t=li.length;t;)if(li[--t]._value===e._value){li.splice(t,1);return}}function Ro(e){return new Y(Oa,!1,e)}function ze(e,t){var r=ne;return function(){var n=Ra(),i=ne;try{return Mn(r,!0),e.apply(this,arguments)}catch(s){t&&t(s)}finally{Mn(i,!1),n&&Pa()}}}var At={awaits:0,echoes:0,id:0},Yx=0,Po=[],If=0,Lo=0,Qx=0;function Ln(e,t,r,n){var i=ne,s=Object.create(i);s.parent=i,s.ref=0,s.global=!1,s.id=++Qx;var a=ds.env;s.env=pf?{Promise:Y,PromiseProp:{value:Y,configurable:!0,writable:!0},all:Y.all,race:Y.race,allSettled:Y.allSettled,any:Y.any,resolve:Y.resolve,reject:Y.reject,nthen:RT(a.nthen,s),gthen:RT(a.gthen,s)}:{},t&&xt(s,t),++i.ref,s.finalize=function(){--this.parent.ref||this.parent.finalize()};var u=ps(s,e,r,n);return s.ref===0&&s.finalize(),u}function hs(){return At.id||(At.id=++Yx),++At.awaits,At.echoes+=IT,At.id}function tn(){return At.awaits?(--At.awaits==0&&(At.id=0),At.echoes=At.awaits*IT,!0):!1}(""+vT).indexOf("[native code]")===-1&&(hs=tn=Ne);function Mo(e){return At.echoes&&e&&e.constructor===So?(hs(),e.then(t=>(tn(),t),t=>(tn(),rt(t)))):e}function $x(e){++Lo,(!At. Line truncated
`)}else if(ua(t))try{let h=JSON.parse(await r.vault.cachedRead(n)),d=[],f=g=>{for(let y in g)typeof g[y]=="object"?f(g[y]):y==="content"&&d.push(g[y])};f(h),i=d.join(`\r
`)}catch(h){console.error("Omnisearch: Error while parsing Dataloom file",t),console.error(h)}else Tn(t)&&(this.plugin.settings.imagesIndexing&&s?.canFileBeExtracted(t)||this.plugin.settings.aiImageIndexing&&a?.canBeAnalyzed(n))?(this.plugin.settings.imagesIndexing&&s?.canFileBeExtracted(t)&&(i=await s.extractText(n)),this.plugin.settings.aiImageIndexing&&a?.canBeAnalyzed(n)&&(i=await a.analyzeImage(n)+(i??""))):bn(t)&&this.plugin.settings.PDFIndexing&&s?.canFileBeExtracted(t)?i=await s.extractText(n):m0(t)&&this.plugin.settings.officeIndexing&&s?.canFileBeExtracted(t)?i=await s.extractText(n):this.plugin.notesIndexer.isFilenameIndexable(t)&&(i=n.path);i==null&&(console.warn(`Omnisearch: ${i} content for file`,n.path),i="");let u=r.metadataCache.getFileCache(n);if(u){let h=v0(this.plugin.app,n,u);for(let d of h.filter(f=>!this.documents.has(f))){let f=this.plugin.notesIndexer.generateIndexableNonexistingDocument(d,n.path)}if(u.frontmatter?.["excalidraw-plugin"]){let d=u.sections?.filter(f=>f.type==="comment")??[];for(let{start:f,end:g}of d.map(y=>y.position))i=i.substring(0,f.offset-1)+i.substring(g.offset)}}let o=u?.frontmatter?.[this.plugin.settings.displayTitle]??"",c=p0(u);return{basename:n.basename,displayTitle:o,content:i,cleanedContent:d0(Qr(i)),path:n.path,mtime:n.stat.mtime,tags:c,unmarkedTags:c.map(h=>h.replace("#","")),aliases:h0(u).join(""),headings1:u?Mu(u,1).join(" "):"",headings2:u?Mu(u,2).join(" "):"",headings3:u?Mu(u,3).join(" "):""}}};Kt();ca();Kt();var jh=class{constructor(t){this.plugin=t;this.notesToReindex=new Set}flagNoteForReindex(t){this.notesToReindex.add(t)}async refreshIndex(){for(let r of this.notesToReindex)ve("Updating file",r.path),await this.plugin.cacheManager.addToLiveCache(r.path);let t=[...this.notesToReindex].map(r=>r.path);t.length&&(this.plugin.searchEngine.removeFromPaths(t),await this.plugin.searchEngine.addFromPaths(t),this.notesToReindex.clear())}isFileIndexable(t){return this.isFilenameIndexable(t)||this.isContentIndexable(t)}isContentIndexable(t){let r=this.plugin.settings,n=!!this.plugin.getTextExtractor(),i=!!this.plugin.getAIImageAnalyzer(),s=n&&r.PDFIndexing,a=n&&r.imagesIndexing,u=i&&r.aiImageIndexing;return this.isFilePlaintext(t)||ri(t)||ua(t)||s&&bn(t)||a&&Tn(t)||u&&Tn(t)}isFilenameIndexable(t){return this.canIndexUnsupportedFiles()||this.isFilePlaintext(t)||ri(t)||ua(t)}canIndexUnsupportedFiles(){return this.plugin.settings.unsupportedFilesIndexing==="yes"||this.plugin.settings.unsupportedFilesIndexing==="default"&&!!this.plugin.app.vault.getConfig("showUnsupportedFiles")}generateIndexableNonexistingDocument(t,r){return t=Tl(t),{path:t+(t.endsWith(".md")?"":".md"),basename:t,displayTitle:"",mtime:0,content:"",cleanedContent:"",tags:[],unmarkedTags:[],aliases:"",headings1:"",headings2:"",headings3:"",doesNotExist:!0,parent:r}}isFilePlaintext(t){return[...this.plugin.settings.indexedFileTypes,"md"].some(r=>t.endsWith(`.${r}`))}};Or();Kt();var wy=Xe(require("obsidian"));Aa();var Hh=class{constructor(t){this.plugin=t}highlightText(t,r){let n=`suggestion-highlight omnisearch-highlight ${this.plugin.settings.highlight?"omnisearch-default-highlight":""}`;if(!r.length)return t;try{let i=new RegExp(r.map(u=>{let o=On(u.match);return`\\b${o}\\b${/[a-zA-Z]/.test(u.match)?"":`|${o}`}`}).join("|"),"giu"),s=u=>r.find(c=>u.match(new RegExp(`\\b${On(c.match)}\\b${/[a-zA-Z]/.test(c.match)?"":`|${On(c.match)}`}`,"giu")))?`<span class="${n}">${u}</span>`:u,a=t.replace(i,s);if(a===t){let u=new RegExp(r.map(o=>On(o.match)).join("|"),"giu");a=t.replace(u,s)}return a}catch(i){return console.error("Omnisearch - Error in highlightText()",i),t}}escapeHTML(t){return t.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}stringsToRegex(t){if(!t.length)return/^$/g;t.sort((n,i)=>i.length-n.length);let r=`(${t.map(n=>`\\b${On(n)}\\b|${On(n)}`).join("|")})`;return new RegExp(`${r}`,"gui")}getMatches(t,r,n){let i=this.stringsToRegex(r),s=t;this.plugin.settings.ignoreDiacritics&&(t=Qr(t,this.plugin.settings.ignoreArabicDiacritics));let a=new Date().getTime(),u=null,o=[],c=0;for(;(u=i.exec(t))!==null;){if(++c>=100||new Date().getTime()-a>50){T0("Stopped getMatches at",c,"results");break}let h=u.index,d=h+u[0].length,f=s.substring(h,d).trim();f&&u.index>=0&&o.push({match:f,offset:u.index})}if(n&&(n.query.text.length>1||n.getExactTerms().length>0)){let h=t.indexOf(n.getBestStringForExcerpt());h>-1&&o.find(d=>d.offset===h)&&o.unshift({offset:h,match:n.getBestStringForExcerpt()})}return o}makeExcerpt(t,r){let n=this.plugin.settings;try{let i=r??-1,s=Math.max(0,i-u0),a=Math.min(t.length,i+na);if(i>-1?t=(s>0?"\u2026":"")+t.slice(s,a).trim()+(a<t.length-1?"\u2026":""):t=t.slice(0,na),n.renderLineReturnInExcerpts){let u=new RegExp(/(?:\r\n|\r|\n)/g);t=t.split(u).filter(c=>c).join(`
`);let o=t.lastIndexOf(`
`,i-s);o>0&&(t=t.slice(o))}return t=BM(t),n.renderLineReturnInExcerpts&&(t=t.trim().replaceAll(`
`,"<br>")),t}catch(i){return new wy.Notice("Omnisearch - Error while creating excerpt, see developer console"),console.error("Omnisearch - Error while creating excerpt"),console.error(i),""}}};function BM(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}var Uh=class extends Ri.Plugin{constructor(t,r){super(t,r);this.apiHttpServer=null;this.settings=go(this.app);this.database=new Wo(this);this.notesIndexer=new jh(this);this.textProcessor=new Hh(this);this.searchEngine=new Fh(this);this.cacheManager=new Bh(this)}async onload(){if(this.settings=await C_(this),this.addSettingTab(new Wl(this)),Ri.Platform.isMobile||Promise.resolve().then(()=>(ky(),My)).then(n=>this.apiHttpServer=n.getServer(this)),Yl(this.app)){console.log("Omnisearch - Plugin disabled");return}await HM(this.app),await this.database.clearOldDatabases(),lT(this);let t=this.settings;t.ribbonIcon&&this.addRibbonButton(),ce.disable("vault"),ce.disable("infile"),ce.on("global",Lu.ToggleExcerpts,()=>{ai.set(!t.showExcerpt)}),this.addCommand({id:"show-modal",name:"Vault search",callback:()=>{new Rn(this).open()}}),this.addCommand({id:"show-modal-infile",name:"In-file search",editorCallback:(n,i)=>{i.file&&new us(this,i.file).open()}});let r=this.searchEngine;this.app.workspace.onLayoutReady(async()=>{this.registerEvent(this.app.vault.on("create",n=>{this.notesIndexer.isFileIndexable(n.path)&&(ve("Indexing new file",n.path),r.addFromPaths([n.path]))})),this.registerEvent(this.app.vault.on("delete",n=>{ve("Removing file",n.path),this.cacheManager.removeFromLiveCache(n.path),r.removeFromPaths([n.path])})),this.registerEvent(this.app.vault.on("modify",async n=>{this.notesIndexer.isFileIndexable(n.path)&&this.notesIndexer.flagNoteForReindex(n)})),this.registerEvent(this.app.vault.on("rename",async(n,i)=>{this.notesIndexer.isFileIndexable(n.path)&&(ve("Renaming file",n.path),this.cacheManager.removeFromLiveCache(i),await this.cacheManager.addToLiveCache(n.path),r.removeFromPaths([i]),await r.addFromPaths([n.path]))})),this.refreshIndexCallback=this.notesIndexer.refreshIndex.bind(this.notesIndexer),addEventListener("blur",this.refreshIndexCallback),removeEventListener,await this.executeFirstLaunchTasks(),await this.populateIndex(),this.apiHttpServer&&t.httpApiEnabled&&this.apiHttpServer.listen(t.httpApiPort)})}async executeFirstLaunchTasks(){let t="1.21.0";this.settings.welcomeMessage=t,await this.saveData(this.settings)}async onunload(){delete globalThis.omnisearch,this.refreshIndexCallback&&removeEventListener("blur",this.refreshIndexCallback),await this.database.clearCache(),this.apiHttpServer.close()}addRibbonButton(){this.ribbonButton=this.addRibbonIcon("search","Omnisearch",t=>{new Rn(this).open()})}removeRibbonButton(){this.ribbonButton&&this.ribbonButton.parentNode?.removeChild(this.ribbonButton)}getChsSegmenter(){return this.app.plugins.plugins["cm-chs-patch"]}getTextExtractor(){return this.app.plugins?.plugins?.["text-extractor"]?.api}getAIImageAnalyzer(){return this.app.plugins?.plugins?.["ai-image-analyzer"]?.api}async populateIndex(){console.time("Omnisearch - Indexing total time"),gn.set(ir.ReadingFiles);let t=this.app.vault.getFiles().filter(i=>this.notesIndexer.isFileIndexable(i.path));console.log(`Omnisearch - ${t.length} files total`),console.log(`Omnisearch - Cache is ${Nn()?"enabled":"disabled"}`);let r=this.searchEngine;Nn()&&(console.time("Omnisearch - Loading index from cache"),gn.set(ir.LoadingCache),await r.loadCache()&&console.timeEnd("Omnisearch - Loading index from cache"));let n=r.getDiff(t.map(i=>({path:i.path,mtime:i.stat.mtime})));if(Nn()&&(n.toAdd.length&&console.log("Omnisearch - Total number of files to add/update: "+n.toAdd.length),n.toRemove.length&&console.log("Omnisearch - Total number of files to remove: "+n.toRemove.length)),n.toAdd.length>=1e3&&Nn()&&new Ri.Notice(`Omnisearch - ${n.toAdd.length} files need to be indexed. Obsidian may experience stutters and freezes during the process`,1e4),gn.set(ir.IndexingFiles),r.removeFromPaths(n.toRemove.map(i=>i.path)),await r.addFromPaths(n.toAdd.map(i=>i.path)),(n.toRemove.length||n.toAdd.length)&&Nn()){gn.set(ir.WritingCache);let i=this.settings.useCache;i&&!this.settings.DANGER_forceSaveCache&&(this.settings.useCache=!1,await pe(this)),await r.writeToCache(),i&&(this.settings.useCache=!0,await pe(this))}console.timeEnd("Omnisearch - Indexing total time"),n.toAdd.length>=1e3&&Nn()&&new Ri.Notice("Omnisearch - Your files have been indexed."),gn.set(ir.Done),oT()}};async function HM(e){let t=[`${e.vault.configDir}/plugins/omnisearch/searchIndex.json`,`${e.vault.configDir}/plugins/omnisearch/notesCache.json`,`${e.vault.configDir}/plugins/omnisearch/notesCache.data`,`${e.vault.configDir}/plugins/omnisearch/searchIndex.data`,`${e.vault.configDir}/plugins/omnisearch/historyCache.json`,`${e.vault.configDir}/plugins/omnisearch/pdfCache.data`];for(let r of t)if(await e.vault.adapter.exists(r))try{await Line truncated
+14
View File
@@ -0,0 +1,14 @@
{
"id": "omnisearch",
"name": "Omnisearch",
"version": "1.24.1",
"minAppVersion": "1.3.0",
"description": "A search engine that just works",
"author": "Simon Cambier",
"authorUrl": "https://github.com/scambier/obsidian-omnisearch",
"fundingUrl": {
"Github": "https://github.com/sponsors/scambier",
"Ko-fi": "https://ko-fi.com/scambier"
},
"isDesktopOnly": false
}
+111
View File
@@ -0,0 +1,111 @@
.omnisearch-modal {
}
.omnisearch-result {
white-space: normal;
display: flex;
flex-direction: row;
justify-content: space-between;
flex-wrap: nowrap;
}
.omnisearch-result__title-container {
display: flex;
align-items: center;
justify-content: space-between;
column-gap: 5px;
flex-wrap: wrap;
}
.omnisearch-result__title {
white-space: pre-wrap;
align-items: center;
display: flex;
gap: 5px;
}
.omnisearch-result__title > span {
}
.omnisearch-result__folder-path {
font-size: 0.75rem;
align-items: center;
display: flex;
gap: 5px;
color: var(--text-muted);
}
.omnisearch-result__extension {
font-size: 0.7rem;
color: var(--text-muted);
}
.omnisearch-result__counter {
font-size: 0.7rem;
color: var(--text-muted);
}
.omnisearch-result__body {
white-space: normal;
font-size: small;
word-wrap: normal;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
color: var(--text-muted);
margin-inline-start: 0.5em;
}
.omnisearch-result__image-container {
flex-basis: 20%;
text-align: end;
}
.omnisearch-highlight {
}
.omnisearch-default-highlight {
text-decoration: underline;
text-decoration-color: var(--text-highlight-bg);
text-decoration-thickness: 3px;
text-underline-offset: -1px;
text-decoration-skip-ink: none;
}
.omnisearch-input-container {
display: flex;
align-items: center;
flex-direction: row;
gap: 5px;
}
@media only screen and (max-width: 600px) {
.omnisearch-input-container {
flex-direction: column;
}
.omnisearch-input-container__buttons {
display: flex;
flex-direction: row;
width: 100%;
padding: 0 1em 0 1em;
gap: 1em;
}
.omnisearch-input-container__buttons > button {
flex-grow: 1;
}
}
@media only screen and (min-width: 600px) {
.omnisearch-input-container__buttons {
margin-inline-end: 1em;
}
}
.omnisearch-input-field {
position: relative;
flex-grow: 1;
}
+754
View File
@@ -0,0 +1,754 @@
'use strict';
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.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
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());
});
}
function __generator(thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
}
function getDefaultExportFromCjs (x) {
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
}
function createCommonjsModule(fn, basedir, module) {
return module = {
path: basedir,
exports: {},
require: function (path, base) {
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
}
}, fn(module, module.exports), module.exports;
}
function commonjsRequire () {
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
}
var assertNever_1 = createCommonjsModule(function (module, exports) {
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Helper function for exhaustive checks of discriminated unions.
* https://basarat.gitbooks.io/typescript/docs/types/discriminated-unions.html
*
* @example
*
* type A = {type: 'a'};
* type B = {type: 'b'};
* type Union = A | B;
*
* function doSomething(arg: Union) {
* if (arg.type === 'a') {
* return something;
* }
*
* if (arg.type === 'b') {
* return somethingElse;
* }
*
* // TS will error if there are other types in the union
* // Will throw an Error when called at runtime.
* // Use `assertNever(arg, true)` instead to fail silently.
* return assertNever(arg);
* }
*/
function assertNever(value, noThrow) {
if (noThrow) {
return value;
}
throw new Error("Unhandled discriminated union member: " + JSON.stringify(value));
}
exports.assertNever = assertNever;
exports.default = assertNever;
});
var assertNever = /*@__PURE__*/getDefaultExportFromCjs(assertNever_1);
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
// resolves . and .. elements in a path array with directory names there
// must be no slashes, empty elements, or device names (c:\) in the array
// (so also no leading and trailing slashes - it does not distinguish
// relative and absolute paths)
function normalizeArray(parts, allowAboveRoot) {
// if the path tries to go above the root, `up` ends up > 0
var up = 0;
for (var i = parts.length - 1; i >= 0; i--) {
var last = parts[i];
if (last === '.') {
parts.splice(i, 1);
} else if (last === '..') {
parts.splice(i, 1);
up++;
} else if (up) {
parts.splice(i, 1);
up--;
}
}
// if the path is allowed to go above the root, restore leading ..s
if (allowAboveRoot) {
for (; up--; up) {
parts.unshift('..');
}
}
return parts;
}
// Split a filename into [root, dir, basename, ext], unix version
// 'root' is just a slash, or nothing.
var splitPathRe =
/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
var splitPath = function(filename) {
return splitPathRe.exec(filename).slice(1);
};
// path.resolve([from ...], to)
// posix version
function resolve() {
var resolvedPath = '',
resolvedAbsolute = false;
for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
var path = (i >= 0) ? arguments[i] : '/';
// Skip empty and invalid entries
if (typeof path !== 'string') {
throw new TypeError('Arguments to path.resolve must be strings');
} else if (!path) {
continue;
}
resolvedPath = path + '/' + resolvedPath;
resolvedAbsolute = path.charAt(0) === '/';
}
// At this point the path should be resolved to a full absolute path, but
// handle relative paths to be safe (might happen when process.cwd() fails)
// Normalize the path
resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
return !!p;
}), !resolvedAbsolute).join('/');
return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
}
// path.normalize(path)
// posix version
function normalize(path) {
var isPathAbsolute = isAbsolute(path),
trailingSlash = substr(path, -1) === '/';
// Normalize the path
path = normalizeArray(filter(path.split('/'), function(p) {
return !!p;
}), !isPathAbsolute).join('/');
if (!path && !isPathAbsolute) {
path = '.';
}
if (path && trailingSlash) {
path += '/';
}
return (isPathAbsolute ? '/' : '') + path;
}
// posix version
function isAbsolute(path) {
return path.charAt(0) === '/';
}
// posix version
function join() {
var paths = Array.prototype.slice.call(arguments, 0);
return normalize(filter(paths, function(p, index) {
if (typeof p !== 'string') {
throw new TypeError('Arguments to path.join must be strings');
}
return p;
}).join('/'));
}
// path.relative(from, to)
// posix version
function relative(from, to) {
from = resolve(from).substr(1);
to = resolve(to).substr(1);
function trim(arr) {
var start = 0;
for (; start < arr.length; start++) {
if (arr[start] !== '') break;
}
var end = arr.length - 1;
for (; end >= 0; end--) {
if (arr[end] !== '') break;
}
if (start > end) return [];
return arr.slice(start, end - start + 1);
}
var fromParts = trim(from.split('/'));
var toParts = trim(to.split('/'));
var length = Math.min(fromParts.length, toParts.length);
var samePartsLength = length;
for (var i = 0; i < length; i++) {
if (fromParts[i] !== toParts[i]) {
samePartsLength = i;
break;
}
}
var outputParts = [];
for (var i = samePartsLength; i < fromParts.length; i++) {
outputParts.push('..');
}
outputParts = outputParts.concat(toParts.slice(samePartsLength));
return outputParts.join('/');
}
var sep = '/';
var delimiter = ':';
function dirname(path) {
var result = splitPath(path),
root = result[0],
dir = result[1];
if (!root && !dir) {
// No dirname whatsoever
return '.';
}
if (dir) {
// It has a dirname, strip trailing slash
dir = dir.substr(0, dir.length - 1);
}
return root + dir;
}
function basename(path, ext) {
var f = splitPath(path)[2];
// TODO: make this comparison case-insensitive on windows?
if (ext && f.substr(-1 * ext.length) === ext) {
f = f.substr(0, f.length - ext.length);
}
return f;
}
function extname(path) {
return splitPath(path)[3];
}
var path = {
extname: extname,
basename: basename,
dirname: dirname,
sep: sep,
delimiter: delimiter,
relative: relative,
join: join,
isAbsolute: isAbsolute,
normalize: normalize,
resolve: resolve
};
function filter (xs, f) {
if (xs.filter) return xs.filter(f);
var res = [];
for (var i = 0; i < xs.length; i++) {
if (f(xs[i], i, xs)) res.push(xs[i]);
}
return res;
}
// String.prototype.substr - negative index don't work in IE8
var substr = 'ab'.substr(-1) === 'b' ?
function (str, start, len) { return str.substr(start, len) } :
function (str, start, len) {
if (start < 0) start = str.length + start;
return str.substr(start, len);
}
;
function fileUrl(filePath, options = {}) {
if (typeof filePath !== 'string') {
throw new TypeError(`Expected a string, got ${typeof filePath}`);
}
const {resolve = true} = options;
let pathName = filePath;
if (resolve) {
pathName = path.resolve(filePath);
}
pathName = pathName.replace(/\\/g, '/');
// Windows drive letter must be prefixed with a slash.
if (pathName[0] !== '/') {
pathName = `/${pathName}`;
}
// Escape required characters for path components.
// See: https://tools.ietf.org/html/rfc3986#section-3.3
return encodeURI(`file://${pathName}`).replace(/[?#]/g, encodeURIComponent);
}
// https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch08s18.html
var win32Path = /^[a-z]:\\(?:[^\\/:*?"<>|\r\n]+\\)*[^\\/:*?"<>|\r\n]*$/i;
var unixPath = /^(?:\/[^/]+)+\/?$/i;
var testFilePath = function (url) { return win32Path.test(url) || unixPath.test(url); };
function UrlIntoSelection(editor, cb, settings) {
// skip all if nothing should be done
if (!editor.somethingSelected() && settings.nothingSelected === 0 /* doNothing */)
return;
if (typeof cb !== "string" && cb.clipboardData === null) {
console.error("empty clipboardData in ClipboardEvent");
return;
}
var clipboardText = getCbText(cb);
if (clipboardText === null)
return;
var _a = getSelnRange(editor, settings), selectedText = _a.selectedText, replaceRange = _a.replaceRange;
var replaceText = getReplaceText(clipboardText, selectedText, settings);
if (replaceText === null)
return;
// apply changes
if (typeof cb !== "string")
cb.preventDefault(); // prevent default paste behavior
replace(editor, replaceText, replaceRange);
// if nothing is selected and the nothing selected behavior is to insert [](url) place the cursor between the square brackets
if ((selectedText === "") && settings.nothingSelected === 2 /* insertInline */) {
editor.setCursor({ ch: replaceRange.from.ch + 1, line: replaceRange.from.line });
}
}
function getSelnRange(editor, settings) {
var selectedText;
var replaceRange;
if (editor.somethingSelected()) {
selectedText = editor.getSelection().trim();
replaceRange = null;
}
else {
switch (settings.nothingSelected) {
case 1 /* autoSelect */:
replaceRange = getWordBoundaries(editor, settings);
selectedText = editor.getRange(replaceRange.from, replaceRange.to);
break;
case 2 /* insertInline */:
case 3 /* insertBare */:
replaceRange = getCursor(editor);
selectedText = "";
break;
case 0 /* doNothing */:
throw new Error("should be skipped");
default:
assertNever(settings.nothingSelected);
}
}
return { selectedText: selectedText, replaceRange: replaceRange };
}
function isUrl(text, settings) {
if (text === "")
return false;
try {
// throw TypeError: Invalid URL if not valid
new URL(text);
return true;
}
catch (error) {
// settings.regex: fallback test allows url without protocol (http,file...)
return testFilePath(text) || new RegExp(settings.regex).test(text);
}
}
function isImgEmbed(text, settings) {
var rules = settings.listForImgEmbed
.split("\n")
.filter(function (v) { return v.length > 0; })
.map(function (v) { return new RegExp(v); });
for (var _i = 0, rules_1 = rules; _i < rules_1.length; _i++) {
var reg = rules_1[_i];
if (reg.test(text))
return true;
}
return false;
}
/**
* Validate that either the text on the clipboard or the selected text is a link, and if so return the link as
* a markdown link with the selected text as the link's text, or, if the value on the clipboard is not a link
* but the selected text is, the value of the clipboard as the link's text.
* If the link matches one of the image url regular expressions return a markdown image link.
* @param clipboardText text on the clipboard.
* @param selectedText highlighted text
* @param settings plugin settings
* @returns a mardown link or image link if the clipboard or selction value is a valid link, else null.
*/
function getReplaceText(clipboardText, selectedText, settings) {
var linktext;
var url;
if (isUrl(clipboardText, settings)) {
linktext = selectedText;
url = clipboardText;
}
else if (isUrl(selectedText, settings)) {
linktext = clipboardText;
url = selectedText;
}
else
return null; // if neither of two is an URL, the following code would be skipped.
var imgEmbedMark = isImgEmbed(clipboardText, settings) ? "!" : "";
url = processUrl(url);
if (selectedText === "" && settings.nothingSelected === 3 /* insertBare */) {
return "<".concat(url, ">");
}
else {
return imgEmbedMark + "[".concat(linktext, "](").concat(url, ")");
}
}
/** Process file url, special characters, etc */
function processUrl(src) {
var output;
if (testFilePath(src)) {
output = fileUrl(src, { resolve: false });
}
else {
output = src;
}
if (/[<>]/.test(output))
output = output.replace("<", "%3C").replace(">", "%3E");
return /[\(\) ]/.test(output) ? "<".concat(output, ">") : output;
}
function getCbText(cb) {
var clipboardText;
if (typeof cb === "string") {
clipboardText = cb;
}
else {
if (cb.clipboardData === null) {
console.error("empty clipboardData in ClipboardEvent");
return null;
}
else {
clipboardText = cb.clipboardData.getData("text");
}
}
return clipboardText.trim();
}
function getWordBoundaries(editor, settings) {
var cursor = editor.getCursor();
var line = editor.getLine(cursor.line);
var wordBoundaries = findWordAt(line, cursor);
// If the token the cursor is on is a url, grab the whole thing instead of just parsing it like a word
var start = wordBoundaries.from.ch;
var end = wordBoundaries.to.ch;
while (start > 0 && !/\s/.test(line.charAt(start - 1)))
--start;
while (end < line.length && !/\s/.test(line.charAt(end)))
++end;
if (isUrl(line.slice(start, end), settings)) {
wordBoundaries.from.ch = start;
wordBoundaries.to.ch = end;
}
return wordBoundaries;
}
var findWordAt = (function () {
var nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
function isWordChar(char) {
return /\w/.test(char) || char > "\x80" &&
(char.toUpperCase() != char.toLowerCase() || nonASCIISingleCaseWordChar.test(char));
}
return function (line, pos) {
var check;
var start = pos.ch;
var end = pos.ch;
(end === line.length) ? --start : ++end;
var startChar = line.charAt(pos.ch);
if (isWordChar(startChar)) {
check = function (ch) { return isWordChar(ch); };
}
else if (/\s/.test(startChar)) {
check = function (ch) { return /\s/.test(ch); };
}
else {
check = function (ch) { return (!/\s/.test(ch) && !isWordChar(ch)); };
}
while (start > 0 && check(line.charAt(start - 1)))
--start;
while (end < line.length && check(line.charAt(end)))
++end;
return { from: { line: pos.line, ch: start }, to: { line: pos.line, ch: end } };
};
})();
function getCursor(editor) {
return { from: editor.getCursor(), to: editor.getCursor() };
}
function replace(editor, replaceText, replaceRange) {
if (replaceRange === void 0) { replaceRange = null; }
// replaceRange is only not null when there isn't anything selected.
if (replaceRange && replaceRange.from && replaceRange.to) {
editor.replaceRange(replaceText, replaceRange.from, replaceRange.to);
}
// if word is null or undefined
else
editor.replaceSelection(replaceText);
}
var DEFAULT_SETTINGS = {
regex: /[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/
.source,
nothingSelected: 0 /* doNothing */,
listForImgEmbed: "",
};
var UrlIntoSelectionSettingsTab = /** @class */ (function (_super) {
__extends(UrlIntoSelectionSettingsTab, _super);
function UrlIntoSelectionSettingsTab() {
return _super !== null && _super.apply(this, arguments) || this;
}
UrlIntoSelectionSettingsTab.prototype.display = function () {
var _this = this;
var containerEl = this.containerEl;
var plugin = this.plugin;
containerEl.empty();
containerEl.createEl("h2", { text: "URL-into-selection Settings" });
new obsidian.Setting(containerEl)
.setName("Fallback Regular expression")
.setDesc("Regular expression used to match URLs when default match fails.")
.addText(function (text) {
return text
.setPlaceholder("Enter regular expression here..")
.setValue(plugin.settings.regex)
.onChange(function (value) { return __awaiter(_this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
if (!(value.length > 0)) return [3 /*break*/, 2];
plugin.settings.regex = value;
return [4 /*yield*/, plugin.saveSettings()];
case 1:
_a.sent();
_a.label = 2;
case 2: return [2 /*return*/];
}
});
}); });
});
new obsidian.Setting(containerEl)
.setName("Behavior on pasting URL when nothing is selected")
.setDesc("Auto Select: Automatically select word surrounding the cursor.")
.addDropdown(function (dropdown) {
var options = {
0: "Do nothing",
1: "Auto Select",
2: "Insert [](url)",
3: "Insert <url>",
};
dropdown
.addOptions(options)
.setValue(plugin.settings.nothingSelected.toString())
.onChange(function (value) { return __awaiter(_this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
plugin.settings.nothingSelected = +value;
return [4 /*yield*/, plugin.saveSettings()];
case 1:
_a.sent();
this.display();
return [2 /*return*/];
}
});
}); });
});
new obsidian.Setting(containerEl)
.setName("Whitelist for image embed syntax")
.setDesc(createFragment(function (el) {
el.appendText("![selection](url) will be used for URL that matches the following list.");
el.createEl("br");
el.appendText("Rules are regex-based, split by line break.");
}))
.addTextArea(function (text) {
text
.setPlaceholder("Example:\nyoutu.?be|vimeo")
.setValue(plugin.settings.listForImgEmbed)
.onChange(function (value) {
plugin.settings.listForImgEmbed = value;
plugin.saveData(plugin.settings);
return text;
});
text.inputEl.rows = 6;
text.inputEl.cols = 25;
});
};
return UrlIntoSelectionSettingsTab;
}(obsidian.PluginSettingTab));
var UrlIntoSel_Plugin = /** @class */ (function (_super) {
__extends(UrlIntoSel_Plugin, _super);
function UrlIntoSel_Plugin() {
var _this = _super !== null && _super.apply(this, arguments) || this;
// pasteHandler = (cm: CodeMirror.Editor, e: ClipboardEvent) => UrlIntoSelection(cm, e, this.settings);
_this.pasteHandler = function (evt, editor) { return UrlIntoSelection(editor, evt, _this.settings); };
return _this;
}
UrlIntoSel_Plugin.prototype.onload = function () {
return __awaiter(this, void 0, void 0, function () {
var _this = this;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
console.log("loading url-into-selection");
return [4 /*yield*/, this.loadSettings()];
case 1:
_a.sent();
this.addSettingTab(new UrlIntoSelectionSettingsTab(this.app, this));
this.addCommand({
id: "paste-url-into-selection",
name: "",
editorCallback: function (editor) { return __awaiter(_this, void 0, void 0, function () {
var clipboardText;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, navigator.clipboard.readText()];
case 1:
clipboardText = _a.sent();
UrlIntoSelection(editor, clipboardText, this.settings);
return [2 /*return*/];
}
});
}); },
});
this.app.workspace.on("editor-paste", this.pasteHandler);
return [2 /*return*/];
}
});
});
};
UrlIntoSel_Plugin.prototype.onunload = function () {
console.log("unloading url-into-selection");
this.app.workspace.off("editor-paste", this.pasteHandler);
};
UrlIntoSel_Plugin.prototype.loadSettings = function () {
return __awaiter(this, void 0, void 0, function () {
var _a, _b, _c, _d;
return __generator(this, function (_e) {
switch (_e.label) {
case 0:
_a = this;
_c = (_b = Object).assign;
_d = [{}, DEFAULT_SETTINGS];
return [4 /*yield*/, this.loadData()];
case 1:
_a.settings = _c.apply(_b, _d.concat([_e.sent()]));
return [2 /*return*/];
}
});
});
};
UrlIntoSel_Plugin.prototype.saveSettings = function () {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.saveData(this.settings)];
case 1:
_a.sent();
return [2 /*return*/];
}
});
});
};
return UrlIntoSel_Plugin;
}(obsidian.Plugin));
module.exports = UrlIntoSel_Plugin;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZXMiOlsibm9kZV9tb2R1bGVzL3RzbGliL3RzbGliLmVzNi5qcyIsIm5vZGVfbW9kdWxlcy9hc3NlcnQtbmV2ZXIvaW5kZXguanMiLCJub2RlX21vZHVsZXMvcm9sbHVwLXBsdWdpbi1ub2RlLXBvbHlmaWxscy9wb2x5ZmlsbHMvcGF0aC5qcyIsIm5vZGVfbW9kdWxlcy9maWxlLXVybC9pbmRleC5qcyIsInNyYy9jb3JlLnRzIiwic3JjL3NldHRpbmcudHMiLCJzcmMvbWFpbi50cyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKiEgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKipcclxuQ29weXJpZ2h0IChjKSBNaWNyb3NvZnQgQ29ycG9yYXRpb24uXHJcblxyXG5QZXJtaXNzaW9uIHRvIHVzZSwgY29weSwgbW9kaWZ5LCBhbmQvb3IgZGlzdHJpYnV0ZSB0aGlzIHNvZnR3YXJlIGZvciBhbnlcclxucHVycG9zZSB3aXRoIG9yIHdpdGhvdXQgZmVlIGlzIGhlcmVieSBncmFudGVkLlxyXG5cclxuVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEIFwiQVMgSVNcIiBBTkQgVEhFIEFVVEhPUiBESVNDTEFJTVMgQUxMIFdBUlJBTlRJRVMgV0lUSFxyXG5SRUdBUkQgVE8gVEhJUyBTT0ZUV0FSRSBJTkNMVURJTkcgQUxMIElNUExJRUQgV0FSUkFOVElFUyBPRiBNRVJDSEFOVEFCSUxJVFlcclxuQU5EIEZJVE5FU1MuIElOIE5PIEVWRU5UIFNIQUxMIFRIRSBBVVRIT1IgQkUgTElBQkxFIEZPUiBBTlkgU1BFQ0lBTCwgRElSRUNULFxyXG5JTkRJUkVDVCwgT1IgQ09OU0VRVUVOVElBTCBEQU1BR0VTIE9SIEFOWSBEQU1BR0VTIFdIQVRTT0VWRVIgUkVTVUxUSU5HIEZST01cclxuTE9TUyBPRiBVU0UsIERBVEEgT1IgUFJPRklUUywgV0hFVEhFUiBJTiBBTiBBQ1RJT04gT0YgQ09OVFJBQ1QsIE5FR0xJR0VOQ0UgT1JcclxuT1RIRVIgVE9SVElPVVMgQUNUSU9OLCBBUklTSU5HIE9VVCBPRiBPUiBJTiBDT05ORUNUSU9OIFdJVEggVEhFIFVTRSBPUlxyXG5QRVJGT1JNQU5DRSBPRiBUSElTIFNPRlRXQVJFLlxyXG4qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiAqL1xyXG4vKiBnbG9iYWwgUmVmbGVjdCwgUHJvbWlzZSAqL1xyXG5cclxudmFyIGV4dGVuZFN0YXRpY3MgPSBmdW5jdGlvbihkLCBiKSB7XHJcbiAgICBleHRlbmRTdGF0aWNzID0gT2JqZWN0LnNldFByb3RvdHlwZU9mIHx8XHJcbiAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fFxyXG4gICAgICAgIGZ1bmN0aW9uIChkLCBiKSB7IGZvciAodmFyIHAgaW4gYikgaWYgKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChiLCBwKSkgZFtwXSA9IGJbcF07IH07XHJcbiAgICByZXR1cm4gZXh0ZW5kU3RhdGljcyhkLCBiKTtcclxufTtcclxuXHJcbmV4cG9ydCBmdW5jdGlvbiBfX2V4dGVuZHMoZCwgYikge1xyXG4gICAgaWYgKHR5cGVvZiBiICE9PSBcImZ1bmN0aW9uXCIgJiYgYiAhPT0gbnVsbClcclxuICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKFwiQ2xhc3MgZXh0ZW5kcyB2YWx1ZSBcIiArIFN0cmluZyhiKSArIFwiIGlzIG5vdCBhIGNvbnN0cnVjdG9yIG9yIG51bGxcIik7XHJcbiAgICBleHRlbmRTdGF0aWNzKGQsIGIpO1xyXG4gICAgZnVuY3Rpb24gX18oKSB7IHRoaXMuY29uc3RydWN0b3IgPSBkOyB9XHJcbiAgICBkLnByb3RvdHlwZSA9IGIgPT09IG51bGwgPyBPYmplY3QuY3JlYXRlKGIpIDogKF9fLnByb3RvdHlwZSA9IGIucHJvdG90eXBlLCBuZXcgX18oKSk7XHJcbn1cclxuXHJcbmV4cG9ydCB2YXIgX19hc3NpZ24gPSBmdW5jdGlvbigpIHtcclxuICAgIF9fYXNzaWduID0gT2JqZWN0LmFzc2lnbiB8fCBmdW5jdGlvbiBfX2Fzc2lnbih0KSB7XHJcbiAgICAgICAgZm9yICh2YXIgcywgaSA9IDEsIG4gPSBhcmd1bWVudHMubGVuZ3RoOyBpIDwgbjsgaSsrKSB7XHJcbiAgICAgICAgICAgIHMgPSBhcmd1bWVudHNbaV07XHJcbiAgICAgICAgICAgIGZvciAodmFyIHAgaW4gcykgaWYgKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChzLCBwKSkgdFtwXSA9IHNbcF07XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHJldHVybiB0O1xyXG4gICAgfVxyXG4gICAgcmV0dXJuIF9fYXNzaWduLmFwcGx5KHRoaXMsIGFyZ3VtZW50cyk7XHJcbn1cclxuXHJcbmV4cG9ydCBmdW5jdGlvbiBfX3Jlc3QocywgZSkge1xyXG4gICAgdmFyIHQgPSB7fTtcclxuICAgIGZvciAodmFyIHAgaW4gcykgaWYgKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChzLCBwKSAmJiBlLmluZGV4T2YocCkgPCAwKVxyXG4gICAgICAgIHRbcF0gPSBzW3BdO1xyXG4gICAgaWYgKHMgIT0gbnVsbCAmJiB0eXBlb2YgT2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyA9PT0gXCJmdW5jdGlvblwiKVxyXG4gICAgICAgIGZvciAodmFyIGkgPSAwLCBwID0gT2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhzKTsgaSA8IHAubGVuZ3RoOyBpKyspIHtcclxuICAgICAgICAgICAgaWYgKGUuaW5kZXhPZihwW2ldKSA8IDAgJiYgT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKHMsIHBbaV0pKVxyXG4gICAgICAgICAgICAgICAgdFtwW2ldXSA9IHNbcFtpXV07XHJcbiAgICAgICAgfVxyXG4gICAgcmV0dXJuIHQ7XHJcbn1cclxuXHJcbmV4cG9ydCBmdW5jdGlvbiBfX2RlY29yYXRlKGRlY29yYXRvcnMsIHRhcmdldCwga2V5LCBkZXNjKSB7XHJcbiAgICB2YXIgYyA9IGFyZ3VtZW50cy5sZW5ndGgsIHIgPSBjIDwgMyA/IHRhcmdldCA6IGRlc2MgPT09IG51bGwgPyBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcih0YXJnZXQsIGtleSkgOiBkZXNjLCBkO1xyXG4gICAgaWYgKHR5cGVvZiBSZWZsZWN0ID09PSBcIm9iamVjdFwiICYmIHR5cGVvZiBSZWZsZWN0LmRlY29yYXRlID09PSBcImZ1bmN0aW9uXCIpIHIgPSBSZWZsZWN0LmRlY29yYXRlKGRlY29yYXRvcnMsIHRhcmdldCwga2V5LCBkZXNjKTtcclxuICAgIGVsc2UgZm9yICh2YXIgaSA9IGRlY29yYXRvcnMubGVuZ3RoIC0gMTsgaSA+PSAwOyBpLS0pIGlmIChkID0gZGVjb3JhdG9yc1tpXSkgciA9IChjIDwgMyA/IGQocikgOiBjID4gMyA/IGQodGFyZ2V0LCBrZXksIHIpIDogZCh0YXJnZXQsIGtleSkpIHx8IHI7XHJcbiAgICByZXR1cm4gYyA+IDMgJiYgciAmJiBPYmplY3QuZGVmaW5lUHJvcGVydHkodGFyZ2V0LCBrZXksIHIpLCByO1xyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gX19wYXJhbShwYXJhbUluZGV4LCBkZWNvcmF0b3IpIHtcclxuICAgIHJldHVybiBmdW5jdGlvbiAodGFyZ2V0LCBrZXkpIHsgZGVjb3JhdG9yKHRhcmdldCwga2V5LCBwYXJhbUluZGV4KTsgfVxyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gX19tZXRhZGF0YShtZXRhZGF0YUtleSwgbWV0YWRhdGFWYWx1ZSkge1xyXG4gICAgaWYgKHR5cGVvZiBSZWZsZWN0ID09PSBcIm9iamVjdFwiICYmIHR5cGVvZiBSZWZsZWN0Lm1ldGFkYXRhID09PSBcImZ1bmN0aW9uXCIpIHJldHVybiBSZWZsZWN0Lm1ldGFkYXRhKG1ldGFkYXRhS2V5LCBtZXRhZGF0YVZhbHVlKTtcclxufVxyXG5cclxuZXhwb3J0IGZ1bmN0aW9uIF9fYXdhaXRlcih0aGl Line truncated
+8
View File
@@ -0,0 +1,8 @@
{
"id": "url-into-selection",
"name": "Paste URL into selection",
"description": "Paste URL \"into\" selected text.",
"isDesktopOnly": false,
"js": "main.js",
"version": "1.7.0"
}
+7
View File
@@ -0,0 +1,7 @@
{
"name": "AnuPpuccin",
"version": "1.4.5",
"minAppVersion": "0.16.0",
"author": "Anubis",
"authorUrl": "https://github.com/AnubisNekhet"
}
File diff suppressed because it is too large. Load diff
+7
View File
@@ -0,0 +1,7 @@
{
"name": "Catppuccin",
"version": "0.4.17",
"minAppVersion": "1.0.0",
"author": "Marshall Beckrich",
"authorUrl": "https://github.com/catppuccin/obsidian"
}
File diff suppressed because it is too large. Load diff
+7
View File
@@ -0,0 +1,7 @@
{
"name": "Dracula Official",
"version": "1.0.9",
"minAppVersion": "0.16.0",
"author": "Dracula",
"authorUrl": "https://gitlab.com/chrismettal"
}
+805
View File
@@ -0,0 +1,805 @@
.theme-dark,
.theme-light{
/* Obsidian "Dark" import so light mode looks the same*/
--color-scheme: dark;
--highlight-mix-blend-mode: lighten;
--mono-rgb-0: 0, 0, 0;
--mono-rgb-100: 255, 255, 255;
--color-red-rgb: 251, 70, 76;
--color-red: #fb464c;
--color-orange-rgb: 233, 151, 63;
--color-orange: #e9973f;
--color-yellow-rgb: 224, 222, 113;
--color-yellow: #e0de71;
--color-green-rgb: 68, 207, 110;
--color-green: #44cf6e;
--color-cyan-rgb: 83, 223, 221;
--color-cyan: #53dfdd;
--color-blue-rgb: 2, 122, 255;
--color-blue: #027aff;
--color-purple-rgb: 168, 130, 255;
--color-purple: #a882ff;
--color-pink-rgb: 250, 153, 205;
--color-pink: #fa99cd;
--color-base-00: #1e1e1e;
--color-base-05: #212121;
--color-base-10: #242424;
--color-base-20: #262626;
--color-base-25: #2a2a2a;
--color-base-30: #363636;
--color-base-35: #3f3f3f;
--color-base-40: #555555;
--color-base-50: #666666;
--color-base-60: #999999;
--color-base-70: #bababa;
--color-base-100: #dadada;
--color-accent-hsl: var(--accent-h), var(--accent-s), var(--accent-l);
--color-accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
--color-accent-1: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 3.8%));
--color-accent-2: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) + 3.8%));
--background-modifier-form-field: var(--color-base-25);
--interactive-normal: var(--color-base-30);
--interactive-hover: var(--color-base-35);
--background-modifier-box-shadow: rgba(0, 0, 0, 0.3);
--background-modifier-cover: rgba(10, 10, 10, 0.4);
--text-selection: hsla(var(--interactive-accent-hsl), 0.25);
--input-shadow: inset 0 0.5px 0.5px 0.5px rgba(255, 255, 255, 0.09), 0 2px 4px 0 rgba(0,0,0,.15), 0 1px 1.5px 0 rgba(0,0,0,.1), 0 1px 2px 0 rgba(0,0,0,.2), 0 0 0 0 transparent;
--input-shadow-hover: inset 0 0.5px 1px 0.5px rgba(255, 255, 255, 0.16), 0 2px 3px 0 rgba(0,0,0,.3), 0 1px 1.5px 0 rgba(0,0,0,.2), 0 1px 2px 0 rgba(0,0,0,.4), 0 0 0 0 transparent;
--shadow-s: 0px 1px 2px rgba(0, 0, 0, 0.121), 0px 3.4px 6.7px rgba(0, 0, 0, 0.179), 0px 15px 30px rgba(0, 0, 0, 0.3);
--shadow-l: 0px 1.8px 7.3px rgba(0, 0, 0, 0.071), 0px 6.3px 24.7px rgba(0, 0, 0, 0.112), 0px 30px 90px rgba(0, 0, 0, 0.2);
--pdf-shadow: 0 0 0 1px var(--background-modifier-border);
--pdf-thumbnail-shadow: 0 0 0 1px var(--background-modifier-border);
/* Actual Dracula colors*/
--background-primary: #282a36;
--background-primary-alt: #44475a;
--background-secondary: #1a1e24;
--background-secondary-alt: #282a36;
--text-normal: #f8f8f2;
--text-on-accent: #282a36;
--text-title-h1: #bd93f9;
--text-title-h2: #ffb86c;
--text-title-h3: #52fa7c;
--text-title-h4: #ff5555;
--text-title-h5: #f1fa8c;
--text-title-h6: #bd93f4;
--canvas-color-1: 255, 85, 85;
--canvas-color-2: 255, 184, 108;
--canvas-color-3: 241, 250, 140;
--canvas-color-4: 82, 250, 124;
--canvas-color-5: 139, 233, 253;
--canvas-color-6: 189, 147, 244;
--text-link: var(--text-accent);
--markup-code: #ffb86c;
--text-tag: #50fa7b;
--text-a: #ff79c6;
--text-a-hover: #ff79c0;
--text-mark: #f1fa8c;
--interactive-accent: #50fa7b;
--blockquote-border: #b294bb;
--interactive-accent-rgb: #f1fa8c;
--accent-h: 135;
--accent-s: 94%;
--accent-l: 65%;
}
/* LINKS & BRACKETS */
/* link */
/* url's */
/* editor */
.cm-url {
color: var(--text-link) !important;
}
/* preview */
.external-link {
color: var(--text-link) !important;
}
/* make external links italics to differentiate */
a:not(.internal-link) {
font-style: italic;
}
/* horizontal line in preview */
hr {
background-color: var(--text-normal);
border-color: var(--text-normal);
}
.markdown-preview-view hr {
background-color: var(--text-normal);
border-color: var(--text-normal);
}
.markdown-rendered hr {
background-color: var(--text-normal);
border-color: var(--text-normal);
}
.markdown-embed {
padding-left: 8px !important;
padding-right: 4px !important;
margin-left: 8px !important;
margin-right: 4px !important;
}
/* internal embedded link rendering in preview */
.markdown-embed-title {
color: var(--text-link);
}
/* NAKED EMBEDS*/
/* But keeping Border and Scroll! */
.markdown-embed-title {
display: none;
}
.markdown-preview-view .markdown-embed-content > :first-child {
margin-top: 0;
}
.markdown-preview-view .markdown-embed-content > :last-child {
margin-bottom: 0;
}
.markdown-embed-link {
color: var(--text-a) !important;
right: 2px !important;
}
.markdown-embed-link:hover {
color: var(--text-link) !important;
}
/* NO FILE OPEN PAGE*/
.empty-state-title {
color: var(--text-title-h1) !important;
}
.empty-state-action {
color: var(--text-muted) !important;
}
.empty-state-action:hover {
color: var(--text-normal) !important;
}
/* GRAPH VIEW */
#graph-view-canvas .links {
stroke: var(--interactive-accent-rgb) !important;
}
/* CODEBLOCKS */
/* code blocks in preview */
pre code {
padding: 5px !important;
color: var(--code-normal) !important;
line-height: normal;
display: block;
background-color: var(--background-primary-alt) !important;
}
.markdown-preview-view pre {
padding: 0px !important;
}
/* in-line code for editor and preview and code block for editor*/
code,
.cm-inline-code {
background-color: var(--background-primary-alt) !important;
color: var(--markup-code) !important;
bottom: 0px !important;
}
/* Code Appearance */
/* editor */
.CodeMirror-code span.cm-inline-code {
color: var(--markup-code) !important;
}
/* Editor CodeBlock TEXT Appearance - */
.cm-s-obsidian pre.HyperMD-codeblock {
color: var(--markup-code) !important;
}
/* preview */
.markdown-preview-view code {
color: var(--code-normal);
background-color: var(--background-primary-alt) !important;
bottom: -0.1px !important;
}
/* borders */
.cm-s-obsidian span.cm-inline-code {
border: 1px solid #525660;
border-radius: 4px;
}
.cm-s-obsidian span.cm-formatting-code.cm-inline-code {
border-right-width: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.cm-s-obsidian span.cm-formatting-code.cm-inline-code + span.cm-inline-code {
border-right: none;
border-left: none;
border-radius: 0;
}
.cm-s-obsidian
span.cm-formatting-code.cm-inline-code
+ span.cm-inline-code
+ span.cm-formatting-code.cm-inline-code {
border-left-width: 0;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-right-width: 1px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
/* BLOCKQUOTES */
/* editor */
.cm-quote {
color: var(--interactive-accent) !important;
font-style: italic;
}
/* preview */
blockquote {
color: var(--interactive-accent) !important;
font-style: italic;
border-color: var(--blockquote-border) !important;
}
/* IMAGES */
/* embedded images */
img {
display: block;
margin-left: 20pt;
margin-right: auto;
}
/* TABLES */
th {
border: 1px solid var(--background-primary-alt) !important;
}
td {
border: 1px solid var(--background-primary-alt) !important
}
thead {
border-bottom: 4px solid var(--background-primary-alt);
}
.table {
background-color: var(--background-secondary-alt);
border: 1px solid var(--background-primary-alt);
padding: 4px;
line-height: normal;
display: block;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
}
/* SIDEBAR & DOCK ETC. */
/* view action buttons */
.view-action {
color: var(--text-muted) !important;
text-decoration: none !important;
}
.view-action:hover,
.view-action.is-active {
color: var(--text-normal) !important;
}
.status-bar {
background-color: var(--background-secondary-alt);
}
.side-dock-ribbon-action {
color: var(--text-muted) !important;
}
.side-dock-ribbon-action:hover {
color: var(--text-normal) !important;
}
.workspace-tab-header {
color: var(--text-muted) !important;
text-decoration: none !important;
}
.workspace-tab-header:hover {
color: var(--text-normal) !important;
}
button.mod-cta {
background-color: var(--interactive-accent);
color: var(--text-on-accent);
}
.horizontal-tab-nav-item.is-active, .vertical-tab-nav-item.is-active {
background-color: var(--interactive-accent);
color: var(--text-on-accent);
}
/* searchbar */
.side-dock-panels-container {
background-color: var(--background-secondary-alt) !important;
color: var(background-secondary-alt);
}
/* icons at top of panes*/
.file-view-actions a {
color: var(--text-muted) !important;
}
.file-view-actions a:hover {
color: var(--text-muted) !important;
}
/* html tags in editor */
.cm-tag {
color: var(--text-tag) !important;
}
/* .side-dock-ribbon-tab,
.side-dock-ribbon-action {} */
.side-dock-ribbon-tab.is-active {
color: var(--interactive-accent) !important;
}
.side-dock-ribbon-tab.is-active .side-dock-ribbon-tab-inner:hover {
color: #6272a4 !important;
background-color: var(--background-secondary);
}
.nav-file-title {
color: var(--text-muted) !important;
background-color: var(--background-secondary);
}
.is-translucent .nav-file-title:not(.is-active) {
background-color: transparent;
}
.nav-folder-title {
color: var(--text-muted) !important;
background-color: var(--background-secondary);
}
.is-translucent .nav-folder-title {
background-color: transparent;
}
.nav-file-title:hover {
color: var(--text-normal) !important;
}
.nav-folder-title:hover {
color: var(--text-normal) !important;
}
.nav-action-button.is-active {
background-color: var(--background-secondary-alt);
}
.search-result-file-title {
color: var(--text-a) !important;
background-color: var(--background-secondary);
}
.is-translucent .search-result-file-title {
background-color: transparent;
}
.search-result-file-matched-text {
color: var(--text-link) !important;
background-color: var(--background-secondary);
}
/* .nav-file-tag {
color: #59a2c5;
} /* for the PNG text, but can't specifically target "PNG", just all of those filetype tags. */
.nav-file.is-active .nav-file-tag {
color: var(--text-normal);
}
/* hover actions on side dock navigation */
.side-dock-ribbon-tab:hover,
.side-dock-ribbon-tab-inner:hover,
.side-dock-ribbon-action:hover,
.side-dock-ribbon-action.is-active:hover,
.nav-action-button:hover,
.side-dock-collapse-btn:hover {
color: var(--text-normal);
}
/* Hover color over tree item flairs */
.tree-item-self:hover .tree-item-flair {
background-color: var(--background-secondary);
}
/* clean up side bar empty state (e.g. unlinked mentions) */
.search-empty-state {
width: auto;
padding-left: 15px;
padding-right: 15px;
line-height: normal;
}
/* clean up side bar empty state (e.g. unlinked mentions) */
.search-empty-state {
width: auto;
padding-left: 10px;
padding-right: 5px;
line-height: normal;
}
/* NORMAL TEXT OUTSIDE OF HEADINGS AND CODE */
/* preview */
.markdown-preview-view {
color: var(--text-normal);
padding-left: 8% !important;
padding-right: 4% !important;
}
.mod-single-child .markdown-preview-view {
color: var(--text-normal);
padding-left: 10% !important;
padding-right: 10% !important;
}
/* editor */
.cm-s-obsidian {
color: var(--text-normal);
padding-left: 8% !important;
padding-right: 4% !important;
}
.mod-single-child .cm-s-obsidian {
color: var(--text-normal);
padding-left: 8% !important;
padding-right: 4% !important;
}
/* HEADINGS */
/* preview */
.markdown-preview-view h1 {
color: var(--text-title-h1);
}
.markdown-preview-view h2 {
color: var(--text-title-h2);
}
.markdown-preview-view h3 {
color: var(--text-title-h3);
}
.markdown-preview-view h4 {
color: var(--text-title-h4);
}
.markdown-preview-view h5 {
color: var(--text-title-h5);
}
.markdown-preview-view h6 {
color: var(--text-title-h6);
}
/* editor */
.cm-header-1 {
color: var(--text-title-h1);
}
.cm-header-2 {
color: var(--text-title-h2);
}
.cm-header-3 {
color: var(--text-title-h3);
}
.cm-header-4 {
color: var(--text-title-h4);
}
.cm-header-5 {
color: var(--text-title-h5);
}
.cm-header-6 {
color: var(--text-title-h6);
}
/* TAGS */
/* preview */
a.tag {
color: var(--text-tag);
}
/* editor */
.cm-hashtag {
color: var(--text-tag) !important;
}
/* BOLD */
/* preview */
strong {
color: var(--markup-code);
}
/* editor */
.cm-strong {
color: var(--markup-code);
}
/* ITALICS */
/* preview */
em {
color: var(--interactive-accent);
}
/* editor */
.cm-em {
color: var(--interactive-accent);
}
/* HIGHLIGHT */
/* preview */
mark {
color: var(--background-primary);
background-color: var(--text-mark);
padding-top: 1px;
padding-bottom: 1px;
}
/* editor */
.cm-highlight {
color: var(--background-primary) !important;
background-color: var(--text-mark) !important;
padding-top: 1px;
padding-bottom: 1px;
}
/* COLLAPSED RIBBONS */
.workspace-ribbon.is-collapsed {
background-color: var(--background-secondary-alt) !important;
}
.workspace-ribbon.mod-right.is-collapsed {
background-color: var(--background-secondary-alt) !important;
}
.workspace-ribbon.mod-left.is-collapsed {
background-color: var(--background-secondary-alt) !important;
}
/* POPUP NOTIFICATION*/
.notice {
color: var(--text-normal) !important;
background-color: var(--blockquote-border) !important;
}
/* UL, OL, BULLETS, CHECKBOXES & FOLDING ARROWS */
/* task lists */
.markdown-preview-view .task-list-item-checkbox {
-webkit-appearance: none;
top: 1.3px !important;
right: 5px !important;
box-sizing: border-box;
border: 1px solid var(--accent-2);
position: relative;
width: 1.25em;
height: 1.25em;
margin: 0;
box-shadow: 0 0 0.1em var(--interactive-accent);
}
.markdown-preview-view .task-list-item-checkbox:checked::before {
content: "✓";
position: absolute;
color: var(--interactive-accent);
line-height: 1.25em;
width: 1.2em;
text-align: center;
text-shadow: 0 0 0.5em var(--accent-2);
}
.markdown-preview-view .task-list-item-checkbox {
top: 0px;
}
.checkbox-container {
background-color: var(--background-primary-alt);
border-radius: 14px;
display: inline-block;
height: 22px;
position: relative;
top: 4px;
user-select: none;
width: 42px;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15);
transition: background 0.15s ease-in-out, box-shadow 0.15s ease-in-out,
border 0.15s ease-in-out, opacity 0.15s ease-in-out,
-webkit-box-shadow 0.15s ease-in-out;
}
.checkbox-container.is-enabled {
background-color: var(--interactive-accent);
}
.markdown-preview-view mark {
color: var(--text-link);
background-color: var(--background-primary-alt);
}
.cm-formatting
/* This is the color of header hashtags. Don't change. */
.cm-formatting-list-ul .cm-list-1
/* This is the color of text in lists. Don't change. */
/* Subtler code folding arrows */
.CodeMirror-foldgutter-folded:after,
.CodeMirror-foldgutter-open:after {
opacity: 0.5;
color: var(--text-link);
}
.CodeMirror-foldgutter-folded:hover:after,
.CodeMirror-foldgutter-open:hover:after {
opacity: 1;
color: var(--text-link);
}
.CodeMirror-foldgutter-folded:after {
content: "\25BA";
color: var(--text-link);
}
.CodeMirror-foldgutter-open:after {
content: "\25BC";
}
/* Bullet Point Relationship Lines */
.cm-hmd-list-indent .cm-tab,
ul ul {
position: relative;
}
.cm-hmd-list-indent .cm-tab::before,
ul ul::before {
content: "";
border-left: 1px solid;
color: #92CDD6;
position: absolute;
}
.cm-hmd-list-indent .cm-tab::before {
left: 0;
top: -5px;
bottom: -4px;
}
ul ul::before {
left: 0px;
top: 0;
bottom: 0;
}
/* ul, li & ol colors in editor */
.cm-s-obsidian span.cm-formatting-list {
color: #8abeb7;
}
ol {
display: block;
list-style-type: decimal;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
padding-inline-start: 40px;
}
.suggestion-highlight {
color: var(--interactive-accent)!important;
}
.is-selected {
background-color: var(--blockquote-border)!important;
}
@media print {
@page {
margin: 0mm 0mm 0mm 0mm;
}
.print .markdown-preview-view {
-webkit-print-color-adjust: exact;
background-color: #282a36;
color: #f8f8f2;
}
.markdown-rendered code {
color: #BABABA !important;
}
}
+7
View File
@@ -0,0 +1,7 @@
{
"name": "Encore",
"version": "2.8.0",
"minAppVersion": "1.1.9",
"author": "Carbonateb",
"authorUrl": "https://lucaschampagne.dev/"
}
+2011
View File
File diff suppressed because it is too large. Load diff
+7
View File
@@ -0,0 +1,7 @@
{
"name": "Material Flat",
"version": "1.4.0",
"minAppVersion": "0.16.0",
"author": "Threethan, Joschua",
"authorUrl": "https://github.com/Threethan/"
}
File diff suppressed because it is too large. Load diff
+7
View File
@@ -0,0 +1,7 @@
{
"name": "Obsidian Nord",
"version": "0.2.0",
"minAppVersion": "0.16.0",
"author": "insanum",
"authorUrl": "https://insanum.com"
}
+525
View File
@@ -0,0 +1,525 @@
:root
{
--dark0_x: 46,52,64; /* #2e3440 */
--dark0: rgb(var(--dark0_x));
--dark1_x: 59,66,82; /* #3b4252 */
--dark1: rgb(var(--dark1_x));
--dark2_x: 67,76,94; /* #434c5e */
--dark2: rgb(var(--dark2_x));
--dark3_x: 76,86,106; /* #4c566a */
--dark3: rgb(var(--dark3_x));
--light0_x: 216,222,233; /* #d8dee9 */
--light0: rgb(var(--light0_x));
--light1_x: 229,233,240; /* #e5e9f0 */
--light1: rgb(var(--light1_x));
--light2_x: 236,239,244; /* #eceff4 */
--light2: rgb(var(--light2_x));
--light3_x: 255,255,255; /* #ffffff */
--light3: rgb(var(--light3_x));
--frost0_x: 143,188,187; /* #8fbcbb */
--frost0: rgb(var(--frost0_x));
--frost1_x: 136,192,208; /* #88c0d0 */
--frost1: rgb(var(--frost1_x));
--frost2_x: 129,161,193; /* #81a1c1 */
--frost2: rgb(var(--frost2_x));
--frost3_x: 94,129,172; /* #5e81ac */
--frost3: rgb(var(--frost3_x));
--red_x: 191,97,106; /* #bf616a */
--red: rgb(var(--red_x));
--orange_x: 208,135,112; /* #d08770 */
--orange: rgb(var(--orange_x));
--yellow_x: 235,203,139; /* #ebcb8b */
--yellow: rgb(var(--yellow_x));
--green_x: 163,190,140; /* #a3be8c */
--green: rgb(var(--green_x));
--purple_x: 180,142,173; /* #b48ead */
--purple: rgb(var(--purple_x));
}
body
{
--accent-h: 354; /* --red #bf616a */
--accent-s: 42%;
--accent-l: 56%;
--link-decoration: none;
--link-decoration-hover: none;
--link-external-decoration: none;
--link-external-decoration-hover: none;
--tag-decoration: none;
--tag-decoration-hover: underline;
--tag-padding-x: .5em;
--tag-padding-y: .2em;
--tag-radius: .5em;
--tab-font-weight: 600;
--bold-weight: 600;
--checkbox-radius: 0;
/* --list-indent: 2em; */
--embed-border-left: 6px double var(--interactive-accent);
}
.theme-dark
{
--color-red-rgb: var(--red_x);
--color-red: var(--red);
--color-purple-rgb: var(--purple_x);
--color-purple: var(--purple);
--color-green-rgb: var(--green_x);
--color-green: var(--green);
--color-cyan-rgb: var(--frost1_x);
--color-cyan: var(--frost1);
--color-blue-rgb: var(--frost3_x);
--color-blue: var(--frost3);
--color-yellow-rgb: var(--yellow_x);
--color-yellow: var(--yellow);
--color-orange-rgb: var(--orange_x);
--color-orange: var(--orange);
/* --color-pink: var(--purple); */
--background-primary: var(--dark0);
--background-primary-alt: var(--dark0);
--background-secondary: var(--dark1);
--background-secondary-alt: var(--dark2);
--background-modifier-border: var(--dark2);
--cursor-line-background: rgba(var(--red_x), 0.2);
--text-normal: var(--light2);
--text-faint: var(--light0);
--text-muted: var(--light1);
--link-url: var(--purple);
--h1-color: var(--red);
--h2-color: var(--yellow);
--h3-color: var(--green);
--h4-color: var(--purple);
--h5-color: var(--frost0);
--h6-color: var(--frost2);
--text-highlight-bg: var(--frost1);
--text-highlight-fg: var(--dark0);
--text-accent: var(--orange);
--text-accent-hover: var(--frost2);
--tag-color: var(--frost0);
--tag-background: var(--dark2);
--tag-background-hover: var(--dark1);
--titlebar-text-color-focused: var(--red);
--inline-title-color: var(--yellow);
--bold-color: var(--yellow);
--italic-color: var(--yellow);
--checkbox-color: var(--frost0);
--checkbox-color-hover: var(--frost0);
--checkbox-border-color: var(--frost0);
--checkbox-border-color-hover: var(--frost0);
--checklist-done-color: rgba(var(--light2_x), 0.5);
--table-header-background: hsl(220, 16%, 16%);
--table-header-background-hover: var(--dark3);
--table-row-even-background: hsl(220, 16%, 20%);
--table-row-odd-background: hsl(220, 16%, 24%);
--table-row-background-hover: var(--dark3);
--text-selection: rgba(var(--red_x), 0.6);
--flashing-background: rgba(var(--red_x), 0.3);
--code-normal: var(--frost1);
--code-background: var(--dark1);
--mermaid-note: var(--frost3);
--mermaid-loopline: var(--frost1);
--mermaid-exclude: var(--dark3);
--mermaid-seqnum: var(--dark0);
--icon-color-hover: var(--red);
--icon-color-focused: var(--frost2);
--nav-item-color-hover: var(--red);
--nav-item-color-active: var(--frost2);
--nav-file-tag: rgba(var(--yellow_x), 0.9);
--graph-line: var(--dark3);
--graph-node: var(--light3);
--graph-node-tag: var(--red);
--graph-node-attachment: var(--green);
--calendar-hover: var(--red);
--calendar-background-hover: var(--dark3);
--calendar-week: var(--yellow);
--calendar-today: var(--yellow);
--dataview-key: var(--text-faint);
--dataview-key-background: rgba(var(--frost2_x), 0.3);
--dataview-value: var(--text-faint);
--dataview-value-background: rgba(var(--red_x), 0.3);
--tab-text-color-focused-active: var(--frost2);
--tab-text-color-focused-active-current: var(--red);
}
.theme-light
{
--color-red-rgb: var(--red_x);
--color-red: var(--red);
--color-purple-rgb: var(--purple_x);
--color-purple: var(--purple);
--color-green-rgb: var(--green_x);
--color-green: var(--green);
--color-cyan-rgb: var(--frost1_x);
--color-cyan: var(--frost1);
--color-blue-rgb: var(--frost3_x);
--color-blue: var(--frost3);
--color-yellow-rgb: var(--yellow_x);
--color-yellow: var(--yellow);
--color-orange-rgb: var(--orange_x);
--color-orange: var(--orange);
/* --color-pink: var(--purple); */
--background-primary: var(--light3);
--background-primary-alt: var(--light3);
--background-secondary: var(--light2);
--background-secondary-alt: var(--light1);
--background-modifier-border: var(--light1);
--cursor-line-background: rgba(var(--red_x), 0.1);
--text-normal: var(--dark2);
--text-faint: var(--dark0);
--text-muted: var(--dark1);
--link-url: var(--purple);
--h1-color: var(--red);
--h2-color: var(--yellow);
--h3-color: var(--green);
--h4-color: var(--purple);
--h5-color: var(--frost0);
--h6-color: var(--frost2);
--text-highlight-bg: var(--yellow);
--text-highlight-fg: var(--dark0);
--text-accent: var(--orange);
--text-accent-hover: var(--frost2);
--tag-color: var(--dark3);
--tag-background: var(--light1);
--tag-background-hover: var(--light0);
--titlebar-text-color-focused: var(--red);
--inline-title-color: var(--yellow);
--bold-color: var(--green);
--italic-color: var(--green);
--checkbox-color: var(--frost2);
--checkbox-color-hover: var(--frost2);
--checkbox-border-color: var(--frost2);
--checkbox-border-color-hover: var(--frost2);
--checklist-done-color: rgba(var(--dark2_x), 0.4);
--table-header-background: rgba(var(--light2_x), 0.2);
--table-header-background-hover: var(--frost2);
--table-row-even-background: rgba(var(--light2_x), 0.4);
--table-row-odd-background: rgba(var(--light2_x), 0.8);
--table-row-background-hover: var(--frost2);
--text-selection: rgba(var(--red_x), 0.6);
--flashing-background: rgba(var(--red_x), 0.3);
--code-normal: var(--frost1);
--code-background: var(--light2);
--mermaid-note: var(--frost0);
--mermaid-loopline: var(--frost1);
--mermaid-exclude: var(--light0);
--mermaid-seqnum: var(--light0);
--icon-color-hover: var(--red);
--icon-color-focused: var(--frost3);
--nav-item-color-hover: var(--red);
--nav-item-color-active: var(--frost2);
--nav-file-tag: rgba(var(--orange_x), 0.9);
--graph-line: var(--light0);
--graph-node: var(--dark3);
--graph-node-tag: var(--red);
--graph-node-attachment: var(--green);
--calendar-hover: var(--red);
--calendar-background-hover: var(--light0);
--calendar-week: var(--orange);
--calendar-today: var(--orange);
--dataview-key: var(--text-faint);
--dataview-key-background: rgba(var(--frost2_x), 0.3);
--dataview-value: var(--text-faint);
--dataview-value-background: rgba(var(--red_x), 0.3);
--tab-text-color-focused-active: var(--frost2);
--tab-text-color-focused-active-current: var(--red);
}
table
{
border: 1px solid var(--background-secondary) !important;
border-collapse: collapse;
}
thead
{
border-bottom: 2px solid var(--background-modifier-border) !important;
}
th
{
font-weight: 600 !important;
border: 1px solid var(--background-secondary) !important;
}
td
{
border-left: 1px solid var(--background-secondary) !important;
border-right: 1px solid var(--background-secondary) !important;
border-bottom: 1px solid var(--background-secondary) !important;
}
.markdown-rendered tbody tr:nth-child(even)
{
background-color: var(--table-row-even-background) !important;
}
.markdown-rendered tbody tr:nth-child(odd)
{
background-color: var(--table-row-odd-background) !important;
}
.markdown-rendered tbody tr:nth-child(even):hover,
.markdown-rendered tbody tr:nth-child(odd):hover
{
background-color: var(--table-row-background-hover) !important;
}
.markdown-rendered mark
{
background-color: var(--text-highlight-bg);
color: var(--text-highlight-fg);
}
.markdown-rendered mark a
{
color: var(--red) !important;
font-weight: 600;
}
.search-result-file-matched-text
{
color: var(--text-highlight-fg) !important;
}
.cm-hashtag-begin:hover, .cm-hashtag-end:hover
{
color: var(--text-accent);
/* background-color: var(--tag-background-hover); */
text-decoration: underline;
}
input[type=checkbox]
{
border: 1px solid var(--checkbox-color);
}
input[type=checkbox]:checked
{
background-color: var(--checkbox-color);
box-shadow: inset 0 0 0 2px var(--background-primary);
}
input[type=checkbox]:checked:after
{
display: none;
}
code[class*="language-"],
pre[class*="language-"]
{
line-height: var(--line-height-tight) !important;
}
.cm-url
{
color: var(--link-url) !important;
}
.cm-url:hover
{
color: var(--text-accent-hover) !important;
}
/* Keep highlight/marks the same between viewer and editor. */
.cm-highlight
{
color: var(--text-highlight-fg) !important;
}
/* Keep inline code the same between viewer and editor. */
.cm-inline-code
{
border-radius: var(--radius-s);
font-size: var(--code-size);
padding: 0.1em 0.25em;
}
.cm-formatting-code + .cm-inline-code
{
border-radius: 0;
padding: 0.1em 0;
}
.cm-formatting-code
{
border-radius: var(--radius-s) 0 0 var(--radius-s);
padding: 0.1em 0 0.1em 0.25em;
}
.cm-inline-code + .cm-formatting-code
{
border-radius: 0 var(--radius-s) var(--radius-s) 0;
padding: 0.1em 0.25em 0.1em 0;
}
.cm-line .cm-strong
{
color: var(--bold-color) !important;
}
/*
* Keep list bullet padding the same between viewer and editor.
* This is annoying with the cursor in the editor as there is a gap.
*/
/*
.cm-formatting-list
{
padding-right: 4px !important;
}
*/
/*
* Keep sub-list indenting the same between viewer and editor.
* This assumes --list-indent is default at 2em.
*/
/*
.cm-indent
{
text-indent: 1em !important;
}
*/
.mermaid .note
{
fill: var(--mermaid-note) !important;
}
.mermaid .loopLine,
{
stroke: var(--mermaid-loopline) !important;
}
.mermaid .loopText>tspan,
.mermaid .entityLabel
{
fill: var(--red) !important;
}
.mermaid .exclude-range
{
fill: var(--mermaid-exclude) !important;
}
.mermaid .sequenceNumber
{
fill: var(--mermaid-seqnum) !important;
}
.calendar .week-num
{
color: var(--calendar-week) !important;
}
.calendar .today
{
color: var(--calendar-today) !important;
}
.calendar .week-num:hover,
.calendar .day:hover
{
color: var(--calendar-hover) !important;
background-color: var(--calendar-background-hover) !important;
}
.markdown-embed-title
{
color: var(--yellow);
font-weight: 600 !important;
}
.cm-active
{
background-color: var(--cursor-line-background) !important;
}
.nav-file-tag
{
color: var(--nav-file-tag) !important;
}
.is-flashing
{
background-color: var(--flashing-background) !important;
}
.dataview.inline-field-key
{
border-top-left-radius: var(--radius-s);
border-bottom-left-radius: var(--radius-s);
padding-left: 4px;
font-family: var(--font-monospace);
font-size: var(--font-smaller);
color: var(--dataview-key) !important;
background-color: var(--dataview-key-background) !important;
}
.dataview.inline-field-value
{
border-top-right-radius: var(--radius-s);
border-bottom-right-radius: var(--radius-s);
padding-right: 4px;
font-family: var(--font-monospace);
font-size: var(--font-smaller);
color: var(--dataview-value) !important;
background-color: var(--dataview-value-background) !important;
}
.suggestion-highlight
{
color: var(--red);
}
+7
View File
@@ -0,0 +1,7 @@
{
"name": "Things",
"version": "2.1.20",
"minAppVersion": "1.0.0",
"author": "@colineckert",
"authorUrl": "https://twitter.com/colineckert"
}
+1628
View File
File diff suppressed because it is too large. Load diff
+240
View File
@@ -0,0 +1,240 @@
{
"main": {
"id": "b894e6395441bf91",
"type": "split",
"children": [
{
"id": "18e28060fe2de0a2",
"type": "tabs",
"children": [
{
"id": "d83bb0bbeeb86eec",
"type": "leaf",
"state": {
"type": "empty",
"state": {}
}
},
{
"id": "3ed058b7ba32ddc0",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Software Project with Agile Techinques/Week 3/Study Skills - Class Diagrams.md",
"mode": "source",
"source": false
}
}
}
],
"currentTab": 1
}
],
"direction": "vertical"
},
"left": {
"id": "29180f976da6913e",
"type": "split",
"children": [
{
"id": "5e6a5a1cfc68c394",
"type": "tabs",
"children": [
{
"id": "b645eb003ca29da3",
"type": "leaf",
"state": {
"type": "search",
"state": {
"query": "tag:#Subsets",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical"
}
}
},
{
"id": "fffdf73e5f225916",
"type": "leaf",
"state": {
"type": "bookmarks",
"state": {}
}
},
{
"id": "671043c113c40804",
"type": "leaf",
"state": {
"type": "file-explorer",
"state": {
"sortOrder": "alphabetical"
}
}
}
],
"currentTab": 2
}
],
"direction": "horizontal",
"width": 395.5
},
"right": {
"id": "ee8f6df41634f71e",
"type": "split",
"children": [
{
"id": "08c5be16080a33d4",
"type": "tabs",
"children": [
{
"id": "28df09223f5ff3ba",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"file": "Software Project with Agile Techinques/Week 3/Study Skills - Class Diagrams.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
"showSearch": false,
"searchQuery": "",
"backlinkCollapsed": false,
"unlinkedCollapsed": true
}
}
},
{
"id": "7bc5b41711af1822",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"file": "Software Project with Agile Techinques/Week 3/Study Skills - Class Diagrams.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
}
},
{
"id": "1817c377e59b8531",
"type": "leaf",
"state": {
"type": "tag",
"state": {
"sortOrder": "frequency",
"useHierarchy": true
}
}
},
{
"id": "3f130e3d308d39ed",
"type": "leaf",
"state": {
"type": "outline",
"state": {
"file": "Software Project with Agile Techinques/Week 3/Study Skills - Class Diagrams.md"
}
}
},
{
"id": "2e33e92dc5f2fbae",
"type": "leaf",
"state": {
"type": "all-properties",
"state": {
"sortOrder": "frequency",
"showSearch": false,
"searchQuery": ""
}
}
},
{
"id": "ff4e63a36b080692",
"type": "leaf",
"state": {
"type": "git-view",
"state": {}
}
},
{
"id": "390f03a34bed73fd",
"type": "leaf",
"state": {
"type": "mermaid-toolbar-view",
"state": {}
}
}
],
"currentTab": 5
}
],
"direction": "horizontal",
"width": 307.5
},
"left-ribbon": {
"hiddenItems": {
"graph:Open graph view": false,
"command-palette:Open command palette": false,
"switcher:Open quick switcher": false,
"obsidian-git:Open Git source control": false,
"obsidian-full-calendar:Open Full Calendar": false,
"omnisearch:Omnisearch": false,
"mermaid-tools:Open Mermaid Toolbar": false
}
},
"active": "ff4e63a36b080692",
"lastOpenFiles": [
"README.md",
"AI & Data Mining/Week 4/Tutorial 4 - Nearest Neighbor.md",
"AI & Data Mining/Week 4/Lecture 7 - Nearest Neighbor.md",
"AI & Data Mining/Week 4/Workshop 4 - Nearest Neighbor.md",
"Penetration Testing/Week 3/Workshop 3 - netcat.md",
"Penetration Testing/Week 4/Week 4 - Pre-Engagement.md",
"Penetration Testing/Week 4/Workshop 4 - Google Dorking.md",
"Pasted image 20241011140717.png",
"Pasted image 20241011140654.png",
"Pasted image 20241011140611.png",
"Pasted image 20241011131844.png",
"Pasted image 20241011131542.png",
"Software Project with Agile Techinques/Week 4/Workshop 4 - SPAT.md",
"Software Project with Agile Techinques/Week 3/Study Skills - Class Diagrams.md",
"Networking and Security/Week 4/Workshop 4 - Routing.md",
"Software Project with Agile Techinques/Week 4",
"Networking and Security/Week 3/Workshop 3 - Subnetting.md",
"Networking and Security/Week 2/Lecture 3 - IP4 and Subnetting.md",
"Pasted image 20241010135130.png",
"Pasted image 20241010133818.png",
"Client Server Systems/Week 3/Workshop 3.md",
"AI & Data Mining/Week 4",
"Pasted image 20241010132326.png",
"Pasted image 20241010132324.png",
"Client Server Systems/Week 4",
"Data Structures/Week 4/Week 4 - Exceptions.md",
"Penetration Testing/Week 4",
"Networking and Security/Week 4/Lecture 8.md",
"Data Structures/Week 4",
"AI & Data Mining/Week 3/Workshop 3.md",
"Networking and Security/Week 4",
"AI & Data Mining/Week 3/Tutorial 3.md",
"AI & Data Mining/Week 1/Lecture 2 - Input and Output.md",
"Pasted image 20241004143909.png",
"AI & Data Mining/Week 3/Untitled.md.partial",
"AI & Data Mining/Week 3/Lecture 5 - Naive Bayes.md",
"Client Server Systems/Week 3/workshop3/strings.php~",
"Software Project with Agile Techinques/Week 3",
"Networking and Security/Week 3",
"Data Structures/Week 1/Lecture 2 - Data Structures & ADTs.md",
"Data Structures/Week 1/Lecture 1 - Module Intro.md",
"Penetration Testing/Week 3/Lecture 3 - Blue Team.md",
"Data Structures/Week 3/Workshop 3 - ADTs.md",
"Data Structures/Week 3/Lecture 5 - Linear List.md",
"Career Development/Week 3/Lecture 3 - Employment Skills.md",
"Data Structures/Untitled.md",
"Database Systems/Untitled.canvas",
"Untitled 1.canvas",
"Untitled.canvas"
]
}
@@ -0,0 +1,214 @@
# Assessment
## T1
- Exam (50%)
## T2
- Coursework (50%)
# Resources
Data Mining: Practical Machine Learning Tools and Techniques (Witten, Frank, Hall & Pal) 4th Edition 2016
Scientific Calculator
# Data Vs Information
- Too much data
- Valuable resource
- Raw data less important, need to develop techniques to extract information
- Data: recorded facts
- Information: patterns underlying data
# Philosophy
## Cow Culling
- Cows described by 700 features about certain variables
- Problem is the selection of cows of which to cull
- Data is historical records, and farmer decisions
- Machine Learning used to ascertain which factors taken into account by farmers, rather than automating the decision making process.
# Definition of Data Mining
- The extraction of:
- Implicit,
- Previously unknown,
- Potentially useful data
- Programs that detect patterns and regularities are needed
- Strong patterns => good predictions
- Issues:
- Most patterns not interesting
- Patterns may be inexact
- Data may be garbled or missing
# Machine Learning Techniques
- Algorithms for acquiring structural descriptions from examples
- Structural descriptions represent patterns, explicitly.
- Predict outcome in new situation
- Understand and explain how prediction derived.
- Methods originate from AI, statistics and research on databases.
# Can Machines Learn?
- By definition, sort of. The ability to obtain knowledge by study, experience or being taught, is very difficult to measure.
- Does learning imply intention?
# Terminology
- Concept - Thing to be learned
- Example / Instance - Individual, independent examples of a concept
- Attributes / Features - Measuring aspects of an example / instance
- Concept description (pattern, model, hypothesis) - Output for data mining algorithms.
# Famous Small Datasets
- Will be used in module
- Unrealistically simple
## Weather Dataset - Nominal
Concept: conditions which are suitable for a game.
Reference: Quinlan, J.R. (1986)
Induction of decision trees. Machine
Learning, 1(1), 81-106.
### Attributes
3\*3\*2\*2 = 36 possible combinations of values.
Outlook
- sunny, overcast, rainy
Temperature
- hot, mild, cool
Humidity
- high, normal
Windy
- yes, no
Play
- Class
- yes, no
### Dataset
![](Pasted%20image%2020240919134249.png)
![](Pasted%20image%2020240919134304.png)
Rules ordered, higher = higher priority
### Weather Dataset - Mixed
![](Pasted%20image%2020240919134526.png)
![](Pasted%20image%2020240919134535.png)
## Contact Lenses Dataset
Describes conditions under which an optician might want to prescribe soft, hard or no contact lenses.
Grossly over-simplified.
Reference: Cendrowska, J. (1987). Prism: an algorithm
for inducing module rules. Journal of Man-Machine
Studies, 27(4), 349–370.
### Attributes
3\*2\*2\*2 = 24 possibilities
Dataset is exhaustive, which is unusual.
Age
- young, pre-presbyopic, presbyopic
Spectacle Prescription
- myope (short), hypermetrope (long)
Astigmatism
- yes, no
Tear Production Rate
- reduced, normal
Recommended Lenses
- class
- hard, soft, none
### Dataset
![](Pasted%20image%2020240919134848.png)
## Iris Dataset
Used in many statistical experiments
Contains numeric attributes of 3 different types of iris.
Created in 1936 by Sir Ronald Fisher
### Dataset
![](Pasted%20image%2020240920130950.png)
# Styles of Learning
- Classification Learning: Predicting a **nominal** class
- Numeric Prediction (Regression): Predicting a **numeric** quantity
- Clustering: Grouping similar examples into clusters
- Association Learning: Detecting associations between attributes
## Classification Learning
- Nominal
- Supervised
- Provided with actual value of the class
- Measure success on fresh data for which class labels are known (test data)
## Numeric Prediction (Regression)
- Numeric
- Supervised
- Test Data
![](Pasted%20image%2020240920131244.png)
Example uses a linear regression function to provide an estimated performance value based on attributes.
## Clustering
- Finding similar groups
- Unsupervised
- Class of example is unknown
- Success measured **subjectively**
## Association Learning
- Applied if no class specified, and any kind of structure is interesting
- Difference to Classification Learning:
- Predicts any attribute's value, not just class.
- More than one attribute's value at a time
- Far more association rules than classification rules.
## Classification Vs Association Rules
Classification Rule:
- Predicts value of a given attribute (class of example)
- ``If outlook = sunny and humidity = high, then play = no``
Association Rule:
- Predicts value of arbitrary attribute / combination
```If temperature = cool, humidity = normal
If humidity = normal and windy = false, play = yes
If outlook = sunny and play = no, humidity = high
If windy = false and play = no, then outlook = sunny and humidity = high
```
# Data Mining and Ethics
- Ethical Issues arise in practical applications
- Data mining often used to discriminate
- Ethical situation depends on application
- Attributes may contain problematic information
- Does ownership of data bestow right to use it in other ways than those purported when it was originally collected?
- Who is permitted to access the data?
- For what purpose was the data collected?
- What conclusions can sensibly be drawn?
- Caveats must be attached to results
- Purely statistical arguments never sufficient
@@ -0,0 +1,135 @@
# Attributes
- Each example described by fixed pre-defined set of features (attributes)
- Number of attributes may vary
- ex. Transportation Vehicles
- no. wheels not applicable to ships
- no. masts not applicable to cars
- Possible solution: "irrelevant value" flag
- Attributes may be dependent on other attributes
# Taxonomy of Data Types
![](Pasted%20image%2020240920132209.png)
# Nominal Attributes
- Distinct symbols
- Serve as labels or names
- No relation implied among nominal values
- Only equality tests can be performed
- ex. outlook = sunny
# Sources of Missing Values
- Malfunctioning / Misconfigured Equipment
- Changes in design
- Collation of different datasets
- Data not collected for mining
- Errors and omissions dont affect purpose of data
- ex. Banks do not need to know age in banking datasets, DOB may contain missing values
- Missing value may have significance
- ex. medical diagnoses can be made from tests a doctor decides, rather than the outcome.
- Most DM algos assume this is not the case, hence "missing" may need to be coded as an additional nominal value.
# Inaccurate Values
- Typographical errors in nominal attributes
- Typographical and measurement errors in numeric attributes
- Deliberate errors
- ex. Incorrect ZIP codes, unsanitised inputs
- Duplicate examples
# Weka and ARFF
## Weather Dataset in ARFF
![](Pasted%20image%2020240920132732.png)
### Getting to Know the Data
- First task, get to know data
- Simple visualisations useful:
- Nominal: bar graph
- Numeric: histograms
- 2D and 3D plots show dependencies
- Need to consult experts
- Too much data? Take sample.
# Concept Descriptions
- Output of DM algorithm
- Many ways of representing:
- Decision Trees
- Rules
- Linear Regression Functions
## Decision Trees
- Divide-and-Conquer approach
- Trees drawn upside down
- Node at top is root
- Edges are branches
- Rectangles represent leaves
- Leaves assign classification
- Nodes involve testing attribute
### Decision Tree with Nominal Attributes
![](Pasted%20image%2020240920133218.png)
- Number of branches usually equal to number values
- Attribute not tested more than once.
### Decision Tree with Numeric Attributes
![](Pasted%20image%2020240920133316.png)
- Test whether value is greater or less than constant
- Attribute may be tested multiple times
### Decision Trees with Missing Values
- Not clear which branch should be taken when node tests attribute with missing value
- Does absence of a value have significance?
- Yes => Treat as separate value during training
- No => Treat in special way during testing
- Assign sample to most popular branch
# Classification Rules
- Popular alternative to decision tree
- Antecedent (pre-condition) - series of tests
- Tests usually logically ANDed together
- Consequent (conclusion) - usually a class
- Individual rules often logically ORed together
## If-Then Rules for Contact Lenses
![](Pasted%20image%2020240920133706.png)
# Nuggets
- Are rules independent
- Problem: Ignores process of executing rules
- Ordered set (decision list)
- Order important for interpretation
- Unordered set
- Rules may overlap and lead to different conclusions for the same example
- Needs conflict resolution
## Executing Rules
- What if $\geq$ 2 rules conflict?
- Give no conclusion?
- Go with the rule that covers largest no. training samples?
- What is no rule applies to test example?
- Give no conclusion?
- Go with class that is most frequent?
## Special Case: Boolean Classes
- Assumption: if example does not belong to class "yes", belongs to "no"
- Solution: only learn rules for class "yes", use default rule for "no"
![](Pasted%20image%2020240920134203.png)
- Order is important, no conflicts.
@@ -0,0 +1,85 @@
# Statistical Modelling
- Using statistical modelling for classification
- Bayesian techniques adopted by machine learning community in the 90s
- Opposite of 1R, uses all attributes
- Assume:
- Attributes equally important
- Statistically independent
- Independence assumption never correct
- Works in practice
# Weather Dataset
![](Pasted%20image%2020241003132609.png)
![](Pasted%20image%2020241003132636.png)
# Bayes' Rule of Conditional Probability
- Probability of event H given evidence E:
# $Pr[H|E] = \frac{Pr[E|H]\times Pr[H]}{Pr[E]}$
- H may be ex. Play = Yes
- E may be particular weather for new day
- A priori probability of H: $Pr[H]$
- Probability before evidence
- A posteriori probability of H: $Pr[H|E]$
- Probability after evidence
## Naive Bayes for Classification
- Classification Learning: what is the probability of class given instance?
- Evidence $E$ = instance
- Event $H$ = class for given instance
- Naive assumption: evidence splits into attributes that are independent
# $Pr[H|E] = \frac{Pr[E_1|H] \times Pr[E_2|H]… Pr[E_n|H] \times Pr[H]}{Pr[E]}$
- Denominator cancels out during conversion into probability by normalisation
### Weather Data Example
![](Pasted%20image%2020241003133919.png)
# Laplace Estimator
- Remedy to Zero-frequency problem: Add 1 to the count for every attribute value-class combination (laplace estimator)
- Result: probabilities will never be 0 (also stabilises probability estimates)
- Simple remedy is one which is often used in practice when zero frequency problem arises.
## Example
![](Pasted%20image%2020241003134100.png)
# Modified Probability Estimates
- Consider attribute *outlook* for class *yes*
# $\frac{2+\frac{1}{3}\mu}{9+\mu}$
Sunny
# $\frac{4+\frac{1}{3}\mu}{9+\mu}$
Overcast
# $\frac{3+\frac{1}{3}\mu}{9+\mu}$
Rainy
- Each value treated the same way
- Prior to seeing training set, assume each value is equally likely, ex. prior probability is $\frac{1}{3}$
- When decided to add 1 to counts, we implicitly set $\mu$ to 3.
- However, no particular reason to add 1 to the count, we could increment by 0.1 instead, setting $\mu$ to 0.3.
- A large value of $\mu$ indicates prior probabilities are very important compared to evidence in training set.
## Fully Bayesian Formulation
# $\frac{2+\frac{1}{3}\mu p_1}{9+\mu}$
Sunny
# $\frac{4+\frac{1}{3}\mu p_2}{9+\mu}$
Overcast
# $\frac{3+\frac{1}{3}\mu p_3}{9+\mu}$
Rainy
- Where $p_1 + p_2 + p_3 = 1$
- $p_1, p_2, p_3$ are prior probabilities of outlook being sunny, overcast or rainy before seeing the training set. However, in practice it is not clear how these prior probabilities should be assigned.
+51
View File
@@ -0,0 +1,51 @@
| Temperature | Skin | Blood Pressure | Blocked Nose | Diagnosis |
| ----------- | ------ | -------------- | ------------ | --------- |
| Low | Pale | Normal | True | N |
| Moderate | Pale | Normal | True | B |
| High | Normal | High | False | N |
| Moderate | PaleFF | Normal | False | B |
| High | Red | High | False | N |
| High | Red | High | True | N |
| Moderate | Red | High | False | B |
| Low | Normal | High | False | B |
| Low | Pale | Normal | False | B |
| Low | Normal | Normal | False | B |
| High | Normal | Normal | True | B |
| Moderate | Normal | High | True | B |
| Moderate | Red | Normal | False | B |
| Low | Normal | High | True | N |
| | Temperature | | | Skin | | | Pressure | | | Blocked | | Diag | |
| -------- | ----------- | --- | ------ | ---- | --- | ------ | -------- | --- | ----- | ------- | --- | ---- | ---- |
| | N | B | | N | B | | N | B | | N | B | N | B |
| Low | 2 | 3 | Pale | 1 | 3 | Normal | 1 | 6 | True | 3 | 3 | 5 | 9 |
| Moderate | 0 | 5 | Normal | 2 | 4 | High | 4 | 3 | False | 2 | 6 | | |
| High | 3 | 1 | Red | 2 | 2 | | | | | | | | |
| | Temperature | | | Skin | | | Pressure | | | Blocked | | | Diag |
| Low | 2/5 | 3/9 | Pale | 1/5 | 3/9 | Normal | 1/5 | 6/9 | True | 3/5 | 3/9 | 5/14 | 9/14 |
| Moderate | 0/5 | 5/9 | Normal | 2/5 | 4/9 | High | 4/5 | 3/9 | False | 2/5 | 6/9 | | |
| High | 2/5 | 1/9 | Red | 3/5 | 2/9 | | | | | | | | |
# Problem 1
# $Pr[Diagnosis=N|E] = \frac{2}{5} \times \frac{2}{5} \times \frac{4}{5} \times \frac{3}{5} \times \frac{5}{14} = 0.027428571$
# $Pr[Diagnosis = B|E] = \frac{3}{9} \times \frac{4}{9} \times \frac{3}{9} \times \frac{3}{9} \times \frac{9}{14} = 0.010582011$
# $p(B) = \frac{0.0106}{0.0106+0.0274} = 0.2789$
# $p(N) = \frac{0.0274}{0.0106+0.0274} = 0.7211$
Diagnosis N is much more likely than Diagnosis B
# Problem 2
# $Pr[Diagnosis = N|E] = \frac{2}{5} \times \frac{1}{5} \times \frac{3}{5} \times \frac{5}{14} = 0.0171$
# $Pr[Diagnosis = B|E] = \frac{3}{9} \times \frac{6}{9} \times \frac{3}{9} \times \frac{9}{14} = 0.0476$
# $p(N) = \frac{0.0171}{0.0171+0.0476} = 0.2643$
# $p(B) = \frac{0.0474}{0.0476+0.0171} = 0.7357$
Diagnosis B is much more likely than Diagnosis N
# Problem 3
# $Pr[Diagnosis = N|E] = \frac{0}{5} \times \frac{2}{5} \times \frac{4}{5} \times \frac{3}{5} \times \frac{5}{14} = 0$
# $Pr[Diagnosis = B|E] = \frac{5}{9} \times \frac{4}{9} \times \frac{3}{9} \times \frac{3}{9} \times \frac{9}{14} = 0.018$
+277
View File
@@ -0,0 +1,277 @@
# Weather Dataset
## Dataset
```
% This is a comment about the data set.
% This data describes examples of whether to play
% a game or not depending on weather conditions.
@relation letsPlay
@attribute outlook {sunny, overcast, rainy}
@attribute temperature real
@attribute humidity real
@attribute windy {TRUE, FALSE}
@attribute play {yes, no}
@data
sunny,85,FALSE,no
sunny,90,TRUE,no
overcast,86,FALSE,yes
rainy,96,FALSE,yes
rainy,80,FALSE,yes
rainy,70,TRUE,no
overcast,65,TRUE,yes
sunny,95,FALSE,no
sunny,70,FALSE,yes
rainy,80,FALSE,yes
sunny,70,TRUE,yes
overcast,90,TRUE,yes
overcast,75,FALSE,yes
rainy,91,TRUE,no
```
## Output
```
=== Run information ===
Scheme: weka.classifiers.bayes.NaiveBayes
Relation: letsPlay
Instances: 14
Attributes: 5
outlook
temperature
humidity
windy
play
Test mode: evaluate on training data
=== Classifier model (full training set) ===
Naive Bayes Classifier
Class
Attribute yes no
(0.63) (0.38)
===============================
outlook
sunny 3.0 4.0
overcast 5.0 1.0
rainy 4.0 3.0
[total] 12.0 8.0
temperature
mean 72.9697 74.8364
std. dev. 5.2304 7.384
weight sum 9 5
precision 1.9091 1.9091
humidity
mean 78.8395 86.1111
std. dev. 9.8023 9.2424
weight sum 9 5
precision 3.4444 3.4444
windy
TRUE 4.0 4.0
FALSE 7.0 3.0
[total] 11.0 7.0
Time taken to build model: 0 seconds
=== Evaluation on training set ===
Time taken to test model on training data: 0.01 seconds
=== Summary ===
Correctly Classified Instances 13 92.8571 %
Incorrectly Classified Instances 1 7.1429 %
Kappa statistic 0.8372
Mean absolute error 0.2798
Root mean squared error 0.3315
Relative absolute error 60.2576 %
Root relative squared error 69.1352 %
Total Number of Instances 14
```
# Medical Dataset
## Dataset
```
```@relation medical
@attribute Temperature {Low,Moderate,High}
@attribute Skin {Pale,Normal,Red}
@attribute BloodPressure {Normal,High}
@attribute BlockedNose {True,False}
@attribute Diagnosis {N,B}
@data
Low, Pale, Normal, True, N
Moderate, Pale, Normal, True, B
High, Normal, High, False, N
Moderate, Pale, Normal, False, B
High, Red, High, False, N
High, Red, High, True, N
Moderate, Red, High, False, B
Low, Normal, High, False, B
Low, Pale, Normal, False, B
Low, Normal, Normal, False, B
High, Normal, Normal, True, B
Moderate, Normal, High, True, B
Moderate, Red, Normal, False, B
Low, Normal, High, True, N```
```
## Output
```
=== Run information ===
Scheme: weka.classifiers.bayes.NaiveBayes
Relation: diagnosis
Instances: 14
Attributes: 5
Temperature
Skin
BloodPressure
BlockedNose
Diagnosis
Test mode: evaluate on training data
=== Classifier model (full training set) ===
Naive Bayes Classifier
Class
Attribute N B
(0.38) (0.63)
==============================
Temperature
Low 3.0 4.0
Moderate 1.0 6.0
High 4.0 2.0
[total] 8.0 12.0
Skin
Pale 2.0 4.0
Normal 3.0 5.0
Red 3.0 3.0
[total] 8.0 12.0
BloodPressure
Normal 2.0 7.0
High 5.0 4.0
[total] 7.0 11.0
BlockedNose
True 4.0 4.0
False 3.0 7.0
[total] 7.0 11.0
Time taken to build model: 0 seconds
=== Evaluation on training set ===
Time taken to test model on training data: 0 seconds
=== Summary ===
Correctly Classified Instances 12 85.7143 %
Incorrectly Classified Instances 2 14.2857 %
Kappa statistic 0.6889
Mean absolute error 0.2635
Root mean squared error 0.3272
Relative absolute error 56.7565 %
Root relative squared error 68.2385 %
Total Number of Instances 14
```
# Using Test Data
## Test Data
```
@relation medical
@attribute Temperature {Low,Moderate,High}
@attribute Skin {Pale,Normal,Red}
@attribute BloodPressure {Normal,High}
@attribute BlockedNose {True,False}
@attribute Diagnosis {N,B}
@data
Low,Normal,High,True,N
Low,?,Normal,True,B
Moderate,Normal,High,True,B
```
## Output
```
=== Run information ===
Scheme: weka.classifiers.bayes.NaiveBayes
Relation: medical
Instances: 14
Attributes: 5
Temperature
Skin
BloodPressure
BlockedNose
Diagnosis
Test mode: user supplied test set: size unknown (reading incrementally)
=== Classifier model (full training set) ===
Naive Bayes Classifier
Class
Attribute N B
(0.38) (0.63)
==============================
Temperature
Low 3.0 4.0
Moderate 1.0 6.0
High 4.0 2.0
[total] 8.0 12.0
Skin
Pale 2.0 4.0
Normal 3.0 5.0
Red 3.0 3.0
[total] 8.0 12.0
BloodPressure
Normal 2.0 7.0
High 5.0 4.0
[total] 7.0 11.0
BlockedNose
True 4.0 4.0
False 3.0 7.0
[total] 7.0 11.0
Time taken to build model: 0 seconds
=== Predictions on test set ===
inst# actual predicted error prediction
1 1:N 1:N 0.652
2 2:B 2:B 0.677
3 2:B 2:B 0.706
=== Evaluation on test set ===
Time taken to test model on supplied test set: 0 seconds
=== Summary ===
Correctly Classified Instances 3 100 %
Incorrectly Classified Instances 0 0 %
Kappa statistic 1
Mean absolute error 0.3215
Root mean squared error 0.3223
Relative absolute error 70.1487 %
Root relative squared error 68.0965 %
Total Number of Instances 3
```
@@ -0,0 +1,112 @@
- Instance Based
- Solution to new problem is solution to closest example
- Must be able to measure distance between pair of examples
- Normally euclidean distance
# Normalisation of Numeric Attributes
- Attributes measured on different scales
- Larger scales have higher impacts
- Must normalise (transform to scale [0, 1])
# $a_i = \frac{v_i - minv_i}{maxv_i - minv_i}$
Where:
- $a_i$ is normalised value for attribute $i$
- $v_i$ is the current value for attribute $i$
- $maxv_i$ is largest value of attribute $i$
- $minv_i$ is smallest value of attribute $i$
## Example
# $maxv_{humidity} = 96$
# $minv_{humidity} = 65$
# $v_{humidity} = 80.5$
# $a_i = \frac{80.5-65}{96-55} = \frac{15.5}{31} = 0.5$
## Example (Transport Dataset)
# $maxv_{doors} = 5$
# $minv_{doors} = 2$
# $v_{doors} = 3$
# $a_i = \frac{3-2}{5-2} = \frac{1}{3}$
# Nearest Neighbor Applied (Transport Dataset)
- Last row is new vehicle to be classified
- N denotes normalised
- Right most column shows euclidean distances between each vehicle and new vehicle
- New vehicle is closest to the 1st example, a taxi, NN predicts taxi
![](Pasted%20image%2020241010133818.png)
# $vmin_{doors} = 2$
# $vmax_{doors} = 5$
# $vmin_{seats} = 7$
# $vmax_{seats} = 65$
# Missing Values
## Missing Nominal Values
- Assume missing feature is maximally different from any other value
- Distance is:
- 0 if identical and not missing
- 1 if otherwise
## Missing Numeric Values
- 1 if both missing
- Assume maximum distance if one missing. Largest of:
- (normalised) size of known value or
- 1 - (normalised) size of known value
## Example (Weather Data)
- Humidity of one example = 76
- Normalised = 0.36
- One missing
- Max distance = 1 - 0.36 = 0.64
## Example (Transport Data)
- Number of seats of one example = 16
- Normalised = 9/58
- One missing
- 1 - 9/58 = 49/58
## Normalised Transport Data with Missing Values
- Last row to be classified
- N denotes normalised
- Right most column is euclidean values
![](Pasted%20image%2020241010135130.png)
# Definitions of Proximity
## Euclidean Distance
# $\sqrt{(a_1-a_1')^2) + (a_2-a_2')^2 + ... + (a_n-a_n')^2}$
Where $a$ and $a'$ are two examples with $n$ attributes and $a'$ is the value of attribute $i$ for $a$
## Manhattan Distance
# $|a_1-a_1'|+|a_2-a_2'|+...+|a_n-a_n'|$
Vertical bar means absolute value
Negative becomes positive
Another distance measure could be cube root of sum of cubes.
Higher the power, greater influence of large differences
Euclidean distance is generally a good compromise
# Problems with Nearest Neighbor
- Slow since every example must be compared with new
- Assumes all attributes are equal
- Only use important attributes to compute distance
- Weight attributes according to importance
- Does not detect noise
- Use k-NN, get k closest examples and take majority vote on solutions
![](Pasted%20image%2020241011131542.png)
@@ -0,0 +1,36 @@
![](Pasted%20image%2020241011131844.png)
## Normalisation Equation
# $a_i = \frac{v_i - minv_i}{maxv_i - minv_i}$
## Euclidean Distance Equation
# $\sqrt{(a_1-a_1')^2) + (a_2-a_2')^2 + ... + (a_n-a_n')^2}$
# $vmax_{temp} = 85$
# $vmin_{temp} = 64$
# $a_{temp} = \frac{v_{temp} - 64}{21}$
# $vmax_{humidity} = 96$
# $vmin_{humidity} = 65$
# $a_{humidity} = \frac{v_{humidity} - 65}{31}$
| outlook | temp | NT | humidity | NH | windy | play | Euclidean Distance to a' Calculation | Euclidean Distance |
| -------- | ---- | ---- | -------- | ---- | ----- | ---- | -------------------------------------------------- | ------------------ |
| sunny | 85 | 1 | 85 | 0.65 | F | N | $\sqrt{(85-72)^2 + (85-76)^2 + (2-2)^2 + (0-1)^2}$ | 15.84 |
| sunny | 80 | 0.76 | 90 | 0.81 | T | N | $\sqrt{(80-72)^2 + (90-76)^2+ (2-2)^2 + (1-1)^2}$ | 16.12 |
| overcast | 83 | 0.90 | 68 | 0.68 | F | Y | $\sqrt{(83-72)^2 + (68-76)^2+ (1-2)^2 + (0-1)^2}$ | 13.67 |
| rainy | 70 | 0.29 | 96 | 1 | F | Y | $\sqrt{(70-72)^2 + (96-76)^2+ (0-2)^2 + (0-1)^2}$ | 20.22 |
| rainy | 68 | 0.19 | 80 | 0.48 | F | Y | $\sqrt{(68-72)^2 + (80-76)^2+ (0-2)^2 + (0-1)^2}$ | 25 |
| rainy | 65 | 0.05 | 70 | 0.16 | T | N | $\sqrt{(65-72)^2 + (70-76)^2+ (0-2)^2 + (1-1)^2}$ | |
| overcast | 64 | 0 | 65 | 0 | T | Y | $\sqrt{(64-72)^2 + (65-76)^2+ (1-2)^2 + (1-1)^2}$ | |
| sunny | 72 | 0.38 | 95 | 0.97 | F | N | $\sqrt{(72-72)^2 + (95-76)^2+ (2-2)^2 + (0-1)^2}$ | |
| sunny | 69 | 0.24 | 70 | 0.16 | F | Y | $\sqrt{(69-72)^2 + (70-76)^2+ (2-2)^2 + (0-1)^2}$ | |
| rainy | 75 | 0.52 | 80 | 0.48 | F | Y | $\sqrt{(75-72)^2 + (80-76)^2+ (0-2)^2 + (0-1)^2}$ | |
| sunny | 75 | 0.52 | 70 | 0.16 | T | Y | $\sqrt{(75-72)^2 + (70-76)^2+ (2-2)^2 + (1-1)^2}$ | |
| overcast | 72 | 0.38 | 90 | 0.81 | T | Y | $\sqrt{(72-72)^2 + (90-76)^2+ (1-2)^2 + (1-1)^2}$ | |
| overcast | 81 | 0.81 | 75 | 0.32 | F | Y | $\sqrt{(81-72)^2 + (75-76)^2+ (1-2)^2 + (0-1)^2}$ | |
| rainy | 71 | 0.33 | 91 | 0.84 | T | N | $\sqrt{(71-72)^2 + (91-76)^2+ (0-2)^2 + (1-1)^2}$ | |
| sunny | 72 | 0.38 | 76 | 0.35 | T | ?? | | |
@@ -0,0 +1,42 @@
```
=== Run information ===
Scheme: weka.classifiers.lazy.IBk -K 3 -W 0 -A "weka.core.neighboursearch.LinearNNSearch -A \"weka.core.EuclideanDistance -R first-last\""
Relation: letsPlay
Instances: 14
Attributes: 5
outlook
temperature
humidity
windy
play
Test mode: user supplied test set: size unknown (reading incrementally)
=== Classifier model (full training set) ===
IB1 instance-based classifier
using 3 nearest neighbour(s) for classification
Time taken to build model: 0 seconds
=== Predictions on test set ===
inst# actual predicted error prediction
1 1:yes 1:yes 0.659
2 1:yes 1:yes 0.659
=== Evaluation on test set ===
Time taken to test model on supplied test set: 0 seconds
=== Summary ===
Correctly Classified Instances 2 100 %
Incorrectly Classified Instances 0 0 %
Kappa statistic 1
Mean absolute error 0.3409
Root mean squared error 0.3409
Relative absolute error 90.9091 %
Root relative squared error 90.9091 %
Total Number of Instances 2
```
@@ -0,0 +1,55 @@
# Reflection
Career Development is as important as any technical module on this course. I found the concept of just the acknowledgement of different soft skills significant; I had never thought of this effect before, even happening subconsciously. Awareness of a fact is the first step to changing or implementing.
This lecture highlighted a weakness in my note taking, as I tend to not note down points I misunderstood, instead just making a mental note to investigate later and rarely adding retroactive points. Noting this is both an example of understanding I should change this, and how I should continue in the future.
In addition, I found the concept of writing reflections helpful for not just this module, and not even just at university. I rarely reflect on past learning generally; this will help growth in most aspects of life continuing to reflect.
# About
Description of module and objectives. Practical aspects and assessments explained. Importance of soft skills in employability and different types of soft skills. Refresher on note taking and reflective writing.
Career Development just as important as technical modules, soft skills are what get you hired and provide communication skills in the workplace.
# Assessments
## T1
### Early Self Assessment Report (30%)
Understanding and development of your soft skills so far (diary)
## T2
### Reflective Weekly Journal (50%)
Weekly reflective entries on each lecture in T1 and T2
### Final Self Assessment Report (20%)
Reflection of your existing and soft skills
These Assessments start as of this lecture.
# Examples of Soft Skills
- Communication
- Teamwork, but also Independence
- Time Management
- Leadership
- Note: some people aren't built for leadership, and have to force it to make it.
- Very important to take charge, building confidence
- Critical Thinking
- Adaptability
- Digital Literacy
Just awareness of the skills existence is beneficial. Never thought of it this way, awareness is the first step to implementation.
Review and correct notes, reflect. Add extra notes, look up sources of misunderstood information.
# Reflective Writing
A response to new experiences or information, and a valuable opportunity to growth. Not a purely descriptive method, but rather retroactive form of writing, using critical thinking to understand what has been learned or gained from an experience.
Starting with a short description, write about goals and content. Reflect on what was interesting, useful, or relevant; why was this the case? Honest reflective writing often involves revealing concerns and weaknesses, along with strengths and successes. This shows understanding.
@@ -0,0 +1,93 @@
# Reflection
Finding a placement would broaden knowledge outside of purely academia.
# Applying
- Need good CV, applicable CV
- Need Cover Letter
- Interview skills
# Process
On Placement:
- Two Visits from Uni
- Documentation and Presentation
- Weekly Log
- Interim Report
- Final Report
- Presentation at University
- Line Manager Present
# Benefits
- Gives more confidence
- Work experience
- Chances of employment increase
- Chance to meet new people
- Chance for company to gain new passionate employees
# CVs
- Aim to get interview
- Prepare by reflection, and developed knowledge
- Skills audit (Week 3)
- Listing skills and abilities employers want
- Opportunity to demonstrate skill matching requirements
- Marketing tool
- 2 pages max
## Structure
- Name, contact details
- Personal Profile
- Education
- Most recent first
- Don't simply list modules
- Write what was taught, or is taught
- Pre-Salford 2-3 lines
- Action words
- Leading, Organising, etc.
- Short sentences why candidate
- Employment History
- Responsibilities / Interests
- References
- Where key skills?
- Separate section or embedded, but highlighted
- Check spelling -\_-, this is just common sense
# Cover Letter
- Read information supplied by employer, doing own research
## Structure
- Address to named individual, if possible
- State post applying for and where advertised (Re: Software Engineer at BT Group)
- Explain why want job, and why want to work for company - virtue signal pls
- Draw attention to important points in CV
- Explain weak points and what youre doing to address points
- Indicate what you have done that makes you a preferred candidate
# Interview
- First impression
- Dressed, greeting, body language, how questions answered
- Preparation, research company
- Know competitors, products, profitability
- Dress appropriately
- Body Language
- Eye contact, smile
- Use opportunity to sell yourself
- Practice before answering typical questions
- Interviewers are typically interested in
- Teamworking
- Communication
- Leadership Skills
- Problem solving
- Time management
- STAR (Situation Task Action Result)
- If no situation, offer hypothetical
- Have prepared questions
- Take practice interview with Salford Careers
@@ -0,0 +1 @@
This lecture has revealed that we should be reflecting on both our technical and employable skills - Computer Science careers are not purely based on technical ability, but also the ability to converse, communicate, work in teams, etc. University primarily trains technical skills, soft skills must be learned through experience, not just education.
@@ -0,0 +1,23 @@
- Originally stood for "Personal Home Page", and grew to mean PHP: Hypertext Preprocessor.
- PHP is a HTML embedded scripting language
- Since it's inception, PHP has seen exponential growth in use and now powers around 80% of websites
- PHP usually runs on UNIX or LINUX operation systems, but a number of Windows web hosting companies offer emulation on their Windows servers.
![](Pasted%20image%2020240916172110.png)
# Comment Standards for the Module
```@param <type> $variableName description
@return <type> description
@author name <email>
@copyright copyright
@license url licenseName
@version version
@package package
```
# Workshop Exercises
![](Pasted%20image%2020240916172844.png)
![](Pasted%20image%2020240916173130.png)
@@ -0,0 +1,3 @@
- ![](Pasted%20image%2020240919143921.png)
- ![](Pasted%20image%2020240919144005.png)
+8
View File
@@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/workshop1.iml" filepath="$PROJECT_DIR$/.idea/workshop1.iml" />
</modules>
</component>
</project>
+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MessDetectorOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCSFixerOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCodeSnifferOptionsConfiguration">
<option name="highlightLevel" value="WARNING" />
<option name="transferred" value="true" />
</component>
<component name="PhpStanOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PsalmOptionsConfiguration">
<option name="transferred" value="true" />
</component>
</project>
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
@@ -0,0 +1,2 @@
{
}
@@ -0,0 +1,4 @@
<?php
echo "Tomorrow I'll learn PHP global variables";
echo "<br>";
echo "This is a bad command : del c:\*.*";
+8
View File
@@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
@@ -0,0 +1,21 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true">
<option name="myValues">
<value>
<list size="7">
<item index="0" class="java.lang.String" itemvalue="nobr" />
<item index="1" class="java.lang.String" itemvalue="noembed" />
<item index="2" class="java.lang.String" itemvalue="comment" />
<item index="3" class="java.lang.String" itemvalue="noscript" />
<item index="4" class="java.lang.String" itemvalue="embed" />
<item index="5" class="java.lang.String" itemvalue="script" />
<item index="6" class="java.lang.String" itemvalue="head" />
</list>
</value>
</option>
<option name="myCustomValuesEnabled" value="true" />
</inspection_tool>
</profile>
</component>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptLibraryMappings">
<file url="PROJECT" libraries="{@types/bootstrap, bootstrap}" />
</component>
</project>
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/workshop2.iml" filepath="$PROJECT_DIR$/.idea/workshop2.iml" />
</modules>
</component>
</project>
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MessDetectorOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCSFixerOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PHPCodeSnifferOptionsConfiguration">
<option name="highlightLevel" value="WARNING" />
<option name="transferred" value="true" />
</component>
<component name="PhpProjectSharedConfiguration" php_language_level="8.3" />
<component name="PhpStanOptionsConfiguration">
<option name="transferred" value="true" />
</component>
<component name="PsalmOptionsConfiguration">
<option name="transferred" value="true" />
</component>
</project>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="@types/bootstrap" level="application" />
<orderEntry type="library" name="bootstrap" level="application" />
</component>
</module>
@@ -0,0 +1,19 @@
body {
outline: 1px solid black;
padding: 10px;
width: fit-content;
height: fit-content;
}
#main * {
margin-bottom: 15px;
}
#radio {
outline: 1px solid black;
width: fit-content;
}
#radio * {
margin: 5px;
}
@@ -0,0 +1,28 @@
<body>
<head>
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<title>Passing Data</title>
</head>
<p><strong>Please enter your details below:</strong></p>
<form name="form1" method="post" action="passingdata.php">
<div id="main">
<label>First Name:
<input type="text" name="firstname">
</label>
<label>Surname:
<input type="text" name="surname">
</label>
<div id="radio">
<label>CS <input type="radio" name="course" value="CS"/> </label>
<label>SE <input type="radio" name="course" value="SE"/> </label>
<label>MIT <input type="radio" name="course" value="MIT"/> </label>
</div>
<label>Living on Salford Campus<input type="checkbox" name="onCampus"></label>
<br>
<input type="submit" name="Submit" value="Submit"/>
<input type="reset" name="Reset" value="Reset"/>
</div>
</form>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js" integrity="sha384-w1Q4orYjBQndcko6MimVbzY0tgp4pWB4lZ7lr30WKz0vr/aWKhXdBNmNb5D92v7s" crossorigin="anonymous"></script>
</body>
@@ -0,0 +1,20 @@
<body>
<div>
<p><strong>Please enter your name and birthday:</strong></p>
<form name="form1" method="post" action="passingdata.php">
<span>
<label>Your name:
<input type="text" name="name">
</label>
<br>
<label>Your Birthday (in DD/MM/YY format):
<input type="text"
name="birthday" required>
</label>
<br>
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset">
</span>
</form>
</div>
</body>
@@ -0,0 +1,44 @@
<body>
<span>
<?php
$birthday = $_POST['birthday'];
$test_array = explode("/", $birthday);
$firstname = $_POST['firstname'];
$surname = $_POST['surname'];
$course = $_POST['course'];
$onCampus = $_POST['onCampus'];
echo "Hello, $firstname $surname";
echo "<br>";
if (isset($_POST["birthday"])) {
if (count($test_array) == 3) {
if (checkdate($test_array[0], $test_array[1], $test_array[2])) {
if (($test_array[2]-2024)<-100) {
echo "Birthday: $birthday";
echo "<br>";
}
else {
echo "Over 100 years old";
}
}
else {
echo "Birthday in Incorrect Format";
echo "<br>";
}
}
}
echo "Course: $course";
echo "<br>";
echo "On Campus: ";
if (isset($_POST['onCampus'])) {
echo "True";
} else {
echo "False";
}
?>
<br>
<a href="index.html"><button>Return to Form</button></a>
</span>
</body>
Loaded 100 of 190 files, more files were not shown because too many files have changed in this diff. Show more