added first true commit

This commit is contained in:
liph committed 2026-05-07 14:39:10 +02:00
1 parent d8ce45f44a
commit c5605678f0
463 files changed
+175645

No files matched your search

Vendored Executable
+1
View File
@@ -0,0 +1 @@
{}
Vendored Executable
+3
View File
@@ -0,0 +1,3 @@
{
"theme": "obsidian"
}
Vendored Executable
+219
View File
@@ -0,0 +1,219 @@
{
"main": {
"id": "89c1da530c9cca0f",
"type": "split",
"children": [
{
"id": "7c111351862536fa",
"type": "tabs",
"children": [
{
"id": "c7f3b3411e63e695",
"type": "leaf",
"state": {
"type": "empty",
"state": {},
"icon": "lucide-file",
"title": "New tab"
}
}
]
}
],
"direction": "vertical"
},
"left": {
"id": "fa97df5e6a75258c",
"type": "split",
"children": [
{
"id": "f28a1d38f606c12a",
"type": "tabs",
"children": [
{
"id": "509173224919c882",
"type": "leaf",
"state": {
"type": "file-explorer",
"state": {
"sortOrder": "alphabetical",
"autoReveal": false
},
"icon": "lucide-folder-closed",
"title": "Files"
}
},
{
"id": "7478893c6be62592",
"type": "leaf",
"state": {
"type": "search",
"state": {
"query": "",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical"
},
"icon": "lucide-search",
"title": "Search"
}
},
{
"id": "cbbf97d423e3ba11",
"type": "leaf",
"state": {
"type": "bookmarks",
"state": {},
"icon": "lucide-bookmark",
"title": "Bookmarks"
}
}
]
}
],
"direction": "horizontal",
"width": 300
},
"right": {
"id": "d62365a7315d3e75",
"type": "split",
"children": [
{
"id": "d9fcfd78c1d81685",
"type": "tabs",
"children": [
{
"id": "3090773e99198961",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
"showSearch": false,
"searchQuery": "",
"backlinkCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-coming-in",
"title": "Backlinks"
}
},
{
"id": "7b7f7c72400f249a",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"linksCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-going-out",
"title": "Outgoing links"
}
},
{
"id": "edb1b1c96ad244bd",
"type": "leaf",
"state": {
"type": "tag",
"state": {
"sortOrder": "frequency",
"useHierarchy": true,
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-tags",
"title": "Tags"
}
},
{
"id": "4687280933646921",
"type": "leaf",
"state": {
"type": "all-properties",
"state": {
"sortOrder": "frequency",
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-archive",
"title": "All properties"
}
},
{
"id": "7b966b54104a463b",
"type": "leaf",
"state": {
"type": "outline",
"state": {
"followCursor": false,
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-list",
"title": "Outline"
}
}
]
}
],
"direction": "horizontal",
"width": 300,
"collapsed": true
},
"left-ribbon": {
"hiddenItems": {
"switcher:Open quick switcher": false,
"graph:Open graph view": false,
"canvas:Create new canvas": false,
"daily-notes:Open today's daily note": false,
"templates:Insert template": false,
"command-palette:Open command palette": false,
"bases:Create new base": false
}
},
"active": "c7f3b3411e63e695",
"lastOpenFiles": [
"liph/Steuerfrist.md",
"liph/Notes/Daily/2026/05/2026-05-07 Thu.md",
"liph/Notes/Daily/2026/05",
"liph/Notes/Daily/2026",
"liph/Notes/Weekly/2026-19.md",
"liph/Notes/Daily/2026-05-05 Tue.md",
"liph/Notes/Daily/2026-05-06 Wed.md",
"liph/Notes/Daily/2026-05-07 Thu.md",
"liph/Notes/Daily/2026/05/2026-05-07.md",
"liph/Notes/Weekly/2026/05/2026-19.md",
"liph/Notes/Daily/2026/05/2026-05-05 Tue.md",
"liph/Notes/Daily/2026/05/2026-05-06 Wed.md",
"liph/Notes/Weekly/2026/05",
"liph/Notes/Weekly/2026",
"liph/Notes/Weekly",
"liph/Notes/Daily",
"liph/Notes",
"liph/Tasks/_templates/Project.md",
"liph/Tasks/_templates/Meetings.md",
"liph/Tasks/_templates/Daily Notes.md",
"liph/Tasks/_templates/Unique.md",
"liph/Tasks/_templates",
"liph/_templates/Project.md",
"liph/_templates/Daily Notes.md",
"liph/_templates/Meetings.md",
"liph/_templates/Unique.md",
"liph/_templates",
"liph/Tasks/Notes/Daily/2026/05/2026-05-08 Fri.md",
"liph/Orakel/Runenorakel/Musterauswertung_Die_Waage_2025-03-06.md",
"liph/Tasks/Notes/Weekly/2026/05/2026-19.md",
"liph/Tasks/Recurring.md",
"liph/Tasks/Notes/Daily/2026/05/2026-05-06 Wed.md",
"liph/other/spinstack.md",
"liph/Tasks/Areas/Work.md",
"liph/breathwork_facilitator/Hypnosis.md",
"liph/Tasks/Areas/Untitled.base",
"kapano/Attachments/out-of-control.jpg"
]
}
+5
View File
@@ -0,0 +1,5 @@
# This directory is a Syncthing folder marker.
# Do not delete.
folderID: vvbun-lwgmc
created: 2026-05-07T00:38:41+02:00
+218
View File
@@ -0,0 +1,218 @@
{
"main": {
"id": "89c1da530c9cca0f",
"type": "split",
"children": [
{
"id": "7c111351862536fa",
"type": "tabs",
"children": [
{
"id": "c7f3b3411e63e695",
"type": "leaf",
"state": {
"type": "empty",
"state": {},
"icon": "lucide-file",
"title": "New tab"
}
}
]
}
],
"direction": "vertical"
},
"left": {
"id": "fa97df5e6a75258c",
"type": "split",
"children": [
{
"id": "f28a1d38f606c12a",
"type": "tabs",
"children": [
{
"id": "509173224919c882",
"type": "leaf",
"state": {
"type": "file-explorer",
"state": {
"sortOrder": "alphabetical",
"autoReveal": false
},
"icon": "lucide-folder-closed",
"title": "Files"
}
},
{
"id": "7478893c6be62592",
"type": "leaf",
"state": {
"type": "search",
"state": {
"query": "",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical"
},
"icon": "lucide-search",
"title": "Search"
}
},
{
"id": "cbbf97d423e3ba11",
"type": "leaf",
"state": {
"type": "bookmarks",
"state": {},
"icon": "lucide-bookmark",
"title": "Bookmarks"
}
}
]
}
],
"direction": "horizontal",
"width": 300
},
"right": {
"id": "d62365a7315d3e75",
"type": "split",
"children": [
{
"id": "d9fcfd78c1d81685",
"type": "tabs",
"children": [
{
"id": "3090773e99198961",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
"showSearch": false,
"searchQuery": "",
"backlinkCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-coming-in",
"title": "Backlinks"
}
},
{
"id": "7b7f7c72400f249a",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"linksCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-going-out",
"title": "Outgoing links"
}
},
{
"id": "edb1b1c96ad244bd",
"type": "leaf",
"state": {
"type": "tag",
"state": {
"sortOrder": "frequency",
"useHierarchy": true,
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-tags",
"title": "Tags"
}
},
{
"id": "4687280933646921",
"type": "leaf",
"state": {
"type": "all-properties",
"state": {
"sortOrder": "frequency",
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-archive",
"title": "All properties"
}
},
{
"id": "7b966b54104a463b",
"type": "leaf",
"state": {
"type": "outline",
"state": {
"followCursor": false,
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-list",
"title": "Outline"
}
}
]
}
],
"direction": "horizontal",
"width": 300,
"collapsed": true
},
"left-ribbon": {
"hiddenItems": {
"switcher:Open quick switcher": false,
"graph:Open graph view": false,
"canvas:Create new canvas": false,
"daily-notes:Open today's daily note": false,
"templates:Insert template": false,
"command-palette:Open command palette": false,
"bases:Create new base": false
}
},
"active": "c7f3b3411e63e695",
"lastOpenFiles": [
"liph/Notes/Daily/2026/05/2026-05-07 Thu.md",
"liph/Notes/Daily/2026/05",
"liph/Notes/Daily/2026",
"liph/Notes/Weekly/2026-19.md",
"liph/Notes/Daily/2026-05-05 Tue.md",
"liph/Notes/Daily/2026-05-06 Wed.md",
"liph/Notes/Daily/2026-05-07 Thu.md",
"liph/Notes/Daily/2026/05/2026-05-07.md",
"liph/Notes/Weekly/2026/05/2026-19.md",
"liph/Notes/Daily/2026/05/2026-05-05 Tue.md",
"liph/Notes/Daily/2026/05/2026-05-06 Wed.md",
"liph/Notes/Weekly/2026/05",
"liph/Notes/Weekly/2026",
"liph/Notes/Weekly",
"liph/Notes/Daily",
"liph/Notes",
"liph/Tasks/_templates/Project.md",
"liph/Tasks/_templates/Meetings.md",
"liph/Tasks/_templates/Daily Notes.md",
"liph/Tasks/_templates/Unique.md",
"liph/Tasks/_templates",
"liph/_templates/Project.md",
"liph/_templates/Daily Notes.md",
"liph/_templates/Meetings.md",
"liph/_templates/Unique.md",
"liph/_templates",
"liph/Tasks/Notes/Daily/2026/05/2026-05-08 Fri.md",
"liph/Orakel/Runenorakel/Musterauswertung_Die_Waage_2025-03-06.md",
"liph/Tasks/Notes/Weekly/2026/05/2026-19.md",
"liph/Tasks/Recurring.md",
"liph/Tasks/Notes/Daily/2026/05/2026-05-06 Wed.md",
"liph/other/spinstack.md",
"liph/Tasks/Areas/Work.md",
"liph/breathwork_facilitator/Hypnosis.md",
"liph/Tasks/Areas/Untitled.base",
"kapano/Attachments/out-of-control.jpg"
]
}
+3
View File
@@ -0,0 +1,3 @@
{
"promptDelete": false
}
+3
View File
@@ -0,0 +1,3 @@
{
"cssTheme": "Obsidian gruvbox"
}
+63
View File
@@ -0,0 +1,63 @@
{
"items": [
{
"type": "file",
"ctime": 1777974789162,
"path": "Tasks/_utilities/Deadlines.md"
},
{
"type": "file",
"ctime": 1777905922547,
"path": "Tasks/_utilities/Inbox.md"
},
{
"type": "file",
"ctime": 1777905931015,
"path": "Tasks/_utilities/Today.md"
},
{
"type": "file",
"ctime": 1777905937741,
"path": "Tasks/_utilities/Upcomming.md"
},
{
"type": "file",
"ctime": 1777905888929,
"path": "Tasks/_utilities/Someday.md",
"title": "Someday"
},
{
"type": "file",
"ctime": 1777905910833,
"path": "Tasks/_utilities/Anytime.md",
"title": ""
},
{
"type": "group",
"ctime": 1777906209906,
"items": [
{
"type": "file",
"ctime": 1777906185922,
"path": "Tasks/Areas/Camper.md"
},
{
"type": "file",
"ctime": 1777906192941,
"path": "Tasks/Areas/Personal.md"
},
{
"type": "file",
"ctime": 1777906199734,
"path": "Tasks/Areas/Someday.md"
},
{
"type": "file",
"ctime": 1777906207015,
"path": "Tasks/Areas/Work.md"
}
],
"title": "Areas"
}
]
}
+9
View File
@@ -0,0 +1,9 @@
[
"obsidian-tasks-plugin",
"obsidian-day-planner",
"dataview",
"calendar",
"colored-tags",
"tag-wrangler",
"omnisearch"
]
+33
View File
@@ -0,0 +1,33 @@
{
"file-explorer": true,
"global-search": true,
"switcher": true,
"graph": true,
"backlink": true,
"canvas": true,
"outgoing-link": true,
"tag-pane": true,
"footnotes": false,
"properties": true,
"page-preview": true,
"daily-notes": true,
"templates": true,
"note-composer": true,
"command-palette": true,
"slash-command": false,
"editor-status": true,
"bookmarks": true,
"markdown-importer": false,
"zk-prefixer": true,
"random-note": false,
"outline": true,
"word-count": true,
"slides": false,
"audio-recorder": false,
"workspaces": false,
"file-recovery": true,
"publish": false,
"sync": true,
"bases": true,
"webviewer": false
}
+5
View File
@@ -0,0 +1,5 @@
{
"format": "YYYY/MM/YYYY-MM-DD ddd",
"template": "_templates/Daily Notes",
"folder": "Tasks/Notes/Daily"
}
+22
View File
@@ -0,0 +1,22 @@
{
"collapse-filter": true,
"search": "",
"showTags": false,
"showAttachments": false,
"hideUnresolved": false,
"showOrphans": true,
"collapse-color-groups": true,
"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
}
+56
View File
@@ -0,0 +1,56 @@
{
"omnisearch:show-modal": [
{
"modifiers": [
"Mod"
],
"key": "O"
}
],
"switcher:open": [],
"insert-template": [
{
"modifiers": [
"Mod",
"Meta"
],
"key": "T"
}
],
"daily-notes": [
{
"modifiers": [
"Mod",
"Meta"
],
"key": "D"
}
],
"editor:insert-wikilink": [
{
"modifiers": [
"Mod",
"Meta"
],
"key": "I"
}
],
"zk-prefixer": [
{
"modifiers": [
"Mod",
"Meta"
],
"key": "N"
}
],
"editor:insert-codeblock": [
{
"modifiers": [
"Mod",
"Shift"
],
"key": "C"
}
]
}
+10
View File
@@ -0,0 +1,10 @@
{
"shouldConfirmBeforeCreate": true,
"weekStart": "monday",
"wordsPerDot": 250,
"showWeeklyNote": true,
"weeklyNoteFormat": "YYYY/MM/YYYY-WW",
"weeklyNoteTemplate": "",
"weeklyNoteFolder": "Tasks/Notes/Weekly/",
"localeOverride": "system-default"
}
File diff suppressed because it is too large. Load diff
+10
View File
@@ -0,0 +1,10 @@
{
"id": "calendar",
"name": "Calendar",
"description": "Calendar view of your daily notes",
"version": "1.5.10",
"author": "Liam Cain",
"authorUrl": "https://github.com/liamcain/",
"isDesktopOnly": false,
"minAppVersion": "0.9.11"
}
+33
View File
@@ -0,0 +1,33 @@
{
"palette": {
"seed": 0,
"selected": "adaptive-soft",
"custom": "e12729-f37324-f8cc1b-72b043-007f4e"
},
"mixColors": true,
"transition": true,
"accessibility": {
"highTextContrast": false
},
"knownTags": {
"anette": 5,
"camper": 2,
"daily": 12,
"diemaske": 6,
"finance": 10,
"legung": 7,
"meetings": 13,
"note": 9,
"notes": 15,
"personal": 11,
"project": 14,
"runenorakel": 8
},
"tagColors": {
"breath": 1,
"camper": 0,
"finance": 2,
"personal": 4
},
"_version": 4
}
File diff suppressed because it is too large. Load diff
+10
View File
@@ -0,0 +1,10 @@
{
"id": "colored-tags",
"name": "Colored Tags",
"version": "6.1.2",
"minAppVersion": "0.15.0",
"description": "Colorizes tags in different colors. Colors of nested tags are mixed with the root tag to improve readability. Text color contrast is automatically matched to comply with AA level of WCAG 2.1.",
"author": "Pavel Frankov",
"authorUrl": "https://github.com/pfrankov",
"isDesktopOnly": false
}
+196
View File
@@ -0,0 +1,196 @@
/* src/styles.css */
.colored-tags-settings .tagsExample {
display: flex;
gap: 0.5em;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
margin: 1em 0 2em;
}
.colored-tags-settings .palette {
display: flex;
align-items: stretch;
border-radius: var(--radius-m);
overflow: hidden;
}
.colored-tags-settings .visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.colored-tags-settings .community-palettes {
display: block;
}
.colored-tags-settings .community-palettes > *:first-child {
margin-inline-end: 0;
}
.colored-tags-settings .community-palettes__scroll {
margin-top: var(--size-4-3);
max-height: 400px;
overflow-y: auto;
padding: var(--size-4-3);
}
.colored-tags-settings .community-palettes__grid {
display: grid;
gap: var(--size-4-4);
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.colored-tags-settings .community-palettes__status {
color: var(--text-faint);
padding: var(--size-4-3);
border-radius: var(--radius-m);
background-color: var(--background-primary);
border: var(--border-width) solid var(--background-modifier-border);
}
.colored-tags-settings .community-palette-card {
display: flex;
flex-direction: column;
gap: var(--size-4-2);
padding: var(--size-4-3);
border-radius: var(--radius-m);
position: relative;
background-color: var(--dropdown-background);
box-shadow: var(--input-shadow);
cursor: pointer;
transition: all 120ms ease-in-out;
}
.colored-tags-settings .community-palette-card.is-selected {
box-shadow: 0 0 0 2px var(--interactive-accent), var(--input-shadow);
cursor: auto;
}
.colored-tags-settings .community-palette-card.is-selected::after {
content: "\2713";
position: absolute;
top: var(--size-4-2);
right: var(--size-4-2);
width: var(--size-4-4);
height: var(--size-4-4);
border-radius: var(--radius-round, 999px);
background-color: var(--interactive-accent);
color: var(--text-on-accent, var(--background-primary));
display: flex;
align-items: center;
justify-content: center;
font-weight: var(--font-semibold, 600);
}
.colored-tags-settings .community-palette-card:hover {
background-color: var(--dropdown-background-hover);
box-shadow: var(--input-shadow-hover);
}
.colored-tags-settings .community-palette-card.is-selected:hover {
box-shadow: 0 0 0 2px var(--interactive-accent), var(--input-shadow);
}
.colored-tags-settings .community-palette-card:focus-visible {
outline: var(--border-width) solid var(--interactive-accent);
outline-offset: var(--outline-offset);
box-shadow: 0 0 0 3px var(--background-modifier-border-focus);
}
.colored-tags-settings .community-palette-card__preview {
display: flex;
overflow: hidden;
border-radius: var(--radius-m);
height: var(--input-height);
}
.colored-tags-settings .community-palette-card__meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--size-4-2);
min-height: var(--line-height-tight);
}
.colored-tags-settings .community-palette-card__author {
font-family: var(--font-monospace);
color: var(--text-muted);
}
.colored-tags-settings .community-palette-card.is-selected .community-palette-card__author {
font-weight: var(--font-semibold, 600);
}
.colored-tags-settings .community-palette-card__upvotes {
color: var(--text-muted);
font-size: var(--font-ui-smaller);
font-weight: var(--font-medium);
}
.colored-tags-settings .tag-color-setting-item {
flex-direction: column;
align-items: stretch;
gap: var(--size-4-2);
}
.colored-tags-settings .tag-color-setting-item .setting-item-control {
width: 100%;
}
.colored-tags-settings .tag-color-setting {
display: flex;
flex-direction: column;
gap: var(--size-4-2);
width: 100%;
}
.colored-tags-settings .tag-color-setting__row {
display: grid;
grid-template-columns: auto 1fr;
gap: var(--size-4-3);
align-items: start;
}
.colored-tags-settings .tag-color-setting__input input[type=text] {
width: 220px;
font-weight: var(--font-normal, 400);
}
.theme-light .colored-tags-settings .tag-color-setting__input input[type=text] {
color-scheme: light;
background-color: var(--background-primary);
color: var(--text-normal);
}
.colored-tags-settings .tag-color-setting__palette {
display: flex;
flex-wrap: wrap;
gap: var(--size-2-2);
}
.colored-tags-settings .tag-color-setting__swatch {
width: 32px;
height: 32px;
border-radius: var(--radius-s);
cursor: pointer;
}
.colored-tags-settings .tag-color-setting__swatch:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.colored-tags-settings .tag-color-setting__swatch.is-selected {
box-shadow: 0 0 0 3px var(--interactive-accent);
}
.colored-tags-settings .tag-color-setting__chips {
display: flex;
flex-wrap: wrap;
gap: var(--size-2-2);
margin-top: var(--size-2-3);
}
.colored-tags-settings .tag-color-setting__chip {
position: relative;
display: inline-flex;
align-items: center;
gap: var(--size-2-1);
text-decoration: none;
}
.colored-tags-settings .tag-color-setting__chip-remove {
background: none;
border: none;
color: var(--text-faint);
width: 18px;
height: 18px;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: none;
font-size: var(--font-ui-smaller);
margin-left: -6px;
}
.colored-tags-settings .tag-color-setting__empty {
color: var(--text-faint);
font-style: italic;
}
+20876
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.68",
"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
}
+141
View File
@@ -0,0 +1,141 @@
.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(--nav-item-color-selected);
}
.dataview.inline-field-value {
padding-left: 8px;
padding-right: 8px;
font-family: var(--font-monospace);
background-color: var(--background-secondary-alt);
color: var(--nav-item-color-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(--nav-item-color-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: ")";
}
+535
View File
@@ -0,0 +1,535 @@
{
"lastVersion": "4.0.8",
"aestheticStyle": "default",
"positionStyle": "top",
"menuCommands": [
{
"id": "editing-toolbar:editor-undo",
"name": "Undo Edit",
"icon": "undo-glyph"
},
{
"id": "editing-toolbar:editor-redo",
"name": "Redo Edit",
"icon": "redo-glyph"
},
{
"id": "editing-toolbar:toggle-format-brush",
"name": "Format Brush",
"icon": "paintbrush"
},
{
"id": "editing-toolbar:format-eraser",
"name": "Clear Text Formatting",
"icon": "eraser"
},
{
"id": "editing-toolbar:header2-text",
"name": "Header 2",
"icon": "header-2"
},
{
"id": "editing-toolbar:header3-text",
"name": "Header 3",
"icon": "header-3"
},
{
"id": "SubmenuCommands-header",
"name": "submenu",
"icon": "header-n",
"SubmenuCommands": [
{
"id": "editing-toolbar:header1-text",
"name": "Header 1",
"icon": "header-1"
},
{
"id": "editing-toolbar:header4-text",
"name": "Header 4",
"icon": "header-4"
},
{
"id": "editing-toolbar:header5-text",
"name": "Header 5",
"icon": "header-5"
},
{
"id": "editing-toolbar:header6-text",
"name": "Header 6",
"icon": "header-6"
}
]
},
{
"id": "editing-toolbar:toggle-bold",
"name": "Bold",
"icon": "bold-glyph"
},
{
"id": "editing-toolbar:toggle-italics",
"name": "Italic",
"icon": "italic-glyph"
},
{
"id": "editing-toolbar:toggle-strikethrough",
"name": "Strikethrough",
"icon": "strikethrough-glyph"
},
{
"id": "editing-toolbar:underline",
"name": "Underline",
"icon": "underline-glyph"
},
{
"id": "editing-toolbar:toggle-highlight",
"name": "Highlight",
"icon": "highlight-glyph"
},
{
"id": "SubmenuCommands-text-tools",
"name": "Text Tools",
"icon": "box",
"menuType": "dropdown",
"SubmenuCommands": [
{
"id": "editing-toolbar:get-plain-text",
"name": "Get Plain Text",
"icon": "lucide-file-text"
},
{
"id": "editing-toolbar:smart-symbols",
"name": "Full Half Converter",
"icon": "lucide-at-sign"
},
{
"id": "editingToolbar-Divider-Line",
"name": "Line Operations",
"icon": "vertical-split"
},
{
"id": "editing-toolbar:insert-blank-lines",
"name": "Insert Blank Lines",
"icon": "lucide-space"
},
{
"id": "editing-toolbar:remove-blank-lines",
"name": "Remove Blank Lines",
"icon": "lucide-minimize-2"
},
{
"id": "editing-toolbar:split-lines",
"name": "Split Lines",
"icon": "lucide-split"
},
{
"id": "editing-toolbar:merge-lines",
"name": "Merge Lines",
"icon": "lucide-merge"
},
{
"id": "editing-toolbar:dedupe-lines",
"name": "Dedupe Lines",
"icon": "lucide-filter"
},
{
"id": "editingToolbar-Divider-Line",
"name": "Text Processing",
"icon": "vertical-split"
},
{
"id": "editing-toolbar:add-wrap",
"name": "Add Prefix/Suffix",
"icon": "lucide-wrap-text"
},
{
"id": "editing-toolbar:number-lines",
"name": "Number Lines (Custom)",
"icon": "lucide-list-ordered"
},
{
"id": "editing-toolbar:remove-whitespace-trim",
"name": "Trim Line Ends",
"icon": "lucide-scissors"
},
{
"id": "editing-toolbar:remove-whitespace-compress",
"name": "Shrink Extra Spaces",
"icon": "lucide-minimize"
},
{
"id": "editing-toolbar:remove-whitespace-all",
"name": "Remove All Whitespace",
"icon": "lucide-eraser"
},
{
"id": "editingToolbar-Divider-Line",
"name": "Advanced Tools",
"icon": "vertical-split"
},
{
"id": "editing-toolbar:list-to-table",
"name": "List to Table",
"icon": "lucide-table"
},
{
"id": "editing-toolbar:table-to-list",
"name": "Table to List",
"icon": "lucide-list"
},
{
"id": "editing-toolbar:extract-between",
"name": "Extract Between Strings",
"icon": "lucide-brackets"
}
]
},
{
"id": "SubmenuCommands-lucdf3en5",
"name": "submenu",
"icon": "edit",
"SubmenuCommands": [
{
"id": "editing-toolbar:editor-cut",
"name": "Cut",
"icon": "lucide-scissors"
},
{
"id": "editing-toolbar:editor-copy",
"name": "Copy",
"icon": "lucide-copy"
},
{
"id": "editing-toolbar:editor-paste",
"name": "Paste",
"icon": "lucide-clipboard-type"
},
{
"id": "editing-toolbar:editor:swap-line-down",
"name": "Swap Line Down",
"icon": "lucide-corner-right-down"
},
{
"id": "editing-toolbar:editor:swap-line-up",
"name": "Swap Line Up",
"icon": "lucide-corner-right-up"
}
]
},
{
"id": "editing-toolbar:editor:attach-file",
"name": "Attach File",
"icon": "lucide-paperclip"
},
{
"id": "editing-toolbar:editor:insert-table",
"name": "Insert Table",
"icon": "lucide-table"
},
{
"id": "editing-toolbar:editor:cycle-list-checklist",
"name": "Cycle List and Checklist",
"icon": "check-circle"
},
{
"id": "SubmenuCommands-luc8efull",
"name": "submenu",
"icon": "message-square",
"SubmenuCommands": [
{
"id": "editing-toolbar:editor:toggle-blockquote",
"name": "Blockquote",
"icon": "lucide-text-quote"
},
{
"id": "editing-toolbar:insert-callout",
"name": "Callout",
"icon": "lucide-quote"
}
]
},
{
"id": "SubmenuCommands-mdcmder",
"name": "submenu",
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M464 608 l0 -568 q0 -3 -2.5 -5.5 q-2.5 -2.5 -5.5 -2.5 l-80 0 q-3 0 -5.5 2.5 q-2.5 2.5 -2.5 5.5 l0 568 l-232 0 q-3 0 -5.5 2.5 q-2.5 2.5 -2.5 5.5 l0 80 q0 3 2.5 5.5 q2.5 2.5 5.5 2.5 l560 0 q3 0 5.5 -2.5 q2.5 -2.5 2.5 -5.5 l0 -80 q0 -3 -2.5 -5.5 q-2.5 -2.5 -5.5 -2.5 l-232 0 ZM864 696 q17 0 28.5 11.5 q11.5 11.5 11.5 28.5 q0 17 -11.5 28.5 q-11.5 11.5 -28.5 11.5 q-17 0 -28.5 -11.5 q-11.5 -11.5 -11.5 -28.5 q0 -17 11.5 -28.5 q11.5 -11.5 28.5 -11.5 ZM864 640 q-40 0 -68 28 q-28 28 -28 68 q0 40 28 68 q28 28 68 28 q40 0 68 -28 q28 -28 28 -68 q0 -40 -28 -68 q-28 -28 -68 -28 ZM576 322 l0 -63 q0 -3 2 -5 l89 -70 l-89 -70 q-2 -2 -2 -5 l0 -63 q0 -4 3.5 -5.5 q3.5 -1.5 6.5 0.5 l170 133 q4 3 4.5 8.5 q0.5 5.5 -2.5 9.5 l-2 2 l-170 133 q-3 2 -6.5 0.5 q-3.5 -1.5 -3.5 -5.5 ZM256 322 l0 -63 q0 -3 -2 -5 l-89 -70 l89 -70 q2 -2 2 -5 l0 -63 q0 -4 -3.5 -5.5 q-3.5 -1.5 -6.5 0.5 l-170 133 q-4 3 -4.5 8.5 q-0.5 5.5 2.5 9.5 l2 2 l170 133 q3 2 6.5 0.5 q3.5 -1.5 3.5 -5.5 Z\"></path></g></svg>",
"SubmenuCommands": [
{
"id": "editing-toolbar:superscript",
"name": "Superscript",
"icon": "superscript-glyph"
},
{
"id": "editing-toolbar:subscript",
"name": "Subscript",
"icon": "subscript-glyph"
},
{
"id": "editing-toolbar:editor:toggle-code",
"name": "Inline Code",
"icon": "code-glyph"
},
{
"id": "editing-toolbar:codeblock",
"name": "Code Block",
"icon": "codeblock-glyph"
},
{
"id": "editing-toolbar:editor:insert-wikilink",
"name": "Wikilink",
"icon": "<svg width=\"15\" height=\"15\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M306 134 l91 0 q1 0 1 -8 l0 -80 q0 -8 -1 -8 l-91 0 q-1 0 -1 7 q0 -8 -5 -8 l-45 0 q-5 0 -5 8 l0 784 q0 8 5 8 l45 0 q5 0 5 -8 q0 8 1 8 l91 0 q1 0 1 -8 l0 -80 q0 -8 -1 -8 l-91 0 q-1 0 -1 8 l0 -623 q0 8 1 8 ZM139 134 l91 0 q1 0 1 -8 l0 -80 q0 -8 -1 -8 l-91 0 q-1 0 -1 7 q0 -8 -5 -8 l-45 0 q-5 0 -5 8 l0 784 q0 8 5 8 l45 0 q5 0 5 -8 q0 8 1 8 l91 0 q1 0 1 -8 l0 -80 q0 -8 -1 -8 l-91 0 q-1 0 -1 8 l0 -623 q0 8 1 8 ZM711 134 q1 0 1 -8 l0 623 q0 -8 -1 -8 l-91 0 q-1 0 -1 8 l0 80 q0 8 1 8 l91 0 q1 0 1 -8 q0 8 4 8 l46 0 q4 0 4 -8 l0 -784 q0 -8 -4 -8 l-46 0 q-4 0 -4 8 q0 -7 -1 -7 l-91 0 q-1 0 -1 8 l0 80 q0 8 1 8 l91 0 ZM878 134 q1 0 1 -8 l0 623 q0 -8 -1 -8 l-91 0 q-1 0 -1 8 l0 80 q0 8 1 8 l91 0 q1 0 1 -8 q0 8 5 8 l45 0 q4 0 4 -8 l0 -784 q0 -8 -4 -8 l-45 0 q-5 0 -5 8 q0 -7 -1 -7 l-91 0 q-1 0 -1 8 l0 80 q0 8 1 8 l91 0 Z\"></path></g></svg>"
},
{
"id": "editing-toolbar:editor:insert-embed",
"name": "Embed",
"icon": "note-glyph"
},
{
"id": "editing-toolbar:insert-link",
"name": "Link",
"icon": "link-glyph"
},
{
"id": "editing-toolbar:hrline",
"name": "Horizontal Divider",
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M912 424 l0 -80 q0 -3 -2.5 -5.5 q-2.5 -2.5 -5.5 -2.5 l-784 0 q-3 0 -5.5 2.5 q-2.5 2.5 -2.5 5.5 l0 80 q0 3 2.5 5.5 q2.5 2.5 5.5 2.5 l784 0 q3 0 5.5 -2.5 q2.5 -2.5 2.5 -5.5 Z\"></path></g></svg>"
},
{
"id": "editing-toolbar:toggle-inline-math",
"name": "Inline Math",
"icon": "lucide-sigma"
},
{
"id": "editing-toolbar:editor:insert-mathblock",
"name": "MathBlock",
"icon": "lucide-sigma-square"
}
]
},
{
"id": "SubmenuCommands-list",
"name": "submenu-list",
"icon": "bullet-list-glyph",
"SubmenuCommands": [
{
"id": "editing-toolbar:editor:toggle-checklist-status",
"name": "Checklist",
"icon": "checkbox-glyph"
},
{
"id": "editing-toolbar:renumber-ordered-list",
"name": "Renumber Ordered List",
"icon": "list-restart"
},
{
"id": "editing-toolbar:toggle-numbered-list",
"name": "Ordered List",
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M860 424 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-457 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l457 0 ZM860 756 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-457 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l457 0 ZM860 92 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-457 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l457 0 ZM264 136 l-3 -3 l-51 -57 l56 0 q14 0 24.5 -10 q10.5 -10 11.5 -25 l0 -1 q0 -15 -10.5 -25.5 q-10.5 -10.5 -24.5 -10.5 l-137 0 q-15 0 -25 10 q-10 10 -11 24.5 q-1 14.5 9 25.5 l63 70 l49 54 q7 7 7 16.5 q0 9.5 -7.5 16.5 q-7.5 7 -18.5 7 q-11 0 -18.5 -6.5 q-7.5 -6.5 -8.5 -16.5 l0 0 q0 -15 -10.5 -25.5 q-10.5 -10.5 -25.5 -10.5 q-15 0 -25.5 10.5 q-10.5 10.5 -10.5 25.5 q0 26 13.5 47.5 q13.5 21.5 36 34.5 q22.5 13 49 13 q26.5 0 49.5 -13 q23 -13 36 -34.5 q13 -21.5 13 -47.5 q0 -20 -7.5 -37.5 q-7.5 -17.5 -21.5 -30.5 l-1 -1 ZM173 794 q11 11 25 10.5 q14 -0.5 24.5 -10.5 q10.5 -10 10.5 -25 l0 -293 q0 -15 -10 -25.5 q-10 -10.5 -25 -10.5 q-15 0 -25.5 10 q-10.5 10 -11.5 25 l0 211 q-10 -8 -23.5 -7 q-13.5 1 -22.5 11 l-1 0 q-10 11 -9.5 25.5 q0.5 14.5 10.5 24.5 l58 54 Z\"></path></g></svg>"
},
{
"id": "editing-toolbar:toggle-bullet-list",
"name": "Unordered List",
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M860 424 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-477 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l477 0 ZM860 756 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-477 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l477 0 ZM860 92 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-477 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l477 0 ZM176 716 l0 0 ZM112 716 q0 -27 18.5 -45.5 q18.5 -18.5 45.5 -18.5 q27 0 45.5 18.5 q18.5 18.5 18.5 45.5 q0 27 -18.5 45.5 q-18.5 18.5 -45.5 18.5 q-27 0 -45.5 -18.5 q-18.5 -18.5 -18.5 -45.5 ZM176 384 l0 0 ZM112 384 q0 -27 18.5 -45.5 q18.5 -18.5 45.5 -18.5 q27 0 45.5 18.5 q18.5 18.5 18.5 45.5 q0 27 -18.5 45.5 q-18.5 18.5 -45.5 18.5 q-27 0 -45.5 -18.5 q-18.5 -18.5 -18.5 -45.5 ZM176 52 l0 0 ZM112 52 q0 -27 18.5 -45.5 q18.5 -18.5 45.5 -18.5 q27 0 45.5 18.5 q18.5 18.5 18.5 45.5 q0 27 -18.5 45.5 q-18.5 18.5 -45.5 18.5 q-27 0 -45.5 -18.5 q-18.5 -18.5 -18.5 -45.5 Z\"></path></g></svg>"
},
{
"id": "editing-toolbar:undent-list",
"name": "Unindent List",
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M872 302 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-429 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l429 0 ZM872 542 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-429 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l429 0 ZM872 784 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 ZM872 62 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 ZM244 534 l-123 -122 q-8 -7 -8 -18 q0 -11 8 -18 l123 -122 q8 -7 19 -7 q11 0 18.5 7.5 q7.5 7.5 7.5 18.5 l0 242 q0 11 -7.5 18.5 q-7.5 7.5 -18.5 7.5 q-11 0 -19 -7 Z\"></path></g></svg>"
},
{
"id": "editing-toolbar:indent-list",
"name": "Indent list",
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M872 302 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-429 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l429 0 ZM872 542 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-429 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l429 0 ZM872 784 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 ZM872 62 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 ZM158 534 l124 -122 q7 -7 7 -18 q0 -11 -7 -18 l-124 -122 q-7 -7 -18 -7 q-11 0 -19 7.5 q-8 7.5 -8 18.5 l0 242 q0 11 8 18.5 q8 7.5 19 7.5 q11 0 18 -7 Z\"></path></g></svg>"
}
]
},
{
"id": "SubmenuCommands-aligin",
"name": "submenu-aligin",
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M724 304 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-421 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l421 0 ZM872 540 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 ZM724 776 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-421 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l421 0 ZM872 68 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 Z\"></path></g></svg>",
"SubmenuCommands": [
{
"id": "editing-toolbar:justify",
"name": "Justify Text",
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M112 736 l0 0 ZM120 736 l784 0 q8 0 8 -8 l0 -80 q0 -8 -8 -8 l-784 0 q-8 0 -8 8 l0 80 q0 8 8 8 ZM112 331 l0 0 ZM120 331 l784 0 q8 0 8 -8 l0 -80 q0 -8 -8 -8 l-784 0 q-8 0 -8 8 l0 80 q0 8 8 8 ZM112 128 l0 0 ZM120 128 l784 0 q8 0 8 -8 l0 -80 q0 -8 -8 -8 l-784 0 q-8 0 -8 8 l0 80 q0 8 8 8 ZM112 533 l0 0 ZM120 533 l784 0 q8 0 8 -8 l0 -80 q0 -8 -8 -8 l-784 0 q-8 0 -8 8 l0 80 q0 8 8 8 Z\"></path></g></svg>"
},
{
"id": "editing-toolbar:left",
"name": "Align Text Left",
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M572 304 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-421 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l421 0 ZM872 540 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 ZM572 776 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-421 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l421 0 ZM872 68 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 Z\"></path></g></svg>"
},
{
"id": "editing-toolbar:center",
"name": "Center Text",
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M724 304 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-421 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l421 0 ZM872 540 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 ZM724 776 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-421 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l421 0 ZM872 68 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 Z\"></path></g></svg>"
},
{
"id": "editing-toolbar:right",
"name": "Align Text Right",
"icon": "<svg width=\"18\" height=\"18\" focusable=\"false\" fill=\"currentColor\" viewBox=\"0 0 1024 1024\"><g transform=\"scale(1, -1) translate(0, -896) scale(0.9, 0.9) \"><path class=\"path\" d=\"M872 304 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-421 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l421 0 ZM872 540 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 ZM872 776 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-421 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l421 0 ZM872 68 q17 0 28.5 -11.5 q11.5 -11.5 11.5 -28 q0 -16.5 -11.5 -28.5 q-11.5 -12 -27.5 -12 l-721 0 q-17 0 -28.5 11.5 q-11.5 11.5 -11.5 28 q0 16.5 11.5 28.5 q11.5 12 27.5 12 l721 0 Z\"></path></g></svg>"
}
]
},
{
"id": "editing-toolbar:change-font-color",
"name": "Change Font Color",
"icon": "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" focusable=\"false\" fill=\"currentColor\"><g fill-rule=\"evenodd\"><path id=\"change-font-color-icon\" d=\"M3 18h18v3H3z\" style=\"fill:#2DC26B\"></path><path d=\"M8.7 16h-.8a.5.5 0 01-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 01-.5.6h-.8a.5.5 0 01-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 00.5.6h1.6a.5.5 0 00.5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z\"></path></g></svg>"
},
{
"id": "editing-toolbar:change-background-color",
"name": "Change Background Color",
"icon": "<svg width=\"18\" height=\"24\" viewBox=\"0 0 256 256\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><g stroke=\"none\" stroke-width=\"1\" fill=\"currentColor\" fill-rule=\"evenodd\"><g ><g fill=\"currentColor\"><g transform=\"translate(119.502295, 137.878331) rotate(-135.000000) translate(-119.502295, -137.878331) translate(48.002295, 31.757731)\" ><path d=\"M100.946943,60.8084699 L43.7469427,60.8084699 C37.2852111,60.8084699 32.0469427,66.0467383 32.0469427,72.5084699 L32.0469427,118.70847 C32.0469427,125.170201 37.2852111,130.40847 43.7469427,130.40847 L100.946943,130.40847 C107.408674,130.40847 112.646943,125.170201 112.646943,118.70847 L112.646943,72.5084699 C112.646943,66.0467383 107.408674,60.8084699 100.946943,60.8084699 Z M93.646,79.808 L93.646,111.408 L51.046,111.408 L51.046,79.808 L93.646,79.808 Z\" fill-rule=\"nonzero\"></path><path d=\"M87.9366521,16.90916 L87.9194966,68.2000001 C87.9183543,69.4147389 86.9334998,70.399264 85.7187607,70.4 L56.9423078,70.4 C55.7272813,70.4 54.7423078,69.4150264 54.7423078,68.2 L54.7423078,39.4621057 C54.7423078,37.2523513 55.5736632,35.1234748 57.0711706,33.4985176 L76.4832996,12.4342613 C78.9534987,9.75382857 83.1289108,9.5834005 85.8093436,12.0535996 C87.1658473,13.303709 87.9372691,15.0644715 87.9366521,16.90916 Z\" fill-rule=\"evenodd\"></path><path d=\"M131.3,111.241199 L11.7,111.241199 C5.23826843,111.241199 0,116.479467 0,122.941199 L0,200.541199 C0,207.002931 5.23826843,212.241199 11.7,212.241199 L131.3,212.241199 C137.761732,212.241199 143,207.002931 143,200.541199 L143,122.941199 C143,116.479467 137.761732,111.241199 131.3,111.241199 Z M124,130.241 L124,193.241 L19,193.241 L19,130.241 L124,130.241 Z\" fill-rule=\"nonzero\"></path></g></g><path d=\"M51,218 L205,218 C211.075132,218 216,222.924868 216,229 C216,235.075132 211.075132,240 205,240 L51,240 C44.9248678,240 40,235.075132 40,229 C40,222.924868 44.9248678,218 51,218 Z\" id=\"change-background-color-icon\" style=\"fill:#FA541C\"></path></g></g></svg>"
},
{
"id": "editing-toolbar:fullscreen-focus",
"name": "Fullscreen Focus Mode",
"icon": "fullscreen"
},
{
"id": "editing-toolbar:workplace-fullscreen-focus",
"name": "Workplace Fullscreen",
"icon": "exit-fullscreen"
}
],
"followingCommands": [],
"topCommands": [],
"fixedCommands": [],
"mobileCommands": [],
"enableMultipleConfig": false,
"enableTopToolbar": true,
"enableFollowingToolbar": false,
"enableFixedToolbar": false,
"appendMethod": "workspace",
"shouldShowMenuOnSelect": false,
"cMenuVisibility": true,
"cMenuBottomValue": 4.25,
"cMenuNumRows": 12,
"cMenuWidth": 610,
"cMenuFontColor": "#2DC26B",
"cMenuBackgroundColor": "#d3f8b6",
"autohide": false,
"Iscentered": false,
"custom_bg1": "#FFB78B8C",
"custom_bg2": "#CDF4698C",
"custom_bg3": "#A0CCF68C",
"custom_bg4": "#F0A7D88C",
"custom_bg5": "#ADEFEF8C",
"custom_fc1": "#D83931",
"custom_fc2": "#DE7802",
"custom_fc3": "#245BDB",
"custom_fc4": "#6425D0",
"custom_fc5": "#646A73",
"isLoadOnMobile": false,
"horizontalPosition": 0,
"verticalPosition": 0,
"formatBrushes": {},
"customCommands": [],
"viewTypeSettings": {},
"appearanceByStyle": {
"top": {
"toolbarBackgroundColor": "rgba(var(--background-secondary-rgb), 0.7)",
"toolbarIconColor": "var(--text-normal)",
"toolbarIconSize": 18,
"aestheticStyle": "default"
},
"following": {
"toolbarBackgroundColor": "rgba(var(--background-secondary-rgb), 0.7)",
"toolbarIconColor": "var(--text-normal)",
"toolbarIconSize": 18,
"aestheticStyle": "default"
},
"fixed": {
"toolbarBackgroundColor": "rgba(var(--background-secondary-rgb), 0.7)",
"toolbarIconColor": "var(--text-normal)",
"toolbarIconSize": 18,
"aestheticStyle": "default"
},
"mobile": {
"toolbarBackgroundColor": "rgba(var(--background-secondary-rgb), 0.7)",
"toolbarIconColor": "var(--text-normal)",
"toolbarIconSize": 18,
"aestheticStyle": "default"
}
},
"toolbarBackgroundColor": "rgba(var(--background-secondary-rgb), 0.7)",
"toolbarIconColor": "var(--text-normal)",
"toolbarIconSize": 18,
"useCurrentLineForRegex": false,
"ai": {
"enabled": false,
"consentAccepted": false,
"onboardingShown": true,
"providerMode": "pkmer-first",
"enableInlineCompletion": true,
"inlineCompletionHintLearned": false,
"completionTrigger": "manual",
"completionDelay": 500,
"enableRewrite": true,
"showRewriteToolbarOnSelection": false,
"rewriteMinSelectionLength": 1,
"pkmerApiBaseUrl": "https://newapi.pkmer.cn",
"pkmerModel": "04-fast",
"pkmerModelRouting": {
"mode": "smart",
"completion": "04-fast",
"rewrite": "04-fast",
"reasoning": "03-agent",
"artifact": "03-agent"
},
"pkmer": {
"tokenExpiresAt": 0,
"userInfo": null
},
"enableCustomModel": false,
"customModel": {
"apiFormat": "openai-compatible",
"baseUrl": "",
"apiKey": "",
"model": "",
"temperature": 0.2
},
"customPromptHistory": [],
"customPromptTemplates": [
{
"id": "template-demo-variables",
"name": "📝 Summarize Key Points",
"prompt": "Analyze the structure of {{file:content}} and focus on:\n{{selection}}\n\nPlease provide:\n1. A concise overview\n2. The key points\n3. Suggestions for improvement",
"icon": "lucide-sparkles"
},
{
"id": "template-task-variables",
"name": "Extract Tasks",
"prompt": "Today's date is {{date}}. Extract all actionable tasks from {{file:content}}, with special attention to:\n{{selection}}\n\nPlease output strictly in Obsidian Tasks plugin format, one task per line:\n\n- [ ] Task description ⏫/🔼/🔽/⏬ priority\n- [ ] Task description 📅 YYYY-MM-DD due date\n- [ ] Task description ⏰ YYYY-MM-DD HH:mm reminder\n- [ ] Task description 🛫 YYYY-MM-DD start date\n- [ ] Task description 🔁 every day/week/month recurrence\n- [ ] Task description #tag #project\n\nExtraction rules:\n1. If the text implies urgency such as urgent, ASAP, immediately, or today, add ⏫.\n2. If it implies near-term timing such as tomorrow, this week, or soon, add 🔼.\n3. Convert explicit dates to 📅 YYYY-MM-DD.\n4. Convert explicit times to ⏰ YYYY-MM-DD HH:mm when possible.\n5. Add recurrence for repeated work such as 🔁 every week/month.\n6. Add practical tags for each task.\n\nExample output:\n- [ ] Finish project report ⏫ 📅 2026-04-25 #work\n- [ ] Weekly team sync 🔁 every week on Monday ⏰ 09:00 #meeting\n- [ ] Follow up on client request 🔼 📅 2026-04-23 #follow-up",
"icon": "lucide-sparkles"
},
{
"id": "template-dataview",
"name": "Generate Dataview",
"prompt": "Help me generate an Obsidian Dataview query block based on my requirement. Requirements:\n1. Use DataviewJS or DQL syntax.\n2. Include the necessary filters and sorting.\n3. Add short comments explaining each part.\n4. Use DataviewJS if the logic is complex.\n\nMy requirement:",
"icon": "lucide-database"
},
{
"id": "template-templater",
"name": "Design Templater Template",
"prompt": "Help me design an Obsidian Templater template. Requirements:\n1. Use Templater syntax (<% %>).\n2. Include dynamic date, time, and similar variables.\n3. Support user input prompts.\n4. Add necessary conditionals and loops.\n5. Comment the purpose of each section.\n\nTemplate purpose:",
"icon": "lucide-file-code"
},
{
"id": "template-mermaid",
"name": "Create Mermaid Diagram",
"prompt": "Based on my selected text {{selection}}, generate Mermaid diagram code. Requirements:\n1. Choose an appropriate diagram type such as flowchart, sequence, class, or gantt.\n2. Use clear node names.\n3. Add useful styling and comments when needed.\n4. Ensure the syntax is valid and renderable.\n",
"icon": "lucide-workflow"
},
{
"id": "template-metadata",
"name": "Design YAML",
"prompt": "Based on the current note content {{file:content}}, help me design a suitable YAML Frontmatter structure for this note. Requirements:\n1. Recommend fields that fit the note content.\n2. Include common fields such as tags, aliases, and date.\n3. Suggest useful custom fields.\n4. Briefly explain the purpose of each field.\n\nNote type:",
"icon": "lucide-file-json"
},
{
"id": "template-callout",
"name": "Wrap with Callout",
"prompt": "Based on my selected text {{selection}}, wrap it using an Obsidian Callout block. Requirements:\n1. Choose an appropriate callout type such as note, tip, warning, or danger.\n2. Support nesting and folding when helpful.\n3. Include a title and content.\n4. Allow code blocks or lists when needed.\n\nContent requirement:",
"icon": "lucide-message-square"
}
]
}
}
+12
View File
@@ -0,0 +1,12 @@
"use strict";var e=require("obsidian"),t=require("@codemirror/language"),o=require("@codemirror/state"),n=require("@codemirror/view");const i=["Custom","editingToolbar","editingToolbarSub","editingToolbarAdd","editingToolbarDelete","editingToolbarReload","codeblock-glyph","underline-glyph","superscript-glyph","subscript-glyph","bot-glyph","header-1","header-2","header-3","header-4","header-5","header-6","header-n","obsidian","obsidian-new","accessibility","activity","air-vent","airplay","alarm-check","alarm-clock-off","alarm-clock","alarm-minus","alarm-plus","album","alert-circle","alert-octagon","alert-triangle","align-center-horizontal","align-center-vertical","align-center","align-end-horizontal","align-end-vertical","align-horizontal-distribute-center","align-horizontal-distribute-end","align-horizontal-distribute-start","align-horizontal-justify-center","align-horizontal-justify-end","align-horizontal-justify-start","align-horizontal-space-around","align-horizontal-space-between","align-justify","align-left","align-right","align-start-horizontal","align-start-vertical","align-vertical-distribute-center","align-vertical-distribute-end","align-vertical-distribute-start","align-vertical-justify-center","align-vertical-justify-end","align-vertical-justify-start","align-vertical-space-around","align-vertical-space-between","anchor","angry","annoyed","aperture","apple","archive-restore","archive","armchair","arrow-big-down","arrow-big-left","arrow-big-right","arrow-big-up","arrow-down-circle","arrow-down-left","arrow-down-right","arrow-down","arrow-left-circle","arrow-left-right","arrow-left","arrow-right-circle","arrow-right","arrow-up-circle","arrow-up-left","arrow-up-right","arrow-up","asterisk","at-sign","award","axe","axis-3d","baby","backpack","baggage-claim","banana","banknote","bar-chart-2","bar-chart-3","bar-chart-4","bar-chart-horizontal","bar-chart","baseline","bath","battery-charging","battery-full","battery-low","battery-medium","battery","beaker","bed-double","bed-single","bed","beer","bell-minus","bell-off","bell-plus","bell-ring","bell","bike","binary","bitcoin","bluetooth-connected","bluetooth-off","bluetooth-searching","bluetooth","bold","bomb","bone","book-open","book","bookmark-minus","bookmark-plus","bookmark","bot","box-select","box","boxes","briefcase","brush","bug","building-2","building","bus","cake","calculator","calendar-check-2","calendar-check","calendar-clock","calendar-days","calendar-heart","calendar-minus","calendar-off","calendar-plus","calendar-range","calendar-search","calendar-x2","calendar-x","calendar","camera-off","camera","car","carrot","cast","check-circle-2","check-circle","check-square","check","chef-hat","cherry","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-up","chevrons-down-up","chevrons-down","chevrons-left-right","chevrons-left","chevrons-right-left","chevrons-right","chevrons-up-down","chevrons-up","chrome","cigarette-off","cigarette","circle-dot","circle-ellipsis","circle-slashed","circle","citrus","clapperboard","clipboard-check","clipboard-copy","clipboard-edit","clipboard-list","clipboard-signature","clipboard-type","clipboard-x","clipboard","clock-1","clock-10","clock-11","clock-12","clock-2","clock-3","clock-4","clock-5","clock-6","clock-7","clock-8","clock-9","clock","cloud-cog","cloud-drizzle","cloud-fog","cloud-hail","cloud-lightning","cloud-moon-rain","cloud-moon","cloud-off","cloud-rain-wind","cloud-rain","cloud-snow","cloud-sun-rain","cloud-sun","cloud","cloudy","clover","code-2","code","codepen","codesandbox","coffee","cog","coins","columns","command","compass","component","contact","contrast","cookie","copy","copyleft","copyright","corner-down-left","corner-down-right","corner-left-down","corner-left-up","corner-right-down","corner-right-up","corner-up-left","corner-up-right","cpu","credit-card","croissant","crop","cross","crosshair","crown","cup-soda","curly-braces","currency","database","delete","diamond","dice-1","dice-2","dice-3","dice-4","dice-5","dice-6","dices","diff","disc","divide-circle","divide-square","divide","dollar-sign","download-cloud","download","dribbble","droplet","droplets","drumstick","edit-2","edit-3","edit","egg-fried","egg","equal-not","equal","eraser","euro","expand","external-link","eye-off","eye","facebook","factory","fast-forward","feather","figma","file-archive","file-audio-2","file-audio","file-axis-3d","file-badge-2","file-badge","file-bar-chart-2","file-bar-chart","file-box","file-check-2","file-check","file-clock","file-code","file-cog-2","file-cog","file-diff","file-digit","file-down","file-edit","file-heart","file-image","file-input","file-json-2","file-json","file-key-2","file-key","file-line-chart","file-lock-2","file-lock","file-minus-2","file-minus","file-output","file-pie-chart","file-plus-2","file-plus","file-question","file-scan","file-search-2","file-search","file-signature","file-spreadsheet","file-symlink","file-terminal","file-text","file-type-2","file-type"Line truncated
/**!
* Sortable 1.15.7
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/(a.cMenuFontColor,a.cMenuBackgroundColor)}}()}function Ae(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Me.apply(null,arguments)}function Pe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function Ne(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(o),!0).forEach(function(t){Ae(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Pe(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function Le(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Fe=Le(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Oe=Le(/Edge/i),Re=Le(/firefox/i),qe=Le(/safari/i)&&!Le(/chrome/i)&&!Le(/android/i),Be=Le(/iP(ad|od|hone)/i),$e=Le(/chrome/i)&&Le(/android/i),_e={capture:!1,passive:!1};function ze(e,t,o){e.addEventListener(t,o,!Fe&&_e)}function Ue(e,t,o){e.removeEventListener(t,o,!Fe&&_e)}function Ve(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function He(e){return e.host&&e!==document&&e.host.nodeType&&e.host!==e?e.host:e.parentNode}function We(e,t,o,n){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&Ve(e,t):Ve(e,t))||n&&e===o)return e;if(e===o)break}while(e=He(e))}return null}var je,Ke=/\s+/g;function Ye(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(Ke," ").replace(" "+t+" "," ");e.className=(n+(o?" "+t:"")).replace(Ke," ")}}function Ge(e,t,o){var n=e&&e.style;if(n){if(void 0===o)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),void 0===t?o:o[t];t in n||-1!==t.indexOf("webkit")||(t="-webkit-"+t),n[t]=o+("string"==typeof o?"":"px")}}function Je(e,t){var o="";if("string"==typeof e)o=e;else do{var n=Ge(e,"transform");n&&"none"!==n&&(o=n+" "+o)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(o)}function Ze(e,t,o){if(e){var n=e.getElementsByTagName(t),i=0,a=n.length;if(o)for(;i<a;i++)o(n[i],i);return n}return[]}function Xe(){var e=document.scrollingElement;return e||document.documentElement}function Qe(e,t,o,n,i){if(e.getBoundingClientRect||e===window){var a,s,r,l,c,d,u;if(e!==window&&e.parentNode&&e!==Xe()?(s=(a=e.getBoundingClientRect()).top,r=a.left,l=a.bottom,c=a.right,d=a.height,u=a.width):(s=0,r=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,u=window.innerWidth),(t||o)&&e!==window&&(i=i||e.parentNode,!Fe))do{if(i&&i.getBoundingClientRect&&("none"!==Ge(i,"transform")||o&&"static"!==Ge(i,"position"))){var m=i.getBoundingClientRect();s-=m.top+parseInt(Ge(i,"border-top-width")),r-=m.left+parseInt(Ge(i,"border-left-width")),l=s+a.height,c=r+a.width;break}}while(i=i.parentNode);if(n&&e!==window){var p=Je(i||e),h=p&&p.a,g=p&&p.d;p&&(l=(s/=g)+(d/=g),c=(r/=h)+(u/=h))}return{top:s,left:r,bottom:l,right:c,width:u,height:d}}}function et(e,t,o){for(var n=at(e,!0),i=Qe(e)[t];n;){var a=Qe(n)[o];if(!("top"===o||"left"===o?i>=a:i<=a))return n;if(n===Xe())break;n=at(n,!1)}return!1}function tt(e,t,o,n){for(var i=0,a=0,s=e.children;a<s.length;){if("none"!==s[a].style.display&&s[a]!==co.ghost&&(n||s[a]!==co.dragged)&&We(s[a],o.draggable,e,!1)){if(i===t)return s[a];i++}a++}return null}function ot(e,t){for(var o=e.lastElementChild;o&&(o===co.ghost||"none"===Ge(o,"display")||t&&!Ve(o,t));)o=o.previousElementSibling;return o||null}function nt(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===co.clone||t&&!Ve(e,t)||o++;return o}function it(e){var t=0,o=0,n=Xe();if(e)do{var i=Je(e),a=i.a,s=i.d;t+=e.scrollLeft*a,o+=e.scrollTop*s}while(e!==n&&(e=e.parentNode));return[t,o]}functionLine truncated
/*! Pickr 1.8.4 MIT | https://github.com/Simonwep/pickr */
var Fo=function(e){var t={exports:{}};return e(t,t.exports),t.exports}(function(e,t){self,e.exports=(()=>{var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.d(t,{default:()=>N});var o={};function n(e,t,o,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};t instanceof HTMLCollection||t instanceof NodeList?t=Array.from(t):Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);for(const a of t)for(const t of o)a[e](t,n,{capture:!1,...i});return Array.prototype.slice.call(arguments,1)}e.r(o),e.d(o,{adjustableInputNumbers:()=>d,createElementFromString:()=>s,createFromTemplate:()=>r,eventPath:()=>l,off:()=>a,on:()=>i,resolveElement:()=>c});const i=n.bind(null,"addEventListener"),a=n.bind(null,"removeEventListener");function s(e){const t=document.createElement("div");return t.innerHTML=e.trim(),t.firstElementChild}function r(e){const t=(e,t)=>{const o=e.getAttribute(t);return e.removeAttribute(t),o},o=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=t(e,":obj"),a=t(e,":ref"),s=i?n[i]={}:n;a&&(n[a]=e);for(const n of Array.from(e.children)){const e=t(n,":arr"),i=o(n,e?{}:s);e&&(s[e]||(s[e]=[])).push(Object.keys(i).length?i:n)}return n};return o(s(e))}function l(e){let t=e.path||e.composedPath&&e.composedPath();if(t)return t;let o=e.target.parentElement;for(t=[e.target,o];o=o.parentElement;)t.push(o);return t.push(document,window),t}function c(e){return e instanceof Element?e:"string"==typeof e?e.split(/>>/g).reduce((e,t,o,n)=>(e=e.querySelector(t),o<n.length-1?e.shadowRoot:e),document):null}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;function o(o){const n=[.001,.01,.1][Number(o.shiftKey||2*o.ctrlKey)]*(o.deltaY<0?1:-1);let i=0,a=e.selectionStart;e.value=e.value.replace(/[\d.]+/g,(e,o)=>o<=a&&o+e.length>=a?(a=o,t(Number(e),n,i)):(i++,e)),e.focus(),e.setSelectionRange(a,a),o.preventDefault(),e.dispatchEvent(new Event("input"))}i(e,"focus",()=>i(window,"wheel",o,{passive:!1})),i(e,"blur",()=>a(window,"wheel",o))}const{min:u,max:m,floor:p,round:h}=Math;function g(e,t,o){t/=100,o/=100;const n=p(e=e/360*6),i=e-n,a=o*(1-t),s=o*(1-i*t),r=o*(1-(1-i)*t),l=n%6;return[255*[o,s,a,a,r,o][l],255*[r,o,o,s,a,a][l],255*[a,a,r,o,o,s][l]]}function f(e,t,o){return g(e,t,o).map(e=>h(e).toString(16).padStart(2,"0"))}function b(e,t,o){const n=g(e,t,o),i=n[0]/255,a=n[1]/255,s=n[2]/255,r=u(1-i,1-a,1-s);return[100*(1===r?0:(1-i-r)/(1-r)),100*(1===r?0:(1-a-r)/(1-r)),100*(1===r?0:(1-s-r)/(1-r)),100*r]}function y(e,t,o){const n=(2-(t/=100))*(o/=100)/2;return 0!==n&&(t=1===n?0:n<.5?t*o/(2*n):t*o/(2-2*n)),[e,100*t,100*n]}function C(e,t,o){const n=u(e/=255,t/=255,o/=255),i=m(e,t,o),a=i-n;let s,r;if(0===a)s=r=0;else{r=a/i;const n=((i-e)/6+a/2)/a,l=((i-t)/6+a/2)/a,c=((i-o)/6+a/2)/a;e===i?s=c-l:t===i?s=1/3+n-c:o===i&&(s=2/3+l-n),s<0?s+=1:s>1&&(s-=1)}return[360*s,100*r,100*i]}function v(e,t,o,n){return t/=100,o/=100,[...C(255*(1-u(1,(e/=100)*(1-(n/=100))+n)),255*(1-u(1,t*(1-n)+n)),255*(1-u(1,o*(1-n)+n)))]}function w(e,t,o){t/=100;const n=2*(t*=(o/=100)<.5?o:1-o)/(o+t)*100,i=100*(o+t);return[e,isNaN(n)?0:n,i]}function x(e){return C(...e.match(/.{2}/g).map(e=>parseInt(e,16)))}function k(e){e=e.match(/^[a-zA-Z]+$/)?function(e){if("black"===e.toLowerCase())return"#000";const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,"#000"===t.fillStyle?null:t.fillStyle}(e):e;const t={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=e=>e.map(e=>/^(|\d+)\.\d+|\d+$/.test(e)?Number(e):void 0);let n;e:for(const i in t){if(!(n=t[i].exec(e)))continue;const a=e=>!!n[2]==("number"==typeof e);switch(i){case"cmyk":{const[,e,t,a,s]=o(n);if(e>100||t>100||a>100||s>100)break e;return{values:v(e,t,a,s),type:i}}case"rgba":{const[,,,e,t,s,r]=o(n);if(e>255||t>255||s>255||r<0||r>1||!a(r))break e;return{values:[...C(e,t,s),r],a:r,type:i}}case"hexa":{let[,e]=n;4!==e.length&&3!==e.length||(e=e.split("").map(e=>e+e).join(""));const t=e.substring(0,6);let o=e.substring(6);return o=o?parseInt(o,16)/255:void 0,{values:[...x(t),o],a:o,type:i}}case"hsla":{const[,,,e,t,s,r]=o(n);if(e>360||t>100||s>100||r<0||r>1||!a(r))break e;return{values:[...w(e,t,s),r],a:r,type:i}}case"hsva":{const[,,,e,t,s,r]=o(n);if(e>360||t>100||s>100||r<0||r>1||!a(r))break e;return{values:[e,t,s,r],a:r,type:i}}}}return{values:null,type:null}}function S(){const e=(e,t)=>function(){let o=arguments.length>0&&void 0!==arguments[0]?arguLine truncated
/* nosourcemap */
+10
View File
@@ -0,0 +1,10 @@
{
"id": "editing-toolbar",
"name": "Editing Toolbar",
"version": "4.0.8",
"minAppVersion": "0.14.0",
"description": "The Obsidian Editing Toolbar is modified from cmenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.",
"author": "Cuman",
"authorUrl": "https://github.com/cumany/obsidian-editing-toolbar",
"isDesktopOnly": false
}
File diff suppressed because it is too large. Load diff
+41
View File
@@ -0,0 +1,41 @@
{
"snapStepMinutes": 10,
"progressIndicator": "bar",
"showTaskNotification": true,
"zoomLevel": 2,
"timelineIcon": "calendar-with-checkmark",
"endLabel": "All done",
"startHour": 6,
"timelineDateFormat": "YYYY-MM-DD ddd",
"centerNeedle": true,
"plannerHeading": "Daily Tasks",
"plannerHeadingLevel": 2,
"timelineColored": false,
"timelineStartColor": "#006466",
"timelineEndColor": "#4d194d",
"timestampFormat": "HH:mm",
"hourFormat": "H",
"dataviewSource": "",
"extendDurationUntilNext": false,
"defaultDurationMinutes": 30,
"minimalDurationMinutes": 10,
"showTimestampInTaskBlock": true,
"showUncheduledTasks": true,
"showUnscheduledNestedTasks": true,
"showNow": true,
"showNext": true,
"pluginVersion": "0.28.0",
"showCompletedTasks": false,
"showSubtasksInTaskBlocks": true,
"icals": [],
"colorOverrides": [],
"releaseNotes": true,
"taskStatusOnCreation": " ",
"eventFormatOnCreation": "task",
"sortTasksInPlanAfterEdit": true,
"firstDayOfWeek": "monday",
"multiDayRange": "work-week",
"showTimeTracker": false,
"showActiveClocks": false,
"rawIcals": []
}
+406
View File
@@ -0,0 +1,406 @@
"use strict";var ZD=Object.defineProperty;var JD=(e,t,n)=>t in e?ZD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var xe=(e,t,n)=>JD(e,typeof t!="symbol"?t+"":t,n);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const w0=require("obsidian");var co=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function QD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wu(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var L1={};Object.defineProperty(L1,"__esModule",{value:!0});var le=w0;const QO="YYYY-MM-DD",e3="gggg-[W]ww",rh="YYYY-MM",Mh="YYYY-[Q]Q",bh="YYYY";function Uc(e){var n,o;const t=window.app.plugins.getPlugin("periodic-notes");return t&&((o=(n=t.settings)==null?void 0:n[e])==null?void 0:o.enabled)}function jc(){var e,t,n,o;try{const{internalPlugins:r,plugins:M}=window.app;if(Uc("daily")){const{format:a,folder:s,template:O}=((t=(e=M.getPlugin("periodic-notes"))==null?void 0:e.settings)==null?void 0:t.daily)||{};return{format:a||QO,folder:(s==null?void 0:s.trim())||"",template:(O==null?void 0:O.trim())||""}}const{folder:b,format:i,template:z}=((o=(n=r.getPluginById("daily-notes"))==null?void 0:n.instance)==null?void 0:o.options)||{};return{format:i||QO,folder:(b==null?void 0:b.trim())||"",template:(z==null?void 0:z.trim())||""}}catch(r){console.info("No custom daily note settings found!",r)}}function Hc(){var e,t,n,o,r,M,b;try{const i=window.app.plugins,z=(e=i.getPlugin("calendar"))==null?void 0:e.options,a=(n=(t=i.getPlugin("periodic-notes"))==null?void 0:t.settings)==null?void 0:n.weekly;if(Uc("weekly"))return{format:a.format||e3,folder:((o=a.folder)==null?void 0:o.trim())||"",template:((r=a.template)==null?void 0:r.trim())||""};const s=z||{};return{format:s.weeklyNoteFormat||e3,folder:((M=s.weeklyNoteFolder)==null?void 0:M.trim())||"",template:((b=s.weeklyNoteTemplate)==null?void 0:b.trim())||""}}catch(i){console.info("No custom weekly note settings found!",i)}}function $c(){var t,n,o,r;const e=window.app.plugins;try{const M=Uc("monthly")&&((n=(t=e.getPlugin("periodic-notes"))==null?void 0:t.settings)==null?void 0:n.monthly)||{};return{format:M.format||rh,folder:((o=M.folder)==null?void 0:o.trim())||"",template:((r=M.template)==null?void 0:r.trim())||""}}catch(M){console.info("No custom monthly note settings found!",M)}}function Yc(){var t,n,o,r;const e=window.app.plugins;try{const M=Uc("quarterly")&&((n=(t=e.getPlugin("periodic-notes"))==null?void 0:t.settings)==null?void 0:n.quarterly)||{};return{format:M.format||Mh,folder:((o=M.folder)==null?void 0:o.trim())||"",template:((r=M.template)==null?void 0:r.trim())||""}}catch(M){console.info("No custom quarterly note settings found!",M)}}function Vc(){var t,n,o,r;const e=window.app.plugins;try{const M=Uc("yearly")&&((n=(t=e.getPlugin("periodic-notes"))==null?void 0:t.settings)==null?void 0:n.yearly)||{};return{format:M.format||bh,folder:((o=M.folder)==null?void 0:o.trim())||"",template:((r=M.template)==null?void 0:r.trim())||""}}catch(M){console.info("No custom yearly note settings found!",M)}}function ch(...e){let t=[];for(let o=0,r=e.length;o<r;o++)t=t.concat(e[o].split("/"));const n=[];for(let o=0,r=t.length;o<r;o++){const M=t[o];!M||M==="."||n.push(M)}return t[0]===""&&n.unshift(""),n.join("/")}function eB(e){let t=e.substring(e.lastIndexOf("/")+1);return t.lastIndexOf(".")!=-1&&(t=t.substring(0,t.lastIndexOf("."))),t}async function tB(e){const t=e.replace(/\\/g,"/").split("/");if(t.pop(),t.length){const n=ch(...t);window.app.vault.getAbstractFileByPath(n)||await window.app.vault.createFolder(n)}}async function Gc(e,t){t.endsWith(".md")||(t+=".md");const n=le.normalizePath(ch(e,t));return await tB(n),n}async function ib(e){const{metadataCache:t,vault:n}=window.app,o=le.normalizePath(e);if(o==="/")return Promise.resolve(["",null]);try{const r=t.getFirstLinkpathDest(o,""),M=await n.cachedRead(r),b=window.app.foldManager.load(r);return[M,b]}catch(r){return console.error(`Failed to read the daily note template '${o}'`,r),new le.Notice("Failed to read the daily note template"),["",null]}}function Mn(e,t="day"){const n=e.clone().startOf(t).format();return`${t}-${n}`}function ih(e){return e.replace(/\[[^\]]*\]/g,"")}function nB(e,t){if(t==="week"){const n=ih(e);return/w{1,2}/i.test(n)&&(/M{1,4}/.test(n)||/D{1,4}/.test(n))}return!1}function pb(e,t){return ph(e.basename,t)}function oB(e,t){return ph(eB(e),t)}function ph(e,t){const o={day:jc,week:Hc,month:$c,quarter:Yc,year:Vc}[t]().format.split("/").pop(),r=window.Line truncated
`||y.charAt(h0)==="\r"&&y.charAt(h0+1)!==`
`)&&(O0++,f0===0&&(f0=h0+1)),h0--}var J0=b0+O0,K1=F-f0;return $[F]={line:J0,lineStart:f0},{offset:F,line:J0+1,column:K1+1}}function x(y){if(!N(y))throw new Error("not a parser: "+y)}function G(y,F){return typeof y=="string"?y.charAt(F):y[F]}function M0(y){if(typeof y!="number")throw new Error("not a number: "+y)}function e0(y){if(typeof y!="function")throw new Error("not a function: "+y)}function c0(y){if(typeof y!="string")throw new Error("not a string: "+y)}var Q=2,x0=3,m0=8,_=5*m0,_0=4*m0,V0=" ";function T(y,F){return new Array(F+1).join(y)}function z1(y,F,$){var b0=F-y.length;return b0<=0?y:T($,b0)+y}function W0(y,F,$,b0){return{from:y-F>0?y-F:0,to:y+$>b0?b0:y+$}}function p0(y,F){var $,b0,O0,f0,h0,J0=F.index,K1=J0.offset,$e=1;if(K1===y.length)return"Got the end of the input";if(g(y)){var Se=K1-K1%m0,T2=K1-Se,me=W0(Se,_,_0+m0,y.length),Ye=a(function(U1){return a(function(To){return z1(To.toString(16),2,"0")},U1)},function(U1,To){var _o=U1.length,Pn=[],$t=0;if(_o<=To)return[U1.slice()];for(var _2=0;_2<_o;_2++)Pn[$t]||Pn.push([]),Pn[$t].push(U1[_2]),(_2+1)%To==0&&$t++;return Pn}(y.slice(me.from,me.to).toJSON().data,m0));f0=function(U1){return U1.from===0&&U1.to===1?{from:U1.from,to:U1.to}:{from:U1.from/m0,to:Math.floor(U1.to/m0)}}(me),b0=Se/m0,$=3*T2,T2>=4&&($+=1),$e=2,O0=a(function(U1){return U1.length<=4?U1.join(" "):U1.slice(0,4).join(" ")+" "+U1.slice(4).join(" ")},Ye),(h0=(8*(f0.to>0?f0.to-1:f0.to)).toString(16).length)<2&&(h0=2)}else{var Bo=y.split(/\r\n|[\n\r\u2028\u2029]/);$=J0.column-1,b0=J0.line-1,f0=W0(b0,Q,x0,Bo.length),O0=Bo.slice(f0.from,f0.to),h0=f0.to.toString().length}var pM=b0-f0.from;return g(y)&&(h0=(8*(f0.to>0?f0.to-1:f0.to)).toString(16).length)<2&&(h0=2),z(function(U1,To,_o){var Pn,$t=_o===pM,_2=$t?"> ":V0;return Pn=g(y)?z1((8*(f0.from+_o)).toString(16),h0,"0"):z1((f0.from+_o+1).toString(),h0," "),[].concat(U1,[_2+Pn+" | "+To],$t?[V0+T(" ",h0)+" | "+z1("",$," ")+T("^",$e)]:[])},[],O0).join(`
`)}function V(y,F){return[`
`,"-- PARSING FAILED "+T("-",50),`
`,p0(y,F),`
`,($=F.expected,$.length===1?`Expected:
`+$[0]:`Expected one of the following:
`+$.join(", ")),`
`].join("");var $}function a0(y){return y.flags!==void 0?y.flags:[y.global?"g":"",y.ignoreCase?"i":"",y.multiline?"m":"",y.unicode?"u":"",y.sticky?"y":""].join("")}function L0(){for(var y=[].slice.call(arguments),F=y.length,$=0;$<F;$+=1)x(y[$]);return M(function(b0,O0){for(var f0,h0=new Array(F),J0=0;J0<F;J0+=1){if(!(f0=j(y[J0]._(b0,O0),f0)).status)return f0;h0[J0]=f0.value,O0=f0.index}return j(v(O0,h0),f0)})}function K0(){var y=[].slice.call(arguments);if(y.length===0)throw new Error("seqMap needs at least one argument");var F=y.pop();return e0(F),L0.apply(null,y).map(function($){return F.apply(null,$)})}function v1(){var y=[].slice.call(arguments),F=y.length;if(F===0)return F0("zero alternates");for(var $=0;$<F;$+=1)x(y[$]);return M(function(b0,O0){for(var f0,h0=0;h0<y.length;h0+=1)if((f0=j(y[h0]._(b0,O0),f0)).status)return f0;return f0})}function n1(y,F){return E(y,F).or(A0([]))}function E(y,F){return x(y),x(F),K0(y,F.then(y).many(),function($,b0){return[$].concat(b0)})}function J(y){c0(y);var F="'"+y+"'";return M(function($,b0){var O0=b0+y.length,f0=$.slice(b0,O0);return f0===y?v(O0,f0):S(b0,F)})}function o0(y,F){(function(O0){if(!(O0 instanceof RegExp))throw new Error("not a regexp: "+O0);for(var f0=a0(O0),h0=0;h0<f0.length;h0++){var J0=f0.charAt(h0);if(J0!=="i"&&J0!=="m"&&J0!=="u"&&J0!=="s")throw new Error('unsupported regexp flag "'+J0+'": '+O0)}})(y),arguments.length>=2?M0(F):F=0;var $=function(O0){return RegExp("^(?:"+O0.source+")",a0(O0))}(y),b0=""+y;return M(function(O0,f0){var h0=$.exec(O0.slice(f0));if(h0){if(0<=F&&F<=h0.length){var J0=h0[0],K1=h0[F];return v(f0+J0.length,K1)}return S(f0,"valid match group (0 to "+h0.length+") in "+b0)}return S(f0,b0)})}function A0(y){return M(function(F,$){return v($,y)})}function F0(y){return M(function(F,$){return S($,y)})}function o1(y){if(N(y))return M(function(F,$){var b0=y._(F,$);return b0.index=$,b0.value="",b0});if(typeof y=="string")return o1(J(y));if(y instanceof RegExp)return o1(o0(y));throw new Error("not a string, regexp, or parser: "+y)}function B(y){return x(y),M(function(F,$){var b0=y._(F,$),O0=F.slice($,b0.index);return b0.status?S($,'not "'+O0+'"'):v($,null)})}function O1(y){return e0(y),M(function(F,$){var b0=G(F,$);return $<F.length&&y(b0)?v($+1,b0):S($,"a character/byte matching "+y)})}function x1(y,F){arguments.length<2&&(F=y,y=void 0);var $=M(function(b0,O0){return $._=F()._,$._(b0,O0)});return y?$.desc(y):$}function Do(){return F0("fantasy-land/empty")}b.parse=function(y){if(typeof y!="string"&&!g(y))throw new Error(".parse must be called with a string or Buffer as its argument");var F,$=this.skip(n0)._(y,0);return F=$.status?{status:!0,value:$.value}:{status:!1,index:Y(y,$.furthest),expected:$.expected},delete K[y],F},b.tryParse=function(y){var F=this.parse(y);if(F.status)return F.value;var $=V(y,F),b0=new Error($);throw b0.type="ParsimmonError",b0.result=F,b0},b.assert=function(y,F){return this.chain(function($){return y($)?A0($):F0(F)})},b.or=function(y){return v1(this,y)},b.trim=function(y){return this.wrap(y,y)},b.wrap=function(y,F){return K0(y,this,F,function($,b0){return b0})},b.thru=function(y){return y(this)},b.then=function(y){return x(y),L0(this,y).map(function(F){return F[1]})},b.many=function(){var y=this;return M(function(F,$){for(var b0=[],O0=void 0;;){if(!(O0=j(y._(F,$),O0)).status)return j(v($,b0),O0);if($===O0.index)throw new Error("infinite loop detected in .many() parser --- calling .many() on a parser which can accept zero characters is usually the cause");$=O0.index,b0.push(O0.value)}})},b.tieWith=function(y){return c0(y),this.map(function(F){if(function(O0){if(!k(O0))throw new Error("not an array: "+O0)}(F),F.length){c0(F[0]);for(var $=F[0],b0=1;b0<F.length;b0++)c0(F[b0]),$+=y+F[b0];return $}return""})},b.tie=function(){return this.tieWith("")},b.times=function(y,F){var $=this;return arguments.length<2&&(F=y),M0(y),M0(F),M(function(b0,O0){for(var f0=[],h0=void 0,J0=void 0,K1=0;K1<y;K1+=1){if(J0=j(h0=$._(b0,O0),J0),!h0.status)return J0;O0=h0.index,f0.push(h0.value)}for(;K1<F&&(J0=j(h0=$._(b0,O0),J0),h0.status);K1+=1)O0=h0.index,f0.push(h0.value);return j(v(O0,f0),J0)})},b.result=function(y){return this.map(function(){return y})},b.atMost=function(y){return this.times(0,y)},b.atLeast=function(y){return K0(this.times(y),this.many(),function(F,$){return F.concat($)})},b.map=function(y){e0(y);var F=this;return M(function($,b0){var O0=F._($,b0);return O0.status?j(v(O0.index,y(O0.value)),O0):O0})},b.contramap=function(y){e0(y);var F=this;return M(function($,b0){var O0=F.parse(y($.slice(b0)));return O0.status?v(b0+$.length,O0.value):O0})},b.promap=function(y,F){return e0(y),e0(F),this.contramap(y).map(F)},b.skip=function(y){return L0(this,y).map(function(F){return F[0]})},b.mark=function(){return K0(Le,this,Le,function(y,F,$){return{start:y,value:F,end:$}})},b.node=function(y){return K0(Le,this,Le,function(F,$,b0){return{name:y,value:$,start:F,end:b0}})},b.sepBy=function(y){return n1(this,y)},b.sepBy1=function(y){return Line truncated
`),B2=J(`\r
`),Q1=v1(B2,rt,oe).desc("newline"),Rt=v1(Q1,n0);M.all=gr,M.alt=v1,M.any=Bb,M.cr=oe,M.createLanguage=function(y){var F={};for(var $ in y)({}).hasOwnProperty.call(y,$)&&function(b0){F[b0]=x1(function(){return y[b0](F)})}($);return F},M.crlf=B2,M.custom=function(y){return M(y(v,S))},M.digit=q0,M.digits=U0,M.empty=Do,M.end=Rt,M.eof=n0,M.fail=F0,M.formatError=V,M.index=Le,M.isParser=N,M.lazy=x1,M.letter=a1,M.letters=N1,M.lf=rt,M.lookahead=o1,M.makeFailure=S,M.makeSuccess=v,M.newline=Q1,M.noneOf=function(y){return O1(function(F){return y.indexOf(F)<0}).desc("none of '"+y+"'")},M.notFollowedBy=B,M.of=A0,M.oneOf=function(y){for(var F=y.split(""),$=0;$<F.length;$++)F[$]="'"+F[$]+"'";return O1(function(b0){return y.indexOf(b0)>=0}).desc(F)},M.optWhitespace=ve,M.Parser=M,M.range=function(y,F){return O1(function($){return y<=$&&$<=F}).desc(y+"-"+F)},M.regex=o0,M.regexp=o0,M.sepBy=n1,M.sepBy1=E,M.seq=L0,M.seqMap=K0,M.seqObj=function(){for(var y,F={},$=0,b0=(y=arguments,Array.prototype.slice.call(y)),O0=b0.length,f0=0;f0<O0;f0+=1){var h0=b0[f0];if(!N(h0)){if(k(h0)&&h0.length===2&&typeof h0[0]=="string"&&N(h0[1])){var J0=h0[0];if(Object.prototype.hasOwnProperty.call(F,J0))throw new Error("seqObj: duplicate key "+J0);F[J0]=!0,$++;continue}throw new Error("seqObj arguments must be parsers or [string, parser] array pairs.")}}if($===0)throw new Error("seqObj expects at least one named parser, found zero");return M(function(K1,$e){for(var Se,T2={},me=0;me<O0;me+=1){var Ye,Bo;if(k(b0[me])?(Ye=b0[me][0],Bo=b0[me][1]):(Ye=null,Bo=b0[me]),!(Se=j(Bo._(K1,$e),Se)).status)return Se;Ye&&(T2[Ye]=Se.value),$e=Se.index}return j(v($e,T2),Se)})},M.string=J,M.succeed=A0,M.takeWhile=function(y){return e0(y),M(function(F,$){for(var b0=$;b0<F.length&&y(G(F,b0));)b0++;return v(b0,F.slice($,b0))})},M.test=O1,M.whitespace=Bt,M["fantasy-land/empty"]=Do,M["fantasy-land/of"]=A0,M.Binary={bitSeq:A,bitSeqObj:function(y){l();var F={},$=0,b0=a(function(f0){if(k(f0)){var h0=f0;if(h0.length!==2)throw new Error("["+h0.join(", ")+"] should be length 2, got length "+h0.length);if(c0(h0[0]),M0(h0[1]),Object.prototype.hasOwnProperty.call(F,h0[0]))throw new Error("duplicate key in bitSeqObj: "+h0[0]);return F[h0[0]]=!0,$++,h0}return M0(f0),[null,f0]},y);if($<1)throw new Error("bitSeqObj expects at least one named pair, got ["+y.join(", ")+"]");var O0=a(function(f0){return f0[0]},b0);return A(a(function(f0){return f0[1]},b0)).map(function(f0){return z(function(h0,J0){return J0[0]!==null&&(h0[J0[0]]=J0[1]),h0},{},a(function(h0,J0){return[h0,f0[J0]]},O0))})},byte:function(y){if(l(),M0(y),y>255)throw new Error("Value specified to byte constructor ("+y+"=0x"+y.toString(16)+") is larger in value than a single byte.");var F=(y>15?"0x":"0x0")+y.toString(16);return M(function($,b0){var O0=G($,b0);return O0===y?v(b0+1,O0):S(b0,F)})},buffer:function(y){return f("buffer",y).map(function(F){return Buffer.from(F)})},encodedString:function(y,F){return f("string",F).map(function($){return $.toString(y)})},uintBE:R,uint8BE:R(1),uint16BE:R(2),uint32BE:R(4),uintLE:W,uint8LE:W(1),uint16LE:W(2),uint32LE:W(4),intBE:D,int8BE:D(1),int16BE:D(2),int32BE:D(4),intLE:w,int8LE:w(1),int16LE:w(2),int32LE:w(4),floatBE:f("floatBE",4).map(function(y){return y.readFloatBE(0)}),floatLE:f("floatLE",4).map(function(y){return y.readFloatLE(0)}),doubleBE:f("doubleBE",8).map(function(y){return y.readDoubleBE(0)}),doubleLE:f("doubleLE",8).map(function(y){return y.readDoubleLE(0)})},n.exports=M}])})})(AW);var C=AW.exports,ku=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE5 Line truncated
`)[0];let o=n.substring(2).trim();return C.makeSuccess(t+n.length,o)}),namedField:e=>C.alt(e.explicitNamedField,S9(F2.field).map(([t,n])=>Gp.named(X9(n),t))),sortField:e=>C.seqMap(F2.field.skip(C.optWhitespace),C.regexp(/ASCENDING|DESCENDING|ASC|DESC/i).atMost(1),(t,n)=>{let o=n.length==0?"ascending":n[0].toLowerCase();return o=="desc"&&(o="descending"),o=="asc"&&(o="ascending"),{field:t,direction:o}}),headerClause:e=>e.queryType.chain(t=>{switch(t){case"table":return N4(()=>({type:t,fields:[],showId:!0}),C.seqMap(C.regexp(/WITHOUT\s+ID/i).skip(C.optWhitespace).atMost(1),C.sepBy(e.namedField,C.string(",").trim(C.optWhitespace)),(n,o)=>({type:t,fields:o,showId:n.length==0})));case"list":return N4(()=>({type:t,format:void 0,showId:!0}),C.seqMap(C.regexp(/WITHOUT\s+ID/i).skip(C.optWhitespace).atMost(1),F2.field.atMost(1),(n,o)=>({type:t,format:o.length==1?o[0]:void 0,showId:n.length==0})));case"task":return C.succeed({type:t});case"calendar":return C.whitespace.then(C.seqMap(e.namedField,n=>({type:t,showId:!0,field:n})));default:return C.fail(`Unrecognized query type '${t}'`)}}).desc("TABLE or LIST or TASK or CALENDAR"),fromClause:e=>C.seqMap(C.regexp(/FROM/i),C.whitespace,F2.source,(t,n,o)=>o),whereClause:e=>C.seqMap(C.regexp(/WHERE/i),C.whitespace,F2.field,(t,n,o)=>({type:"where",clause:o})).desc("WHERE <expression>"),sortByClause:e=>C.seqMap(C.regexp(/SORT/i),C.whitespace,e.sortField.sepBy1(C.string(",").trim(C.optWhitespace)),(t,n,o)=>({type:"sort",fields:o})).desc("SORT field [ASC/DESC]"),limitClause:e=>C.seqMap(C.regexp(/LIMIT/i),C.whitespace,F2.field,(t,n,o)=>({type:"limit",amount:o})).desc("LIMIT <value>"),flattenClause:e=>C.seqMap(C.regexp(/FLATTEN/i).skip(C.whitespace),e.namedField,(t,n)=>({type:"flatten",field:n})).desc("FLATTEN <value> [AS <name>]"),groupByClause:e=>C.seqMap(C.regexp(/GROUP BY/i).skip(C.whitespace),e.namedField,(t,n)=>({type:"group",field:n})).desc("GROUP BY <value> [AS <name>]"),clause:e=>C.alt(e.fromClause,e.whereClause,e.sortByClause,e.limitClause,e.groupByClause,e.flattenClause),query:e=>C.seqMap(e.headerClause.trim(aO),e.fromClause.trim(aO).atMost(1),e.clause.trim(aO).many(),(t,n,o)=>({header:t,source:n.length==0?qn.folder(""):n[0],operations:o,settings:Bu}))}),aO=C.alt(C.whitespace,fW.comment).many().map(e=>e.join("")),C9=e=>{var t;return e?(t=e.plugins.plugins.dataview)==null?void 0:t.api:window.DataviewAPI},x9=e=>e.plugins.enabledPlugins.has("dataview");Lo.DATE_SHORTHANDS=i3;Lo.DURATION_TYPES=c3;Lo.EXPRESSION=F2;Lo.KEYWORDS=p3;Lo.QUERY_LANGUAGE=fW;var qW=Lo.getAPI=C9;Lo.isPluginEnabled=x9;Lo.parseField=E9;const hW=!1;var Iz=Array.isArray,Su=Array.from,F9=Object.defineProperty,rr=Object.getOwnPropertyDescriptor,WW=Object.getOwnPropertyDescriptors,I9=Object.prototype,P9=Array.prototype,Xu=Object.getPrototypeOf;function TM(e){return typeof e=="function"}const ue=()=>{};function U9(e){return e()}function Kp(e){for(var t=0;t<e.length;t++)e[t]()}function j9(e,t,n=!1){return e===void 0?n?t():t:e}const Z2=2,mW=4,ei=8,Pz=16,bn=32,ti=64,z3=128,rM=256,Zp=512,Dt=1024,zr=2048,ub=4096,vn=8192,lb=16384,RW=32768,MM=65536,H9=1<<17,$9=1<<19,gW=1<<20,Nn=Symbol("$state"),yW=Symbol("legacy props"),Y9=Symbol("");let Jp=!1,a3=[];function LW(){Jp=!1;const e=a3.slice();a3=[],Kp(e)}function ni(e){Jp||(Jp=!0,queueMicrotask(LW)),a3.push(e)}function V9(){Jp&&LW()}const Cu=1,xu=2,vW=4,G9=8,K9=16,Z9=1,J9=2,NW=4,Q9=8,e_=16,t_=4,n_=1,o_=2,Ct=Symbol(),wW="http://www.w3.org/2000/svg";function DW(e){return e===this.v}function Fu(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Iu(e){return!Fu(e,this.v)}function r_(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function M_(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function b_(e){throw new Error("https://svelte.dev/e/effect_orphan")}function c_(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function i_(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function p_(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function z_(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function a_(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function s_(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Ab=!1;function O_(){Ab=!0}function vt(e,t){var n={f:0,v:e,reactions:null,equals:DW,version:0};return n}function $2(e){return BW(vt(e))}function Uz(e,t=!1){var o;const n=vt(e);return t||(n.equals=Iu),Ab&&S1!==null&&S1.l!==null&&((o=S1.l).s??(o.s=[])).push(n),n}function w4(e,t=!1){return BW(Uz(e,t))}function BW(e){return $1!==null&&$1.f&Z2&&(wn===null?A_([e]):wn.push(e)),e}function H1(e,t){return $1!==null&&jz()&&$1.f&(Z2|Pz)&&(wn===null||!wn.includes(e))&&s_(),s3(e,t)}function s3(e,t){return e.equals(t)||(e.v=t,e.version=CW(),TW(e,zr),jz()&&W1!==null&&W1.f&Dt&&!(W1.f&bn)&&(Ot!==null&&Ot.includes(e)?(cn(W1,zr),$z(W1)):Mr===null?d_([e]):Mr.push(e))),t}function TW(e,t){var n=e.reactions;if(n!==n Line truncated
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/bz.exports;(function(e,t){(function(){function n(U,t0,q){switch(q.length){case 0:return U.call(t0);case 1:return U.call(t0,q[0]);case 2:return U.call(t0,q[0],q[1]);case 3:return U.call(t0,q[0],q[1],q[2])}return U.apply(t0,q)}function o(U,t0,q,D0){for(var H0=-1,k0=U==null?0:U.length;++H0<k0;){var Tt=U[H0];t0(D0,Tt,q(Tt),U)}return D0}function r(U,t0){for(var q=-1,D0=U==null?0:U.length;++q<D0&&t0(U[q],q,U)!==!1;);return U}function M(U,t0){for(var q=U==null?0:U.length;q--&&t0(U[q],q,U)!==!1;);return U}function b(U,t0){for(var q=-1,D0=U==null?0:U.length;++q<D0;)if(!t0(U[q],q,U))return!1;return!0}function i(U,t0){for(var q=-1,D0=U==null?0:U.length,H0=0,k0=[];++q<D0;){var Tt=U[q];t0(Tt,q,U)&&(k0[H0++]=Tt)}return k0}function z(U,t0){return!!(U!=null&&U.length)&&w(U,t0,0)>-1}function a(U,t0,q){for(var D0=-1,H0=U==null?0:U.length;++D0<H0;)if(q(t0,U[D0]))return!0;return!1}function s(U,t0){for(var q=-1,D0=U==null?0:U.length,H0=Array(D0);++q<D0;)H0[q]=t0(U[q],q,U);return H0}function O(U,t0){for(var q=-1,D0=t0.length,H0=U.length;++q<D0;)U[H0+q]=t0[q];return U}function l(U,t0,q,D0){var H0=-1,k0=U==null?0:U.length;for(D0&&k0&&(q=U[++H0]);++H0<k0;)q=t0(q,U[H0],H0,U);return q}function A(U,t0,q,D0){var H0=U==null?0:U.length;for(D0&&H0&&(q=U[--H0]);H0--;)q=t0(q,U[H0],H0,U);return q}function f(U,t0){for(var q=-1,D0=U==null?0:U.length;++q<D0;)if(t0(U[q],q,U))return!0;return!1}function h(U){return U.split("")}function R(U){return U.match(e8)||[]}function W(U,t0,q){var D0;return q(U,function(H0,k0,Tt){if(t0(H0,k0,Tt))return D0=k0,!1}),D0}function D(U,t0,q,D0){for(var H0=U.length,k0=q+(D0?1:-1);D0?k0--:++k0<H0;)if(t0(U[k0],k0,U))return k0;return-1}function w(U,t0,q){return t0===t0?v1(U,t0,q):D(U,k,q)}function N(U,t0,q,D0){for(var H0=q-1,k0=U.length;++H0<k0;)if(D0(U[H0],t0))return H0;return-1}function k(U){return U!==U}function g(U,t0){var q=U==null?0:U.length;return q?Y(U,t0)/q:pM}function v(U){return function(t0){return t0==null?B:t0[U]}}function S(U){return function(t0){return U==null?B:U[t0]}}function j(U,t0,q,D0,H0){return H0(U,function(k0,Tt,is){q=D0?(D0=!1,k0):t0(q,k0,Tt,is)}),q}function K(U,t0){var q=U.length;for(U.sort(t0);q--;)U[q]=U[q].value;return U}function Y(U,t0){for(var q,D0=-1,H0=U.length;++D0<H0;){var k0=t0(U[D0]);k0!==B&&(q=q===B?k0:q+k0)}return q}function x(U,t0){for(var q=-1,D0=Array(U);++q<U;)D0[q]=t0(q);return D0}function G(U,t0){return s(t0,function(q){return[q,U[q]]})}function M0(U){return U&&U.slice(0,o0(U)+1).replace(es,"")}function e0(U){return function(t0){return U(t0)}}function c0(U,t0){return s(t0,function(q){return U[q]})}function Q(U,t0){return U.has(t0)}function x0(U,t0){for(var q=-1,D0=U.length;++q<D0&&w(t0,U[q],0)>-1;);return q}function m0(U,t0){for(var q=U.length;q--&&w(t0,U[q],0)>-1;);return q}function _(U,t0){for(var q=U.length,D0=0;q--;)U[q]===t0&&++D0;return D0}function _0(U){return"\\"+X8[U]}function V0(U,t0){return U==null?B:U[t0]}function T(U){return D8.test(U)}function z1(U){return B8.test(U)}function W0(U){for(var t0,q=[];!(t0=U.next()).done;)q.push(t0.value);return q}function p0(U){var t0=-1,q=Array(U.size);return U.forEach(function(D0,H0){q[++t0]=[H0,D0]}),q}function V(U,t0){return function(q){return U(t0(q))}}function a0(U,t0){for(var q=-1,D0=U.length,H0=0,k0=[];++q<D0;){var Tt=U[q];Tt!==t0&&Tt!==q0||(U[q]=q0,k0[H0++]=q)}return k0}function L0(U){var t0=-1,q=Array(U.size);return U.forEach(function(D0){q[++t0]=D0}),q}function K0(U){var t0=-1,q=Array(U.size);return U.forEach(function(D0){q[++t0]=[D0,D0]}),q}function v1(U,t0,q){for(var D0=q-1,H0=U.length;++D0<H0;)if(U[D0]===t0)return D0;return-1}function n1(U,t0,q){for(var D0=q+1;D0--;)if(U[D0]===t0)return D0;return D0}function E(U){return T(U)?A0(U):I8(U)}function J(U){return T(U)?F0(U):h(U)}function o0(U){for(var t0=U.length;t0--&&Ky.test(U.charAt(t0)););return t0}function A0(U){for(var t0=Ms.lastIndex=0;Ms.test(U);)++t0;return t0}function F0(U){return U.match(Ms)||[]}function o1(U){return U.match(w8)||[]}var B,O1="4.17.21",x1=200,Do="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",Le="Expected a function",Bb="Invalid `variable` option passed into `_.template`",gr="__lodash_hash_undefined__",n0=500,q0="__lodash_placeholder__",U0=1,a1=2,N1=4,ve=1,Bt=2,oe=1,rt=2,B2=4,Q1=8,Rt=16,y=32,F=64,$=128,b0=256,O0=512,f0=30,h0="...",J0=800,K1=16,$e=1,Se=2,T2=3,me=1/0,Ye=9007199254740991,Bo=17976931348623157e292,pM=NaN,U1=4294967295,To=U1-1,_o=U1>>>1,Pn=[["ary",$],["bind",oe],["bindKey",rt],["curry",Q1],["curryRight",Rt],["flip",O0],["partial",y],["partialRight",F],["rearg",b0]],$t="[object Arguments]",_2="[object Array]",_y="[object AsyncFunction]",Tb="[object Boolean]",_b="[object Date]",ky="[object DOMException]",fi="[object Error]",qi="[object Function]",wA="[object GeneratorFunction]",k2="[object Map]",kb="[object Number]",Ey="[object Null]",Un="[object Object]",DA="[object Promise]",Sy="[object Proxy]",Eb="[object RegExp]",E2="[object Set]",Sb="[object String]",hi="[object Symbol]",Xy="[object Undefined]",Xb="[object WeakMaLine truncated
/* [wrapped with `+p+`] */
`)}function bv(c){return r1(c)||_r(c)||!!(Bf&&c&&c[Bf])}function Gn(c,p){var u=typeof c;return p=p??Ye,!!p&&(u=="number"||u!="symbol"&&i8.test(c))&&c>-1&&c%1==0&&c<p}function yt(c,p,u){if(!ae(u))return!1;var d=typeof p;return!!(d=="number"?kt(u)&&Gn(p,u.length):d=="string"&&p in u)&&X2(u[p],c)}function Bs(c,p){if(r1(c))return!1;var u=typeof c;return!(u!="number"&&u!="symbol"&&u!="boolean"&&c!=null&&!Vt(c))||Yy.test(c)||!$y.test(c)||p!=null&&c in Me(p)}function cv(c){var p=typeof c;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?c!=="__proto__":c===null}function Ts(c){var p=Ei(c),u=q[p];if(typeof u!="function"||!(p in k0.prototype))return!1;if(c===u)return!0;var d=Zs(u);return!!d&&c===d[0]}function iv(c){return!!vf&&vf in c}function Hb(c){var p=c&&c.constructor;return c===(typeof p=="function"&&p.prototype||fM)}function Vd(c){return c===c&&!ae(c)}function Gd(c,p){return function(u){return u!=null&&u[c]===p&&(p!==B||c in Me(u))}}function pv(c){var p=Fi(c,function(d){return u.size===n0&&u.clear(),d}),u=p.cache;return p}function zv(c,p){var u=c[1],d=p[1],m=u|d,L=m<(oe|rt|$),X=d==$&&u==Q1||d==$&&u==b0&&c[7].length<=p[8]||d==($|b0)&&p[7].length<=p[8]&&u==Q1;if(!L&&!X)return c;d&oe&&(c[2]=p[2],m|=u&oe?0:B2);var I=p[3];if(I){var H=c[3];c[3]=H?Td(H,I,p[4]):I,c[4]=H?a0(c[3],q0):p[4]}return I=p[5],I&&(H=c[5],c[5]=H?_d(H,I,p[6]):I,c[6]=H?a0(c[5],q0):p[6]),I=p[7],I&&(c[7]=I),d&$&&(c[8]=c[8]==null?p[8]:Mt(c[8],p[8])),c[9]==null&&(c[9]=p[9]),c[0]=p[0],c[1]=m,c}function av(c){var p=[];if(c!=null)for(var u in Me(c))p.push(u);return p}function sv(c){return Vi.call(c)}function Kd(c,p,u){return p=Ce(p===B?c.length-1:p,0),function(){for(var d=arguments,m=-1,L=Ce(d.length-p,0),X=Xe(L);++m<L;)X[m]=d[p+m];m=-1;for(var I=Xe(p+1);++m<p;)I[m]=d[m];return I[p]=u(X),n(c,this,I)}}function Zd(c,p){return p.length<2?c:wr(c,z2(p,0,-1))}function Ov(c,p){for(var u=c.length,d=Mt(p.length,u),m=_t(c);d--;){var L=p[d];c[d]=Gn(L,u)?m[L]:B}return c}function _s(c,p){if((p!=="constructor"||typeof c[p]!="function")&&p!="__proto__")return c[p]}function Jd(c,p,u){var d=p+"";return Qs(c,Mv(d,uv(nv(d),u)))}function Qd(c){var p=0,u=0;return function(){var d=mw(),m=K1-(d-u);if(u=d,m>0){if(++p>=J0)return arguments[0]}else p=0;return c.apply(B,arguments)}}function Xi(c,p){var u=-1,d=c.length,m=d-1;for(p=p===B?d:p;++u<p;){var L=fs(u,m),X=c[L];c[L]=c[u],c[u]=X}return c.length=p,c}function un(c){if(typeof c=="string"||Vt(c))return c;var p=c+"";return p=="0"&&1/c==-me?"-0":p}function Br(c){if(c!=null){try{return Yi.call(c)}catch{}try{return c+""}catch{}}return""}function uv(c,p){return r(Pn,function(u){var d="_."+u[0];p&u[1]&&!z(c,d)&&c.push(d)}),c.sort()}function ef(c){if(c instanceof k0)return c.clone();var p=new H0(c.__wrapped__,c.__chain__);return p.__actions__=_t(c.__actions__),p.__index__=c.__index__,p.__values__=c.__values__,p}function lv(c,p,u){p=(u?yt(c,p,u):p===B)?1:Ce(i1(p),0);var d=c==null?0:c.length;if(!d||p<1)return[];for(var m=0,L=0,X=Xe(ep(d/p));m<d;)X[L++]=z2(c,m,m+=p);return X}function Av(c){for(var p=-1,u=c==null?0:c.length,d=0,m=[];++p<u;){var L=c[p];L&&(m[d++]=L)}return m}function dv(){var c=arguments.length;if(!c)return[];for(var p=Xe(c-1),u=arguments[0],d=c;d--;)p[d-1]=arguments[d];return O(r1(u)?_t(u):[u],Je(p,1))}function fv(c,p,u){var d=c==null?0:c.length;return d?(p=u||p===B?1:i1(p),z2(c,p<0?0:p,d)):[]}function qv(c,p,u){var d=c==null?0:c.length;return d?(p=u||p===B?1:i1(p),p=d-p,z2(c,0,p<0?0:p)):[]}function hv(c,p){return c&&c.length?wi(c,$0(p,3),!0,!0):[]}function Wv(c,p){return c&&c.length?wi(c,$0(p,3),!0):[]}function mv(c,p,u,d){var m=c==null?0:c.length;return m?(u&&typeof u!="number"&&yt(c,p,u)&&(u=0,d=m),WL(c,p,u,d)):[]}function tf(c,p,u){var d=c==null?0:c.length;if(!d)return-1;var m=u==null?0:i1(u);return m<0&&(m=Ce(d+m,0)),D(c,$0(p,3),m)}function nf(c,p,u){var d=c==null?0:c.length;if(!d)return-1;var m=d-1;return u!==B&&(m=i1(u),m=u<0?Ce(d+m,0):Mt(m,d-1)),D(c,$0(p,3),m,!0)}function of(c){return c!=null&&c.length?Je(c,1):[]}function Rv(c){return c!=null&&c.length?Je(c,me):[]}function gv(c,p){return c!=null&&c.length?(p=p===B?1:i1(p),Je(c,p)):[]}function yv(c){for(var p=-1,u=c==null?0:c.length,d={};++p<u;){var m=c[p];d[m[0]]=m[1]}return d}function rf(c){return c&&c.length?c[0]:B}function Lv(c,p,u){var d=c==null?0:c.length;if(!d)return-1;var m=u==null?0:i1(u);return m<0&&(m=Ce(d+m,0)),w(c,p,m)}function vv(c){return c!=null&&c.length?z2(c,0,-1):[]}function Nv(c,p){return c==null?"":hw.call(c,p)}function a2(c){var p=c==null?0:c.length;return p?c[p-1]:B}function wv(c,p,u){var d=c==null?0:c.length;if(!d)return-1;var m=d;return u!==B&&(m=i1(u),m=m<0?Ce(d+m,0):Mt(m,d-1)),p===p?n1(c,p,m):D(c,k,m,!0)}function Dv(c,p){return c&&c.length?hd(c,i1(p)):B}function Mf(c,p){return c&&c.length&&p&&p.length?ds(c,p):c}function Bv(c,p,u){return c&&c.length&&p&&p.length?ds(c,p,$0(u,2)):c}function Tv(c,p,u){return c&&c.length&&p&&p.length?ds(c,p,B,u):c}function _v(c,p){var u=[];if(!c||!c.length)return u;var d=-1,m=[],L=c.length;for(p=$0(p,3) Line truncated
`;c.replace(N0,function(j0,d1,f1,ct,Xt,Fo){return f1||(f1=ct),s0+=c.slice(z0,Fo).replace(z8,_0),d1&&(m=!0,s0+=`' +
__e(`+d1+`) +
'`),Xt&&(L=!0,s0+=`';
`+Xt+`;
__p += '`),f1&&(s0+=`' +
((__t = (`+f1+`)) == null ? '' : __t) +
'`),z0=Fo+j0.length,j0}),s0+=`';
`;var I0=Y1.call(p,"variable")&&p.variable;if(I0){if(t8.test(I0))throw new Hs(Bb)}else s0=`with (obj) {
`+s0+`
}
`;s0=(L?s0.replace(xy,""):s0).replace(Fy,"$1").replace(Iy,"$1;"),s0="function("+(I0||"obj")+`) {
`+(I0?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(m?", __e = _.escape":"")+(L?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+s0+`return __p
}`;var b1=Kf(function(){return Lf(I,X0+"return "+s0).apply(B,H)});if(b1.source=s0,Ss(b1))throw b1;return b1}function EN(c){return j1(c).toLowerCase()}function SN(c){return j1(c).toUpperCase()}function XN(c,p,u){if(c=j1(c),c&&(u||p===B))return M0(c);if(!c||!(p=Yt(p)))return c;var d=J(c),m=J(p);return So(d,x0(d,m),m0(d,m)+1).join("")}function CN(c,p,u){if(c=j1(c),c&&(u||p===B))return c.slice(0,o0(c)+1);if(!c||!(p=Yt(p)))return c;var d=J(c);return So(d,0,m0(d,J(p))+1).join("")}function xN(c,p,u){if(c=j1(c),c&&(u||p===B))return c.replace(es,"");if(!c||!(p=Yt(p)))return c;var d=J(c);return So(d,x0(d,J(p))).join("")}function FN(c,p){var u=f0,d=h0;if(ae(p)){var m="separator"in p?p.separator:m;u="length"in p?i1(p.length):u,d="omission"in p?Yt(p.omission):d}c=j1(c);var L=c.length;if(T(c)){var X=J(c);L=X.length}if(u>=L)return c;var I=u-E(d);if(I<1)return d;var H=X?So(X,0,I).join(""):c.slice(0,I);if(m===B)return H+d;if(X&&(I+=H.length-I),nO(m)){if(c.slice(I).search(m)){var z0,r0=H;for(m.global||(m=$s(m.source,j1(kA.exec(m))+"g")),m.lastIndex=0;z0=m.exec(r0);)var s0=z0.index;H=H.slice(0,s0===B?I:s0)}}else if(c.indexOf(Yt(m),I)!=I){var N0=H.lastIndexOf(m);N0>-1&&(H=H.slice(0,N0))}return H+d}function IN(c){return c=j1(c),c&&Py.test(c)?c.replace(BA,j8):c}function gf(c,p,u){return c=j1(c),p=u?B:p,p===B?z1(c)?o1(c):R(c):c.match(p)||[]}function PN(c){var p=c==null?0:c.length,u=$0();return c=p?s(c,function(d){if(typeof d[1]!="function")throw new O2(Le);return[u(d[0]),d[1]]}):[],u1(function(d){for(var m=-1;++m<p;){var L=c[m];if(n(L[0],this,d))return n(L[1],this,d)}})}function UN(c){return qL(p2(c,U0))}function xs(c){return function(){return c}}function jN(c,p){return c==null||c!==c?p:c}function St(c){return c}function Fs(c){return Ad(typeof c=="function"?c:p2(c,U0))}function HN(c){return fd(p2(c,U0))}function $N(c,p){return qd(c,p2(p,U0))}function Is(c,p,u){var d=Ve(p),m=Li(p,d);u!=null||ae(p)&&(m.length||!d.length)||(u=p,p=c,c=this,m=Li(p,Ve(p)));var L=!(ae(u)&&"chain"in u&&!u.chain),X=Kn(c);return r(m,function(I){var H=p[I];c[I]=H,X&&(c.prototype[I]=function(){var z0=this.__chain__;if(L||z0){var r0=c(this.__wrapped__);return(r0.__actions__=_t(this.__actions__)).push({func:H,args:arguments,thisArg:c}),r0.__chain__=z0,r0}return H.apply(c,O([this.value()],arguments))})}),c}function YN(){return Ze._===this&&(Ze._=uw),this}function Ps(){}function VN(c){return c=i1(c),u1(function(p){return hd(p,c)})}function yf(c){return Bs(c)?v(un(c)):SL(c)}function GN(c){return function(p){return c==null?B:wr(c,p)}}function Us(){return[]}function js(){return!1}function KN(){return{}}function ZN(){return""}function JN(){return!0}function QN(c,p){if(c=i1(c),c<1||c>Ye)return[];var u=U1,d=Mt(c,U1);p=$0(p),c-=U1;for(var m=x(d,p);++u<c;)p(u);return m}function ew(c){return r1(c)?s(c,un):Vt(c)?[c]:_t(If(j1(c)))}function tw(c){var p=++sw;return j1(c)+p}function nw(c){return c&&c.length?yi(c,St,ss):B}function ow(c,p){return c&&c.length?yi(c,$0(p,2),ss):B}function rw(c){return g(c,St)}function Mw(c,p){return g(c,$0(p,2))}function bw(c){return c&&c.length?yi(c,St,As):B}function cw(c,p){return c&&c.length?yi(c,$0(p,2),As):B}function iw(c){return c&&c.length?Y(c,St):0}function pw(c,p){return c&&c.length?Y(c,$0(p,2)):0}t0=t0==null?Ze:sM.defaults(Ze.Object(),t0,sM.pick(Ze,T8));var Xe=t0.Array,ji=t0.Date,Hs=t0.Error,Lf=t0.Function,dM=t0.Math,Me=t0.Object,$s=t0.RegExp,zw=t0.String,O2=t0.TypeError,Hi=Xe.prototype,aw=Lf.prototype,fM=Me.prototype,$i=t0["__core-js_shared__"],Yi=aw.toString,Y1=fM.hasOwnProperty,sw=0,vf=function(){var c=/[^.]+$/.exec($i&&$i.keys&&$i.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Vi=fM.toString,Ow=Yi.call(Me),uw=Ze._,lw=$s("^"+Yi.call(Y1).replace(Qa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gi=ed?t0.Buffer:B,Xo=t0.Symbol,Ki=t0.Uint8Array,Nf=Gi?Gi.allocUnsafe:B,Zi=V(Me.getPrototypeOf,Me),wf=Me.create,Df=fM.propertyIsEnumerable,Ji=Hi.splice,Bf=Xo?Xo.isConcatSpreadable:B,Yb=Xo?Xo.iterator:B,Tr=Xo?Xo.toStringTag:B,Qi=function(){try{var c=Dr(Me,"defineProperty");return c({},"",{}),c}catch{}}(),Aw=t0.clearTimeout!==Ze.clearTimeout&&t0.clearTimeout,dw=ji&&ji.now!==Ze.Date.now&&ji.now,fw=t0.setTimeout!==Ze.setTimeout&&t0.setTimeout,ep=dM.ceil,tp=dM.floor,Ys=Me.getOwnPropertySymbols,qw=Gi?Gi.isBuffer:B,Tf=t0.isFinite,hw=Hi.join,Ww=V(Me.keys,Me),Ce=dM.max,Mt=dM.min,mw=ji.now,Rw=t0.parseInt,_f=dM.random,gw=Hi.reverse,Vs=Dr(t0,"DataView"),Vb=Dr(t0,"Map"),Gs=Dr(t0,"Promise"),qM=Dr(t0,"Set"),Gb=Dr(t0,"WeakMap"),Kb=Dr(Me,"create"),np=Gb&&new Gb,hM={},yw=Br(Vs),Lw=Br(Vb),vw=Br(Gs),Nw=Br(qM),ww=Br(Gb),op=Xo?Xo.prototype:B,Zb=op?op.valueOf:B,kf=op?op.toString:B,WM=function(){function c(){}return function(p){if(!ae(p))return{};if(wf)return wf(p);c.prototype=p;var u=new c;return c.prototype=B,u}}();q.templateSettings={escape:jy,evaluate:Hy,interpolate:_A,variable:"",imports:{_:q}},q.prototype=D0.prototype,q.prototype.constructor=q,H0.prototype=WM(D0.prototype),H0.prototype.constructor=H0,k0.prototype=WM(D Line truncated
`;break}case-3:{b=`\r
`;break}case-2:{b=t?" ":" ";break}case-1:{if(!t&&r)continue;b=" ";break}default:b=String.fromCharCode(M)}r=M===-2,o.push(b)}return o.join("")}const TS={42:xt,43:xt,45:xt,48:xt,49:xt,50:xt,51:xt,52:xt,53:xt,54:xt,55:xt,56:xt,57:xt,62:v6},_S={91:kE},kS={[-2]:fO,[-1]:fO,32:fO},ES={35:FE,42:_p,45:[aq,_p],60:jE,61:aq,95:_p,96:pq,126:pq},SS={38:w6,92:N6},XS={[-5]:qO,[-4]:qO,[-3]:qO,33:iS,38:w6,42:B3,60:[zE,ZE],91:zS,92:[CE,N6],93:nl,95:B3,96:RE},CS={null:[B3,yS]},xS={null:[42,95]},FS={null:[]},IS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:xS,contentInitial:_S,disable:FS,document:TS,flow:ES,flowInitial:kS,insideSpan:CS,string:SS,text:XS},Symbol.toStringTag,{value:"Module"}));function PS(e){const n=Gk([IS,...(e||{}).extensions||[]]),o={defined:[],lazy:{},constructs:n,content:r(oE),document:r(ME),flow:r(RS),string:r(LS),text:r(vS)};return o;function r(M){return b;function b(i){return wS(o,M,i)}}}function US(e){for(;!D6(e););return e}const sq=/[\0\t\n\r]/g;function jS(){let e=1,t="",n=!0,o;return r;function r(M,b,i){const z=[];let a,s,O,l,A;for(M=t+(typeof M=="string"?M.toString():new TextDecoder(b||void 0).decode(M)),O=0,t="",n&&(M.charCodeAt(0)===65279&&O++,n=void 0);O<M.length;){if(sq.lastIndex=O,a=sq.exec(M),l=a&&a.index!==void 0?a.index:M.length,A=M.charCodeAt(l),!a){t=M.slice(O);break}if(A===10&&O===l&&o)z.push(-3),o=void 0;else switch(o&&(z.push(-5),o=void 0),O<l&&(z.push(M.slice(O,l)),e+=l-O),A){case 0:{z.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,z.push(-2);e++<s;)z.push(-1);break}case 10:{z.push(-4),e=1;break}default:o=!0,e=1}O=l+1}return i&&(o&&z.push(-5),t&&z.push(t),z.push(null)),z}}const HS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function S6(e){return e.replace(HS,$S)}function $S(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),M=r===120||r===88;return L6(n.slice(M?2:1),M?16:10)}return el(n)||e}function kp(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Oq(e.position):"start"in e||"end"in e?Oq(e):"line"in e||"column"in e?T3(e):""}function T3(e){return uq(e&&e.line)+":"+uq(e&&e.column)}function Oq(e){return T3(e&&e.start)+"-"+T3(e&&e.end)}function uq(e){return e&&typeof e=="number"?e:1}const X6={}.hasOwnProperty;function Dc(e,t,n){return typeof t!="string"&&(n=t,t=void 0),YS(n)(US(PS(n).document().write(jS()(e,t,!0))))}function YS(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:M(B),autolinkProtocol:j,autolinkEmail:j,atxHeading:M(o0),blockQuote:M(K0),characterEscape:j,characterReference:j,codeFenced:M(v1),codeFencedFenceInfo:b,codeFencedFenceMeta:b,codeIndented:M(v1,b),codeText:M(n1,b),codeTextData:j,data:j,codeFlowValue:j,definition:M(E),definitionDestinationString:b,definitionLabelString:b,definitionTitleString:b,emphasis:M(J),hardBreakEscape:M(A0),hardBreakTrailing:M(A0),htmlFlow:M(F0,b),htmlFlowData:j,htmlText:M(F0,b),htmlTextData:j,image:M(o1),label:b,link:M(B),listItem:M(x1),listItemValue:l,listOrdered:M(O1,O),listUnordered:M(O1),paragraph:M(Do),reference:T,referenceString:b,resourceDestinationString:b,resourceTitleString:b,setextHeading:M(o0),strong:M(Le),thematicBreak:M(gr)},exit:{atxHeading:z(),atxHeadingSequence:k,autolink:z(),autolinkEmail:L0,autolinkProtocol:a0,blockQuote:z(),characterEscapeValue:K,characterReferenceMarkerHexadecimal:W0,characterReferenceMarkerNumeric:W0,characterReferenceValue:p0,characterReference:V,codeFenced:z(R),codeFencedFence:h,codeFencedFenceInfo:A,codeFencedFenceMeta:f,codeFlowValue:K,codeIndented:z(W),codeText:z(e0),codeTextData:K,data:K,definition:z(),definitionDestinationString:N,definitionLabelString:D,definitionTitleString:w,emphasis:z(),hardBreakEscape:z(x),hardBreakTrailing:z(x),htmlFlow:z(G),htmlFlowData:K,htmlText:z(M0),htmlTextData:K,image:z(Q),label:m0,labelText:x0,lineEnding:Y,link:z(c0),listItem:z(),listOrdered:z(),listUnordered:z(),paragraph:z(),referenceString:z1,resourceDestinationString:_,resourceTitleString:_0,resource:V0,setextHeading:z(S),setextHeadingLineSequence:v,setextHeadingText:g,strong:z(),thematicBreak:z()}};C6(t,(e||{}).mdastExtensions||[]);const n={};return o;function o(n0){let q0={type:"root",children:[]};const U0={stack:[q0],tokenStack:[],config:t,enter:i,exit:a,buffer:b,resume:s,data:n},a1=[];let N1=-1;for(;++N1<n0.length;)if(n0[N1][1].type==="listOrdered"||n0[N1][1].type==="listUnordered")if(n0[N1][0]==="enter")a1.push(N1);else{const ve=a1.pop();N1=r(n0,ve,N1)}for(N1=-1;++N1<n0.length;){const ve=t[n0[N1][0]];X6.call(ve,n0[N1][1].type)&&ve[n0[N1][1].type].call(Object.assign({sliceSerialize:n0[N1][2].sliceSerialize},U0),n0[N1][1])}if(U0.tokenStack.length>0){const ve=U0.tokenStack[U0.tokenStack.length-1];(ve[1]||lq).call(U0,void 0,ve[0])}for(q0.position={start:Uo(n0.length>0?n0[0][1].start:{line:1,column:1,offset:0}),end:Uo(n0.length>0?n0[n0.length-2][1].end:{line:1,column:1,offset:0})},N1=-1;++N1<t.transforms.length;)q0=t.transforms[N1](q0)||q0;return q0}function r(n0,q0,U0)Line truncated
`&&F6(n.stack,n.unsafe[r]))return/[ \t]/.test(o.before)?"":" ";return`\\
`}function eX(e,t){const n=String(e);let o=n.indexOf(t),r=o,M=0,b=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===r?++M>b&&(b=M):M=1,r=o+t.length,o=n.indexOf(t,r);return b}function _3(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function tX(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function nX(e,t,n,o){const r=tX(n),M=e.value||"",b=r==="`"?"GraveAccent":"Tilde";if(_3(e,n)){const O=n.enter("codeIndented"),l=n.indentLines(M,oX);return O(),l}const i=n.createTracker(o),z=r.repeat(Math.max(eX(M,r)+1,3)),a=n.enter("codeFenced");let s=i.move(z);if(e.lang){const O=n.enter(`codeFencedLang${b}`);s+=i.move(n.safe(e.lang,{before:s,after:" ",encode:["`"],...i.current()})),O()}if(e.lang&&e.meta){const O=n.enter(`codeFencedMeta${b}`);s+=i.move(" "),s+=i.move(n.safe(e.meta,{before:s,after:`
`,encode:["`"],...i.current()})),O()}return s+=i.move(`
`),M&&(s+=i.move(M+`
`)),s+=i.move(z),a(),s}function oX(e,t,n){return(n?"":" ")+e}function ol(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function rX(e,t,n,o){const r=ol(n),M=r==='"'?"Quote":"Apostrophe",b=n.enter("definition");let i=n.enter("label");const z=n.createTracker(o);let a=z.move("[");return a+=z.move(n.safe(n.associationId(e),{before:a,after:"]",...z.current()})),a+=z.move("]: "),i(),!e.url||/[\0- \u007F]/.test(e.url)?(i=n.enter("destinationLiteral"),a+=z.move("<"),a+=z.move(n.safe(e.url,{before:a,after:">",...z.current()})),a+=z.move(">")):(i=n.enter("destinationRaw"),a+=z.move(n.safe(e.url,{before:a,after:e.title?" ":`
`,...z.current()}))),i(),e.title&&(i=n.enter(`title${M}`),a+=z.move(" "+r),a+=z.move(n.safe(e.title,{before:a,after:r,...z.current()})),a+=z.move(r),i()),b(),a}function MX(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}I6.peek=bX;function I6(e,t,n,o){const r=MX(n),M=n.enter("emphasis"),b=n.createTracker(o);let i=b.move(r);return i+=b.move(n.containerPhrasing(e,{before:i,after:r,...b.current()})),i+=b.move(r),M(),i}function bX(e,t,n){return n.options.emphasis||"*"}const rl=function(e){if(e==null)return zX;if(typeof e=="function")return ea(e);if(typeof e=="object")return Array.isArray(e)?cX(e):iX(e);if(typeof e=="string")return pX(e);throw new Error("Expected function, string, or object as test")};function cX(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=rl(e[n]);return ea(o);function o(...r){let M=-1;for(;++M<t.length;)if(t[M].apply(this,r))return!0;return!1}}function iX(e){const t=e;return ea(n);function n(o){const r=o;let M;for(M in e)if(r[M]!==t[M])return!1;return!0}}function pX(e){return ea(t);function t(n){return n&&n.type===e}}function ea(e){return t;function t(n,o,r){return!!(aX(n)&&e.call(this,n,typeof o=="number"?o:void 0,r||void 0))}}function zX(){return!0}function aX(e){return e!==null&&typeof e=="object"&&"type"in e}const P6=[],sX=!0,k3=!1,OX="skip";function uX(e,t,n,o){let r;typeof t=="function"&&typeof n!="function"?(o=n,n=t):r=t;const M=rl(r),b=o?-1:1;i(e,void 0,[])();function i(z,a,s){const O=z&&typeof z=="object"?z:{};if(typeof O.type=="string"){const A=typeof O.tagName=="string"?O.tagName:typeof O.name=="string"?O.name:void 0;Object.defineProperty(l,"name",{value:"node ("+(z.type+(A?"<"+A+">":""))+")"})}return l;function l(){let A=P6,f,h,R;if((!t||M(z,a,s[s.length-1]||void 0))&&(A=lX(n(z,s)),A[0]===k3))return A;if("children"in z&&z.children){const W=z;if(W.children&&A[0]!==OX)for(h=(o?W.children.length:-1)+b,R=s.concat(W);h>-1&&h<W.children.length;){const D=W.children[h];if(f=i(D,h,R)(),f[0]===k3)return f;h=typeof f[1]=="number"?f[1]:h+b}}return A}}}function lX(e){return Array.isArray(e)?e:typeof e=="number"?[sX,e]:e==null?P6:[e]}function AX(e,t,n,o){let r,M,b;typeof t=="function"&&typeof n!="function"?(M=void 0,b=t,r=n):(M=t,b=n,r=o),uX(e,M,i,r);function i(z,a){const s=a[a.length-1],O=s?s.children.indexOf(z):void 0;return b(z,O,s)}}function U6(e,t){let n=!1;return AX(e,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return n=!0,k3}),!!((!e.depth||e.depth<3)&&Qu(e)&&(t.options.setext||n))}function dX(e,t,n,o){const r=Math.max(Math.min(6,e.depth||1),1),M=n.createTracker(o);if(U6(e,n)){const s=n.enter("headingSetext"),O=n.enter("phrasing"),l=n.containerPhrasing(e,{...M.current(),before:`
`,after:`
`});return O(),s(),l+`
`+(r===1?"=":"-").repeat(l.length-(Math.max(l.lastIndexOf("\r"),l.lastIndexOf(`
`))+1))}const b="#".repeat(r),i=n.enter("headingAtx"),z=n.enter("phrasing");M.move(b+" ");let a=n.containerPhrasing(e,{before:"# ",after:`
`,...M.current()});return/^[\t ]/.test(a)&&(a="&#x"+a.charCodeAt(0).toString(16).toUpperCase()+";"+a.slice(1)),a=a?b+" "+a:b,n.options.closeAtx&&(a+=" "+b),z(),i(),a}j6.peek=fX;function j6(e){return e.value||""}function fX(){return"<"}H6.peek=qX;function H6(e,t,n,o){const r=ol(n),M=r==='"'?"Quote":"Apostrophe",b=n.enter("image");let i=n.enter("label");const z=n.createTracker(o);let a=z.move("![");return a+=z.move(n.safe(e.alt,{before:a,after:"]",...z.current()})),a+=z.move("]("),i(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(i=n.enter("destinationLiteral"),a+=z.move("<"),a+=z.move(n.safe(e.url,{before:a,after:">",...z.current()})),a+=z.move(">")):(i=n.enter("destinationRaw"),a+=z.move(n.safe(e.url,{before:a,after:e.title?" ":")",...z.current()}))),i(),e.title&&(i=n.enter(`title${M}`),a+=z.move(" "+r),a+=z.move(n.safe(e.title,{before:a,after:r,...z.current()})),a+=z.move(r),i()),a+=z.move(")"),b(),a}function qX(){return"!"}$6.peek=hX;function $6(e,t,n,o){const r=e.referenceType,M=n.enter("imageReference");let b=n.enter("label");const i=n.createTracker(o);let z=i.move("![");const a=n.safe(e.alt,{before:z,after:"]",...i.current()});z+=i.move(a+"]["),b();const s=n.stack;n.stack=[],b=n.enter("reference");const O=n.safe(n.associationId(e),{before:z,after:"]",...i.current()});return b(),n.stack=s,M(),r==="full"||!a||a!==O?z+=i.move(O+"]"):r==="shortcut"?z=z.slice(0,-1):z+=i.move("]"),z}function hX(){return"!"}Y6.peek=WX;function Y6(e,t,n){let o=e.value||"",r="`",M=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(o);)r+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++M<n.unsafe.length;){const b=n.unsafe[M],i=n.compilePattern(b);let z;if(b.atBreak)for(;z=i.exec(o);){let a=z.index;o.charCodeAt(a)===10&&o.charCodeAt(a-1)===13&&a--,o=o.slice(0,a)+" "+o.slice(z.index+1)}}return r+o+r}function WX(){return"`"}function V6(e,t){const n=Qu(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}G6.peek=mX;function G6(e,t,n,o){const r=ol(n),M=r==='"'?"Quote":"Apostrophe",b=n.createTracker(o);let i,z;if(V6(e,n)){const s=n.stack;n.stack=[],i=n.enter("autolink");let O=b.move("<");return O+=b.move(n.containerPhrasing(e,{before:O,after:">",...b.current()})),O+=b.move(">"),i(),n.stack=s,O}i=n.enter("link"),z=n.enter("label");let a=b.move("[");return a+=b.move(n.containerPhrasing(e,{before:a,after:"](",...b.current()})),a+=b.move("]("),z(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(z=n.enter("destinationLiteral"),a+=b.move("<"),a+=b.move(n.safe(e.url,{before:a,after:">",...b.current()})),a+=b.move(">")):(z=n.enter("destinationRaw"),a+=b.move(n.safe(e.url,{before:a,after:e.title?" ":")",...b.current()}))),z(),e.title&&(z=n.enter(`title${M}`),a+=b.move(" "+r),a+=b.move(n.safe(e.title,{before:a,after:r,...b.current()})),a+=b.move(r),z()),a+=b.move(")"),i(),a}function mX(e,t,n){return V6(e,n)?"<":"["}K6.peek=RX;function K6(e,t,n,o){const r=e.referenceType,M=n.enter("linkReference");let b=n.enter("label");const i=n.createTracker(o);let z=i.move("[");const a=n.containerPhrasing(e,{before:z,after:"]",...i.current()});z+=i.move(a+"]["),b();const s=n.stack;n.stack=[],b=n.enter("reference");const O=n.safe(n.associationId(e),{before:z,after:"]",...i.current()});return b(),n.stack=s,M(),r==="full"||!a||a!==O?z+=i.move(O+"]"):r==="shortcut"?z=z.slice(0,-1):z+=i.move("]"),z}function RX(){return"["}function Ml(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function gX(e){const t=Ml(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function yX(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Z6(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function LX(e,t,n,o){const r=n.enter("list"),M=n.bulletCurrent;let b=e.ordered?yX(n):Ml(n);const i=e.ordered?b==="."?")":".":gX(n);let z=t&&n.bulletLastUsed?b===n.bulletLastUsed:!1;if(!e.ordered){const s=e.children?e.children[0]:void 0;if((b==="*"||b==="-")&&s&&(!s.children||!s.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(z=!0),Z6(n)Line truncated
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Sr},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Sr},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:Sr},{atBreak:!0,character:"+",after:`(?:[ \r
])`},{atBreak:!0,character:"-",after:`(?:[ \r
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Sr},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Sr},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Sr},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Sr},{atBreak:!0,character:"~"}];function IX(e){return e.label||!e.identifier?e.label||"":S6(e.identifier)}function PX(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function UX(e,t,n){const o=t.indexStack,r=e.children||[],M=[];let b=-1,i=n.before;o.push(-1);let z=t.createTracker(n);for(;++b<r.length;){const a=r[b];let s;if(o[o.length-1]=b,b+1<r.length){let O=t.handle.handlers[r[b+1].type];O&&O.peek&&(O=O.peek),s=O?O(r[b+1],e,t,{before:"",after:"",...z.current()}).charAt(0):""}else s=n.after;M.length>0&&(i==="\r"||i===`
`)&&a.type==="html"&&(M[M.length-1]=M[M.length-1].replace(/(\r?\n|\r)$/," "),i=" ",z=t.createTracker(n),z.move(M.join(""))),M.push(z.move(t.handle(a,e,t,{...z.current(),before:i,after:s}))),i=M[M.length-1].slice(-1)}return o.pop(),M.join("")}function jX(e,t,n){const o=t.indexStack,r=e.children||[],M=t.createTracker(n),b=[];let i=-1;for(o.push(-1);++i<r.length;){const z=r[i];o[o.length-1]=i,b.push(M.move(t.handle(z,e,t,{before:`
`,after:`
`,...M.current()}))),z.type!=="list"&&(t.bulletLastUsed=void 0),i<r.length-1&&b.push(M.move(HX(z,r[i+1],e,t)))}return o.pop(),b.join("")}function HX(e,t,n,o){let r=o.join.length;for(;r--;){const M=o.join[r](e,t,n,o);if(M===!0||M===1)break;if(typeof M=="number")return`
`.repeat(1+M);if(M===!1)return`
<!---->
`}return`
`}const $X=/\r?\n|\r/g;function YX(e,t){const n=[];let o=0,r=0,M;for(;M=$X.exec(e);)b(e.slice(o,M.index)),n.push(M[0]),o=M.index+M[0].length,r++;return b(e.slice(o)),n.join("");function b(i){n.push(t(i,r,!i))}}function VX(e,t,n){const o=(n.before||"")+(t||"")+(n.after||""),r=[],M=[],b={};let i=-1;for(;++i<e.unsafe.length;){const s=e.unsafe[i];if(!F6(e.stack,s))continue;const O=e.compilePattern(s);let l;for(;l=O.exec(o);){const A="before"in s||!!s.atBreak,f="after"in s,h=l.index+(A?l[1].length:0);r.includes(h)?(b[h].before&&!A&&(b[h].before=!1),b[h].after&&!f&&(b[h].after=!1)):(r.push(h),b[h]={before:A,after:f})}}r.sort(GX);let z=n.before?n.before.length:0;const a=o.length-(n.after?n.after.length:0);for(i=-1;++i<r.length;){const s=r[i];s<z||s>=a||s+1<a&&r[i+1]===s+1&&b[s].after&&!b[s+1].before&&!b[s+1].after||r[i-1]===s-1&&b[s].before&&!b[s-1].before&&!b[s-1].after||(z!==s&&M.push(hq(o.slice(z,s),"\\")),z=s,/[!-/:-@[-`{-~]/.test(o.charAt(s))&&(!n.encode||!n.encode.includes(o.charAt(s)))?M.push("\\"):(M.push("&#x"+o.charCodeAt(s).toString(16).toUpperCase()+";"),z++))}return M.push(hq(o.slice(z,a),n.after)),M.join("")}function GX(e,t){return e-t}function hq(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,o=[],r=[],M=e+t;let b=-1,i=0,z;for(;z=n.exec(M);)o.push(z.index);for(;++b<o.length;)i!==o[b]&&r.push(e.slice(i,o[b])),r.push("\\"),i=o[b];return r.push(e.slice(i)),r.join("")}function KX(e){const t=e||{},n=t.now||{};let o=t.lineShift||0,r=n.line||1,M=n.column||1;return{move:z,current:b,shift:i};function b(){return{now:{line:r,column:M},lineShift:o}}function i(a){o+=a}function z(a){const s=a||"",O=s.split(/\r?\n|\r/g),l=O[O.length-1];return r+=O.length-1,M=O.length===1?M+l.length:1+l.length+o,s}}function ZX(e,t={}){const n={enter:r,indentLines:YX,associationId:IX,containerPhrasing:tC,containerFlow:nC,createTracker:KX,compilePattern:PX,safe:oC,stack:[],unsafe:[...FX],join:[...CX],handlers:{...XX},options:{},indexStack:[],handle:void 0};x6(n,t),n.options.tightDefinitions&&n.join.push(eC),n.handle=GS("type",{invalid:JX,unknown:QX,handlers:n.handlers});let o=n.handle(e,void 0,n,{before:`
`,after:`
`,now:{line:1,column:1},lineShift:0});return o&&o.charCodeAt(o.length-1)!==10&&o.charCodeAt(o.length-1)!==13&&(o+=`
`),o;function r(M){return n.stack.push(M),b;function b(){n.stack.pop()}}}function JX(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function QX(e){const t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function eC(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function tC(e,t){return UX(e,this,t)}function nC(e,t){return jX(e,this,t)}function oC(e,t){return VX(this,e,t)}function rC(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=Array.from(typeof e=="string"?[e]:e);o[o.length-1]=o[o.length-1].replace(/\r?\n([\t ]*)$/,"");var r=o.reduce(function(i,z){var a=z.match(/\n([\t ]+|(?!\s).)/g);return a?i.concat(a.map(function(s){var O,l;return(l=(O=s.match(/[\t ]/g))===null||O===void 0?void 0:O.length)!==null&&l!==void 0?l:0})):i},[]);if(r.length){var M=new RegExp(`
[ ]{`+Math.min.apply(Math,r)+"}","g");o=o.map(function(i){return i.replace(M,`
`)})}o[0]=o[0].replace(/^\r?\n/,"");var b=o[0];return t.forEach(function(i,z){var a=b.match(/(?:^|\n)( *)$/),s=a?a[1]:"",O=i;typeof i=="string"&&i.includes(`
`)&&(O=String(i).split(`
`).map(function(l,A){return A===0?l:""+s+l}).join(`
`)),b+=O+o[z+1]}),b}const MC="[-*+]",bC="\\d+[.)]",Q6=`(${MC}|${bC})`,cC=`\\s*${Q6}\\s+`,iC="\\s*\\[(?<completion>[^\\]])]\\s+",em="\\s?-{1,2}\\s?",tm="\\d{1,2}",nm="\\d{2}",pC="[:. ]",zC=":",om="\\s?[apAP][mM](?!\\w)",bl="\\d{4}-\\d{2}-\\d{2}",E3=`(${tm})(?:${pC}?(${nm}))?(${om})?`,Wq=`${tm}${zC}${nm}(${om})?`,aC=new RegExp(cC),sC=new RegExp(iC),OC=new RegExp(E3),uC=/^(#+)\s/,lC=/\s\^[a-z1-9-]+$/i,Bc=new RegExp(`^(?<start>${E3})(?:${em}(?<end>${E3}))?`,"im"),Tc=new RegExp(`(?<start>${Wq})(?:${em}(?<end>${Wq}))?`,"im"),rm=new RegExp(`(\\[scheduled\\s*::\\s*)${bl}(\\])`),Mm=new RegExp(`(\\(scheduled\\s*::\\s*)${bl}(\\))`),cl=new RegExp(`(⏳\\s*)${bl}`),AC=[rm,Mm,cl],bm=/\[([^\]]+)::([^\]]+)\]/g,dC=/(-|\d+[.)])\s+/g,fC=/\\\[/g,qC=new RegExp(`^( {4})+(?=${Q6})`,"gm"),hC=/\n+/g,WC=" ";function mC(e){return e.includes("[ ]")?e.replace("[ ]","[x]"):e.replace("[x]","[ ]")}function RC(e,t){return`${"#".repeat(e)} ${t}`}function gC(e,t,n){const o=e.split(`
`),r=o[t];return t1.isNotVoid(r,`No line #${t} in text with ${o.length} lines`),o[t]=n(r),o.join(`
`)}function yC(e){return e.replaceAll(hC,`
`)}function cm(e,t){return e.map(n=>`${t}${n}`)}function im(e,t){return cm(e.split(`
`),t).join(`
`)}function Qr(e){return e.split(`
`)[0]}function pm(e){return e.split(`
`).slice(1).join(`
`)}function il(e){return e.replace(aC,"").replace(sC,"")}function LC(e){return WC.repeat(e)}function vC(e){return`[${e}]`}function NC(e,t){let n=e;return e.length>0&&(n=n.trimEnd(),n=n.concat(`
`,`
`)),n.concat(t,`
`,`
`)}function pl(e,t,n,o){if(t.trim().length===0)return e;const r=DC(e,t);if((r==null?void 0:r.start)===void 0){if(o!=null&&o.createHeading){const{plannerHeadingLevel:O,plannerHeading:l}=o.settings,A=NC(e,RC(O,l));return pl(A,t,n)}return e}const M=e.split(`
`),b=M.slice(0,r.start),i=r.start+r.length,z=M.slice(r.start,i).join(`
`),a=M.slice(i),s=n(z).split(`
`);return b.concat(s,a).join(`
`)}function wC(e){const t=uC.exec(e);if(!t)return;const[,n]=t;return{level:n.length}}function DC(e,t){const n=e.split(`
`),o={start:void 0,length:0,level:0};for(let r=0;r<n.length;r++){const M=n[r],b=wC(M);if(o.start!==void 0){if(b&&b.level<=o.level)return o;o.length++}else b&&M.includes(t)&&(o.start=r,o.level=b.level,o.length=1)}if(o.start!==void 0)return o}const zm=window.moment;function Ut(e){return e.diff(e.clone().startOf("day"),"minutes")}function cr(e,t){return Math.abs(e.diff(t,"minutes"))}function BC(e,t){const n=e.startOf("isoWeek"),o={monday:0,sunday:1,saturday:2,friday:3};return n.subtract(o[t],"days")}function am(e,t){return t.clone().startOf("day").add(e,"minutes")}function TC(e){return zm().startOf("day").add(e,"minutes")}function _C(e){return zm().startOf("day").add(e,"hours")}function kC(e,t){return e.clone().add(t,"minutes")}function mq(e,t,n){return n.isBefore(e)?"past":t.isAfter(e)?"future":"present"}function zl(e,t,n=[]){const o=e.clone().endOf("day");if(t.isBefore(o))return[...n,[e,t]];const r=e.clone().add(1,"day").startOf("day");return zl(r,t,[...n,[e,o]])}function EC(e){return e.isoWeekday()===6||e.isoWeekday()===7}function SC(e,t){return window.moment.utc(t.diff(e,"milliseconds"))}function XC(e,t){return e.isSameOrAfter(t.start)&&e.isBefore(t.end)}function al(e,t){return e.start.isBefore(t.end)&&e.end.isAfter(t.start)}function Rq(e,t){const n=OC.exec(e);if(n===null)throw new Error(`${e} is not a valid timestamp`);const[,o,r,M]=n;let b=parseInt(o);if(isNaN(b))throw new Error(`${e} is not a valid timestamp`);const i=parseInt(r)||0;(M==null?void 0:M.toLowerCase().trim())==="pm"&&b<12&&(b+=12),(M==null?void 0:M.toLowerCase().trim())==="am"&&b===12&&(b=0);const z=window.moment.duration({hours:b,minutes:i});return t.clone().startOf("day").add(z)}function CC(e){const t=e.trim();return Bc.exec(t)||Tc.exec(t)}function xC(e){const t=e.trim();return Bc.test(t)||Tc.test(t)}function FC(e,t){return Bc.test(e)?e.replace(Bc,t):Tc.test(e)?e.replace(Tc,t):`${t} ${e}`}function S3({line:e,day:t}){const n=CC(e);if(!(n!=null&&n.groups))return null;const{groups:{start:o,end:r}}=n,M=Rq(o,t);let b;if(r){const i=Rq(r,t);i.isAfter(M)?b=cr(i,M):b=cr(M,i.clone().add(1,"day"))}return{startTime:M,durationMinutes:b}}function IC(e){return e.status?e.text:`${il(Qr(e.text))}
${rC(pm(e.text)).trimStart()}`}function PC(e,t){const n=window.moment(),o=S3({line:e,day:n}),r=S3({line:t,day:n});return!o&&!r?0:o?r?o.startTime.diff(r.startTime):-1:1}function sl(e){return KC(ZX(e,{bullet:"-",listItemIndent:"tab"}).replace(dC,"- ").replace(fC,"["))}function UC(e){const t=Dc(e),n={...t,children:t.children.map(o=>Ol(o,sm))};return sl(n)}function Ol(e,t=jC){return um(e)?{...e,children:e.children.map(n=>({...n,children:n.children.map(o=>Ol(o,t))})).toSorted(t)}:e}function X3(e,t){if(t(e))return e;if(Om(e))for(const n of e.children){const o=X3(n,t);if(o)return o}}function gq(e,t,n){return hn(e,o=>{const r=o.children.findIndex(M=>yq(M)&&QM(M)===t);if(r>=0){const M=o.children.slice(r+1),b=M.findIndex(s=>yq(s)),i=b===-1?void 0:b,a=M.slice(0,i).find(s=>um(s));a?a.children.push(n):o.children.splice(r+1,0,{type:"list",children:[n]})}else o.children.push({type:"heading",depth:1,children:[{type:"text",value:t}]},{type:"list",children:[n]})})}function jC(e,t){const n=QM(e),o=QM(t);return n.localeCompare(o)}function sm(e,t){const n=QM(e),o=QM(t);return PC(n,o)}function QM(e){if(Om(e)){if(e.children.length===0)return"";const t=e.children[0];return t1.isNotVoid(t),QM(t)}return HC(e)?e.value:""}function Om(e){return Object.hasOwn(e,"children")}function HC(e){return e.type==="text"}function $C(e){return t1.isExactly(e.type,"heading")}function YC(e){return t1.isExactly(e.type,"list")}function C3(e){return t1.isExactly(e.type,"listItem")}const um=t1.check(YC),yq=t1.check($C),Lq=t1.check(C3);function VC({start:e,end:t},n){return(e.line<n.line||e.line===n.line&&e.column<=n.column)&&(t.line>n.line||t.line===n.line&&t.column>=n.column)}function vq(e){return{line:e.line-1,ch:e.column-1}}function GC(e){return{line:e.line+1,column:e.ch+1}}function KC(e){return e.replace(qC,t=>{const n=t.length/vk;return" ".repeat(n)})}var D1=(e=>(e.DRAG="DRAG",e.DRAG_AND_SHIFT_OTHERS="DRAG_AND_SHIFT_OTHERS",e.DRAG_AND_SHRINK_OTHERS="DRAG_AND_SHRINK_OTHERS",e.RESIZE="RESIZE",e.RESIZE_FROM_TOP="RESIZE_FROM_TOP",e.RESIZE_AND_SHIFT_OTHERS="RESIZE_AND_SHIFT_OTHERS",e.RESIZE_FROM_TOP_AND_SHIFT_OTHERS="RESIZE_FROM_TOP_AND_SHIFT_OTHERS",e.RESIZE_AND_SHRINK_OTHERS="RESIZE_AND_SHRINK_OTHERS",e.RESIZE_FROM_TOP_AND_SHRINK_OTHERS="RESIZE_FROM_TOP_AND_SHRINK_OTHERS",e.CREATE="CREATE",e.SCHEDULE_SEARCH_RESULT="SCHEDULE_SEARCH_RESULT",e))(D1||{});async function x3(e){return gu(e,Ru())||mu(e)}function Nq(e){const{format:t=LB,folder:n="."}=vB();let o=e.format(t);return o.endsWith(".md")||(o+=".md"),w0.normalizePath(ZC(n,o))}function ZC(...e){let t=[];for(let o=0,r=e.length;o<r;o++)t=t.concat(e[o].split("/"));const n=[];for(let o=0,r=t.length;o<r;o++){const M=t[o];!M||M==="."||n.push(M)}return t[0]===""&&n.unshift(""),n.join("/")}const JC=["task","bullet"],QC=["monday","sunday","saturday","friday"],ta={snapStepMinutes:10,progressIndicator:"mini-timeline",showTaskNotification:!1,zoomLevel:2,timelineIcon:"calendar-with-checkmark",endLabel:"All done",startHour:6,timelineDateFormat:Mi,centerNeedle:!1,plannerHeading:"Day planner",plannerHeadingLevel:1,timelineColored:!1,timelineStartColor:"#006466",timelineEndColor:"#4d194d",timestampFormat:"HH:mm",hourFormat:"H",dataviewSource:"",extendDurationUntilNext:!1,defaultDurationMinutes:30,minimalDurationMinutes:10,showTimestampInTaskBlock:!1,showUncheduledTasks:!0,showUnscheduledNestedTasks:!0,showNow:!0,showNext:!0,pluginVersion:"",showCompletedTasks:!0,showSubtasksInTaskBlocks:!0,icals:[],colorOverrides:[],releaseNotes:!0,taskStatusOnCreation:" ",eventFormatOnCreation:"task",sortTasksInPlanAfterEdit:!1,firstDayOfWeek:"monday",multiDayRange:"3-days",showTimeTracker:!1,showActiveClocks:!1};({...ta});const V1=Q2(ta),ex=Dn(V1);function bi(e){return Object.hasOwn(e,"calendar")}function tx(e){return Object.hasOwn(e,"text")}function nx(e,t,n="default"){return n==="default"?`[${e}::${t}]`:`(${e}::${t})`}function ox(e,t){const n=[...e.matchAll(bm)];if(n.length===0)throw new Error(`Did not find a prop in line: '${e}'`);const o=n[0],[,r,M]=o;return`[${r}::${t(M)}]`}function rx(e){return e.replaceAll(bm,"").trim()}function Mx(e,t){return e.replace(cl,`$1${t}`).replace(rm,`$1${t}$2`).replace(Mm,`$1${t}$2`)}function bx(e,t){return Lx(e,` ${t}`)}function cx(e){return e.split(Vz).map(t=>window.moment(t))}function ix(e){return e.length===2&&e.every(t=>t.isValid())}function lm(e){return Object.hasOwn(e,br)}function ul(e){return lm(e)?Array.isArray(e[br])?e[br].some(F3):F3(e[br]):!1}function F3(e){return!String(e).includes(Vz)}function Am(){return window.moment().format(Wk)}function px(){return nx(br,Am())}function zx(e){return ox(e,t=>`${t}${Vz}${Am()}`)}function dm(e){return e.includes(br)&&!e.includes(Vz)}function ax(e){return{...e,text:`${e.text.trimEnd()}
${px()}`}}function fm(e){return{...e,text:qm(Z1.filter(t=>!dm(t)),e.text)}}function qm(e,t){return e(t.split(`
`)).join(`
`)}function hm(e){return{...e,text:qm(Z1.map(t=>dm(t)?zx(t):t),e.text)}}function wq(e){if(!ul(e))throw new Error("The task has no active clocks");return e}function sx(e){if(ul(e))throw new Error("The task already has an active clock");return e}function Wb(){return Math.random().toString(16).slice(2)}function ll(e){return Array.isArray(e)?e:[e]}function Ox(e){const t=e.status===void 0;return" ".repeat(t?Rk:mk)}function Wm(e){const t=Ox(e),[n,...o]=e.text.split(`
`);return[`${mm(e)} ${n}`,...cm(o,t)].join(`
`)}const ux=" ";function Al(e,t=""){const n=im(Wm(e),t);return e.children.reduce((o,r)=>{const M=`${ux}${t}`;return`${o}
${Al(r,M)}`},n)}function dl(e,t=[]){t.push({text:e.text,line:e.line,task:e.task});for(const n of e.children)dl(n,t);return t}function lx(e){const{sTask:t,clockMoments:n}=e,[o,r]=n;let M=r.diff(o,"minutes");return M<0&&(M=l6),{...na(t,window.moment()),isAllDayEvent:!1,startTime:o,durationMinutes:M}}function Ax(e,t){return{...na(e,t),isAllDayEvent:!1,startTime:t}}function na(e,t){return{isAllDayEvent:!0,startTime:t,durationMinutes:l6,symbol:e.symbol,status:e.status,text:Al(e),lines:dl(e),location:{path:e.path,line:e.line,position:e.position},id:Wb()}}function dx(e,t){const n=S3({line:Qr(e.text),day:t});t1.isNotVoid(n,`Unexpectedly received an STask without a timestamp: ${e.text}`);const{startTime:o,durationMinutes:r}=n;return{startTime:o,symbol:e.symbol,status:e.status,text:Al(e),lines:dl(e),durationMinutes:r,location:{path:e.path,position:e.position},id:Wb()}}function fx(e){var o,r,M;const t=(r=(o=e.scheduled)==null?void 0:o.toFormat)==null?void 0:r.call(o,hk),n=(M=Ez(e.path,"day"))==null?void 0:M.format(Mi);return t||n}function lp(e){return im(Wm(e),LC(e.position.start.col))}function mm(e){return e.status===void 0?e.symbol:`${e.symbol} ${vC(e.status)}`}function qx(e,t,n){const o=e.split(`
`),r=t.position.end.line-t.position.start.line+1;return o.splice(t.position.start.line,r,n),o.join(`
`)}function hx(e){return ll(e[br]).filter(Z1.isString).map(cx).filter(ix).flatMap(([t,n])=>zl(t,n)).map(t=>({sTask:e,clockMoments:t}))}const Wx=Z1.uniqBy(e=>`${e.path}::${e.position.start.line}`);function Rm(e){return Ut(e.startTime)+e.durationMinutes}function jt(e){return e.startTime.clone().add(e.durationMinutes,"minutes")}function _c(e){return Object.hasOwn(e,"startTime")||!e.isAllDayEvent}const fl=":";function gm(e){const t=[];return t.push(e.calendar.name,e.startTime.toISOString(!1),e.summary),t.join(fl)}function eb(e){if(bi(e))return gm(e);const t=[];if(_c(e)&&t.push(String(Ut(e.startTime)),String(Rm(e))),e.location){const{path:n,position:{start:{line:o}}}=e.location;t.push(n,String(o))}return t.push(e.text),t.join(fl)}function mx(e){var n;if(bi(e))return gm(e);const t=[];return t.push(((n=e.location)==null?void 0:n.path)??"blank",String(Ut(e.startTime)),String(e.durationMinutes),e.text),t.join(fl)}function Rx(e){let t;if(Bx(e)){const n=e.location;t1.isNotVoid(n,`Did not find location on task$ ${eM(e)}`),t=hn(n,o=>{o.position.start.line=o.position.end.line+1})}return{...e,location:t,id:Wb()}}function ym(e,t,n){const o=TC(e),r=kC(o,t);return`${o.format(n)} - ${r.format(n)}`}function gx(){return{withTime:[],noTime:[]}}function Or(e){return e.format(Mi)}function yx(e,t){const n=il(Qr(e.text)),o=ym(Ut(e.startTime),e.durationMinutes,Oe(V1).timestampFormat),r=mm(e),M=e.isAllDayEvent?wx(n):FC(n,o);let b=Mx(M,Or(e.startTime));t===D1.SCHEDULE_SEARCH_RESULT&&!cl.test(b)&&(b=bx(b,`⏳ ${e.startTime.format(Mi)}`));const i=pm(e.text);let z=`${r} ${b}`;return i&&(z+=`
`,z+=i),z}function Lx(e,t){const n=lC.exec(e);if(n){const o=n[0];return e.slice(0,n.index)+t+o}return e+t}function vx(e){const{day:t,startMinutes:n,settings:o,location:r,text:M="New item",status:b,isAllDayEvent:i=!1}=e;return{location:r,id:Wb(),durationMinutes:o.defaultDurationMinutes,text:M,startTime:am(n,t),isAllDayEvent:i,symbol:"-",status:b||o.eventFormatOnCreation==="task"?o.taskStatusOnCreation:void 0}}function eM(e){return bi(e)?e.summary:Z1.flow(Qr,il,Lm)(e.text)}function Nx(e,t){const n=e.startTime.clone().startOf("day"),o=jt(e).clone().endOf("day"),r=t.start.clone().startOf("day"),M=t.end.clone().add(1,"day").startOf("day"),b={...e};return n.isBefore(r)&&(b.durationMinutes=jt(e).diff(r,"minutes"),b.startTime=r,b.truncated=[...b.truncated??[],"left"]),o.isAfter(M)&&(b.durationMinutes=cr(b.startTime,M),b.truncated=[...b.truncated??[],"right"]),b}function Lm(e){return e.replace(Bc,"")}function wx(e){return Lm(e).replace(Tc,"").trim().replace(/\s+/g," ")}function Dx(e,t){return e.startTime.isSame(t.startTime)&&e.durationMinutes===t.durationMinutes&&e.isAllDayEvent===t.isAllDayEvent}function Bx(e){return AC.some(t=>t.test(e.text))}function Tx(e,t,n){const o=e.startTime.isBefore(t)?t:e.startTime,r=jt(e),b=(r.isAfter(n)?n:r).diff(o,"minutes");return{...e,startTime:o,durationMinutes:b}}function _x(e,t){const n=e.type==="created",o=t.type==="created";return n&&o?0:n?1:o?-1:e.range.start.line-t.range.start.line}function kx(e,t){const n=e.slice();if(t.type==="created")return n.splice(t.target,0,t.contents),n;const o=t.range.start.line,r=t.range.start.col,b=t.range.end.line-o+1;if(t.type==="updated"){const z=n[o].substring(0,r)+t.contents;n.splice(o,1,z)}else t.type==="deleted"&&n.splice(o,b);return n}function Ex(e){const{updates:t,afterEach:n,settings:o}=e,r=Z1.groupBy(M=>M.path,t);return Object.entries(r).map(([M,b])=>({path:M,updateFn:i=>{const z=i.split(`
`),a=b.filter(l=>l.type==="mdast");let O=b.filter(l=>l.type!=="mdast").toSorted(_x).toReversed().reduce(kx,z).join(`
`);return a.length>0&&(O=pl(O,o.plannerHeading,l=>Sx(l,a),{createHeading:!0,settings:o})),n?n(O):O}}))}function Sx(e,t){const n=Dc(e),o=t.reduce((r,{updateFn:M})=>M(r),n);return sl(o)}class Xx{constructor(t){this.vaultFacade=t,this.history=[],this.writeTransaction=async n=>{const o={},r=n.map(({path:M,updateFn:b})=>this.vaultFacade.editFile(M,i=>(o[M]=i,b(i))));return this.history.push(o),Promise.all(r)},this.undo=async()=>{const n=this.history.pop();if(!n)throw new Error("No updates to revert");const o=Object.entries(n).map(([r,M])=>this.vaultFacade.editFile(r,()=>M));return Promise.all(o)}}}function Cx(e,t){return t.reduce((n,o)=>{const r=e.find(M=>M.id===o.id);return r||n.added.push(o),r&&!Dx(r,o)&&n.updated.push(o),n},{updated:[],added:[]})}function xx(e){var A,f;const{type:t,task:n,mode:o,settings:r}=e,M=yx(n,o);if(t==="added")return n.location?o===D1.SCHEDULE_SEARCH_RESULT?{type:"updated",path:n.location.path,range:{start:n.location.position.start,end:n.location.position.start},contents:Qr(M)}:{type:"created",contents:M,path:n.location.path,target:(f=(A=n.location.position)==null?void 0:A.start)==null?void 0:f.line}:{type:"mdast",path:Nq(n.startTime),updateFn:h=>{const R=Dc(M),W=X3(R,Lq);return t1.isNotVoid(W),C3(W),gq(h,r.plannerHeading,W)}};t1.isNotVoid(n.location);const{path:b}=n.location,i=n.location.position.start.line,z=M.split(`
`).length-1,a=i+z,s={start:n.location.position.start,end:{line:a,col:0}};if(t==="deleted")return{type:"deleted",path:b,range:s};const O=Ez(b,"day");return O&&!n.startTime.isSame(O,"day")?[{type:"deleted",path:b,range:s},{type:"mdast",path:Nq(n.startTime),updateFn:h=>{const R=Dc(M),W=X3(R,Lq);return t1.isNotVoid(W),C3(W),gq(h,r.plannerHeading,W)}}]:{type:"updated",path:b,range:{start:s.start,end:s.start},contents:Qr(M)}}function Fx(e,t,n){return Object.entries(e).flatMap(([o,r])=>r.map(M=>({type:o,task:M}))).reduce((o,{type:r,task:M})=>{const b=xx({type:r,task:M,mode:t,settings:n});return o.concat(b)},[])}class Ix extends w0.Modal{constructor(t,n){super(t);const{cta:o,onAccept:r,text:M,title:b,onCancel:i}=n;this.contentEl.createEl("h2",{text:b}),this.contentEl.createEl("p",{text:M}),this.contentEl.createDiv("day-planner-modal-buttons",z=>{z.createEl("button",{text:"Cancel"}).addEventListener("click",a=>{i(a),this.close()}),z.createEl("button",{cls:"mod-cta",text:o}).addEventListener("click",async a=>{await r(a),this.close()})})}}async function Px(e){return new Promise(t=>{const{app:n,...o}=e;new Ix(n,{...o,onAccept:async()=>t(!0),onCancel:()=>t(!1)}).open()})}class Ux extends w0.SuggestModal{constructor(t){super(t.app),this.props=t,this.setInstructions([{command:"esc",purpose:"to dismiss"},{command:"↵",purpose:"to confirm"}])}getSuggestions(t){return[{text:t}]}renderSuggestion(t,n){n.createDiv({text:this.props.getDescriptionText(t.text)})}onChooseSuggestion(t,n){this.props.onChooseSuggestion(t)}close(){window.setTimeout(()=>{this.props.onClose(),super.close()})}}function jx(e){return new w0.Notice(createFragment(n=>{n.appendText("Changes saved. "),n.append(createEl("a",{text:"UNDO"},o=>{o.addEventListener("pointerup",e,{once:!0})}),createEl("div",{cls:"undo-timeout-bar"},o=>{o.style.animation=`${$4}ms linear forwards shrink`}))}),$4)}async function Hx(e){return new Promise(t=>{new Ux({app:e,getDescriptionText:n=>n.trim().length===0?"Start typing to create a task":`Create item "${n}"`,onChooseSuggestion:async({text:n})=>{t(n)},onClose:()=>{t(void 0)}}).open()})}const $x=e=>{const{app:t,settings:n,transactionWriter:o,vaultFacade:r,onEditCanceled:M}=e;let b;function i(z){return z.reduce((a,s)=>r.checkFileExists(s)?a:a.concat(s),[])}return async(z,a,s)=>{const O=Cx(z,a);if(s===D1.CREATE){const W=O.added[0];t1.isNotVoid(W);const D=await Hx(t);if(!D){M();return}O.added[0]={...W,text:D}}const l=Fx(O,s,n()),A=n().sortTasksInPlanAfterEdit?W=>pl(W,n().plannerHeading,UC):void 0,f=Ex({updates:l,afterEach:A,settings:n()}),h=[...new Set([...f.map(({path:W})=>W)])],R=i(h);if(R.length>0){if(!await Px({app:t,title:"Need to create files",text:`The following files need to be created: ${R.join("; ")}`,cta:"Create"})){M();return}await Promise.all(R.map(async D=>{const w=Ez(D,"day");t1.isNotVoid(w),await mu(w)}))}await o.writeTransaction(f),b==null||b.hide(),b=jx(o.undo)}},Yx=5*1e3,ci=kn(window.moment(),e=>{const t=setInterval(()=>{e(window.moment())},Yx);return()=>{clearInterval(t)}}),IM=Dn(ci),ql=be(ci,e=>t=>e.isSame(t,"day"));function tt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Vx=typeof Symbol=="function"&&Symbol.observable||"@@observable",Dq=Vx,hO=()=>Math.random().toString(36).substring(7).split("").join("."),Gx={INIT:`@@redux/INIT${hO()}`,REPLACE:`@@redux/REPLACE${hO()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${hO()}`},cz=Gx;function hl(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function vm(e,t,n){if(typeof e!="function")throw new Error(tt(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(tt(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(tt(1));return n(vm)(e,t)}let o=e,r=t,M=new Map,b=M,i=0,z=!1;function a(){b===M&&(b=new Map,M.forEach((R,W)=>{b.set(W,R)}))}function s(){if(z)throw new Error(tt(3));return r}function O(R){if(typeof R!="function")throw new Error(tt(4));if(z)throw new Error(tt(5));let W=!0;a();const D=i++;return b.set(D,R),function(){if(W){if(z)throw new Error(tt(6));W=!1,a(),b.delete(D),M=null}}}function l(R){if(!hl(R))throw new Error(tt(7));if(typeof R.type>"u")throw new Error(tt(8));if(typeof R.type!="string")throw new Error(tt(17));if(z)throw new Error(tt(9));try{z=!0,r=o(r,R)}finally{z=!1}return(M=b).forEach(D=>{D()}),R}function A(R){if(typeof R!="function")throw new Error(tt(10));o=R,l({type:cz.REPLACE})}function f(){const R=O;return{subscribe(W){if(typeof W!="object"||W===null)throw new Error(tt(11));function D(){const N=W;N.next&&N.next(s())}return D(),{unsubscribe:R(D)}},[Dq](){return this}}}return l({type:cz.INIT}),{dispatch:l,subscribe:O,getState:s,replaceReducer:A,[Dq]:f}}function Kx Line truncated
`).forEach(function(b){r=b.indexOf(":"),n=b.substring(0,r).trim().toLowerCase(),o=b.substring(r+1).trim(),!(!n||t[n]&&nP[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t};const Uq=Symbol("internals");function rc(e){return e&&String(e).trim().toLowerCase()}function Sp(e){return e===!1||e==null?e:i0.isArray(e)?e.map(Sp):String(e)}function rP(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const MP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function RO(e,t,n,o,r){if(i0.isFunction(o))return o.call(this,t,n);if(r&&(t=n),!!i0.isString(t)){if(i0.isString(o))return t.indexOf(o)!==-1;if(i0.isRegExp(o))return o.test(t)}}function bP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function cP(e,t){const n=i0.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(r,M,b){return this[o].call(this,t,r,M,b)},configurable:!0})})}class pa{constructor(t){t&&this.set(t)}set(t,n,o){const r=this;function M(i,z,a){const s=rc(z);if(!s)throw new Error("header name must be a non-empty string");const O=i0.findKey(r,s);(!O||r[O]===void 0||a===!0||a===void 0&&r[O]!==!1)&&(r[O||z]=Sp(i))}const b=(i,z)=>i0.forEach(i,(a,s)=>M(a,s,z));return i0.isPlainObject(t)||t instanceof this.constructor?b(t,n):i0.isString(t)&&(t=t.trim())&&!MP(t)?b(oP(t),n):t!=null&&M(n,t,o),this}get(t,n){if(t=rc(t),t){const o=i0.findKey(this,t);if(o){const r=this[o];if(!n)return r;if(n===!0)return rP(r);if(i0.isFunction(n))return n.call(this,r,o);if(i0.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=rc(t),t){const o=i0.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||RO(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let r=!1;function M(b){if(b=rc(b),b){const i=i0.findKey(o,b);i&&(!n||RO(o,o[i],i,n))&&(delete o[i],r=!0)}}return i0.isArray(t)?t.forEach(M):M(t),r}clear(t){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const M=n[o];(!t||RO(this,this[M],M,t,!0))&&(delete this[M],r=!0)}return r}normalize(t){const n=this,o={};return i0.forEach(this,(r,M)=>{const b=i0.findKey(o,M);if(b){n[b]=Sp(r),delete n[M];return}const i=t?bP(M):String(M).trim();i!==M&&delete n[M],n[i]=Sp(r),o[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return i0.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=t&&i0.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[Uq]=this[Uq]={accessors:{}}).accessors,r=this.prototype;function M(b){const i=rc(b);o[i]||(cP(r,b),o[i]=!0)}return i0.isArray(t)?t.forEach(M):M(t),this}}pa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);i0.reduceDescriptors(pa.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});i0.freezeMethods(pa);var uo=pa;function gO(e,t){const n=this||Nl,o=t||n,r=uo.from(o.headers);let M=o.data;return i0.forEach(e,function(i){M=i.call(n,M,r.normalize(),t?t.status:void 0)}),r.normalize(),M}function iR(e){return!!(e&&e.__CANCEL__)}function pi(e,t,n){B1.call(this,e??"canceled",B1.ERR_CANCELED,t,n),this.name="CanceledError"}i0.inherits(pi,B1,{__CANCEL__:!0});function iP(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new B1("Request failed with status code "+n.status,[B1.ERR_BAD_REQUEST,B1.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var pP=Ln.hasStandardBrowserEnv?{write(e,t,n,o,r,M){const b=[e+"="+encodeURIComponent(t)];i0.isNumber(n)&&b.push("expires="+new Date(n).toGMTString()),i0.isString(o)&&b.push("path="+o),i0.isString(r)&&b.push("domain="+r),M===!0&&b.push("secure"),document.cookie=b.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zP(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function aP(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pR(e,t){return e&&!zP(t)?aP(e,t):t}var sP=Ln.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function r(M){let b=M;return t&&(n.setAttribute("href",b),b=n.href),n.setAttribute("href",b),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(b){const i=i0.isString(b)?r(b):b;return i.protocol===o.protocol&&i.host===o.host}}():function(){return function(){return!0}}();function OP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function uP(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,M=0,b;return t=t!==void 0?t:1e3,function(z){const a=Date.now(),s=o[M];b||(b=a),n[r]=z,o[r]=a;let O=M,l=0;for(;O!==r;)l+=n[O++],O=O%e;if(r=(r+1)%e,r===M&&(M=(M+1)%e),a-b<t)return;const A=s&&a-s;return A?Math.round(l*1e3/A):void 0}}function jq(e,t){let n=0;const o=uP(50,250);return r=>{const M=r.loaded,b=r.lengthComputable?r.total:void 0,i=M-n,z=o(i),a=M<=b;n=M;const s={loaded:M,total:b,progress:b?M/b:void 0,bytes:i,rate:z||void 0,estimated:z&&b&&a?(b-M)/z:void 0,event:r};s[t?"download":"upload"]=!0,e(s)}}const lP=typeof XMLHttpRequest<"u";var AP=lP&&function(e){return new Promise(function(n,o){let r=e.data;const M=uo.from(e.headers).normalize();let{responseType:b,withXSRFToken:i}=e,z;function a(){e.cancelToken&&e.cancelToken.unsubscribe(z),e.signal&&e.signal.removeEventListener("abort",z)}let s;if(i0.isFormData(r)){if(Ln.hasStandardBrowserEnv||Ln.hasStandardBrowserWebWorkerEnv)M.setContentType(!1);else if((s=M.getContentType())!==!1){const[h,...R]=s?s.split(";").map(W=>W.trim()).filter(Boolean):[];M.setContentType([h||"multipart/form-data",...R].join("; "))}}let O=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",R=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";M.set("Authorization","Basic "+btoa(h+":"+R))}const l=pR(e.baseURL,e.url);O.open(e.method.toUpperCase(),rR(l,e.params,e.paramsSerializer),!0),O.timeout=e.timeout;function A(){if(!O)return;const h=uo.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),W={data:!b||b==="text"||b==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:h,config:e,request:O};iP(function(w){n(w),a()},function(w){o(w),a()},W),O=null}if("onloadend"in O?O.onloadend=A:O.onreadystatechange=function(){!O||O.readyState!==4||O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0)||setTimeout(A)},O.onabort=function(){O&&(o(new B1("Request aborted",B1.ECONNABORTED,e,O)),O=null)},O.onerror=function(){o(new B1("Network Error",B1.ERR_NETWORK,e,O)),O=null},O.ontimeout=function(){let R=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const W=e.transitional||MR;e.timeoutErrorMessage&&(R=e.timeoutErrorMessage),o(new B1(R,W.clarifyTimeoutError?B1.ETIMEDOUT:B1.ECONNABORTED,e,O)),O=null},Ln.hasStandardBrowserEnv&&(i&&i0.isFunction(i)&&(i=i(e)),i||i!==!1&&sP(l))){const h=e.xsrfHeaderName&&e.xsrfCookieName&&pP Line truncated
`+M.map(Hq).join(`
`):" "+Hq(M[0]):"as no adapter specified";throw new B1("There is no suitable adapter to dispatch the request "+b,"ERR_NOT_SUPPORT")}return o},adapters:$3};function yO(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pi(null,e)}function $q(e){return yO(e),e.headers=uo.from(e.headers),e.data=gO.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),zR.getAdapter(e.adapter||Nl.adapter)(e).then(function(o){return yO(e),o.data=gO.call(e,e.transformResponse,o),o.headers=uo.from(o.headers),o},function(o){return iR(o)||(yO(e),o&&o.response&&(o.response.data=gO.call(e,e.transformResponse,o.response),o.response.headers=uo.from(o.response.headers))),Promise.reject(o)})}const Yq=e=>e instanceof uo?e.toJSON():e;function tb(e,t){t=t||{};const n={};function o(a,s,O){return i0.isPlainObject(a)&&i0.isPlainObject(s)?i0.merge.call({caseless:O},a,s):i0.isPlainObject(s)?i0.merge({},s):i0.isArray(s)?s.slice():s}function r(a,s,O){if(i0.isUndefined(s)){if(!i0.isUndefined(a))return o(void 0,a,O)}else return o(a,s,O)}function M(a,s){if(!i0.isUndefined(s))return o(void 0,s)}function b(a,s){if(i0.isUndefined(s)){if(!i0.isUndefined(a))return o(void 0,a)}else return o(void 0,s)}function i(a,s,O){if(O in t)return o(a,s);if(O in e)return o(void 0,a)}const z={url:M,method:M,data:M,baseURL:b,transformRequest:b,transformResponse:b,paramsSerializer:b,timeout:b,timeoutMessage:b,withCredentials:b,withXSRFToken:b,adapter:b,responseType:b,xsrfCookieName:b,xsrfHeaderName:b,onUploadProgress:b,onDownloadProgress:b,decompress:b,maxContentLength:b,maxBodyLength:b,beforeRedirect:b,transport:b,httpAgent:b,httpsAgent:b,cancelToken:b,socketPath:b,responseEncoding:b,validateStatus:i,headers:(a,s)=>r(Yq(a),Yq(s),!0)};return i0.forEach(Object.keys(Object.assign({},e,t)),function(s){const O=z[s]||r,l=O(e[s],t[s],s);i0.isUndefined(l)&&O!==i||(n[s]=l)}),n}const aR="1.6.7",wl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wl[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Vq={};wl.transitional=function(t,n,o){function r(M,b){return"[Axios v"+aR+"] Transitional option '"+M+"'"+b+(o?". "+o:"")}return(M,b,i)=>{if(t===!1)throw new B1(r(b," has been removed"+(n?" in "+n:"")),B1.ERR_DEPRECATED);return n&&!Vq[b]&&(Vq[b]=!0,console.warn(r(b," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(M,b,i):!0}};function fP(e,t,n){if(typeof e!="object")throw new B1("options must be an object",B1.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const M=o[r],b=t[M];if(b){const i=e[M],z=i===void 0||b(i,M,e);if(z!==!0)throw new B1("option "+M+" must be "+z,B1.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new B1("Unknown option "+M,B1.ERR_BAD_OPTION)}}var Y3={assertOptions:fP,validators:wl};const jo=Y3.validators;class az{constructor(t){this.defaults=t,this.interceptors={request:new Pq,response:new Pq}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const M=r.stack?r.stack.replace(/^.+\n/,""):"";o.stack?M&&!String(o.stack).endsWith(M.replace(/^.+\n.+\n/,""))&&(o.stack+=`
`+M):o.stack=M}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=tb(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:M}=n;o!==void 0&&Y3.assertOptions(o,{silentJSONParsing:jo.transitional(jo.boolean),forcedJSONParsing:jo.transitional(jo.boolean),clarifyTimeoutError:jo.transitional(jo.boolean)},!1),r!=null&&(i0.isFunction(r)?n.paramsSerializer={serialize:r}:Y3.assertOptions(r,{encode:jo.function,serialize:jo.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let b=M&&i0.merge(M.common,M[n.method]);M&&i0.forEach(["delete","get","head","post","put","patch","common"],f=>{delete M[f]}),n.headers=uo.concat(b,M);const i=[];let z=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(z=z&&h.synchronous,i.unshift(h.fulfilled,h.rejected))});const a=[];this.interceptors.response.forEach(function(h){a.push(h.fulfilled,h.rejected)});let s,O=0,l;if(!z){const f=[$q.bind(this),void 0];for(f.unshift.apply(f,i),f.push.apply(f,a),l=f.length,s=Promise.resolve(n);O<l;)s=s.then(f[O++],f[O++]);return s}l=i.length;let A=n;for(O=0;O<l;){const f=i[O++],h=i[O++];try{A=f(A)}catch(R){h.call(this,R);break}}try{s=$q.call(this,A)}catch(f){return Promise.reject(f)}for(O=0,l=a.length;O<l;)s=s.then(a[O++],a[O++]);return s}getUri(t){t=tb(this.defaults,t);const n=pR(t.baseURL,t.url);return rR(n,t.params,t.paramsSerializer)}}i0.forEach(["delete","get","head","options"],function(t){az.prototype[t]=function(n,o){return this.request(tb(o||{},{method:t,url:n,data:(o||{}).data}))}});i0.forEach(["post","put","patch"],function(t){function n(o){return function(M,b,i){return this.request(tb(i||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:M,data:b}))}}az.prototype[t]=n(),az.prototype[t+"Form"]=n(!0)});var Xp=az;class Dl{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(M){n=M});const o=this;this.promise.then(r=>{if(!o._listeners)return;let M=o._listeners.length;for(;M-- >0;)o._listeners[M](r);o._listeners=null}),this.promise.then=r=>{let M;const b=new Promise(i=>{o.subscribe(i),M=i}).then(r);return b.cancel=function(){o.unsubscribe(M)},b},t(function(M,b,i){o.reason||(o.reason=new pi(M,b,i),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Dl(function(r){t=r}),cancel:t}}}var qP=Dl;function hP(e){return function(n){return e.apply(null,n)}}function WP(e){return i0.isObject(e)&&e.isAxiosError===!0}const V3={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(V3).forEach(([e,t])=>{V3[t]=e});var mP=V3;function sR(e){const t=new Xp(e),n=$m(Xp.prototype.request,t);return i0.extend(n,Xp.prototype,t,{allOwnKeys:!0}),i0.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return sR(tb(e,r))},n}const Ee=sR(Nl);Ee.Axios=Xp;Ee.CanceledError=pi;Ee.CancelToken=qP;Ee.isCancel=iR;Ee.VERSION=aR;Ee.toFormData=ia;Ee.AxiosError=B1;Ee.Cancel=Ee.CanceledError;Ee.all=function(t){return Promise.all(t)};Ee.spread=hP;Ee.isAxiosError=WP;Ee.mergeConfig=tb;Ee.AxiosHeaders=uo;Ee.formToJSON=e=>cR(i0.isHTMLForm(e)?new FormData(e):e);Ee.getAdapter=zR.getAdapter;Ee.HttpStatusCode=mP;Ee.default=Ee;var RP=Ee,OR={},za={},aa={};Object.defineProperty(aa,"__esModule",{value:!0});aa.default=yP;let fp;const gP=new Uint8Array(16);function yP(){if(!fp&&(fp=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!fp))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return fp(gP)}var Wr Line truncated
//! version : 2.29.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var RR;function g0(){return RR.apply(null,arguments)}function RU(e){RR=e}function en(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Vr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function X1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Bl(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(X1(e,t))return!1;return!0}function Ft(e){return e===void 0}function go(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ai(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function gR(e,t){var n=[],o,r=e.length;for(o=0;o<r;++o)n.push(t(e[o],o));return n}function er(e,t){for(var n in t)X1(t,n)&&(e[n]=t[n]);return X1(t,"toString")&&(e.toString=t.toString),X1(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Cn(e,t,n,o){return VR(e,t,n,o,!0).utc()}function gU(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p1(e){return e._pf==null&&(e._pf=gU()),e._pf}var G3;Array.prototype.some?G3=Array.prototype.some:G3=function(e){var t=Object(this),n=t.length>>>0,o;for(o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};function Tl(e){if(e._isValid==null){var t=p1(e),n=G3.call(t.parsedDateParts,function(r){return r!=null}),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=o;else return o}return e._isValid}function ma(e){var t=Cn(NaN);return e!=null?er(p1(t),e):p1(t).userInvalidated=!0,t}var Zq=g0.momentProperties=[],DO=!1;function _l(e,t){var n,o,r,M=Zq.length;if(Ft(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Ft(t._i)||(e._i=t._i),Ft(t._f)||(e._f=t._f),Ft(t._l)||(e._l=t._l),Ft(t._strict)||(e._strict=t._strict),Ft(t._tzm)||(e._tzm=t._tzm),Ft(t._isUTC)||(e._isUTC=t._isUTC),Ft(t._offset)||(e._offset=t._offset),Ft(t._pf)||(e._pf=p1(t)),Ft(t._locale)||(e._locale=t._locale),M>0)for(n=0;n<M;n++)o=Zq[n],r=t[o],Ft(r)||(e[o]=r);return e}function si(e){_l(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),DO===!1&&(DO=!0,g0.updateOffset(this),DO=!1)}function tn(e){return e instanceof si||e!=null&&e._isAMomentObject!=null}function yR(e){g0.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function N2(e,t){var n=!0;return er(function(){if(g0.deprecationHandler!=null&&g0.deprecationHandler(null,e),n){var o=[],r,M,b,i=arguments.length;for(M=0;M<i;M++){if(r="",typeof arguments[M]=="object"){r+=`
[`+M+"] ";for(b in arguments[0])X1(arguments[0],b)&&(r+=b+": "+arguments[0][b]+", ");r=r.slice(0,-2)}else r=arguments[M];o.push(r)}yR(e+`
Arguments: `+Array.prototype.slice.call(o).join("")+`
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Jq={};function LR(e,t){g0.deprecationHandler!=null&&g0.deprecationHandler(e,t),Jq[e]||(yR(t),Jq[e]=!0)}g0.suppressDeprecationWarnings=!1;g0.deprecationHandler=null;function xn(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function yU(e){var t,n;for(n in e)X1(e,n)&&(t=e[n],xn(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function K3(e,t){var n=er({},e),o;for(o in t)X1(t,o)&&(Vr(e[o])&&Vr(t[o])?(n[o]={},er(n[o],e[o]),er(n[o],t[o])):t[o]!=null?n[o]=t[o]:delete n[o]);for(o in e)X1(e,o)&&!X1(t,o)&&Vr(e[o])&&(n[o]=er({},n[o]));return n}function kl(e){e!=null&&this.set(e)}var Z3;Object.keys?Z3=Object.keys:Z3=function(e){var t,n=[];for(t in e)X1(e,t)&&n.push(t);return n};var LU={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function vU(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return xn(o)?o.call(t,n):o}function En(e,t,n){var o=""+Math.abs(e),r=t-o.length,M=e>=0;return(M?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}var El=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,qp=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,BO={},UM={};function P0(e,t,n,o){var r=o;typeof o=="string"&&(r=function(){return this[o]()}),e&&(UM[e]=r),t&&(UM[t[0]]=function(){return En(r.apply(this,arguments),t[1],t[2])}),n&&(UM[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function NU(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function wU(e){var t=e.match(El),n,o;for(n=0,o=t.length;n<o;n++)UM[t[n]]?t[n]=UM[t[n]]:t[n]=NU(t[n]);return function(r){var M="",b;for(b=0;b<o;b++)M+=xn(t[b])?t[b].call(r,e):t[b];return M}}function Cp(e,t){return e.isValid()?(t=vR(t,e.localeData()),BO[t]=BO[t]||wU(t),BO[t](e)):e.localeData().invalidDate()}function vR(e,t){var n=5;function o(r){return t.longDateFormat(r)||r}for(qp.lastIndex=0;n>=0&&qp.test(e);)e=e.replace(qp,o),qp.lastIndex=0,n-=1;return e}var DU={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function BU(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(El).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var TU="Invalid date";function _U(){return this._invalidDate}var kU="%d",EU=/\d{1,2}/;function SU(e){return this._ordinal.replace("%d",e)}var XU={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function CU(e,t,n,o){var r=this._relativeTime[n];return xn(r)?r(e,t,n,o):r.replace(/%d/i,e)}function xU(e,t){var n=this._relativeTime[e>0?"future":"past"];return xn(n)?n(t):n.replace(/%s/i,t)}var fc={};function Wt(e,t){var n=e.toLowerCase();fc[n]=fc[n+"s"]=fc[t]=e}function w2(e){return typeof e=="string"?fc[e]||fc[e.toLowerCase()]:void 0}function Sl(e){var t={},n,o;for(o in e)X1(e,o)&&(n=w2(o),n&&(t[n]=e[o]));return t}var NR={};function mt(e,t){NR[e]=t}function FU(e){var t=[],n;for(n in e)X1(e,n)&&t.push({unit:n,priority:NR[n]});return t.sort(function(o,r){return o.priority-r.priority}),t}function Ra(e){return e%4===0&&e%100!==0||e%400===0}function f2(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function m1(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=f2(t)),n}function Rb(e,t){return function(n){return n!=null?(wR(this,e,n),g0.updateOffset(this,t),this):sz(this,e)}}function sz(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function wR(e,t,n){e.isValid()&&!isNaN(n)&&(t==="FullYear"&&Ra(e.year())&&e.month()===1&&e.date()===29?(n=m1(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),wa(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function IU(e){return e=w2(e),xn(this[e])?this[e]():this}function PU(e,t){if(typeof e=="object"){e=Sl(e);var n=FU(e),o,r=n.length;for(o=0;o<r;o++)this[n[o].unit](e[n[o].unit])}else if(e=w2(e),xn(this[e]))return this[e](t);return this}var DR=/\d/,c2=/\d\d/,BR=/\d{3}/,Xl=/\d{4}/,ga=/[+-]?\d{6}/,ie=/\d\d?/,TR=/\d\d\d\d?/,_R=/\d\d\d\d\d\d?/,ya=/\d{1,3}/,Cl=/\d{1,4}/,La=/[+-]?\d{1,6}/,gb=/\d+/,va=/[+-]?\d+/,UU=/Z|[+-]\d\d:?\d\d/gi,Na=/Z|[+-]\d\d(?::?\d\d)?/gi,jU=/[+-]?\d+(\.\d{1,3})?/,Oi=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Oz;Oz={};function B0(e,t,n){Oz[e]=xn(t)?t:function(o,r){return o& Line truncated
g0.version="2.29.4";RU(ce);g0.fn=l0;g0.min=zH;g0.max=aH;g0.now=sH;g0.utc=Cn;g0.unix=F$;g0.months=P$;g0.isDate=ai;g0.locale=ir;g0.invalid=ma;g0.duration=zn;g0.isMoment=tn;g0.weekdays=j$;g0.parseZone=I$;g0.localeData=vo;g0.isDuration=xp;g0.monthsShort=U$;g0.weekdaysMin=$$;g0.defineLocale=Pl;g0.updateLocale=Ij;g0.locales=Pj;g0.weekdaysShort=H$;g0.normalizeUnits=w2;g0.relativeTimeRounding=hY;g0.relativeTimeThreshold=WY;g0.calendarFormat=XH;g0.prototype=l0;g0.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const RY=Object.freeze(Object.defineProperty({__proto__:null,default:g0},Symbol.toStringTag,{value:"Module"})),gY=Wu(RY);(function(e){//! moment-timezone.js
//! version : 0.5.45
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
(function(t,n){e.exports?e.exports=n(gY):n(t.moment)})(co,function(t){t.version===void 0&&t.default&&(t=t.default);var n="0.5.45",o={},r={},M={},b={},i={},z;(!t||typeof t.version!="string")&&p0("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var a=t.version.split("."),s=+a[0],O=+a[1];(s<2||s===2&&O<6)&&p0("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+t.version+". See momentjs.com");function l(E){return E>96?E-87:E>64?E-29:E-48}function A(E){var J=0,o0=E.split("."),A0=o0[0],F0=o0[1]||"",o1=1,B,O1=0,x1=1;for(E.charCodeAt(0)===45&&(J=1,x1=-1),J;J<A0.length;J++)B=l(A0.charCodeAt(J)),O1=60*O1+B;for(J=0;J<F0.length;J++)o1=o1/60,B=l(F0.charCodeAt(J)),O1+=B*o1;return O1*x1}function f(E){for(var J=0;J<E.length;J++)E[J]=A(E[J])}function h(E,J){for(var o0=0;o0<J;o0++)E[o0]=Math.round((E[o0-1]||0)+E[o0]*6e4);E[J-1]=1/0}function R(E,J){var o0=[],A0;for(A0=0;A0<J.length;A0++)o0[A0]=E[J[A0]];return o0}function W(E){var J=E.split("|"),o0=J[2].split(" "),A0=J[3].split(""),F0=J[4].split(" ");return f(o0),f(A0),f(F0),h(F0,A0.length),{name:J[0],abbrs:R(J[1].split(" "),A0),offsets:R(o0,A0),untils:F0,population:J[5]|0}}function D(E){E&&this._set(W(E))}function w(E,J){var o0=J.length;if(E<J[0])return 0;if(o0>1&&J[o0-1]===1/0&&E>=J[o0-2])return o0-1;if(E>=J[o0-1])return-1;for(var A0,F0=0,o1=o0-1;o1-F0>1;)A0=Math.floor((F0+o1)/2),J[A0]<=E?F0=A0:o1=A0;return o1}D.prototype={_set:function(E){this.name=E.name,this.abbrs=E.abbrs,this.untils=E.untils,this.offsets=E.offsets,this.population=E.population},_index:function(E){var J=+E,o0=this.untils,A0;if(A0=w(J,o0),A0>=0)return A0},countries:function(){var E=this.name;return Object.keys(M).filter(function(J){return M[J].zones.indexOf(E)!==-1})},parse:function(E){var J=+E,o0=this.offsets,A0=this.untils,F0=A0.length-1,o1,B,O1,x1;for(x1=0;x1<F0;x1++)if(o1=o0[x1],B=o0[x1+1],O1=o0[x1&&x1-1],o1<B&&V.moveAmbiguousForward?o1=B:o1>O1&&V.moveInvalidForward&&(o1=O1),J<A0[x1]-o1*6e4)return o0[x1];return o0[F0]},abbr:function(E){return this.abbrs[this._index(E)]},offset:function(E){return p0("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(E)]},utcOffset:function(E){return this.offsets[this._index(E)]}};function N(E,J){this.name=E,this.zones=J}function k(E){var J=E.toTimeString(),o0=J.match(/\([a-z ]+\)/i);o0&&o0[0]?(o0=o0[0].match(/[A-Z]/g),o0=o0?o0.join(""):void 0):(o0=J.match(/[A-Z]{3,5}/g),o0=o0?o0[0]:void 0),o0==="GMT"&&(o0=void 0),this.at=+E,this.abbr=o0,this.offset=E.getTimezoneOffset()}function g(E){this.zone=E,this.offsetScore=0,this.abbrScore=0}g.prototype.scoreOffsetAt=function(E){this.offsetScore+=Math.abs(this.zone.utcOffset(E.at)-E.offset),this.zone.abbr(E.at).replace(/[^A-Z]/g,"")!==E.abbr&&this.abbrScore++};function v(E,J){for(var o0,A0;A0=((J.at-E.at)/12e4|0)*6e4;)o0=new k(new Date(E.at+A0)),o0.offset===E.offset?E=o0:J=o0;return E}function S(){var E=new Date().getFullYear()-2,J=new k(new Date(E,0,1)),o0=J.offset,A0=[J],F0,o1,B,O1;for(O1=1;O1<48;O1++)B=new Date(E,O1,1).getTimezoneOffset(),B!==o0&&(o1=new k(new Date(E,O1,1)),F0=v(J,o1),A0.push(F0),A0.push(new k(new Date(F0.at+6e4))),J=o1,o0=B);for(O1=0;O1<4;O1++)A0.push(new k(new Date(E+O1,0,1))),A0.push(new k(new Date(E+O1,6,1)));return A0}function j(E,J){return E.offsetScore!==J.offsetScore?E.offsetScore-J.offsetScore:E.abbrScore!==J.abbrScore?E.abbrScore-J.abbrScore:E.zone.population!==J.zone.population?J.zone.population-E.zone.population:J.zone.name.localeCompare(E.zone.name)}function K(E,J){var o0,A0;for(f(J),o0=0;o0<J.length;o0++)A0=J[o0],i[A0]=i[A0]||{},i[A0][E]=!0}function Y(E){var J=E.length,o0={},A0=[],F0={},o1,B,O1,x1;for(o1=0;o1<J;o1++)if(O1=E[o1].offset,!F0.hasOwnProperty(O1)){x1=i[O1]||{};for(B in x1)x1.hasOwnProperty(B)&&(o0[B]=!0);F0[O1]=!0}for(o1 in o0)o0.hasOwnProperty(o1)&&A0.push(b[o1]);return A0}function x(){try{var E=Intl.DateTimeFormat().resolvedOptions().timeZone;if(E&&E.length>3){var J=b[M0(E)];if(J)return J;p0("Moment Timezone found "+E+" from the Intl api, but did not have that data loaded.")}}catch{}var o0=S(),A0=o0.length,F0=Y(o0),o1=[],B,O1,x1;for(O1=0;O1<F0.length;O1++){for(B=new g(c0(F0[O1])),x1=0;x1<A0;x1++)B.scoreOffsetAt(o0[x1]);o1.push(B)}return o1.sort(j),o1.length>0?o1[0].zone.name:void 0}function G(E){return(!z||E)&&(z=x()),z}function M0(E){return(E||"").toLowerCase().replace(/\//g,"_")}function e0(E){var J,o0,A0,F0;for(typeof E=="string"&&(E=[E]),J=0;J<E.length;J++)A0=E[J].split("|"),o0=A0[0],F0=M0(o0),o[F0]=E[J],b[F0]=o0,K(F0,A0[2].split(" "))}function c0(E,J){E=M0(E);var o0=o[E],A0;return o0 instanceof D?o0:typeof o0=="string"?(o0=new D(o0),o[E]=o0,o0):r[E]&&J!==c0&&(A0=c0(r[E],c0))?(o0=o[E]=new D,o0._set(A0),o0.name=b[E],o0):null}function Q(){var E,J=[];for(E in b)b.hasOwnProperty(E)&&(o[E]||o[r[E]])&&b[E]&&J.push(b[E]);return J.sort()}function x0(){return Object.keys(M)}function m0(E){var J,o0,A0,F0;for(typeof E=="string"&&(E=[E]),J=0;J<E.length;J++)o0=E[J].split("|"),A0=M0(o0[0]),F0=Line truncated
`).map(VY).filter(function(n){return n!==null});return M2(M2({},t[0]),t[1])}function Wz(e){var t={},n=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!n)return t;var o=n[1],r=n[2];return o&&(t.tzid=o),t.dtstart=Jl(r),t}function VY(e){if(e=e.replace(/^\s+|\s+$/,""),!e.length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return i5(e);var n=t[1];switch(n.toUpperCase()){case"RRULE":case"EXRULE":return i5(e);case"DTSTART":return Wz(e);default:throw new Error("Unsupported RFC prop ".concat(n," in ").concat(e))}}function i5(e){var t=e.replace(/^RRULE:/i,""),n=Wz(t),o=e.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return o.forEach(function(r){var M=r.split("="),b=M[0],i=M[1];switch(b.toUpperCase()){case"FREQ":n.freq=k1[i.toUpperCase()];break;case"WKST":n.wkst=I2[i.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var z=GY(i),a=b.toLowerCase();n[a]=z;break;case"BYWEEKDAY":case"BYDAY":n.byweekday=KY(i);break;case"DTSTART":case"TZID":var s=Wz(e);n.tzid=s.tzid,n.dtstart=s.dtstart;break;case"UNTIL":n.until=Jl(i);break;case"BYEASTER":n.byeaster=Number(i);break;default:throw new Error("Unknown RRULE property '"+b+"'")}}),n}function GY(e){if(e.indexOf(",")!==-1){var t=e.split(",");return t.map(p5)}return p5(e)}function p5(e){return/^[+-]?\d+$/.test(e)?Number(e):e}function KY(e){var t=e.split(",");return t.map(function(n){if(n.length===2)return I2[n];var o=n.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!o||o.length<3)throw new SyntaxError("Invalid weekday string: ".concat(n));var r=Number(o[1]),M=o[2],b=I2[M].weekday;return new At(b,r)})}var mz=function(){function e(t,n){if(isNaN(t.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=t,this.tzid=n}return Object.defineProperty(e.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t=Zl(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(t):";TZID=".concat(this.tzid,":").concat(t)},e.prototype.getTime=function(){return this.date.getTime()},e.prototype.rezonedDate=function(){return this.isUTC?this.date:CY(this.date,this.tzid)},e}();function bu(e){for(var t=[],n="",o=Object.keys(e),r=Object.keys(tA),M=0;M<o.length;M++)if(o[M]!=="tzid"&&ee(r,o[M])){var b=o[M].toUpperCase(),i=e[o[M]],z="";if(!(!De(i)||Qt(i)&&!i.length)){switch(b){case"FREQ":z=Z0.FREQUENCIES[e.freq];break;case"WKST":fn(i)?z=new At(i).toString():z=i.toString();break;case"BYWEEKDAY":b="BYDAY",z=TY(i).map(function(A){return A instanceof At?A:Qt(A)?new At(A[0],A[1]):new At(A)}).toString();break;case"DTSTART":n=ZY(i,e.tzid);break;case"UNTIL":z=Zl(i,!e.tzid);break;default:if(Qt(i)){for(var a=[],s=0;s<i.length;s++)a[s]=String(i[s]);z=a.toString()}else z=String(i)}z&&t.push([b,z])}}var O=t.map(function(A){var f=A[0],h=A[1];return"".concat(f,"=").concat(h.toString())}).join(";"),l="";return O!==""&&(l="RRULE:".concat(O)),[n,l].filter(function(A){return!!A}).join(`
`)}function ZY(e,t){return e?"DTSTART"+new mz(new Date(e),t).toString():""}function JY(e,t){return Array.isArray(e)?!Array.isArray(t)||e.length!==t.length?!1:e.every(function(n,o){return n.getTime()===t[o].getTime()}):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():e===t}var QY=function(){function e(){this.all=!1,this.before=[],this.after=[],this.between=[]}return e.prototype._cacheAdd=function(t,n,o){n&&(n=n instanceof Date?ou(n):r5(n)),t==="all"?this.all=n:(o._value=n,this[t].push(o))},e.prototype._cacheGet=function(t,n){var o=!1,r=n?Object.keys(n):[],M=function(s){for(var O=0;O<r.length;O++){var l=r[O];if(!JY(n[l],s[l]))return!0}return!1},b=this[t];if(t==="all")o=this.all;else if(Qt(b))for(var i=0;i<b.length;i++){var z=b[i];if(!(r.length&&M(z))){o=z._value;break}}if(!o&&this.all){for(var a=new EM(t,n),i=0;i<this.all.length&&a.accept(this.all[i]);i++);o=a.getValue(),this._cacheAdd(t,o,n)}return Qt(o)?r5(o):o instanceof Date?ou(o):o},e}(),eV=R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0([],E1(1,31),!0),E1(2,28),!0),E1(3,31),!0),E1(4,30),!0),E1(5,31),!0),E1(6,30),!0),E1(7,31),!0),E1(8,31),!0),E1(9,30),!0),E1(10,31),!0),E1(11,30),!0),E1(12,31),!0),E1(1,7),!0),tV=R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0([],E1(1,31),!0),E1(2,29),!0),E1(3,31),!0),E1(4,30),!0),E1(5,31),!0),E1(6,30),!0),E1(7,31),!0),E1(8,31),!0),E1(9,30),!0),E1(10,31),!0),E1(11,30),!0),E1(12,31),!0),E1(1,7),!0),nV=Fn(1,29),oV=Fn(1,30),nr=Fn(1,31),ut=Fn(1,32),rV=R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0([],ut,!0),oV,!0),ut,!0),nr,!0),ut,!0),nr,!0),ut,!0),ut,!0),nr,!0),ut,!0),nr,!0),ut,!0),ut.slice(0,7),!0),MV=R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0([],ut,!0),nV,!0),ut,!0),nr,!0),ut,!0),nr,!0),ut,!0),ut,!0),nr,!0),ut,!0),nr,!0),ut,!0),ut.slice(0,7),!0),bV=Fn(-28,0),cV=Fn(-29,0),or=Fn(-30,0),lt=Fn(-31,0),iV=R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0([],lt,!0),cV,!0),lt,!0),or,!0),lt,!0),or,!0),lt,!0),lt,!0),or,!0),lt,!0),or,!0),lt,!0),lt.slice(0,7),!0),pV=R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0(R0([],lt,!0),bV,!0),lt,!0),or,!0),lt,!0),or,!0),lt,!0),lt,!0),or,!0),lt,!0),or,!0),lt,!0),lt.slice(0,7),!0),zV=[0,31,60,91,121,152,182,213,244,274,305,335,366],aV=[0,31,59,90,120,151,181,212,243,273,304,334,365],z5=function(){for(var e=[],t=0;t<55;t++)e=e.concat(Fn(7));return e}();function sV(e,t){var n=lr(e,1,1),o=Wc(e)?366:365,r=Wc(e+1)?366:365,M=nu(n),b=nb(n),i=M2(M2({yearlen:o,nextyearlen:r,yearordinal:M,yearweekday:b},OV(e)),{wnomask:null});if(Wn(t.byweekno))return i;i.wnomask=E1(0,o+7);var z,a,s=z=q2(7-b+t.wkst,7);s>=4?(s=0,a=i.yearlen+q2(b-t.wkst,7)):a=o-s;for(var O=Math.floor(a/7),l=q2(a,7),A=Math.floor(O+l/4),f=0;f<t.byweekno.length;f++){var h=t.byweekno[f];if(h<0&&(h+=A+1),h>0&&h<=A){var R=void 0;h>1?(R=s+(h-1)*7,s!==z&&(R-=7-z)):R=s;for(var W=0;W<7&&(i.wnomask[R]=1,R++,i.wdaymask[R]!==t.wkst);W++);}}if(ee(t.byweekno,1)){var R=s+A*7;if(s!==z&&(R-=7-z),R<o)for(var f=0;f<7&&(i.wnomask[R]=1,R+=1,i.wdaymask[R]!==t.wkst);f++);}if(s){var D=void 0;if(ee(t.byweekno,-1))D=-1;else{var w=nb(lr(e-1,1,1)),N=q2(7-w.valueOf()+t.wkst,7),k=Wc(e-1)?366:365,g=void 0;N>=4?(N=0,g=k+q2(w-t.wkst,7)):g=o-s,D=Math.floor(52+q2(g,7)/4)}if(ee(t.byweekno,D))for(var R=0;R<s;R++)i.wnomask[R]=1}return i}function OV(e){var t=Wc(e)?366:365,n=lr(e,1,1),o=nb(n);return t===365?{mmask:eV,mdaymask:MV,nmdaymask:pV,wdaymask:z5.slice(o),mrange:aV}:{mmask:tV,mdaymask:rV,nmdaymask:iV,wdaymask:z5.slice(o),mrange:zV}}function uV(e,t,n,o,r,M){var b={lastyear:e,lastmonth:t,nwdaymask:[]},i=[];if(M.freq===Z0.YEARLY)if(Wn(M.bymonth))i=[[0,n]];else for(var z=0;z<M.bymonth.length;z++)t=M.bymonth[z],i.push(o.slice(t-1,t+1));else M.freq===Z0.MONTHLY&&(i=[o.slice(t-1,t+1)]);if(Wn(i))return b;b.nwdaymask=E1(0,n);for(var z=0;z<i.length;z++)for(var a=i[z],s=a[0],O=a[1]-1,l=0;l<M.bynweekday.length;l++){var A=void 0,f=M.bynweekday[l],h=f[0],R=f[1];R<0?(A=O+(R+1)*7,A-=q2(r[A]-h,7)):(A=s+(R-1)*7,A+=q2(7-r[A]+h,7)),s<=A&&A<=O&&(b.nwdaymask[A]=1)}return b}function lV(e,t){t===void 0&&(t=0);var n=e%19,o=Math.floor(e/100),r=e%100,M=Math.floor(o/4),b=o%4,i=Math.floor((o+8)/25),z=Math.floor((o-i+1)/3),a=Math.floor(19*n+o-M-z+15)%30,s=Math.floor(r/4),O=r%4,l=Math.floor(32+2*b+2*s-a-O)%7,A=Math.floor((n+11*a+22*l)/451),f=Math.floor((a+l-7*A+114)/31),h=(a+l-7*A+114)%31+1,R=Date.UTC(e,f-1,h+t),W=Date.UTC(e,0,1);return[Math.ceil((R-W)/(1e3*60*60*24))]}var AV=function(){function e(t){this.options=t}return e.prototype.rebuild=function(t,n){var o=this.options;if(t!==this.lastyear&&(this.yearinfo=sV(t,o)),Ge(o.bynweekday)&&(n!==this.lastmonth||t!==this.lastyear)){var r=this.yearinfo,M=r.yearlen,b=r.mrange,i=r.wdaymask;this.monthinfo=uV(t,n,M,b,i,o)}De(o.byeaster)&&(this.eastermask=lV(t,o.byeaster))},Object.defineProperty(e.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearlen",{ Line truncated
`),o=0;o<n.length;){var r=n[o]=n[o].replace(/\s+$/g,"");r?o>0&&r[0]===" "?(n[o-1]+=r.slice(1),n.splice(o,1)):o+=1:n.splice(o,1)}return n}function wV(e){e.forEach(function(t){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(t))throw new Error("unsupported RDATE/EXDATE parm: "+t)})}function O5(e,t){return wV(t),e.split(",").map(function(n){return Jl(n)})}function u5(e){var t=this;return function(n){if(n!==void 0&&(t["_".concat(e)]=n),t["_".concat(e)]!==void 0)return t["_".concat(e)];for(var o=0;o<t._rrule.length;o++){var r=t._rrule[o].origOptions[e];if(r)return r}}}var Rg=function(e){Ql(t,e);function t(n){n===void 0&&(n=!1);var o=e.call(this,{},n)||this;return o.dtstart=u5.apply(o,["dtstart"]),o.tzid=u5.apply(o,["tzid"]),o._rrule=[],o._rdate=[],o._exrule=[],o._exdate=[],o}return t.prototype._iter=function(n){return mV(n,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(n){l5(n,this._rrule)},t.prototype.exrule=function(n){l5(n,this._exrule)},t.prototype.rdate=function(n){A5(n,this._rdate)},t.prototype.exdate=function(n){A5(n,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(n){return cu(n.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(n){return cu(n.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(n){return new Date(n.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(n){return new Date(n.getTime())})},t.prototype.valueOf=function(){var n=[];return!this._rrule.length&&this._dtstart&&(n=n.concat(bu({dtstart:this._dtstart}))),this._rrule.forEach(function(o){n=n.concat(o.toString().split(`
`))}),this._exrule.forEach(function(o){n=n.concat(o.toString().split(`
`).map(function(r){return r.replace(/^RRULE:/,"EXRULE:")}).filter(function(r){return!/^DTSTART/.test(r)}))}),this._rdate.length&&n.push(d5("RDATE",this._rdate,this.tzid())),this._exdate.length&&n.push(d5("EXDATE",this._exdate,this.tzid())),n},t.prototype.toString=function(){return this.valueOf().join(`
`)},t.prototype.clone=function(){var n=new t(!!this._cache);return this._rrule.forEach(function(o){return n.rrule(o.clone())}),this._exrule.forEach(function(o){return n.exrule(o.clone())}),this._rdate.forEach(function(o){return n.rdate(new Date(o.getTime()))}),this._exdate.forEach(function(o){return n.exdate(new Date(o.getTime()))}),n},t}(Z0);function l5(e,t){if(!(e instanceof Z0))throw new TypeError(String(e)+" is not RRule instance");ee(t.map(String),String(e))||t.push(e)}function A5(e,t){if(!(e instanceof Date))throw new TypeError(String(e)+" is not Date instance");ee(t.map(Number),Number(e))||(t.push(e),Cc(t))}function d5(e,t,n){var o=!n||n.toUpperCase()==="UTC",r=o?"".concat(e,":"):"".concat(e,";TZID=").concat(n,":"),M=t.map(function(b){return Zl(b.valueOf(),o)}).join(",");return"".concat(r).concat(M)}const DV=Object.freeze(Object.defineProperty({__proto__:null,ALL_WEEKDAYS:fz,get Frequency(){return k1},RRule:Z0,RRuleSet:Rg,Weekday:At,datetime:lr,rrulestr:cu},Symbol.toStringTag,{value:"Module"})),BV=Wu(DV),TV={iana:["Etc/UTC"]},_V={"Dateline Standard Time":{iana:["Etc/GMT+12"]},"UTC-11":{iana:["Etc/GMT+11"]},"Aleutian Standard Time":{iana:["America/Adak"]},"Hawaiian Standard Time":{iana:["Pacific/Honolulu"]},"Marquesas Standard Time":{iana:["Pacific/Marquesas"]},"Alaskan Standard Time":{iana:["America/Anchorage"]},"UTC-09":{iana:["Etc/GMT+9"]},"Pacific Standard Time (Mexico)":{iana:["America/Tijuana"]},"UTC-08":{iana:["Etc/GMT+8"]},"Pacific Standard Time":{iana:["America/Los_Angeles"]},"US Mountain Standard Time":{iana:["America/Phoenix"]},"Mountain Standard Time (Mexico)":{iana:["America/Mazatlan"]},"Mountain Standard Time":{iana:["America/Denver"]},"Yukon Standard Time":{iana:["America/Whitehorse"]},"Central America Standard Time":{iana:["America/Guatemala"]},"Central Standard Time":{iana:["America/Chicago"]},"Easter Island Standard Time":{iana:["Pacific/Easter"]},"Central Standard Time (Mexico)":{iana:["America/Mexico_City"]},"Canada Central Standard Time":{iana:["America/Regina"]},"SA Pacific Standard Time":{iana:["America/Bogota"]},"Eastern Standard Time (Mexico)":{iana:["America/Cancun"]},"Eastern Standard Time":{iana:["America/New_York"]},"Haiti Standard Time":{iana:["America/Port-au-Prince"]},"Cuba Standard Time":{iana:["America/Havana"]},"US Eastern Standard Time":{iana:["America/Indianapolis"]},"Turks And Caicos Standard Time":{iana:["America/Grand_Turk"]},"Paraguay Standard Time":{iana:["America/Asuncion"]},"Atlantic Standard Time":{iana:["America/Halifax"]},"Venezuela Standard Time":{iana:["America/Caracas"]},"Central Brazilian Standard Time":{iana:["America/Cuiaba"]},"SA Western Standard Time":{iana:["America/La_Paz"]},"Pacific SA Standard Time":{iana:["America/Santiago"]},"Newfoundland Standard Time":{iana:["America/St_Johns"]},"Tocantins Standard Time":{iana:["America/Araguaina"]},"E. South America Standard Time":{iana:["America/Sao_Paulo"]},"SA Eastern Standard Time":{iana:["America/Cayenne"]},"Argentina Standard Time":{iana:["America/Buenos_Aires"]},"Greenland Standard Time":{iana:["America/Godthab"]},"Montevideo Standard Time":{iana:["America/Montevideo"]},"Magallanes Standard Time":{iana:["America/Punta_Arenas"]},"Saint Pierre Standard Time":{iana:["America/Miquelon"]},"Bahia Standard Time":{iana:["America/Bahia"]},"UTC-02":{iana:["Etc/GMT+2"]},"Azores Standard Time":{iana:["Atlantic/Azores"]},"Cape Verde Standard Time":{iana:["Atlantic/Cape_Verde"]},UTC:TV,"GMT Standard Time":{iana:["Europe/London"]},"Greenwich Standard Time":{iana:["Atlantic/Reykjavik"]},"Sao Tome Standard Time":{iana:["Africa/Sao_Tome"]},"Morocco Standard Time":{iana:["Africa/Casablanca"]},"W. Europe Standard Time":{iana:["Europe/Berlin"]},"Central Europe Standard Time":{iana:["Europe/Budapest"]},"Romance Standard Time":{iana:["Europe/Paris"]},"Central European Standard Time":{iana:["Europe/Warsaw"]},"W. Central Africa Standard Time":{iana:["Africa/Lagos"]},"Jordan Standard Time":{iana:["Asia/Amman"]},"GTB Standard Time":{iana:["Europe/Bucharest"]},"Middle East Standard Time":{iana:["Asia/Beirut"]},"Egypt Standard Time":{iana:["Africa/Cairo"]},"E. Europe Standard Time":{iana:["Europe/Chisinau"]},"Syria Standard Time":{iana:["Asia/Damascus"]},"West Bank Standard Time":{iana:["Asia/Hebron"]},"South Africa Standard Time":{iana:["Africa/Johannesburg"]},"FLE Standard Time":{iana:["Europe/Kiev"]},"Israel Standard Time":{iana:["Asia/Jerusalem"]},"South Sudan Standard Time":{iana:["Africa/Juba"]},"Kaliningrad Standard Time":{iana:["Europe/Kaliningrad"]},"Sudan Standard Time":{iana:["Africa/Khartoum"]},"Libya Standard Time":{iana:["Africa/Tripoli"]},"Namibia Standard Time":{iana:["Africa/Windhoek"]},"Arabic Standard Time":{iana:["Asia/Baghdad"]},"Turkey Standard Time":{iana:["Europe/Istanbul"]},"Arab Standard Time":{iana:["Asia/Riyadh"]},"Belarus Standard Time":{iana:["Europe/Minsk"]},"Russian Standard Time":{iana:["Europe/Moscow"]},"E. Africa Standard Time":{iana:["Africa/Nairobi"]},"Iran Standard Time":{iana:["Asia/Tehr Line truncated
`).replace(/\\\\/g,"\\")},SV=function(e){if(e==="TRUE")return!0;if(e==="FALSE")return!1;const t=Number(e);return Number.isNaN(t)?e:t},nA=function(e){const t={};for(const n of e)if(n.includes("=")){const o=n.split("=");t[o[0]]=SV(o.slice(1).join("="))}return t},Rz=function(e){return function(t,n){const o=n[e];return Array.isArray(o)?(o.push(t),n):(typeof o>"u"?n[e]=t:n[e]=[o,t],n)}},ln=function(e){return function(t,n,o){const r=n&&n.length>0&&!(n.length===1&&(n[0]==="CHARSET=utf-8"||n[0]==="VALUE=TEXT"))?{params:nA(n),val:iu(t)}:iu(t);return Rz(e)(r,o)}},XV=function(e,t){const n=nA(t);return e.tz||t&&n&&e&&(e.tz=n.TZID,e.tz!==void 0&&(e.tz=e.tz.replace(/^"(.*)"$/,"$1"))),e};let cc=null;function CV(e){cc||(cc=_V);let t=cc[e];if(!t&&e.includes(",")){const n=e.split(",")[0],o=Object.keys(cc).filter(r=>!!r.includes(n));o.length>0&&(t=cc[o[0]])}return t?t.iana[0]:null}function gg(e){let t=e,n="";if((t==="tzone://Microsoft/Custom"||t.startsWith("Customized Time Zone")||t.startsWith("tzone://Microsoft/"))&&(t=j2.tz.guess()),t=t.replace(/^"(.*)"$/,"$1"),t&&(t.includes(" ")||t.includes(","))){const o=CV(t);o&&(t=o)}if(t&&t.startsWith("(")){const o=/[+|-]\d*:\d*/;t=null,n=t.match(o)}return n===""&&(n=j2.tz.names().find(o=>o===t)),n===""?t:n}function yg(e,t){return t&&t.includes("VALUE=DATE")&&!t.includes("VALUE=DATE-TIME")||/^\d{8}$/.test(e)===!0}const xV=function(e){return function(t,n,o){const r=yg(t,n)?"date":"date-time";return Rz(e)(r,o)}},Mo=function(e){return function(t,n,o,r){const M=n.indexOf("TZID=tzone");M>=0&&(n[M]=n[M]+":"+t.split(":")[0],t=t.split(":")[1]);let b=iu(t);if(yg(t,n)){const z=/^(\d{4})(\d{2})(\d{2}).*$/.exec(t);if(z!==null)return b=new Date(z[1],Number.parseInt(z[2],10)-1,z[3]),b.dateOnly=!0,Rz(e)(b,o)}const i=/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})(Z)?$/.exec(t);if(i!==null)if(i[7]==="Z")b=new Date(Date.UTC(Number.parseInt(i[1],10),Number.parseInt(i[2],10)-1,Number.parseInt(i[3],10),Number.parseInt(i[4],10),Number.parseInt(i[5],10),Number.parseInt(i[6],10))),b.tz="Etc/UTC";else if(n&&n[0]&&n[0].includes("TZID=")&&n[0].split("=")[1]){let z=n[0].split("=")[1],a="",s="";if((z==="tzone://Microsoft/Custom"||z==="(no TZ description)"||z.startsWith("Customized Time Zone")||z.startsWith("tzone://Microsoft/"))&&(z=j2.tz.guess(),n[0]="TZID="+z),z=z.replace(/^"(.*)"$/,"$1"),z&&(z.includes(" ")||z.includes(","))){const O=gg(z);O&&(z=O,s="",n[0]="TZID="+z)}if(z&&z.startsWith("(")){const O=/[+|-]\d*:\d*/;s=z.match(O),z=null,a=s}a===""&&(a=j2.tz.names().find(O=>O===z)),b=a?j2.tz(t,"YYYYMMDDTHHmmss"+s,z).toDate():new Date(Number.parseInt(i[1],10),Number.parseInt(i[2],10)-1,Number.parseInt(i[3],10),Number.parseInt(i[4],10),Number.parseInt(i[5],10),Number.parseInt(i[6],10)),b=XV(b,n)}else{const z=(r||[]).find(O=>Object.values(O).find(l=>l.type==="VTIMEZONE"))||{},a=Object.values(z).find(({type:O})=>O==="VTIMEZONE"),s=a?Array.isArray(a.tzid)?a.tzid.slice(-1)[0]:a.tzid:null;b=s&&j2.tz.zone(s)?j2.tz(t,"YYYYMMDDTHHmmss",s).toDate():new Date(Number.parseInt(i[1],10),Number.parseInt(i[2],10)-1,Number.parseInt(i[3],10),Number.parseInt(i[4],10),Number.parseInt(i[5],10),Number.parseInt(i[6],10))}return Rz(e)(b,o)}},FV=function(e){return function(t,n,o){const r=t.split(";");return o[e]={lat:Number(r[0]),lon:Number(r[1])},o}},IV=function(e){return function(t,n,o){return o[e]===void 0?o[e]=t?t.split(",").map(r=>r.trim()):[]:t&&(o[e]=o[e].concat(t.split(",").map(r=>r.trim()))),o}},PV=function(e){return function(t,n,o){o[e]=o[e]||[];const r=t?t.split(",").map(M=>M.trim()):[];for(const M of r){const b=[];if(Mo(e)(M,n,b),b[e])if(typeof b[e].toISOString=="function")o[e][b[e].toISOString().slice(0,10)]=b[e];else throw new TypeError("No toISOString function in exdate[name]",b[e])}return o}},UV=function(e){return Mo(e)},jV=function(e,t){const n=nA(t);return t&&n&&(e.type=n.FBTYPE||"BUSY"),e},HV=function(e){return function(t,n,o){const r=jV({},n);o[e]=o[e]||[],o[e].push(r);const M=t.split("/");for(const[b,i]of["start","end"].entries())Mo(i)(M[b],n,r);return o}};var $V={objectHandlers:{BEGIN(e,t,n,o){return o.push(n),{type:e,params:t}},END(e,t,n,o){const r=function(M,b,i,z){if(M==="VCALENDAR"){let s,O;const l={};for(s in i)({}).hasOwnProperty.call(i,s)&&(O=i[s],typeof O=="string"&&(l[s]=O,delete i[s]));return l.type&&(i[l.type.toLowerCase()]=l),i}const a=z.pop();if(!i.end&&(i.end=i.datetype==="date-time"?new Date(i.start.getTime()):j2.utc(i.start).add(1,"days").toDate(),i.duration!==void 0)){const s={W:"weeks",D:"days",H:"hours",M:"minutes",S:"seconds"},O=i.duration.match(/-?\d{1,10}[YMWDHS]/g);let l=j2.utc(i.start);const A=i.duration.startsWith("-")?-1:1;l=l.add(Number.parseInt(O,10)*A,s[O.toString().slice(-1)]),i.end=l.toDate()}if(i.uid){if(a[i.uid]===void 0)a[i.uid]=i,a.method&&(a[i.uid].method=a.method);else if(i.recurrenceid===void 0){let s;for(s in i)s!==null&&(a[i.uid][s]=i[s])}if(typeof i.recurrenceid<"u"){const s={};let O;for(O in i)O!==null&&(s[O]=i[O]);if(typeof s.recurrences<"u"&&delete s.recurrences,a[i.uid].rec Line truncated
* @license lucide-svelte v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jG={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var HG=c6("<svg><!><!></svg>");function He(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]),o=ye(n,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);R1(t,!1);let r=s1(t,"name",8,void 0),M=s1(t,"color",8,"currentColor"),b=s1(t,"size",8,24),i=s1(t,"strokeWidth",8,2),z=s1(t,"absoluteStrokeWidth",8,!1),a=s1(t,"iconNode",24,()=>[]);const s=(...h)=>h.filter((R,W,D)=>!!R&&D.indexOf(R)===W).join(" ");pn();var O=HG();let l;var A=E0(O);Ht(A,1,a,J2,(h,R)=>{let W=()=>P(R)[0],D=()=>P(R)[1];var w=A1(),N=T0(w);Z_(N,W,!0,(k,g)=>{let v;G0(()=>v=C4(k,v,{...D()},void 0,k.namespaceURI===wW,k.nodeName.includes("-")))}),Z(h,w)});var f=v0(A);We(f,t,"default",{}),G0(()=>l=C4(O,l,{...jG,...o,width:b(),height:b(),stroke:M(),"stroke-width":z()?Number(i())*24/Number(b()):i(),class:s("lucide-icon","lucide",r()?`lucide-${r()}`:"",n.class)},void 0,!0)),Z(e,O),g1()}function Eg(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"arrow-down-to-line"},()=>n,{iconNode:[["path",{d:"M12 17V3"}],["path",{d:"m6 11 6 6 6-6"}],["path",{d:"M19 21H5"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function $G(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"calendar-arrow-up"},()=>n,{iconNode:[["path",{d:"m14 18 4-4 4 4"}],["path",{d:"M16 2v4"}],["path",{d:"M18 22v-8"}],["path",{d:"M21 11.343V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h9"}],["path",{d:"M3 10h18"}],["path",{d:"M8 2v4"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function YG(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"chevron-left"},()=>n,{iconNode:[["path",{d:"m15 18-6-6 6-6"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function VG(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"chevron-right"},()=>n,{iconNode:[["path",{d:"m9 18 6-6-6-6"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function GG(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"clock-3"},()=>n,{iconNode:[["circle",{cx:"12",cy:"12",r:"10"}],["polyline",{points:"12 6 12 12 16.5 12"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function KG(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"columns-3"},()=>n,{iconNode:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"M15 3v18"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function ZG(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"copy"},()=>n,{iconNode:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function JG(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"ellipsis-vertical"},()=>n,{iconNode:[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"12",cy:"5",r:"1"}],["circle",{cx:"12",cy:"19",r:"1"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function Sg(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"fold-vertical"},()=>n,{iconNode:[["path",{d:"M12 22v-6"}],["path",{d:"M12 8V2"}],["path",{d:"M4 12H2"}],["path",{d:"M10 12H8"}],["path",{d:"M16 12h-2"}],["path",{d:"M22 12h-2"}],["path",{d:"m15 19-3-3-3 3"}],["path",{d:"m15 5-3 3-3-3"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function QG(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"grip-horizontal"},()=>n,{iconNode:[["circle",{cx:"12",cy:"9",r:"1"}],["circle",{cx:"19",cy:"9",r:"1"}],["circle",{cx:"5",cy:"9",r:"1"}],["circle",{cx:"12",cy:"15",r:"1"}],["circle",{cx:"19",cy:"15",r:"1"}],["circle",{cx:"5",cy:"15",r:"1"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function eK(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"grip-vertical"},()=>n,{iconNode:[["circle",{cx:"9",cy:"12",r:"1"}],["circle",{cx:"9",cy:"5",r:"1"}],["circle",{cx:"9",cy:"19",r:"1"}],["circle",{cx:"15",cy:"12",r:"1"}],["circle",{cx:"15",cy:"5",r:"1"}],["circle",{cx:"15",cy:"19",r:"1"}]],children:(r,M)=>{var b=A1(),i=T0(b);We(i,t,"default",{}),Z(r,b)},$$slots:{default:!0}}))}function tK(e,t){const n=ye(t,["children","$$slots","$$events","$$legacy"]);He(e,je({name:"info"},()=>n,{iconNode:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 16v-4"}],["path",{d:"M12 8h.01"}]],children:(Line truncated
* @license Fraction.js v4.3.7 31/08/2023
* https://www.xarg.org/2014/03/rational-numbers-in-javascript/
*
* Copyright (c) 2023, Robert Eisele (robert@raw.org)
* Dual licensed under the MIT or GPL Version 2 licenses.
**/var AK=2e3,C0={s:1,n:0,d:1};function eo(e,t){if(isNaN(e=parseInt(e,10)))throw Pp();return e*t}function se(e,t){if(t===0)throw pA();var n=Object.create(gn.prototype);n.s=e<0?-1:1,e=e<0?-e:e;var o=SM(e,t);return n.n=e/o,n.d=t/o,n}function R5(e){for(var t={},n=e,o=2,r=4;r<=n;){for(;n%o===0;)n/=o,t[o]=(t[o]||0)+1;r+=1+2*o++}return n!==e?n>1&&(t[n]=(t[n]||0)+1):t[e]=(t[e]||0)+1,t}var Gt=function(e,t){var n=0,o=1,r=1,M=0,b=0,i=0,z=1,a=1,s=0,O=1,l=1,A=1,f=1e7,h;if(e!=null)if(t!==void 0){if(n=e,o=t,r=n*o,n%1!==0||o%1!==0)throw hK()}else switch(typeof e){case"object":{if("d"in e&&"n"in e)n=e.n,o=e.d,"s"in e&&(n*=e.s);else if(0 in e)n=e[0],1 in e&&(o=e[1]);else throw Pp();r=n*o;break}case"number":{if(e<0&&(r=e,e=-e),e%1===0)n=e;else if(e>0){for(e>=1&&(a=Math.pow(10,Math.floor(1+Math.log(e)/Math.LN10)),e/=a);O<=f&&A<=f;)if(h=(s+l)/(O+A),e===h){O+A<=f?(n=s+l,o=O+A):A>O?(n=l,o=A):(n=s,o=O);break}else e>h?(s+=l,O+=A):(l+=s,A+=O),O>f?(n=l,o=A):(n=s,o=O);n*=a}else(isNaN(e)||isNaN(t))&&(o=n=NaN);break}case"string":{if(O=e.match(/\d+|./g),O===null)throw Pp();if(O[s]==="-"?(r=-1,s++):O[s]==="+"&&s++,O.length===s+1?b=eo(O[s++],r):O[s+1]==="."||O[s]==="."?(O[s]!=="."&&(M=eo(O[s++],r)),s++,(s+1===O.length||O[s+1]==="("&&O[s+3]===")"||O[s+1]==="'"&&O[s+3]==="'")&&(b=eo(O[s],r),z=Math.pow(10,O[s].length),s++),(O[s]==="("&&O[s+2]===")"||O[s]==="'"&&O[s+2]==="'")&&(i=eo(O[s+1],r),a=Math.pow(10,O[s+1].length)-1,s+=3)):O[s+1]==="/"||O[s+1]===":"?(b=eo(O[s],r),z=eo(O[s+2],1),s+=3):O[s+3]==="/"&&O[s+1]===" "&&(M=eo(O[s],r),b=eo(O[s+2],r),z=eo(O[s+4],1),s+=5),O.length<=s){o=z*a,r=n=i+o*M+a*b;break}}default:throw Pp()}if(o===0)throw pA();C0.s=r<0?-1:1,C0.n=Math.abs(n),C0.d=Math.abs(o)};function dK(e,t,n){for(var o=1;t>0;e=e*e%n,t>>=1)t&1&&(o=o*e%n);return o}function fK(e,t){for(;t%2===0;t/=2);for(;t%5===0;t/=5);if(t===1)return 0;for(var n=10%t,o=1;n!==1;o++)if(n=n*10%t,o>AK)return 0;return o}function qK(e,t,n){for(var o=1,r=dK(10,n,t),M=0;M<300;M++){if(o===r)return M;o=o*10%t,r=r*10%t}return 0}function SM(e,t){if(!e)return t;if(!t)return e;for(;;){if(e%=t,!e)return t;if(t%=e,!t)return e}}function gn(e,t){if(Gt(e,t),this instanceof gn)e=SM(C0.d,C0.n),this.s=C0.s,this.n=C0.n/e,this.d=C0.d/e;else return se(C0.s*C0.n,C0.d)}var pA=function(){return new Error("Division by Zero")},Pp=function(){return new Error("Invalid argument")},hK=function(){return new Error("Parameters must be integer")};gn.prototype={s:1,n:0,d:1,abs:function(){return se(this.n,this.d)},neg:function(){return se(-this.s*this.n,this.d)},add:function(e,t){return Gt(e,t),se(this.s*this.n*C0.d+C0.s*this.d*C0.n,this.d*C0.d)},sub:function(e,t){return Gt(e,t),se(this.s*this.n*C0.d-C0.s*this.d*C0.n,this.d*C0.d)},mul:function(e,t){return Gt(e,t),se(this.s*C0.s*this.n*C0.n,this.d*C0.d)},div:function(e,t){return Gt(e,t),se(this.s*C0.s*this.n*C0.d,this.d*C0.n)},clone:function(){return se(this.s*this.n,this.d)},mod:function(e,t){if(isNaN(this.n)||isNaN(this.d))return new gn(NaN);if(e===void 0)return se(this.s*this.n%this.d,1);if(Gt(e,t),C0.n===0&&this.d===0)throw pA();return se(this.s*(C0.d*this.n)%(C0.n*this.d),C0.d*this.d)},gcd:function(e,t){return Gt(e,t),se(SM(C0.n,this.n)*SM(C0.d,this.d),C0.d*this.d)},lcm:function(e,t){return Gt(e,t),C0.n===0&&this.n===0?se(0,1):se(C0.n*this.n,SM(C0.n,this.n)*SM(C0.d,this.d))},ceil:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new gn(NaN):se(Math.ceil(e*this.s*this.n/this.d),e)},floor:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new gn(NaN):se(Math.floor(e*this.s*this.n/this.d),e)},round:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new gn(NaN):se(Math.round(e*this.s*this.n/this.d),e)},roundTo:function(e,t){return Gt(e,t),se(this.s*Math.round(this.n*C0.d/(this.d*C0.n))*C0.n,C0.d)},inverse:function(){return se(this.s*this.d,this.n)},pow:function(e,t){if(Gt(e,t),C0.d===1)return C0.s<0?se(Math.pow(this.s*this.d,C0.n),Math.pow(this.n,C0.n)):se(Math.pow(this.s*this.n,C0.n),Math.pow(this.d,C0.n));if(this.s<0)return null;var n=R5(this.n),o=R5(this.d),r=1,M=1;for(var b in n)if(b!=="1"){if(b==="0"){r=0;break}if(n[b]*=C0.n,n[b]%C0.d===0)n[b]/=C0.d;else return null;r*=Math.pow(b,n[b])}for(var b in o)if(b!=="1"){if(o[b]*=C0.n,o[b]%C0.d===0)o[b]/=C0.d;else return null;M*=Math.pow(b,o[b])}return C0.s<0?se(M,r):se(r,M)},equals:function(e,t){return Gt(e,t),this.s*this.n*C0.d===C0.s*C0.n*this.d},compare:function(e,t){Gt(e,t);var n=this.s*this.n*C0.d-C0.s*C0.n*this.d;return(0<n)-(n<0)},simplify:function(e){if(isNaN(this.n)||isNaN(this.d))return this;e=e||.001;for(var t=this.abs(),n=t.toContinued(),o=1;o<n.length;o++){for(var r=se(n[o-1],1),M=o-2;M>=0;M--)r=r.inverse().add(n[M]);if(Math.abs(r.sub(t).valueOf())<e)return r.mul(this.s)}return this},divisible:function(e,t){return Gt(e,t),!(!(C0.n*this.d)||this.n*C0.d%(C0.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(e){var t,n="",o=this.n,r=this.d;return this.s<0&&(n+="-"),r===1?n+=o:(e&&(t=Math.floor(o/r))>0&&(n+=t,nLine truncated
* @license
*
* The APCA contrast prediction algorithm is based of the formulas published
* in the APCA-1.0.98G specification by Myndex. The specification is available at:
* https://raw.githubusercontent.com/Myndex/apca-w3/master/images/APCAw3_0.1.17_APCA0.0.98G.svg
*
* Note that the APCA implementation is still beta, so please update to
* future versions of chroma.js when they become available.
*
* You can read more about the APCA Readability Criterion at
* https://readtech.org/ARC/
*/const _5=.027,GJ=5e-4,KJ=.1,k5=1.14,Rp=.022,E5=1.414,ZJ=(e,t)=>{e=new u0(e),t=new u0(t),e.alpha()<1&&(e=bb(t,e,e.alpha(),"rgb"));const n=S5(...e.rgb()),o=S5(...t.rgb()),r=n>=Rp?n:n+Math.pow(Rp-n,E5),M=o>=Rp?o:o+Math.pow(Rp-o,E5),b=Math.pow(M,.56)-Math.pow(r,.57),i=Math.pow(M,.65)-Math.pow(r,.62),z=Math.abs(M-r)<GJ?0:r<M?b*k5:i*k5;return(Math.abs(z)<KJ?0:z>0?z-_5:z+_5)*100};function S5(e,t,n){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(t/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:to,pow:Ne,min:JJ,max:QJ,atan2:X5,abs:C5,cos:gp,sin:x5,exp:eQ,PI:F5}=Math;function tQ(e,t,n=1,o=1,r=1){var M=function(T){return 360*T/(2*F5)},b=function(T){return 2*F5*T/360};e=new u0(e),t=new u0(t);const[i,z,a]=Array.from(e.lab()),[s,O,l]=Array.from(t.lab()),A=(i+s)/2,f=to(Ne(z,2)+Ne(a,2)),h=to(Ne(O,2)+Ne(l,2)),R=(f+h)/2,W=.5*(1-to(Ne(R,7)/(Ne(R,7)+Ne(25,7)))),D=z*(1+W),w=O*(1+W),N=to(Ne(D,2)+Ne(a,2)),k=to(Ne(w,2)+Ne(l,2)),g=(N+k)/2,v=M(X5(a,D)),S=M(X5(l,w)),j=v>=0?v:v+360,K=S>=0?S:S+360,Y=C5(j-K)>180?(j+K+360)/2:(j+K)/2,x=1-.17*gp(b(Y-30))+.24*gp(b(2*Y))+.32*gp(b(3*Y+6))-.2*gp(b(4*Y-63));let G=K-j;G=C5(G)<=180?G:K<=j?G+360:G-360,G=2*to(N*k)*x5(b(G)/2);const M0=s-i,e0=k-N,c0=1+.015*Ne(A-50,2)/to(20+Ne(A-50,2)),Q=1+.045*g,x0=1+.015*g*x,m0=30*eQ(-Ne((Y-275)/25,2)),_0=-(2*to(Ne(g,7)/(Ne(g,7)+Ne(25,7))))*x5(2*b(m0)),V0=to(Ne(M0/(n*c0),2)+Ne(e0/(o*Q),2)+Ne(G/(r*x0),2)+_0*(e0/(o*Q))*(G/(r*x0)));return QJ(0,JJ(100,V0))}function nQ(e,t,n="lab"){e=new u0(e),t=new u0(t);const o=e.get(n),r=t.get(n);let M=0;for(let b in o){const i=(o[b]||0)-(r[b]||0);M+=i*i}return Math.sqrt(M)}const oQ=(...e)=>{try{return new u0(...e),!0}catch{return!1}},rQ={cool(){return Bz([q1.hsl(180,1,.9),q1.hsl(250,.7,.4)])},hot(){return Bz(["#000","#f00","#ff0","#fff"]).mode("rgb")}},uu={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#beLine truncated
- 🪲 [Report bugs and suggest features](https://github.com/ivan-lednev/obsidian-day-planner/issues)
- ❓ [Ask questions](https://github.com/ivan-lednev/obsidian-day-planner/discussions/new?category=q-a)
- 🛠️ [Submit pull-requests](./CONTRIBUTING.md)
- ❤️ If this project adds value to your life, consider supporting it finantially:
- <a href="https://www.buymeacoffee.com/machineelf" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
## 0.28.0
### 💥 Breaking changes
- Now the plugin searches for tasks with scheduled date properties all across the vault by default, there is no need to include any files in the Dataview filter
### ✨ New feature: status bar timeline
- You can enable a mini-timeline in the status bar that lets you overview the upcoming 3 hours, with all the task blocks visible there. To enable it, go to 'Settings' > 'Status bar widget' > 'Task progress indicator' > 'Mini-timeline'
### ✨ Other improvements
- All-day tasks can be dragged between days, if a task with time is dragged into the all-day section, its timestamp gets removed (closes #315, #623)
- You can create blocks with drag & drop on mobile now: long tap and drag on the timeline to start creating a block
- Improved resize & drag controls for task blocks. Now they are much easier to use on mobile: left-click or tap on a task to see the controls, right-click or long tap to see a contextual menu
- Right-click to reveal block in file
- Description and location are now shown in remote events
- Multi-day remote events are now shown spanning across days
- You can expand, collapse or disable unscheduled tasks & clocks in the timeline view
### 🐞 Fixed issues
- Fix advanced edit modes messing up other tasks (closes #619)
- All-day tasks are no longer highlighted
- Fix tasks not shown in status bar if timeline is closed
- Fix showing all-day tasks in status bar
- Fix the Escape key closing weekly view
- Fix clocks from daily notes not showing up in timeline (closes #649)
## 0.27.0
### ✨ New features
- Edit text in the command palette before task creation
- Add descriptive icons to clock commands, so that they are easier to use in the mobile toolbar
## 0.26.3
### 🐞 Fixed issues
- Fix tasks not added to daily note when there is no planner heading inside it
- Fix clocks from daily notes not showing up in timeline & active clocks
## 0.26.2
### 🐞 Fixed issues
- Fix messing up frontmatter when there is no planner heading in file
## 0.26.0
### ✨ New feature: time tracking (experimental)
You can record time spent on tasks in the form of Dataview properties and then view the records as time blocks, much like planner entries. See [the docs for detailed instructions](https://github.com/ivan-lednev/obsidian-day-planner?tab=readme-ov-file#4-time-tracking).
### 🐞 Fixed issues
- Fixed crash for iOS on drag-and-drop edits (#519)
- Fixed duplicated timestamps on drag-and-drop edits (#618)
- Fixed removing task Dataview properties on edits (#370)
## 0.25.0
### 💥 Breaking changes
- Now only the items under the planner heading will get pulled from daily notes (#382)
### ✨ New features
- Now after edits there is an **UNDO** notice that lets you revert the changes to tasks, even across multiple files (partially addresses #341)
- Now the plugin will ask for permission before creating new files on drag-and-drop edits
- Tasks crossing midnight now get shown properly in multiple day columns instead of stretching the first day (#586, #364)
- E.g.: \`- 23:00 - 4:00 Task\` will get shown in 2 columns as 2 separate blocks
- Timeline controls look tidier now
- Now all-day remote events are shown in the unscheduled tasks section
- Text in blocks is now sticky and will stay visible when scrolling as well as when an event starts before the configured start hour
#### Week planner -> multi-day planner
- Now you can switch between 3 views:
- **full week** (with configurable start of the week)
- **work week** (starting on Monday)
- **3 upcoming days** (#515)
- You can now configure the first day of the week (#231)
- Now you can move back and forth between time periods from the sidebar of the multiday-view (#458, #495)
- Now weekends get marked by a different background color
- Now you an open plugin settings from the multi-day view
- Now the time period of the open view is visible in its tab title
- Now you can open the multi-day view from the left ribbon
### 🐞 Fixed issues
- Now the plugin finds contrasting font colors for your color overrides for time blocks (#481)
- obsidian-tasks tasks now get copied under the original line in the original file
- Now copying a task also copies the sub-items under it
- Extra spaces no longer get added in edited files
## 0.24.0
### ✨ New features
- Active task end time is now shown in status bar
- Notifications now show timestamps
### 🐞 Fixed issues
- Now tasks with no text content are not shown in timeline
- Fixed deleted recurrences of events in remote calendars showing up
- Fixed 12 am parsed as noon
## 0.23.0
### ✨ New features
- Now clicking on checkboxes on the timeline completes a task. [obsidian-tasks](https://github.com/obsidian-tasks-group/obsidian-tasks) logic is also respected: recurrent tasks get updated, 'finished' property gets added
- There is now an option to sort items by time in your planner after an edit (thanks, @Gelio)
- You can now configure what kind of task to create on edit: bullet (\`- task\`) or checkbox (\`- [ ] task\`)
- Minimal task duration is now configurable. Now tasks won't shrink beyond this point when editing
- Timestamps get parsed anywhere on the line, not only at the start, e.g.: \`- [ ] #task 20:30 - 21:00 Wake up\`
- Note that if a timestamp is not at the start of the line, it needs to be in a stricter format to avoid confusing the plugin
- \`20:00\` will work
- \`2000\` will not work
- There is now an option to specify your email in remote calendar config. If you do this, your RSVP status (declined/tentative) will get displayed on remote tasks from this calendar (thanks, @ramandv)
### 🐞 Fixed issues
- Now timeline will stay where you've left it when you reload Obsidian (thanks, @k4a-l)
## 0.22.0
### ✨ New features
- Default task status on creation is now configurable
### 🐞 Fixed issues
- Fixed load failure when unable to read daily notes
- Fixed console error on plugin load
- Fixed moving tasks to non-existent daily notes
- Fixed active day in week not changing on next day
- No more note switching when navigating between days from timeline view
## 0.21.1
### ✨ New features
- Drag-and-drop edits are now working on mobile: long-press on a task block to see the controls, tap on the control and start dragging to change task time
- Added floating edit controls on top of task blocks. All the edit modes are now easily available
- Now you can change task start time
- There is now a new edit mode: move block and shrink neighboring blocks
- Now you can manually adjust the height of the unscheduled tasks section through drag-and-drop
### 🐞 Fixed issues
- Fixed empty remote event names breaking the plugin (#430)
- Fixed advanced editing with Ctrl/Shift not working (#462). To do advanced edits, simply hover over the block, then over the edit controls
## 0.20.1 - 0.20.4
- 🐞 add toggle to disable release notes (#399)
- 🐞 do not reset timeline position when it's already open (#289)
- 🐞 do not replace tab content when opening weekly view (#313)
- 🐞 fix status bar error breaking plugin
- 🐞 Move task on copy, instead of changing its size
- 🐞 Fix different hourglass emoji breaking task movement
- 🐞 Fix calendar events without a location crashes plugin (#438, thanks, @sepatel)
- 🐞 Do not print undefined inside checkbox when list item is not a task (#368, thanks, @Gelio)
- 🐞 AM/PM doesn't match unexpectedly anymore (#312, thanks, @teisermann)
## 0.20.0
### New features
- ✨ Color coding: you can define background color for blocks containing certain text in first line
- ✨ Weekly view now displays unscheduled tasks on top
- ✨ Advanced drag-and-drop editing does not require modifier keys any more, you pick current edit mode in timeline controls
### Fixed issues
- 🐞 Fixed scheduling tasks for other days than today (by @Lunkle)
- 🐞 Pointer to current time is now more visible
- 🐞 Task summary in internet calendars is now displayed next to calendar name, to make it visible in short blocks
## 0.19.1 - 0.19.6
- 🐞 Fix iOS crash
- 🐞 Fix performance on startup
- 🐞 Fix colorful timeline both for local & remote calendars
- 🐞 Fix planner not reacting to daily note creation
- 🐞 Fix displaying hover preview
## 0.19.0
### ✨ New Feature: Internet Calendar Sync (Google, Outlook, iCloud)
- This lets you display events from calendars like Google Calendar, iCloud Calendar, Outlook Calendar
- You only need to add a link in the plugin settings to start displaying events from that calendar
See [README](https://github.com/ivan-lednev/obsidian-day-planner?tab=readme-ov-file#showing-internet-calendars) for details.
## 0.18.0
### ✨ New features
- Now hovering over a task with \`Control\` pressed will trigger a preview pop-up. This works great with the awesome [Hover Editor plugin](https://github.com/nothingislost/obsidian-hover-editor)
- Now when you click on a task, if there is an open tab for that file, the plugin is going to reuse it
## 0.17.2
### 🐞 Fixed issues
- Fix creating tasks with drag-and-drop
## 0.17.0
### 💥 Breaking changes
- Now by default, if your Dataview souce filter is empty, tasks are pulled only from visible daily notes
- Most people never touch this field, so the plugin is going to be lightning-fast by default
- If you want to add other folders or tags as task sources, you can still do so by adding them explicitly
### ✨ New features
- When dragging tasks from daily notes across days in the weekly view, they now get moved across files
- There is now an option to hide completed tasks from timeline
- There is now an option to hide subtasks from task blocks in the timeline
### 🐞 Fixed issues
- New drag-and-drop operations can now be started immediately after previous ones
- The plugin is much faster in the default use case (daily notes only)
- You can use plain list items in daily notes again
- Notifications work again
- Unscheduled tasks now fit their contents
### Acknowledgements
- Big thanks to @weph for helping me figure out a good performance solution
`,t,"/",this)}}class W10 extends w0.PluginSettingTab{constructor(t,n){super(t.app,t),this.plugin=t,this.settingsStore=n}display(){const{containerEl:t}=this;t.empty(),new w0.Setting(t).setName("Show release notes after update").addToggle(n=>n.setValue(this.plugin.settings().releaseNotes).onChange(o=>{this.update({releaseNotes:o})})),new w0.Setting(t).setName("Task Notification").setDesc("Display a notification when a new task is started").addToggle(n=>n.setValue(this.plugin.settings().showTaskNotification).onChange(o=>{this.update({showTaskNotification:o})})),new w0.Setting(t).setName("Center the Pointer in the Timeline View").setDesc("Should the pointer continuously get scrolled to the center of the view").addToggle(n=>{n.setValue(this.plugin.settings().centerNeedle).onChange(o=>{this.update({centerNeedle:o})})}),new w0.Setting(t).setName("Sort tasks in planner chronologically after edits").addToggle(n=>{n.setValue(this.plugin.settings().sortTasksInPlanAfterEdit).onChange(o=>{this.update({sortTasksInPlanAfterEdit:o})})}),new w0.Setting(t).setName("Event format on creation").addDropdown(n=>(n.addOptions({bullet:"Bullet (- New item)",task:"Task (- [ ] New item)"}),n.setValue(this.plugin.settings().eventFormatOnCreation).onChange(o=>{t1.isOneOf(o,JC),this.update({eventFormatOnCreation:o}),this.display()}))),new w0.Setting(t).setName("Timeline Zoom Level").setDesc("The zoom level to display the timeline. The higher the number, the more vertical space each task will take up.").addSlider(n=>n.setLimits(1,5,1).setValue(Number(this.plugin.settings().zoomLevel)??4).setDynamicTooltip().onChange(o=>{this.update({zoomLevel:o})})),this.plugin.settings().eventFormatOnCreation==="task"&&new w0.Setting(t).setName("Default task status on creation").setDesc("You can use custom statuses for more advanced workflows. E.g.: '- [>] Task'").addText(n=>n.setPlaceholder("Empty").setValue(this.plugin.settings().taskStatusOnCreation).onChange(o=>{this.settingsStore.update(r=>{const M=o.length>0?o.substring(0,1):" ";return{...r,taskStatusOnCreation:M}})})),new w0.Setting(t).setName("Timeline Icon").setDesc("The icon of the timeline pane. Reopen timeline pane or restart obsidian to see the change.").addDropdown(n=>(wk.forEach(o=>n.addOption(o,o)),n.setValue(this.plugin.settings().timelineIcon??"calendar-with-checkmark").onChange(o=>{this.update({timelineIcon:o})}))),new w0.Setting(t).setName("Start Hour").setDesc("The planner is going to start at this hour each day").addDropdown(n=>n.addOptions({0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"}).setValue(String(this.plugin.settings().startHour)).onChange(o=>{const r=Number(o);this.update({startHour:r})})),new w0.Setting(t).setName("First day of week").addDropdown(n=>n.addOptions({monday:"Monday",sunday:"Sunday",saturday:"Saturday",friday:"Friday"}).setValue(String(this.plugin.settings().firstDayOfWeek)).onChange(o=>{t1.isOneOf(o,QC),this.update({firstDayOfWeek:o})})),t.createEl("h2",{text:"Remote calendars"}),this.plugin.settings().icals.map((n,o)=>{t.createEl("h2",{text:`Calendar ${o+1}`}),new w0.Setting(t).setName("Mark calendar with color").addColorPicker(r=>r.setValue(n.color).onChange(M=>{this.settingsStore.update(hn(b=>{b.icals[o].color=M}))})),new w0.Setting(t).setName("Prepend this text to events from this calendar").addText(r=>r.setPlaceholder("Displayed name").setValue(n.name).onChange(M=>{this.settingsStore.update(hn(b=>{b.icals[o].name=M}))})),new w0.Setting(t).setName("Your email address, used to show 'tentative'/'needs action'/'declined' marker").addText(r=>r.setPlaceholder("Your email address").setValue(n.email||"").onChange(M=>{this.settingsStore.update(hn(b=>{b.icals[o].email=M.trim()}))})),new w0.Setting(t).setName("Remote calendar URL").addText(r=>r.setPlaceholder("URL").setValue(n.url).onChange(M=>{const b=M.replace("webcal://","https://");this.settingsStore.update(hn(i=>{i.icals[o].url=b}))})),new w0.Setting(t).addButton(r=>r.setIcon("trash").setButtonText(`Delete calendar ${o+1}`).onClick(()=>{this.settingsStore.update(M=>({...M,icals:M.icals.filter((b,i)=>i!==o)})),this.display()}))}),new w0.Setting(t).addButton(n=>n.setButtonText("Add remote calendar").onClick(()=>{const o={name:"",email:"",url:"",color:"#ffffff"};this.settingsStore.update(r=>({...r,icals:[...r.icals,o]})),this.display()})),t.createEl("h2",{text:"Date & Time Formats"}),new w0.Setting(t).setName("Hour format").then(n=>{n.setDesc(createFragment(o=>{o.appendText("This is the format used in the time ruler. Use 'H' for 24 hours; use 'h' for 12 hours. Your current syntax looks like this: "),n.addMomentFormat(r=>r.setValue(this.plugin.settings().hourFormat).setSampleEl(o.createSpan()).onChange(M=>{this.update({hourFormat:M.trim()})})),o.append(createEl("br"),createEl("a",{text:"format reference",href:"https://momentjs.com/docs/#/displaying/format/"},r=>{r.setAttr("target","_blank")}))}))}),new w0.Setting(t).setName("Default timestamp format").then(n=>{n.setDesc(create Line truncated
${r}`)}class Ee0 extends w0.Plugin{constructor(){super(...arguments),this.initWeeklyLeaf=async()=>{await this.app.workspace.getLeaf("tab").setViewState({type:Tp,active:!0})},this.initTimelineLeafSilently=async()=>{this.app.workspace.onLayoutReady(async()=>{var n;const[t]=this.app.workspace.getLeavesOfType(oo);t||(await this.detachLeavesOfType(oo),await((n=this.app.workspace.getRightLeaf(!1))==null?void 0:n.setViewState({type:oo})))})},this.initTimelineLeaf=async()=>{var n;const[t]=this.app.workspace.getLeavesOfType(oo);if(t){this.app.workspace.revealLeaf(t);return}await this.detachLeavesOfType(oo),await((n=this.app.workspace.getRightLeaf(!1))==null?void 0:n.setViewState({type:oo,active:!0})),this.app.workspace.rightSplit.expand()},this.showReleaseNotes=async()=>{await this.app.workspace.getLeaf("tab").setViewState({type:q3,active:!0})},this.getSTaskUnderCursor=t=>{t1.isInstanceOf(t,w0.MarkdownView,"You can only get tasks from markdown editor views");const n=t.file;t1.isNotVoid(n,"There is no file for view");const o=this.dataviewFacade.getTaskAtLine({path:n.path,line:t.editor.getCursor().line});return t1.isNotVoid(o,"There is no task under cursor"),o}}async onload(){this.dataviewFacade=new SG(()=>qW(this.app),this.app.vault);const t={...ta,...await this.loadData()};await this.setUpReduxStore(t),await this.initSettingsStore(t);const n=IG(this.app);this.vaultFacade=new FG(this.app.vault,n),this.transationWriter=new Xx(this.vaultFacade),this.workspaceFacade=new CG(this.app.workspace,this.vaultFacade),this.sTaskEditor=new xG(this.workspaceFacade,this.vaultFacade,this.dataviewFacade),this.registerViews(),this.registerCommands(),this.addRibbonIcons(),this.addSettingTab(new W10(this,this.settingsStore)),await this.handleNewPluginVersion(),await this.initTimelineLeafSilently()}async onunload(){return Promise.all([this.detachLeavesOfType(oo),this.detachLeavesOfType(Tp)])}addRibbonIcons(){this.addRibbonIcon("calendar-range","Open Timeline",this.initTimelineLeaf),this.addRibbonIcon("table-2","Open Multi-Day View",this.initWeeklyLeaf)}async handleNewPluginVersion(){this.settings().pluginVersion!=="0.28.0"&&(this.settingsStore.update(t=>({...t,pluginVersion:"0.28.0"})),this.settings().releaseNotes&&this.app.workspace.onLayoutReady(async()=>{await this.showReleaseNotes()}))}registerCommands(){this.addCommand({id:"show-day-planner-timeline",name:"Show timeline",callback:async()=>await this.initTimelineLeaf()}),this.addCommand({id:"show-weekly-view",name:"Show week planner",callback:this.initWeeklyLeaf}),this.addCommand({id:"show-multi-day-view",name:"Show multi-day planner",callback:this.initWeeklyLeaf}),this.addCommand({id:"show-day-planner-today-note",name:"Open today's Day Planner",callback:async()=>{const t=await x3(window.moment());await this.app.workspace.getLeaf(!1).openFile(t)}}),this.addCommand({id:"reorder-tasks-by-time",name:"Sort tasks under cursor by time",editorCallback:t=>{const n=Dc(t.getValue()),o=GC(t.getCursor()),r=n.children.find(i=>i.position&&VC(i.position,o));if(!r){new w0.Notice("There is no list under cursor");return}const M=Ol(r,sm),b=sl(M).trim();t1.isNotVoid(M.position),t.replaceRange(b,vq(M.position.start),vq(M.position.end))}}),this.addCommand({id:"clock-in",icon:"play",name:"Clock in",editorCallback:this.sTaskEditor.clockInUnderCursor}),this.addCommand({icon:"square",id:"clock-out",name:"Clock out",editorCallback:this.sTaskEditor.clockOutUnderCursor}),this.addCommand({icon:"trash-2",id:"cancel-clock",name:"Cancel clock",editorCallback:this.sTaskEditor.cancelClockUnderCursor})}async initSettingsStore(t){V1.set(t),this.register(V1.subscribe(async n=>{this.store.dispatch(dG(n)),await this.saveData(n)})),this.settingsStore=V1,this.settings=()=>Oe(V1)}async detachLeavesOfType(t){await this.app.workspace.detachLeavesOfType(t)}registerViews(){const t=$x({app:this.app,settings:this.settings,transactionWriter:this.transationWriter,vaultFacade:this.vaultFacade,onEditCanceled:()=>{var g;new w0.Notice("Edit canceled"),(g=this.syncDataview)==null||g.call(this)}}),n=()=>{new w0.Notice("Tasks changed externally; edit canceled")},o=EG(this.store),{editContext:r,tasksWithTimeForToday:M,dataviewLoaded:b,isModPressed:i,newlyStartedTasks:z,isOnline:a,isDarkMode:s,dateRanges:O,dataviewSyncTrigger:l,pointerDateTime:A,tasksWithActiveClockProps:f,getDisplayedTasksWithClocksForTimeline:h,visibleDays:R}=Be0({app:this.app,dataviewFacade:this.dataviewFacade,workspaceFacade:this.workspaceFacade,settingsStore:this.settingsStore,onUpdate:t,onEditAborted:n,currentTime:ci,dispatch:this.store.dispatch,plugin:this,useSelector:o});this.syncDataview=()=>l.set({}),this.registerDomEvent(window,"blur",r.cancelEdit),this.registerDomEvent(document,"pointerup",r.cancelEdit);const W=PG({sTaskEditor:this.sTaskEditor,plugin:this});this.registerEvent(this.app.workspace.on("editor-menu",W)),this.register(r.cursor.subscribe(({bodyCursor:g})=>{document.body.style.cursor=g})),this.register(R.subscribe(g=>{this.store.dispatch(eG(g.map(v=>v.to Line truncated
/* nosourcemap */
+11
View File
@@ -0,0 +1,11 @@
{
"id": "obsidian-day-planner",
"name": "Day Planner",
"version": "0.28.0",
"minAppVersion": "0.16.0",
"description": "A day planner with clean UI and readable syntax",
"author": "James Lynch, continued by Ivan Lednev",
"authorUrl": "https://github.com/ivan-lednev",
"fundingUrl": "https://www.buymeacoffee.com/machineelf",
"isDesktopOnly": false
}
+9
View File
@@ -0,0 +1,9 @@
.mini-timeline.svelte-16282mn{position:relative;display:flex;gap:0;align-items:stretch;height:100%;background-color:var(--color-base-30)}.time-marker.svelte-16282mn{position:absolute;z-index:2;width:0;height:0;border-right:var(--time-marker-half-width-px) solid transparent;border-left:var(--time-marker-half-width-px) solid transparent}.time-marker.top.svelte-16282mn{top:var(--time-marker-offset-y-px);border-top:var(--time-marker-half-width-px) solid var(--color-accent);border-top-left-radius:2px;border-top-right-radius:2px}.time-marker.bottom.svelte-16282mn{bottom:var(--time-marker-offset-y-px);border-bottom:var(--time-marker-half-width-px) solid var(--color-accent);border-bottom-right-radius:2px;border-bottom-left-radius:2px}.hour-segment.svelte-16282mn{position:relative;top:-15%;width:10px;height:130%;background-color:transparent}.hour-segment.svelte-16282mn:not(:last-child){border-right:1px solid var(--text-faint)}.hour-end-segment.svelte-16282mn:not(:last-child){top:-20%;left:1px;height:140%;border-right:2px solid var(--text-faint)}.mini-time-block-wrapper.svelte-16282mn{position:absolute;z-index:1;top:0;right:0;bottom:0;left:0;overflow:hidden}.mini-time-block.svelte-16282mn{position:absolute;display:flex;align-items:center;background-color:var(--background-primary);border:1px solid var(--text-faint)}.remote-block-strip.svelte-16282mn{flex:1 0 0;height:30%}.root.svelte-1xmfwal{display:contents}.root.svelte-1xmfwal .status-bar-item-icon{display:inline-flex}.status-bar-item-segment.svelte-1xmfwal{display:flex;gap:var(--size-2-1);align-items:center}.status-bar-item-segment.progress-pie.svelte-1xmfwal{display:block}.pill-icon{width:var(--size-4-3);height:var(--size-4-3)}.pill.svelte-w634mr{display:inline-flex;gap:var(--size-4-1);align-items:center;padding:var(--size-2-1) var(--size-4-2);font-size:var(--font-ui-smaller);color:var(--tag-color);white-space:nowrap;background-color:var(--tag-background);border-radius:var(--radius-m)}.view-header-nav-buttons.svelte-zd0ihh{display:flex;gap:var(--size-4-1)}.search-results-scroller.svelte-1jzfqa{overflow-y:auto}.search-results.svelte-1jzfqa{display:flex;flex-direction:column;margin:var(--size-4-2) var(--size-4-3);background-color:var( --search-results-bg-color, var(--background-secondary) );border:1px solid var(--background-modifier-border);border-radius:var(--radius-s)}.search-result.svelte-1jzfqa:not(:last-child){border-bottom:1px solid var(--background-modifier-border)}.day-planner-task-decoration{margin:0 .25em;padding:.1em .25em;font-size:var(--tag-size);font-weight:var(--tag-weight);line-height:1;color:var(--tag-color);text-decoration:var(--tag-decoration);background-color:var(--tag-background);border-radius:var(--radius-s)}.rendered-markdown.svelte-16dqlil{--checkbox-size: var(--font-ui-small);flex:1 0 0;padding:var(--size-2-1) var(--size-4-1);color:var(--text-normal)}.rendered-markdown.svelte-16dqlil p,.rendered-markdown.svelte-16dqlil ul{margin-block:0}.rendered-markdown.svelte-16dqlil ul,.rendered-markdown.svelte-16dqlil ol{padding-inline-start:20px}.rendered-markdown.svelte-16dqlil input[type=checkbox]{top:2px;margin-inline-end:4px;border-color:var(--text-muted)}.rendered-markdown.svelte-16dqlil li{color:var(--text-normal)}.rendered-markdown.svelte-16dqlil li.task-list-item[data-task=x],.rendered-markdown.svelte-16dqlil li.task-list-item[data-task=X]{color:var(--text-muted)}.padding.svelte-k3w6xi{position:var(--time-block-position, static);top:var(--time-block-top, 0);left:var(--time-block-left, 0);display:flex;grid-column:var(--time-block-grid-column, unset);width:var(--time-block-width, 100%);height:var(--time-block-height, auto);padding:var(--time-block-padding, 0 1px 2px);transition:.05s linear}.content.svelte-k3w6xi{--default-box-shadow: 1px 1px 2px 0 #0000001f;position:relative;flex:1 0 0;font-size:var(--font-ui-small);text-align:left;overflow-wrap:anywhere;white-space:normal;border:1px solid var(--time-block-border-color, var(--color-base-50));border-radius:var(--radius-s);box-shadow:var(--time-block-box-shadow, var(--default-box-shadow))}.truncated-left.svelte-k3w6xi{border-left-style:dashed;border-left-width:2px;border-top-left-radius:0;border-bottom-left-radius:0}.truncated-right.svelte-k3w6xi{border-right-style:dashed;border-right-width:2px;border-top-right-radius:0;border-bottom-right-radius:0}input.svelte-q2gfbz{flex-shrink:0;margin:var(--size-4-2) var(--size-4-3) 0}.result-message.svelte-q2gfbz{margin:var(--size-4-2) var(--size-4-3);font-size:var(--font-ui-smaller);color:var(--text-faint)}.search-wrapper.svelte-q2gfbz{display:flex;flex-direction:column;max-height:var(--search-max-height, 100%)}.clickable-icon.svelte-6wn7nv{color:var(--color, var(--icon-color));white-space:nowrap;border:var(--control-button-border, none);border-radius:var(--border-radius, var(--clickable-icon-radius))}.hours-container.svelte-1xa1xit{position:sticky;z-index:5;left:0;display:flex;flex-direction:column;height:fit-content;background-color:var(--background-primarLine truncated
* OverlayScrollbars
* Version: 2.10.0
*
* Copyright (c) Rene Haas | KingSora.
* https://github.com/KingSora
*
* Released under the MIT license.
*/.os-size-observer,.os-size-observer-listener{scroll-behavior:auto!important;direction:inherit;pointer-events:none;overflow:hidden;visibility:hidden;box-sizing:border-box}.os-size-observer,.os-size-observer-listener,.os-size-observer-listener-item,.os-size-observer-listener-item-final{writing-mode:horizontal-tb;position:absolute;left:0;top:0}.os-size-observer{z-index:-1;contain:strict;display:flex;flex-direction:row;flex-wrap:nowrap;padding:inherit;border:inherit;box-sizing:inherit;margin:-133px;top:0;right:0;bottom:0;left:0;transform:scale(.1)}.os-size-observer:before{content:"";flex:none;box-sizing:inherit;padding:10px;width:10px;height:10px}.os-size-observer-appear{animation:os-size-observer-appear-animation 1ms forwards}.os-size-observer-listener{box-sizing:border-box;position:relative;flex:auto;padding:inherit;border:inherit;margin:-133px;transform:scale(10)}.os-size-observer-listener.ltr{margin-right:-266px;margin-left:0}.os-size-observer-listener.rtl{margin-left:-266px;margin-right:0}.os-size-observer-listener:empty:before{content:"";width:100%;height:100%}.os-size-observer-listener:empty:before,.os-size-observer-listener>.os-size-observer-listener-item{display:block;position:relative;padding:inherit;border:inherit;box-sizing:content-box;flex:auto}.os-size-observer-listener-scroll{box-sizing:border-box;display:flex}.os-size-observer-listener-item{right:0;bottom:0;overflow:hidden;direction:ltr;flex:none}.os-size-observer-listener-item-final{transition:none}@keyframes os-size-observer-appear-animation{0%{cursor:auto}to{cursor:none}}.os-trinsic-observer{flex:none;box-sizing:border-box;position:relative;max-width:0px;max-height:1px;padding:0;margin:0;border:none;overflow:hidden;z-index:-1;height:0;top:calc(100% + 1px);contain:strict}.os-trinsic-observer:not(:empty){height:calc(100% + 1px);top:-1px}.os-trinsic-observer:not(:empty)>.os-size-observer{width:1000%;height:1000%;min-height:1px;min-width:1px}[data-overlayscrollbars-initialize],[data-overlayscrollbars-viewport~=scrollbarHidden]{scrollbar-width:none!important}[data-overlayscrollbars-initialize]::-webkit-scrollbar,[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;display:none!important;width:0!important;height:0!important}[data-overlayscrollbars-initialize]:not([data-overlayscrollbars]):not(html):not(body){overflow:auto}html[data-overlayscrollbars-body]{overflow:hidden}html[data-overlayscrollbars-body],html[data-overlayscrollbars-body]>body{width:100%;height:100%;margin:0}html[data-overlayscrollbars-body]>body{overflow:visible;margin:0}[data-overlayscrollbars]{position:relative}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{display:flex;align-items:stretch!important;flex-direction:row!important;flex-wrap:nowrap!important;scroll-behavior:auto!important}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){box-sizing:inherit;position:relative;flex:auto!important;height:auto;width:100%;min-width:0;padding:0;margin:0;border:none;z-index:0}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){--os-vaw: 0;--os-vah: 0;outline:none}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]):focus{outline:none}[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]:before{content:"";position:absolute;pointer-events:none;z-index:-1;min-width:1px;min-height:1px;width:var(--os-vaw);height:var(--os-vah)}[data-overlayscrollbars],[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]{overflow:hidden!important}[data-overlayscrollbars~=noClipping],[data-overlayscrollbars-padding~=noClipping]{overflow:visible!important}[data-overlayscrollbars-viewport~=measuring]{overflow:hidden!important;scroll-behavior:auto!important;scroll-snap-type:none!important}[data-overlayscrollbars-viewport~=overflowXVisible]:not([data-overlayscrollbars-viewport~=measuring]){overflow-x:visible!important}[data-overlayscrollbars-viewport~=overflowXHidden]{overflow-x:hidden!important}[data-overlayscrollbars-viewport~=overflowXScroll]{overflow-x:scroll!important}[data-overlayscrollbars-viewport~=overflowYVisible]:not([data-overlayscrollbars-viewport~=measuring]){overflow-y:visible!important}[data-overlayscrollbars-viewport~=overflowYHidden]{overflow-y:hidden!important}[data-overlayscrollbars-viewport~=overflowYScroll]{overflow-y:scroll!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId){font-size:0!important;line-height:0!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):before,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):after,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId)>*{display:none!important;position:absolute!important;width:1px!important;height:1px!important;padding:0!iLine truncated
+3
View File
@@ -0,0 +1,3 @@
{
"show-checkboxes": true
}
+153
View File
@@ -0,0 +1,153 @@
var sF=Object.create;var Vs=Object.defineProperty;var lF=Object.getOwnPropertyDescriptor;var uF=Object.getOwnPropertyNames;var cF=Object.getPrototypeOf,dF=Object.prototype.hasOwnProperty;var fF=(e,t,r)=>t in e?Vs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var hF=(e,t)=>()=>(e&&(t=e(e=0)),t);var wn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rf=(e,t)=>{for(var r in t)Vs(e,r,{get:t[r],enumerable:!0})},av=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of uF(t))!dF.call(e,i)&&i!==r&&Vs(e,i,{get:()=>t[i],enumerable:!(n=lF(t,i))||n.enumerable});return e};var Ct=(e,t,r)=>(r=e!=null?sF(cF(e)):{},av(t||!e||!e.__esModule?Vs(r,"default",{value:e,enumerable:!0}):r,e)),ov=e=>av(Vs({},"__esModule",{value:!0}),e);var ur=(e,t,r)=>(fF(e,typeof t!="symbol"?t+"":t,r),r);var ln=wn((hi,Zv)=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});function Qr(e){return typeof e=="object"&&!("toString"in e)?Object.prototype.toString.call(e).slice(8,-1):e}var eI=typeof process=="object"&&!0;function Vr(e,t){if(!e)throw eI?new Error("Invariant failed"):new Error(t())}hi.invariant=Vr;var nh=Object.prototype.hasOwnProperty,tI=Array.prototype.splice,nI=Object.prototype.toString;function Ua(e){return nI.call(e).slice(8,-1)}var bu=Object.assign||function(e,t){return rh(t).forEach(function(r){nh.call(t,r)&&(e[r]=t[r])}),e},rh=typeof Object.getOwnPropertySymbols=="function"?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function sa(e){return Array.isArray(e)?bu(e.constructor(e.length),e):Ua(e)==="Map"?new Map(e):Ua(e)==="Set"?new Set(e):e&&typeof e=="object"?bu(Object.create(Object.getPrototypeOf(e)),e):e}var Gv=function(){function e(){this.commands=bu({},rI),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(t,r){return t===r},this.update.newContext=function(){return new e().update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(t){this.update.isEquals=t},enumerable:!0,configurable:!0}),e.prototype.extend=function(t,r){this.commands[t]=r},e.prototype.update=function(t,r){var n=this,i=typeof r=="function"?{$apply:r}:r;Array.isArray(t)&&Array.isArray(i)||Vr(!Array.isArray(i),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),Vr(typeof i=="object"&&i!==null,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the "+("following commands: "+Object.keys(n.commands).join(", ")+".")});var a=t;return rh(i).forEach(function(o){if(nh.call(n.commands,o)){var s=t===a;a=n.commands[o](i[o],a,i,t),s&&n.isEquals(a,t)&&(a=t)}else{var u=Ua(t)==="Map"?n.update(t.get(o),i[o]):n.update(t[o],i[o]),l=Ua(a)==="Map"?a.get(o):a[o];(!n.isEquals(u,l)||typeof u=="undefined"&&!nh.call(t,o))&&(a===t&&(a=sa(t)),Ua(a)==="Map"?a.set(o,u):a[o]=u)}}),a},e}();hi.Context=Gv;var rI={$push:function(e,t,r){return jv(t,r,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,r){return jv(t,r,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,r,n){return iI(t,r),e.forEach(function(i){Jv(i),t===n&&i.length&&(t=sa(n)),tI.apply(t,i)}),t},$set:function(e,t,r){return oI(r),e},$toggle:function(e,t){zs(e,"$toggle");var r=e.length?sa(t):t;return e.forEach(function(n){r[n]=!t[n]}),r},$unset:function(e,t,r,n){return zs(e,"$unset"),e.forEach(function(i){Object.hasOwnProperty.call(t,i)&&(t===n&&(t=sa(n)),delete t[i])}),t},$add:function(e,t,r,n){return qv(t,"$add"),zs(e,"$add"),Ua(t)==="Map"?e.forEach(function(i){var a=i[0],o=i[1];t===n&&t.get(a)!==o&&(t=sa(n)),t.set(a,o)}):e.forEach(function(i){t===n&&!t.has(i)&&(t=sa(n)),t.add(i)}),t},$remove:function(e,t,r,n){return qv(t,"$remove"),zs(e,"$remove"),e.forEach(function(i){t===n&&t.has(i)&&(t=sa(n)),t.delete(i)}),t},$merge:function(e,t,r,n){return sI(t,e),rh(e).forEach(function(i){e[i]!==t[i]&&(t===n&&(t=sa(n)),t[i]=e[i])}),t},$apply:function(e,t){return aI(e),e(t)}},ih=new Gv;hi.isEquals=ih.update.isEquals;hi.extend=ih.extend;hi.default=ih.update;hi.default.default=Zv.exports=bu(hi.default,hi);function jv(e,t,r){Vr(Array.isArray(e),function(){return"update(): expected target of "+Qr(r)+" to be an array; got "+Qr(e)+"."}),zs(t[r],r)}function zs(e,t){Vr(Array.isArray(e),function(){return"update(): expected spec of "+Qr(t)+" to be an array; got "+Qr(e)+". Did you forget to wrap your parameter in an array?"})}function iI(e,t){Vr(Array.isArray(e),function(){return"Expected $splice target to be an array; got "+Qr(e)}),Jv(t.$splice)}function Jv(e){Vr(Array.isArray(e),function(){return"update(): expected spec of $splice to be an array of arrays; got "+Qr(e)+". Did you forget to wrap your parameters in an array?"})}function aI(e){Vr(typeof e=="funcLine truncated
`||L.charAt(ge)==="\r"&&L.charAt(ge+1)!==`
`)&&(de++,ve===0&&(ve=ge+1)),ge--}var M=ue+de,H=K-ve;return ee[K]={line:M,lineStart:ve},{offset:K,line:M+1,column:H+1}}function oe(L){if(!x(L))throw new Error("not a parser: "+L)}function te(L,K){return typeof L=="string"?L.charAt(K):L[K]}function re(L){if(typeof L!="number")throw new Error("not a number: "+L)}function ne(L){if(typeof L!="function")throw new Error("not a function: "+L)}function be(L){if(typeof L!="string")throw new Error("not a string: "+L)}var pe=2,De=3,Ce=8,U=5*Ce,Je=4*Ce,it=" ";function N(L,K){return new Array(K+1).join(L)}function Ze(L,K,ee){var ue=K-L.length;return ue<=0?L:N(ee,ue)+L}function It(L,K,ee,ue){return{from:L-K>0?L-K:0,to:L+ee>ue?ue:L+ee}}function Mt(L,K){var ee,ue,de,ve,ge,M=K.index,H=M.offset,q=1;if(H===L.length)return"Got the end of the input";if(A(L)){var ie=H-H%Ce,ye=H-ie,ce=It(ie,U,Je+Ce,L.length),ae=l(function(Te){return l(function(Ue){return Ze(Ue.toString(16),2,"0")},Te)},function(Te,Ue){var We=Te.length,Ft=[],Hn=0;if(We<=Ue)return[Te.slice()];for(var Ot=0;Ot<We;Ot++)Ft[Hn]||Ft.push([]),Ft[Hn].push(Te[Ot]),(Ot+1)%Ue==0&&Hn++;return Ft}(L.slice(ce.from,ce.to).toJSON().data,Ce));ve=function(Te){return Te.from===0&&Te.to===1?{from:Te.from,to:Te.to}:{from:Te.from/Ce,to:Math.floor(Te.to/Ce)}}(ce),ue=ie/Ce,ee=3*ye,ye>=4&&(ee+=1),q=2,de=l(function(Te){return Te.length<=4?Te.join(" "):Te.slice(0,4).join(" ")+" "+Te.slice(4).join(" ")},ae),(ge=(8*(ve.to>0?ve.to-1:ve.to)).toString(16).length)<2&&(ge=2)}else{var Se=L.split(/\r\n|[\n\r\u2028\u2029]/);ee=M.column-1,ue=M.line-1,ve=It(ue,pe,De,Se.length),de=Se.slice(ve.from,ve.to),ge=ve.to.toString().length}var nt=ue-ve.from;return A(L)&&(ge=(8*(ve.to>0?ve.to-1:ve.to)).toString(16).length)<2&&(ge=2),u(function(Te,Ue,We){var Ft,Hn=We===nt,Ot=Hn?"> ":it;return Ft=A(L)?Ze((8*(ve.from+We)).toString(16),ge,"0"):Ze((ve.from+We+1).toString(),ge," "),[].concat(Te,[Ot+Ft+" | "+Ue],Hn?[it+N(" ",ge)+" | "+Ze("",ee," ")+N("^",q)]:[])},[],de).join(`
`)}function jt(L,K){return[`
`,"-- PARSING FAILED "+N("-",50),`
`,Mt(L,K),`
`,(ee=K.expected,ee.length===1?`Expected:
`+ee[0]:`Expected one of the following:
`+ee.join(", ")),`
`].join("");var ee}function vt(L){return L.flags!==void 0?L.flags:[L.global?"g":"",L.ignoreCase?"i":"",L.multiline?"m":"",L.unicode?"u":"",L.sticky?"y":""].join("")}function Wt(){for(var L=[].slice.call(arguments),K=L.length,ee=0;ee<K;ee+=1)oe(L[ee]);return a(function(ue,de){for(var ve,ge=new Array(K),M=0;M<K;M+=1){if(!(ve=G(L[M]._(ue,de),ve)).status)return ve;ge[M]=ve.value,de=ve.index}return G(P(de,ge),ve)})}function Tt(){var L=[].slice.call(arguments);if(L.length===0)throw new Error("seqMap needs at least one argument");var K=L.pop();return ne(K),Wt.apply(null,L).map(function(ee){return K.apply(null,ee)})}function Jt(){var L=[].slice.call(arguments),K=L.length;if(K===0)return jn("zero alternates");for(var ee=0;ee<K;ee+=1)oe(L[ee]);return a(function(ue,de){for(var ve,ge=0;ge<L.length;ge+=1)if((ve=G(L[ge]._(ue,de),ve)).status)return ve;return ve})}function en(L,K){return gn(L,K).or(xn([]))}function gn(L,K){return oe(L),oe(K),Tt(L,K.then(L).many(),function(ee,ue){return[ee].concat(ue)})}function yn(L){be(L);var K="'"+L+"'";return a(function(ee,ue){var de=ue+L.length,ve=ee.slice(ue,de);return ve===L?P(de,ve):B(ue,K)})}function vn(L,K){(function(de){if(!(de instanceof RegExp))throw new Error("not a regexp: "+de);for(var ve=vt(de),ge=0;ge<ve.length;ge++){var M=ve.charAt(ge);if(M!=="i"&&M!=="m"&&M!=="u"&&M!=="s")throw new Error('unsupported regexp flag "'+M+'": '+de)}})(L),arguments.length>=2?re(K):K=0;var ee=function(de){return RegExp("^(?:"+de.source+")",vt(de))}(L),ue=""+L;return a(function(de,ve){var ge=ee.exec(de.slice(ve));if(ge){if(0<=K&&K<=ge.length){var M=ge[0],H=ge[K];return P(ve+M.length,H)}return B(ve,"valid match group (0 to "+ge.length+") in "+ue)}return B(ve,ue)})}function xn(L){return a(function(K,ee){return P(ee,L)})}function jn(L){return a(function(K,ee){return B(ee,L)})}function sn(L){if(x(L))return a(function(K,ee){var ue=L._(K,ee);return ue.index=ee,ue.value="",ue});if(typeof L=="string")return sn(yn(L));if(L instanceof RegExp)return sn(vn(L));throw new Error("not a string, regexp, or parser: "+L)}function Rt(L){return oe(L),a(function(K,ee){var ue=L._(K,ee),de=K.slice(ee,ue.index);return ue.status?B(ee,'not "'+de+'"'):P(ee,null)})}function Vt(L){return ne(L),a(function(K,ee){var ue=te(K,ee);return ee<K.length&&L(ue)?P(ee+1,ue):B(ee,"a character/byte matching "+L)})}function Sr(L,K){arguments.length<2&&(K=L,L=void 0);var ee=a(function(ue,de){return ee._=K()._,ee._(ue,de)});return L?ee.desc(L):ee}function Rr(){return jn("fantasy-land/empty")}o.parse=function(L){if(typeof L!="string"&&!A(L))throw new Error(".parse must be called with a string or Buffer as its argument");var K,ee=this.skip(At)._(L,0);return K=ee.status?{status:!0,value:ee.value}:{status:!1,index:Q(L,ee.furthest),expected:ee.expected},delete J[L],K},o.tryParse=function(L){var K=this.parse(L);if(K.status)return K.value;var ee=jt(L,K),ue=new Error(ee);throw ue.type="ParsimmonError",ue.result=K,ue},o.assert=function(L,K){return this.chain(function(ee){return L(ee)?xn(ee):jn(K)})},o.or=function(L){return Jt(this,L)},o.trim=function(L){return this.wrap(L,L)},o.wrap=function(L,K){return Tt(L,this,K,function(ee,ue){return ue})},o.thru=function(L){return L(this)},o.then=function(L){return oe(L),Wt(this,L).map(function(K){return K[1]})},o.many=function(){var L=this;return a(function(K,ee){for(var ue=[],de=void 0;;){if(!(de=G(L._(K,ee),de)).status)return G(P(ee,ue),de);if(ee===de.index)throw new Error("infinite loop detected in .many() parser --- calling .many() on a parser which can accept zero characters is usually the cause");ee=de.index,ue.push(de.value)}})},o.tieWith=function(L){return be(L),this.map(function(K){if(function(de){if(!O(de))throw new Error("not an array: "+de)}(K),K.length){be(K[0]);for(var ee=K[0],ue=1;ue<K.length;ue++)be(K[ue]),ee+=L+K[ue];return ee}return""})},o.tie=function(){return this.tieWith("")},o.times=function(L,K){var ee=this;return arguments.length<2&&(K=L),re(L),re(K),a(function(ue,de){for(var ve=[],ge=void 0,M=void 0,H=0;H<L;H+=1){if(M=G(ge=ee._(ue,de),M),!ge.status)return M;de=ge.index,ve.push(ge.value)}for(;H<K&&(M=G(ge=ee._(ue,de),M),ge.status);H+=1)de=ge.index,ve.push(ge.value);return G(P(de,ve),M)})},o.result=function(L){return this.map(function(){return L})},o.atMost=function(L){return this.times(0,L)},o.atLeast=function(L){return Tt(this.times(L),this.many(),function(K,ee){return K.concat(ee)})},o.map=function(L){ne(L);var K=this;return a(function(ee,ue){var de=K._(ee,ue);return de.status?G(P(de.index,L(de.value)),de):de})},o.contramap=function(L){ne(L);var K=this;return a(function(ee,ue){var de=K.parse(L(ee.slice(ue)));return de.status?P(ue+ee.length,de.value):de})},o.promap=function(L,K){return ne(L),ne(K),this.contramap(L).map(K)},o.skip=function(L){return Wt(this,L).map(function(K){return K[0]})},o.mark=function(){return Tt(Bt,this,Bt,function(L,K,ee){return{start:L,value:K,end:ee}})},o.node=function(L){return Tt(Bt,this,Bt,function(K,ee,ue){return{name:L,value:ee,start:K,end:ue}})},o.sepBy=f Line truncated
`),ar=yn(`\r
`),ht=Jt(ar,Ht,_n).desc("newline"),St=Jt(ht,At);a.all=rn,a.alt=Jt,a.any=Hr,a.cr=_n,a.createLanguage=function(L){var K={};for(var ee in L)({}).hasOwnProperty.call(L,ee)&&function(ue){K[ue]=Sr(function(){return L[ue](K)})}(ee);return K},a.crlf=ar,a.custom=function(L){return a(L(P,B))},a.digit=Z,a.digits=me,a.empty=Rr,a.end=St,a.eof=At,a.fail=jn,a.formatError=jt,a.index=Bt,a.isParser=x,a.lazy=Sr,a.letter=Ie,a.letters=at,a.lf=Ht,a.lookahead=sn,a.makeFailure=B,a.makeSuccess=P,a.newline=ht,a.noneOf=function(L){return Vt(function(K){return L.indexOf(K)<0}).desc("none of '"+L+"'")},a.notFollowedBy=Rt,a.of=xn,a.oneOf=function(L){for(var K=L.split(""),ee=0;ee<K.length;ee++)K[ee]="'"+K[ee]+"'";return Vt(function(ue){return L.indexOf(ue)>=0}).desc(K)},a.optWhitespace=Dt,a.Parser=a,a.range=function(L,K){return Vt(function(ee){return L<=ee&&ee<=K}).desc(L+"-"+K)},a.regex=vn,a.regexp=vn,a.sepBy=en,a.sepBy1=gn,a.seq=Wt,a.seqMap=Tt,a.seqObj=function(){for(var L,K={},ee=0,ue=(L=arguments,Array.prototype.slice.call(L)),de=ue.length,ve=0;ve<de;ve+=1){var ge=ue[ve];if(!x(ge)){if(O(ge)&&ge.length===2&&typeof ge[0]=="string"&&x(ge[1])){var M=ge[0];if(Object.prototype.hasOwnProperty.call(K,M))throw new Error("seqObj: duplicate key "+M);K[M]=!0,ee++;continue}throw new Error("seqObj arguments must be parsers or [string, parser] array pairs.")}}if(ee===0)throw new Error("seqObj expects at least one named parser, found zero");return a(function(H,q){for(var ie,ye={},ce=0;ce<de;ce+=1){var ae,Se;if(O(ue[ce])?(ae=ue[ce][0],Se=ue[ce][1]):(ae=null,Se=ue[ce]),!(ie=G(Se._(H,q),ie)).status)return ie;ae&&(ye[ae]=ie.value),q=ie.index}return G(P(q,ye),ie)})},a.string=yn,a.succeed=xn,a.takeWhile=function(L){return ne(L),a(function(K,ee){for(var ue=ee;ue<K.length&&L(te(K,ue));)ue++;return P(ue,K.slice(ee,ue))})},a.test=Vt,a.whitespace=Cn,a["fantasy-land/empty"]=Rr,a["fantasy-land/of"]=xn,a.Binary={bitSeq:h,bitSeqObj:function(L){m();var K={},ee=0,ue=l(function(ve){if(O(ve)){var ge=ve;if(ge.length!==2)throw new Error("["+ge.join(", ")+"] should be length 2, got length "+ge.length);if(be(ge[0]),re(ge[1]),Object.prototype.hasOwnProperty.call(K,ge[0]))throw new Error("duplicate key in bitSeqObj: "+ge[0]);return K[ge[0]]=!0,ee++,ge}return re(ve),[null,ve]},L);if(ee<1)throw new Error("bitSeqObj expects at least one named pair, got ["+L.join(", ")+"]");var de=l(function(ve){return ve[0]},ue);return h(l(function(ve){return ve[1]},ue)).map(function(ve){return u(function(ge,M){return M[0]!==null&&(ge[M[0]]=M[1]),ge},{},l(function(ge,M){return[ge,ve[M]]},de))})},byte:function(L){if(m(),re(L),L>255)throw new Error("Value specified to byte constructor ("+L+"=0x"+L.toString(16)+") is larger in value than a single byte.");var K=(L>15?"0x":"0x0")+L.toString(16);return a(function(ee,ue){var de=te(ee,ue);return de===L?P(ue+1,de):B(ue,K)})},buffer:function(L){return g("buffer",L).map(function(K){return Buffer.from(K)})},encodedString:function(L,K){return g("string",K).map(function(ee){return ee.toString(L)})},uintBE:v,uint8BE:v(1),uint16BE:v(2),uint32BE:v(4),uintLE:D,uint8LE:D(1),uint16LE:D(2),uint32LE:D(4),intBE:I,int8BE:I(1),int16BE:I(2),int32BE:I(4),intLE:C,int8LE:C(1),int16LE:C(2),int32LE:C(4),floatBE:g("floatBE",4).map(function(L){return L.readFloatBE(0)}),floatLE:g("floatLE",4).map(function(L){return L.readFloatLE(0)}),doubleBE:g("doubleBE",8).map(function(L){return L.readDoubleBE(0)}),doubleLE:g("doubleLE",8).map(function(L){return L.readDoubleLE(0)})},r.exports=a}])})})(kc,kc.exports);var W=kc.exports,Bm=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32- Line truncated
`)[0];let n=r.substring(2).trim();return W.makeSuccess(t+r.length,n)}),namedField:e=>W.alt(e.explicitNamedField,jP(ai.field).map(([t,r])=>Cc.named(qP(r),t))),sortField:e=>W.seqMap(ai.field.skip(W.optWhitespace),W.regexp(/ASCENDING|DESCENDING|ASC|DESC/i).atMost(1),(t,r)=>{let n=r.length==0?"ascending":r[0].toLowerCase();return n=="desc"&&(n="descending"),n=="asc"&&(n="ascending"),{field:t,direction:n}}),headerClause:e=>e.queryType.chain(t=>{switch(t){case"table":return R0(()=>({type:t,fields:[],showId:!0}),W.seqMap(W.regexp(/WITHOUT\s+ID/i).skip(W.optWhitespace).atMost(1),W.sepBy(e.namedField,W.string(",").trim(W.optWhitespace)),(r,n)=>({type:t,fields:n,showId:r.length==0})));case"list":return R0(()=>({type:t,format:void 0,showId:!0}),W.seqMap(W.regexp(/WITHOUT\s+ID/i).skip(W.optWhitespace).atMost(1),ai.field.atMost(1),(r,n)=>({type:t,format:n.length==1?n[0]:void 0,showId:r.length==0})));case"task":return W.succeed({type:t});case"calendar":return W.whitespace.then(W.seqMap(e.namedField,r=>({type:t,showId:!0,field:r})));default:return W.fail(`Unrecognized query type '${t}'`)}}).desc("TABLE or LIST or TASK or CALENDAR"),fromClause:e=>W.seqMap(W.regexp(/FROM/i),W.whitespace,ai.source,(t,r,n)=>n),whereClause:e=>W.seqMap(W.regexp(/WHERE/i),W.whitespace,ai.field,(t,r,n)=>({type:"where",clause:n})).desc("WHERE <expression>"),sortByClause:e=>W.seqMap(W.regexp(/SORT/i),W.whitespace,e.sortField.sepBy1(W.string(",").trim(W.optWhitespace)),(t,r,n)=>({type:"sort",fields:n})).desc("SORT field [ASC/DESC]"),limitClause:e=>W.seqMap(W.regexp(/LIMIT/i),W.whitespace,ai.field,(t,r,n)=>({type:"limit",amount:n})).desc("LIMIT <value>"),flattenClause:e=>W.seqMap(W.regexp(/FLATTEN/i).skip(W.whitespace),e.namedField,(t,r)=>({type:"flatten",field:r})).desc("FLATTEN <value> [AS <name>]"),groupByClause:e=>W.seqMap(W.regexp(/GROUP BY/i).skip(W.whitespace),e.namedField,(t,r)=>({type:"group",field:r})).desc("GROUP BY <value> [AS <name>]"),clause:e=>W.alt(e.fromClause,e.whereClause,e.sortByClause,e.limitClause,e.groupByClause,e.flattenClause),query:e=>W.seqMap(e.headerClause.trim(dm),e.fromClause.trim(dm).atMost(1),e.clause.trim(dm).many(),(t,r,n)=>({header:t,source:r.length==0?Si.folder(""):r[0],operations:n,settings:Hm}))}),dm=W.alt(W.whitespace,RS.comment).many().map(e=>e.join("")),GP=e=>{var t;return e?(t=e.plugins.plugins.dataview)==null?void 0:t.api:window.DataviewAPI},JP=e=>e.plugins.enabledPlugins.has("dataview");Ei.DATE_SHORTHANDS=Fm;Ei.DURATION_TYPES=Tm;Ei.EXPRESSION=ai;Ei.KEYWORDS=Im;Ei.QUERY_LANGUAGE=RS;Ei.getAPI=GP;Ei.isPluginEnabled=JP;Ei.parseField=KP});var HS=wn((Vm,$m)=>{(function(e,t){typeof Vm=="object"&&typeof $m!="undefined"?$m.exports=t():typeof define=="function"&&define.amd?define(t):e.Mark=t()})(Vm,function(){"use strict";var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t=function(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")},r=function(){function s(u,l){for(var c=0;c<l.length;c++){var d=l[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}return function(u,l,c){return l&&s(u.prototype,l),c&&s(u,c),u}}(),n=Object.assign||function(s){for(var u=1;u<arguments.length;u++){var l=arguments[u];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(s[c]=l[c])}return s},i=function(){function s(u){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;t(this,s),this.ctx=u,this.iframes=l,this.exclude=c,this.iframesTimeout=d}return r(s,[{key:"getContexts",value:function(){var l=void 0,c=[];return typeof this.ctx=="undefined"||!this.ctx?l=[]:NodeList.prototype.isPrototypeOf(this.ctx)?l=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?l=this.ctx:typeof this.ctx=="string"?l=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):l=[this.ctx],l.forEach(function(d){var m=c.filter(function(h){return h.contains(d)}).length>0;c.indexOf(d)===-1&&!m&&c.push(d)}),c}},{key:"getIframeContents",value:function(l,c){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},m=void 0;try{var h=l.contentWindow;if(m=h.document,!h||!m)throw new Error("iframe inaccessible")}catch(g){d()}m&&c(m)}},{key:"isIframeBlank",value:function(l){var c="about:blank",d=l.getAttribute("src").trim(),m=l.contentWindow.location.href;return m===c&&d!==c&&d}},{key:"observeIframeLoad",value:function(l,c,d){var m=this,h=!1,g=null,y=function v(){if(!h){h=!0,activeWindow.clearTimeout(g);try{m.isIframeBlank(l)||(l.removeEventListener("load",v),m.getIframeContents(l,c,d))}catch(D){d()}}};l.addEventListener("load",y),g=activeWindow.setTimeout(y,this.iframesTimeout)}},{key:"onIframeReady",value:function(l,c,d){try{l.contentWindow.document.readyState==="c Line truncated
[`+j+"] ";for(se in arguments[0])a(arguments[0],se)&&(F+=se+": "+arguments[0][se]+", ");F=F.slice(0,-2)}else F=arguments[j];S.push(F)}P(f+`
Arguments: `+Array.prototype.slice.call(S).join("")+`
`+new Error().stack),w=!1}return p.apply(this,arguments)},p)}var G={};function J(f,p){t.deprecationHandler!=null&&t.deprecationHandler(f,p),G[f]||(P(p),G[f]=!0)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;function Q(f){return typeof Function!="undefined"&&f instanceof Function||Object.prototype.toString.call(f)==="[object Function]"}function oe(f){var p,w;for(w in f)a(f,w)&&(p=f[w],Q(p)?this[w]=p:this["_"+w]=p);this._config=f,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function te(f,p){var w=d({},f),S;for(S in p)a(p,S)&&(i(f[S])&&i(p[S])?(w[S]={},d(w[S],f[S]),d(w[S],p[S])):p[S]!=null?w[S]=p[S]:delete w[S]);for(S in f)a(f,S)&&!a(p,S)&&i(f[S])&&(w[S]=d({},w[S]));return w}function re(f){f!=null&&this.set(f)}var ne;Object.keys?ne=Object.keys:ne=function(f){var p,w=[];for(p in f)a(f,p)&&w.push(p);return w};var be={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function pe(f,p,w){var S=this._calendar[f]||this._calendar.sameElse;return Q(S)?S.call(p,w):S}function De(f,p,w){var S=""+Math.abs(f),F=p-S.length,j=f>=0;return(j?w?"+":"":"-")+Math.pow(10,Math.max(0,F)).toString().substr(1)+S}var Ce=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,U=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Je={},it={};function N(f,p,w,S){var F=S;typeof S=="string"&&(F=function(){return this[S]()}),f&&(it[f]=F),p&&(it[p[0]]=function(){return De(F.apply(this,arguments),p[1],p[2])}),w&&(it[w]=function(){return this.localeData().ordinal(F.apply(this,arguments),f)})}function Ze(f){return f.match(/\[[\s\S]/)?f.replace(/^\[|\]$/g,""):f.replace(/\\/g,"")}function It(f){var p=f.match(Ce),w,S;for(w=0,S=p.length;w<S;w++)it[p[w]]?p[w]=it[p[w]]:p[w]=Ze(p[w]);return function(F){var j="",se;for(se=0;se<S;se++)j+=Q(p[se])?p[se].call(F,f):p[se];return j}}function Mt(f,p){return f.isValid()?(p=jt(p,f.localeData()),Je[p]=Je[p]||It(p),Je[p](f)):f.localeData().invalidDate()}function jt(f,p){var w=5;function S(F){return p.longDateFormat(F)||F}for(U.lastIndex=0;w>=0&&U.test(f);)f=f.replace(U,S),U.lastIndex=0,w-=1;return f}var vt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Wt(f){var p=this._longDateFormat[f],w=this._longDateFormat[f.toUpperCase()];return p||!w?p:(this._longDateFormat[f]=w.match(Ce).map(function(S){return S==="MMMM"||S==="MM"||S==="DD"||S==="dddd"?S.slice(1):S}).join(""),this._longDateFormat[f])}var Tt="Invalid date";function Jt(){return this._invalidDate}var en="%d",gn=/\d{1,2}/;function yn(f){return this._ordinal.replace("%d",f)}var vn={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function xn(f,p,w,S){var F=this._relativeTime[w];return Q(F)?F(f,p,w,S):F.replace(/%d/i,f)}function jn(f,p){var w=this._relativeTime[f>0?"future":"past"];return Q(w)?w(p):w.replace(/%s/i,p)}var sn={};function Rt(f,p){var w=f.toLowerCase();sn[w]=sn[w+"s"]=sn[p]=f}function Vt(f){return typeof f=="string"?sn[f]||sn[f.toLowerCase()]:void 0}function Sr(f){var p={},w,S;for(S in f)a(f,S)&&(w=Vt(S),w&&(p[w]=f[S]));return p}var Rr={};function Bt(f,p){Rr[f]=p}function Hr(f){var p=[],w;for(w in f)a(f,w)&&p.push({unit:w,priority:Rr[w]});return p.sort(function(S,F){return S.priority-F.priority}),p}function rn(f){return f%4===0&&f%100!==0||f%400===0}function At(f){return f<0?Math.ceil(f)||0:Math.floor(f)}function Z(f){var p=+f,w=0;return p!==0&&isFinite(p)&&(w=At(p)),w}function me(f,p){return function(w){return w!=null?(at(this,f,w),t.updateOffset(this,p),this):Ie(this,f)}}function Ie(f,p){return f.isValid()?f._d["get"+(f._isUTC?"UTC":"")+p]():NaN}function at(f,p,w){f.isValid()&&!isNaN(w)&&(p==="FullYear"&&rn(f.year())&&f.month()===1&&f.date()===29?(w=Z(w),f._d["set"+(f._isUTC?"UTC":"")+p](w,f.month(),b(w,f.month()))):f._d["set"+(f._isUTC?"UTC":"")+p](w))}function Dt(f){return f=Vt(f),Q(this[f])?this[f]():this}function Cn(f,p){if(typeof f=="object"){f=Sr(f);var w=Hr(f),S,F=w.length;for(S=0;S<F;S++)this[w[S].unit](f[w[S].unit])}else if(f=Vt(f),Q(this[f]))return this[f](p);return this}var _n=/\d/,Ht=/\d\d/,ar=/\d{3}/,ht=/\d{4}/,St=/[+-]?\d{6}/,L=/\d\d?/,K=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,ue=/\d{1,3}/,de=/\d{1,4}/,ve=/[+-]?\d{1,6}/,ge=/\d+/,M=/[+-]?\d+/,H=/Z|[+-]\d\d:?\d\d/gi,q=/Z|[+-]\d\d(?::?\d\d)?/gi,ie=/[+-]?\d+(\.\d{1,3})?/,ye=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ce;ce={};function ae(f,p,w){ce[f]=Q(p)?p:function(S,F){return S&&w?w:p}}function Se(f,p){return Line truncated
Search pattern: "`.concat(v,'"'));var I=this._prepareSearchers(v),C=I.tokenSearchers,x=I.fullSearcher,O=this._search(C,x),A=O.weights,P=O.results;return this._computeScore(A,P),this.options.shouldSort&&this._sort(P),D.limit&&typeof D.limit=="number"&&(P=P.slice(0,D.limit)),this._format(P)}},{key:"_prepareSearchers",value:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",D=[];if(this.options.tokenize)for(var I=v.split(this.options.tokenSeparator),C=0,x=I.length;C<x;C+=1)D.push(new u(I[C],this.options));return{tokenSearchers:D,fullSearcher:new u(v,this.options)}}},{key:"_search",value:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=arguments.length>1?arguments[1]:void 0,I=this.list,C={},x=[];if(typeof I[0]=="string"){for(var O=0,A=I.length;O<A;O+=1)this._analyze({key:"",value:I[O],record:O,index:O},{resultMap:C,results:x,tokenSearchers:v,fullSearcher:D});return{weights:null,results:x}}for(var P={},B=0,G=I.length;B<G;B+=1)for(var J=I[B],Q=0,oe=this.options.keys.length;Q<oe;Q+=1){var te=this.options.keys[Q];if(typeof te!="string"){if(P[te.name]={weight:1-te.weight||1},te.weight<=0||te.weight>1)throw new Error("Key weight has to be > 0 and <= 1");te=te.name}else P[te]={weight:1};this._analyze({key:te,value:this.options.getFn(J,te),record:J,index:B},{resultMap:C,results:x,tokenSearchers:v,fullSearcher:D})}return{weights:P,results:x}}},{key:"_analyze",value:function(v,D){var I=v.key,C=v.arrayIndex,x=C===void 0?-1:C,O=v.value,A=v.record,P=v.index,B=D.tokenSearchers,G=B===void 0?[]:B,J=D.fullSearcher,Q=J===void 0?[]:J,oe=D.resultMap,te=oe===void 0?{}:oe,re=D.results,ne=re===void 0?[]:re;if(O!=null){var be=!1,pe=-1,De=0;if(typeof O=="string"){this._log(`
Key: `.concat(I===""?"-":I));var Ce=Q.search(O);if(this._log('Full text: "'.concat(O,'", score: ').concat(Ce.score)),this.options.tokenize){for(var U=O.split(this.options.tokenSeparator),Je=[],it=0;it<G.length;it+=1){var N=G[it];this._log(`
Pattern: "`.concat(N.pattern,'"'));for(var Ze=!1,It=0;It<U.length;It+=1){var Mt=U[It],jt=N.search(Mt),vt={};jt.isMatch?(vt[Mt]=jt.score,be=!0,Ze=!0,Je.push(jt.score)):(vt[Mt]=1,this.options.matchAllTokens||Je.push(1)),this._log('Token: "'.concat(Mt,'", score: ').concat(vt[Mt]))}Ze&&(De+=1)}pe=Je[0];for(var Wt=Je.length,Tt=1;Tt<Wt;Tt+=1)pe+=Je[Tt];pe/=Wt,this._log("Token score average:",pe)}var Jt=Ce.score;pe>-1&&(Jt=(Jt+pe)/2),this._log("Score average:",Jt);var en=!this.options.tokenize||!this.options.matchAllTokens||De>=G.length;if(this._log(`
Check Matches: `.concat(en)),(be||Ce.isMatch)&&en){var gn=te[P];gn?gn.output.push({key:I,arrayIndex:x,value:O,score:Jt,matchedIndices:Ce.matchedIndices}):(te[P]={item:A,output:[{key:I,arrayIndex:x,value:O,score:Jt,matchedIndices:Ce.matchedIndices}]},ne.push(te[P]))}}else if(c(O))for(var yn=0,vn=O.length;yn<vn;yn+=1)this._analyze({key:I,arrayIndex:yn,value:O[yn],record:A,index:P},{resultMap:te,results:ne,tokenSearchers:G,fullSearcher:Q})}}},{key:"_computeScore",value:function(v,D){this._log(`
Computing score:
`);for(var I=0,C=D.length;I<C;I+=1){for(var x=D[I].output,O=x.length,A=1,P=1,B=0;B<O;B+=1){var G=v?v[x[B].key].weight:1,J=(G===1?x[B].score:x[B].score||.001)*G;G!==1?P=Math.min(P,J):(x[B].nScore=J,A*=J)}D[I].score=P===1?A:P,this._log(D[I])}}},{key:"_sort",value:function(v){this._log(`
Sorting....`),v.sort(this.options.sortFn)}},{key:"_format",value:function(v){var D=[];if(this.options.verbose){var I=[];this._log(`
Output:
`,JSON.stringify(v,function(J,Q){if(o(Q)==="object"&&Q!==null){if(I.indexOf(Q)!==-1)return;I.push(Q)}return Q})),I=null}var C=[];this.options.includeMatches&&C.push(function(J,Q){var oe=J.output;Q.matches=[];for(var te=0,re=oe.length;te<re;te+=1){var ne=oe[te];if(ne.matchedIndices.length!==0){var be={indices:ne.matchedIndices,value:ne.value};ne.key&&(be.key=ne.key),ne.hasOwnProperty("arrayIndex")&&ne.arrayIndex>-1&&(be.arrayIndex=ne.arrayIndex),Q.matches.push(be)}}}),this.options.includeScore&&C.push(function(J,Q){Q.score=J.score});for(var x=0,O=v.length;x<O;x+=1){var A=v[x];if(this.options.id&&(A.item=this.options.getFn(A.item,this.options.id)[0]),C.length){for(var P={item:A.item},B=0,G=C.length;B<G;B+=1)C[B](A,P);D.push(P)}else D.push(A.item)}return D}},{key:"_log",value:function(){var v;this.options.verbose&&(v=console).log.apply(v,arguments)}}])&&s(h.prototype,g),y&&s(h,y),m}();n.exports=d},function(n,i,a){function o(d,m){for(var h=0;h<m.length;h++){var g=m[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}var s=a(3),u=a(4),l=a(7),c=function(){function d(y,v){var D=v.location,I=D===void 0?0:D,C=v.distance,x=C===void 0?100:C,O=v.threshold,A=O===void 0?.6:O,P=v.maxPatternLength,B=P===void 0?32:P,G=v.isCaseSensitive,J=G!==void 0&&G,Q=v.tokenSeparator,oe=Q===void 0?/ +/g:Q,te=v.findAllMatches,re=te!==void 0&&te,ne=v.minMatchCharLength,be=ne===void 0?1:ne;(function(pe,De){if(!(pe instanceof De))throw new TypeError("Cannot call a class as a function")})(this,d),this.options={location:I,distance:x,threshold:A,maxPatternLength:B,isCaseSensitive:J,tokenSeparator:oe,findAllMatches:re,minMatchCharLength:be},this.pattern=this.options.isCaseSensitive?y:y.toLowerCase(),this.pattern.length<=B&&(this.patternAlphabet=l(this.pattern))}var m,h,g;return m=d,(h=[{key:"search",value:function(y){if(this.options.isCaseSensitive||(y=y.toLowerCase()),this.pattern===y)return{isMatch:!0,score:0,matchedIndices:[[0,y.length-1]]};var v=this.options,D=v.maxPatternLength,I=v.tokenSeparator;if(this.pattern.length>D)return s(y,this.pattern,I);var C=this.options,x=C.location,O=C.distance,A=C.threshold,P=C.findAllMatches,B=C.minMatchCharLength;return u(y,this.pattern,this.patternAlphabet,{location:x,distance:O,threshold:A,findAllMatches:P,minMatchCharLength:B})}}])&&o(m.prototype,h),g&&o(m,g),d}();n.exports=c},function(n,i){var a=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;n.exports=function(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:/ +/g,l=new RegExp(s.replace(a,"\\$&").replace(u,"|")),c=o.match(l),d=!!c,m=[];if(d)for(var h=0,g=c.length;h<g;h+=1){var y=c[h];m.push([o.indexOf(y),y.length-1])}return{score:d?.5:1,isMatch:d,matchedIndices:m}}},function(n,i,a){var o=a(5),s=a(6);n.exports=function(u,l,c,d){for(var m=d.location,h=m===void 0?0:m,g=d.distance,y=g===void 0?100:g,v=d.threshold,D=v===void 0?.6:v,I=d.findAllMatches,C=I!==void 0&&I,x=d.minMatchCharLength,O=x===void 0?1:x,A=h,P=u.length,B=D,G=u.indexOf(l,A),J=l.length,Q=[],oe=0;oe<P;oe+=1)Q[oe]=0;if(G!==-1){var te=o(l,{errors:0,currentLocation:G,expectedLocation:A,distance:y});if(B=Math.min(te,B),(G=u.lastIndexOf(l,A+J))!==-1){var re=o(l,{errors:0,currentLocation:G,expectedLocation:A,distance:y});B=Math.min(re,B)}}G=-1;for(var ne=[],be=1,pe=J+P,De=1<<J-1,Ce=0;Ce<J;Ce+=1){for(var U=0,Je=pe;U<Je;)o(l,{errors:Ce,currentLocation:A+Je,expectedLocation:A,distance:y})<=B?U=Je:pe=Je,Je=Math.floor((pe-U)/2+U);pe=Je;var it=Math.max(1,A-Je+1),N=C?P:Math.min(A+Je,P)+J,Ze=Array(N+2);Ze[N+1]=(1<<Ce)-1;for(var It=N;It>=it;It-=1){var Mt=It-1,jt=c[u.charAt(Mt)];if(jt&&(Q[Mt]=1),Ze[It]=(Ze[It+1]<<1|1)&jt,Ce!==0&&(Ze[It]|=(ne[It+1]|ne[It])<<1|1|ne[It+1]),Ze[It]&De&&(be=o(l,{errors:Ce,currentLocation:Mt,expectedLocation:A,distance:y}))<=B){if(B=be,(G=Mt)<=A)break;it=Math.max(1,2*A-G)}}if(o(l,{errors:Ce+1,currentLocation:A,expectedLocation:A,distance:y})>B)break;ne=Ze}return{isMatch:G>=0,score:be===0?.001:be,matchedIndices:s(Q,O)}}},function(n,i){n.exports=function(a,o){var s=o.errors,u=s===void 0?0:s,l=o.currentLocation,c=l===void 0?0:l,d=o.expectedLocation,m=d===void 0?0:d,h=o.distance,g=h===void 0?100:h,y=u/a.length,v=Math.abs(m-c);return g?y+v/g:v?1:y}},function(n,i){n.exports=function(){for(var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,s=[],u=-1,l=-1,c=0,d=a.length;c<d;c+=1){var m=a[c];m&&u===-1?u=c:m||u===-1||((l=c-1)-u+1>=o&&s.push([u,l]),u=-1)}return a[c-1]&&c-u>=o&&s.push([u,c-1]),s}},function(n,i){n.exports=function(a){for(var o={},s=a.length,u=0;u<s;u+=1)o[a.charAt(u)]=0;for(var l=0;l<s;l+=1)o[a.charAt(l)]|=1<<s-l-1;return o}},function(n,i,a){var o=a(0);n.exports=function(s,u){return function l(c,d,m){if(d){var h=d.indexOf("."),g=d,y=null;h!==-1&&(g=d.slice(0,h),y=d.slice(h+1));var v=c[g];if(v!=null)if(y||typeof v!="string"&&typeof v!="number")if(o(v))for(var D=0,I=v.length;D<I;D+=1)l(v[D],y,m);else y&&l(v,y,m);else m.push(v.toString())}el Line truncated
`).map(BI).filter(function(r){return r!==null});return Un(Un({},t[0]),t[1])}function tl(e){var t={},r=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!r)return t;var n=r[1],i=r[2];return n&&(t.tzid=n),t.dtstart=Zs(i),t}function BI(e){if(e=e.replace(/^\s+|\s+$/,""),!e.length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return Sw(e);var r=t[1];switch(r.toUpperCase()){case"RRULE":case"EXRULE":return Sw(e);case"DTSTART":return tl(e);default:throw new Error("Unsupported RFC prop ".concat(r," in ").concat(e))}}function Sw(e){var t=e.replace(/^RRULE:/i,""),r=tl(t),n=e.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return n.forEach(function(i){var a=i.split("="),o=a[0],s=a[1];switch(o.toUpperCase()){case"FREQ":r.freq=pt[s.toUpperCase()];break;case"WKST":r.wkst=Ur[s.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var u=VI(s),l=o.toLowerCase();r[l]=u;break;case"BYWEEKDAY":case"BYDAY":r.byweekday=$I(s);break;case"DTSTART":case"TZID":var c=tl(e);r.tzid=c.tzid,r.dtstart=c.dtstart;break;case"UNTIL":r.until=Zs(s);break;case"BYEASTER":r.byeaster=Number(s);break;default:throw new Error("Unknown RRULE property '"+o+"'")}}),r}function VI(e){if(e.indexOf(",")!==-1){var t=e.split(",");return t.map(Ew)}return Ew(e)}function Ew(e){return/^[+-]?\d+$/.test(e)?Number(e):e}function $I(e){var t=e.split(",");return t.map(function(r){if(r.length===2)return Ur[r];var n=r.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!n||n.length<3)throw new SyntaxError("Invalid weekday string: ".concat(r));var i=Number(n[1]),a=n[2],o=Ur[a].weekday;return new Mn(o,i)})}var Ka=function(){function e(t,r){if(isNaN(t.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=t,this.tzid=r}return Object.defineProperty(e.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t=Fo(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(t):";TZID=".concat(this.tzid,":").concat(t)},e.prototype.getTime=function(){return this.date.getTime()},e.prototype.rezonedDate=function(){return this.isUTC?this.date:fw(this.date,this.tzid)},e}();function rl(e){for(var t=[],r="",n=Object.keys(e),i=Object.keys(el),a=0;a<n.length;a++)if(n[a]!=="tzid"&&Et(i,n[a])){var o=n[a].toUpperCase(),s=e[n[a]],u="";if(!(!Gt(s)||$n(s)&&!s.length)){switch(o){case"FREQ":u=Oe.FREQUENCIES[e.freq];break;case"WKST":Cr(s)?u=new Mn(s).toString():u=s.toString();break;case"BYWEEKDAY":o="BYDAY",u=sw(s).map(function(h){return h instanceof Mn?h:$n(h)?new Mn(h[0],h[1]):new Mn(h)}).toString();break;case"DTSTART":r=UI(s,e.tzid);break;case"UNTIL":u=Fo(s,!e.tzid);break;default:if($n(s)){for(var l=[],c=0;c<s.length;c++)l[c]=String(s[c]);u=l.toString()}else u=String(s)}u&&t.push([o,u])}}var d=t.map(function(h){var g=h[0],y=h[1];return"".concat(g,"=").concat(y.toString())}).join(";"),m="";return d!==""&&(m="RRULE:".concat(d)),[r,m].filter(function(h){return!!h}).join(`
`)}function UI(e,t){return e?"DTSTART"+new Ka(new Date(e),t).toString():""}function WI(e,t){return Array.isArray(e)?!Array.isArray(t)||e.length!==t.length?!1:e.every(function(r,n){return r.getTime()===t[n].getTime()}):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():e===t}var kw=function(){function e(){this.all=!1,this.before=[],this.after=[],this.between=[]}return e.prototype._cacheAdd=function(t,r,n){r&&(r=r instanceof Date?Cu(r):ch(r)),t==="all"?this.all=r:(n._value=r,this[t].push(n))},e.prototype._cacheGet=function(t,r){var n=!1,i=r?Object.keys(r):[],a=function(c){for(var d=0;d<i.length;d++){var m=i[d];if(!WI(r[m],c[m]))return!0}return!1},o=this[t];if(t==="all")n=this.all;else if($n(o))for(var s=0;s<o.length;s++){var u=o[s];if(!(i.length&&a(u))){n=u._value;break}}if(!n&&this.all){for(var l=new Vi(t,r),s=0;s<this.all.length&&l.accept(this.all[s]);s++);n=l.getValue(),this._cacheAdd(t,n,r)}return $n(n)?ch(n):n instanceof Date?Cu(n):n},e}();var xw=ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke([],wt(1,31),!0),wt(2,28),!0),wt(3,31),!0),wt(4,30),!0),wt(5,31),!0),wt(6,30),!0),wt(7,31),!0),wt(8,31),!0),wt(9,30),!0),wt(10,31),!0),wt(11,30),!0),wt(12,31),!0),wt(1,7),!0),Cw=ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke([],wt(1,31),!0),wt(2,29),!0),wt(3,31),!0),wt(4,30),!0),wt(5,31),!0),wt(6,30),!0),wt(7,31),!0),wt(8,31),!0),wt(9,30),!0),wt(10,31),!0),wt(11,30),!0),wt(12,31),!0),wt(1,7),!0),YI=$r(1,29),zI=$r(1,30),ua=$r(1,31),Gn=$r(1,32),_w=ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke([],Gn,!0),zI,!0),Gn,!0),ua,!0),Gn,!0),ua,!0),Gn,!0),Gn,!0),ua,!0),Gn,!0),ua,!0),Gn,!0),Gn.slice(0,7),!0),Mw=ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke([],Gn,!0),YI,!0),Gn,!0),ua,!0),Gn,!0),ua,!0),Gn,!0),Gn,!0),ua,!0),Gn,!0),ua,!0),Gn,!0),Gn.slice(0,7),!0),KI=$r(-28,0),jI=$r(-29,0),ca=$r(-30,0),Jn=$r(-31,0),Tw=ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke([],Jn,!0),jI,!0),Jn,!0),ca,!0),Jn,!0),ca,!0),Jn,!0),Jn,!0),ca,!0),Jn,!0),ca,!0),Jn,!0),Jn.slice(0,7),!0),Fw=ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke([],Jn,!0),KI,!0),Jn,!0),ca,!0),Jn,!0),ca,!0),Jn,!0),Jn,!0),ca,!0),Jn,!0),ca,!0),Jn,!0),Jn.slice(0,7),!0),Iw=[0,31,60,91,121,152,182,213,244,274,305,335,366],Aw=[0,31,59,90,120,151,181,212,243,273,304,334,365],mh=function(){for(var e=[],t=0;t<55;t++)e=e.concat($r(7));return e}();function Ow(e,t){var r=pi(e,1,1),n=To(e)?366:365,i=To(e+1)?366:365,a=Js(r),o=Hi(r),s=Un(Un({yearlen:n,nextyearlen:i,yearordinal:a,yearweekday:o},qI(e)),{wnomask:null});if(_r(t.byweekno))return s;s.wnomask=wt(0,n+7);var u,l,c=u=qn(7-o+t.wkst,7);c>=4?(c=0,l=s.yearlen+qn(o-t.wkst,7)):l=n-c;for(var d=Math.floor(l/7),m=qn(l,7),h=Math.floor(d+m/4),g=0;g<t.byweekno.length;g++){var y=t.byweekno[g];if(y<0&&(y+=h+1),y>0&&y<=h){var v=void 0;y>1?(v=c+(y-1)*7,c!==u&&(v-=7-u)):v=c;for(var D=0;D<7&&(s.wnomask[v]=1,v++,s.wdaymask[v]!==t.wkst);D++);}}if(Et(t.byweekno,1)){var v=c+h*7;if(c!==u&&(v-=7-u),v<n)for(var g=0;g<7&&(s.wnomask[v]=1,v+=1,s.wdaymask[v]!==t.wkst);g++);}if(c){var I=void 0;if(Et(t.byweekno,-1))I=-1;else{var C=Hi(pi(e-1,1,1)),x=qn(7-C.valueOf()+t.wkst,7),O=To(e-1)?366:365,A=void 0;x>=4?(x=0,A=O+qn(C-t.wkst,7)):A=n-c,I=Math.floor(52+qn(A,7)/4)}if(Et(t.byweekno,I))for(var v=0;v<c;v++)s.wnomask[v]=1}return s}function qI(e){var t=To(e)?366:365,r=pi(e,1,1),n=Hi(r);return t===365?{mmask:xw,mdaymask:Mw,nmdaymask:Fw,wdaymask:mh.slice(n),mrange:Aw}:{mmask:Cw,mdaymask:_w,nmdaymask:Tw,wdaymask:mh.slice(n),mrange:Iw}}function Lw(e,t,r,n,i,a){var o={lastyear:e,lastmonth:t,nwdaymask:[]},s=[];if(a.freq===Oe.YEARLY)if(_r(a.bymonth))s=[[0,r]];else for(var u=0;u<a.bymonth.length;u++)t=a.bymonth[u],s.push(n.slice(t-1,t+1));else a.freq===Oe.MONTHLY&&(s=[n.slice(t-1,t+1)]);if(_r(s))return o;o.nwdaymask=wt(0,r);for(var u=0;u<s.length;u++)for(var l=s[u],c=l[0],d=l[1]-1,m=0;m<a.bynweekday.length;m++){var h=void 0,g=a.bynweekday[m],y=g[0],v=g[1];v<0?(h=d+(v+1)*7,h-=qn(i[h]-y,7)):(h=c+(v-1)*7,h+=qn(7-i[h]+y,7)),c<=h&&h<=d&&(o.nwdaymask[h]=1)}return o}function Pw(e,t){t===void 0&&(t=0);var r=e%19,n=Math.floor(e/100),i=e%100,a=Math.floor(n/4),o=n%4,s=Math.floor((n+8)/25),u=Math.floor((n-s+1)/3),l=Math.floor(19*r+n-a-u+15)%30,c=Math.floor(i/4),d=i%4,m=Math.floor(32+2*o+2*c-l-d)%7,h=Math.floor((r+11*l+22*m)/451),g=Math.floor((l+m-7*h+114)/31),y=(l+m-7*h+114)%31+1,v=Date.UTC(e,g-1,y+t),D=Date.UTC(e,0,1);return[Math.ceil((v-D)/(1e3*60*60*24))]}var GI=function(){function e(t){this.options=t}return e.prototype.rebuild=function(t,r){var n=this.options;if(t!==this.lastyear&&(this.yearinfo=Ow(t,n)),bn(n.bynweekday)&&(r!==this.lastmonth||t!==this.lastyear)){var i=this.yearinfo,a=i.yearlen,o=i.mrange,s=i.wdaymask;this.monthinfo=Lw(t,r,a,o,s,n)}Gt(n.byeaster)&&(this.eastermask=Pw(t,n.byeaster))},Object.defineProperty(e.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearle Line truncated
`),n=0;n<r.length;){var i=r[n]=r[n].replace(/\s+$/g,"");i?n>0&&i[0]===" "?(r[n-1]+=i.slice(1),r.splice(n,1)):n+=1:r.splice(n,1)}return r}function aA(e){e.forEach(function(t){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(t))throw new Error("unsupported RDATE/EXDATE parm: "+t)})}function $w(e,t){return aA(t),e.split(",").map(function(r){return Zs(r)})}function Uw(e){var t=this;return function(r){if(r!==void 0&&(t["_".concat(e)]=r),t["_".concat(e)]!==void 0)return t["_".concat(e)];for(var n=0;n<t._rrule.length;n++){var i=t._rrule[n].origOptions[e];if(i)return i}}}var gh=function(e){Io(t,e);function t(r){r===void 0&&(r=!1);var n=e.call(this,{},r)||this;return n.dtstart=Uw.apply(n,["dtstart"]),n.tzid=Uw.apply(n,["tzid"]),n._rrule=[],n._rdate=[],n._exrule=[],n._exdate=[],n}return t.prototype._iter=function(r){return Bw(r,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(r){Ww(r,this._rrule)},t.prototype.exrule=function(r){Ww(r,this._exrule)},t.prototype.rdate=function(r){Yw(r,this._rdate)},t.prototype.exdate=function(r){Yw(r,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(r){return Mu(r.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(r){return Mu(r.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(r){return new Date(r.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(r){return new Date(r.getTime())})},t.prototype.valueOf=function(){var r=[];return!this._rrule.length&&this._dtstart&&(r=r.concat(rl({dtstart:this._dtstart}))),this._rrule.forEach(function(n){r=r.concat(n.toString().split(`
`))}),this._exrule.forEach(function(n){r=r.concat(n.toString().split(`
`).map(function(i){return i.replace(/^RRULE:/,"EXRULE:")}).filter(function(i){return!/^DTSTART/.test(i)}))}),this._rdate.length&&r.push(zw("RDATE",this._rdate,this.tzid())),this._exdate.length&&r.push(zw("EXDATE",this._exdate,this.tzid())),r},t.prototype.toString=function(){return this.valueOf().join(`
`)},t.prototype.clone=function(){var r=new t(!!this._cache);return this._rrule.forEach(function(n){return r.rrule(n.clone())}),this._exrule.forEach(function(n){return r.exrule(n.clone())}),this._rdate.forEach(function(n){return r.rdate(new Date(n.getTime()))}),this._exdate.forEach(function(n){return r.exdate(new Date(n.getTime()))}),r},t}(Oe);function Ww(e,t){if(!(e instanceof Oe))throw new TypeError(String(e)+" is not RRule instance");Et(t.map(String),String(e))||t.push(e)}function Yw(e,t){if(!(e instanceof Date))throw new TypeError(String(e)+" is not Date instance");Et(t.map(Number),Number(e))||(t.push(e),Bi(t))}function zw(e,t,r){var n=!r||r.toUpperCase()==="UTC",i=n?"".concat(e,":"):"".concat(e,";TZID=").concat(r,":"),a=t.map(function(o){return Fo(o.valueOf(),n)}).join(",");return"".concat(i).concat(a)}var oA={},Kw=oA;var sA={},jw=sA;var lA={},qw=lA;var uA={"Open as kanban board":"\xD6ffne als Kanban-Board","Create new board":"Erstelle ein neues Board","Archive completed cards in active board":"Archiviere fertiggestellte Karten im aktiven Board","Error: current file is not a Kanban board":"Fehler: Momentan ge\xF6ffnete Datei ist kein Kanban-Board","Convert empty note to Kanban":"Konvertiere leere Notiz in ein Kanban-Board","Error: cannot create Kanban, the current note is not empty":"Fehler: Kanban konnte nicht erstellt werden, momentan ge\xF6ffnete Datei ist nicht leer","New kanban board":"Neues Kanban-Board","Untitled Kanban":"Unbenanntes Kanban","Toggle between Kanban and markdown mode":"Wechsle zwischen Kanban und Markdown Modus","Open as markdown":"\xD6ffne als Markdown","Open board settings":"\xD6ffne Board-Einstellungen","Archive completed cards":"Archiviere fertiggestellte Karten","Something went wrong":"Etwas ist schief gelaufen","You may wish to open as markdown and inspect or edit the file.":"Du kannst die Datei im Markdown Modus \xF6ffnen und \xFCberpr\xFCfen oder bearbeiten.","Are you sure you want to archive all completed cards on this board?":"Bist du dir sicher, dass du alle fertiggestellten Karten des Boards archivieren m\xF6chtest?",Complete:"Fertiggestellt",Archive:"Archiv","Invalid Kanban file: problems parsing frontmatter":"Fehlerhafte Kanban Datei: Probleme beim Parsen des Frontmatters","I don't know how to interpret this line:":"Ich wei\xDF nicht, wie ich diese Zeile interpretieren soll:",Untitled:"Unbenannt","Note: No template plugins are currently enabled.":"Beachte: Keine Template-Plugins sind derzeit aktiviert.",default:"Standard","Search...":"Suche...","These settings will take precedence over the default Kanban board settings.":"Diese Einstellung wird Vorrang vor der standard Kanban-Board Einstellung haben. ","Set the default Kanban board settings. Settings can be overridden on a board-by-board basis.":"Stelle standard Kanban-Board Einstellungen ein. Einstellungen k\xF6nnen auf einer Board-f\xFCr-Board Basis \xFCberschrieben werden.","Note template":"Notiz Vorlage","This template will be used when creating new notes from Kanban cards.":"Diese Vorlage wird beim Erstellen neuer Notizen aus Kanban-Karten verwendet.","No template":"Keine Vorlage","Note folder":"Notiz Ordner","Notes created from Kanban cards will be placed in this folder. If blank, they will be placed in the default location for this vault.":"Notizen, welche aus einer Kanban-Karte erstellt wurden, werden in diesem Ordner platziert. Falls leer, werden die Einstellungen des Vaults verwendet.","Default folder":"Standard Ordner","Maximum number of archived cards":"Maximale Anzahl archivierter Karten.","Archived cards can be viewed in markdown mode. This setting will begin removing old cards once the limit is reached. Setting this value to -1 will allow a board's archive to grow infinitely.":"Archivierte Karten k\xF6nnen im Markdown-Modus betrachtet werden. Diese Einstellung wird alte Karten l\xF6schen, sobald das Limit erreicht wird. Eine Einstellung von -1 setzt das Archiv auf eine unendliche Gr\xF6\xDFe.","Display card checkbox":"Zeige Karten Checkbox","When toggled, a checkbox will be displayed with each card":"Wenn aktiviert, wird eine Checkbox mit jeder Karte angezeigt.","Reset to default":"Zur\xFCcksetzen","Date & Time":"Datum & Uhrzeit","Date trigger":"Datums Ausl\xF6ser","When this is typed, it will trigger the date selector":"Wenn dies eingegeben wird, dann wird die Datumsauswahl angezeigt","Time trigger":"Uhrzeit Ausl\xF6ser","When this is typed, it will trigger the time selector":"Wenn dies eingegeben wird, dann wird die Uhrzeitsauswahl angezeigt","Date format":"Format des Datums","This format will be used when saving dates in markdown.":"Dieses Format wird verwendet, wenn ein Datum in Markdown gespeichert wird.","For more syntax, refer to":"F\xFCr mehr Syntax Informationen siehe","format reference":"Formatvorlage","Your current syntax looks like this":"Dein momentanes Format sieht so aus","Time format":"Format der Uhrzeit","Date display format":"Format der Datums Anzeige","This format will be used when d Line truncated
`)}),l,s]}var Fu=Object.freeze({"[":"]","(":")"});function AA(e,t){let r=e.indexOf("::",t);if(!(r<0))return{key:e.substring(t,r).trim(),valueIndex:r+2}}function OA(e,t,r,n){let i=0,a=!1;for(let o=t;o<e.length;o++){let s=e.charAt(o);if(s=="\\"){a=!a;continue}if(a){a=!1;continue}if(s==r?i++:s==n&&i--,i<0)return{value:e.substring(t,o).trim(),endIndex:o+1};a=!1}}function LA(e,t){let r=e.charAt(t),n=AA(e,t+1);if(n===void 0)return;for(let a of Object.keys(Fu).concat(Object.values(Fu)))if(n.key.includes(a))return;let i=OA(e,n.valueIndex,r,Fu[r]);if(i!==void 0)return{key:n.key,value:i.value,start:t,startValue:n.valueIndex,end:i.endIndex,wrapping:r}}var PA=/([🔺⏫🔼🔽⏬])\uFE0F?/u,NA=/🛫 *(\d{4}-\d{2}-\d{2})/u,RA=/➕ *(\d{4}-\d{2}-\d{2})/u,HA=/[⏳⌛] *(\d{4}-\d{2}-\d{2})/u,BA=/[📅📆🗓] *(\d{4}-\d{2}-\d{2})/u,VA=/✅ *(\d{4}-\d{2}-\d{2})/u,$A=/❌ *(\d{4}-\d{2}-\d{2})/u,UA=/⛔\uFE0F? *([a-zA-Z0-9-_]+)/u,WA=/🆔 *([a-zA-Z0-9-_]+)/u,YA=/🔁 *([a-zA-Z0-9; !]+)/u,yi=new Set(["priority","start","created","scheduled","due","completion","cancelled","id","dependsOn","repeat"]),zA=[{regex:PA,key:"priority"},{regex:NA,key:"start"},{regex:RA,key:"created"},{regex:HA,key:"scheduled"},{regex:BA,key:"due"},{regex:VA,key:"completion"},{regex:$A,key:"cancelled"},{regex:WA,key:"id"},{regex:UA,key:"dependsOn"},{regex:YA,key:"repeat"}];function KA(e){let t=[];for(let{regex:r,key:n}of zA){let i=r.exec(e);if(!i)continue;let a=i[1],o=i.index+i[0].length;if(n==="priority")a=IA(a);else if(n==="repeat"){let s=a.length;a=Oe.fromText(a).toText(),o-=s-a.length}t.push({key:n,value:a,start:i.index,startValue:i.index+1,end:o,wrapping:"emoji-shorthand"})}return t}function gb(e,t=!1){let r=il(),n=wh(),i=[];if(r)for(let o of Object.keys(Fu)){let s=e.indexOf(o);for(;s>=0;){let u=LA(e,s);if(!u){s=e.indexOf(o,s+1);continue}i.push(u),s=e.indexOf(o,u.end)}}n&&t&&(i=i.concat(KA(e))),i.sort((o,s)=>o.start-s.start);let a=[];for(let o=0;o<i.length;o++){let s=i[o];(o==0||a[a.length-1].end<s.start)&&a.push(s)}return a}function il(){return app.plugins.enabledPlugins.has("dataview")?app.plugins.plugins.dataview:null}var Eh="kanban-plugin";function Mr(){}var Dh=new Map;function $(e){if(Dh.has(e))return Dh.get(e);let t=`${Eh}__${e}`;return Dh.set(e,t),t}function et(e=9){return Math.random().toString(36).slice(2,2+e)}function Au(e,t,r,n,i,a,o){var h,g;let s=un(t,r.slice(0,-1)),u=un(i,a.slice(0,-1)),l=(h=s==null?void 0:s.data)==null?void 0:h.shouldMarkItemsComplete,c=(g=u==null?void 0:u.data)==null?void 0:g.shouldMarkItemsComplete;if(!l&&!c)return{next:o};let d=o.data.checked&&o.data.checkChar===Zn();if(c===d)return{next:o};c&&(o=(0,Sh.default)(o,{data:{checkChar:{$set:Iu()}}}));let m=Ro(o,n.file);if(m){let[y,v,D]=m,I,C;return y.forEach((x,O)=>{O===D?I=n.getNewItem(x,v[O]):C=n.getNewItem(x,v[O])}),{next:I,replacement:C}}return{next:(0,Sh.default)(o,{data:{checked:{$set:c},checkChar:{$set:c?Zn():" "}}})}}function Ou(){let e=$e.useRef(!1);return{oncompositionstart:()=>{e.current=!0},oncompositionend:()=>{e.current=!1},getShouldIMEBlockAction:()=>e.current}}var jA=/<%/;async function yb(e,t){let r=t?e.app.vault.getAbstractFileByPath(t):null;if(r&&r instanceof da.TFile){let n=app.workspace.getActiveViewOfType(da.MarkdownView);try{(n==null?void 0:n.getMode())!=="source"&&await n.setState({...n.getState(),mode:"source"},{history:!1});let{templatesEnabled:i,templaterEnabled:a,templatesPlugin:o,templaterPlugin:s}=kh(e.app),u=await e.app.vault.read(r);if(i&&a)return jA.test(u)?await s.append_template_to_active_file(r):await o.instance.insertTemplate(r);if(i)return await o.instance.insertTemplate(r);if(a)return await s.append_template_to_active_file(r);await e.app.vault.modify(e.app.workspace.getActiveFile(),u)}catch(i){console.error(i),e.setError(i)}}}function ja(e){var s,u,l,c,d;let t=e.internalPlugins.plugins,r=(s=t["daily-notes"])==null?void 0:s.enabled,n=(u=t["daily-notes"])==null?void 0:u.instance.options.format,i=(l=e.plugins.plugins["nldates-obsidian"])==null?void 0:l.settings.format,a=(c=t.templates)==null?void 0:c.enabled,o=(d=t.templates)==null?void 0:d.instance.options.dateFormat;return r&&n||i||a&&o||"YYYY-MM-DD"}function Ho(e){var a,o,s;let t=e.internalPlugins.plugins,r=(a=e.plugins.plugins["nldates-obsidian"])==null?void 0:a.settings.timeFormat,n=(o=t.templates)==null?void 0:o.enabled,i=(s=t.templates)==null?void 0:s.instance.options.timeFormat;return r||n&&i||"HH:mm"}var vb=/[\\^$.*+?()[\]{}|]/g,qA=RegExp(vb.source);function Qn(e){return e&&qA.test(e)?e.replace(vb,"\\$&"):e||""}function kh(e){var s;let t=e.internalPlugins.plugins.templates,r=t.enabled,n=e.plugins.plugins["templater-obsidian"],i=e.plugins.enabledPlugins.has("templater-obsidian"),a=n&&((s=this.app.plugins.plugins["templater-obsidian"].settings)==null?void 0:s.empty_file_template),o=r?t.instance.options.folder:n?n.settings.template_folder:void 0;return{templatesPlugin:t,templatesEnabled:r,templaterPlugin:n==null?void 0:n.templater,templaterEnabled:i,templaterEmptyFileTemplat Line truncated
<span class='flatpickr-weekday'>
${H.join("</span><span class='flatpickr-weekday'>")}
</span>
`}function Je(){n.calendarContainer.classList.add("hasWeeks");let M=Pt(r.document,"div","flatpickr-weekwrapper");M.appendChild(Pt(r.document,"span","flatpickr-weekday",n.l10n.weekAbbreviation));let H=Pt(r.document,"div","flatpickr-weeks");return M.appendChild(H),{weekWrapper:M,weekNumbers:H}}function it(M,H=!0){let q=H?M:M-n.currentMonth;q<0&&n._hidePrevMonthArrow===!0||q>0&&n._hideNextMonthArrow===!0||(n.currentMonth+=q,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,ht("onYearChange"),re()),te(),ht("onMonthChange"),ee())}function N(M=!0,H=!0){if(n.input.value="",n.altInput!==void 0&&(n.altInput.value=""),n.mobileInput!==void 0&&(n.mobileInput.value=""),n.selectedDates=[],n.latestSelectedDateObj=void 0,H===!0&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth()),n.config.enableTime===!0){let{hours:q,minutes:ie,seconds:ye}=Jc(n.config);g(q,ie,ye)}n.redraw(),M&&ht("onChange")}function Ze(){n.isOpen=!1,n.isMobile||(n.calendarContainer!==void 0&&n.calendarContainer.classList.remove("open"),n._input!==void 0&&n._input.classList.remove("active")),ht("onClose")}function It(){n.config!==void 0&&ht("onDestroy");for(let M=n._handlers.length;M--;)n._handlers[M].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){let M=n.calendarContainer.parentNode;if(M.lastChild&&M.removeChild(M.lastChild),M.parentNode){for(;M.firstChild;)M.parentNode.insertBefore(M.firstChild,M);M.parentNode.removeChild(M)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput),n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(M=>{try{delete n[M]}catch(H){}})}function Mt(M){return n.calendarContainer.contains(M)}function jt(M){if(n.isOpen&&!n.config.inline){let H=Dr(M),q=Mt(H),ye=!(H===n.input||H===n.altInput||n.element.contains(H)||M.path&&M.path.indexOf&&(~M.path.indexOf(n.input)||~M.path.indexOf(n.altInput)))&&!q&&!Mt(M.relatedTarget),ce=!n.config.ignoredFocusElements.some(ae=>ae.contains(H));ye&&ce&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),n.timeContainer!==void 0&&n.minuteElement!==void 0&&n.hourElement!==void 0&&n.input.value!==""&&n.input.value!==void 0&&l(),n.close(),n.config&&n.config.mode==="range"&&n.selectedDates.length===1&&n.clear(!1))}}function vt(M){if(!M||n.config.minDate&&M<n.config.minDate.getFullYear()||n.config.maxDate&&M>n.config.maxDate.getFullYear())return;let H=M,q=n.currentYear!==H;n.currentYear=H||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),q&&(n.redraw(),ht("onYearChange"),re())}function Wt(M,H=!0){var ce;let q=n.parseDate(M,void 0,H);if(n.config.minDate&&q&&br(q,n.config.minDate,H!==void 0?H:!n.minDateHasTime)<0||n.config.maxDate&&q&&br(q,n.config.maxDate,H!==void 0?H:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&n.config.disable.length===0)return!0;if(q===void 0)return!1;let ie=!!n.config.enable,ye=(ce=n.config.enable)!=null?ce:n.config.disable;for(let ae=0,Se;ae<ye.length;ae++){if(Se=ye[ae],typeof Se=="function"&&Se(q))return ie;if(Se.getTime&&q!==void 0&&Se.getTime()===q.getTime())return ie;if(typeof Se=="string"){let nt=n.parseDate(Se,void 0,!0);return nt&&nt.getTime()===q.getTime()?ie:!ie}else if(typeof Se=="object"&&q!==void 0&&Se.from&&Se.to&&q.getTime()>=Se.from.getTime()&&q.getTime()<=Se.to.getTime())return ie}return!ie}function Tt(M){return n.daysContainer!==void 0?M.className.indexOf("hidden")===-1&&M.className.indexOf("flatpickr-disabled")===-1&&n.daysContainer.contains(M):!1}function Jt(M){let H=M.target===n._input,q=n._input.value.trimEnd()!==ue();H&&q&&!(M.relatedTarget&&Mt(M.relatedTarget))&&n.setDate(n._input.value,!0,M.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function en(M){let H=Dr(M),q=n.config.wrap?e.contains(H):H===n._input,ie=n.config.allowInput,ye=n.isOpen&&(!ie||!q),c Line truncated
`)}function ps({tags:e,searchQuery:t,alwaysShow:r}){let{stateManager:n}=Ee(tt),i=Lu(n),a=Ee(zn),o=n.useSetting("move-tags")||r;return!e.length||!o?null:E("div",{className:$("item-tags"),children:e.map((s,u)=>{let l=i(s);return E("a",{href:s,onClick:c=>{c.preventDefault();let d=n.getSetting("tag-action");if(a&&d==="kanban"){a.search(s,!0);return}n.app.internalPlugins.getPluginById("global-search").instance.openGlobalSearch(`tag:${s}`)},className:`tag ${$("item-tag")} ${t&&s.toLocaleLowerCase().contains(t)?"is-search-match":""}`,style:l&&{"--tag-color":l.color,"--tag-background":l.backgroundColor},children:[E("span",{children:s[0]}),s.slice(1)]},u)})})}var ad=zt(function({item:t,editState:r,setEditState:n,searchQuery:i,showMetadata:a=!0,isStatic:o}){let{stateManager:s,filePath:u,boardModifiers:l}=Ee(tt),c=fa(s),d=Fe(null);Ae(()=>{r===1?(d.current!==null&&l.updateItem(m,s.updateItemContent(t,d.current)),d.current=null):r===0&&(d.current=null)},[r,s,t]);let m=Ui(),{onEditDate:h,onEditTime:g}=ug(t),y=Ye((x,O,A)=>{if(!Ca(s,O,A))return n(1),!0},[s]),v=Ye(x=>{x.targetNode.instanceOf(HTMLElement)&&(x.targetNode.hasClass($("item-metadata-date"))?h(x):x.targetNode.hasClass($("item-metadata-time"))&&g(x))},[h,g]),D=Ye(()=>n(1),[]),I=Ye(()=>(n(0),!0),[t]),C=Ye(x=>{let O=x.target;if(O.hasClass("task-list-item-checkbox")){if(O.dataset.src)return;let A=parseInt(O.dataset.checkboxIndex,10),P=dN(s,t.data.titleRaw,A),B=s.updateItemContent(t,P);l.updateItem(m,B)}},[m,l,s,t]);return!o&&kn(r)?E("div",{className:$("item-input-wrapper"),children:E(_a,{editState:r,className:$("item-input"),onEnter:y,onEscape:I,onSubmit:D,value:t.data.titleRaw,onChange:x=>{x.docChanged&&(d.current=x.state.doc.toString().trim())}})}):E("div",{onClick:v,className:$("item-title"),children:[o?E(WS,{entityId:t.id,className:$("item-markdown"),markdownString:t.data.title,searchQuery:i,onPointerUp:C}):E(Sa,{entityId:t.id,className:$("item-markdown"),markdownString:t.data.title,searchQuery:i,onPointerUp:C}),a&&E("div",{className:$("item-metadata"),children:[E(rd,{item:t,stateManager:s}),E(id,{item:t,stateManager:s,filePath:u,getDateColor:c}),E(dk,{item:t,stateManager:s}),E(ps,{tags:t.data.metadata.tags,searchQuery:i})]})]})});function fN(e,t=[],r){return t.reduce((n,i)=>{if(yi.has(i.key))return n;let a=Pu(i,r);return n[i.key]=a,n},e||{})}function fk({item:e,searchQuery:t}){let{stateManager:r}=Ee(tt),n=r.useSetting("inline-metadata-position")==="metadata-table",i=r.useSetting("metadata-keys"),{fileMetadata:a,fileMetadataOrder:o,inlineMetadata:s}=e.data.metadata,u=Re(()=>{let c=n?fN(a,s,i||[]):a;return!c||!Object.keys(c).length?null:c},[a,s,i]),l=Re(()=>{let c=new Set(o||[]);return n&&(s!=null&&s.length)&&s.forEach(d=>{c.has(d.key)||c.add(d.key)}),Array.from(c)},[o,n,s]);return u?E("div",{className:$("item-metadata-wrapper"),children:E(gN,{metadata:u,order:l,searchQuery:t})}):null}function hN(e,t){let r;if(e.ts?r=(0,li.moment)(e.ts):li.moment.isMoment(e)?r=e:e instanceof Date&&(r=(0,li.moment)(e)),r){let n=t.getSetting(r.hours()===0?"date-display-format":"date-time-display-format");return r.format(n)}return null}function mN(e,t){if(typeof e!="object"||!e.path)return null;let r=app.vault.getAbstractFileByPath(e.path);if(r&&r instanceof li.TFile){let n=app.fileManager.generateMarkdownLink(r,t.file.path,e.subpath,e.display);return`${e.embed&&n[0]!=="!"?"!":""}${n}`}return`${e.embed?"!":""}[[${e.path}${e.display?`|${e.display}`:""}]]`}function hk(e){if(typeof e=="string"&&/^\d{4}-\d{2}-\d{2}/.test(e)){let r=(0,li.moment)(e);if(r.isValid())return r}if(li.moment.isMoment(e))return e;if(e instanceof Date)return(0,li.moment)(e);let t=(0,cg.getAPI)();return t!=null&&t.value.isDate(e)?(0,li.moment)(e.ts):null}function In(e,t){Ni(e)&&e.value&&(e=e.value);let r=hk(e);if(r)return hN(r,t);if(typeof e=="string")return e;if(e instanceof li.TFile)return e.path;if(Array.isArray(e))return e.map(i=>In(i,t)).join(" ");if(e.rrule)return e.toText();let n=(0,cg.getAPI)();return n?n.value.toString(e):`${e}`}function pN(e,t){return In(e.value,t)}function hs({data:e,dateLabel:t,searchQuery:r}){let{view:n,stateManager:i}=Ee(tt),a=fa(i),o=(s,u)=>{let l=mN(s,n),c=hk(s),d=In(s,i),m=r&&d.toLocaleLowerCase().contains(r),h;if(l||e.containsMarkdown)h=E(Sa,{className:"inline",markdownString:l||d,searchQuery:r});else if(c){let g=a(c);h=E("span",{className:Ge({[$("date")]:!0,"is-search-match":m,"has-background":g==null?void 0:g.backgroundColor}),style:g&&{"--date-color":g.color,"--date-background-color":g.backgroundColor},children:[!!t&&E("span",{className:$("item-metadata-date-label"),children:t}),E("span",{className:$("item-metadata-date"),children:d})]})}else m?h=E("span",{className:"is-search-match",children:d}):h=d;return E(ct,{children:[h,u?E("span",{children:u}):null]})};return Array.isArray(e.value)?E("span",{className:Ge([$("meta-value"),"mod-array"]),children:e.value.map((s,u,l)=>o(s,u<l.length-1?", ":void 0))}):E("span",{className:Ge([$("meta-value")]),children:o(e.value)})}var gN=zt(f Line truncated
`);function vk(e){return["","","%% kanban:settings","```",JSON.stringify(e.data.settings),"```","%%"].join(`
`)}function wk(e,t){let r=e.data.metadata.fileMetadata,{titleSearchRaw:n}=e.data,i=[n];if(r){let a=Object.keys(r).filter(o=>{var s;return(s=e.data.metadata.fileMetadataOrder)==null?void 0:s.includes(o)});if(a.length){let o=In(a,t),s=In(a.map(u=>r[u]),t);o&&i.push(o),s&&i.push(s)}}return e.data.metadata.time?(i.push(e.data.metadata.time.format("LLLL")),i.push(In(e.data.metadata.time,t))):e.data.metadata.date&&(i.push(e.data.metadata.date.format("LLLL")),i.push(In(e.data.metadata.date,t))),i.join(" ").toLocaleLowerCase()}function yN(e,t,r){var n,i,a;if(e.plugins.enabledPlugins.has("dataview")&&((a=(i=(n=e.plugins)==null?void 0:n.plugins)==null?void 0:i.dataview)!=null&&a.api))return e.plugins.plugins.dataview.api.page(t.path,r.path)}function mk(e,t){if(!e)return null;if(e[t])return e[t];let r=t.split("."),n=e;for(let i of r)if(typeof n=="object"&&i in n)n=n[i];else{n=null;break}return n}function fg(e,t){let r=e.getSetting("metadata-keys");if(!r.length)return{};if(!t)return{};let n=e.app.metadataCache.getFileCache(t),i=yN(e.app,t,e.file);if(!n&&!i)return{};let a={},o={},s={},u=[],l=!1;return r.forEach(c=>{var h;if(s[c.metadataKey])return;if(s[c.metadataKey]=!0,c.metadataKey==="tags"){let g=(n==null?void 0:n.tags)||[];if(Array.isArray((h=n==null?void 0:n.frontmatter)==null?void 0:h.tags)&&(g=[].concat(g,n.frontmatter.tags.map(y=>({tag:`#${y}`})))),(g==null?void 0:g.length)===0)return;u.push(c.metadataKey),a.tags={...c,value:g.map(y=>y.tag).filter(y=>o[y]?!1:(o[y]=!0,!0)).sort(fr)},l=!0;return}let d=mk(i,c.metadataKey),m=mk(n==null?void 0:n.frontmatter,c.metadataKey);if(m!=null&&m!==""&&!(Array.isArray(m)&&m.length===0)){if(typeof m=="string"){if(/^\d{4}-\d{2}-\d{2}/.test(m))m=(0,pk.moment)(m);else if(/^\[\[[^\]]+\]\]$/.test(m)){let g=(n.frontmatterLinks||[]).find(y=>y.key===c.metadataKey);if(g){let y=e.app.metadataCache.getFirstLinkpathDest(g.link,e.file.path);y&&(m=y)}}}else Array.isArray(m)&&(m=m.map((g,y)=>{if(typeof g=="string"&&/^\[\[[^\]]+\]\]$/.test(g)){let v=(n.frontmatterLinks||[]).find(D=>D.key===c.metadataKey+"."+y.toString());if(v){let D=e.app.metadataCache.getFirstLinkpathDest(v.link,e.file.path);if(D)return D}}return g}));u.push(c.metadataKey),a[c.metadataKey]={...c,value:m},l=!0}else if(d!=null&&d!==""&&!(Array.isArray(d)&&d.length===0)){let g=i[c.metadataKey];u.push(c.metadataKey),a[c.metadataKey]={...c,value:g},l=!0}}),{fileMetadata:l?a:void 0,fileMetadataOrder:u}}function bk(e,t){return!e&&t?!0:!["metadata-keys","date-trigger","time-trigger","link-date-to-daily-note","date-format","time-format","move-dates","move-tags","inline-metadata-position","move-task-metadata","hide-card-count","tag-colors","date-colors"].every(n=>e[n]===t[n])}function Dk(e,t){let r=(0,Vl.getDateFromFile)(t,"day");if(!r||!r.isValid())return;e.internalPlugins.plugins["daily-notes"].instance.gotoNextExisting(r)}function Sk(e,t){let r=(0,Vl.getDateFromFile)(t,"day");if(!r||!r.isValid())return;e.internalPlugins.plugins["daily-notes"].instance.gotoPreviousExisting(r)}function ed(e,t){let r=(0,Vl.getDailyNoteSettings)();return e.vault.getConfig("useMarkdownLinks")?`[${t}](${r.folder?`${encodeURIComponent(r.folder)}/`:""}${encodeURIComponent(t)}.md)`:`[[${t}]]`}function Ek(e){if(!e)return!1;let t=e.match(/---\s+([\w\W]+?)\s+---/);return!(!t||!t[1].contains(_t))}function hg(e){var r;if(!e)return!1;let t=app.metadataCache.getFileCache(e);return!!((r=t==null?void 0:t.frontmatter)!=null&&r[_t])}function cd(e,t){return t?`${e} (${t})`:e}function od(e,t,r,n,i){return e.document.body.createDiv({cls:`${$("date-picker")} ${$("ignore-click-outside")}`},a=>{a.style.left=`${r.x||0}px`,a.style.top=`${r.y||0}px`,a.createEl("input",{type:"text"},o=>{a.win.setTimeout(()=>{let s=null,u=d=>{d.target instanceof d.view.HTMLElement&&d.target.closest(`.${$("date-picker")}`)===null&&c()},l=d=>{d.key==="Escape"&&c()},c=()=>{s.destroy(),a.remove(),e.document.body.removeEventListener("click",u),e.document.removeEventListener("keydown",l)};s=Qc(o,{locale:zc(t),defaultDate:i,inline:!0,onChange:d=>{n(d),c()},win:e}),a.win.setTimeout(()=>{let d=a.clientHeight,m=a.clientWidth;r.y+d>e.innerHeight&&(a.style.top=`${(r.y||0)-d}px`),r.x+m>e.innerWidth&&(a.style.left=`${(r.x||0)-m}px`)}),e.document.body.addEventListener("click",u),e.document.addEventListener("keydown",l)})})})}function sd({stateManager:e,boardModifiers:t,item:r,hasDate:n,path:i}){let a=e.getSetting("date-format"),o=e.getSetting("link-date-to-daily-note"),s=e.getSetting("date-trigger"),u=o?"(?:\\[[^\\]]+\\]\\([^)]+\\)|\\[\\[[^\\]]+\\]\\])":"{[^}]+}",l=new RegExp(`(^|\\s)${Qn(s)}${u}`);return c=>{let d=c[0],m=(0,An.moment)(d).format(a),h=o?ed(e.app,m):`{${m}}`,g=r.data.titleRaw;n?g=r.data.titleRaw.replace(l,`$1${s}${h}`):g=`${r.data.titleRaw} ${s}${h}`,t.updateItem(i,e.updateItemContent(r,g))}}function lg(e){let t=e.getSetting("time-format"),r=[];for(let n=0;n<24;n++)r.push((0,An.moment)({hour:n}).format(t)),r.push((0,An.moment)({hour:n,minute:15}).format(t)),r.push((0,An.moment)({hour:n,minute:30} Line truncated
`)[0].trim(),h=m.replace(FN,"$1").replace(IN,"$1").replace(AN,"$1").replace(ON,"$1").replace(TN," ").trim().replace(LN," "),g=i.getSetting("new-note-folder"),y=i.getSetting("new-note-template"),v=g?i.app.vault.getAbstractFileByPath(g):i.app.fileManager.getNewFileParent(i.file.path),D=await i.app.fileManager.createNewMarkdownFile(v,h),I=i.app.workspace.splitActiveLeaf();await I.openFile(D),i.app.workspace.setActiveLeaf(I,!1,!0),await yb(i,y);let C=t.data.titleRaw.replace(m,i.app.fileManager.generateMarkdownLink(D,i.file.path));n.updateItem(r,i.updateItemContent(t,C))})}).addItem(d=>{d.setIcon("lucide-link").setTitle(R("Copy link to card")).onClick(()=>{if(t.data.blockId)navigator.clipboard.writeText(`${this.app.fileManager.generateMarkdownLink(i.file,"","#^"+t.data.blockId)}`);else{let m=et(6);navigator.clipboard.writeText(`${this.app.fileManager.generateMarkdownLink(i.file,"","#^"+m)}`),n.updateItem(r,i.updateItemContent((0,Lk.default)(t,{data:{blockId:{$set:m}}}),t.data.titleRaw))}})}).addSeparator(),/\n/.test(t.data.titleRaw)&&l.addItem(d=>{d.setIcon("lucide-wrap-text").setTitle(R("Split card")).onClick(async()=>{let m=t.data.titleRaw.split(/[\r\n]+/g).map(g=>g.trim()),h=await Promise.all(m.map(g=>i.getNewItem(g," ")));n.splitItem(r,h)})}),l.addItem(d=>{d.setIcon("lucide-copy").setTitle(R("Duplicate card")).onClick(()=>n.duplicateEntity(r))}).addItem(d=>{d.setIcon("lucide-list-start").setTitle(R("Insert card before")).onClick(()=>n.insertItems(r,[i.getNewItem(""," ",!0)]))}).addItem(d=>{d.setIcon("lucide-list-end").setTitle(R("Insert card after")).onClick(()=>{let m=[...r];m[m.length-1]=m[m.length-1]+1,n.insertItems(m,[i.getNewItem(""," ",!0)])})}).addItem(d=>{d.setIcon("lucide-arrow-up").setTitle(R("Move to top")).onClick(()=>n.moveItemToTop(r))}).addItem(d=>{d.setIcon("lucide-arrow-down").setTitle(R("Move to bottom")).onClick(()=>n.moveItemToBottom(r))}).addItem(d=>{d.setIcon("lucide-archive").setTitle(R("Archive card")).onClick(()=>n.archiveItem(r))}).addItem(d=>{d.setIcon("lucide-trash-2").setTitle(R("Delete card")).onClick(()=>n.deleteEntity(r))}).addSeparator().addItem(d=>{d.setIcon("lucide-calendar-check").setTitle(s?R("Edit date"):R("Add date")).onClick(()=>{var m;od(a.view,i,o,sd({stateManager:i,boardModifiers:n,item:t,hasDate:s,path:r}),(m=t.data.metadata.date)==null?void 0:m.toDate())})}),s&&(l.addItem(d=>{d.setIcon("lucide-x").setTitle(R("Remove date")).onClick(()=>{let m=i.getSetting("link-date-to-daily-note"),h=i.getSetting("date-trigger"),g=m?"(?:\\[[^\\]]+\\]\\([^\\)]+\\)|\\[\\[[^\\]]+\\]\\])":"{[^}]+}",y=new RegExp(`(^|\\s)${Qn(h)}${g}`),v=t.data.titleRaw.replace(y,"").trim();n.updateItem(r,i.updateItemContent(t,v))})}),l.addItem(d=>{d.setIcon("lucide-clock").setTitle(u?R("Edit time"):R("Add time")).onClick(()=>{ld(a.view,i,o,ud({stateManager:i,boardModifiers:n,item:t,hasTime:u,path:r}),t.data.metadata.time)})}),u&&l.addItem(d=>{d.setIcon("lucide-x").setTitle(R("Remove time")).onClick(()=>{let m=i.getSetting("time-trigger"),h=new RegExp(`(^|\\s)${Qn(m)}{([^}]+)}`),g=t.data.titleRaw.replace(h,"").trim();n.updateItem(r,i.updateItemContent(t,g))})})),l.addSeparator();let c=d=>{let m=i.state.children;if(!(m.length<=1))for(let h=0,g=m.length;h<g;h++)d.addItem(y=>y.setIcon("lucide-square-kanban").setChecked(r[0]===h).setTitle(m[h].data.title).onClick(()=>{r[0]!==h&&i.setState(v=>Ri(v,r,[h,0]))}))};pd.Platform.isPhone?c(l):l.addItem(d=>{let m=d.setTitle(R("Move to list")).setIcon("lucide-square-kanban").setSubmenu();c(m)}),l.showAtPosition(o)},[e,t,r,n,i])}var Pk=$e.memo(function({editState:t,setEditState:r,showMenu:n}){let i=$e.useMemo(()=>t?{"data-ignore-drag":!0}:{},[t]);return E("div",{...i,className:$("item-postfix-button-wrapper"),children:kn(t)?E("a",{"data-ignore-drag":!0,onPointerDown:a=>a.preventDefault(),onClick:()=>r(0),className:`${$("item-postfix-button")} is-enabled clickable-icon`,"aria-label":R("Cancel"),children:E(Ut,{name:"lucide-x"})}):E("a",{"data-ignore-drag":!0,onPointerDown:a=>a.preventDefault(),onClick:n,className:`${$("item-postfix-button")} clickable-icon`,"aria-label":R("More options"),children:E(Ut,{name:"lucide-more-vertical"})})})});var Nk=zt(function({item:t,shouldMarkItemsComplete:r,isMatch:n,searchQuery:i,isStatic:a}){let{stateManager:o,boardModifiers:s}=Ee(tt),[u,l]=Ne(0),c=Ee(cn);Ae(()=>{let v=()=>{kn(u)&&l(0)};return c.dragManager.emitter.on("dragStart",v),()=>{c.dragManager.emitter.off("dragStart",v)}},[c,u]),Ae(()=>{t.data.forceEditMode&&l({x:0,y:0})},[t.data.forceEditMode]);let d=Ui(),m=gd({boardModifiers:s,item:t,setEditState:l,stateManager:o,path:d}),h=Ye(v=>{kn(u)||v.targetNode.instanceOf(HTMLAnchorElement)&&(v.targetNode.hasClass("internal-link")||v.targetNode.hasClass("external-link"))||m(v)},[m,u]),g=Ye(v=>l({x:v.clientX,y:v.clientY}),[l]),y=Re(()=>kn(u)?{"data-ignore-drag":!0}:{},[u]);return E("div",{onDblClick:g,onContextMenu:h,className:$("item-content-wrapper"),...y,children:[E("div",{className:$("item-title-wrapper"),...y,children:[E(md,{boardM Line truncated
Available method signatures are:
animateScrollTo(y:number, options)
animateScrollTo([x:number | null, y:number | null], options)
animateScrollTo(scrollToElement:Element, options)`;r+=a.horizontalOffset,n+=a.verticalOffset;let d=c.getMaxHorizontalScroll(),m=c.getHorizontalScroll();r>d&&(r=d);let h=r-m,g=c.getMaxVerticalScroll(),y=c.getVerticalScroll();n>g&&(n=g);let v=n-y,D=Math.abs(Math.round(h/1e3*a.speed)),I=Math.abs(Math.round(v/1e3*a.speed)),C=D>I?D:I;return C<a.minDuration?C=a.minDuration:C>a.maxDuration&&(C=a.maxDuration),new Promise((x,O)=>{h===0&&v===0&&x(!0),Ji.remove(c.element,!0);let A,P=()=>{oe(),activeWindow.cancelAnimationFrame(A),x(!1)};Ji.add(c.element,P);let B=ne=>ne.preventDefault(),G=a.cancelOnUserAction?P:B,J=a.cancelOnUserAction?{passive:!0}:{passive:!1},Q=["wheel","touchstart","keydown","mousedown"],oe=()=>{Q.forEach(ne=>{c.element.removeEventListener(ne,G,J)})};Q.forEach(ne=>{c.element.addEventListener(ne,G,J)});let te=Date.now(),re=()=>{var ne=Date.now()-te,be=ne/C;let pe=Math.round(m+h*a.easing(be)),De=Math.round(y+v*a.easing(be));ne<C&&(pe!==r||De!==n)?(c.scrollTo(pe,De),A=activeWindow.requestAnimationFrame(re)):(c.scrollTo(r,n),activeWindow.cancelAnimationFrame(A),oe(),Ji.remove(c.element,!1),x(!0))};A=activeWindow.requestAnimationFrame(re)})})}var vd=RN;var kg=Ct(ln());function Bk({children:e}){let t=$e.useMemo(()=>new Vo,[]);return E(sl.Provider,{value:t,children:e})}function Vk(e,t){let r=$e.useContext(ma),n=$e.useRef(null),i=$e.useContext(sl),a=o=>{n.current=o,n.current&&o.win.requestAnimationFrame(()=>{let s=i.getScrollState(e);s&&(s.x!==0||s.y!==0)&&(n.current.scrollLeft=s.x,n.current.scrollTop=s.y)})};return $e.useEffect(()=>{let o=n.current;if(!o)return;let s=dd(o.win,u=>{let l=u.target;i.setScrollState(r,e,{x:l.scrollLeft,y:l.scrollTop})});return o.addEventListener("scroll",s),()=>{o.removeEventListener("scroll",s)}},[i,e,t]),{setRef:a,scrollRef:n}}var HN="scroll-container",wd=8,bd=["top","right","bottom","left"],Dd=class{constructor(t,r,n,i){this.scrollFrame=0;this.observerQueue=[];this.onScroll=()=>{this.activeScroll.size===0&&(this.scrollState=Th(this.scrollEl),this.handleEntityRegistration())};this.onDragEnd=()=>{this.activeScroll.clear()};this.handleBeginDragScroll=({scrollEntitySide:t,scrollStrength:r})=>{this.isDoneScrolling(t)||(this.activeScroll.set(t,r),this.handleDragScroll())};this.handleUpdateDragScroll=({scrollEntitySide:t,scrollStrength:r})=>{this.isDoneScrolling(t)||this.activeScroll.set(t,r)};this.handleEndDragScroll=({scrollEntitySide:t})=>{this.activeScroll.delete(t)};this.dndManager=t,this.instanceId=et(),this.scopeId=r,this.triggerTypes=n,this.scrollState=Tr,this.parent=i,this.activeScroll=new Map,this.observerHandlers=new Map}initNodes(t){this.scrollEl=t,this.scrollEl.dataset.hitboxid=this.instanceId,this.scrollEl.dataset.scrollid=this.instanceId,this.top=this.createScrollEntity("top"),this.right=this.createScrollEntity("right"),this.bottom=this.createScrollEntity("bottom"),this.left=this.createScrollEntity("left"),this.bindScrollHandlers(),this.observer=new IntersectionObserver(n=>{n.forEach(i=>{var o;let a=(o=i.target.dataset)==null?void 0:o.hitboxid;if(a&&this.observerHandlers.has(a)){let s=this.observerHandlers.get(a);s&&s(i)}})},{root:t,threshold:.1});let{observerQueue:r}=this;this.observerQueue=[],r.forEach(([n,i,a])=>{this.observerHandlers.set(n,a),this.observer.observe(i)}),this.scrollEl.addEventListener("scroll",this.onScroll,{passive:!0,capture:!1}),this.dndManager.emitter.on("scrollResize",this.onScroll),this.scrollEl.win.setTimeout(()=>this.onScroll()),this.dndManager.observeResize(this.scrollEl),this.parent?this.parent.registerObserverHandler(this.instanceId,this.scrollEl,n=>{n.isIntersecting?this.handleEntityRegistration():this.handleEntityUnregistration()}):this.handleEntityRegistration()}destroy(){var t;!this.scrollEl&&!this.observer||(this.observerQueue.length=0,this.handleEntityUnregistration(),this.observer.disconnect(),this.unbindScrollHandlers(),this.scrollEl.removeEventListener("scroll",this.onScroll),this.dndManager.emitter.off("scrollResize",this.onScroll),(t=this.parent)==null||t.unregisterObserverHandler(this.instanceId,this.scrollEl),this.dndManager.unobserveResize(this.scrollEl))}handleEntityRegistration(){bd.forEach(t=>{let r=Dn(this.scrollEl),n=this.getId(t),i=this.dndManager.scrollEntities.has(n),a=this.isDoneScrolling(t);!a&&!i?this.dndManager.registerScrollEntity(n,this[t],r):a&&i&&this.dndManager.unregisterScrollEntity(n,r)})}handleEntityUnregistration(){bd.forEach(t=>{let r=Dn(this.scrollEl),n=this.getId(t);this.dndManager.unregisterScrollEntity(n,r)})}registerObserverHandler(t,r,n){this.observer?(this.observerHandlers.set(t,n),this.observer.observe(r)):this.observerQueue.push([t,r,n])}unregisterObserverHandler(t,r){this.observer?(this.observerHandlers.delete(t),this.observer.unobserve(r)):this.observerQueue=this.observerQueue.filter(n=>n[0]!==t)}bindScrollHandlers(){bd.forEach(t=>{let r=this.getId(t);this.dndManager.dragManager.emitter.on("beginDragScroll",this.handleBeginDragScroll,r),this.dndManager.dragManager.emitter.on("updateDragScr Line truncated
`).trim()}function Cd(e){let t=app.vault.getConfig("useTab");return e.trim().replace(/(?:\r\n|\n)/g,t?`
`:`
`)}function Sg(e,t){if(!t.data.blockId)return e;let r=e.split(/(?:\r\n|\n)/g);return r[0]+=" ^"+t.data.blockId,r.join(`
`)}function qk(e){let t=e.split(/(?:\r\n|\n)/g);return t[0]=t[0].replace(/\s+\^([a-zA-Z0-9-]+)$/,""),t.join(`
`)}function Eg(e){return e.trim().replace(/(?:\r\n|\n)(?: {4}|\t)/g,`
`)}function co(e){e=Dg(e);let t=e.match(/^(.*?)\s*\((\d+)\)$/);return t==null?{title:e,maxItems:0}:{title:t[1],maxItems:Number(t[2])}}function Gk(e){return E("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",children:E("path",{fill:"currentColor",d:"M5 3h2v2H5zm0 4h2v2H5zm0 4h2v2H5zm4-8h2v2H9zm0 4h2v2H9zm0 4h2v2H9z"})})}var $l=Ct(ln()),_d=require("obsidian");var Jk={delete:{description:R("Are you sure you want to delete this list and all its cards?"),confirm:R("Yes, delete list")},archive:{description:R("Are you sure you want to archive this list and all its cards?"),confirm:R("Yes, archive list")},"archive-items":{description:R("Are you sure you want to archive all cards in this list?"),confirm:R("Yes, archive cards")}};function Zk({action:e,cancel:t,onAction:r,lane:n}){return Ae(()=>{e&&n.children.length===0&&r()},[e,n.children.length]),!e||e&&n.children.length===0?null:E("div",{className:$("action-confirm-wrapper"),children:[E("div",{className:$("action-confirm-text"),children:Jk[e].description}),E("div",{children:[E("button",{onClick:r,className:$("confirm-action-button"),children:Jk[e].confirm}),E("button",{onClick:t,className:$("cancel-action-button"),children:"Cancel"})]})]})}function Qk({setEditState:e,path:t,lane:r}){let{stateManager:n,boardModifiers:i}=Ee(tt),[a,o]=Ne(null);return{settingsMenu:Re(()=>{let u=new Set,l=!1,c=!1;r.children.forEach(h=>{var y;let g=h.data.metadata.inlineMetadata;g&&g.forEach(v=>{v.key!=="repeat"&&(u.has(v.key)||u.add(v.key))}),!l&&h.data.metadata.date&&(l=!0),!c&&((y=h.data.metadata.tags)!=null&&y.length)&&(c=!0)});let d=new _d.Menu().addItem(h=>{h.setIcon("lucide-edit-3").setTitle(R("Edit list")).onClick(()=>e({x:0,y:0}))}).addItem(h=>{h.setIcon("lucide-archive").setTitle(R("Archive cards")).onClick(()=>o("archive-items"))}).addSeparator().addItem(h=>{h.setIcon("arrow-left-to-line").setTitle(R("Insert list before")).onClick(()=>i.insertLane(t,{...Ea,id:et(),children:[],data:{title:"",shouldMarkItemsComplete:!1,forceEditMode:!0}}))}).addItem(h=>{h.setIcon("arrow-right-to-line").setTitle(R("Insert list after")).onClick(()=>{let g=[...t];g[g.length-1]=g[g.length-1]+1,i.insertLane(g,{...Ea,id:et(),children:[],data:{title:"",shouldMarkItemsComplete:!1,forceEditMode:!0}})})}).addSeparator().addItem(h=>{h.setIcon("lucide-archive").setTitle(R("Archive list")).onClick(()=>o("archive"))}).addItem(h=>{h.setIcon("lucide-trash-2").setTitle(R("Delete list")).onClick(()=>o("delete"))}).addSeparator(),m=h=>{h.addItem(g=>{g.setIcon("arrow-down-up").setTitle(R("Sort by card text")).onClick(()=>{let y=r.children.slice(),v=r.data.sorted===0;y.sort((D,I)=>v?I.data.title.localeCompare(D.data.title):D.data.title.localeCompare(I.data.title)),i.updateLane(t,(0,$l.default)(r,{children:{$set:y},data:{sorted:{$set:r.data.sorted===0?1:0}}}))})}),l&&h.addItem(g=>{g.setIcon("arrow-down-up").setTitle(R("Sort by date")).onClick(()=>{let y=r.children.slice(),v=r.data.sorted===2?-1:1;y.sort((D,I)=>{let C=D.data.metadata.time||D.data.metadata.date,x=I.data.metadata.time||I.data.metadata.date;return C&&!x?-1*v:x&&!C?1*v:!C&&!x?0:(C.isBefore(x)?-1:1)*v}),i.updateLane(t,(0,$l.default)(r,{children:{$set:y},data:{sorted:{$set:r.data.sorted===2?3:2}}}))})}),c&&h.addItem(g=>{g.setIcon("arrow-down-up").setTitle(R("Sort by tags")).onClick(()=>{let y=n.getSetting("tag-sort"),v=r.children.slice(),D=r.data.sorted===4;v.sort((I,C)=>{var B,G;let x=I.data.metadata.tags,O=C.data.metadata.tags;if(!(x!=null&&x.length)&&!(O!=null&&O.length))return 0;if(!(x!=null&&x.length))return 1;if(!(O!=null&&O.length))return-1;let A=(B=y==null?void 0:y.findIndex(J=>x.includes(J.tag)))!=null?B:-1,P=(G=y==null?void 0:y.findIndex(J=>O.includes(J.tag)))!=null?G:-1;return A>-1&&P<0?D?1:-1:P>-1&&A<0?D?-1:1:A>-1&&P>-1?D?P-A:A-P:D?fr(O.join(""),x.join("")):fr(x.join(""),O.join(""))}),i.updateLane(t,(0,$l.default)(r,{children:{$set:v},data:{sorted:{$set:r.data.sorted===4?5:4}}}))})}),u.size&&u.forEach(g=>{h.addItem(y=>{y.setIcon("arrow-down-up").setTitle(R("Sort by")+" "+No(g).toLocaleLowerCase()).onClick(()=>{let v=r.children.slice(),D=r.data.sorted===g+"-asc";v.sort((I,C)=>{var A,P;let x=(A=I.data.metadata.inlineMetadata)==null?void 0:A.find(B=>B.key===g),O=(P=C.data.metadata.inlineMetadata)==null?void 0:P.find(B=>B.key===g);return x===void 0&&O===void 0?0:x===void 0?1:O===void 0?-1:D?fr(In(O.value,n),In(x.value,n)):fr(In(x.value,n),In(O.value,n))}),i.updateLane(t,(0,$l.default)(r,{children:{$set:v},data:{sorted:{$set:r.data.sorted===g+"-asc"?g+"-desc":g+"-asc"}}}))})})})};return _d.Platform.isPhone?m(d):d.addItem(h=>{let g=h.setTitle(R("Sort by")).setIcon("arrow-down-up").setSubmenu();m(g)}),d},[n,o,t,r]),confirmAction:a,setConfirmAction:o}}var Xk=Ct(ln());function ex({lane:e,lanePath:t,editState:r}){let{boardModifiers:n}=Ee(tt);return kn(r)?E("div",{className:$("lane-setting-wrapper"),children:E("div",{className:$("checkbox-wrapper"),children:[E("div",{className:$("checkbox-label"),children:R("Mark cards in this list as co Line truncated
font-size: .6rem;
font-weight: bold;
color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,r==null?void 0:r.key)}return i}}function Ke(e,t,r,n){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:!1,onChange:n}}function NR(e,t,r,n){let i=()=>{var o;return(o=a.getValue())!=null?o:e.options.renderFallbackValue},a={id:`${t.id}_${r.id}`,row:t,column:r,getValue:()=>t.getValue(n),renderValue:i,getContext:ze(()=>[e,r,t,a],(o,s,u,l)=>({table:o,column:s,row:u,cell:l,getValue:l.getValue,renderValue:l.renderValue}),Ke(e.options,"debugCells","cell.getContext"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,r,t,e)},{}),a}function RR(e,t,r,n){var i,a;let s={...e._getDefaultColumnDef(),...t},u=s.accessorKey,l=(i=(a=s.id)!=null?a:u?u.replace(".","_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:u&&(u.includes(".")?c=m=>{let h=m;for(let y of u.split(".")){var g;h=(g=h)==null?void 0:g[y]}return h}:c=m=>m[s.accessorKey]),!l)throw new Error;let d={id:`${String(l)}`,accessorFn:c,parent:n,depth:r,columnDef:s,columns:[],getFlatColumns:ze(()=>[!0],()=>{var m;return[d,...(m=d.columns)==null?void 0:m.flatMap(h=>h.getFlatColumns())]},Ke(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:ze(()=>[e._getOrderColumnsFn()],m=>{var h;if((h=d.columns)!=null&&h.length){let g=d.columns.flatMap(y=>y.getLeafColumns());return m(g)}return[d]},Ke(e.options,"debugColumns","column.getLeafColumns"))};for(let m of e._features)m.createColumn==null||m.createColumn(d,e);return d}var nr="debugHeaders";function Kx(e,t,r){var n;let a={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let o=[],s=u=>{u.subHeaders&&u.subHeaders.length&&u.subHeaders.map(s),o.push(u)};return s(a),o},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(o=>{o.createHeader==null||o.createHeader(a,e)}),a}var HR={createTable:e=>{e.getHeaderGroups=ze(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>{var a,o;let s=(a=n==null?void 0:n.map(d=>r.find(m=>m.id===d)).filter(Boolean))!=null?a:[],u=(o=i==null?void 0:i.map(d=>r.find(m=>m.id===d)).filter(Boolean))!=null?o:[],l=r.filter(d=>!(n!=null&&n.includes(d.id))&&!(i!=null&&i.includes(d.id)));return Wd(t,[...s,...l,...u],e)},Ke(e.options,nr,"getHeaderGroups")),e.getCenterHeaderGroups=ze(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>(r=r.filter(a=>!(n!=null&&n.includes(a.id))&&!(i!=null&&i.includes(a.id))),Wd(t,r,e,"center")),Ke(e.options,nr,"getCenterHeaderGroups")),e.getLeftHeaderGroups=ze(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var i;let a=(i=n==null?void 0:n.map(o=>r.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return Wd(t,a,e,"left")},Ke(e.options,nr,"getLeftHeaderGroups")),e.getRightHeaderGroups=ze(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var i;let a=(i=n==null?void 0:n.map(o=>r.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return Wd(t,a,e,"right")},Ke(e.options,nr,"getRightHeaderGroups")),e.getFooterGroups=ze(()=>[e.getHeaderGroups()],t=>[...t].reverse(),Ke(e.options,nr,"getFooterGroups")),e.getLeftFooterGroups=ze(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),Ke(e.options,nr,"getLeftFooterGroups")),e.getCenterFooterGroups=ze(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),Ke(e.options,nr,"getCenterFooterGroups")),e.getRightFooterGroups=ze(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),Ke(e.options,nr,"getRightFooterGroups")),e.getFlatHeaders=ze(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),Ke(e.options,nr,"getFlatHeaders")),e.getLeftFlatHeaders=ze(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),Ke(e.options,nr,"getLeftFlatHeaders")),e.getCenterFlatHeaders=ze(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),Ke(e.options,nr,"getCenterFlatHeaders")),e.getRightFlatHeaders=ze(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),Ke(e.options,nr,"getRightFlatHeaders")),e.getCenterLeafHeaders=ze(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),Ke(e.options,nr,"getCenterLeafHeaders")),e.getLeftLeafHeaders=ze(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),Ke(e.options,nr,"getLeftLeafHeaders")),e.getRightLeafHeaders=ze(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),Ke(e.options,nr,"getRightLeafHeaders")),e.getLeafHeaders=ze(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var i,a,o,s,u,l;return[...(i=(a=t[0])==null?void 0:a.headers)!=null?i:[],...(o=(s=r[0])==null?void 0:s.headers)!=null?o:[],. Line truncated
`;break}case-3:{o=`\r
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,n.push(o)}return n.join("")}var wy={};Rf(wy,{attentionMarkers:()=>gB,contentInitial:()=>cB,disable:()=>yB,document:()=>uB,flow:()=>fB,flowInitial:()=>dB,insideSpan:()=>pB,string:()=>hB,text:()=>mB});var uB={42:ir,43:ir,45:ir,48:ir,49:ir,50:ir,51:ir,52:ir,53:ir,54:ir,55:ir,56:ir,57:ir,62:tf},cB={91:dy},dB={[-2]:Ql,[-1]:Ql,32:Ql},fB={35:hy,42:vo,45:[cf,vo],60:py,61:cf,95:vo,96:af,126:af},hB={38:rf,92:nf},mB={[-5]:Xl,[-4]:Xl,[-3]:Xl,33:yy,38:rf,42:Zl,60:[ly,gy],91:vy,92:[fy,nf],93:yo,95:Zl,96:uy},pB={null:[Zl,o_]},gB={null:[42,95]},yB={null:[]};function f_(e){let r=zC([wy,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:r,content:i(QC),document:i(e_),flow:i(a_),string:i(s_),text:i(l_)};return n;function i(a){return o;function o(s){return d_(n,a,s)}}}var h_=/[\0\t\n\r]/g;function m_(){let e=1,t="",r=!0,n;return i;function i(a,o,s){let u=[],l,c,d,m,h;for(a=t+a.toString(o),d=0,t="",r&&(a.charCodeAt(0)===65279&&d++,r=void 0);d<a.length;){if(h_.lastIndex=d,l=h_.exec(a),m=l&&l.index!==void 0?l.index:a.length,h=a.charCodeAt(m),!l){t=a.slice(d);break}if(h===10&&d===m&&n)u.push(-3),n=void 0;else switch(n&&(u.push(-5),n=void 0),d<m&&(u.push(a.slice(d,m)),e+=m-d),h){case 0:{u.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,u.push(-2);e++<c;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:n=!0,e=1}d=m+1}return s&&(n&&u.push(-5),t&&u.push(t),u.push(null)),u}}function p_(e){for(;!of(e););return e}function df(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCharCode(r)}var vB=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function g_(e){return e.replace(vB,wB)}function wB(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let i=r.charCodeAt(1),a=i===120||i===88;return df(r.slice(a?2:1),a?16:10)}return Ts(r)||e}function Fs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?y_(e.position):"start"in e||"end"in e?y_(e):"line"in e||"column"in e?by(e):""}function by(e){return v_(e&&e.line)+":"+v_(e&&e.column)}function y_(e){return by(e&&e.start)+"-"+by(e&&e.end)}function v_(e){return e&&typeof e=="number"?e:1}var b_={}.hasOwnProperty,ff=function(e,t,r){return typeof t!="string"&&(r=t,t=void 0),bB(r)(p_(f_(r).document().write(m_()(e,t,!0))))};function bB(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Vt),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:s(xn),blockQuote:s(Jt),characterEscape:Q,characterReference:Q,codeFenced:s(en),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(en,u),codeText:s(gn,u),codeTextData:Q,data:Q,codeFlowValue:Q,definition:s(yn),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(vn),hardBreakEscape:s(jn),hardBreakTrailing:s(jn),htmlFlow:s(sn,u),htmlFlowData:Q,htmlText:s(sn,u),htmlTextData:Q,image:s(Rt),label:u,link:s(Vt),listItem:s(Rr),listItemValue:g,listOrdered:s(Sr,h),listUnordered:s(Sr),paragraph:s(Bt),reference:It,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(xn),strong:s(Hr),thematicBreak:s(At)},exit:{atxHeading:c(),atxHeadingSequence:P,autolink:c(),autolinkEmail:Tt,autolinkProtocol:Wt,blockQuote:c(),characterEscapeValue:oe,characterReferenceMarkerHexadecimal:jt,characterReferenceMarkerNumeric:jt,characterReferenceValue:vt,codeFenced:c(I),codeFencedFence:D,codeFencedFenceInfo:y,codeFencedFenceMeta:v,codeFlowValue:oe,codeIndented:c(C),codeText:c(pe),codeTextData:oe,data:oe,definition:c(),definitionDestinationString:A,definitionLabelString:x,definitionTitleString:O,emphasis:c(),hardBreakEscape:c(re),hardBreakTrailing:c(re),htmlFlow:c(ne),htmlFlowData:oe,htmlText:c(be),htmlTextData:oe,image:c(Ce),label:Je,labelText:U,lineEnding:te,link:c(De),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Mt,resourceDestinationString:it,resourceTitleString:N,resource:Ze,setextHeading:c(J),setextHeadingLineSequence:G,setextHeadingText:B,strong:c(),thematicBreak:c()}};D_(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(Z){let me={type:"root",children:[]},Ie={stack:[me],tokenStack:[],config:t,enter:l,exit:d,buffer:u,resume:m,setData:a,getData:o},at=[],Dt=-1;for(;++Dt<Z.length;)if(Z[Dt][1].type==="listOrdered"||Z[Dt][1].type==="listUnordered")if(Z[Dt][0]==="enter")at.push(Dt);else{let Cn=at.pop();Dt=i(Z,Cn,Dt)}for(Dt=-1;++Dt<Z.length;){let Cn=t[Z[Dt][0]];b_.call(Cn,Z[Dt][1].type)&&Cn[Z[Dt][1].type].call(Object.assign({sliceSerialize:Z[Dt][2].sliceSerialize},Ie),Z[Dt][1])}if(Ie.tokenStack.length>0){let Cn=Ie.tokenStack[Ie.tokenStack.length-1];(Cn[1]||w_).call(Ie,void 0,Cn[0])}for(me.position={start:Ra(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Ra(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},Dt=-1;++Dt<t.transforms.lenLine truncated
`),y=gb(h.title,!0);if(y!=null&&y.length){let D=h.metadata.inlineMetadata=y.reduce((x,O)=>(yi.has(O.key)?(g<=0||O.end<g)&&x.push(O):x.push(O),x),[]),I=e.getSetting("move-task-metadata"),C=e.getSetting("inline-metadata-position")!=="body";if(I||C){let x=h.title;for(let O of[...D].reverse()){let A=yi.has(O.key);A&&!I||!A&&!C||(x=x.slice(0,O.start)+x.slice(O.end))}h.title=x}}return(v=h.metadata.tags)==null||v.sort(fr),h}function OB(e,t,r){if(e.type!=="heading"||_s(e,{includeImageAlt:!1})!==R("Archive"))return!1;let n=HC(t,r);return n&&n.type==="thematicBreak"}function B_(e,t,r,n,i){let a=[],o=[];return n.children.forEach((s,u)=>{if(s.type==="heading"){let l=OB(s,n.children,u),c=ef(s),d=oy(i,c),m=!1,h=BC(n.children,u,"list",g=>{if(g.type==="heading")return!1;if(g.type==="paragraph"){let y=_s(g);if(y.startsWith("%% kanban:settings"))return!1;if(y===R("Complete"))return m=!0,!0}return!0});if(l&&h){o.push(...h.children.map(g=>({...Pc,id:et(),data:gf(e,i,g)})));return}h?a.push({...Ea,children:h.children.map(g=>{let y=gf(e,i,g);return{...Pc,id:et(),data:y}}),id:et(),data:{...co(d),shouldMarkItemsComplete:m}}):a.push({...Ea,children:[],id:et(),data:{...co(d),shouldMarkItemsComplete:m}})}}),{...Nc,id:e.file.path,children:a,data:{settings:t,frontmatter:r,archive:o,isSearching:!1,errors:[]}}}function _y(e,t,r){let n=`- [${t.data.checkChar}] ${Sg(Cd(r),t)}`,i=Cy(e,n),a=gf(e,n,i.children[0].children[0]),o=(0,pf.default)(t,{data:{$set:a}});try{ql(e,o)}catch(s){console.error(s)}return o}function V_(e,t,r,n){let i=`- [${r}] ${Cd(t)}`,a=Cy(e,i),o=gf(e,i,a.children[0].children[0]);o.forceEditMode=!!n;let s={...Pc,id:et(),data:o};try{ql(e,s)}catch(u){console.error(u)}return s}function $_(e,t){try{return(0,pf.default)(t,{children:{$set:t.children.map(r=>(0,pf.default)(r,{children:{$set:r.children.map(n=>_y(e,n,n.data.titleRaw))}}))}})}catch(r){throw e.setError(r),r}}function U_(e){return`- [${e.data.checkChar}] ${Sg(Cd(e.data.titleRaw),e)}`}function LB(e){let t=[];return t.push(`## ${jk(cd(e.data.title,e.data.maxItems))}`),t.push(""),e.data.shouldMarkItemsComplete&&t.push(gk),e.children.forEach(r=>{t.push(U_(r))}),t.push(""),t.push(""),t.push(""),t.join(`
`)}function PB(e){if(e.length){let t=[yk,"",`## ${R("Archive")}`,""];return e.forEach(r=>{t.push(U_(r))}),t.join(`
`)}return""}function W_(e){let t=e.children.reduce((n,i)=>n+LB(i),"");return["---","",(0,H_.stringifyYaml)(e.data.frontmatter),"---","",""].join(`
`)+t+PB(e.data.archive)+vk(e)}var NB=["id","date","time","titleSearch","titleSearchRaw","file"],yf=class{constructor(t){this.stateManager=t}newItem(t,r,n){return V_(this.stateManager,t,r,n)}updateItemContent(t,r){return _y(this.stateManager,t,r)}boardToMd(t){return W_(t)}mdToBoard(t){let{ast:r,settings:n,frontmatter:i}=R_(this.stateManager,t),a=B_(this.stateManager,n,i,r,t),{state:o}=this.stateManager,s=(0,z_.getAPI)();if(!this.stateManager.hasError()&&o){let u=OC(o,a,c=>NB.includes(c.last()),c=>c?c instanceof Y_.TFile?c.path:Ni(c)||Array.isArray(c)?String(c):s&&!s.value.isObject(c)?s.value.toString(c):String(c):String(c)),l=PC(o,u);return WC(this.stateManager,l,u)}return UC(this.stateManager,a)}reparseBoard(){return $_(this.stateManager,this.stateManager.state)}};var vf=class{constructor(t,r,n,i,a){this.stateReceivers=[];this.settingsNotifiers=new Map;this.viewSet=new Set;this.compiledSettings={};this.getSetting=(t,r)=>{var n;return(r==null?void 0:r[t])!==void 0?r[t]:((n=this.compiledSettings)==null?void 0:n[t])!==void 0?this.compiledSettings[t]:this.getSettingRaw(t)};this.getSettingRaw=(t,r)=>{var n,i,a;return(r==null?void 0:r[t])!==void 0?r[t]:((a=(i=(n=this.state)==null?void 0:n.data)==null?void 0:i.settings)==null?void 0:a[t])!==void 0?this.state.data.settings[t]:this.getGlobalSetting(t)};this.getGlobalSetting=t=>{let r=this.getGlobalSettings();return(r==null?void 0:r[t])!==void 0?r[t]:null};this.app=t,this.file=r.file,this.onEmpty=i,this.getGlobalSettings=a,this.parser=new yf(this),this.registerView(r,n,!0)}getAView(){return this.viewSet.values().next().value}hasError(){var t,r,n;return!!((n=(r=(t=this.state)==null?void 0:t.data)==null?void 0:r.errors)!=null&&n.length)}async registerView(t,r,n){this.viewSet.has(t)||this.viewSet.add(t),await new Promise(i=>activeWindow.setTimeout(i,10)),n?await this.newBoard(t,r):await t.prerender(this.state),t.populateViewState(this.state.data.settings)}unregisterView(t){this.viewSet.has(t)&&(this.viewSet.delete(t),this.viewSet.size===0&&this.onEmpty())}buildSettingRetrievers(){return{getGlobalSettings:this.getGlobalSettings,getGlobalSetting:this.getGlobalSetting,getSetting:this.getSetting}}async newBoard(t,r){try{let n=this.getParsedBoard(r);await t.prerender(n),this.setState(n,!1)}catch(n){this.setError(n)}}saveToDisk(){if(this.state.data.errors.length>0)return;let t=this.getAView();if(t){let r=this.parser.boardToMd(this.state);t.requestSaveToDisk(r),this.viewSet.forEach(n=>{n.data=r})}}softRefresh(){this.stateReceivers.forEach(t=>t({...this.state}))}forceRefresh(){if(this.state)try{this.compileSettings(),this.state=this.parser.reparseBoard(),this.stateReceivers.forEach(t=>t(this.state)),this.settingsNotifiers.forEach(t=>{t.forEach(r=>r())}),this.viewSet.forEach(t=>t.initHeaderButtons())}catch(t){console.error(t),this.setError(t)}}setState(t,r=!0){var n;try{let i=(n=this.state)==null?void 0:n.data.settings,a=typeof t=="function"?t(this.state):t,o=a==null?void 0:a.data.settings;i&&o&&bk(i,o)?(this.state=(0,Ps.default)(this.state,{data:{settings:{$set:o}}}),this.compileSettings(),this.state=this.parser.reparseBoard()):(this.state=a,this.compileSettings()),this.viewSet.forEach(s=>{s.initHeaderButtons(),s.validatePreviewCache(a)}),r&&this.saveToDisk(),this.stateReceivers.forEach(s=>s(this.state)),i!==o&&o&&this.settingsNotifiers.forEach((s,u)=>{(!i&&o||i[u]!==o[u])&&s.forEach(l=>l())})}catch(i){console.error(i),this.setError(i)}}useState(){let[t,r]=Ne(this.state);return Ae(()=>(this.stateReceivers.push(n=>r(n)),r(this.state),()=>{this.stateReceivers.remove(r)}),[]),t}useSetting(t){let[r,n]=Ne(this.getSetting(t));return Ae(()=>{let i=()=>n(this.getSetting(t));return this.settingsNotifiers.has(t)?this.settingsNotifiers.get(t).push(i):this.settingsNotifiers.set(t,[i]),()=>{this.settingsNotifiers.get(t).remove(i)}},[]),r}compileSettings(t){var l,c,d,m,h,g,y,v,D,I;let r=this.getGlobalSetting("metadata-keys")||[],n=this.getSettingRaw("metadata-keys",t)||[],i=Array.from(new Set([...r,...n])),a=this.getSettingRaw("date-format",t)||ja(this.app),o=this.getSettingRaw("date-display-format",t)||a,s=this.getSettingRaw("time-format",t)||Ho(this.app),u=this.getSettingRaw("archive-date-format",t)||`${a} ${s}`;this.compiledSettings={[_t]:this.getSettingRaw(_t,t)||"board","date-format":a,"date-display-format":o,"date-time-display-format":o+" "+s,"date-trigger":this.getSettingRaw("date-trigger",t)||Ad,"inline-metadata-position":this.getSettingRaw("inline-metadata-position",t)||Ul,"time-format":s,"time-trigger":this.getSettingRaw("time-trigger",t)||Od,"link-date-to-daily-note":this.getSettingRaw("link-date-to-daily-note",t),"move-dates":this.getSettingRaw("move-dates",t),"move-tags":this.getSettingRaw("move-tags",t),"move-task-metadata":this.getSettingRaw("move-task-metadata",t),"metadata-keys":i,"archive-date-separator":this.getSettingRaw("archive-date-separator")||"","archive-date-format":u,"show-add-list":(l=this.getSettingRaw("show-add-list",t))!=null?l:!0,"show-archive-all":(c=this.ge Line truncated
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
/*! Bundled license information:
mark.js/dist/mark.js:
(*!***************************************************
* mark.js v8.11.1
* https://markjs.io/
* Copyright (c) 2014–2018, Julian Kühnel
* Released under the MIT license https://git.io/vwTVl
*****************************************************)
moment/moment.js:
(*! moment.js *)
(*! version : 2.29.4 *)
(*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
(*! license : MIT *)
(*! momentjs.com *)
choices.js/public/assets/scripts/choices.js:
(*! choices.js v9.0.1 | © 2019 Josh Johnson | https://github.com/jshjohnson/Choices#readme *)
(*!
* Fuse.js v3.4.5 - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
*
* http://www.apache.org/licenses/LICENSE-2.0
*)
is-plain-object/dist/is-plain-object.mjs:
(*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*)
@tanstack/table-core/build/lib/index.mjs:
(**
* table-core
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*)
@tanstack/react-table/build/lib/index.mjs:
(**
* react-table
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*)
@tanstack/match-sorter-utils/build/lib/index.mjs:
(**
* match-sorter-utils
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*)
(**
* @name match-sorter
* @license MIT license.
* @copyright (c) 2099 Kent C. Dodds
* @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
*)
*/
/* nosourcemap */
+11
View File
@@ -0,0 +1,11 @@
{
"id": "obsidian-kanban",
"name": "Kanban",
"version": "2.0.51",
"minAppVersion": "1.0.0",
"description": "Create markdown-backed Kanban boards in Obsidian.",
"author": "mgmeyers",
"authorUrl": "https://github.com/mgmeyers/obsidian-kanban",
"helpUrl": "https://publish.obsidian.md/kanban/Obsidian+Kanban+Plugin",
"isDesktopOnly": false
}
+1
View File
@@ -0,0 +1 @@
.choices{position:relative;margin-bottom:24px;font-size:16px}.choices:focus{outline:none}.choices:last-child{margin-bottom:0}.choices.is-disabled .choices__inner,.choices.is-disabled .choices__input{background-color:#eaeaea;cursor:not-allowed;-webkit-user-select:none;-ms-user-select:none;user-select:none}.choices.is-disabled .choices__item{cursor:not-allowed}.choices [hidden]{display:none!important}.choices[data-type*=select-one]{cursor:pointer}.choices[data-type*=select-one] .choices__inner{padding-bottom:7.5px}.choices[data-type*=select-one] .choices__input{display:block;width:100%;padding:10px;border-bottom:1px solid #dddddd;background-color:#fff;margin:0}.choices[data-type*=select-one] .choices__button{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);padding:0;background-size:8px;position:absolute;top:50%;right:0;margin-top:-10px;margin-right:25px;height:20px;width:20px;border-radius:10em;opacity:.5}.choices[data-type*=select-one] .choices__button:hover,.choices[data-type*=select-one] .choices__button:focus{opacity:1}.choices[data-type*=select-one] .choices__button:focus{box-shadow:0 0 0 2px #00bcd4}.choices[data-type*=select-one] .choices__item[data-value=""] .choices__button{display:none}.choices[data-type*=select-one]:after{content:"";height:0;width:0;border-style:solid;border-color:#333333 transparent transparent transparent;border-width:5px;position:absolute;right:11.5px;top:50%;margin-top:-2.5px;pointer-events:none}.choices[data-type*=select-one].is-open:after{border-color:transparent transparent #333333 transparent;margin-top:-7.5px}.choices[data-type*=select-one][dir=rtl]:after{left:11.5px;right:auto}.choices[data-type*=select-one][dir=rtl] .choices__button{right:auto;left:0;margin-left:25px;margin-right:0}.choices[data-type*=select-multiple] .choices__inner,.choices[data-type*=text] .choices__inner{cursor:text}.choices[data-type*=select-multiple] .choices__button,.choices[data-type*=text] .choices__button{position:relative;display:inline-block;margin:0 -4px 0 8px;padding-left:16px;border-left:1px solid #008fa1;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);background-size:8px;width:8px;line-height:1;opacity:.75;border-radius:0}.choices[data-type*=select-multiple] .choices__button:hover,.choices[data-type*=select-multiple] .choices__button:focus,.choices[data-type*=text] .choices__button:hover,.choices[data-type*=text] .choices__button:focus{opacity:1}.choices__inner{display:inline-block;vertical-align:top;width:100%;background-color:#f9f9f9;padding:7.5px 7.5px 3.75px;border:1px solid #dddddd;border-radius:2.5px;font-size:14px;min-height:44px;overflow:hidden}.is-focused .choices__inner,.is-open .choices__inner{border-color:#b7b7b7}.is-open .choices__inner{border-radius:2.5px 2.5px 0 0}.is-flipped.is-open .choices__inner{border-radius:0 0 2.5px 2.5px}.choices__list{margin:0;padding-left:0;list-style:none}.choices__list--single{display:inline-block;padding:4px 16px 4px 4px;width:100%}[dir=rtl] .choices__list--single{padding-right:4px;padding-left:16px}.choices__list--single .choices__item{width:100%}.choices__list--multiple{display:inline}.choices__list--multiple .choices__item{display:inline-block;vertical-align:middle;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:500;margin-right:3.75px;margin-bottom:3.75px;background-color:#00bcd4;border:1px solid #00a5bb;color:#fff;word-break:break-all;box-sizing:border-box}.choices__list--multiple .choices__item[data-deletable]{padding-right:5px}[dir=rtl] .choices__list--multiple .choices__item{margin-right:0;margin-left:3.75px}.choices__list--multiple .choices__item.is-highlighted{background-color:#00a5bb;border:1px solid #008fa1}.is-disabled .choices__list--multiple .choices__item{background-color:#aaa;border:1px solid #919191}.choices__list--dropdown{visibility:hidden;z-index:1;position:absolute;width:100%;background-color:#fff;border:1px solid #dddddd;top:100%;margin-top:-1px;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;overflow:hidden;word-break:break-all;will-change:visibility}.choices__list--dropdown.is-active{visibility:visible}.is-open .choices__list--dropdown{border-color:#b7b7b7}.is-flipped .choices__list--dropdown{top:auto;bottom:100%;margin-top:0;margin-bottom:-1px;border-radius:.25rem .25rem 0 0}.choices__list--dropdown .choices__list{position:relative;max-heightLine truncated
+253
View File
@@ -0,0 +1,253 @@
{
"presets": {
"this_file": "path includes {{query.file.path}}",
"this_folder": "folder includes {{query.file.folder}}",
"this_folder_only": "filter by function task.file.folder === query.file.folder",
"this_root": "root includes {{query.file.root}}",
"hide_date_fields": "# Hide any values for all date fields\nhide due date\nhide scheduled date\nhide start date\nhide created date\nhide done date\nhide cancelled date",
"hide_non_date_fields": "# Hide all the non-date fields, but not tags\nhide id\nhide depends on\nhide recurrence rule\nhide on completion\nhide priority",
"hide_query_elements": "# Hide toolbar, postpone, edit and backlinks\nhide toolbar\nhide postpone button\nhide edit button\nhide backlinks",
"hide_everything": "# Hide everything except description and any tags\npreset hide_date_fields\npreset hide_non_date_fields\npreset hide_query_elements"
},
"globalQuery": "path does not include _templated\npath does not include _utilitiesp",
"globalFilter": "",
"removeGlobalFilter": false,
"taskFormat": "tasksPluginEmoji",
"setCreatedDate": false,
"setDoneDate": true,
"setCancelledDate": true,
"autoSuggestInEditor": true,
"autoSuggestMinMatch": 0,
"autoSuggestMaxItems": 20,
"provideAccessKeys": true,
"useFilenameAsScheduledDate": true,
"filenameAsScheduledDateFormat": "YYYY-MM-DD ddd",
"filenameAsDateFolders": [],
"recurrenceOnNextLine": true,
"removeScheduledDateOnRecurrence": false,
"statusSettings": {
"coreStatuses": [
{
"symbol": " ",
"name": "Todo",
"nextStatusSymbol": "x",
"availableAsCommand": true,
"type": "TODO"
},
{
"symbol": "x",
"name": "Done",
"nextStatusSymbol": " ",
"availableAsCommand": true,
"type": "DONE"
}
],
"customStatuses": [
{
"symbol": "/",
"name": "In Progress",
"nextStatusSymbol": "x",
"availableAsCommand": true,
"type": "IN_PROGRESS"
},
{
"symbol": "-",
"name": "Cancelled",
"nextStatusSymbol": " ",
"availableAsCommand": true,
"type": "CANCELLED"
},
{
"symbol": " ",
"name": "to-do",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "/",
"name": "incomplete",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "IN_PROGRESS"
},
{
"symbol": "x",
"name": "done",
"nextStatusSymbol": " ",
"availableAsCommand": false,
"type": "DONE"
},
{
"symbol": "-",
"name": "canceled",
"nextStatusSymbol": " ",
"availableAsCommand": false,
"type": "CANCELLED"
},
{
"symbol": ">",
"name": "forwarded",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "<",
"name": "scheduling",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "?",
"name": "question",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "!",
"name": "important",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "*",
"name": "star",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "\"",
"name": "quote",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "l",
"name": "location",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "b",
"name": "bookmark",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "i",
"name": "information",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "S",
"name": "savings",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "I",
"name": "idea",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "p",
"name": "pros",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "c",
"name": "cons",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "f",
"name": "fire",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "k",
"name": "key",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "w",
"name": "win",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "u",
"name": "up",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
},
{
"symbol": "d",
"name": "down",
"nextStatusSymbol": "x",
"availableAsCommand": false,
"type": "TODO"
}
]
},
"isShownInEditModal": {
"priority": true,
"recurrence": true,
"due": true,
"scheduled": true,
"start": true,
"before_this": true,
"after_this": true,
"status": true,
"created": true,
"done": true,
"cancelled": true
},
"features": {
"INTERNAL_TESTING_ENABLED_BY_DEFAULT": true
},
"generalSettings": {},
"headingOpened": {
"Core Statuses": false,
"Custom Statuses": false
},
"debugSettings": {
"ignoreSortInstructions": false,
"showTaskHiddenData": false,
"recordTimings": false
},
"loggingOptions": {
"minLevels": {
"": "info",
"tasks": "info",
"tasks.Cache": "info",
"tasks.Events": "info",
"tasks.File": "info",
"tasks.Query": "info",
"tasks.Task": "info"
}
}
}
+508
View File
@@ -0,0 +1,508 @@
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source visit the plugins github repository
*/
/*
License obsidian-tasks:
MIT License
Copyright (c) 2021 Clare Macrae, Ilyas Landikov and Martin Schenck
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.
*/
/*
License rrule (included library):
rrule.js: Library for working with recurrence rules for calendar dates.
=======================================================================
Copyright 2010, Jakub Roztocil <jakub@roztocil.name> and Lars Schöning
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. Neither the name of The author nor the names of its contributors may
be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 THE AUTHOR AND 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.
./rrule.js and ./test/tests.js is based on python-dateutil. LICENCE:
python-dateutil - Extensions to the standard Python datetime module.
====================================================================
Copyright (c) 2003-2011 - Gustavo Niemeyer <gustavo@niemeyer.net>
Copyright (c) 2012 - Tomi Pieviläinen <tomi.pievilainen@iki.fi>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* 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.
* Neither the name of the copyright holder nor the names of its
contributors may 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 THE COPYRIGHT OWNER 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.
*/
/*
License chrono-node (included library):
The MIT License
Copyright (c) 2014, Wanasit Tanakitrungruang
*/
/*
License flatpickr (included library):
The MIT License (MIT)
Copyright (c) 2017 Gregory Petrosyan
*/
/*
License @floating-ui/dom (included library):
MIT License
Copyright (c) 2021 Floating UI contributors
*/
/*
License boon-js (included library):
The MIT License (MIT)
Copyright (c) 2020-present Jake Chorley
*/
/*
License eventemitter2 (included library):
The MIT License (MIT)
Copyright (c) 2016 Paolo Fragomeni <http://www.github.com/0x00a> and Contributors
*/
/*
License i18next (included library):
The MIT License (MIT)
Copyright (c) 2025 i18next
*/
/*
License mustache (included library):
The MIT License
Copyright (c) 2009 Chris Wanstrath (Ruby)
Copyright (c) 2010-2014 Jan Lehnardt (JavaScript)
Copyright (c) 2010-2015 The mustache.js community
*/
/*
License mustache-validator (included library):
MIT License
Copyright (c) 2022 Elias Mangoro
*/
"use strict";var EO=Object.create;var vo=Object.defineProperty,OO=Object.defineProperties,xO=Object.getOwnPropertyDescriptor,RO=Object.getOwnPropertyDescriptors,CO=Object.getOwnPropertyNames,hu=Object.getOwnPropertySymbols,MO=Object.getPrototypeOf,kf=Object.prototype.hasOwnProperty,_b=Object.prototype.propertyIsEnumerable;var kb=(r,t,e)=>t in r?vo(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,U=(r,t)=>{for(var e in t||(t={}))kf.call(t,e)&&kb(r,e,t[e]);if(hu)for(var e of hu(t))_b.call(t,e)&&kb(r,e,t[e]);return r},pe=(r,t)=>OO(r,RO(t));var Zs=(r,t)=>{var e={};for(var n in r)kf.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&hu)for(var n of hu(r))t.indexOf(n)<0&&_b.call(r,n)&&(e[n]=r[n]);return e};var Q=(r,t)=>()=>(r&&(t=r(r=0)),t);var C=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),wb=(r,t)=>{for(var e in t)vo(r,e,{get:t[e],enumerable:!0})},Sb=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of CO(t))!kf.call(r,i)&&i!==e&&vo(r,i,{get:()=>t[i],enumerable:!(n=xO(t,i))||n.enumerable});return r};var ko=(r,t,e)=>(e=r!=null?EO(MO(r)):{},Sb(t||!r||!r.__esModule?vo(e,"default",{value:r,enumerable:!0}):e,r)),Db=r=>Sb(vo({},"__esModule",{value:!0}),r);var A=(r,t,e)=>new Promise((n,i)=>{var s=l=>{try{o(e.next(l))}catch(u){i(u)}},a=l=>{try{o(e.throw(l))}catch(u){i(u)}},o=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,a);o((e=e.apply(r,t)).next())});var _e,_o,Eb,AO,PO,Ob,xb,wo,Rb,NO,yu,IO,Fb,Js,FO,LO,wf,UO,YO,qO,Sf,bu,WO,ta,Ar,na,Tu,Lb,Cb,ra,vu,Mb,Ab,Df,Pb,_f,Ef,$O,ea,Of,jO,xf,Nb,Ib,gu,HO,os,_t,eW,tW,nW,rW,iW,sW,aW,oW,lW,uW,cW,dW,fW,pW,Ub=Q(()=>{_e=r=>typeof r=="string",_o=()=>{let r,t,e=new Promise((n,i)=>{r=n,t=i});return e.resolve=r,e.reject=t,e},Eb=r=>r==null?"":""+r,AO=(r,t,e)=>{r.forEach(n=>{t[n]&&(e[n]=t[n])})},PO=/###/g,Ob=r=>r&&r.indexOf("###")>-1?r.replace(PO,"."):r,xb=r=>!r||_e(r),wo=(r,t,e)=>{let n=_e(t)?t.split("."):t,i=0;for(;i<n.length-1;){if(xb(r))return{};let s=Ob(n[i]);!r[s]&&e&&(r[s]=new e),Object.prototype.hasOwnProperty.call(r,s)?r=r[s]:r={},++i}return xb(r)?{}:{obj:r,k:Ob(n[i])}},Rb=(r,t,e)=>{let{obj:n,k:i}=wo(r,t,Object);if(n!==void 0||t.length===1){n[i]=e;return}let s=t[t.length-1],a=t.slice(0,t.length-1),o=wo(r,a,Object);for(;o.obj===void 0&&a.length;)s=`${a[a.length-1]}.${s}`,a=a.slice(0,a.length-1),o=wo(r,a,Object),(o==null?void 0:o.obj)&&typeof o.obj[`${o.k}.${s}`]!="undefined"&&(o.obj=void 0);o.obj[`${o.k}.${s}`]=e},NO=(r,t,e,n)=>{let{obj:i,k:s}=wo(r,t,Object);i[s]=i[s]||[],i[s].push(e)},yu=(r,t)=>{let{obj:e,k:n}=wo(r,t);if(!!e&&!!Object.prototype.hasOwnProperty.call(e,n))return e[n]},IO=(r,t,e)=>{let n=yu(r,e);return n!==void 0?n:yu(t,e)},Fb=(r,t,e)=>{for(let n in t)n!=="__proto__"&&n!=="constructor"&&(n in r?_e(r[n])||r[n]instanceof String||_e(t[n])||t[n]instanceof String?e&&(r[n]=t[n]):Fb(r[n],t[n],e):r[n]=t[n]);return r},Js=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),FO={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},LO=r=>_e(r)?r.replace(/[&<>"'\/]/g,t=>FO[t]):r,wf=class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let e=this.regExpMap.get(t);if(e!==void 0)return e;let n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}},UO=[" ",",","?","!",";"],YO=new wf(20),qO=(r,t,e)=>{t=t||"",e=e||"";let n=UO.filter(a=>t.indexOf(a)<0&&e.indexOf(a)<0);if(n.length===0)return!0;let i=YO.getRegExp(`(${n.map(a=>a==="?"?"\\?":a).join("|")})`),s=!i.test(r);if(!s){let a=r.indexOf(e);a>0&&!i.test(r.substring(0,a))&&(s=!0)}return s},Sf=function(r,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!r)return;if(r[t])return Object.prototype.hasOwnProperty.call(r,t)?r[t]:void 0;let n=t.split(e),i=r;for(let s=0;s<n.length;){if(!i||typeof i!="object")return;let a,o="";for(let l=s;l<n.length;++l)if(l!==s&&(o+=e),o+=n[l],a=i[o],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<n.length-1)continue;s+=l-s+1;break}i=a}return i},bu=r=>r==null?void 0:r.replace("_","-"),WO={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,t){var e,n;(n=(e=console==null?void 0:console[r])==null?void 0:e.apply)==null||n.call(e,console,t)}},ta=class{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||WO,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}warn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}error(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}deprecate(){for(var t=arguments.length,e=new Array(t),n=0;n<t;Line truncated
path does not include _templates/
limit 300
show urgency`}},presets:{buttons:{addNewPreset:""},line1:"",line2:"",name:""},recurringTasks:{heading:"\u041F\u0435\u0440\u044B\u044F\u0434\u044B\u0447\u043D\u044B\u044F \u0437\u0430\u0434\u0430\u0447\u044B",nextLine:{description:"\u0423\u043A\u043B\u044E\u0447\u044D\u043D\u043D\u0435 \u0433\u044D\u0442\u0430\u0433\u0430 \u0437\u0440\u043E\u0431\u0456\u0446\u044C \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0430\u0435 \u043F\u0430\u045E\u0442\u0430\u0440\u044D\u043D\u043D\u0435 \u0437\u0430\u0434\u0430\u0447\u044B \u043D\u0430 \u0440\u0430\u0434\u043A\u0443 \u043D\u0456\u0436\u044D\u0439 \u0437\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u043D\u0443\u044E \u0437\u0430\u0434\u0430\u0447\u0443. \u0423 \u0430\u0434\u0432\u0430\u0440\u043E\u0442\u043D\u044B\u043C \u0432\u044B\u043F\u0430\u0434\u043A\u0443 \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0430\u0435 \u043F\u0430\u045E\u0442\u0430\u0440\u044D\u043D\u043D\u0435 \u0437'\u044F\u0432\u0456\u0446\u0446\u0430 \u043F\u0435\u0440\u0430\u0434 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u043D\u0430\u0439 \u0437\u0430\u0434\u0430\u0447\u0430\u0439.",name:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0430\u0435 \u043F\u0430\u045E\u0442\u0430\u0440\u044D\u043D\u043D\u0435 \u0437'\u044F\u045E\u043B\u044F\u0435\u0446\u0446\u0430 \u043D\u0430 \u0440\u0430\u0434\u043A\u0443 \u043D\u0456\u0436\u044D\u0439"},removeScheduledDate:{description:{line1:"",line2:""},name:""}},seeTheDocumentation:"\u0413\u043B\u044F\u0434\u0437\u0456\u0446\u0435 \u0434\u0430\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u044B\u044E",statuses:{collections:{anuppuccinTheme:"\u0422\u044D\u043C\u0430 AnuPpuccin",auraTheme:"\u0422\u044D\u043C\u0430 Aura",borderTheme:"\u0422\u044D\u043C\u0430 Border",buttons:{addCollection:{name:"{{themeName}}: \u0414\u0430\u0434\u0430\u0446\u044C {{numberOfStatuses}} \u043F\u0430\u0434\u0442\u0440\u044B\u043C\u043E\u045E\u0432\u0430\u043D\u044B\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u044B"}},ebullientworksTheme:"\u0422\u044D\u043C\u0430 Ebullientworks",itsThemeAndSlrvbCheckboxes:"\u0422\u044D\u043C\u0430 ITS \u0456 \u0441\u0446\u044F\u0436\u043A\u0456 SlRvb",lytModeTheme:"\u0422\u044D\u043C\u0430 LYT Mode (\u0442\u043E\u043B\u044C\u043A\u0456 \u0446\u0451\u043C\u043D\u044B \u0440\u044D\u0436\u044B\u043C)",minimalTheme:"\u041C\u0456\u043D\u0456\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u044D\u043C\u0430",thingsTheme:"\u0422\u044D\u043C\u0430 Things"},coreStatuses:{buttons:{checkStatuses:{name:"\u041F\u0440\u0430\u0433\u043B\u044F\u0434\u0437\u0435\u0446\u044C \u0456 \u043F\u0440\u0430\u0432\u0435\u0440\u044B\u0446\u044C \u0432\u0430\u0448\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u044B",tooltip:"\u0421\u0442\u0432\u0430\u0440\u044B\u0446\u044C \u043D\u043E\u0432\u044B \u0444\u0430\u0439\u043B \u0443 \u043A\u0430\u0440\u0430\u043D\u0451\u0432\u0430\u0439 \u0442\u044D\u0447\u0446\u044B \u0441\u0445\u043E\u0432\u0456\u0448\u0447\u0430, \u044F\u043A\u0456 \u0437\u043C\u044F\u0448\u0447\u0430\u0435 \u0434\u044B\u044F\u0433\u0440\u0430\u043C\u0443 Mermaid \u0437 \u0431\u044F\u0433\u0443\u0447\u044B\u043C\u0456 \u043D\u0430\u043B\u0430\u0434\u0430\u043C\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0443."}},description:{line1:"\u0413\u044D\u0442\u0430 \u0430\u0441\u043D\u043E\u045E\u043D\u044B\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u044B, \u044F\u043A\u0456\u044F Tasks \u043F\u0430\u0434\u0442\u0440\u044B\u043C\u043B\u0456\u0432\u0430\u0435 \u045E\u043B\u0430\u0441\u043D\u0430, \u0431\u0435\u0437 \u043F\u0430\u0442\u0440\u044D\u0431\u044B \u045E \u043A\u0430\u0440\u044B\u0441\u0442\u0430\u043B\u044C\u043D\u0456\u0446\u043A\u0456\u043C CSS-\u0441\u0442\u044B\u043B\u0456 \u0430\u0431\u043E \u0442\u044D\u043C\u0430\u0442\u044B\u0437\u0430\u0446\u044B\u0456.",line2:"\u0412\u044B \u043C\u043E\u0436\u0430\u0446\u0435 \u0440\u044D\u0434\u0430\u0433\u0430\u0432\u0430\u0446\u044C \u0456 \u0434\u0430\u0434\u0430\u0432\u0430\u0446\u044C \u0441\u0432\u0430\u0435 \u045E\u043B\u0430\u0441\u043D\u044B\u044F \u043A\u0430\u0440\u044B\u0441\u0442\u0430\u043B\u044C\u043D\u0456\u0446\u043A\u0456\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u044B \u045E \u0440\u0430\u0437\u0434\u0437\u0435\u043B\u0435 \u043D\u0456\u0436\u044D\u0439."},heading:"\u0410\u0441\u043D\u043E\u045E\u043D\u044B\u044F \u0441\u0442\u0430\u0442\u0443\u0441\u044B"},customStatuses:{buttons:{addAllUnknown:{name:"\u0414\u0430\u0434\u0430\u0446\u044C \u0443\u0441\u0435 \u043D\u0435\u0432\u044F\u0434\u043E\u043C\u044B\u044F \u0442\u044B\u043F\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u045E"},addNewStatus:{name:"\u0414\u0430\u0434\u0430\u0446\u044C \u043D\u043E\u0432\u044B \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0430\u0434\u0430\u0447\u044B"},resetCustomStatuses:{name:"\u0421\u043A\u0456\u043D\u0443\u0446\u044C \u043A\u0430\u0440\u044B\u0441\u0442\u0430\u043B\u044C\u043D\u0456\u0446\u043A\u0456\u044F \u0442\u044B\u043F\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u0430\u045E \u0434\u0430 \u0437\u043D\u0 Line truncated
path does not include _templates/
limit 300
show urgency`}},presets:{buttons:{addNewPreset:""},line1:"",line2:"",name:""},recurringTasks:{heading:"Wiederkehrende Aufgaben",nextLine:{description:"Aktivieren Sie dies, damit das n\xE4chste Auftreten einer Aufgabe in der Zeile unterhalb der abgeschlossenen Aufgabe erscheint. Ansonsten erscheint es vor der abgeschlossenen Aufgabe.",name:"N\xE4chste Wiederholung erscheint in Zeile darunter"},removeScheduledDate:{description:{line1:"Aktiviert, damit das n\xE4chste Auftreten einer Aufgabe keinen geplanten (\u23F3) Termin hat, wenn mindestens Start-(\u{1F6EB}) oder F\xE4lligkeitsdaten (\u{1F4C5}) vorhanden sind.",line2:"Dies gilt, wenn Sie m\xF6chten, dass Start- und F\xE4lligkeitsdaten beim n\xE4chsten Auftreten beibehalten werden, aber das geplante Datum sp\xE4ter festgelegt wird, sobald Sie planen, daran zu arbeiten."},name:"Geplantes Datum bei Wiederholung entfernen"}},seeTheDocumentation:"Vgl. die Dokumentation",statuses:{collections:{anuppuccinTheme:"AnuPpuccin Theme",auraTheme:"Aura Theme",borderTheme:"Border Theme",buttons:{addCollection:{name:"{{themeName}}: F\xFCge {{numberOfStatuses}} unterst\xFCtzte Status hinzu"}},ebullientworksTheme:"Ebullientworks Theme",itsThemeAndSlrvbCheckboxes:"ITS Theme & SlRvb Kontrollk\xE4stchen",lytModeTheme:"LYT Mode Theme (nur Dunkelmodus)",minimalTheme:"Minimal Theme",thingsTheme:"Things Theme"},coreStatuses:{buttons:{checkStatuses:{name:"\xDCberpr\xFCfen und einsehen Sie Ihre Status-Eintr\xE4ge",tooltip:"Erstellen Sie eine neue Datei im Hauptverzeichnis des Tresors, die ein Mermaid-Diagramm der aktuellen Statuseinstellungen enth\xE4lt."}},description:{line1:"Diese Kern-Status unterst\xFCtzt Tasks nativ ohne benutzerdefiniertes CSS-Styling oder Themes.",line2:"Hinzuf\xFCgen und Bearbeiten Ihrer eigenen benutzerdefinierten Status k\xF6nnen Sie im unteren Abschnitt."},heading:"Kern-Status"},customStatuses:{buttons:{addAllUnknown:{name:"Alle unbekannten Statustypen hinzuf\xFCgen"},addNewStatus:{name:"Neuen Aufgabenstatus hinzuf\xFCgen"},resetCustomStatuses:{name:"Benutzerdefinierte Statustypen auf Standard zur\xFCcksetzen"}},description:{line1:"Zuerst w\xE4hlen und installieren Sie ein CSS-Snippet oder Theme, um benutzerdefinierte Kontrollk\xE4stchen zu formatieren.",line2:"Verwenden Sie dann die untenstehenden Schaltfl\xE4chen, um Ihre benutzerdefinierten Status zu erstellen, sodass sie mit Ihren ausgew\xE4hlten CSS-Kontrollk\xE4stchen \xFCbereinstimmen.",line3:"Hinweis: Status mit dem gleichen Symbol wie ein fr\xFCherer Status ignorieren wir. Best\xE4tigen Sie die tats\xE4chlich geladenen Status, indem Sie den 'Aufgabe erstellen oder bearbeiten'-Befehl ausf\xFChren und das Status-Dropdown anschauen.",line4:"Nutzen Sie die Dokumentation, um loszulegen!"},heading:"Benutzerdefinierte Status"},heading:"Aufgabenstatus"}}}});var Hb,jb=Q(()=>{Hb={main:{loadingPlugin:"Loading plugin: {{name}} v{{version}}",unloadingPlugin:"Unloading plugin: {{name}} v{{version}}"},modals:{customStatusModal:{editAvailableAsCommand:{description:"If enabled this status will be available as a command so you can assign a hotkey and toggle the status using it.",name:"Available as command"},editNextStatusSymbol:{description:"When clicked on this is the symbol that should be used next.",name:"Task Next Status Symbol"},editStatusName:{description:"This is the friendly name of the task status.",name:"Task Status Name"},editStatusSymbol:{description:"This is the character between the square braces. (It can only be edited for Custom statuses, and not Core statuses.)",name:"Task Status Symbol"},editStatusType:{description:"Control how the status behaves for searching and toggling.",name:"Task Status Type"},fixErrorsBeforeSaving:"Fix errors before saving."}},reports:{statusRegistry:{about:{createdBy:"This file was created by the Obsidian Tasks plugin (version {{version}}) to help visualise the task statuses in this vault.",deleteFileAnyTime:"You can delete this file any time.",title:"About this file",updateReport:{line1:"If you change the Tasks status settings, you can get an updated report by:",line2:"Going to `Settings` -> `Tasks`.",line3:"Clicking on `Review and check your Statuses`."}},columnHeadings:{nextStatusSymbol:"Next Status Symbol",problems:"Problems (if any)",statusName:"Status Name",statusSymbol:"Status Symbol",statusType:"Status Type"},loadedSettings:{settingsActuallyUsed:"These are the settings actually used by Tasks.",switchToLivePreview:"Switch to Live Preview or Reading Mode to see the diagram.",title:"Loaded Settings"},messages:{cannotFindNextStatus:"Unexpected failure to find the next status.",duplicateSymbol:"Duplicate symbol '{{symbol}}': this status will be ignored.",emptySymbol:"Empty symbol: this status will be ignored.",nextSymbolUnknown:"Next symbol {{symbol}} is unknown: create a status with symbol {{symbol}}.",notConventionalType:"For information, the conventional type for status symbol {{symbol}} is {{type}}: you may wish to review this type.",wrongTypeAfterDone:{line1:"This Line truncated
path does not include _templates/
limit 300
show urgency`}},presets:{buttons:{addNewPreset:"Add new preset"},line1:"You can define named instructions here, that you can re-use in multiple queries. A preset called '{{name}}' can be used in Tasks queries with either '{{instruction1}}' or '{{instruction2}}'.",line2:"Any open Tasks queries are reloaded automatically when presets are edited.",name:"Presets"},recurringTasks:{heading:"Recurring tasks",nextLine:{description:"Enabling this will make the next recurrence of a task appear on the line below the completed task. Otherwise the next recurrence will appear before the completed one.",name:"Next recurrence appears on the line below"},removeScheduledDate:{description:{line1:"Enabling this will make the next recurrence of a task have no Scheduled (\u23F3) date, when at least one of Start (\u{1F6EB}) or Due (\u{1F4C5}) dates is present.",line2:"This is for when you want the Start and Due dates to carry forward to the next recurrence, but you will set the Scheduled date in future, once you plan to work on it."},name:"Remove scheduled date on recurrence"}},seeTheDocumentation:"See the documentation",statuses:{collections:{anuppuccinTheme:"AnuPpuccin Theme",auraTheme:"Aura Theme",borderTheme:"Border Theme",buttons:{addCollection:{name:"{{themeName}}: Add {{numberOfStatuses}} supported Statuses"}},ebullientworksTheme:"Ebullientworks Theme",itsThemeAndSlrvbCheckboxes:"ITS Theme & SlRvb Checkboxes",lytModeTheme:"LYT Mode Theme (Dark mode only)",minimalTheme:"Minimal Theme",thingsTheme:"Things Theme"},coreStatuses:{buttons:{checkStatuses:{name:"Review and check your Statuses",tooltip:"Create a new file in the root of the vault, containing a Mermaid diagram of the current status settings."}},description:{line1:"These are the core statuses that Tasks supports natively, with no need for custom CSS styling or theming.",line2:"You can add edit and add your own custom statuses in the section below."},heading:"Core Statuses"},customStatuses:{buttons:{addAllUnknown:{name:"Add All Unknown Status Types"},addNewStatus:{name:"Add New Task Status"},resetCustomStatuses:{name:"Reset Custom Status Types to Defaults"}},description:{line1:"You should first <b>select and install a CSS Snippet or Theme</b> to style custom checkboxes.",line2:"Then, use the buttons below to set up your custom statuses, to match your chosen CSS checkboxes.",line3:"<b>Note</b> Any statuses with the same symbol as any earlier statuses will be ignored. You can confirm the actually loaded statuses by running the 'Create or edit task' command and looking at the Status drop-down.",line4:"See the documentation to get started!"},heading:"Custom Statuses"},heading:"Task Statuses"}}}});var Bb,Gb=Q(()=>{Bb={main:{loadingPlugin:"\uD50C\uB7EC\uADF8\uC778 \uB85C\uB4DC \uC911: {{name}} v{{version}}",unloadingPlugin:"\uD50C\uB7EC\uADF8\uC778 \uC5B8\uB85C\uB4DC \uC911: {{name}} v{{version}}"},modals:{customStatusModal:{editAvailableAsCommand:{description:"\uD65C\uC131\uD654\uD558\uBA74 \uC774 \uC0C1\uD0DC\uB97C \uBA85\uB839\uC5B4(command)\uB85C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC5B4 \uB2E8\uCD95\uD0A4\uB97C \uC9C0\uC815\uD558\uACE0 \uC0C1\uD0DC\uB97C \uC804\uD658\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",name:"\uBA85\uB839\uC5B4\uB85C \uC0AC\uC6A9"},editNextStatusSymbol:{description:"\uD074\uB9AD \uC2DC \uB2E4\uC74C\uC5D0 \uC0AC\uC6A9\uD560 \uAE30\uD638\uC785\uB2C8\uB2E4.",name:"\uB2E4\uC74C \uC0C1\uD0DC \uAE30\uD638"},editStatusName:{description:"\uC791\uC5C5 \uC0C1\uD0DC\uB97C \uC54C\uC544\uBCF4\uAE30 \uC27D\uAC8C \uD45C\uD604\uD558\uB294 \uC774\uB984\uC785\uB2C8\uB2E4.",name:"\uC0C1\uD0DC \uC774\uB984"},editStatusSymbol:{description:"\uB300\uAD04\uD638 '[]' \uC0AC\uC774\uC5D0 \uB4E4\uC5B4\uAC00\uB294 \uBB38\uC790\uC785\uB2C8\uB2E4. (\uCF54\uC5B4 \uC0C1\uD0DC\uAC00 \uC544\uB2CC \uC0AC\uC6A9\uC790 \uC815\uC758 \uC0C1\uD0DC\uB9CC \uD3B8\uC9D1\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.)",name:"\uC0C1\uD0DC \uAE30\uD638"},editStatusType:{description:"\uAC80\uC0C9 \uBC0F \uC0C1\uD0DC \uC804\uD658 \uC2DC \uC5B4\uB5BB\uAC8C \uB3D9\uC791\uD560\uC9C0 \uC81C\uC5B4\uD569\uB2C8\uB2E4.",name:"\uC0C1\uD0DC \uC720\uD615"},fixErrorsBeforeSaving:"\uC800\uC7A5\uD558\uAE30 \uC804\uC5D0 \uC624\uB958\uB97C \uC218\uC815\uD558\uC138\uC694."}},reports:{statusRegistry:{about:{createdBy:"\uC774 \uD30C\uC77C\uC740 \uC774 \uBCF4\uAD00\uC18C(vault)\uC758 \uC791\uC5C5 \uC0C1\uD0DC\uB97C \uC2DC\uAC01\uD654\uD558\uB294 \uB370 \uB3C4\uC6C0\uC744 \uC8FC\uAE30 \uC704\uD574 Obsidian Tasks \uD50C\uB7EC\uADF8\uC778(\uBC84\uC804 {{version}})\uC774 \uC0DD\uC131\uD588\uC2B5\uB2C8\uB2E4.",deleteFileAnyTime:"\uC774 \uD30C\uC77C\uC740 \uC5B8\uC81C\uB4E0\uC9C0 \uC0AD\uC81C\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",title:"\uC774 \uD30C\uC77C\uC5D0 \uB300\uD558\uC5EC",updateReport:{line1:"Tasks \uC0C1\uD0DC \uC124\uC815\uC744 \uBCC0\uACBD\uD588\uB2E4\uBA74, \uB2E4\uC74C \uBC29\uBC95\uC73C\uB85C \uBCF4\uACE0\uC11C\uB97C \uC5C5\uB370\uC774\uD2B8\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4:",line2:"`\uC124\uC815(Settings)` \u219 Line truncated
path does not include _templates/
limit 300
show urgency`}},presets:{buttons:{addNewPreset:"\uC0C8 \uD504\uB9AC\uC14B \uCD94\uAC00"},line1:"\uC5EC\uAE30\uC11C \uC774\uB984 \uC788\uB294 \uC9C0\uCE68\uC744 \uC815\uC758\uD574 \uC5EC\uB7EC \uCFFC\uB9AC\uC5D0\uC11C \uC7AC\uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. '{{name}}' \uD504\uB9AC\uC14B\uC740 Tasks \uCFFC\uB9AC\uC5D0\uC11C '{{instruction1}}' \uB610\uB294 '{{instruction2}}'\uB85C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",line2:"\uD504\uB9AC\uC14B\uC744 \uC218\uC815\uD558\uBA74 \uC5F4\uB824 \uC788\uB294 \uBAA8\uB4E0 Tasks \uCFFC\uB9AC\uAC00 \uC790\uB3D9\uC73C\uB85C \uC0C8\uB85C\uACE0\uCE68\uB429\uB2C8\uB2E4.",name:"\uD504\uB9AC\uC14B"},recurringTasks:{heading:"\uBC18\uBCF5 \uC791\uC5C5",nextLine:{description:"\uD65C\uC131\uD654\uD558\uBA74 \uC644\uB8CC\uB41C \uC791\uC5C5\uC758 \uBC14\uB85C \uC544\uB798 \uC904\uC5D0 \uB2E4\uC74C \uBC18\uBCF5\uC774 \uB098\uD0C0\uB0A9\uB2C8\uB2E4. \uBE44\uD65C\uC131\uD654 \uC2DC \uB2E4\uC74C \uBC18\uBCF5\uC740 \uC644\uB8CC\uB41C \uC791\uC5C5 \uC55E\uC5D0 \uB098\uD0C0\uB0A9\uB2C8\uB2E4.",name:"\uB2E4\uC74C \uBC18\uBCF5\uC744 \uC544\uB798 \uC904\uC5D0 \uD45C\uC2DC"},removeScheduledDate:{description:{line1:"\uD65C\uC131\uD654\uD558\uBA74 \uC2DC\uC791\uC77C(\u{1F6EB})\uB610\uB294 \uB9C8\uAC10\uC77C(\u{1F4C5}) \uC911 \uD558\uB098\uB77C\uB3C4 \uC788\uC744 \uB54C, \uB2E4\uC74C \uBC18\uBCF5 \uC791\uC5C5\uC5D0\uB294 \uC608\uC815\uC77C(\u23F3)\uC744 \uC124\uC815\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",line2:"\uC2DC\uC791\uC77C\uACFC \uB9C8\uAC10\uC77C\uC740 \uB2E4\uC74C \uBC18\uBCF5\uC73C\uB85C \uB118\uAE30\uB418, \uC608\uC815\uC77C\uC740 \uCD94\uD6C4 \uC791\uC5C5 \uACC4\uD68D \uC2DC\uC810\uC5D0 \uC124\uC815\uD558\uB824\uB294 \uACBD\uC6B0\uC5D0 \uC720\uC6A9\uD569\uB2C8\uB2E4."},name:"\uBC18\uBCF5 \uC2DC \uC608\uC815\uC77C \uC81C\uAC70"}},seeTheDocumentation:"\uBB38\uC11C \uBCF4\uAE30",statuses:{collections:{anuppuccinTheme:"AnuPpuccin \uD14C\uB9C8",auraTheme:"Aura \uD14C\uB9C8",borderTheme:"Border \uD14C\uB9C8",buttons:{addCollection:{name:"{{themeName}}: \uC9C0\uC6D0\uB418\uB294 \uC0C1\uD0DC {{numberOfStatuses}}\uAC1C \uCD94\uAC00"}},ebullientworksTheme:"Ebullientworks \uD14C\uB9C8",itsThemeAndSlrvbCheckboxes:"ITS \uD14C\uB9C8 & SlRvb \uCCB4\uD06C\uBC15\uC2A4",lytModeTheme:"LYT Mode \uD14C\uB9C8 (\uB2E4\uD06C \uBAA8\uB4DC \uC804\uC6A9)",minimalTheme:"Minimal \uD14C\uB9C8",thingsTheme:"Things \uD14C\uB9C8"},coreStatuses:{buttons:{checkStatuses:{name:"\uC0C1\uD0DC \uAC80\uD1A0 \uBC0F \uD655\uC778",tooltip:"\uBCF4\uAD00\uC18C \uB8E8\uD2B8\uC5D0 \uD604\uC7AC \uC0C1\uD0DC \uC124\uC815\uC758 Mermaid \uB2E4\uC774\uC5B4\uADF8\uB7A8\uC744 \uD3EC\uD568\uD55C \uC0C8 \uD30C\uC77C\uC744 \uC0DD\uC131\uD569\uB2C8\uB2E4."}},description:{line1:"\uC774\uAC83\uB4E4\uC740 \uC0AC\uC6A9\uC790 \uC815\uC758 CSS\uB098 \uD14C\uB9C8 \uC5C6\uC774\uB3C4 Tasks\uAC00 \uC790\uCCB4\uC801\uC73C\uB85C \uC9C0\uC6D0\uD558\uB294 \uCF54\uC5B4 \uC0C1\uD0DC\uC785\uB2C8\uB2E4.",line2:"\uC544\uB798 \uC139\uC158\uC5D0\uC11C \uC0AC\uC6A9\uC790 \uC815\uC758 \uC0C1\uD0DC\uB97C \uC9C1\uC811 \uD3B8\uC9D1\uD558\uACE0 \uCD94\uAC00\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."},heading:"\uCF54\uC5B4 \uC0C1\uD0DC"},customStatuses:{buttons:{addAllUnknown:{name:"\uC54C \uC218 \uC5C6\uB294 \uBAA8\uB4E0 \uC0C1\uD0DC \uC720\uD615 \uCD94\uAC00"},addNewStatus:{name:"\uC0C8 \uC791\uC5C5 \uC0C1\uD0DC \uCD94\uAC00"},resetCustomStatuses:{name:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uC0C1\uD0DC\uB97C \uAE30\uBCF8\uAC12\uC73C\uB85C \uC7AC\uC124\uC815"}},description:{line1:"\uBA3C\uC800 <b>CSS \uC2A4\uB2C8\uD3AB \uB610\uB294 \uD14C\uB9C8\uB97C \uC124\uCE58\uD558\uC5EC \uC0AC\uC6A9\uC790 \uC815\uC758 \uCCB4\uD06C\uBC15\uC2A4\uC5D0 \uC2A4\uD0C0\uC77C\uC744 \uC801\uC6A9</b>\uD558\uC138\uC694.",line2:"\uADF8 \uB2E4\uC74C, \uC544\uB798 \uBC84\uD2BC\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC120\uD0DD\uD55C \uCCB4\uD06C\uBC15\uC2A4 \uC2A4\uD0C0\uC77C\uC5D0 \uB9DE\uCDB0 \uC0AC\uC6A9\uC790 \uC815\uC758 \uC0C1\uD0DC\uB97C \uC124\uC815\uD558\uC138\uC694.",line3:"<b>\uCC38\uACE0:</b> \uC774\uC804\uC5D0 \uC815\uC758\uB41C \uC0C1\uD0DC\uC640 \uAE30\uD638\uAC00 \uB3D9\uC77C\uD55C \uC0C1\uD0DC\uB294 \uBB34\uC2DC\uB429\uB2C8\uB2E4. '\uC791\uC5C5 \uC0DD\uC131/\uD3B8\uC9D1' \uBA85\uB839\uC5B4\uC758 \uC0C1\uD0DC \uB4DC\uB86D\uB2E4\uC6B4 \uBA54\uB274\uC5D0\uC11C \uC2E4\uC81C\uB85C \uB85C\uB4DC\uB41C \uC0C1\uD0DC\uB97C \uD655\uC778\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",line4:"\uC2DC\uC791\uD558\uB824\uBA74 \uBB38\uC11C\uB97C \uCC38\uACE0\uD558\uC138\uC694!"},heading:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uC0C1\uD0DC"},heading:"\uC791\uC5C5 \uC0C1\uD0DC"}}}});var zb,Vb=Q(()=>{zb={main:{loadingPlugin:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043F\u043B\u0430\u0433\u0438\u043D\u0430: {{name}} v{{version}}",unloadingPlugin:"\u0412\u044B\u0433\u0440\u0443\u0437\u043A\u0430 \u043F\u043B\u0430\u0433\u0438\u043D\u0430: {{name}} v{{version}}"},modals:{customStatusModal:{editAvailableAsCommand:{description:"\u0415\u0441\u043B\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\uLine truncated
path does not include _templates/
limit 300
show urgency`}},presets:{buttons:{addNewPreset:""},line1:"",line2:"",name:""},recurringTasks:{heading:"\u041F\u043E\u0432\u0442\u043E\u0440\u044F\u044E\u0449\u0438\u0435\u0441\u044F \u0437\u0430\u0434\u0430\u0447\u0438",nextLine:{description:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438 \u043F\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u043A \u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043D\u0430 \u0441\u0442\u0440\u043E\u043A\u0435 \u043D\u0438\u0436\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u043E\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u0412 \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u043E\u043C \u0441\u043B\u0443\u0447\u0430\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435 \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u0435\u0440\u0435\u0434 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u043E\u0439.",name:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435 \u043F\u043E\u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043D\u0430 \u0441\u0442\u0440\u043E\u043A\u0435 \u043D\u0438\u0436\u0435"},removeScheduledDate:{description:{line1:"",line2:""},name:""}},seeTheDocumentation:"\u0421\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u044E",statuses:{collections:{anuppuccinTheme:"\u0422\u0435\u043C\u0430 AnuPpuccin",auraTheme:"\u0422\u0435\u043C\u0430 Aura",borderTheme:"\u0422\u0435\u043C\u0430 Border",buttons:{addCollection:{name:"{{themeName}}: \u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C {{numberOfStatuses}} \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432"}},ebullientworksTheme:"\u0422\u0435\u043C\u0430 Ebullientworks",itsThemeAndSlrvbCheckboxes:"\u0422\u0435\u043C\u0430 ITS \u0438 \u0444\u043B\u0430\u0436\u043A\u0438 SlRvb",lytModeTheme:"\u0422\u0435\u043C\u0430 LYT Mode (\u0442\u043E\u043B\u044C\u043A\u043E \u0442\u0435\u043C\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C)",minimalTheme:"\u0422\u0435\u043C\u0430 Minimal",thingsTheme:"\u0422\u0435\u043C\u0430 Things"},coreStatuses:{buttons:{checkStatuses:{name:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0438 \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u0441\u0432\u043E\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u044B",tooltip:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u0444\u0430\u0439\u043B \u0432 \u043A\u043E\u0440\u043D\u0435 \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430, \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 Mermaid \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u0443 \u0442\u0435\u043A\u0443\u0449\u0438\u0445 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432."}},description:{line1:"\u042D\u0442\u043E \u043E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u044B, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 Tasks \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0438\u0437\u043D\u0430\u0447\u0430\u043B\u044C\u043D\u043E, \u0431\u0435\u0437 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0441\u0442\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0445 CSS \u0441\u0442\u0438\u043B\u0435\u0439 \u0438\u043B\u0438 \u0442\u0435\u043C.",line2:"\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438 \u0434\u043E\u0431\u0430\u0432\u043B\u044F\u0442\u044C \u0441\u0432\u043E\u0438 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u044B \u0432 \u0440\u0430\u0437\u0434\u0435\u043B\u0435 \u043D\u0438\u0436\u0435."},heading:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u044B"},customStatuses:{buttons:{addAllUnknown:{name:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432\u0441\u0435 \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0435 \u0442\u0438\u043F\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u043E\u0432"},addNewStatus:{name:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0430\u0434\u0430\u0447\u0438"},resetCustomStatuses:{name:"\u0421\u0431\u0440\u043E\u0441\u0438\uLine truncated
path does not include _templates/
limit 300
show urgency`}},presets:{buttons:{addNewPreset:""},line1:"",line2:"",name:""},recurringTasks:{heading:"\u041F\u043E\u0432\u0442\u043E\u0440\u044E\u0432\u0430\u043D\u0456 \u0437\u0430\u0434\u0430\u0447\u0456",nextLine:{description:"\u0423\u0432\u0456\u043C\u043A\u043D\u0435\u043D\u043D\u044F \u0446\u044C\u043E\u0433\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u0437\u043C\u0443\u0441\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u043D\u044F \u0437\u0430\u0434\u0430\u0447\u0456 \u0437\u2019\u044F\u0432\u043B\u044F\u0442\u0438\u0441\u044F \u043D\u0430 \u0440\u044F\u0434\u043A\u0443 \u043D\u0438\u0436\u0447\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E\u0457 \u0437\u0430\u0434\u0430\u0447\u0456. \u0406\u043D\u0430\u043A\u0448\u0435 \u043D\u0430\u0441\u0442\u0443\u043F\u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u043D\u044F \u0437\u2019\u044F\u0432\u0438\u0442\u044C\u0441\u044F \u043F\u0435\u0440\u0435\u0434 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E\u044E.",name:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u043D\u044F \u0437\u2019\u044F\u0432\u043B\u044F\u0454\u0442\u044C\u0441\u044F \u043D\u0430 \u0440\u044F\u0434\u043A\u0443 \u043D\u0438\u0436\u0447\u0435"},removeScheduledDate:{description:{line1:"",line2:""},name:""}},seeTheDocumentation:"\u041F\u0435\u0440\u0435\u0433\u043B\u044F\u043D\u0443\u0442\u0438 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0456\u044E",statuses:{collections:{anuppuccinTheme:"\u0422\u0435\u043C\u0430 AnuPpuccin",auraTheme:"\u0422\u0435\u043C\u0430 Aura",borderTheme:"\u0422\u0435\u043C\u0430 Border",buttons:{addCollection:{name:"{{themeName}}: \u0414\u043E\u0434\u0430\u0442\u0438 {{numberOfStatuses}} \u043F\u0456\u0434\u0442\u0440\u0438\u043C\u0443\u0432\u0430\u043D\u0438\u0445 \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432"}},ebullientworksTheme:"\u0422\u0435\u043C\u0430 Ebullientworks",itsThemeAndSlrvbCheckboxes:"\u0422\u0435\u043C\u0430 ITS \u0456 \u043F\u0440\u0430\u043F\u043E\u0440\u0446\u0456 SlRvb",lytModeTheme:"\u0422\u0435\u043C\u0430 LYT Mode (\u043B\u0438\u0448\u0435 \u0442\u0435\u043C\u043D\u0438\u0439 \u0440\u0435\u0436\u0438\u043C)",minimalTheme:"\u041C\u0456\u043D\u0456\u043C\u0430\u043B\u044C\u043D\u0430 \u0442\u0435\u043C\u0430",thingsTheme:"\u0422\u0435\u043C\u0430 Things"},coreStatuses:{buttons:{checkStatuses:{name:"\u041F\u0435\u0440\u0435\u0433\u043B\u044F\u043D\u0443\u0442\u0438 \u0442\u0430 \u043F\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0432\u0430\u0448\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0438",tooltip:"\u0421\u0442\u0432\u043E\u0440\u0456\u0442\u044C \u043D\u043E\u0432\u0438\u0439 \u0444\u0430\u0439\u043B \u0443 \u043A\u043E\u0440\u0435\u043D\u0456 \u0441\u0445\u043E\u0432\u0438\u0449\u0430, \u0449\u043E \u043C\u0456\u0441\u0442\u0438\u0442\u044C \u0434\u0456\u0430\u0433\u0440\u0430\u043C\u0443 Mermaid \u043F\u043E\u0442\u043E\u0447\u043D\u0438\u0445 \u043D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u043D\u044C \u0441\u0442\u0430\u0442\u0443\u0441\u0443."}},description:{line1:"\u0426\u0435 \u043E\u0441\u043D\u043E\u0432\u043D\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0438, \u044F\u043A\u0456 Tasks \u043F\u0456\u0434\u0442\u0440\u0438\u043C\u0443\u0454 \u043D\u0430\u0442\u0438\u0432\u043D\u043E, \u0431\u0435\u0437 \u043F\u043E\u0442\u0440\u0435\u0431\u0438 \u0432 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u043E\u043C\u0443 CSS-\u0441\u0442\u0438\u043B\u044E\u0432\u0430\u043D\u043D\u0456 \u0447\u0438 \u0442\u0435\u043C\u0430\u0445.",line2:"\u0412\u0438 \u043C\u043E\u0436\u0435\u0442\u0435 \u0434\u043E\u0434\u0430\u0432\u0430\u0442\u0438, \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u0442\u0430 \u0434\u043E\u0434\u0430\u0432\u0430\u0442\u0438 \u0432\u043B\u0430\u0441\u043D\u0456 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0438 \u0432 \u0440\u043E\u0437\u0434\u0456\u043B\u0456 \u043D\u0438\u0436\u0447\u0435."},heading:"\u041E\u0441\u043D\u043E\u0432\u043D\u0456 \u0441\u0442\u0430\u0442\u0443\u0441\u0438"},customStatuses:{buttons:{addAllUnknown:{name:"\u0414\u043E\u0434\u0430\u0442\u0438 \u0432\u0441\u0456 \u043D\u0435\u0432\u0456\u0434\u043E\u043C\u0456 \u0442\u0438\u043F\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432"},addNewStatus:{name:"\u0414\u043E\u0434\u0430\u0442\u0438 \u043D\u043E\u0432\u0438\u0439 \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0430\u0434\u0430\u0447\u0456"},resetCustomStatuses:{name:"\u0421\u043A\u0438\u043D\u0443\u0442\u0438 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u0442\u0438\u043F\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0456\u0432 \u0434\u043E \u0437\u043D\u0430\u0447\u0435\u043D\u044C \u0437\u0430 \u0437\u0430\u043C\u043E\u0432\u0447\u0443 Line truncated
path does not include _templates/
limit 300
show urgency`}},presets:{buttons:{addNewPreset:"Th\xEAm preset m\u1EDBi"},line1:"B\u1EA1n c\xF3 th\u1EC3 \u0111\u1ECBnh ngh\u0129a c\xE1c h\u01B0\u1EDBng d\u1EABn \u0111\u01B0\u1EE3c \u0111\u1EB7t t\xEAn \u1EDF \u0111\xE2y, m\xE0 b\u1EA1n c\xF3 th\u1EC3 s\u1EED d\u1EE5ng l\u1EA1i trong nhi\u1EC1u truy v\u1EA5n. M\u1ED9t preset c\xF3 t\xEAn '{{name}}' c\xF3 th\u1EC3 \u0111\u01B0\u1EE3c s\u1EED d\u1EE5ng trong truy v\u1EA5n Tasks v\u1EDBi '{{instruction1}}' ho\u1EB7c '{{instruction2}}'.",line2:"B\u1EA5t k\u1EF3 truy v\u1EA5n Tasks n\xE0o \u0111ang m\u1EDF s\u1EBD \u0111\u01B0\u1EE3c t\u1EA3i l\u1EA1i t\u1EF1 \u0111\u1ED9ng khi c\xE1c preset \u0111\u01B0\u1EE3c ch\u1EC9nh s\u1EEDa.",name:"Preset"},recurringTasks:{heading:"Nhi\u1EC7m v\u1EE5 \u0111\u1ECBnh k\u1EF3",nextLine:{description:"B\u1EADt t\xEDnh n\u0103ng n\xE0y s\u1EBD l\xE0m cho l\u1EA7n l\u1EB7p l\u1EA1i ti\u1EBFp theo c\u1EE7a nhi\u1EC7m v\u1EE5 xu\u1EA5t hi\u1EC7n tr\xEAn d\xF2ng b\xEAn d\u01B0\u1EDBi nhi\u1EC7m v\u1EE5 \u0111\xE3 ho\xE0n th\xE0nh. N\u1EBFu kh\xF4ng, l\u1EA7n l\u1EB7p l\u1EA1i ti\u1EBFp theo s\u1EBD xu\u1EA5t hi\u1EC7n tr\u01B0\u1EDBc l\u1EA7n \u0111\xE3 ho\xE0n th\xE0nh.",name:"L\u1EA7n l\u1EB7p l\u1EA1i ti\u1EBFp theo xu\u1EA5t hi\u1EC7n tr\xEAn d\xF2ng b\xEAn d\u01B0\u1EDBi"},removeScheduledDate:{description:{line1:"B\u1EADt t\xEDnh n\u0103ng n\xE0y s\u1EBD l\xE0m cho l\u1EA7n l\u1EB7p l\u1EA1i ti\u1EBFp theo c\u1EE7a nhi\u1EC7m v\u1EE5 kh\xF4ng c\xF3 ng\xE0y \u0110\xE3 l\xEAn l\u1ECBch (\u23F3), khi \xEDt nh\u1EA5t m\u1ED9t trong c\xE1c ng\xE0y B\u1EAFt \u0111\u1EA7u (\u{1F6EB}) ho\u1EB7c \u0110\u1EBFn h\u1EA1n (\u{1F4C5}) c\xF3 m\u1EB7t.",line2:"\u0110i\u1EC1u n\xE0y d\xE0nh cho khi b\u1EA1n mu\u1ED1n ng\xE0y B\u1EAFt \u0111\u1EA7u v\xE0 \u0110\u1EBFn h\u1EA1n \u0111\u01B0\u1EE3c chuy\u1EC3n ti\u1EBFp sang l\u1EA7n l\u1EB7p l\u1EA1i ti\u1EBFp theo, nh\u01B0ng b\u1EA1n s\u1EBD \u0111\u1EB7t ng\xE0y \u0110\xE3 l\xEAn l\u1ECBch trong t\u01B0\u01A1ng lai, m\u1ED9t khi b\u1EA1n d\u1EF1 \u0111\u1ECBnh l\xE0m vi\u1EC7c v\u1EDBi n\xF3."},name:"X\xF3a ng\xE0y \u0111\xE3 l\xEAn l\u1ECBch khi l\u1EB7p l\u1EA1i"}},seeTheDocumentation:"Xem t\xE0i li\u1EC7u",statuses:{collections:{anuppuccinTheme:"Theme AnuPpuccin",auraTheme:"Theme Aura",borderTheme:"Theme Border",buttons:{addCollection:{name:"{{themeName}}: Th\xEAm {{numberOfStatuses}} Tr\u1EA1ng th\xE1i \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3"}},ebullientworksTheme:"Theme Ebullientworks",itsThemeAndSlrvbCheckboxes:"Theme ITS & SlRvb Checkboxes",lytModeTheme:"Theme LYT Mode (Ch\u1EC9 ch\u1EBF \u0111\u1ED9 t\u1ED1i)",minimalTheme:"Theme Minimal",thingsTheme:"Theme Things"},coreStatuses:{buttons:{checkStatuses:{name:"Xem x\xE9t v\xE0 ki\u1EC3m tra Tr\u1EA1ng th\xE1i c\u1EE7a b\u1EA1n",tooltip:"T\u1EA1o file m\u1EDBi trong th\u01B0 m\u1EE5c g\u1ED1c c\u1EE7a vault, ch\u1EE9a s\u01A1 \u0111\u1ED3 Mermaid c\u1EE7a c\xE1c c\xE0i \u0111\u1EB7t tr\u1EA1ng th\xE1i hi\u1EC7n t\u1EA1i."}},description:{line1:"\u0110\xE2y l\xE0 c\xE1c tr\u1EA1ng th\xE1i c\u1ED1t l\xF5i m\xE0 Tasks h\u1ED7 tr\u1EE3 nguy\xEAn b\u1EA3n, kh\xF4ng c\u1EA7n CSS t\xF9y ch\u1EC9nh ho\u1EB7c theme.",line2:"B\u1EA1n c\xF3 th\u1EC3 th\xEAm ch\u1EC9nh s\u1EEDa v\xE0 th\xEAm c\xE1c tr\u1EA1ng th\xE1i t\xF9y ch\u1EC9nh c\u1EE7a ri\xEAng b\u1EA1n trong ph\u1EA7n b\xEAn d\u01B0\u1EDBi."},heading:"Tr\u1EA1ng th\xE1i c\u1ED1t l\xF5i"},customStatuses:{buttons:{addAllUnknown:{name:"Th\xEAm t\u1EA5t c\u1EA3 lo\u1EA1i tr\u1EA1ng th\xE1i kh\xF4ng x\xE1c \u0111\u1ECBnh"},addNewStatus:{name:"Th\xEAm tr\u1EA1ng th\xE1i nhi\u1EC7m v\u1EE5 m\u1EDBi"},resetCustomStatuses:{name:"\u0110\u1EB7t l\u1EA1i lo\u1EA1i tr\u1EA1ng th\xE1i t\xF9y ch\u1EC9nh v\u1EC1 m\u1EB7c \u0111\u1ECBnh"}},description:{line1:"Tr\u01B0\u1EDBc ti\xEAn, b\u1EA1n n\xEAn <b>ch\u1ECDn v\xE0 c\xE0i \u0111\u1EB7t CSS Snippet ho\u1EB7c Theme</b> \u0111\u1EC3 t\u1EA1o ki\u1EC3u cho c\xE1c \xF4 \u0111\xE1nh d\u1EA5u t\xF9y ch\u1EC9nh.",line2:"Sau \u0111\xF3, s\u1EED d\u1EE5ng c\xE1c n\xFAt b\xEAn d\u01B0\u1EDBi \u0111\u1EC3 thi\u1EBFt l\u1EADp tr\u1EA1ng th\xE1i t\xF9y ch\u1EC9nh c\u1EE7a b\u1EA1n, \u0111\u1EC3 kh\u1EDBp v\u1EDBi c\xE1c \xF4 \u0111\xE1nh d\u1EA5u CSS b\u1EA1n \u0111\xE3 ch\u1ECDn.",line3:"<b>L\u01B0u \xFD</b> B\u1EA5t k\u1EF3 tr\u1EA1ng th\xE1i n\xE0o c\xF3 c\xF9ng k\xFD hi\u1EC7u v\u1EDBi b\u1EA5t k\u1EF3 tr\u1EA1ng th\xE1i tr\u01B0\u1EDBc \u0111\xF3 n\xE0o s\u1EBD b\u1ECB b\u1ECF qua. B\u1EA1n c\xF3 th\u1EC3 x\xE1c nh\u1EADn c\xE1c tr\u1EA1ng th\xE1i th\u1EF1c s\u1EF1 \u0111\u01B0\u1EE3c t\u1EA3i b\u1EB1ng c\xE1ch ch\u1EA1y l\u1EC7nh 'T\u1EA1o ho\u1EB7c ch\u1EC9nh s\u1EEDa nhi\u1EC7m v\u1EE5' v\xE0 xem menu th\u1EA3 xu\u1ED1ng Tr\u1EA1ng th\xE1i.",line4:"Xem t\xE0i li\u1EC7u \u0111\u1EC3 b\u1EAFt \u0111\u1EA7u!"},heading:"Tr\u1EA1ng th\xE1i t\xF9y ch\u1EC9nh"},heading:"Tr\u1EA1ng th\xE1i nhi\u1EC7m v\u1EE5"}}}});var eT,Jb=Q(()=>{eT={main:{loadingPlugin:"\u52A0\u8F7D\u63D2\u4EF6: {{name}} v{{version}}",unloadingPlugin:"\u5378\u8F7D\u63D2\u4EF6: {{name}} v{{version}}" Line truncated
path does not include _templates/
limit 300
show urgency`}},presets:{buttons:{addNewPreset:""},line1:"\u60A8\u53EF\u4EE5\u5728\u8FD9\u91CC\u5B9A\u4E49\u547D\u540D\u6307\u4EE4\uFF0C\u53EF\u4EE5\u5728\u591A\u4E2A\u67E5\u8BE2\u4E2D\u91CD\u590D\u4F7F\u7528\u3002\u4E00\u4E2A\u540D\u4E3A '{{name}}' \u7684\u9884\u8BBE\u53EF\u4EE5\u5728\u4EFB\u52A1\u67E5\u8BE2\u4E2D\u4F7F\u7528 '{{instruction1}}' \u6216 '{{instruction2}}'\u3002",line2:"\u4EFB\u4F55\u6253\u5F00\u7684\u4EFB\u52A1\u67E5\u8BE2\u5728\u9884\u8BBE\u88AB\u7F16\u8F91\u65F6\u90FD\u4F1A\u81EA\u52A8\u91CD\u65B0\u52A0\u8F7D\u3002",name:"\u9884\u8BBE"},recurringTasks:{heading:"\u91CD\u590D\u6027\u4EFB\u52A1",nextLine:{description:"\u542F\u7528\u6B64\u529F\u80FD\u540E\uFF0C\u4EFB\u52A1\u7684\u4E0B\u4E00\u6B21\u91CD\u590D\u5C06\u663E\u793A\u5728\u5DF2\u5B8C\u6210\u4EFB\u52A1\u7684\u4E0B\u4E00\u884C\u3002\u82E5\u5173\u95ED\u6B64\u529F\u80FD\uFF0C\u5219\u4E0B\u4E00\u6B21\u91CD\u590D\u5C06\u51FA\u73B0\u5728\u5DF2\u5B8C\u6210\u4EFB\u52A1\u7684\u4E0A\u4E00\u884C\u3002",name:"\u628A\u4EFB\u52A1\u7684\u4E0B\u4E00\u6B21\u91CD\u590D\u653E\u5728\u4E0B\u4E00\u884C"},removeScheduledDate:{description:{line1:"\u5F00\u542F\u6B64\u9009\u9879\u540E\uFF0C\u5F53\u4EFB\u52A1\u81F3\u5C11\u8BBE\u7F6E\u4E86\u5F00\u59CB\u65E5\u671F(\u{1F6EB})\u6216\u8BA1\u5212\u65E5\u671F(\u{1F4C5})\u4E2D\u7684\u4E00\u4E2A\u65F6\uFF0C\u8BE5\u4EFB\u52A1\u7684\u4E0B\u4E00\u6B21\u91CD\u590D\u5468\u671F\u5C06\u4E0D\u518D\u5305\u542B\u8BA1\u5212\u65E5\u671F(\u23F3)\u3002",line2:"\u6B64\u529F\u80FD\u9002\u7528\u4E8E\u4F60\u5E0C\u671B\u5C06\u5F00\u59CB\u548C\u622A\u6B62\u65E5\u671F\u5EF6\u7EED\u5230\u4E0B\u4E00\u4E2A\u5468\u671F\uFF0C\u4F46\u8BA1\u5212\u65E5\u671F\u6682\u4E0D\u8BBE\u7F6E\uFF0C\u7B49\u5B9E\u9645\u5F00\u59CB\u5904\u7406\u65F6\u518D\u786E\u5B9A\u7684\u60C5\u51B5\u3002"},name:"\u5728\u91CD\u590D\u6027\u4EFB\u52A1\u4E2D\u79FB\u9664\u8BA1\u5212\u65E5\u671F"}},seeTheDocumentation:"\u53C2\u9605\u6587\u6863",statuses:{collections:{anuppuccinTheme:"AnuPpuccin \u4E3B\u9898",auraTheme:"Aura \u4E3B\u9898",borderTheme:"Border \u4E3B\u9898",buttons:{addCollection:{name:"{{themeName}}: \u6DFB\u52A0 {{numberOfStatuses}} \u79CD\u652F\u6301\u72B6\u6001"}},ebullientworksTheme:"Ebullientworks \u4E3B\u9898",itsThemeAndSlrvbCheckboxes:"ITS \u4E3B\u9898\u548C SlRvb \u590D\u9009\u6846",lytModeTheme:"LYT Mode \u4E3B\u9898 (\u4EC5\u6DF1\u8272\u6A21\u5F0F)",minimalTheme:"Minimal \u4E3B\u9898",thingsTheme:"Things \u4E3B\u9898"},coreStatuses:{buttons:{checkStatuses:{name:"\u67E5\u770B\u5E76\u68C0\u67E5\u60A8\u7684\u72B6\u6001",tooltip:"\u5728\u5E93\u7684\u6839\u76EE\u5F55\u4E0B\u521B\u5EFA\u4E00\u4E2A\u65B0\u6587\u4EF6,\u5305\u542B\u5F53\u524D\u72B6\u6001\u8BBE\u7F6E\u7684 Mermaid \u56FE\u8868."}},description:{line1:"\u8FD9\u4E9B\u662F Tasks \u539F\u751F\u652F\u6301\u7684\u6838\u5FC3\u72B6\u6001\uFF0C\u4E0D\u9700\u8981\u81EA\u5B9A\u4E49CSS\u6837\u5F0F\u6216\u4E3B\u9898\u3002",line2:"\u60A8\u53EF\u4EE5\u5728\u4E0B\u9762\u7F16\u8F91\u548C\u6DFB\u52A0\u81EA\u5B9A\u4E49\u72B6\u6001\u3002"},heading:"\u6838\u5FC3\u72B6\u6001"},customStatuses:{buttons:{addAllUnknown:{name:"\u6DFB\u52A0\u6240\u6709\u672A\u77E5\u72B6\u6001\u7C7B\u578B"},addNewStatus:{name:"\u6DFB\u52A0\u65B0\u4EFB\u52A1\u72B6\u6001"},resetCustomStatuses:{name:"\u91CD\u7F6E\u81EA\u5B9A\u4E49\u72B6\u6001\u7C7B\u578B\u4E3A\u9ED8\u8BA4\u503C"}},description:{line1:"\u60A8\u5E94\u8BE5\u9996\u5148<b>\u9009\u62E9\u5E76\u5B89\u88C5 CSS\u4EE3\u7801\u6BB5\u6216\u4E3B\u9898<b>\u4EE5\u8BBE\u7F6E\u81EA\u5B9A\u4E49\u590D\u9009\u6846\u7684\u6837\u5F0F",line2:"\u7136\u540E\uFF0C\u4F7F\u7528\u4E0B\u9762\u7684\u6309\u94AE\u8BBE\u7F6E\u60A8\u7684\u81EA\u5B9A\u4E49\u72B6\u6001,\u4EE5\u5339\u914D\u60A8\u9009\u62E9\u7684CSS\u590D\u9009\u6846.",line3:"<b>\u6CE8\u610F</b>\u4EFB\u4F55\u4E0E\u66F4\u65E9\u7684\u72B6\u6001\u5177\u6709\u76F8\u540C\u7B26\u53F7\u7684\u72B6\u6001\u90FD\u5C06\u88AB\u5FFD\u7565.\u60A8\u53EF\u4EE5\u901A\u8FC7\u8FD0\u884C\u201CCreate or edit task\u201D\u547D\u4EE4\u5E76\u67E5\u770B\u201CStatus\u201D\u4E0B\u62C9\u5217\u8868\u6765\u786E\u8BA4\u5B9E\u9645\u52A0\u8F7D\u7684\u72B6\u6001\u3002",line4:"\u53C2\u9605\u6587\u6863\uFF01"},heading:"\u81EA\u5B9A\u4E49\u72B6\u6001"},heading:"\u4EFB\u52A1\u72B6\u6001"}}}});var Rf,JO,tT,M,Ni=Q(()=>{"use strict";Ub();Yb();Wb();jb();Gb();Vb();Kb();Xb();Jb();Rf=!1,JO=()=>{let r=localStorage.getItem("language"),t=(r==null?void 0:r.toLowerCase())||"en";return console.log(`Language in Obsidian settings: '${t}'; requesting Tasks in '${t}'.`),t},tT=()=>A(void 0,null,function*(){Rf||(yield _t.init({lng:JO(),fallbackLng:"en",returnEmptyString:!1,resources:{be:{translation:qb},de:{translation:$b},en:{translation:Hb},ko:{translation:Bb},ru:{translation:zb},uk:{translation:Qb},vi:{translation:Zb},zh:{translation:eT}},interpolation:{escapeValue:!1}}),Rf=!0)}),M=new Proxy(_t,{get(r,t){if(!Rf&&t==="t")throw new Error("i18n.t() called before initialization. Call initializeI18n() first.");return Reflect.get(r,t)}})});var rT,pr,Mf=Q(()=>{"use strict";rT=(r,t)=>null,pr=class{constructor(){this.ge Line truncated
`).map(N2).filter(function(e){return e!==null});return Lt(Lt({},t[0]),t[1])}function Cl(r){var t={},e=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(r);if(!e)return t;var n=e[1],i=e[2];return n&&(t.tzid=n),t.dtstart=El(i),t}function N2(r){if(r=r.replace(/^\s+|\s+$/,""),!r.length)return null;var t=/^([A-Z]+?)[:;]/.exec(r.toUpperCase());if(!t)return Jw(r);var e=t[1];switch(e.toUpperCase()){case"RRULE":case"EXRULE":return Jw(r);case"DTSTART":return Cl(r);default:throw new Error("Unsupported RFC prop ".concat(e," in ").concat(r))}}function Jw(r){var t=r.replace(/^RRULE:/i,""),e=Cl(t),n=r.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return n.forEach(function(i){var s=i.split("="),a=s[0],o=s[1];switch(a.toUpperCase()){case"FREQ":e.freq=Ae[o.toUpperCase()];break;case"WKST":e.wkst=ir[o.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var l=I2(o),u=a.toLowerCase();e[u]=l;break;case"BYWEEKDAY":case"BYDAY":e.byweekday=F2(o);break;case"DTSTART":case"TZID":var c=Cl(r);e.tzid=c.tzid,e.dtstart=c.dtstart;break;case"UNTIL":e.until=El(o);break;case"BYEASTER":e.byeaster=Number(o);break;default:throw new Error("Unknown RRULE property '"+a+"'")}}),e}function I2(r){if(r.indexOf(",")!==-1){var t=r.split(",");return t.map(eS)}return eS(r)}function eS(r){return/^[+-]?\d+$/.test(r)?Number(r):r}function F2(r){var t=r.split(",");return t.map(function(e){if(e.length===2)return ir[e];var n=e.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!n||n.length<3)throw new SyntaxError("Invalid weekday string: ".concat(e));var i=Number(n[1]),s=n[2],a=ir[s].weekday;return new ht(a,i)})}var Ng=Q(()=>{Yr();gi();ks();Gt();rr()});var Ds,Dc=Q(()=>{Gt();Ds=function(){function r(t,e){if(isNaN(t.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=t,this.tzid=e}return Object.defineProperty(r.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:!1,configurable:!0}),r.prototype.toString=function(){var t=_a(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(t):";TZID=".concat(this.tzid,":").concat(t)},r.prototype.getTime=function(){return this.date.getTime()},r.prototype.rezonedDate=function(){return this.isUTC?this.date:Yw(this.date,this.tzid)},r}()});function Al(r){for(var t=[],e="",n=Object.keys(r),i=Object.keys(Rl),s=0;s<n.length;s++)if(n[s]!=="tzid"&&!!qe(i,n[s])){var a=n[s].toUpperCase(),o=r[n[s]],l="";if(!(!rt(o)||Ft(o)&&!o.length)){switch(a){case"FREQ":l=oe.FREQUENCIES[r.freq];break;case"WKST":Pn(o)?l=new ht(o).toString():l=o.toString();break;case"BYWEEKDAY":a="BYDAY",l=Nw(o).map(function(p){return p instanceof ht?p:Ft(p)?new ht(p[0],p[1]):new ht(p)}).toString();break;case"DTSTART":e=L2(o,r.tzid);break;case"UNTIL":l=_a(o,!r.tzid);break;default:if(Ft(o)){for(var u=[],c=0;c<o.length;c++)u[c]=String(o[c]);l=u.toString()}else l=String(o)}l&&t.push([a,l])}}var d=t.map(function(p){var g=p[0],b=p[1];return"".concat(g,"=").concat(b.toString())}).join(";"),f="";return d!==""&&(f="RRULE:".concat(d)),[e,f].filter(function(p){return!!p}).join(`
`)}function L2(r,t){return r?"DTSTART"+new Ds(new Date(r),t).toString():""}var Ig=Q(()=>{rr();ln();ks();Gt();Dc()});function U2(r,t){return Array.isArray(r)?!Array.isArray(t)||r.length!==t.length?!1:r.every(function(e,n){return e.getTime()===t[n].getTime()}):r instanceof Date?t instanceof Date&&r.getTime()===t.getTime():r===t}var tS,nS=Q(()=>{_c();Gt();ln();tS=function(){function r(){this.all=!1,this.before=[],this.after=[],this.between=[]}return r.prototype._cacheAdd=function(t,e,n){e&&(e=e instanceof Date?kc(e):Rg(e)),t==="all"?this.all=e:(n._value=e,this[t].push(n))},r.prototype._cacheGet=function(t,e){var n=!1,i=e?Object.keys(e):[],s=function(c){for(var d=0;d<i.length;d++){var f=i[d];if(!U2(e[f],c[f]))return!0}return!1},a=this[t];if(t==="all")n=this.all;else if(Ft(a))for(var o=0;o<a.length;o++){var l=a[o];if(!(i.length&&s(l))){n=l._value;break}}if(!n&&this.all){for(var u=new hi(t,e),o=0;o<this.all.length&&u.accept(this.all[o]);o++);n=u.getValue(),this._cacheAdd(t,n,e)}return Ft(n)?Rg(n):n instanceof Date?kc(n):n},r}()});var rS,iS,Y2,q2,$i,Bt,sS,aS,W2,$2,ji,Vt,oS,lS,uS,cS,Fg,dS=Q(()=>{Yr();ln();rS=X(X(X(X(X(X(X(X(X(X(X(X(X([],Le(1,31),!0),Le(2,28),!0),Le(3,31),!0),Le(4,30),!0),Le(5,31),!0),Le(6,30),!0),Le(7,31),!0),Le(8,31),!0),Le(9,30),!0),Le(10,31),!0),Le(11,30),!0),Le(12,31),!0),Le(1,7),!0),iS=X(X(X(X(X(X(X(X(X(X(X(X(X([],Le(1,31),!0),Le(2,29),!0),Le(3,31),!0),Le(4,30),!0),Le(5,31),!0),Le(6,30),!0),Le(7,31),!0),Le(8,31),!0),Le(9,30),!0),Le(10,31),!0),Le(11,30),!0),Le(12,31),!0),Le(1,7),!0),Y2=nr(1,29),q2=nr(1,30),$i=nr(1,31),Bt=nr(1,32),sS=X(X(X(X(X(X(X(X(X(X(X(X(X([],Bt,!0),q2,!0),Bt,!0),$i,!0),Bt,!0),$i,!0),Bt,!0),Bt,!0),$i,!0),Bt,!0),$i,!0),Bt,!0),Bt.slice(0,7),!0),aS=X(X(X(X(X(X(X(X(X(X(X(X(X([],Bt,!0),Y2,!0),Bt,!0),$i,!0),Bt,!0),$i,!0),Bt,!0),Bt,!0),$i,!0),Bt,!0),$i,!0),Bt,!0),Bt.slice(0,7),!0),W2=nr(-28,0),$2=nr(-29,0),ji=nr(-30,0),Vt=nr(-31,0),oS=X(X(X(X(X(X(X(X(X(X(X(X(X([],Vt,!0),$2,!0),Vt,!0),ji,!0),Vt,!0),ji,!0),Vt,!0),Vt,!0),ji,!0),Vt,!0),ji,!0),Vt,!0),Vt.slice(0,7),!0),lS=X(X(X(X(X(X(X(X(X(X(X(X(X([],Vt,!0),W2,!0),Vt,!0),ji,!0),Vt,!0),ji,!0),Vt,!0),Vt,!0),ji,!0),Vt,!0),ji,!0),Vt,!0),Vt.slice(0,7),!0),uS=[0,31,60,91,121,152,182,213,244,274,305,335,366],cS=[0,31,59,90,120,151,181,212,243,273,304,334,365],Fg=function(){for(var r=[],t=0;t<55;t++)r=r.concat(nr(7));return r}()});function fS(r,t){var e=Ur(r,1,1),n=ka(r)?366:365,i=ka(r+1)?366:365,s=Dl(e),a=pi(e),o=Lt(Lt({yearlen:n,nextyearlen:i,yearordinal:s,yearweekday:a},j2(r)),{wnomask:null});if(Nn(t.byweekno))return o;o.wnomask=Le(0,n+7);var l,u,c=l=Ht(7-a+t.wkst,7);c>=4?(c=0,u=o.yearlen+Ht(a-t.wkst,7)):u=n-c;for(var d=Math.floor(u/7),f=Ht(u,7),p=Math.floor(d+f/4),g=0;g<t.byweekno.length;g++){var b=t.byweekno[g];if(b<0&&(b+=p+1),b>0&&b<=p){var v=void 0;b>1?(v=c+(b-1)*7,c!==l&&(v-=7-l)):v=c;for(var E=0;E<7&&(o.wnomask[v]=1,v++,o.wdaymask[v]!==t.wkst);E++);}}if(qe(t.byweekno,1)){var v=c+p*7;if(c!==l&&(v-=7-l),v<n)for(var g=0;g<7&&(o.wnomask[v]=1,v+=1,o.wdaymask[v]!==t.wkst);g++);}if(c){var x=void 0;if(qe(t.byweekno,-1))x=-1;else{var O=pi(Ur(r-1,1,1)),q=Ht(7-O.valueOf()+t.wkst,7),V=ka(r-1)?366:365,Z=void 0;q>=4?(q=0,Z=V+Ht(O-t.wkst,7)):Z=n-c,x=Math.floor(52+Ht(Z,7)/4)}if(qe(t.byweekno,x))for(var v=0;v<c;v++)o.wnomask[v]=1}return o}function j2(r){var t=ka(r)?366:365,e=Ur(r,1,1),n=pi(e);return t===365?{mmask:rS,mdaymask:aS,nmdaymask:lS,wdaymask:Fg.slice(n),mrange:cS}:{mmask:iS,mdaymask:sS,nmdaymask:oS,wdaymask:Fg.slice(n),mrange:uS}}var pS=Q(()=>{Yr();Gt();ln();dS()});function mS(r,t,e,n,i,s){var a={lastyear:r,lastmonth:t,nwdaymask:[]},o=[];if(s.freq===oe.YEARLY)if(Nn(s.bymonth))o=[[0,e]];else for(var l=0;l<s.bymonth.length;l++)t=s.bymonth[l],o.push(n.slice(t-1,t+1));else s.freq===oe.MONTHLY&&(o=[n.slice(t-1,t+1)]);if(Nn(o))return a;a.nwdaymask=Le(0,e);for(var l=0;l<o.length;l++)for(var u=o[l],c=u[0],d=u[1]-1,f=0;f<s.bynweekday.length;f++){var p=void 0,g=s.bynweekday[f],b=g[0],v=g[1];v<0?(p=d+(v+1)*7,p-=Ht(i[p]-b,7)):(p=c+(v-1)*7,p+=Ht(7-i[p]+b,7)),c<=p&&p<=d&&(a.nwdaymask[p]=1)}return a}var hS=Q(()=>{rr();ln()});function gS(r,t){t===void 0&&(t=0);var e=r%19,n=Math.floor(r/100),i=r%100,s=Math.floor(n/4),a=n%4,o=Math.floor((n+8)/25),l=Math.floor((n-o+1)/3),u=Math.floor(19*e+n-s-l+15)%30,c=Math.floor(i/4),d=i%4,f=Math.floor(32+2*a+2*c-u-d)%7,p=Math.floor((e+11*u+22*f)/451),g=Math.floor((u+f-7*p+114)/31),b=(u+f-7*p+114)%31+1,v=Date.UTC(r,g-1,b+t),E=Date.UTC(r,0,1);return[Math.ceil((v-E)/(1e3*60*60*24))]}var yS=Q(()=>{});var H2,bS,TS=Q(()=>{ln();gi();pS();hS();yS();Sc();Gt();H2=function(){function r(t){this.options=t}return r.prototype.rebuild=function(t,e){var n=this.options;if(t!==this.lastyear&&(this.yearinfo=fS(t,n)),ct(n.bynweekday)&&(e!==this.lastmonth||t!==this.lastyear)){var i=this.yearinfo,s=i.yearlen,a=i.mrange,o=i.wdaymask;this.monthinfo=mS(t,e,s,a,o,n)}rt(n.byeaster)&&(this.eastermask=gS(t,n.byeaster))},Object.defineProperty(r.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurab Line truncated
`),n=0;n<e.length;){var i=e[n]=e[n].replace(/\s+$/g,"");i?n>0&&i[0]===" "?(e[n-1]+=i.slice(1),e.splice(n,1)):n+=1:e.splice(n,1)}return e}function eU(r){r.forEach(function(t){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(t))throw new Error("unsupported RDATE/EXDATE parm: "+t)})}function ES(r,t){return eU(t),r.split(",").map(function(e){return El(e)})}var DS,Yg=Q(()=>{Yr();rr();Wg();Gt();ln();Ng();DS={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null}});function OS(r){var t=this;return function(e){if(e!==void 0&&(t["_".concat(r)]=e),t["_".concat(r)]!==void 0)return t["_".concat(r)];for(var n=0;n<t._rrule.length;n++){var i=t._rrule[n].origOptions[r];if(i)return i}}}function xS(r,t){if(!(r instanceof oe))throw new TypeError(String(r)+" is not RRule instance");qe(t.map(String),String(r))||t.push(r)}function RS(r,t){if(!(r instanceof Date))throw new TypeError(String(r)+" is not Date instance");qe(t.map(Number),Number(r))||(t.push(r),mi(t))}function CS(r,t,e){var n=!e||e.toUpperCase()==="UTC",i=n?"".concat(r,":"):"".concat(r,";TZID=").concat(e,":"),s=t.map(function(a){return _a(a.valueOf(),n)}).join(",");return"".concat(i).concat(s)}var qg,Wg=Q(()=>{Yr();rr();Gt();ln();SS();Yg();Ig();qg=function(r){wa(t,r);function t(e){e===void 0&&(e=!1);var n=r.call(this,{},e)||this;return n.dtstart=OS.apply(n,["dtstart"]),n.tzid=OS.apply(n,["tzid"]),n._rrule=[],n._rdate=[],n._exrule=[],n._exdate=[],n}return t.prototype._iter=function(e){return wS(e,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(e){xS(e,this._rrule)},t.prototype.exrule=function(e){xS(e,this._exrule)},t.prototype.rdate=function(e){RS(e,this._rdate)},t.prototype.exdate=function(e){RS(e,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(e){return Oc(e.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(e){return Oc(e.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(e){return new Date(e.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(e){return new Date(e.getTime())})},t.prototype.valueOf=function(){var e=[];return!this._rrule.length&&this._dtstart&&(e=e.concat(Al({dtstart:this._dtstart}))),this._rrule.forEach(function(n){e=e.concat(n.toString().split(`
`))}),this._exrule.forEach(function(n){e=e.concat(n.toString().split(`
`).map(function(i){return i.replace(/^RRULE:/,"EXRULE:")}).filter(function(i){return!/^DTSTART/.test(i)}))}),this._rdate.length&&e.push(CS("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(CS("EXDATE",this._exdate,this.tzid())),e},t.prototype.toString=function(){return this.valueOf().join(`
`)},t.prototype.clone=function(){var e=new t(!!this._cache);return this._rrule.forEach(function(n){return e.rrule(n.clone())}),this._exrule.forEach(function(n){return e.exrule(n.clone())}),this._rdate.forEach(function(n){return e.rdate(new Date(n.getTime()))}),this._exdate.forEach(function(n){return e.exdate(new Date(n.getTime()))}),e},t}(oe)});var MS=Q(()=>{rr();Wg();Yg();gi();ks();Gt()});var Ct,xc=Q(()=>{"use strict";MS();Ct=class{constructor({rrule:t,baseOnToday:e,occurrence:n}){this.rrule=t,this.baseOnToday=e,this.occurrence=n}static fromText({recurrenceRuleText:t,occurrence:e}){try{let n=t.match(/^([a-zA-Z0-9, !]+?)( when done)?$/i);if(n==null)return null;let i=n[1].trim(),s=n[2]!==void 0,a=oe.parseText(i);if(a!==null){let o=e.referenceDate;!s&&o!==null?a.dtstart=window.moment(o).startOf("day").utc(!0).toDate():a.dtstart=window.moment().startOf("day").utc(!0).toDate();let l=new oe(a);return new Ct({rrule:l,baseOnToday:s,occurrence:e})}}catch(n){n instanceof Error&&console.log(n.message)}return null}toText(){let t=this.rrule.toText();return this.baseOnToday&&(t+=" when done"),t}next(t=window.moment()){let e=this.nextReferenceDate(t);return e===null?null:this.occurrence.next(e)}identicalTo(t){return this.baseOnToday!==t.baseOnToday||!this.occurrence.isIdenticalTo(t.occurrence)?!1:this.toText()===t.toText()}nextReferenceDate(t){return this.baseOnToday?this.nextReferenceDateFromToday(t.clone()).toDate():this.nextReferenceDateFromOriginalReferenceDate().toDate()}nextReferenceDateFromToday(t){let e=new oe(pe(U({},this.rrule.origOptions),{dtstart:t.startOf("day").utc(!0).toDate()}));return this.nextAfter(t.endOf("day"),e)}nextReferenceDateFromOriginalReferenceDate(){var e;let t=window.moment((e=this.occurrence.referenceDate)!=null?e:void 0).endOf("day");return this.nextAfter(t,this.rrule)}nextAfter(t,e){t.utc(!0);let n=window.moment.utc(e.after(t.toDate())),i=this.toText(),s=i.match(/every( \d+)? month(s)?(.*)?/);s!==null&&(i.includes(" on ")||(n=Ct.nextAfterMonths(t,n,e,s[1])));let a=i.match(/every( \d+)? year(s)?(.*)?/);return a!==null&&(n=Ct.nextAfterYears(t,n,e,a[1])),Ct.addTimezone(n)}static nextAfterMonths(t,e,n,i){let s=1;for(i!==void 0&&(s=Number.parseInt(i.trim(),10));Ct.isSkippingTooManyMonths(t,e,s);)e=Ct.fromOneDayEarlier(t,n);return e}static isSkippingTooManyMonths(t,e,n){let i=e.month()-t.month();return i+=(e.year()-t.year())*12,i>n}static nextAfterYears(t,e,n,i){let s=1;for(i!==void 0&&(s=Number.parseInt(i.trim(),10));Ct.isSkippingTooManyYears(t,e,s);)e=Ct.fromOneDayEarlier(t,n);return e}static isSkippingTooManyYears(t,e,n){return e.year()-t.year()>n}static fromOneDayEarlier(t,e){t.subtract(1,"days").endOf("day");let n=e.origOptions;return n.dtstart=t.startOf("day").toDate(),e=new oe(n),window.moment.utc(e.after(t.toDate()))}static addTimezone(t){return window.moment.utc(t).set({hour:12,minute:0,second:0,millisecond:0}).local(!0).startOf("day")}}});function AS(r,t,e){let n=new Map([["cancelled date","cancelledDate"],["created date","createdDate"],["depends on","dependsOn"],["done date","doneDate"],["due date","dueDate"],["id","id"],["on completion","onCompletion"],["priority","priority"],["recurrence rule","recurrenceRule"],["scheduled date","scheduledDate"],["start date","startDate"]]);for(let[i,s]of n.entries())if(t.startsWith(i))return r.setVisibility(s,e),!0;return t.startsWith("tags")?(r.setTagsVisibility(e),!0):!1}var Pl,Rc,Wr,Es=Q(()=>{"use strict";Pl=(p=>(p.Description="description",p.Id="id",p.DependsOn="dependsOn",p.Priority="priority",p.RecurrenceRule="recurrenceRule",p.OnCompletion="onCompletion",p.CreatedDate="createdDate",p.StartDate="startDate",p.ScheduledDate="scheduledDate",p.DueDate="dueDate",p.CancelledDate="cancelledDate",p.DoneDate="doneDate",p.BlockLink="blockLink",p))(Pl||{}),Rc=Object.values(Pl),Wr=class{constructor(){this.visible={};this.tagsVisible=!0;Rc.forEach(t=>{this.visible[t]=!0})}isShown(t){return this.visible[t]}areTagsShown(){return this.tagsVisible}hide(t){this.visible[t]=!1}setVisibility(t,e){this.visible[t]=e}setTagsVisibility(t){this.tagsVisible=t}get shownComponents(){return Rc.filter(t=>this.visible[t])}get hiddenComponents(){return Rc.filter(t=>!this.visible[t])}get toggleableComponents(){return Rc.filter(t=>t!=="description"&&t!=="blockLink")}toggleVisibilityExceptDescriptionAndBlockLink(){this.toggleableComponents.forEach(t=>{this.visible[t]=!this.visible[t]}),this.setTagsVisibility(!this.areTagsShown())}}});var zt,gt,In=Q(()=>{"use strict";zt=(o=>(o.TODO="TODO",o.DONE="DONE",o.IN_PROGRESS="IN_PROGRESS",o.ON_HOLD="ON_HOLD",o.CANCELLED="CANCELLED",o.NON_TASK="NON_TASK",o.EMPTY="EMPTY",o))(zt||{}),gt=class{constructor(t,e,n,i,s="TODO"){this.symbol=t,this.name=e,this.nextStatusSymbol=n,this.availableAsCommand=i,this.type=s}}});function PS(r){let t=r.trim().toLowerCase();return t==="delete"?"delete":t==="keep"?"keep":""}function tU(r,t){return r.filter(e=>e!==t)}function nU(r,t){let e=r.status,n=t.status,i=n.type===e.type;return n.type!=="DONE"||i}functi Line truncated
`})),c=c.slice(0,a.autoSuggestMaxItems),c}}function oU(r,t,e){let n=TU(t.substring(0,e),[["(",")"],["[","]"]])=="("?")":"]",i=r?n+" ":" ",s=r&&t.length>e&&t.charAt(e)===n?1:0;return{postfix:i,insertSkip:s}}function lU(r,t,e){let n=[],i=e.line;Cs(n,i,r.dueDateSymbol,"due date"),Cs(n,i,r.startDateSymbol,"start date"),Cs(n,i,r.scheduledDateSymbol,"scheduled date"),uU(n,r,e),Cs(n,i,r.recurrenceSymbol,"recurring (repeat)"),cU(n,r,e),qS(t)&&(Cs(n,i,r.idSymbol,"id"),Cs(n,i,r.dependsOnSymbol,"depends on id")),Cs(n,i,r.onCompletionSymbol,"on completion");let s=dU(n,e);return s.length===0&&e.settings.autoSuggestMinMatch===0?n:s}function Cs(r,t,e,n){t.includes(e)||r.push({displayText:`${e} ${n}`,appendText:`${e} `})}function uU(r,t,e){if(!(i=>Object.values(t.prioritySymbols).some(s=>s.length>0&&i.includes(s)))(e.line)){let i=t.prioritySymbols,s=["High","Medium","Low","Highest","Lowest"];for(let a of s){let o=i[a];r.push({displayText:e.dataviewMode?`${o} priority`:`${o} ${a.toLowerCase()} priority`,appendText:`${o}${e.postfix}`,insertSkip:e.dataviewMode?e.insertSkip:void 0})}}}function cU(r,t,e){if(!e.line.includes(t.createdDateSymbol)){let i=An.parseDate("today",!0).format(ke.dateFormat);r.push({textToMatch:`${t.createdDateSymbol} created`,displayText:`${t.createdDateSymbol} created today (${i})`,appendText:`${t.createdDateSymbol} ${i}`+e.postfix,insertSkip:e.dataviewMode?e.insertSkip:void 0})}}function dU(r,t){let e=Ca(/([a-zA-Z'_-]*)/g,t),n=[];if(e&&e.length>0){let i=e[0];if(i.length>=Math.max(1,t.settings.autoSuggestMinMatch)){let s=r.filter(a=>{var l;return((l=a.textToMatch)!=null?l:a.displayText).toLowerCase().includes(i.toLowerCase())});for(let a of s){let o=t.dataviewMode&&(a.displayText.includes("priority")||a.displayText.includes("created"))?i.length+t.insertSkip:i.length;n.push({suggestionType:"match",displayText:a.displayText,appendText:a.appendText,insertAt:e.index,insertSkip:o})}}}return n}function WS(r,t){let e=`${t}`,n=`${r} ${t}`;return{displayText:e,appendText:n}}function fU(r,t){let n=`${An.parseDate(t,!0).format(ke.dateFormat)}`,i=`${t} (${n})`,s=`${r} ${n}`;return{displayText:i,appendText:s}}function pU(r,t,e){let n=["today","tomorrow","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","next week","next month","next year"],i=[],s=new RegExp(`(${r})\\s*([0-9a-zA-Z ]*)`,"ug"),a=Ca(s,e);if(a&&a.length>=2){let o=a[2];if(o.length<e.settings.autoSuggestMinMatch)return[];let l=o&&o.length>1?An.parseDate(hc(o),!0):null;if(l!=null&&l.isValid()){let c=l.format(ke.dateFormat);Fc(e,a,[c],WS,i)}let u=Bg(n,o,t,!0);Fc(e,a,u,fU,i)}return i}function mU(r,t){var a;let e=["every","every day","every week","every month","every month on the","every year","every week on Sunday","every week on Monday","every week on Tuesday","every week on Wednesday","every week on Thursday","every week on Friday","every week on Saturday"],n=[],i=new RegExp(`(${r})\\s*([0-9a-zA-Z ]*)`,"ug"),s=Ca(i,t);if(s&&s.length>=2){let o=s[1],l=s[2];if(l.length<t.settings.autoSuggestMinMatch)return[];if(l.length>0){let f=(a=Ct.fromText({recurrenceRuleText:l,occurrence:new tr({startDate:null,scheduledDate:null,dueDate:null})}))==null?void 0:a.toText();if(f){let p=`${o} ${f}`+t.postfix;if(n.push({suggestionType:"match",displayText:`\u2705 ${f}`,appendText:p,insertAt:s.index,insertSkip:Vg(s[0],t)}),s[0]==p)return[]}}let u=t.settings.autoSuggestMaxItems/2,c=Bg(e,l,u,!1);c.length===0&&l.trim().length===0&&(c=e.slice(0,u)),Fc(t,s,c,(f,p)=>{let g=`${p}`,b=`${f} ${p}`;return{displayText:g,appendText:b}},n)}return n}function hU(r,t,e){let n=["delete","keep"],i=[],s=new RegExp(`(${r})\\s*([0-9a-zA-Z ]*)`,"ug"),a=Ca(s,e);if(a&&a.length>=2){let o=a[2];if(o.length<e.settings.autoSuggestMinMatch)return[];let l=Bg(n,o,t,!0);Fc(e,a,l,WS,i)}return i}function gU(r,t,e){let n=[],i=new RegExp(`(${r})\\s*(${Os.source})?`,"ug"),s=Ca(i,e);if(s&&s[0].trim().length<=r.length){let a=Fl(t.map(o=>o.id));n.push({suggestionType:"match",displayText:"generate unique id",appendText:`${r} ${a}`+e.postfix,insertAt:s.index,insertSkip:Vg(s[0],e)})}return n}function yU(r,t,e,n){let i=[],s=e.dataviewMode?Hi("()[]"):IS(),a=new RegExp(`(${r})([0-9a-zA-Z-_ ^,]*,)*([^,${s}]*)`,"ug"),o=Ca(a,e);if(o&&o.length>=1){let l=o[2]||"",u=o[3],c=[];if(l){let d=l.split(",").map(f=>f.trim());c=t.filter(f=>f.id&&d.includes(f.id))}if(u.length>=e.settings.autoSuggestMinMatch){let d=Ic(u.trim(),t,n,[],c);for(let f of d)i.push({suggestionType:"match",displayText:`${f.descriptionWithoutTags} - From: ${f.filename}.md`,appendText:`${r}${l}`,insertAt:o.index,insertSkip:r.length+l.length+u.length,taskItDependsOn:f})}}return i}function Bg(r,t,e,n){let s=r.filter(a=>t&&t.length>=1&&a.toLowerCase().includes(t.toLowerCase())).slice(0,e);return n&&s.length===0&&(s=r.slice(0,e)),s}function Fc(r,t,e,n,i){let s=t[1];for(let a of e){let{displayText:o,appendText:l}=n(s,a);i.push({suggestionType:"match",displayText:o,appendText:l+r.postfix,insertAt:t.index,insertSkip:Vg(t[0],r)})}}function Ca(r,t){let e=t. Line truncated
`);n.length>1&&(t=n[0],e=!0);let i=50;return t.length>i&&(t=t.slice(0,i),e=!0),e&&(t+="..."),t}function BS(r,t){let e=`Cannot find preset "${r}" in the Tasks settings`;if(Object.keys(t).length===0)e+=`
You can define the instruction(s) for "${r}" in the Tasks settings.`;else{let i=Math.max(...Object.keys(t).map(a=>a.length));e+=`
The following presets are defined in the Tasks settings:
${Object.entries(t).sort(([a],[o])=>a.localeCompare(o)).map(([a,o])=>`${a.padEnd(i)}: ${_U(o)}`).join(`
`)}`}return e}var GS,Xg=Q(()=>{"use strict";GS={this_file:"path includes {{query.file.path}}",this_folder:"folder includes {{query.file.folder}}",this_folder_only:"filter by function task.file.folder === query.file.folder",this_root:"root includes {{query.file.root}}",hide_date_fields:`# Hide any values for all date fields
hide due date
hide scheduled date
hide start date
hide created date
hide done date
hide cancelled date`,hide_non_date_fields:`# Hide all the non-date fields, but not tags
hide id
hide depends on
hide recurrence rule
hide on completion
hide priority`,hide_query_elements:`# Hide toolbar, postpone, edit and backlinks
hide toolbar
hide postpone button
hide edit button
hide backlinks`,hide_everything:`# Hide everything except description and any tags
preset hide_date_fields
preset hide_non_date_fields
preset hide_query_elements`}});var Uc,VS=Q(()=>{"use strict";Uc=class{constructor(t=!1,e=!1,n=!1){this.ignoreSortInstructions=t,this.showTaskHiddenData=e,this.recordTimings=n}}});var Ma,Yc=Q(()=>{"use strict";Ma={priority:!0,recurrence:!0,due:!0,scheduled:!0,start:!0,before_this:!0,after_this:!0,status:!0,created:!0,done:!0,cancelled:!0}});var it,Aa=Q(()=>{"use strict";_r();it=class{constructor(){this.coreStatuses=[Te.TODO.configuration,Te.DONE.configuration],this.customStatuses=[Te.IN_PROGRESS.configuration,Te.CANCELLED.configuration]}static addStatus(t,e){t.push(e)}static replaceStatus(t,e,n){let i=this.findStatusIndex(e,t);return i<=-1?!1:(t.splice(i,1,n),!0)}static findStatusIndex(t,e){let n=new Te(t);return e.findIndex(i=>new Te(i).previewText()==n.previewText())}static deleteStatus(t,e){let n=this.findStatusIndex(e,t);return n<=-1?!1:(t.splice(n,1),!0)}static deleteAllCustomStatuses(t){t.customStatuses.splice(0)}static resetAllCustomStatuses(t){it.deleteAllCustomStatuses(t),new it().customStatuses.forEach(n=>{it.addStatus(t.customStatuses,n)})}static bulkAddStatusCollection(t,e){let n=[];return e.forEach(i=>{t.customStatuses.find(a=>a.symbol==i[0]&&a.name==i[1]&&a.nextStatusSymbol==i[2])?n.push(`The status ${i[1]} (${i[0]}) is already added.`):it.addStatus(t.customStatuses,Te.createFromImportedValue(i))}),n}static allStatuses(t){return t.coreStatuses.concat(t.customStatuses)}static applyToStatusRegistry(t,e){e.clearStatuses(),it.allStatuses(t).forEach(n=>{e.add(n)})}}});var KS,zS=Q(()=>{KS=[{index:9999,internalName:"INTERNAL_TESTING_ENABLED_BY_DEFAULT",displayName:"Test Item. Used to validate the Feature Framework.",description:"Description",enabledByDefault:!0,stable:!1}]});var bi,QS=Q(()=>{"use strict";zS();bi=class{constructor(t,e,n,i,s,a){this.internalName=t;this.index=e;this.description=n;this.displayName=i;this.enabledByDefault=s;this.stable=a}static get values(){let t=[];return KS.forEach(e=>{t=[...t,new bi(e.internalName,e.index,e.description,e.displayName,e.enabledByDefault,e.stable)]}),t}static get settingsFlags(){let t={};return bi.values.forEach(e=>{t[e.internalName]=e.enabledByDefault}),t}static fromString(t){for(let e of bi.values)if(t===e.internalName)return e;throw new RangeError(`Illegal argument passed to fromString(): ${t} does not correspond to any available Feature ${this.prototype.constructor.name}`)}}});function Zg(r,t){for(let e in r)t[e]===void 0&&(t[e]=r[e])}function Yl(){return Un[te().taskFormat]}function SU(r){let t=U({},r);return"includes"in t&&!("presets"in t)&&(t.presets=t.includes,delete t.includes),t}var Un,Jg,Ti,te,st,Ms,XS,vt=Q(()=>{"use strict";zg();Il();Qg();In();_r();HS();Qg();Ni();Xg();VS();Yc();Aa();QS();Un={tasksPluginEmoji:{getDisplayName:()=>M.t("settings.format.displayName.tasksEmojiFormat"),taskSerializer:new xs(Nl),buildSuggestions:Gg(Nl,Hg,!1)},dataview:{getDisplayName:()=>M.t("settings.format.displayName.dataview"),taskSerializer:new Lc,buildSuggestions:$S(Gg(Kg,Hg,!0),[["(",")"],["[","]"]])}},Jg={presets:GS,globalQuery:"",globalFilter:"",removeGlobalFilter:!1,taskFormat:"tasksPluginEmoji",setCreatedDate:!1,setDoneDate:!0,setCancelledDate:!0,autoSuggestInEditor:!0,autoSuggestMinMatch:0,autoSuggestMaxItems:20,provideAccessKeys:!0,useFilenameAsScheduledDate:!1,filenameAsScheduledDateFormat:"",filenameAsDateFolders:[],recurrenceOnNextLine:!1,removeScheduledDateOnRecurrence:!1,statusSettings:new it,isShownInEditModal:Ma,features:bi.settingsFlags,generalSettings:{},headingOpened:{},debugSettings:new Uc,loggingOptions:{minLevels:{"":"info",tasks:"info","tasks.Cache":"info","tasks.Events":"info","tasks.File":"info","tasks.Query":"info","tasks.Task":"info"}}},Ti=U({},Jg);te=()=>(Zg(bi.settingsFlags,Ti.features),Zg(Jg.loggingOptions.minLevels,Ti.loggingOptions.minLevels),Zg(Jg.debugSettings,Ti.debugSettings),Ti.statusSettings.customStatuses.forEach((r,t,e)=>{var i,s;let n=Te.getTypeFromStatusTypeString(r.type);e[t]=new gt((i=r.symbol)!=null?i:" ",r.name,(s=r.nextStatusSymbol)!=null?s:"x",r.availableAsCommand,n)}),U({},Ti)),st=r=>{let t=SU(r);return Ti=U(U({},Ti),t),te()},Ms=(r,t)=>(Ti.generalSettings[r]=t,te()),XS=r=>{var t;return(t=Ti.features[r])!=null?t:!1}});function qc(r){let e={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;"}[r];return e!==void 0?e:r}function ZS(r){let t=[...r],e="";return t.forEach(n=>{e+=qc(n)}),e}var JS=Q(()=>{"use strict"});var Ge,$r=Q(()=>{"use strict";JS();_r();In();Ge=class{constructor(){this._registeredStatuses=[];this.addDefaultStatusTypes()}set(t){this.clearStatuses(),t.forEach(e=>{this.add(e)})}get registeredStatuses(){return this._registeredStatuses.filter(({symbol:t})=>t!==Te.EMPTY.symbol)}static getInstance(){return Ge.instance||(Ge.instance=new Ge),Ge.instance}add(t){this.hasSymbol(t.symbol)||(t instanceof Te?this._registeredStatuses.push(t):this._registeredStatuses.push(new Te(t)))}bySymbol(t){return this.hasSymbol(t)?this.getSymbol(t):Te.EMPTY}bySymbolOrCreate(t){return this.hasSymbol(t)?this.getSymbol(t):Te.createUnknownS Line truncated
\`\`\`${n}
flowchart LR
classDef TODO stroke:#f33,stroke-width:3px;
classDef DONE stroke:#0c0,stroke-width:3px;
classDef IN_PROGRESS stroke:#fa0,stroke-width:3px;
classDef CANCELLED stroke:#ddd,stroke-width:3px;
classDef NON_TASK stroke:#99e,stroke-width:3px;
classDef ON_HOLD stroke:#00f,stroke-width:3px;
${i.join(`
`)}
${s.join(`
`)}
linkStyle default stroke:gray
\`\`\`
`}addEdgeIfNotToInternal(t,e,n,i,s){let a=t.findIndex(u=>u.symbol===e.symbol),o=a!==-1,l=e.type!=="EMPTY";if(o&&l){let u;s?u='-. "\u{1F501}" .-> ':u=" --> ";let c=`${i+1}${u}${a+1}`;n.push(c)}}getMermaidNodeLabel(t,e){let n=ZS(t.name),i=t.type;if(e){let s=qc(t.symbol),a=qc(t.nextStatusSymbol),o=`[${s}] -> [${a}]`,l=`'${n}'`,u=`(${i})`;return`["${l}<br>${o}<br>${u}"]:::${i}`}else return`["${n}"]:::${i}`}}});var jr,eD=Q(()=>{"use strict";jr=class{constructor(t,e){this.name=t,this.sortOrder=e}get groupText(){return this.name!==""?`%%${this.sortOrder}%% ${this.name}`:""}}});var tD,Yt,Wc=Q(()=>{"use strict";tD=require("obsidian");eD();ri();Yt=class{constructor(t){this._date=null;this._date=t}get moment(){return this._date?this._date.clone():null}formatAsDate(t=""){return this.format(ke.dateFormat,t)}formatAsDateAndTime(t=""){return this.format(ke.dateTimeFormat,t)}format(t,e=""){return this._date?this._date.format(t):e}toISOString(t){return this._date?this._date.toISOString(t):""}get category(){let t=window.moment(),e=this.moment;return e?e.isBefore(t,"day")?new jr("Overdue",1):e.isSame(t,"day")?new jr("Today",2):e.isValid()?new jr("Future",3):new jr("Invalid date",0):new jr("Undated",4)}get fromNow(){let t=this.moment;if(!t)return new jr("",0);let e=this.fromNowOrder(t);return new jr(t.fromNow(),e)}fromNowOrder(t){if(!t.isValid())return 0;let e=window.moment(),n=t.isSameOrBefore(e,"day"),i=this.fromNowStartDateOfGroup(t,n,e);return Number((n?1:3)+i.format("YYYYMMDD"))}fromNowStartDateOfGroup(t,e,n){let i=t.fromNow(!0).split(" "),s,a=Number(i[0]);isNaN(a)?s=1:s=a;let o=i[1];return e?n.subtract(s,o):n.add(s,o)}postpone(t="days",e=1){if(!this._date)throw new tD.Notice("Cannot postpone a null date");let n=window.moment().startOf("day");return this._date.isSameOrAfter(n,"day")?this._date.clone().add(e,t):n.add(e,t)}}});var iD=C((nD,rD)=>{(function(r){var t=Object.hasOwnProperty,e=Array.isArray?Array.isArray:function(T){return Object.prototype.toString.call(T)==="[object Array]"},n=10,i=typeof process=="object"&&typeof process.nextTick=="function",s=typeof Symbol=="function",a=typeof Reflect=="object",o=typeof setImmediate=="function",l=o?setImmediate:setTimeout,u=s?a&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(m){var T=Object.getOwnPropertyNames(m);return T.push.apply(T,Object.getOwnPropertySymbols(m)),T}:Object.keys;function c(){this._events={},this._conf&&d.call(this,this._conf)}function d(m){m&&(this._conf=m,m.delimiter&&(this.delimiter=m.delimiter),m.maxListeners!==r&&(this._maxListeners=m.maxListeners),m.wildcard&&(this.wildcard=m.wildcard),m.newListener&&(this._newListener=m.newListener),m.removeListener&&(this._removeListener=m.removeListener),m.verboseMemoryLeak&&(this.verboseMemoryLeak=m.verboseMemoryLeak),m.ignoreErrors&&(this.ignoreErrors=m.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function f(m,T){var _="(node) warning: possible EventEmitter memory leak detected. "+m+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(_+=" Event name: "+T+"."),typeof process!="undefined"&&process.emitWarning){var k=new Error(_);k.name="MaxListenersExceededWarning",k.emitter=this,k.count=m,process.emitWarning(k)}else console.error(_),console.trace&&console.trace()}var p=function(m,T,_){var k=arguments.length;switch(k){case 0:return[];case 1:return[m];case 2:return[m,T];case 3:return[m,T,_];default:for(var w=new Array(k);k--;)w[k]=arguments[k];return w}};function g(m,T){for(var _={},k,w=m.length,R=T?T.length:0,N=0;N<w;N++)k=m[N],_[k]=N<R?T[N]:r;return _}function b(m,T,_){this._emitter=m,this._target=T,this._listeners={},this._listenersCount=0;var k,w;if((_.on||_.off)&&(k=_.on,w=_.off),T.addEventListener?(k=T.addEventListener,w=T.removeEventListener):T.addListener?(k=T.addListener,w=T.removeListener):T.on&&(k=T.on,w=T.off),!k&&!w)throw Error("target does not implement any known event API");if(typeof k!="function")throw TypeError("on method must be a function");if(typeof w!="function")throw TypeError("off method must be a function");this._on=k,this._off=w;var R=m._observers;R?R.push(this):m._observers=[this]}Object.assign(b.prototype,{subscribe:function(m,T,_){var k=this,w=this._target,R=this._emitter,N=this._listeners,Y=function(){var L=p.apply(null,arguments),S={data:L,name:T,original:m};if(_){var $=_.call(w,S);$!==!1&&R.emit.apply(R,[S.name].concat(L));return}R.emit.apply(R,[T].concat(L))};if(N[m])throw Error("Event '"+m+"' is already listening");this._listenersCount++,R._newListener&&R._removeListener&&!k._onNewListener?(this._onNewListener=function(L){L===T&&N[m]===null&&(N[m]=Y,k._on.call(w,m,Y))},R.on("newListener",this._onNewListener),this._onRemoveListener=function(L){L===T&&!R.hasListeners(L)&&N[m]&&(N[m]=null,k._off.call(w,m,Y))},N[m]=null,R.on("removeListener",this._onRemoveListener)):(N[m]=Y,k._on.call(w,m,Y))},unsubscribe:function(m){var T=this,_=this._listeners,k=this._emitter,w,R,N=this._off,Y=this._target,L;if(m&&typeof m!="string")thro Line truncated
`),this.dateFromFileName=new Pa(()=>qt.fromPath(this.filePath))}parseFileContent(){if(this.listItems===void 0)return this.tasks;let t=new bt(this.filePath,this.fileCache),e=this.fileLines.length,n=null,i=0;for(let s of this.listItems){let a=s.position.start.line;if(a>=e)return this.logger.debug(`${this.filePath} Obsidian gave us a line number ${a} past the end of the file. ${e}.`),this.tasks;if((n===null||n.position.end.line<a)&&(n=Ns.getSection(a,this.fileCache.sections),i=0),n===null)continue;let o=this.fileLines[a];if(o===void 0){this.logger.debug(`${this.filePath}: line ${a} - ignoring 'undefined' line.`);continue}let l=new Wt(t,a,n.position.start.line,i,Ns.getPrecedingHeader(a,this.fileCache.headings));i=this.parseLine(s,o,l,a,i)}return this.tasks}parseLine(t,e,n,i,s){var o;if(t.task===void 0)return this.createListItem(t,e,i,n),s;let a;try{if(a=me.fromLine({line:e,taskLocation:n,fallbackDate:this.dateFromFileName.value}),a!==null){let l=(o=this.line2ListItem.get(t.parent))!=null?o:null;l!==null&&(a=new me(pe(U({},a),{parent:l}))),this.line2ListItem.set(i,a),a!==null&&(s++,this.tasks.push(a))}else this.createListItem(t,e,i,n)}catch(l){this.errorReporter(l,this.filePath,t,e)}return s}createListItem(t,e,n,i){var o;let s=(o=this.line2ListItem.get(t.parent))!=null?o:null,a=sr.fromListItemLine(e,s,i);if(a===null){this.logger.warn("Unexpected failure to create a list item from line: "+e+" in file: "+this.filePath);return}this.line2ListItem.set(n,a)}};var Ns=class{constructor({metadataCache:t,vault:e,workspace:n,events:i}){this.logger=cn.getLogger("tasks.Cache");this.notifySubscribersDebounced=(0,lD.debounce)(()=>this.notifySubscribersNotDebounced(),100,!0);this.logger.debug("Creating Cache object"),this.metadataCache=t,this.metadataCacheEventReferences=[],this.vault=e,this.workspace=n,this.vaultEventReferences=[],this.events=i,this.eventsEventReferences=[],this.tasksMutex=new ku,this.state="Cold",this.logger.debug("Cache.constructor(): state = Cold"),this.tasks=[],this.loadedAfterFirstResolve=!1,this.subscribeToCache(),this.workspace.onLayoutReady(()=>{this.subscribeToVault(),this.loadVault()}),this.subscribeToEvents()}unload(){this.logger.info("Unloading Cache");for(let t of this.metadataCacheEventReferences)this.metadataCache.offref(t);for(let t of this.vaultEventReferences)this.vault.offref(t);for(let t of this.eventsEventReferences)this.events.off(t)}getTasks(){return this.tasks}getState(){return this.state}notifySubscribers(){this.logger.debug("Cache.notifySubscribers()"),this.notifySubscribersDebounced()}notifySubscribersNotDebounced(){this.logger.debug("Cache.notifySubscribersNotDebounced()"),this.events.triggerCacheUpdate({tasks:this.tasks,state:this.state})}subscribeToCache(){this.logger.debug("Cache.subscribeToCache()");let t=this.metadataCache.on("resolved",()=>A(this,null,function*(){this.loadedAfterFirstResolve||(this.loadedAfterFirstResolve=!0,this.loadVault())}));this.metadataCacheEventReferences.push(t);let e=this.metadataCache.on("changed",n=>{this.tasksMutex.runExclusive(()=>{this.indexFile(n)})});this.metadataCacheEventReferences.push(e)}subscribeToVault(){this.logger.debug("Cache.subscribeToVault()");let{useFilenameAsScheduledDate:t}=te(),e=this.vault.on("create",s=>{s instanceof Na.TFile&&(this.logger.debug(`Cache.subscribeToVault.createdEventReference() ${s.path}`),this.tasksMutex.runExclusive(()=>{this.indexFile(s)}))});this.vaultEventReferences.push(e);let n=this.vault.on("delete",s=>{s instanceof Na.TFile&&(this.logger.debug(`Cache.subscribeToVault.deletedEventReference() ${s.path}`),this.tasksMutex.runExclusive(()=>{this.tasks=this.tasks.filter(a=>a.path!==s.path),this.notifySubscribers()}))});this.vaultEventReferences.push(n);let i=this.vault.on("rename",(s,a)=>{s instanceof Na.TFile&&(this.logger.debug(`Cache.subscribeToVault.renamedEventReference() ${s.path}`),this.tasksMutex.runExclusive(()=>{let o=this.metadataCache.getFileCache(s),l=new bt(s.path,o!=null?o:void 0),u=new Pa(()=>qt.fromPath(s.path));this.tasks=this.tasks.map(c=>{if(c.path!==a)return c;let d=c.taskLocation.fromRenamedFile(l);return t?qt.updateTaskPath(c,d,u.value):new me(pe(U({},c),{taskLocation:d}))}),this.notifySubscribers()}))});this.vaultEventReferences.push(i)}subscribeToEvents(){this.logger.debug("Cache.subscribeToEvents()");let t=this.events.onRequestCacheUpdate(n=>{n({tasks:this.tasks,state:this.state})});this.eventsEventReferences.push(t);let e=this.events.onReloadVault(()=>A(this,null,function*(){return yield this.loadVault()}));this.eventsEventReferences.push(e)}loadVault(){return this.logger.debug("Cache.loadVault()"),this.tasksMutex.runExclusive(()=>A(this,null,function*(){let t=new Ps(`Loading vault with global filter '${Ce.getInstance().get()}'`);t.start(),this.state="Initializing",this.logger.debug("Cache.loadVault(): state = Initializing"),yield Promise.all(this.vault.getMarkdownFiles().map(e=>this.indexFile(e))),this.state="Warm",this.logger.debug("Cache.loadVault(): state = Warm"),t.finish(),th Line truncated
The following task has been ignored, to prevent Tasks queries getting stuck with 'Loading Tasks ...'
Error: ${t}
File: ${e}
Line number: ${n.position.start.line}
Task line: ${i}
Please create a bug report for this message at
https://github.com/obsidian-tasks-group/obsidian-tasks/issues/new/choose
to help us find and fix the underlying issue.
Include:
- either a screenshot of the error popup, or copy the text from the console, if on a desktop machine.
- the output from running the Obsidian command 'Show debug info'
The error popup will only be shown when Tasks is starting up, but if the error persists,
it will be shown in the console every time this file is edited during the Obsidian
session.
`;this.logger.error(s),t instanceof Error&&this.logger.error(t.stack?t.stack:"Cannot determine stack"),this.state==="Initializing"&&new Na.Notice(s,1e4)}static getSection(t,e){if(e===void 0)return null;for(let n of e)if(n.position.start.line<=t&&n.position.end.line>=t)return n;return null}static getPrecedingHeader(t,e){if(e===void 0)return null;let n=null;for(let i of e){if(i.position.start.line>t)return n;n=i.heading}return n}};var Cy=require("obsidian");var ME=require("obsidian"),AE=require("obsidian");function We(){}function oy(r){return r()}function uD(){return Object.create(null)}function kt(r){r.forEach(oy)}function Vi(r){return typeof r=="function"}function Qt(r,t){return r!=r?t==t:r!==t||r&&typeof r=="object"||typeof r=="function"}function cD(r){return Object.keys(r).length===0}function dD(r,...t){if(r==null)return We;let e=r.subscribe(...t);return e.unsubscribe?()=>e.unsubscribe():e}function zc(r,t,e){r.$$.on_destroy.push(dD(t,e))}var fD=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global,Wl=class{constructor(t){this.options=t,this._listeners="WeakMap"in fD?new WeakMap:void 0}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return(t=this._observer)!==null&&t!==void 0?t:this._observer=new ResizeObserver(e=>{var n;for(let i of e)Wl.entries.set(i.target,i),(n=this._listeners.get(i.target))===null||n===void 0||n(i)})}};Wl.entries="WeakMap"in fD?new WeakMap:void 0;var pD=!1;function OU(){pD=!0}function xU(){pD=!1}function B(r,t){r.appendChild(t)}function ce(r,t,e){r.insertBefore(t,e||null)}function le(r){r.parentNode&&r.parentNode.removeChild(r)}function ki(r,t){for(let e=0;e<r.length;e+=1)r[e]&&r[e].d(t)}function re(r){return document.createElement(r)}function RU(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function $e(r){return document.createTextNode(r)}function he(){return $e(" ")}function Hr(){return $e("")}function Fe(r,t,e,n){return r.addEventListener(t,e,n),()=>r.removeEventListener(t,e,n)}function mD(r){return function(t){return t.preventDefault(),r.call(this,t)}}function W(r,t,e){e==null?r.removeAttribute(t):r.getAttribute(t)!==e&&r.setAttribute(t,e)}function hD(r){let t;return{p(...e){t=e,t.forEach(n=>r.push(n))},r(){t.forEach(e=>r.splice(r.indexOf(e),1))}}}function CU(r){return Array.from(r.childNodes)}function yn(r,t){t=""+t,r.data!==t&&(r.data=t)}function bn(r,t){r.value=t==null?"":t}function ly(r,t,e){for(let n=0;n<r.options.length;n+=1){let i=r.options[n];if(i.__value===t){i.selected=!0;return}}(!e||t!==void 0)&&(r.selectedIndex=-1)}function gD(r){let t=r.querySelector(":checked");return t&&t.__value}var Bc;function MU(){if(Bc===void 0){Bc=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(r){Bc=!0}}return Bc}function yD(r,t){getComputedStyle(r).position==="static"&&(r.style.position="relative");let n=re("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let i=MU(),s;return i?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=Fe(window,"message",a=>{a.source===n.contentWindow&&t()})):(n.src="about:blank",n.onload=()=>{s=Fe(n.contentWindow,"resize",t),t()}),B(r,n),()=>{(i||s&&n.contentWindow)&&s(),le(n)}}function _i(r,t,e){r.classList[e?"add":"remove"](t)}var Ua=class{constructor(t=!1){this.is_svg=!1,this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,n=null){this.e||(this.is_svg?this.e=RU(e.nodeName):this.e=re(e.nodeType===11?"TEMPLATE":e.nodeName),this.t=e.tagName!=="TEMPLATE"?e:e.content,this.c(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)ce(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(le)}};var $l;function ql(r){$l=r}function AU(){if(!$l)throw new Error("Function called outside component initialization");return $l}function uy(r){AU().$$.on_mount.push(r)}var Fa=[];var lt=[],La=[],sy=[],PU=Promise.resolve(),ay=!1;function NU(){ay||(ay=!0,PU.then(bD))}function Fs(r){La.push(r)}function Xt(r){sy.push(r)}var iy=new Set,Ia=0;function bD(){if(Ia!==0)return;let r=$l;do{try{for(;Ia<Fa.length;){let t=Fa[Ia];Ia++,ql(t),IU(t.$$)}}catch(t){throw Fa.length=0,Ia=0,t}for(ql(null),Fa.length=0,Ia=0;lt.length;)lt.pop()();for(let t=0;t<La.length;t+=1){let e=La[t];iy.has(e)||(iy.add(e),e())}La.length=0}while(Fa.length);for(;sy.length;)sy.pop()();ay=!1,iy.clear(),ql(r)}function IU(r){if(r.fragment!==null){r.update(),kt(r.before_update);let t=r.dirty;r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(Fs)}}function FU(r){let t=[],e=[];La.forEach(n=>r.indexOf(n)===-1?t.push(n):e.push(n)),e.forEach(n=>n()),La= Line truncated
The task line not updated is:
${r.originalMarkdown}
In this markdown file:
"${r.taskLocation.path}"
Note: further clicks on this checkbox will usually now be ignored until the file is opened (or certain, specific edits are made - it's complicated).
Recommendations:
1. Close all panes that have the above file open, and then re-open the file.
2. Check for exactly identical copies of the task line, in this file, and see if you can make them different.
`;nd(c);return}let u=Math.min(Math.pow(10,s),100);o.debug(`timeout = ${u}`),setTimeout(()=>A(void 0,null,function*(){yield eE({originalTask:r,newTasks:t,vault:e,metadataCache:n,workspace:i,previousTries:s+1})}),u)});try{let[u,c,d]=yield tE(r,e),f=[...d.slice(0,u),...t.map(p=>p.toFileLineString()),...d.slice(u+1)];yield e.modify(c,f.join(`
`))}catch(u){if(u instanceof Ki){u.message&&JD(u.message),yield l();return}else if(u instanceof rd){yield l();return}else u instanceof Error&&nd(u.message)}});function tE(r,t){return A(this,null,function*(){if(zl===void 0)throw new Ki;let e=t.getAbstractFileByPath(r.path);if(!(e instanceof Kl.TFile))throw new Ki(`Tasks: No file found for task ${r.description}. Retrying ...`);if(!fY.includes(e.extension))throw new Error(`Tasks: Does not support files with the ${e.extension} file extension.`);let n=zl.getFileCache(e);if(n==null||n===null)throw new Ki(`Tasks: No file cache found for file ${e.path}. Retrying ...`);let i=n.listItems;if(i===void 0||i.length===0)throw new Ki(`Tasks: No list items found in file cache of ${e.path}. Retrying ...`);let a=(yield t.read(e)).split(`
`),o=mY(r,a,i,pY);if(o===void 0)throw new rd;return[o,e,a]})}function Sy(r,t){return A(this,null,function*(){try{let[e,n,i]=yield tE(r,t);return[e,n]}catch(e){e instanceof Ki?e.message&&JD(e.message):e instanceof Error&&nd(e.message)}})}function nE(r,t){return r<t.length}function mY(r,t,e,n){let i=hY(r,t);return i!==void 0||(i=gY(r,t),i!==void 0)?i:yY(r,t,e,n)}function hY(r,t){let e=r.taskLocation.lineNumber;if(nE(e,t)&&t[e]===r.originalMarkdown)return id().debug(`Found original markdown at original line number ${e}`),e}function gY(r,t){let e=[];for(let n=0;n<t.length;n++)t[n]===r.originalMarkdown&&e.push(n);if(e.length===1)return e[0]}function yY(r,t,e,n){let i,s=0;for(let a of e){let o=a.position.start.line;if(!nE(o,t))return;if(o<r.taskLocation.sectionStart||a.task===void 0)continue;let l=t[o];if(Ce.getInstance().includedIn(l)){if(s===r.taskLocation.sectionIndex){if(l===r.originalMarkdown)i=o;else{n(`Tasks: Unable to find task in file ${r.taskLocation.path}.
Expected task:
${r.originalMarkdown}
Found task:
${l}`);return}break}s++}}return i}gc();Ea();xc();Ut();Nc();In();var Ga=class{constructor(t){this.addGlobalFilterOnSave=t.addGlobalFilterOnSave,this.originalBlocking=t.originalBlocking,this.description=t.description,this.status=t.status,this.priority=t.priority,this.onCompletion=t.onCompletion,this.recurrenceRule=t.recurrenceRule,this.createdDate=t.createdDate,this.startDate=t.startDate,this.scheduledDate=t.scheduledDate,this.dueDate=t.dueDate,this.doneDate=t.doneDate,this.cancelledDate=t.cancelledDate,this.forwardOnly=t.forwardOnly,this.blockedBy=t.blockedBy,this.blocking=t.blocking}static fromTask(t,e){let n=Ce.getInstance().removeAsWordFrom(t.description),i=n!=t.description||!Ce.getInstance().includedIn(t.description),s="none";t.priority==="5"?s="lowest":t.priority==="4"?s="low":t.priority==="2"?s="medium":t.priority==="1"?s="high":t.priority==="0"&&(s="highest");let a=[];for(let l of t.dependsOn){let u=e.find(c=>c.id===l);!u||a.push(u)}let o=e.filter(l=>l.dependsOn.includes(t.id));return new Ga({addGlobalFilterOnSave:i,originalBlocking:o,description:n,status:t.status,priority:s,recurrenceRule:t.recurrence?t.recurrence.toText():"",onCompletion:t.onCompletion,createdDate:t.created.formatAsDate(),startDate:t.start.formatAsDate(),scheduledDate:t.scheduled.formatAsDate(),dueDate:t.due.formatAsDate(),doneDate:t.done.formatAsDate(),cancelledDate:t.cancelled.formatAsDate(),forwardOnly:!0,blockedBy:a,blocking:o})}applyEdits(t,e){return A(this,null,function*(){let n=this.description.trim();this.addGlobalFilterOnSave&&(n=Ce.getInstance().prependTo(n));let i=Ts(this.startDate,this.forwardOnly),s=Ts(this.scheduledDate,this.forwardOnly),a=Ts(this.dueDate,this.forwardOnly),o=Ts(this.cancelledDate,this.forwardOnly),l=Ts(this.createdDate,this.forwardOnly),u=Ts(this.doneDate,this.forwardOnly),c=null;this.recurrenceRule&&(c=Ct.fromText({recurrenceRuleText:this.recurrenceRule,occurrence:new tr({startDate:i,scheduledDate:s,dueDate:a})}));let d=this.onCompletion,f=[];for(let x of this.blockedBy){let O=yield bY(x,e);f.push(O)}let p=t.id,g=[],b=[];(this.blocking.toString()!==this.originalBlocking.toString()||this.blocking.length!==0)&&(t.id===""&&(p=Fl(e.filter(x=>x.id!=="").map(x=>x.id))),g=this.originalBlocking.filter(x=>!this.blocking.includes(x)),b=this.blocking.filter(x=>!this.originalBlocking.includes(x)));let v=new me(pe(U({},t),{description:n,status:t.status,priority:Fn.priorityValue(this.priority),onCompletion:d,recurrence:c,startDate:i,scheduledDate:s,dueDate:a,doneDate:u,createdDate:l,cancelledDate:o,dependsOn:f.map(x=>x.id),id:p}));for(let x of g){let O=LS(x,v);yield $n({originalTask:x,newTasks:O})}for(let x of b){let O=FS(x,v);yield $n({originalTask:x,newTasks:O})}let E=this.inferTodaysDate(this.status.type,u,o);return v.handleNewStatusWithRecurrenceInUsersOrder(this.status,E)})}inferTodaysDate(t,e,n){return t==="DONE"&&e!==null?e:t==="CANCELLED"&&n!==null?n:window.moment()}parseAndValidateRecurrence(){var e;if(!this.recurrenceRule)return{parsedRecurrence:"<i>not recurring</>",isRecurrenceValid:!0};let t=(e=Ct.fromText({recurrenceRuleText:this.recurrenceRule,occurrence:new tr({startDate:null,scheduledDate:null,dueDate:null})}))==null?void 0:e.toText();return t?this.startDate||this.scheduledDate||this.dueDate?{parsedRecurrence:t,isRecurrenceValid:!0}:{parsedRecurrence:"<i>due, scheduled or start date required</i>",isRecurrenceValid:!1}:{parsedRecurrence:"<i>invalid recurrence rule</i>",isRecurrenceValid:!1}}};function bY(r,t){return A(this,null,function*(){if(r.id!=="")return r;let e=t.filter(i=>i.id!==""),n=Pc(r,e.map(i=>i.id));return yield $n({originalTask:r,newTasks:n}),n})}vt();function rE(r,t,e){let n=r.slice();return n[7]=t[e].value,n[8]=t[e].label,n[9]=t[e].symbol,n[10]=t[e].accessKey,n[11]=t[e].accessKeyIndex,n}function TY(r){let t,e=r[8]+"",n;return{c(){t=re("span"),n=$e(e)},m(i,s){ce(i,t,s),B(t,n)},p:We,d(i){i&&le(t)}}}function vY(r){let t,e=r[8].substring(0,r[11])+"",n,i,s=r[8].substring(r[11],r[11]+1)+"",a,o,l=r[8].substring(r[11]+1)+"",u;return{c(){t=re("span"),n=$e(e),i=re("span"),a=$e(s),o=re("span"),u=$e(l),W(i,"class","accesskey")},m(c,d){ce(c,t,d),B(t,n),ce(c,i,d),B(i,a),ce(c,o,d),B(o,u)},p:We,d(c){c&&le(t),c&&le(i),c&&le(o)}}}function kY(r){let t,e=r[9]+"",n;return{c(){t=re("span"),n=$e(e)},m(i,s){ce(i,t,s),B(t,n)},p:We,d(i){i&&le(t)}}}function iE(r){let t,e,n,i,s,a,o,l,u=r[9]&&r[9].charCodeAt(0)>=256,c,d,f,p,g;function b(O,q){return O[1]?vY:TY}let v=b(r,-1),E=v(r),x=u&&kY(r);return f=hD(r[5][0]),{c(){t=re("div"),e=re("input"),a=he(),o=re("label"),E.c(),l=he(),x&&x.c(),d=he(),W(e,"type","radio"),W(e,"id",n="priority-"+r[7]),e.__value=i=r[7],e.value=e.__value,W(e,"accesskey",s=r[2](r[10])),W(o,"for",c="priority-"+r[7]),W(t,"class","task-modal-priority-option-container"),f.p(e)},m(O,q){ce(O,t,q),B(t,e),e.checked=e.__value===r[0],B(t,a),B(t,o),E.m(o,null),B(o,l),x&&x.m(o,null),B(t,d),p||(g=Fe(e,"change",r[4]),p=!0)},p(O,q){q&4&&s!==(s=O[2](O[10]))&&W(e,"accesskey",s),q&1&&(e.checked=e.__value===O[0] Line truncated
`);t.setLine(l,b)};new Br({app:n,task:c,onSaveSettings:s,onSubmit:d,allTasks:i}).open()};var My=require("obsidian");$r();Ut();ri();var NE=(r,t,e)=>{var c;if(r)return e instanceof My.MarkdownView;if(!(e instanceof My.MarkdownView))return;let n=(c=e.file)==null?void 0:c.path;if(n===void 0)return;let i=t.getCursor(),s=i.line,a=t.getLine(s),o=Ay(a,n),l=o.text.length>0,u=s>=t.lineCount()-1;if(l||u)t.setLine(s,o.text);else{let d={line:s,ch:0},f={line:s+1,ch:0};t.replaceRange("",d,f)}t.setCursor(FY(i,o))},Ay=(r,t)=>{let e=me.fromLine({line:r,taskLocation:Wt.fromUnknownPosition(new bt(t)),fallbackDate:null});if(e!==null){let n=e.toggleWithRecurrenceInUsersOrder().map(s=>s.toFileLineString()),i=n.length>0?n.length-1:0;return{text:n.join(`
`),moveTo:{line:i}}}else{let n=r.match(ke.taskRegex);if(n!==null){let i=n[3],a=Ge.getInstance().bySymbol(i).nextStatusSymbol;return{text:r.replace(ke.taskRegex,`$1$2 [${a}] $4`)}}else if(ke.listItemRegex.test(r)){let i=r.replace(ke.listItemRegex,"$1$2 [ ]");return{text:i,moveTo:{ch:i.length}}}else{let i=r.replace(ke.indentationRegex,"$1- [ ] ");return{text:i,moveTo:{ch:i.length}}}}},FY=(r,t)=>{var s;let e={line:0,ch:r.ch},n=U(U({},e),(s=t.moveTo)!=null?s:{}),i=t.text.split(`
`)[n.line].length;return{line:r.line+n.line,ch:Math.min(n.ch,i)}};var tb=require("obsidian");vt();var Qi=class{constructor(){this.hideToolbar=!1;this.hidePostponeButton=!1;this.hideTaskCount=!1;this.hideBacklinks=!1;this.hideEditButton=!1;this.hideUrgency=!0;this.hideTree=!0;this.shortMode=!1;this.explainQuery=!1}};function IE(r,t,e){let n=new Map([["backlink","hideBacklinks"],["edit button","hideEditButton"],["postpone button","hidePostponeButton"],["task count","hideTaskCount"],["toolbar","hideToolbar"],["tree","hideTree"],["urgency","hideUrgency"]]);for(let[i,s]of n.entries())if(t.startsWith(i))return r[s]=e,!0;return!1}Es();function js(r,t){let e=`Error: ${r}.
The error message was:
`,n="";return t instanceof Error?n+=t:n+="Unknown error",`${e}"${n}"`}As();var LY=Object.prototype.toString,za=Array.isArray||function(t){return LY.call(t)==="[object Array]"};function Ny(r){return typeof r=="function"}function UY(r){return za(r)?"array":typeof r}function Py(r){return r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function FE(r,t){return r!=null&&typeof r=="object"&&t in r}function YY(r,t){return r!=null&&typeof r!="object"&&r.hasOwnProperty&&r.hasOwnProperty(t)}var qY=RegExp.prototype.test;function WY(r,t){return qY.call(r,t)}var $Y=/\S/;function jY(r){return!WY($Y,r)}var HY={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function GY(r){return String(r).replace(/[&<>"'`=\/]/g,function(e){return HY[e]})}var BY=/\s*/,VY=/\s+/,LE=/\s*=/,zY=/\s*\}/,KY=/#|\^|\/|>|\{|&|=|!/;function QY(r,t){if(!r)return[];var e=!1,n=[],i=[],s=[],a=!1,o=!1,l="",u=0;function c(){if(a&&!o)for(;s.length;)delete i[s.pop()];else s=[];a=!1,o=!1}var d,f,p;function g(J){if(typeof J=="string"&&(J=J.split(VY,2)),!za(J)||J.length!==2)throw new Error("Invalid tags: "+J);d=new RegExp(Py(J[0])+"\\s*"),f=new RegExp("\\s*"+Py(J[1])),p=new RegExp("\\s*"+Py("}"+J[1]))}g(t||ur.tags);for(var b=new Xl(r),v,E,x,O,q,V;!b.eos();){if(v=b.pos,x=b.scanUntil(d),x)for(var Z=0,j=x.length;Z<j;++Z)O=x.charAt(Z),jY(O)?(s.push(i.length),l+=O):(o=!0,e=!0,l+=" "),i.push(["text",O,v,v+1]),v+=1,O===`
`&&(c(),l="",u=0,e=!1);if(!b.scan(d))break;if(a=!0,E=b.scan(KY)||"name",b.scan(BY),E==="="?(x=b.scanUntil(LE),b.scan(LE),b.scanUntil(f)):E==="{"?(x=b.scanUntil(p),b.scan(zY),b.scanUntil(f),E="&"):x=b.scanUntil(f),!b.scan(f))throw new Error("Unclosed tag at "+b.pos);if(E==">"?q=[E,x,v,b.pos,l,u,e]:q=[E,x,v,b.pos],u++,i.push(q),E==="#"||E==="^")n.push(q);else if(E==="/"){if(V=n.pop(),!V)throw new Error('Unopened section "'+x+'" at '+v);if(V[1]!==x)throw new Error('Unclosed section "'+V[1]+'" at '+v)}else E==="name"||E==="{"||E==="&"?o=!0:E==="="&&g(x)}if(c(),V=n.pop(),V)throw new Error('Unclosed section "'+V[1]+'" at '+b.pos);return ZY(XY(i))}function XY(r){for(var t=[],e,n,i=0,s=r.length;i<s;++i)e=r[i],e&&(e[0]==="text"&&n&&n[0]==="text"?(n[1]+=e[1],n[3]=e[3]):(t.push(e),n=e));return t}function ZY(r){for(var t=[],e=t,n=[],i,s,a=0,o=r.length;a<o;++a)switch(i=r[a],i[0]){case"#":case"^":e.push(i),n.push(i),e=i[4]=[];break;case"/":s=n.pop(),s[5]=i[2],e=n.length>0?n[n.length-1][4]:t;break;default:e.push(i)}return t}function Xl(r){this.string=r,this.tail=r,this.pos=0}Xl.prototype.eos=function(){return this.tail===""};Xl.prototype.scan=function(t){var e=this.tail.match(t);if(!e||e.index!==0)return"";var n=e[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n};Xl.prototype.scanUntil=function(t){var e=this.tail.search(t),n;switch(e){case-1:n=this.tail,this.tail="";break;case 0:n="";break;default:n=this.tail.substring(0,e),this.tail=this.tail.substring(e)}return this.pos+=n.length,n};function Va(r,t){this.view=r,this.cache={".":this.view},this.parent=t}Va.prototype.push=function(t){return new Va(t,this)};Va.prototype.lookup=function(t){var e=this.cache,n;if(e.hasOwnProperty(t))n=e[t];else{for(var i=this,s,a,o,l=!1;i;){if(t.indexOf(".")>0)for(s=i.view,a=t.split("."),o=0;s!=null&&o<a.length;)o===a.length-1&&(l=FE(s,a[o])||YY(s,a[o])),s=s[a[o++]];else s=i.view[t],l=FE(i.view,t);if(l){n=s;break}i=i.parent}e[t]=n}return Ny(n)&&(n=n.call(this.view)),n};function dn(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}dn.prototype.clearCache=function(){typeof this.templateCache!="undefined"&&this.templateCache.clear()};dn.prototype.parse=function(t,e){var n=this.templateCache,i=t+":"+(e||ur.tags).join(":"),s=typeof n!="undefined",a=s?n.get(i):void 0;return a==null&&(a=QY(t,e),s&&n.set(i,a)),a};dn.prototype.render=function(t,e,n,i){var s=this.getConfigTags(i),a=this.parse(t,s),o=e instanceof Va?e:new Va(e,void 0);return this.renderTokens(a,o,n,t,i)};dn.prototype.renderTokens=function(t,e,n,i,s){for(var a="",o,l,u,c=0,d=t.length;c<d;++c)u=void 0,o=t[c],l=o[0],l==="#"?u=this.renderSection(o,e,n,i,s):l==="^"?u=this.renderInverted(o,e,n,i,s):l===">"?u=this.renderPartial(o,e,n,s):l==="&"?u=this.unescapedValue(o,e):l==="name"?u=this.escapedValue(o,e,s):l==="text"&&(u=this.rawValue(o)),u!==void 0&&(a+=u);return a};dn.prototype.renderSection=function(t,e,n,i,s){var a=this,o="",l=e.lookup(t[1]);function u(f){return a.render(f,e,n,s)}if(!!l){if(za(l))for(var c=0,d=l.length;c<d;++c)o+=this.renderTokens(t[4],e.push(l[c]),n,i,s);else if(typeof l=="object"||typeof l=="string"||typeof l=="number")o+=this.renderTokens(t[4],e.push(l),n,i,s);else if(Ny(l)){if(typeof i!="string")throw new Error("Cannot use higher-order sections without the original template");l=l.call(e.view,i.slice(t[3],t[5]),u),l!=null&&(o+=l)}else o+=this.renderTokens(t[4],e,n,i,s);return o}};dn.prototype.renderInverted=function(t,e,n,i,s){var a=e.lookup(t[1]);if(!a||za(a)&&a.length===0)return this.renderTokens(t[4],e,n,i,s)};dn.prototype.indentPartial=function(t,e,n){for(var i=e.replace(/[^ \t]/g,""),s=t.split(`
`),a=0;a<s.length;a++)s[a].length&&(a>0||!n)&&(s[a]=i+s[a]);return s.join(`
`)};dn.prototype.renderPartial=function(t,e,n,i){if(!!n){var s=this.getConfigTags(i),a=Ny(n)?n(t[1]):n[t[1]];if(a!=null){var o=t[6],l=t[5],u=t[4],c=a;l==0&&u&&(c=this.indentPartial(a,u,o));var d=this.parse(c,s);return this.renderTokens(d,e,n,c,i)}}};dn.prototype.unescapedValue=function(t,e){var n=e.lookup(t[1]);if(n!=null)return n};dn.prototype.escapedValue=function(t,e,n){var i=this.getConfigEscape(n)||ur.escape,s=e.lookup(t[1]);if(s!=null)return typeof s=="number"&&i===ur.escape?String(s):i(s)};dn.prototype.rawValue=function(t){return t[1]};dn.prototype.getConfigTags=function(t){return za(t)?t:t&&typeof t=="object"?t.tags:void 0};dn.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!za(t))return t.escape};var ur={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(r){Ql.templateCache=r},get templateCache(){return Ql.templateCache}},Ql=new dn;ur.clearCache=function(){return Ql.clearCache()};ur.parse=function(t,e){return Ql.parse(t,e)};ur.render=function(t,e,n,i){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+UY(t)+'" was given as the first argument for mustache#render(template, view, partials)');return Ql.render(t,e,n,i)};ur.escape=GY;ur.Scanner=Xl;ur.Context=Va;ur.Writer=dn;var Iy=ur;var $E=ko(WE());var Vr=class{constructor(t){this.instruction=t}get queryComponent(){return this._queryComponent}set queryComponent(t){this._queryComponent=t}get error(){return this._error}set error(t){this._error=t}isValid(){return this._queryComponent!==void 0}static fromObject(t,e){let n=new Vr(t);return n._queryComponent=e,n}static fromError(t,e){let n=new Vr(t);return n._error=e,n}};var Zl=class extends Vr{};function Jl(r,t){try{let e=r.map(([s])=>s),n=t.includes("return")?t:`return ${t}`,i=t&&new Function(...e,n);return i instanceof Function?Zl.fromObject(t,i):Zl.fromError(t,`Problem parsing expression "${t}"`)}catch(e){return Zl.fromError(t,js(`Failed parsing expression "${t}"`,e))}}function eu(r,t){let e=t.map(([n,i])=>i);return r(...e)}function Ly(r,t,e){try{return eu(r,t)}catch(n){return js(`Failed calculating expression "${e}"`,n)}}function Uy(r,t){Iy.escape=function(e){return e};try{let e=eq(r,t);return Iy.render(e,(0,$E.default)(t))}catch(e){let n="";throw e instanceof Error?n=`There was an error expanding one or more placeholders.
The error message was:
${e.message.replace(/ > /g,".").replace("Missing Mustache data property","Unknown property")}`:n="Unknown error expanding placeholders.",n+=`
The problem is in:
${r}`,Error(n)}}var JY=new RegExp(["\\{\\{","(.*?)","\\}\\}"].join(""),"g");function eq(r,t){return r.replace(JY,(e,n)=>{let i=tq(t),s=Jl(i,n);if(s.isValid()){let a=eu(s.queryComponent,i);if(a===null)throw Error(`Invalid placeholder result 'null'.
Check for missing file property in this expression:
{{${n}}}`);if(a!==void 0)return a}return e})}function tq(r){return Object.entries(r)}vt();function Yy(r){return qy(r,[])}function qy(r,t){return{query:{file:r,allTasks:t,searchCache:{}},preset:U({},te().presets)}}Xg();vt();var Ka=class{constructor(t=""){this.indentation=t}explainQuery(t){if(t.error!==void 0)return this.explainError(t);let e=[];return e.push(this.explainIgnoreGlobalQuery(t)),e.push(this.explainFilters(t)),e.push(this.explainGroups(t)),e.push(this.explainSorters(t)),e.push(this.explainLayout(t)),e.push(this.explainQueryLimits(t)),e.push(this.explainDebugSettings()),e.filter(n=>n!=="").join(`
`)}explainError(t){let e="";return e+=`Query has an error:
`,e+=t.error+`
`,e}explainIgnoreGlobalQuery(t){return t.ignoreGlobalQuery?this.indent(`ignore global query
`):""}explainFilters(t){return t.filters.length===0?this.indent(`No filters supplied. All tasks will match the query.
`):t.filters.map(e=>e.explainFilterIndented(this.indentation)).join(`
`)}explainGroups(t){return this.explainStatements(t.grouping.map(e=>e.statement))}explainSorters(t){return this.explainStatements(t.sorting.map(e=>e.statement))}explainLayout(t){return this.explainStatements(t.layoutStatements)}explainQueryLimits(t){function e(i){let s=`At most ${i} task`;return i!==1&&(s+="s"),s}let n=[];if(t.limit!==void 0){let i=e(t.limit)+`.
`;n.push(this.indent(i))}if(t.taskGroupLimit!==void 0){let i=e(t.taskGroupLimit)+` per group (if any "group by" options are supplied).
`;n.push(this.indent(i))}return n.join(`
`)}explainDebugSettings(){let t="",{debugSettings:e}=te();return e.ignoreSortInstructions&&(t+=this.indent(`NOTE: All sort instructions, including default sort order, are disabled, due to 'ignoreSortInstructions' setting.
`)),t}explainStatements(t){return t.length===0?"":t.map(e=>e.explainStatement(this.indentation)).join(`
`)+`
`}indent(t){return this.indentation+t}};un();var ze=class{constructor(t,e=[],n=""){this.description=t,this.symbol=n,this.children=e}static booleanAnd(t){return this.combineOrCreateExplanation("All of",t,"AND")}static booleanOr(t){return this.combineOrCreateExplanation("At least one of",t,"OR")}static booleanNot(t){return new ze("None of",t,"NOT")}static booleanXor(t){return new ze("Exactly one of",t,"XOR")}asString(t=""){if(this.children.length==0)return t+this.description;let e=t;this.symbol===""?e+=this.description:(e+=this.symbol,this.children.length>1&&(e+=` (${this.description})`),e+=":");let n=t+" ";for(let i=0;i<this.children.length;i++)e+=`
${this.children[i].asString(n)}`;return e}static combineOrCreateExplanation(t,e,n){if(e.length===2){let i=e[0],s=e[1];if(i.symbol===n&&s.symbol==="")return i.children.push(s),i}return new ze(t,e,n)}};var Qa=class{matchesAnyOf(t){return t.some(e=>this.matches(e))}};var Xa=class extends Qa{constructor(e){super();this.stringToFind=e}matches(e){return Xa.stringIncludesCaseInsensitive(e,this.stringToFind)}static stringIncludesCaseInsensitive(e,n){return e.toLocaleLowerCase().includes(n.toLocaleLowerCase())}explanation(e){return new ze(e)}};var Xi=class extends Qa{constructor(e){super();this.regex=e}static validateAndConstruct(e){let n=/^\/(.+)\/([^/]*)$/,i=e.match(n);if(i!==null){let s=new RegExp(i[1],i[2]);return new Xi(s)}else return null}matches(e){return e.match(this.regex)!==null}static helpMessage(){return String.raw`See https://publish.obsidian.md/tasks/Queries/Regular+Expressions
Regular expressions must look like this:
/pattern/
or this:
/pattern/flags
Where:
- pattern: The 'regular expression' pattern to search for.
- flags: Optional characters that modify the search.
i => make the search case-insensitive
u => add Unicode support
Examples: /^Log/
/^Log/i
/File Name\.md/
/waiting|waits|waited/i
/\d\d:\d\d/
The following characters have special meaning in the pattern:
to find them literally, you must add a \ before them:
[\^$.|?*+()
CAUTION! Regular expression (or 'regex') searching is a powerful
but advanced feature that requires thorough knowledge in order to
use successfully, and not miss intended search results.
`}explanation(e){let i=nq(e,"using regex: ",this.regexAsString());return new ze(i)}regexAsString(){let e=`'${this.regex.source}' with `;switch(this.regex.flags.length){case 0:e+="no flags";break;case 1:e+=`flag '${this.regex.flags}'`;break;default:e+=`flags '${this.regex.flags}'`;break}return e}};function nq(r,t,e){var o;let n=r.match(/\//);if(!n)return"Error explaining instruction. Could not find a slash character";let i=2,s=((o=n.index)!=null?o:i)-i;return`${t.padEnd(s)}${e}`}var fn=class{constructor(t,e){this._rawInstruction=t,this._anyContinuationLinesRemoved=e.trim(),this._anyPlaceholdersExpanded=this._anyContinuationLinesRemoved}recordExpandedPlaceholders(t){this._anyPlaceholdersExpanded=t}get rawInstruction(){return this._rawInstruction}get anyContinuationLinesRemoved(){return this._anyContinuationLinesRemoved}get anyPlaceholdersExpanded(){return this._anyPlaceholdersExpanded}explainStatement(t){function e(a,o){o!==a&&(s+=` =>
${t}${o}`)}let n=this._rawInstruction.trim(),i=n.split(`
`).join(`
`+t),s=`${t}${i}`;return this._rawInstruction.includes(`
`)&&(s+=`
`+t),e(n,this._anyContinuationLinesRemoved),e(this._anyContinuationLinesRemoved,this._anyPlaceholdersExpanded),s}allLinesIdentical(){return this._rawInstruction===this._anyContinuationLinesRemoved&&this._rawInstruction===this._anyPlaceholdersExpanded}};var Er=class{constructor(t,e,n,i){this._statement=new fn(t,t),this.property=e,this.comparator=Er.maybeReverse(i,n)}setStatement(t){this._statement=t}get statement(){return this._statement}get instruction(){return this._statement.anyPlaceholdersExpanded}static maybeReverse(t,e){return t?Er.makeReversedComparator(e):e}static makeReversedComparator(t){return(e,n,i)=>t(e,n,i)*-1}};Ll();var Zi=class{constructor(t,e,n,i){this._statement=new fn(t,t),this.property=e,this.grouper=n,this.reverse=i}setStatement(t){this._statement=t}get statement(){return this._statement}get instruction(){return this._statement.anyPlaceholdersExpanded}};var Be=class{canCreateFilterForLine(t){return Be.lineMatchesFilter(this.filterRegExp(),t)}static lineMatchesFilter(t,e){return t?t.test(e):!1}static getMatch(t,e){return t?e.match(t):null}fieldNameSingular(){return this.fieldName()}fieldNameSingularEscaped(){return Hi(this.fieldNameSingular())}supportsSorting(){return!1}createSorterFromLine(t){if(!this.supportsSorting())return null;let e=Be.getMatch(this.sorterRegExp(),t);if(e===null)return null;let n=!!e[1];return this.createSorter(n)}sorterRegExp(){if(!this.supportsSorting())throw Error(`sorterRegExp() unimplemented for ${this.fieldNameSingular()}`);return new RegExp(`^sort by ${this.fieldNameSingularEscaped()}( reverse)?`,"i")}sorterInstruction(t){let e=`sort by ${this.fieldNameSingular()}`;return t&&(e+=" reverse"),e}comparator(){throw Error(`comparator() unimplemented for ${this.fieldNameSingular()}`)}createSorter(t){return new Er(this.sorterInstruction(t),this.fieldNameSingular(),this.comparator(),t)}createNormalSorter(){return this.createSorter(!1)}createReverseSorter(){return this.createSorter(!0)}supportsGrouping(){return!1}createGrouperFromLine(t){if(!this.supportsGrouping())return null;let e=Be.getMatch(this.grouperRegExp(),t);if(e===null)return null;let n=!!e[1];return this.createGrouper(n)}grouperRegExp(){if(!this.supportsGrouping())throw Error(`grouperRegExp() unimplemented for ${this.fieldNameSingular()}`);return new RegExp(`^group by ${this.fieldNameSingularEscaped()}( reverse)?$`,"i")}grouperInstruction(t){let e=`group by ${this.fieldNameSingular()}`;return t&&(e+=" reverse"),e}grouper(){throw Error(`grouper() unimplemented for ${this.fieldNameSingular()}`)}createGrouper(t){return new Zi(this.grouperInstruction(t),this.fieldNameSingular(),this.grouper(),t)}createNormalGrouper(){return this.createGrouper(!1)}createReverseGrouper(){return this.createGrouper(!0)}};var Jt=class{constructor(t,e,n){this._statement=new fn(t,t),this.explanation=n,this.filterFunction=e}get statement(){return this._statement}setStatement(t){this._statement=t}get instruction(){return this._statement.anyPlaceholdersExpanded}explainFilterIndented(t){let e=this._statement.explainStatement(t);return this.onlyNeedsOneLineExplanation()?`${e}
`:`${e} =>
${this.explanation.asString(t+" ")}
`}simulateExplainFilter(){return this.onlyNeedsOneLineExplanation()?this.explanation:new ze(this.instruction+" =>",[this.explanation])}onlyNeedsOneLineExplanation(){return this.explanation.asString("")===this.instruction}};var Se=class{constructor(t){this.object=t}get instruction(){return this.object.instruction}get filter(){return this.object.queryComponent}isValid(){return this.object.isValid()}get error(){return this.object.error}get filterFunction(){if(this.filter)return this.filter.filterFunction}static fromFilter(t){return new Se(Vr.fromObject(t.instruction,t))}static fromError(t,e){return new Se(Vr.fromError(t,e))}};var et=class extends Be{createFilterOrErrorMessage(t){let e=Be.getMatch(this.filterRegExp(),t);if(e===null)return Se.fromError(t,`do not understand query filter (${this.fieldName()})`);let n=e[1].toLowerCase(),i=e[2],s=null;if(n.includes("include"))s=new Xa(i);else if(n.includes("regex")){try{s=Xi.validateAndConstruct(i)}catch(l){let u=js("Parsing regular expression",l)+`
${Xi.helpMessage()}`;return Se.fromError(t,u)}if(s===null)return Se.fromError(t,`Invalid instruction: '${t}'
${Xi.helpMessage()}`)}if(s===null)return Se.fromError(t,`do not understand query filter (${this.fieldName()})`);let a=n.match(/not/)!==null,o=new Jt(t,this.getFilter(s,a),s.explanation(t));return Se.fromFilter(o)}fieldPattern(){return this.fieldNameSingularEscaped()}filterOperatorPattern(){return"includes|does not include|regex matches|regex does not match"}filterRegExp(){return new RegExp(`^(?:${this.fieldPattern()}) (${this.filterOperatorPattern()}) (.*)`,"i")}getFilter(t,e){return n=>{let i=t.matches(this.value(n));return e?!i:i}}comparator(){return(t,e)=>this.value(t).localeCompare(this.value(e),void 0,{numeric:!0})}grouper(){return t=>[this.value(t)]}static escapeMarkdownCharacters(t){return t.replace(/\\/g,"\\\\").replace(/_/g,"\\_")}};var Di=class extends et{fieldName(){return"description"}value(t){return Ce.getInstance().removeAsSubstringFrom(t.description)}supportsSorting(){return!0}comparator(){return(t,e)=>{let n=Di.cleanDescription(t.description),i=Di.cleanDescription(e.description);return n.localeCompare(i,void 0,{numeric:!0})}}static cleanDescription(t){t=Ce.getInstance().removeAsSubstringFrom(t);let e=/^\[\[?([^\]]*)]]?/,n=t.match(e);if(n!==null){let i=n[1];t=i.substring(i.indexOf("|")+1)+t.replace(e,"")}return t=this.replaceFormatting(t,/^\*\*([^*]+)\*\*/),t=this.replaceFormatting(t,/^\*([^*]+)\*/),t=this.replaceFormatting(t,/^==([^=]+)==/),t=this.replaceFormatting(t,/^__([^_]+)__/),t=this.replaceFormatting(t,/^_([^_]+)_/),t}static replaceFormatting(t,e){let n=t.match(e);return n!==null&&(t=n[1]+t.replace(e,"")),t}};_g();wg();vs();var ad=class{findUnexpandedDateText(t){let e=["<%","YYYY-MM-DD"];for(let n of e)if(t.includes(n))return this.unexpandedDateTextMessage(n);return null}unexpandedDateTextMessage(t){return`Instruction contains unexpanded template text: "${t}" - and cannot be interpreted.
Possible causes:
- The query is an a template file, and is not intended to be searched.
- A command such as "Replace templates in the active file" needs to be run.
- The core "Daily notes" plugin is in use, and the template contained
date calculations that it does not support.
- Some sample template text was accidentally pasted in to a tasks query,
instead of in to a template file.
See: https://publish.obsidian.md/tasks/Advanced/Daily+Agenda#Instruction+contains+unexpanded+template+text
`}};var od=class{constructor(t,e){this._instruction=t,this._filter=e}canCreateFilterForLine(t){return t.toLocaleLowerCase()===this._instruction.toLocaleLowerCase()}createFilterOrErrorMessage(t){return this.canCreateFilterForLine(t)?Se.fromFilter(new Jt(t,this._filter,new ze(t))):Se.fromError(t,`do not understand filter: ${t}`)}};var wn=class{constructor(){this._filters=[]}add(t,e){this._filters.push(new od(t,e))}canCreateFilterForLine(t){return this._filters.some(e=>e.canCreateFilterForLine(t))}createFilterOrErrorMessage(t){for(let e of this._filters){let n=e.createFilterOrErrorMessage(t);if(n.isValid())return n}return Se.fromError(t,`do not understand filter: ${t}`)}};var Mt=class extends Be{constructor(e=null){super();e!==null?this.filterInstructions=e:(this.filterInstructions=new wn,this.filterInstructions.add(`has ${this.fieldName()} date`,n=>this.date(n)!==null),this.filterInstructions.add(`no ${this.fieldName()} date`,n=>this.date(n)===null),this.filterInstructions.add(`${this.fieldName()} date is invalid`,n=>{let i=this.date(n);return i!==null&&!i.isValid()}))}canCreateFilterForLine(e){return this.filterInstructions.canCreateFilterForLine(e)?!0:super.canCreateFilterForLine(e)}createFilterOrErrorMessage(e){var f;let n=this.checkForUnexpandedTemplateText(e);if(n)return Se.fromError(e,n);let i=this.filterInstructions.createFilterOrErrorMessage(e);if(i.isValid())return i;let s=Be.getMatch(this.filterRegExp(),e);if(s===null)return Se.fromError(e,"do not understand query filter ("+this.fieldName()+" date)");let a=s[1],o=(f=s[2])==null?void 0:f.toLowerCase(),l=s[3],u=An.parseDateRange(l);if(!u.isValid()){let p=An.parseDate(a);p.isValid()&&(u=new on(p,p))}if(!u.isValid())return Se.fromError(e,"do not understand "+this.fieldName()+" date");let c=this.buildFilterFunction(o,u),d=Mt.buildExplanation(this.fieldNameForExplanation(),o,this.filterResultIfFieldMissing(),u);return Se.fromFilter(new Jt(e,c,d))}buildFilterFunction(e,n){let i;switch(e){case"before":i=s=>s?s.isBefore(n.start):this.filterResultIfFieldMissing();break;case"after":i=s=>s?s.isAfter(n.end):this.filterResultIfFieldMissing();break;case"on or before":case"in or before":i=s=>s?s.isSameOrBefore(n.end):this.filterResultIfFieldMissing();break;case"on or after":case"in or after":i=s=>s?s.isSameOrAfter(n.start):this.filterResultIfFieldMissing();break;default:i=s=>s?s.isSameOrAfter(n.start)&&s.isSameOrBefore(n.end):this.filterResultIfFieldMissing()}return this.getFilter(i)}getFilter(e){return n=>e(this.date(n))}filterRegExp(){return new RegExp(`^${this.fieldNameForFilterInstruction()} (((?:on|in) or before|before|(?:on|in) or after|after|on|in)? ?(.*))`,"i")}fieldNameForFilterInstruction(){return this.fieldName()}static buildExplanation(e,n,i,s){let a=n,o="YYYY-MM-DD (dddd Do MMMM YYYY)",l;switch(n){case"before":case"on or after":l=s.start.format(o);break;case"after":case"on or before":l=s.end.format(o);break;case"in or before":a="on or before",l=s.end.format(o);break;case"in or after":a="on or after",l=s.start.format(o);break;default:if(!s.start.isSame(s.end)){let c=`${e} date is between:`,d=[new ze(`${s.start.format(o)} and`),new ze(`${s.end.format(o)} inclusive`)];return i&&d.push(new ze(`OR no ${e} date`)),new ze(c,d)}a="on",l=s.start.format(o);break}let u=`${e} date is ${a} ${l}`;return i&&(u+=` OR no ${e} date`),new ze(u)}fieldNameForExplanation(){return this.fieldName()}supportsSorting(){return!0}comparator(){return(e,n)=>er(this.date(e),this.date(n))}supportsGrouping(){return!0}grouper(){return e=>{let n=this.date(e);return n===null?["No "+this.fieldName()+" date"]:n.isValid()?[n.format("YYYY-MM-DD dddd")]:["%%0%% Invalid "+this.fieldName()+" date"]}}checkForUnexpandedTemplateText(e){return new ad().findUnexpandedDateText(e)}};var ld=class extends Mt{fieldName(){return"created"}date(t){return t.createdDate}filterResultIfFieldMissing(){return!1}};var ud=class extends Mt{fieldName(){return"done"}date(t){return t.doneDate}filterResultIfFieldMissing(){return!1}};var Za=class extends Mt{fieldName(){return"due"}date(t){return t.dueDate}filterResultIfFieldMissing(){return!1}};var cr=class extends Be{constructor(){super(...arguments);this._filters=new wn}canCreateFilterForLine(e){return this._filters.canCreateFilterForLine(e)}createFilterOrErrorMessage(e){return this._filters.createFilterOrErrorMessage(e)}filterRegExp(){return null}};var cd=class extends cr{constructor(){super(),this._filters.add("exclude sub-items",t=>{if(t.indentation==="")return!0;let e=t.indentation.lastIndexOf(">");return e===-1?!1:/^ ?$/.test(t.indentation.slice(e+1))})}fieldName(){return"exclude"}};function dd(r,t){return[["task",r],["query",t?t.query:null]]}function jE(r,t,e){let n=dd(r,e||null),i=Jl(n,t);return i.error?i.error:Ly(i.queryComponent,n,t)}var tu=class{constructor(t){this.line=t,this.functionOrError=Jl(dd(null,null),t)}isValid(){return this.functionOrError.isValid()}get parseError(){return this.functionOrError.error}evaluate(t,e){if(!this.isValid())throw Error(`ErroLine truncated
The instruction was converted to the following simplified line:
${i.simplifiedLine}
Where the sub-expressions in the simplified line are:
${a}
For help, see:
https://publish.obsidian.md/tasks/Queries/Combining+Filters
`;return Se.fromError(e,l)}stringifySubExpressionsForErrorMessage(e){return Object.entries(e).map(([n,i])=>` '${n}': '${i}'
=> ${this.stringifySubExpressionStatus(i)}`).join(`
`)}stringifySubExpressionStatus(e){let n=ru(e);return n?n.error?`ERROR:
${n.error.split(`
`).map(s=>s.trim()).join(`
`)}`:"OK":`ERROR:
do not understand query`}helpMessageFromSimpleError(e,n){return`Could not interpret the following instruction as a Boolean combination:
${e}
The error message is:
${n}`}};var Sd=class extends et{fieldName(){return"filename"}value(t){let e=t.filename;return e===null?"":e+".md"}supportsSorting(){return!0}supportsGrouping(){return!0}grouper(){return t=>{let e=t.filename;return e===null?["Unknown Location"]:["[["+e+"]]"]}}};var oo=class extends Be{canCreateFilterForLine(t){return!1}createFilterOrErrorMessage(t){return Se.fromError(t,"Filtering by urgency is not yet supported")}fieldName(){return"urgency"}filterRegExp(){throw Error(`filterRegExp() unimplemented for ${this.fieldName()}`)}supportsSorting(){return!0}comparator(){return(t,e)=>e.urgency-t.urgency}supportsGrouping(){return!0}grouper(){return t=>[`${t.urgency.toFixed(2)}`]}createGrouper(t){return super.createGrouper(!t)}grouperInstruction(t){return super.grouperInstruction(!t)}};var Dd=class extends et{constructor(){super()}fieldName(){return"status.name"}value(t){return t.status.name}supportsSorting(){return!0}supportsGrouping(){return!0}};In();var Xr=class extends Be{canCreateFilterForLine(t){let e=new RegExp(`^(?:${this.fieldNameSingularEscaped()})`,"i");return Be.lineMatchesFilter(e,t)}createFilterOrErrorMessage(t){let e=Be.getMatch(this.filterRegExp(),t);if(e===null)return this.helpMessage(t);let n=e[1].toLowerCase(),i=e[2],s=zt[i.toUpperCase()];if(!s)return this.helpMessage(t);let a;switch(n){case"is":a=o=>o.status.type===s;break;case"is not":a=o=>o.status.type!==s;break;default:return this.helpMessage(t)}return Se.fromFilter(new Jt(t,a,new ze(t)))}filterRegExp(){return new RegExp(`^(?:${this.fieldNameSingularEscaped()}) (is|is not) ([^ ]+)$`,"i")}helpMessage(t){let e=Object.values(zt).filter(i=>i!=="EMPTY").join(" "),n=`Invalid ${this.fieldNameSingular()} instruction: '${t}'.
Allowed options: 'is' and 'is not' (without quotes).
Allowed values: ${e}
Note: values are case-insensitive,
so 'in_progress' works too, for example.
Example: ${this.fieldNameSingular()} is not NON_TASK`;return Se.fromError(t,n)}fieldName(){return"status.type"}value(t){return t.status.type}supportsSorting(){return!0}comparator(){return(t,e)=>{let n=Xr.groupName(t),i=Xr.groupName(e);return n.localeCompare(i,void 0,{numeric:!0})}}supportsGrouping(){return!0}grouper(){return t=>[Xr.groupName(t)]}static groupName(t){return t.status.typeGroupText}};var Ed=class extends et{fieldName(){return"recurrence"}value(t){return t.recurrence!==null?t.recurrence.toText():""}supportsGrouping(){return!0}grouper(){return t=>t.recurrence!==null?[t.recurrence.toText()]:["None"]}};var Od=class extends et{fieldName(){return"folder"}value(t){return t.file.folder}supportsGrouping(){return!0}grouper(){return t=>[et.escapeMarkdownCharacters(this.value(t))]}};var xd=class extends et{fieldName(){return"root"}value(t){return t.file.root}supportsGrouping(){return!0}grouper(){return t=>[et.escapeMarkdownCharacters(this.value(t))]}};var Rd=class extends et{fieldName(){return"backlink"}value(t){let e=t.getLinkText({isFilenameUnique:!0});return e===null?"Unknown Location":e}createFilterOrErrorMessage(t){return Se.fromError(t,"backlink field does not support filtering")}canCreateFilterForLine(t){return!1}supportsGrouping(){return!0}grouper(){return t=>{let e=t.filename;if(e===null)return["Unknown Location"];let n=t.precedingHeader;return n===null?["[["+e+"]]"]:[`[[${e}#${n}|${e} > ${n}]]`]}}};var Cd=class extends Mt{fieldName(){return"cancelled"}date(t){return t.cancelledDate}filterResultIfFieldMissing(){return!1}};var Md=class extends cr{constructor(){super(),this._filters.add("is blocking",(t,e)=>t.isBlocking(e.allTasks)),this._filters.add("is not blocking",(t,e)=>!t.isBlocking(e.allTasks)),this._filters.add("is blocked",(t,e)=>t.isBlocked(e.allTasks)),this._filters.add("is not blocked",(t,e)=>!t.isBlocked(e.allTasks))}fieldName(){return"blocking"}};var Ad=class extends et{constructor(){super();this.filterInstructions=new wn;this.filterInstructions.add("has id",e=>e.id.length>0),this.filterInstructions.add("no id",e=>e.id.length===0)}canCreateFilterForLine(e){return this.filterInstructions.canCreateFilterForLine(e)?!0:super.canCreateFilterForLine(e)}createFilterOrErrorMessage(e){let n=this.filterInstructions.createFilterOrErrorMessage(e);return n.isValid()?n:super.createFilterOrErrorMessage(e)}fieldName(){return"id"}value(e){return e.id}supportsSorting(){return!0}supportsGrouping(){return!0}};var Pd=class extends Be{constructor(){super();this.filterInstructions=new wn;this.filterInstructions.add("has depends on",e=>e.dependsOn.length>0),this.filterInstructions.add("no depends on",e=>e.dependsOn.length===0)}canCreateFilterForLine(e){return this.filterInstructions.canCreateFilterForLine(e)?!0:super.canCreateFilterForLine(e)}createFilterOrErrorMessage(e){let n=this.filterInstructions.createFilterOrErrorMessage(e);return n.isValid()?n:Se.fromError(e,"Unknown instruction")}fieldName(){return"blocked by"}filterRegExp(){return null}};var Nd=class extends cr{fieldName(){return"random"}supportsSorting(){return!0}comparator(){return(t,e)=>this.sortKey(t)-this.sortKey(e)}sortKey(t){let e=i=>{let s=0,a=9;for(;s<i.length;)a=Math.imul(a^i.charCodeAt(s++),387420489);return a^a>>>9},n=window.moment().format("Y-MM-DD");return e(n+" "+t.description)}};var Jy=[()=>new Dd,()=>new Xr,()=>new Ji,()=>new yd,()=>new Hs,()=>new gd,()=>new Cd,()=>new ld,()=>new hd,()=>new md,()=>new Za,()=>new ud,()=>new Ja,()=>new Od,()=>new xd,()=>new Rd,()=>new Di,()=>new Gs,()=>new pd,()=>new cd,()=>new Sd,()=>new oo,()=>new Ed,()=>new fd,()=>new Ad,()=>new Pd,()=>new Md,()=>new Nd,()=>new wd];function ru(r){for(let t of Jy){let e=t();if(e.canCreateFilterForLine(r))return e.createFilterOrErrorMessage(r)}return null}function i1(r){let t=/^sort by /i;if(r.match(t)===null)return null;for(let e of Jy){let i=e().createSorterFromLine(r);if(i)return i}return null}function s1(r){let t=/^group by /i;if(r.match(t)===null)return null;for(let e of Jy){let i=e().createGrouperFromLine(r);if(i)return i}return null}var Id=class{constructor(t,e,n){this.nestingLevel=t,this.displayName=e,this.property=n}};var Fd=class{constructor(t,e){this.lastHeadingAtLevel=new Array;this.groupers=e;let i=t.keys().next().value.length;for(let s=0;s<i;s++)this.lastHeadingAtLevel.push("")}getHeadingsForTaskGroup(t){let e=new Array;for(let n=0;n<t.length;n++){let i=t[n];if(i!=this.lastHeadingAtLevel[n]){e.push(new Id(n,i,this.groupers[n].property));for(let s=n;s<t.length;s++)this.lastHeadingAtLevel[s]="";this.lastHeadingAtLevel[n]=i}}return e}};var Ld=class{constructor(t){this.children=new Map;this.values=[];this.values=t}generateAllPaths(t=[]){let e=new Map;if(this.children.size==0)return e.set([...t],this.values),e;for(let[n,i]of this.children)t.push(n),i.generateAllPaths(t).forEach((a,o)=>e.set(o,a)),t.pop();return e}};var Ud=class extends Ld{},Yd=class{constructor(t,e,n){this.root=new Ud(e),this.buildGroupingTree(t,n)}buildGroupingTree(t,e){let n=[ Line truncated
`;return t}toString(){let t=`
`;for(let e of this.groupHeadings)t+=`${"#".repeat(Math.min(4+e.nestingLevel,6))} ${e.displayName}
`;return t+=this.tasksAsStringOfLines(),t}};var zs=class{constructor(t,e,n){this._groups=new Array;this._totalTaskCount=0;this._totalTaskCount=e.length,this._groupers=t;let s=new Yd(t,e,n).generateTaskTreeStorage();this.addTaskGroups(s),this.sortTaskGroups(),this.setGroupsHeadings(s)}get groupers(){return this._groupers}get groups(){return this._groups}totalTasksCount(){return this._totalTaskCount}toString(){let t="";for(let e of this.groups)t+=e.toString();return t}addTaskGroups(t){for(let[e,n]of t){let i=new qd(e,n);this.addTaskGroup(i)}}addTaskGroup(t){this._groups.push(t)}sortTaskGroups(){let t=(e,n)=>{let i=e.groups,s=n.groups;for(let a=0;a<i.length;a++){let o=this._groupers[a],l=i[a].localeCompare(s[a],void 0,{numeric:!0});if(l!==0)return o.reverse?-l:l}return 0};this._groups.sort(t)}setGroupsHeadings(t){let e=new Fd(t,this._groupers);for(let n of this._groups)n.setGroupHeadings(e.getHeadingsForTaskGroup(n.groups))}applyTaskLimit(t){this._groupers.length!==0&&(this._groups.forEach(e=>{e.applyTaskLimit(t)}),this.recalculateTotalTaskCount())}recalculateTotalTaskCount(){let t=[];this._groups.forEach(n=>{t=[...t,...n.tasks]});let e=[...new Set(t)];this._totalTaskCount=e.length}};var Oi=class{constructor(t,e){this.tasksFile=t,this.allTasks=[...e],this._queryContext=this.tasksFile?qy(this.tasksFile,this.allTasks):void 0}static fromAllTasks(t){return new Oi(void 0,t)}get queryPath(){var t,e;return(e=(t=this.tasksFile)==null?void 0:t.path)!=null?e:void 0}queryContext(){return this._queryContext}};function a1(r){return`task${r!==1?"s":""}`}var xi=class{constructor(t,e,n){this.totalTasksCountBeforeLimit=0;this._searchErrorMessage=void 0;this.taskGroups=t,this.totalTasksCountBeforeLimit=e,this._tasksFile=n}get searchErrorMessage(){return this._searchErrorMessage}set searchErrorMessage(t){this._searchErrorMessage=t}get totalTasksCount(){return this.taskGroups.totalTasksCount()}totalTasksCountDisplayText(){let t=this.totalTasksCount,e=this.totalTasksCountBeforeLimit;return t===e?`${t} ${a1(t)}`:`${t} of ${e} ${a1(e)}`}get groups(){return this.taskGroups.groups}static fromError(t){let e=new xi(new zs([],[],Oi.fromAllTasks([])),0,void 0);return e._searchErrorMessage=t,e}asMarkdown(){let t="";return t+=this.taskGroups.groups.map(e=>this.toString(e)).join(""),t}toString(t){let e=`
`;for(let n of t.groupHeadings)e+=`${"#".repeat(Math.min(4+n.nestingLevel,6))} ${n.displayName}
`;return e+=this.tasksAsStringOfLines(t.tasks),e}tasksAsStringOfLines(t){let e="";for(let n of t)e+=this.toFileLineString(n)+`
`;return e}toFileLineString(t){return`- [${t.status.symbol}] ${t.toString()}`}applyFilter(t){if(this._searchErrorMessage)return xi.fromError(this._searchErrorMessage);let e=this.taskGroups.groups.flatMap(a=>a.tasks),n=new Oi(this._tasksFile,e),i=a=>t.filterFunction(a,n),s=[...new Set(e.filter(i))];return new xi(new zs(this.taskGroups.groupers,s,n),this.totalTasksCountBeforeLimit,this._tasksFile)}};function o1(r){return r.endsWith("\\")}function l1(r){return r.endsWith("\\\\")}function Nq(r){return r.replace(/^[ \t]*/,"")}function Iq(r){return r.replace(/[ \t]*\\$/,"")}function Fq(r,t){let e=r;return t&&(e=Nq(r)),l1(e)?e=e.slice(0,-1):o1(r)&&(e=Iq(e)),e}function Wd(r){let t=[],e=!1,n="",i="",s=r+`
`;for(let a of s.split(`
`)){let o=Fq(a,e);e?(n+=`
`+a,i+=" "+o):(n=a,i=o),l1(a)?e=!1:e=o1(a),e||(i.trim()!==""&&t.push(new fn(n,i)),n="",i="")}return t}function u1(r){return Wd(r).map(t=>t.anyContinuationLinesRemoved)}var lo=class{static by(t,e,n){let i=this.defaultSorters().map(a=>a.comparator),s=[];for(let a of t)s.push(a.comparator);return e.sort(lo.makeCompositeComparator([...s,...i],n))}static defaultSorters(){return[new Xr().createNormalSorter(),new oo().createNormalSorter(),new Za().createNormalSorter(),new Hs().createNormalSorter(),new Ja().createNormalSorter()]}static makeCompositeComparator(t,e){return(n,i)=>{for(let s of t){let a=s(n,i,e);if(a!==0)return a}return 0}}};var c1=0,pn=class{constructor(t,e=void 0){this.statements=[];this._limit=void 0;this._taskGroupLimit=void 0;this._taskLayoutOptions=new Wr;this._queryLayoutOptions=new Qi;this.layoutStatements=[];this._filters=[];this._error=void 0;this._sorting=[];this._grouping=[];this._ignoreGlobalQuery=!1;this.hideOptionsRegexp=/^(hide|show) +(.*)/i;this.shortModeRegexp=/^short/i;this.fullModeRegexp=/^full/i;this.explainQueryRegexp=/^explain/i;this.ignoreGlobalQueryRegexp=/^ignore global query/i;this.logger=cn.getLogger("tasks.Query");this.limitRegexp=/^limit (groups )?(to )?(\d+)( tasks?)?/i;this.commentRegexp=/^#.*/;this.presetRegexp=/^preset +(.*)/i;this._queryId=this.generateQueryId(10),this.source=t,this.tasksFile=e;let n=Wd(t);for(let i of n){let s=this.expandPlaceholders(i,e);if(this.error!==void 0)return;this.statements.push(...s)}for(let i of this.statements)try{if(this.parseLine(i),this.error!==void 0)return}catch(s){let a;s instanceof Error?a=s.message:a="Unknown error",this.setError(a,i);return}}removeIllegalGlobalQueryInstructions(){this._ignoreGlobalQuery=!1}get filePath(){var t,e;return(e=(t=this.tasksFile)==null?void 0:t.path)!=null?e:void 0}get queryId(){return this._queryId}parseLine(t){let e=t.anyPlaceholdersExpanded;switch(!0){case this.presetRegexp.test(e):this.parsePreset(e,t);break;case this.shortModeRegexp.test(e):this._queryLayoutOptions.shortMode=!0,this.saveLayoutStatement(t);break;case this.fullModeRegexp.test(e):this._queryLayoutOptions.shortMode=!1,this.saveLayoutStatement(t);break;case this.explainQueryRegexp.test(e):this._queryLayoutOptions.explainQuery=!0;break;case this.ignoreGlobalQueryRegexp.test(e):this._ignoreGlobalQuery=!0;break;case this.limitRegexp.test(e):this.parseLimit(e);break;case this.parseSortBy(e,t):break;case this.parseGroupBy(e,t):break;case this.hideOptionsRegexp.test(e):this.parseHideOptions(t);break;case this.commentRegexp.test(e):break;case this.parseFilter(e,t):break;default:this.setError("do not understand query",t)}}formatQueryForLogging(){return`
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
${this.source}
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
`}expandPlaceholders(t,e){let n=t.anyContinuationLinesRemoved;if(n.includes("{{")&&n.includes("}}")&&this.tasksFile===void 0)return this._error=`The query looks like it contains a placeholder, with "{{" and "}}"
but no file path has been supplied, so cannot expand placeholder values.
The query is:
${n}`,[t];if(this.commentRegexp.test(n))return[t];let s=n;if(e){let a=Yy(e),o="";try{let u=0;for(;s!==o&&u<10;)o=s,s=Uy(o,a),u++;s!==n&&(s=Wd(s).map(c=>c.anyContinuationLinesRemoved).join(`
`))}catch(l){return l instanceof Error?this._error=l.message:this._error="Internal error. expandPlaceholders() threw something other than Error.",[t]}}return this.createStatementsFromExpandedPlaceholders(s,t)}createStatementsFromExpandedPlaceholders(t,e){let n=t.split(`
`).map(i=>i.trim()).filter(i=>i.length>0);return n.length===1?(e.recordExpandedPlaceholders(n[0]),[e]):n.map((i,s)=>{let a=`: statement ${s+1} after expansion of placeholder`,o=new fn(e.rawInstruction+a,e.anyContinuationLinesRemoved+a);return o.recordExpandedPlaceholders(i),o})}append(t){return this.source===""?t:t.source===""?this:new pn(`${this.source}
${t.source}`,this.tasksFile)}explainQuery(){return new Ka().explainQuery(this)}get limit(){return this._limit}get taskGroupLimit(){return this._taskGroupLimit}get taskLayoutOptions(){return this._taskLayoutOptions}get queryLayoutOptions(){return this._queryLayoutOptions}get filters(){return this._filters}addFilter(t){this._filters.push(t)}get sorting(){return this._sorting}get grouping(){return this._grouping}get error(){return this._error}setError(t,e){this._error=pn.generateErrorMessage(e,t)}static generateErrorMessage(t,e){return t.allLinesIdentical()?`${e}
Problem line: "${t.rawInstruction}"`:`${e}
Problem statement:
${t.explainStatement(" ")}
`}get ignoreGlobalQuery(){return this._ignoreGlobalQuery}applyQueryToTasks(t){this.debug(`[search] Executing query: ${this.formatQueryForLogging()}`);let e=new Oi(this.tasksFile,t),n;try{this.filters.forEach(l=>{n=l.statement,t=t.filter(u=>l.filterFunction(u,e))}),n=void 0;let{debugSettings:i}=te(),s=i.ignoreSortInstructions?t:lo.by(this.sorting,t,e),a=s.slice(0,this.limit),o=new zs(this.grouping,a,e);return this._taskGroupLimit!==void 0&&o.applyTaskLimit(this._taskGroupLimit),new xi(o,s.length,this.tasksFile)}catch(i){let a=js("Search failed",i);return n&&(a=pn.generateErrorMessage(n,a)),xi.fromError(a)}}parseHideOptions(t){let e=t.anyPlaceholdersExpanded,n=e.match(this.hideOptionsRegexp);if(n===null)return;let i=n[1].toLowerCase()==="hide",s=n[2].toLowerCase();if(IE(this._queryLayoutOptions,s,i)){this.saveLayoutStatement(t);return}if(AS(this._taskLayoutOptions,s,!i)){this.saveLayoutStatement(t);return}this.setError("do not understand hide/show option",new fn(e,e))}saveLayoutStatement(t){this.layoutStatements.push(t)}parseFilter(t,e){var i;let n=ru(t);return n!=null?(n.filter?(n.filter.setStatement(e),this._filters.push(n.filter)):this.setError((i=n.error)!=null?i:"Unknown error",e),!0):!1}parseLimit(t){let e=t.match(this.limitRegexp);if(e===null){this.setError("do not understand query limit",new fn(t,t));return}let n=Number.parseInt(e[3],10);e[1]!==void 0?this._taskGroupLimit=n:this._limit=n}parseSortBy(t,e){let n=i1(t);return n?(n.setStatement(e),this._sorting.push(n),!0):!1}parseGroupBy(t,e){let n=s1(t);return n?(n.setStatement(e),this._grouping.push(n),!0):!1}parsePreset(t,e){let n=this.presetRegexp.exec(t);if(n){let i=n[1].trim(),{presets:s}=te(),a=s[i];if(!a){this.setError(BS(i,s),e);return}let o=u1(a);for(let l of o){let u=new fn(e.rawInstruction,e.anyContinuationLinesRemoved);if(u.recordExpandedPlaceholders(l),l.includes("{{")&&l.includes("}}")&&this.tasksFile){let c=Yy(this.tasksFile),d=Uy(l,c);u.recordExpandedPlaceholders(d)}this.parseLine(u)}}}generateQueryId(t){return c1+=1,c1.toString().padStart(t,"0")}debug(t,e){this.logger.debugWithId(this._queryId,`"${this.filePath}": ${t}`,e)}warn(t,e){this.logger.warnWithId(this._queryId,`"${this.filePath}": ${t}`,e)}};var eb=[{name:"TQ_show_toolbar",type:"checkbox",display:"toolbar",handler:"showAndHide"},{name:"TQ_explain",type:"checkbox",display:"explain",handler:"instruction",trueValue:"explain",falseValue:""},{name:"TQ_short_mode",type:"checkbox",display:"short mode",handler:"instruction",trueValue:"short mode",falseValue:"full mode"},{name:"TQ_show_tree",type:"checkbox",display:"tree",handler:"showAndHide"},{name:"TQ_show_tags",type:"checkbox",display:"tags",handler:"showAndHide"},{name:"TQ_show_id",type:"checkbox",display:"id",handler:"showAndHide"},{name:"TQ_show_depends_on",type:"checkbox",display:"depends on",handler:"showAndHide"},{name:"TQ_show_priority",type:"checkbox",display:"priority",handler:"showAndHide"},{name:"TQ_show_recurrence_rule",type:"checkbox",display:"recurrence rule",handler:"showAndHide"},{name:"TQ_show_on_completion",type:"checkbox",display:"on completion",handler:"showAndHide"},{name:"TQ_show_created_date",type:"checkbox",display:"created date",handler:"showAndHide"},{name:"TQ_show_start_date",type:"checkbox",display:"start date",handler:"showAndHide"},{name:"TQ_show_scheduled_date",type:"checkbox",display:"scheduled date",handler:"showAndHide"},{name:"TQ_show_due_date",type:"checkbox",display:"due date",handler:"showAndHide"},{name:"TQ_show_cancelled_date",type:"checkbox",display:"cancelled date",handler:"showAndHide"},{name:"TQ_show_done_date",type:"checkbox",display:"done date",handler:"showAndHide"},{name:"TQ_show_urgency",type:"checkbox",display:"urgency",handler:"showAndHide"},{name:"TQ_show_backlink",type:"checkbox",display:"backlink",handler:"showAndHide"},{name:"TQ_show_edit_button",type:"checkbox",display:"edit button",handler:"showAndHide"},{name:"TQ_show_postpone_button",type:"checkbox",display:"postpone button",handler:"showAndHide"},{name:"TQ_show_task_count",type:"checkbox",display:"task count",handler:"showAndHide"},{name:"TQ_extra_instructions",type:"text",handler:"addValue"}],Ri=class{source(t){return t?eb.map(n=>this.generateInstruction(t,n)).filter(n=>n!=="").join(`
`):""}generateInstruction(t,e){let n=t.hasProperty(e.name),i=t.property(e.name);switch(e.handler){case"instruction":return n&&(i?e.trueValue:e.falseValue)||"";case"showAndHide":return n&&(i?"show "+e.display:"hide "+e.display)||"";case"addValue":return n&&i||"";default:throw new Error("Unknown handler type: "+e.handler+".")}}query(t){return new pn(this.source(t),t)}allPropertyNames(){return eb.map(t=>t.name)}allPropertyNamesSorted(){return this.allPropertyNames().sort((t,e)=>t.localeCompare(e))}propertyType(t){var e,n;return(n=(e=eb.find(i=>i.name===t))==null?void 0:e.type)!=null?n:void 0}metaBindPluginWidgets(){return"\ntoolbar: `INPUT[toggle:TQ_show_toolbar]`\nshort mode: `INPUT[toggle:TQ_short_mode]`\ntree: `INPUT[toggle:TQ_show_tree]`\ntags: `INPUT[toggle:TQ_show_tags]`\nid: `INPUT[toggle:TQ_show_id]` depends on: `INPUT[toggle:TQ_show_depends_on]`\npriority: `INPUT[toggle:TQ_show_priority]`\nrecurrence rule: `INPUT[toggle:TQ_show_recurrence_rule]` on completion: `INPUT[toggle:TQ_show_on_completion]`\nstart date: `INPUT[toggle:TQ_show_start_date]` scheduled date: `INPUT[toggle:TQ_show_scheduled_date]` due date: `INPUT[toggle:TQ_show_due_date]`\ncreated date: `INPUT[toggle:TQ_show_created_date]` cancelled date: `INPUT[toggle:TQ_show_cancelled_date]` done date: `INPUT[toggle:TQ_show_done_date]`\nurgency: `INPUT[toggle:TQ_show_urgency]`\nbacklink: `INPUT[toggle:TQ_show_backlink]`\nedit button: `INPUT[toggle:TQ_show_edit_button]` postpone button: `INPUT[toggle:TQ_show_postpone_button]`\ntask count: `INPUT[toggle:TQ_show_task_count]`\nextra instructions: `INPUT[textArea:TQ_extra_instructions]`\nexplain: `INPUT[toggle:TQ_explain]`\n"}};function d1(r,t){return A(this,null,function*(){yield r.fileManager.processFrontMatter(t,e=>{let n=new Ri().allPropertyNamesSorted(),i=!1;n.forEach(s=>{s in e||(e[s]=null,i=!0)}),i?new tb.Notice("Properties updated successfully."):new tb.Notice("All supported properties are already present.")})})}var $d=class{get app(){return this.plugin.app}constructor({plugin:t}){this.plugin=t,t.addCommand({id:"edit-task",name:"Create or edit task",icon:"pencil",editorCheckCallback:(e,n,i)=>PE(e,n,i,this.app,this.plugin.getTasks(),()=>A(this,null,function*(){return yield this.plugin.saveSettings()}))}),t.addCommand({id:"toggle-done",name:"Toggle task done",icon:"check-in-circle",editorCheckCallback:NE}),t.addCommand({id:"add-query-file-defaults-properties",name:"Add all Query File Defaults properties",icon:"settings",checkCallback:e=>{let n=this.app.workspace.getActiveFile();return!n||n.extension!=="md"?!1:(e||this.ensureQueryFileDefaultsFrontmatter(n).catch(console.error),!0)}})}ensureQueryFileDefaultsFrontmatter(t){return A(this,null,function*(){let{app:e}=this;yield d1(e,t)})}};var Ci=class{constructor(t=Ci.empty){this._source=t}static getInstance(){return Ci.instance||(Ci.instance=new Ci),Ci.instance}set(t){this._source=t}reset(){this._source=Ci.empty}query(t=void 0){let e=new pn(this._source,t);return e.removeIllegalGlobalQueryInstructions(),e}hasInstructions(){return this._source.trim()!==Ci.empty}},Gn=Ci;Gn.empty="";As();var jd=class{constructor({obsidianEvents:t}){this.logger=cn.getLogger("tasks.Events");this.obsidianEvents=t}onCacheUpdate(t){this.logger.debug("TasksEvents.onCacheUpdate()");let e="obsidian-tasks-plugin:cache-update";return this.obsidianEvents.on(e,t)}triggerCacheUpdate(t){this.logger.debug("TasksEvents.triggerCacheUpdate()"),this.obsidianEvents.trigger("obsidian-tasks-plugin:cache-update",t)}onRequestCacheUpdate(t){this.logger.debug("TasksEvents.onRequestCacheUpdate()");let e="obsidian-tasks-plugin:request-cache-update";return this.obsidianEvents.on(e,t)}triggerRequestCacheUpdate(t){this.logger.debug("TasksEvents.triggerRequestCacheUpdate()"),this.obsidianEvents.trigger("obsidian-tasks-plugin:request-cache-update",t)}onReloadOpenSearchResults(t){this.logger.debug("TasksEvents.onReloadOpenSearchResults()");let e="obsidian-tasks-plugin:reload-open-search-results";return this.obsidianEvents.on(e,t)}triggerReloadOpenSearchResults(){this.logger.debug("TasksEvents.triggerReloadOpenSearchResults()"),this.obsidianEvents.trigger("obsidian-tasks-plugin:reload-open-search-results")}onReloadVault(t){this.logger.debug("TasksEvents.onReloadVault()");let e="obsidian-tasks-plugin:reload-vault";return this.obsidianEvents.on(e,t)}triggerReloadVault(){this.logger.debug("TasksEvents.triggerReloadVault()"),this.obsidianEvents.trigger("obsidian-tasks-plugin:reload-vault")}off(t){this.logger.debug("TasksEvents.off()"),this.obsidianEvents.offref(t)}};var F1=require("obsidian");un();Es();Ut();var I1=require("obsidian");un();vt();Ut();Bi();Wc();function f1(r){for(let e of me.allDateFields()){let n=r[e];if(n&&!n.isValid())return!1}let t=r.happensDates.some(e=>!!(e!=null&&e.isValid()));return!r.isDone&&t}function uo(r){return r.dueDate?"dueDate":r.scheduledDate?"scheduledDate":r.startDate?"startDate":null}function nb(r,t,e,n){let i=r[t];return h1(i,r,t,e,n)}function p1(r,t,e,n){let i=window.mome Line truncated
<span class='flatpickr-weekday'>
`+y.join("</span><span class='flatpickr-weekday'>")+`
</span>
`}}function k(){e.calendarContainer.classList.add("hasWeeks");var h=Ve("div","flatpickr-weekwrapper");h.appendChild(Ve("span","flatpickr-weekday",e.l10n.weekAbbreviation));var y=Ve("div","flatpickr-weeks");return h.appendChild(y),{weekWrapper:h,weekNumbers:y}}function w(h,y){y===void 0&&(y=!0);var D=y?h:h-e.currentMonth;D<0&&e._hidePrevMonthArrow===!0||D>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=D,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,at("onYearChange"),P()),G(),at("onMonthChange"),mu())}function R(h,y){if(h===void 0&&(h=!0),y===void 0&&(y=!0),e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,y===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){var D=Zd(e.config),I=D.hours,z=D.minutes,ne=D.seconds;p(I,z,ne)}e.redraw(),h&&at("onChange")}function N(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),at("onClose")}function Y(){e.config!==void 0&&at("onDestroy");for(var h=e._handlers.length;h--;)e._handlers[h].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){var y=e.calendarContainer.parentNode;if(y.lastChild&&y.removeChild(y.lastChild),y.parentNode){for(;y.firstChild;)y.parentNode.insertBefore(y.firstChild,y);y.parentNode.removeChild(y)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(D){try{delete e[D]}catch(I){}})}function L(h){return e.calendarContainer.contains(h)}function S(h){if(e.isOpen&&!e.config.inline){var y=Dn(h),D=L(y),I=y===e.input||y===e.altInput||e.element.contains(y)||h.path&&h.path.indexOf&&(~h.path.indexOf(e.input)||~h.path.indexOf(e.altInput)),z=!I&&!D&&!L(h.relatedTarget),ne=!e.config.ignoredFocusElements.some(function(Oe){return Oe.contains(y)});z&&ne&&(e.config.allowInput&&e.setDate(e._input.value,!1,e.config.altInput?e.config.altFormat:e.config.dateFormat),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&l(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&e.clear(!1))}}function $(h){if(!(!h||e.config.minDate&&h<e.config.minDate.getFullYear()||e.config.maxDate&&h>e.config.maxDate.getFullYear())){var y=h,D=e.currentYear!==y;e.currentYear=y||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),D&&(e.redraw(),at("onYearChange"),P())}}function de(h,y){var D;y===void 0&&(y=!0);var I=e.parseDate(h,void 0,y);if(e.config.minDate&&I&&En(I,e.config.minDate,y!==void 0?y:!e.minDateHasTime)<0||e.config.maxDate&&I&&En(I,e.config.maxDate,y!==void 0?y:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(I===void 0)return!1;for(var z=!!e.config.enable,ne=(D=e.config.enable)!==null&&D!==void 0?D:e.config.disable,Oe=0,ue=void 0;Oe<ne.length;Oe++){if(ue=ne[Oe],typeof ue=="function"&&ue(I))return z;if(ue instanceof Date&&I!==void 0&&ue.getTime()===I.getTime())return z;if(typeof ue=="string"){var Me=e.parseDate(ue,void 0,!0);return Me&&Me.getTime()===I.getTime()?z:!z}else if(typeof ue=="object"&&I!==void 0&&ue.from&&ue.to&&I.getTime()>=ue.from.getTime()&&I.getTime()<=ue.to.getTime())return z}return!z}function ye(h){return e.daysContainer!==void 0?h.className.indexOf("hidden")===-1&&h.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(h):!1}function fe(h){var y=h.target===e._input,D=e._input.value.trimEnd()!==Tf();y&&D&&!(h.relatedTarget&&L(h.relatedTarget))&&e.setDate(e._input.value,!0,h.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function ve(h){var y=Dn(h),D=e.config.wrap?r.contains(y) Line truncated
`);if(p===void 0)return!1;let g=null;for(let v=0;v<p.length;v=v+1)if(p[v]!==""){g=p[v];break}return g===null?!1:Ce.getInstance().includedIn(g)});if(i.length===0)return;let s=e.sourcePath,a=e.getSectionInfo(t);if(a===null)return;let o=a.text.split(`
`),l=0,u=[];for(let f=a.lineStart;f<=a.lineEnd;f++){let p=o[f];if(p===void 0)continue;let g=null,b=me.fromLine({line:p,taskLocation:new Wt(new bt(s),f,a.lineStart,l,g),fallbackDate:null});b!==null&&(u.push(b),l++)}let c=new Jr({obsidianApp:this.app,obsidianComponent:n,taskLayoutOptions:new Wr,queryLayoutOptions:new Qi});for(let f=0;f<i.length;f++){let p=u[f],g=i[f];if(p===void 0||g===void 0)continue;let b=(d=g.getAttr("data-line"))!=null?d:"0",v=Number.parseInt(b,10),E=Ze("li",t);yield c.renderTaskLine({li:E,task:p,taskIndex:v,isTaskInQueryFile:!0});let x=g.childNodes;for(let V=0;V<x.length;V=V+1){let Z=x[V],j=Z.nodeName.toLowerCase();j==="div"?E.prepend(Z):(j==="ul"||j==="ol")&&E.append(Z)}let O=g.querySelectorAll("[data-footnote-id]"),q=E.querySelectorAll("[data-footnote-id]");if(O.length===q.length)for(let V=0;V<O.length;V++)q[V].replaceWith(O[V]);g.replaceWith(E)}})}};var L1=require("@codemirror/view"),U1=require("obsidian");Ut();var Y1=()=>L1.ViewPlugin.fromClass(fb),fb=class{constructor(t){this.view=t,this.handleClickEvent=this.handleClickEvent.bind(this),this.view.dom.addEventListener("click",this.handleClickEvent)}destroy(){this.view.dom.removeEventListener("click",this.handleClickEvent)}handleClickEvent(t){let{target:e}=t;if(!e||!(e instanceof HTMLInputElement)||e.type!=="checkbox")return!1;let n=e.closest("ul.plugin-tasks-query-result, div.callout-content");if(n){if(n.matches("div.callout-content")){let p=`obsidian-tasks-plugin warning: Tasks cannot add or remove completion dates or make the next copy of a recurring task for tasks written inside a callout when you click their checkboxes in Live Preview.
If you wanted Tasks to do these things, please undo your change, then either click the line of the task and use the "Toggle Task Done" command, or switch to Reading View to click the checkbox.`;console.warn(p),new U1.Notice(p,45e3)}return!1}let{state:i}=this.view,s=this.view.posAtDOM(e),a=i.doc.lineAt(s),o=me.fromLine({line:a.text,taskLocation:Wt.fromUnknownPosition(new bt("")),fallbackDate:null});if(o===null)return!1;t.preventDefault();let l=o.toggleWithRecurrenceInUsersOrder(),u=l.map(p=>p.toFileLineString()).join(i.lineBreak),c=a.to;if(u===""){let p=a.number<i.doc.lines?i.doc.line(a.number+1):null;p&&(c=p.from)}let d=i.update({changes:{from:a.from,to:c,insert:u}});if(this.view.dispatch(d),l.length===1){let p=l[0].status.symbol!==" ";setTimeout(()=>{e.checked=p},1)}return!0}};var Ai=require("obsidian"),$1=require("obsidian");function q1(r,t,e,n=void 0){let i="";t.isEmpty()||(i+=`Only tasks containing the global filter '${t.get()}'.
`);let s=new Ka(" ");function a(c,d){return`${c}:
${s.explainQuery(d)}`}let o=new pn(r,n),l=new Ri().query(n);if(!(o.ignoreGlobalQuery||l.ignoreGlobalQuery)&&e.hasInstructions()){let c=e.query(n);i+=a("Explanation of the global query",c)+`
`}return l.source!==""&&(i+=a("Explanation of the Query File Defaults (from properties/frontmatter in the query's file)",l)+`
`),i+=a("Explanation of this Tasks code block query",o),i}function nf(r,t,e){let i=new Ri().query(e).append(new pn(r,e));return i.ignoreGlobalQuery?i:t.query(e).append(i)}Bi();var ei=require("obsidian");function uu(r,t,e){t&&r.push(Wq(e))}function Wq(r){return`tasks-layout-hide-${r}`}var rf=class{constructor(t){t?this.queryLayoutOptions=t:this.queryLayoutOptions=new Qi}getHiddenClasses(){let t=[],e=[[this.queryLayoutOptions.hideUrgency,"urgency"],[this.queryLayoutOptions.hideBacklinks,"backlinks"],[this.queryLayoutOptions.hideEditButton,"edit-button"],[this.queryLayoutOptions.hidePostponeButton,"postpone-button"]];for(let[n,i]of e)uu(t,n,i);return this.queryLayoutOptions.shortMode&&t.push("tasks-layout-short-mode"),t}};Es();var sf=class{constructor(t){t?this.taskLayoutOptions=t:this.taskLayoutOptions=new Wr}generateHiddenClasses(){let t=[];return this.taskLayoutOptions.toggleableComponents.forEach(e=>{uu(t,!this.taskLayoutOptions.isShown(e),e)}),uu(t,!this.taskLayoutOptions.areTagsShown(),"tags"),t}};var pb=require("obsidian");var ss=class extends rs{constructor(t,e,n=Zr){super(n);let i=(u,c,d,f,p,g)=>{var x;let b=!1,v=uo(e);if(v){let{postponedDate:O}=g(e,v,d,f);(x=e[v])!=null&&x.isSame(O,"day")&&(b=!0)}let E=p(e,f,d);c.setChecked(b).setTitle(E).onClick(()=>ss.postponeOnClickCallback(u,e,f,d,g,n))},s=T1,a=p1;this.addItem(u=>i(t,u,"days",0,s,a)),this.addItem(u=>i(t,u,"day",1,s,a)),this.addSeparator();let o=rb,l=nb;o(e,1,"day")!==s(e,1,"day")&&this.addItem(u=>i(t,u,"day",1,o,l)),this.addItem(u=>i(t,u,"days",2,o,l)),this.addItem(u=>i(t,u,"days",3,o,l)),this.addItem(u=>i(t,u,"days",4,o,l)),this.addItem(u=>i(t,u,"days",5,o,l)),this.addItem(u=>i(t,u,"days",6,o,l)),this.addSeparator(),this.addItem(u=>i(t,u,"week",1,o,l)),this.addItem(u=>i(t,u,"weeks",2,o,l)),this.addItem(u=>i(t,u,"weeks",3,o,l)),this.addItem(u=>i(t,u,"month",1,o,l)),this.addSeparator(),this.addItem(u=>i(t,u,"days",2,v1,m1))}static postponeOnClickCallback(o,l,u,c){return A(this,arguments,function*(t,e,n,i,s=nb,a=Zr){var g;let d=uo(e);if(d===null){let b="\u26A0\uFE0F Postponement requires a date: due, scheduled or start.";return new pb.Notice(b,1e4)}let{postponedDate:f,postponedTask:p}=s(e,d,i,n);(g=e[d])!=null&&g.isSame(f,"day")||(yield a(e,p),ss.postponeSuccessCallback(t,d,f))})}static postponeSuccessCallback(t,e,n){t.style.pointerEvents="none";let i=y1(n,e);new pb.Notice(i,2e3)}};un();Ut();var yo=class{constructor(t){this.addedListItems=new Set;this.getters=t}get filePath(){return this.getters.tasksFile().path}renderQuery(t,e){return A(this,null,function*(){this.beginRender();let i=this.getters.query().error;t==="Warm"&&i===void 0?yield this.renderQuerySearchResults(e):i?this.renderErrorMessage(i):this.renderLoadingMessage()})}renderQuerySearchResults(t){return A(this,null,function*(){if(this.explainQuery(),t.searchErrorMessage!==void 0){this.renderErrorMessage(t.searchErrorMessage);return}yield this.renderSearchResults(t)})}explainQuery(){if(this.getters.query().queryLayoutOptions.explainQuery){let t=q1(this.getters.source(),Ce.getInstance(),Gn.getInstance(),this.getters.tasksFile());this.renderExplanation(t)}}renderSearchResults(t){return A(this,null,function*(){this.renderSearchResultsHeader(t),yield this.addAllTaskGroups(t.taskGroups);let e=t.totalTasksCount;this.getters.query().debug(`[render] ${e} tasks displayed`),this.renderSearchResultsFooter(t)})}addAllTaskGroups(t){return A(this,null,function*(){for(let e of t.groups)yield this.addGroupHeadings(e.groupHeadings),this.addedListItems.clear(),yield this.addTaskList(e.tasks)})}addTaskList(t){return A(this,null,function*(){this.beginTaskList();try{this.getters.query().queryLayoutOptions.hideTree?yield this.addFlatTaskList(t):yield this.addTreeTaskList(t)}finally{this.endTaskList()}})}addFlatTaskList(t){return A(this,null,function*(){for(let[e,n]of t.entries())n instanceof me&&(this.beginListItem(),yield this.addTask(n,e))})}addTreeTaskList(t){return A(this,null,function*(){for(let[e,n]of t.entries())this.alreadyAdded(n)||this.willBeAddedLater(n,t)||(this.beginListItem(),n instanceof me?yield this.addTask(n,e):yield this.addListItem(n,e),yield this.addChildren(n.children),this.addedListItems.add(n))})}willBeAddedLater(t,e){let n=t.findClosestParentTask();return n?!!(!this.addedListItems.has(n)&&e.includes(n)):!1}alreadyAdded(t){return this.addedListItems.has(t)}addChildren(t){return A(this,null,function*(){t.length>0&&(yield this.addTaskList(t))})}addGroupHeadings(t){return A(this,null,function*(){for(let e of t)yield this.addGroupHeading(e)})}};var af=class extends yo{constructor(e,n,i,s,a,o){super(o);this.content=document.createElement("div");this.ulElementStack=[];this.lastLIElement=document.createElement("li");this.renderMarkdown=e,this.obsidianComponent=n,this.obsidianApp=i,this.textRenderer=s,this.queryRendererParameters=a,this.taskLineRenderer=this.createTaskLineRenderer()}createTaskLineRenderer(){return new Jr({textRenderer:this.textRenderer,obsidianApp:this.obsidianApp,obsidianCompo Line truncated
`)}beginRender(){this.markdownLines.length=0,this.taskIndentationLevel=0}renderSearchResultsHeader(e){}renderSearchResultsFooter(e){}renderLoadingMessage(){}renderExplanation(e){e&&this.markdownLines.push(e)}renderErrorMessage(e){}beginTaskList(){this.taskIndentationLevel+=1}endTaskList(){this.taskIndentationLevel-=1,this.taskIndentationLevel===0&&this.addEmptyLine()}addEmptyLine(){this.markdownLines.push("")}beginListItem(){}addTask(e,n){return this.markdownLines.push(this.formatTask(e)),Promise.resolve()}formatTask(e){return`${this.listItemIndentation()}- [${e.status.symbol}] ${e.toString()}`}addListItem(e,n){return this.markdownLines.push(this.formatListItem(e)),Promise.resolve()}formatListItem(e){let n=e.statusCharacter?`[${e.statusCharacter}] `:"";return`${this.listItemIndentation()}- ${n}${e.description}`}listItemIndentation(){let e=Math.max(0,this.taskIndentationLevel-1);return" ".repeat(e)}addGroupHeading(e){let n="#".repeat(Math.min(4+e.nestingLevel,6));return this.markdownLines.push(`${n} ${e.displayName}`),this.addEmptyLine(),Promise.resolve()}};var lf=class{constructor(t,e,n,i,s,a,o,l){this._filterString="";switch(this.source=e,this._tasksFile=n,this.queryResult=new pn("").applyQueryToTasks([]),this.filteredQueryResult=this.queryResult,t){case"block-language-tasks":this.query=this.makeQueryFromSourceAndTasksFile(),this.queryType="tasks";break;default:this.query=this.makeQueryFromSourceAndTasksFile(),this.queryType="tasks";break}let u={source:()=>this.source,tasksFile:()=>this._tasksFile,query:()=>this.query};this.htmlRenderer=new af(i,s,a,o,l,u),this.markdownRenderer=new of(u)}get filterString(){return this._filterString}makeQueryFromSourceAndTasksFile(){return nf(this.source,Gn.getInstance(),this.tasksFile)}get tasksFile(){return this._tasksFile}setTasksFile(t){this._tasksFile=t,this.rereadQueryFromFile()}rereadQueryFromFile(){this.query=this.makeQueryFromSourceAndTasksFile()}get filePath(){return this.tasksFile.path}render(t,e,n){return A(this,null,function*(){this.performSearch(e),this.addToolbar(n),yield this.renderQueryResult(t,this.filteredQueryResult,n)})}performSearch(t){let e=new Ps(`Search: ${this.query.queryId} - ${this.filePath}`);e.start(),this.queryResult=this.query.applyQueryToTasks(t),this.filterResults(),e.finish()}renderQueryResult(t,e,n){return A(this,null,function*(){let i=new Ps(`Render: ${this.query.queryId} - ${this.filePath}`);i.start(),this.htmlRenderer.content=n,yield this.htmlRenderer.renderQuery(t,e),i.finish()})}addToolbar(t){if(this.query.queryLayoutOptions.hideToolbar)return;let e=Ze("div",t);e.classList.add("plugin-tasks-toolbar"),this.addSearchBox(e,t),this.addCopyButton(e)}addSearchBox(t,e){let n=Ze("label",t);(0,ei.setIcon)(n,"lucide-filter");let i=Ze("input",n);i.value=this._filterString,i.placeholder="Filter by description...",(0,ei.setTooltip)(i,"Filter results");let s=()=>A(this,null,function*(){let a=i.value;yield this.applySearchBoxFilterAndRerender(a,e)});i.addEventListener("input",(0,ei.debounce)(s,500,!0))}applySearchBoxFilterAndRerender(t,e){return A(this,null,function*(){for(this._filterString=t,this.filterResults();e.firstElementChild!==e.lastElementChild;){let n=e.lastChild;if(n===null)break;n.remove()}yield this.renderQueryResult("Warm",this.filteredQueryResult,e)})}filterResults(){let{filter:t,error:e}=new Di().createFilterOrErrorMessage("description includes "+this._filterString);if(e){this.filteredQueryResult=this.queryResult;return}this.filteredQueryResult=this.queryResult.applyFilter(t)}addCopyButton(t){let e=Ze("button",t);(0,ei.setIcon)(e,"lucide-copy"),(0,ei.setTooltip)(e,"Copy results"),e.addEventListener("click",()=>A(this,null,function*(){let n=yield this.resultsAsMarkdown();yield navigator.clipboard.writeText(n),new ei.Notice("Results copied to clipboard")}))}resultsAsMarkdown(){return A(this,null,function*(){return yield this.markdownRenderer.renderQuery("Warm",this.filteredQueryResult),this.markdownRenderer.markdown})}};var uf=class{constructor({plugin:t,events:e}){this.addQueryRenderChild=this._addQueryRenderChild.bind(this);this.app=t.app,this.plugin=t,this.events=e,t.registerMarkdownCodeBlockProcessor("tasks",(n,i,s)=>{t.app.workspace.onLayoutReady(()=>{this.addQueryRenderChild(n,i,s)})})}_addQueryRenderChild(t,e,n){return A(this,null,function*(){let i=this.app,s=n.sourcePath,a=i.vault.getAbstractFileByPath(s),o=null;a&&a instanceof Ai.TFile&&(o=i.metadataCache.getFileCache(a));let l=new bt(s,o!=null?o:{}),u=new mb({app:i,plugin:this.plugin,events:this.events,container:e,source:t,tasksFile:l});n.addChild(u),u.load()})}},mb=class extends Ai.MarkdownRenderChild{constructor({app:e,plugin:n,events:i,container:s,source:a,tasksFile:o}){super(s);this.isCacheChangedSinceLastRedraw=!1;this.observer=null;this.isRendering=!1;this.app=e,this.plugin=n,this.events=i,this.queryResultsRenderer=new lf(this.containerEl.className,a,o,Ai.MarkdownRenderer.render,this,this.app,Jr.obsidianMarkdownRenderer,{allTasks:()=>this.plugin.getTasks(),allMark Line truncated
`,this._markdown+=`${e}
`}addRow(t){let e=this.makeRowText(t);this._markdown+=`${e}
`}addRowIfNew(t){let e=this.makeRowText(t);this._markdown.includes(e)||(this._markdown+=`${e}
`)}makeRowText(t){let e="|";return t.forEach(n=>{e+=` ${n} |`}),e}};Ni();un();In();_r();$r();function j1(r,t){return r.findIndex(e=>e.symbol===t)}function Pi(r){return r===""?r:"`"+(r!==" "?r:"space")+"`"}function Gq(r,t){let e=Te.getTypeForUnknownSymbol(r.symbol);if(r.type===e||e==="TODO"&&r.symbol!==" ")return;let n=Pi(r.symbol),i=Pi(e);t.push(M.t("reports.statusRegistry.messages.notConventionalType",{symbol:n,type:i}))}function Bq(r,t,e){let n=t.nextStatusSymbol,i=j1(r,n);if(i===-1){let a=Pi(n);e.push(M.t("reports.statusRegistry.messages.nextSymbolUnknown",{symbol:a}));return}if(t.type!=="DONE")return;let s=r[i];if(s){if(s.type!=="TODO"&&s.type!=="IN_PROGRESS"){let a="https://publish.obsidian.md/tasks/Getting+Started/Statuses/Recurring+Tasks+and+Custom+Statuses",o=Pi(s.type),l=[M.t("reports.statusRegistry.messages.wrongTypeAfterDone.line1",{nextType:o}),M.t("reports.statusRegistry.messages.wrongTypeAfterDone.line2"),M.t("reports.statusRegistry.messages.wrongTypeAfterDone.line3",{helpURL:a})].join("<br>");e.push(l)}}else e.push(M.t("reports.statusRegistry.messages.cannotFindNextStatus"))}function Vq(r,t,e){let n=[];if(t.symbol===Te.EMPTY.symbol)return n.push(M.t("reports.statusRegistry.messages.emptySymbol")),n;if(j1(r,t.symbol)!=e){let s=Pi(t.symbol);return n.push(M.t("reports.statusRegistry.messages.duplicateSymbol",{symbol:s})),n}return Gq(t,n),Bq(r,t,n),n}function H1(r){let t=new cf([M.t("reports.statusRegistry.columnHeadings.statusSymbol"),M.t("reports.statusRegistry.columnHeadings.nextStatusSymbol"),M.t("reports.statusRegistry.columnHeadings.statusName"),M.t("reports.statusRegistry.columnHeadings.statusType"),M.t("reports.statusRegistry.columnHeadings.problems")]),e=it.allStatuses(r);return e.forEach((n,i)=>{t.addRow([Pi(n.symbol),Pi(n.nextStatusSymbol),n.name,Pi(n.type),Vq(e,n,i).join("<br>")])}),t.markdown}function G1(r){let t=new Ge;return it.applyToStatusRegistry(r,t),t.registeredStatuses.map((n,i)=>{let s=Ce.getInstance(),a=s.isEmpty()?"":s.get()+" ",o=`Sample task ${i+1}`,l=`status symbol=${Pi(n.symbol)}`,u=`status name='${n.name}'`;return`- [${n.symbol}] ${a}${o}: ${l} ${u}`})}function B1(r,t,e,n){let s=H1(r),a=t.mermaidDiagram(!0),o=G1(r);return`# ${e}
## ${M.t("reports.statusRegistry.about.title")}
${M.t("reports.statusRegistry.about.createdBy",{version:n})}
${M.t("reports.statusRegistry.about.updateReport.line1")}
- ${M.t("reports.statusRegistry.about.updateReport.line2")}
- ${M.t("reports.statusRegistry.about.updateReport.line3")}
${M.t("reports.statusRegistry.about.deleteFileAnyTime")}
## ${M.t("reports.statusRegistry.statusSettings.title")}
<!--
${M.t("reports.statusRegistry.statusSettings.comment.line1")}
${M.t("reports.statusRegistry.statusSettings.comment.line2")}
${M.t("reports.statusRegistry.statusSettings.comment.line3")}
-->
${M.t("reports.statusRegistry.statusSettings.theseAreStatusValues")}
${s}
## ${M.t("reports.statusRegistry.loadedSettings.title")}
<!-- ${M.t("reports.statusRegistry.loadedSettings.switchToLivePreview")} -->
${M.t("reports.statusRegistry.loadedSettings.settingsActuallyUsed")}
${a}
## ${M.t("reports.statusRegistry.sampleTasks.title")}
${M.t("reports.statusRegistry.sampleTasks.line1")}
${M.t("reports.statusRegistry.sampleTasks.line2")}
${M.t("reports.statusRegistry.sampleTasks.line3")}
> [!Tip] ${M.t("reports.statusRegistry.sampleTasks.tip.line1")}
> ${M.t("reports.statusRegistry.sampleTasks.tip.line2",{url:"https://publish.obsidian.md/tasks/How+To/Style+custom+statuses"})}
${o.join(`
`)}
## ${M.t("reports.statusRegistry.searchSampleTasks.title")}
${M.t("reports.statusRegistry.searchSampleTasks.line1")}
\`\`\`tasks
path includes {{query.file.path}}
group by status.type
group by status.name
sort by function task.lineNumber
hide postpone button
short mode
\`\`\`
`}Ni();function V1(){return[[" ","Unchecked","x","TODO"],["x","Checked"," ","DONE"],[">","Rescheduled","x","TODO"],["<","Scheduled","x","TODO"],["!","Important","x","TODO"],["-","Cancelled"," ","CANCELLED"],["/","In Progress","x","IN_PROGRESS"],["?","Question","x","TODO"],["*","Star","x","TODO"],["n","Note","x","TODO"],["l","Location","x","TODO"],["i","Information","x","TODO"],["I","Idea","x","TODO"],["S","Amount","x","TODO"],["p","Pro","x","TODO"],["c","Con","x","TODO"],["b","Bookmark","x","TODO"],['"',"Quote","x","TODO"],["0","Speech bubble 0","0","NON_TASK"],["1","Speech bubble 1","1","NON_TASK"],["2","Speech bubble 2","2","NON_TASK"],["3","Speech bubble 3","3","NON_TASK"],["4","Speech bubble 4","4","NON_TASK"],["5","Speech bubble 5","5","NON_TASK"],["6","Speech bubble 6","6","NON_TASK"],["7","Speech bubble 7","7","NON_TASK"],["8","Speech bubble 8","8","NON_TASK"],["9","Speech bubble 9","9","NON_TASK"]]}function z1(){return[[" ","incomplete","x","TODO"],["x","complete / done"," ","DONE"],["-","cancelled"," ","CANCELLED"],[">","deferred","x","TODO"],["/","in progress, or half-done","x","IN_PROGRESS"],["!","Important","x","TODO"],["?","question","x","TODO"],["R","review","x","TODO"],["+","Inbox / task that should be processed later","x","TODO"],["b","bookmark","x","TODO"],["B","brainstorm","x","TODO"],["D","deferred or scheduled","x","TODO"],["I","Info","x","TODO"],["i","idea","x","TODO"],["N","note","x","TODO"],["Q","quote","x","TODO"],["W","win / success / reward","x","TODO"],["P","pro","x","TODO"],["C","con","x","TODO"]]}function K1(){return[[" ","To Do","x","TODO"],["/","In Progress","x","IN_PROGRESS"],["x","Done"," ","DONE"],["-","Cancelled"," ","CANCELLED"],[">","Rescheduled","x","TODO"],["<","Scheduled","x","TODO"],["!","Important","x","TODO"],["?","Question","x","TODO"],["i","Infomation","x","TODO"],["S","Amount","x","TODO"],["*","Star","x","TODO"],["b","Bookmark","x","TODO"],["\u201C","Quote","x","TODO"],["n","Note","x","TODO"],["l","Location","x","TODO"],["I","Idea","x","TODO"],["p","Pro","x","TODO"],["c","Con","x","TODO"],["u","Up","x","TODO"],["d","Down","x","TODO"]]}function Q1(){return[[" ","Unchecked","x","TODO"],["x","Checked"," ","DONE"],["-","Cancelled"," ","CANCELLED"],["/","In Progress","x","IN_PROGRESS"],[">","Deferred","x","TODO"],["!","Important","x","TODO"],["?","Question","x","TODO"],["r","Review","x","TODO"]]}function X1(){return[[" ","Unchecked","x","TODO"],["x","Regular"," ","DONE"],["X","Checked"," ","DONE"],["-","Dropped"," ","CANCELLED"],[">","Forward","x","TODO"],["<","Migrated","x","TODO"],["D","Date","x","TODO"],["?","Question","x","TODO"],["/","Half Done","x","IN_PROGRESS"],["+","Add","x","TODO"],["R","Research","x","TODO"],["!","Important","x","TODO"],["i","Idea","x","TODO"],["B","Brainstorm","x","TODO"],["P","Pro","x","TODO"],["C","Con","x","TODO"],["Q","Quote","x","TODO"],["N","Note","x","TODO"],["b","Bookmark","x","TODO"],["I","Information","x","TODO"],["p","Paraphrase","x","TODO"],["L","Location","x","TODO"],["E","Example","x","TODO"],["A","Answer","x","TODO"],["r","Reward","x","TODO"],["c","Choice","x","TODO"],["d","Doing","x","IN_PROGRESS"],["T","Time","x","TODO"],["@","Character / Person","x","TODO"],["t","Talk","x","TODO"],["O","Outline / Plot","x","TODO"],["~","Conflict","x","TODO"],["W","World","x","TODO"],["f","Clue / Find","x","TODO"],["F","Foreshadow","x","TODO"],["H","Favorite / Health","x","TODO"],["&","Symbolism","x","TODO"],["s","Secret","x","TODO"]]}function Z1(){return[[" ","Unchecked","x","TODO"],["x","Checked"," ","DONE"],[">","Rescheduled","x","TODO"],["<","Scheduled","x","TODO"],["!","Important","x","TODO"],["-","Cancelled"," ","CANCELLED"],["/","In Progress","x","IN_PROGRESS"],["?","Question","x","TODO"],["*","Star","x","TODO"],["n","Note","x","TODO"],["l","Location","x","TODO"],["i","Information","x","TODO"],["I","Idea","x","TODO"],["S","Amount","x","TODO"],["p","Pro","x","TODO"],["c","Con","x","TODO"],["b","Bookmark","x","TODO"],["f","Fire","x","TODO"],["k","Key","x","TODO"],["w","Win","x","TODO"],["u","Up","x","TODO"],["d","Down","x","TODO"]]}function J1(){return[[" ","to-do","x","TODO"],["/","incomplete","x","IN_PROGRESS"],["x","done"," ","DONE"],["-","canceled"," ","CANCELLED"],[">","forwarded","x","TODO"],["<","scheduling","x","TODO"],["?","question","x","TODO"],["!","important","x","TODO"],["*","star","x","TODO"],['"',"quote","x","TODO"],["l","location","x","TODO"],["b","bookmark","x","TODO"],["i","information","x","TODO"],["S","savings","x","TODO"],["I","idea","x","TODO"],["p","pros","x","TODO"],["c","cons","x","TODO"],["f","fire","x","TODO"],["k","key","x","TODO"],["w","win","x","TODO"],["u","up","x","TODO"],["d","down","x","TODO"]]}function eO(){return[[" ","to-do","x","TODO"],["/","incomplete","x","IN_PROGRESS"],["x","done"," ","DONE"],["-","canceled"," ","CANCELLED"],[">","forwarded","x","TODO"],["<","scheduling","x","TODO"],["?","question","x","TODO"],["!","important","x","TODO"],["*","star","x","TODO"],['"',"quote","x","TODO"],["l", Line truncated
`)+`
`+M.t("modals.customStatusModal.fixErrorsBeforeSaving");new Cr.Notice(d);return}this.saved=!0,this.close()})),u)),l.addExtraButton(u=>(u.setIcon("cross").setTooltip("Cancel").onClick(()=>{this.saved=!1,this.close()}),u))})}onOpen(){this.display()}static setValidationError(e){e.inputEl.addClass("tasks-settings-is-invalid")}static removeValidationError(e){e.inputEl.removeClass("tasks-settings-is-invalid")}static setValid(e,n){n.length===0?Bn.removeValidationError(e):Bn.setValidationError(e)}};var hb=require("obsidian");function tO(r,t,e){if(t===e||!Object.prototype.hasOwnProperty.call(r,t))return U({},r);let n={};for(let[i,s]of Object.entries(r))i===t?n[e]=s:n[i]=s;return n}var cu=class{constructor(t,e,n){this.originalName=t,this.isValid=e,this.errorMessage=n}},df=class{validateRenames(t){let e={};for(let[n,i]of Object.entries(t)){let s={};for(let[a,o]of Object.entries(t))a!==n&&(s[o]="");e[n]=this.validateRename(s,"",i)}return e}validateRename(t,e,n){if(!n||n.trim()==="")return new cu(e,!1,"Preset name cannot be empty or all whitespace");for(let i of Object.keys(t))if(i!==e&&i.trim()===n.trim())return new cu(e,!1,"A preset with this name already exists");return new cu(e,!0,null)}addPreset(t){let e=this.generateUniqueKey(t),n=U({},t);return n[e]="",{presets:n,newKey:e}}renamePreset(t,e,n){return!n||n.trim()===""||(n=n.trim(),this.wouldCreateDuplicateKey(t,e,n))?null:tO(t,e,n)}deletePreset(t,e){let n=U({},t);return delete n[e],n}updatePresetValue(t,e,n){let i=U({},t);return i[e]=n,i}wouldCreateDuplicateKey(t,e,n){let i=n.trim();if(e.trim()===i)return!1;for(let s of Object.keys(t))if(s!==e&&s.trim()===i)return!0;return!1}generateUniqueKey(t){let e="new_key",n=1;for(;Object.prototype.hasOwnProperty.call(t,`${e}_${n}`);)n++;return`${e}_${n}`}reorderPreset(t,e,n){let i=Object.keys(t),s=i.indexOf(e);if(s===-1||n<0||n>=i.length)return null;if(s===n)return U({},t);let a=[...i];a.splice(s,1),a.splice(n,0,e);let o={};for(let l of a)o[l]=t[l];return o}};Ni();vt();var ff=class{constructor(t,e){this.presetsSettingsService=new df;this.nameFields=new Map;this.plugin=t,this.events=e}renderPresetsSettings(t){let e=t.createDiv(),n=te(),i=()=>{e.empty(),this.nameFields.clear(),Object.entries(n.presets).forEach(([s,a])=>{this.renderPresetItem(e,n,s,a,i)})};i(),this.createAddNewPresetButton(t,n,i)}renderPresetItem(t,e,n,i,s){let a=t.createDiv({cls:"tasks-presets-wrapper"}),o=new hb.Setting(a);o.settingEl.addClass("tasks-presets-setting"),a.setAttribute("data-preset-key",n),o.addText(l=>{l.setPlaceholder("Name").setValue(n),l.inputEl.addClass("tasks-presets-key"),this.nameFields.set(n,{inputEl:l.inputEl,originalKey:n});let u=n;l.inputEl.addEventListener("input",d=>{u=d.target.value,this.validateAllInputs()});let c=()=>A(this,null,function*(){if(u&&u!==n){let d=this.presetsSettingsService.renamePreset(e.presets,n,u);d&&(yield this.savePresetsSettings(d,e,s))}});l.inputEl.addEventListener("blur",c),l.inputEl.addEventListener("keydown",d=>A(this,null,function*(){d.key==="Enter"&&(d.preventDefault(),l.inputEl.blur())}))}),o.addTextArea(l=>(l.inputEl.addClass("tasks-presets-value"),l.setPlaceholder("Query or filter text...").setValue(i),this.setupAutoResizingTextarea(l),l.onChange(u=>A(this,null,function*(){let c=this.presetsSettingsService.updatePresetValue(e.presets,n,u);yield this.savePresetsSettings(c,e,null)})))),o.addExtraButton(l=>{l.extraSettingsEl.addClass("tasks-presets-drag-handle"),l.setIcon("grip-vertical").setTooltip("Drag to reorder"),l.extraSettingsEl.style.cursor="grab",l.extraSettingsEl.addEventListener("mousedown",u=>{a.draggable=!0,l.extraSettingsEl.style.cursor="grabbing"}),l.extraSettingsEl.addEventListener("mouseup",u=>{l.extraSettingsEl.style.cursor="grab"})}),o.addExtraButton(l=>{l.extraSettingsEl.addClass("tasks-presets-delete-button"),l.setIcon("cross").setTooltip("Delete").onClick(()=>A(this,null,function*(){let u=this.presetsSettingsService.deletePreset(e.presets,n);yield this.savePresetsSettings(u,e,s)}))}),this.setupDragAndDrop(a,n,e,s),o.infoEl.remove()}setupDragAndDrop(t,e,n,i){t.addEventListener("dragstart",s=>{s.dataTransfer&&(s.dataTransfer.setData("text/plain",e),s.dataTransfer.effectAllowed="move"),t.addClass("tasks-presets-dragging")}),t.addEventListener("dragend",s=>{t.draggable=!1,t.removeClass("tasks-presets-dragging"),this.clearDropIndicators()}),t.addEventListener("dragover",s=>{s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect="move"),this.showDropIndicator(t,s)}),t.addEventListener("dragleave",s=>{let a=t.getBoundingClientRect(),o=s.clientX,l=s.clientY;(o<a.left||o>a.right||l<a.top||l>a.bottom)&&this.clearDropIndicator(t)}),t.addEventListener("drop",s=>A(this,null,function*(){var c;s.preventDefault();let a=(c=s.dataTransfer)==null?void 0:c.getData("text/plain");if(!a||a===e){this.clearDropIndicators();return}let o=this.calculateDropPosition(t,s),l=this.getTargetIndex(e,o),u=this.presetsSettingsService.reorderPreset(n.presets,a,l);u&&(yield this.savePresetsSettings(u,n,i)),this. Line truncated
This message has been written to the console.
`,1e4)}var pf=class extends as.EditorSuggest{constructor(e,n,i){super(e);this.settings=n,this.plugin=i,e.scope.register([],"Tab",()=>{var a;let s=(a=this.context)==null?void 0:a.editor;return s?(s.exec("indentMore"),!1):!0})}onTrigger(e,n,i){if(!this.settings.autoSuggestInEditor||i===void 0)return null;let s=n.getLine(e.line);return!jS(s,e,n)||this.grabSuggestions(n,i,s).length===0?null:{start:{line:e.line,ch:0},end:{line:e.line,ch:s.length},query:s}}getSuggestions(e){return e.file===void 0?[]:this.grabSuggestions(e.editor,e.file,e.query).map(i=>pe(U({},i),{context:e}))}grabSuggestions(e,n,i){var c,d,f;let s=e.getCursor(),a=this.plugin.getTasks(),o=a.find(p=>p.taskLocation.path==n.path&&p.taskLocation.lineNumber==s.line),l=this.getMarkdownFileInfo(e),u=this.canSaveEdits(l);return(f=(d=(c=Yl()).buildSuggestions)==null?void 0:d.call(c,i,s.ch,this.settings,a,u,o))!=null?f:[]}getMarkdownFileInfo(e){return e.cm.state.field(as.editorInfoField)}canSaveEdits(e){return e instanceof as.MarkdownView}renderSuggestion(e,n){n.setText(e.displayText)}selectSuggestion(e,n){return A(this,null,function*(){var u,c,d;let i=e.context.editor;if(e.suggestionType==="empty"){this.close();let f=new KeyboardEvent("keydown",{code:"Enter",key:"Enter"});(c=(u=i==null?void 0:i.cm)==null?void 0:u.contentDOM)==null||c.dispatchEvent(f);return}if(e.taskItDependsOn!=null){let f=Pc(e.taskItDependsOn,this.plugin.getTasks().map(p=>p.id));if(e.appendText+=` ${f.id}`,e.taskItDependsOn!==f)if(e.context.file.path==f.path){let p=e.taskItDependsOn.originalMarkdown,g={line:e.taskItDependsOn.lineNumber,ch:0},b={line:e.taskItDependsOn.lineNumber,ch:p.length},v=e.context.editor.getRange(g,b);if(v!==p){let E=`Error adding new ID, due to mismatched data in Tasks memory and the editor:
task line in memory: '${e.taskItDependsOn.originalMarkdown}'
task line in editor: '${v}'
file: '${f.path}'
`;Xq(E);return}e.context.editor.replaceRange(f.toFileLineString(),g,b)}else $n({originalTask:e.taskItDependsOn,newTasks:f})}let s=e.context.editor.getCursor(),a={line:s.line,ch:(d=e.insertAt)!=null?d:s.ch},o=e.insertSkip?{line:s.line,ch:a.ch+e.insertSkip}:void 0;e.context.editor.replaceRange(e.appendText,a,o),e.context.editor.setCursor({line:s.line,ch:a.ch+e.appendText.length});let l=this.getMarkdownFileInfo(e.context.editor);this.canSaveEdits(l)&&(yield l.save())})}};Aa();var rO=(r,t,e)=>{let n,i=new Promise((l,u)=>{n=l}),s=l=>{let u=l.map(c=>c.toFileLineString()).join(`
`);n(u)},a=Ba({line:"",path:""});return new Br({app:r,task:a,onSaveSettings:e,onSubmit:s,allTasks:t}).open(),i};function iO(r,t,e,n){let i,s=new Promise((u,c)=>{i=u}),a=u=>{let c=u.map(d=>d.toFileLineString()).join(`
`);i(c)},o=Ba({line:t!=null?t:"",path:""});return new Br({app:r,task:o,onSaveSettings:n,onSubmit:a,allTasks:e}).open(),s}var sO=r=>{let t=r.app,e=()=>A(void 0,null,function*(){return yield r.saveSettings()});return{createTaskLineModal:()=>rO(t,r.getTasks(),e),editTaskLineModal:n=>iO(t,n,r.getTasks(),e),executeToggleTaskDoneCommand:(n,i)=>Ay(n,i).text}};un();Mf();var mf=class extends hf.Plugin{get apiV1(){return sO(this)}onload(){return A(this,null,function*(){yield tT(),cn.registerConsoleLogger(),ny("info",M.t("main.loadingPlugin",{name:this.manifest.name,version:this.manifest.version})),yield this.loadSettings();let{loggingOptions:e}=te();cn.configure(e),pr.getInstance().setGetFirstLinkpathDestFn((i,s)=>{let a=(0,hf.getLinkpath)(i.link),o=this.app.metadataCache.getFirstLinkpathDest(a,s);return o?o.path:null});let n=new jd({obsidianEvents:this.app.workspace});this.addSettingTab(new du({plugin:this,events:n})),ZD({metadataCache:this.app.metadataCache,vault:this.app.vault,workspace:this.app.workspace}),yield this.loadTaskStatuses(),this.cache=new Ns({metadataCache:this.app.metadataCache,vault:this.app.vault,workspace:this.app.workspace,events:n}),this.inlineRenderer=new tf({plugin:this,app:this.app}),this.queryRenderer=new uf({plugin:this,events:n}),this.setObsidianPropertiesTypes(),this.registerEditorExtension(Y1()),this.registerEditorSuggest(new pf(this.app,te(),this)),new $d({plugin:this})})}loadTaskStatuses(){return A(this,null,function*(){let{statusSettings:e}=te();it.applyToStatusRegistry(e,Ge.getInstance())})}onunload(){var e;ny("info",M.t("main.unloadingPlugin",{name:this.manifest.name,version:this.manifest.version})),(e=this.cache)==null||e.unload()}loadSettings(){return A(this,null,function*(){let e=yield this.loadData();st(e),e=te(),Ce.getInstance().set(e.globalFilter),Ce.getInstance().setRemoveGlobalFilter(e.removeGlobalFilter),Gn.getInstance().set(e.globalQuery),yield this.loadTaskStatuses()})}saveSettings(){return A(this,null,function*(){yield this.saveData(te())})}getTasks(){return this.cache===void 0?[]:this.cache.getTasks()}getState(){return this.cache===void 0?"Cold":this.cache.getState()}setObsidianPropertiesTypes(){var e;try{let n=this.app.metadataTypeManager,i=n.getAllProperties(),s=new Ri;for(let a of s.allPropertyNamesSorted()){let o=s.propertyType(a);((e=i[a])==null?void 0:e.type)!==o&&n.setType(a,o)}}catch(n){console.error("setObsidianPropertiesTypes error",n)}}};
/*!
* EventEmitter2
* https://github.com/hij1nx/EventEmitter2
*
* Copyright (c) 2013 hij1nx
* Licensed under the MIT license.
*/
/*!
* mustache.js - Logic-less {{mustache}} templates with JavaScript
* http://github.com/janl/mustache.js
*/
/* nosourcemap */
+12
View File
@@ -0,0 +1,12 @@
{
"id": "obsidian-tasks-plugin",
"name": "Tasks",
"version": "7.23.1",
"minAppVersion": "1.4.0",
"description": "Track tasks across your vault. Supports due dates, recurring tasks, done dates, sub-set of checklist items, and filtering.",
"helpUrl": "https://publish.obsidian.md/tasks/",
"author": "Clare Macrae and Ilyas Landikov (created by Martin Schenck)",
"authorUrl": "https://github.com/obsidian-tasks-group",
"fundingUrl": "https://github.com/sponsors/claremacrae",
"isDesktopOnly": false
}
+1
View File
@@ -0,0 +1 @@
@charset "UTF-8";.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-shadow:1px 0 #e6e6e6,-1px 0 #e6e6e6,0 1px #e6e6e6,0 -1px #e6e6e6,0 3px 13px #00000014}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none!important;box-shadow:none!important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 #e6e6e6,5px 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:"";height:0;width:0;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:#000000e6;fill:#000000e6;height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:#000000e6;fill:#000000e6}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-heLine truncated
+42
View File
@@ -0,0 +1,42 @@
{
"useCache": true,
"hideExcluded": false,
"recencyBoost": "0",
"downrankedFoldersFilters": [],
"ignoreDiacritics": true,
"ignoreArabicDiacritics": false,
"indexedFileTypes": [],
"displayTitle": "",
"PDFIndexing": false,
"officeIndexing": false,
"imagesIndexing": false,
"aiImageIndexing": false,
"unsupportedFilesIndexing": "default",
"splitCamelCase": false,
"openInNewPane": false,
"vimLikeNavigationShortcut": false,
"ribbonIcon": true,
"showExcerpt": true,
"maxEmbeds": 5,
"renderLineReturnInExcerpts": true,
"showCreateButton": false,
"highlight": true,
"showPreviousQueryResults": true,
"simpleSearch": false,
"tokenizeUrls": false,
"fuzziness": "1",
"weightBasename": 10,
"weightDirectory": 7,
"weightH1": 6,
"weightH2": 5,
"weightH3": 4,
"weightUnmarkedTags": 2,
"weightCustomProperties": [],
"httpApiEnabled": false,
"httpApiPort": "51361",
"httpApiNotice": true,
"welcomeMessage": "1.21.0",
"verboseLogging": false,
"DANGER_httpHost": null,
"DANGER_forceSaveCache": false
}
+171
View File
@@ -0,0 +1,171 @@
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var uI=Object.create;var ku=Object.defineProperty;var cI=Object.getOwnPropertyDescriptor;var lI=Object.getOwnPropertyNames;var fI=Object.getPrototypeOf,dI=Object.prototype.hasOwnProperty;var hI=(e,t,r)=>t in e?ku(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var v=(e,t)=>()=>(e&&(t=e(e=0)),t);var Mi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Nn=(e,t)=>{for(var r in t)ku(e,r,{get:t[r],enumerable:!0})},B_=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of lI(t))!dI.call(e,i)&&i!==r&&ku(e,i,{get:()=>t[i],enumerable:!(n=cI(t,i))||n.enumerable});return e};var ln=(e,t,r)=>(r=e!=null?uI(fI(e)):{},B_(t||!e||!e.__esModule?ku(r,"default",{value:e,enumerable:!0}):r,e)),$_=e=>B_(ku({},"__esModule",{value:!0}),e);var zl=(e,t,r)=>(hI(e,typeof t!="symbol"?t+"":t,r),r),hp=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var Fi=(e,t,r)=>(hp(e,t,"read from private field"),r?r.call(e):t.get(e)),Ru=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},pp=(e,t,r,n)=>(hp(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var H_=(e,t,r)=>(hp(e,t,"access private method"),r);var U_,V_=v(()=>{U_="5"});var Wn=v(()=>{V_();typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(U_)});var va,is,as,Bi,Pt,Ht,q_,z_,bt=v(()=>{va="[",is="[!",as="]",Bi={},Pt=Symbol(),Ht=Symbol("filename"),q_=Symbol("hmr"),z_="http://www.w3.org/1999/xhtml"});var Yl,Y_=v(()=>{Yl=!0});var K_,se,j_=v(()=>{K_=globalThis.process?.env?.NODE_ENV,se=K_&&!K_.toLowerCase().startsWith("prod")});var W_=v(()=>{});var mt=v(()=>{Y_();j_();W_()});var xr,ss,Lu,G_,Nt=v(()=>{xr=Symbol("$state"),ss=Symbol("$state metadata"),Lu=Symbol("legacy props"),G_=Symbol("")});function xa(e){return typeof e=="function"}function Z_(e){return e()}function os(e){for(var t=0;t<e.length;t++)e[t]()}var fn,Q_,Pu,mp,Kt,Kr,Kl,gp,X_,Ta,Ut,it=v(()=>{fn=Array.isArray,Q_=Array.prototype.indexOf,Pu=Array.from,mp=Object.keys,Kt=Object.defineProperty,Kr=Object.getOwnPropertyDescriptor,Kl=Object.getOwnPropertyDescriptors,gp=Object.prototype,X_=Array.prototype,Ta=Object.getPrototypeOf;Ut=()=>{}});function J_(){var e=Mu;Mu=[],os(e)}function eb(){var e=Fu;Fu=[],os(e)}function dn(e){Mu.length===0&&queueMicrotask(J_),Mu.push(e)}function tb(e){Fu.length===0&&pI(eb),Fu.push(e)}function _p(){Mu.length>0&&J_(),Fu.length>0&&eb()}var pI,Mu,Fu,On=v(()=>{it();pI=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback,Mu=[],Fu=[]});function jl(e){return e===this.v}function eo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function to(e){return!eo(e,this.v)}var us=v(()=>{});function bp(){if(se){let e=new Error("bind_invalid_checkbox_value\nUsing `bind:value` together with a checkbox input is not allowed. Use `bind:checked` instead\nhttps://svelte.dev/e/bind_invalid_checkbox_value");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/bind_invalid_checkbox_value")}function rb(){if(se){let e=new Error(`derived_references_self
A derived value cannot reference itself recursively
https://svelte.dev/e/derived_references_self`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/derived_references_self")}function nb(e){if(se){let t=new Error(`effect_in_teardown
\`${e}\` cannot be used inside an effect cleanup function
https://svelte.dev/e/effect_in_teardown`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function ib(){if(se){let e=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ab(e){if(se){let t=new Error(`effect_orphan
\`${e}\` can only be used inside an effect (e.g. during component initialisation)
https://svelte.dev/e/effect_orphan`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/effect_orphan")}function sb(){if(se){let e=new Error(`effect_update_depth_exceeded
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
https://svelte.dev/e/effect_update_depth_exceeded`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ob(){if(se){let e=new Error(`hydration_failed
Failed to hydrate the application
https://svelte.dev/e/hydration_failed`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/hydration_failed")}function ub(e){if(se){let t=new Error(`props_invalid_value
Cannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value
https://svelte.dev/e/props_invalid_value`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/props_invalid_value")}function cb(e){if(se){let t=new Error(`rune_outside_svelte
The \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
https://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function lb(){if(se){let e=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fb(){if(se){let e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function db(){if(se){let e=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state\nhttps://svelte.dev/e/state_unsafe_local_read");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function hb(){if(se){let e=new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var hn=v(()=>{mt()});function pb(){gi=!0}var gi,_i,$i=v(()=>{gi=!1,_i=!1});var Ep=v(()=>{mt()});var Bu=v(()=>{mt();Ep();it()});function Hi(e){let t=Error(),r=t.stack;if(r){let n=r.split(`
`),i=[`
`];for(let a=0;a<n.length;a++){let u=n[a];if(u!=="Error"){if(u.includes("validate_each_keys"))return null;u.includes("svelte/src/internal")||i.push(u)}}if(i.length===1)return null;Kt(t,"stack",{value:i.join(`
`)}),Kt(t,"name",{value:`${e}Error`})}return t}var $u,ro=v(()=>{bt();Bu();it();Nt();He();Ge();$u=null});function yp(e){cs=e}function Mt(e,t){var r={f:0,v:e,reactions:null,equals:jl,rv:0,wv:0};return se&&_i&&(r.created=t??Hi("CreatedAt"),r.debug=null),r}function Xn(e){return gb(Mt(e))}function bi(e,t=!1){let r=Mt(e);return t||(r.equals=to),gi&&Pe!==null&&Pe.l!==null&&(Pe.l.s??=[]).push(r),r}function ft(e,t=!1){return gb(bi(e,t))}function gb(e){return $e!==null&&!gn&&$e.f&2&&(Gn===null?bb([e]):Gn.push(e)),e}function oe(e,t){return $e!==null&&!gn&&Ei()&&$e.f&18&&(Gn===null||!Gn.includes(e))&&hb(),io(e,t)}function io(e,t){if(!e.equals(t)){var r=e.v;if(fs?no.set(e,t):no.set(e,r),e.v=t,e.wv=Uu(),se&&_i&&(e.updated=Hi("UpdatedAt"),Oe!=null&&(e.trace_need_increase=!0,e.trace_v??=r)),_b(e,2048),Ei()&&Oe!==null&&Oe.f&1024&&!(Oe.f&96)&&(pn===null?Eb([e]):pn.push(e)),se&&cs.size>0){let n=Array.from(cs);for(let i of n)i.f&1024&&Ar(i,4096),Vi(i)&&ds(i);cs.clear()}}return t}function _b(e,t){var r=e.reactions;if(r!==null)for(var n=Ei(),i=r.length,a=0;a<i;a++){var u=r[a],l=u.f;if(!(l&2048)&&!(!n&&u===Oe)){if(se&&l&262144){cs.add(u);continue}Ar(u,t),l&1280&&(l&2?_b(u,4096):ao(u))}}}var cs,no,yr=v(()=>{mt();Ge();us();Nt();hn();$i();ro();Ot();cs=new Set,no=new Map});function kn(e){var t=2050,r=$e!==null&&$e.f&2?$e:null;Oe===null||r!==null&&r.f&256?t|=256:Oe.f|=1048576;let n={ctx:Pe,deps:null,effects:null,equals:jl,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??Oe};return se&&_i&&(n.created=Hi("CreatedAt")),n}function Br(e){let t=kn(e);return t.equals=to,t}function Wl(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)lr(t[r])}}function mI(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t;t=t.parent}return null}function gI(e){var t,r=Oe;if(Wt(mI(e)),se){let n=cs;yp(new Set);try{Ap.includes(e)&&rb(),Ap.push(e),Wl(e),t=Gl(e)}finally{Wt(r),yp(n),Ap.pop()}}else try{Wl(e),t=Gl(e)}finally{Wt(r)}return t}function Sp(e){var t=gI(e),r=(qi||e.f&256)&&e.deps!==null?4096:1024;Ar(e,r),e.equals(t)||(e.v=t,e.wv=Uu())}var Ap,hs=v(()=>{mt();Nt();Ge();us();hn();He();yr();ro();$i();Ot();Ap=[]});function vb(e,t,r){se?console.warn(`%c[svelte] hydration_attribute_changed
%cThe \`${e}\` attribute on \`${t}\` changed its value between server and client renders. The client value, \`${r}\`, will be ignored in favour of the server value
https://svelte.dev/e/hydration_attribute_changed`,so,oo):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Tb(e){se?console.warn(`%c[svelte] hydration_html_changed
%c${e?`The value of an \`{@html ...}\` block ${e} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
https://svelte.dev/e/hydration_html_changed`,so,oo):console.warn("https://svelte.dev/e/hydration_html_changed")}function ps(e){se?console.warn(`%c[svelte] hydration_mismatch
%c${e?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${e}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
https://svelte.dev/e/hydration_mismatch`,so,oo):console.warn("https://svelte.dev/e/hydration_mismatch")}function xb(){se?console.warn(`%c[svelte] lifecycle_double_unmount
%cTried to unmount a component that was not mounted
https://svelte.dev/e/lifecycle_double_unmount`,so,oo):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Cp(e,t){se?console.warn(`%c[svelte] ownership_invalid_mutation
%c${e?`${e} mutated a value owned by ${t}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead`:"Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
https://svelte.dev/e/ownership_invalid_mutation`,so,oo):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Ql(e){se?console.warn(`%c[svelte] state_proxy_equality_mismatch
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results
https://svelte.dev/e/state_proxy_equality_mismatch`,so,oo):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var so,oo,Wr=v(()=>{mt();so="font-weight: bold",oo="font-weight: normal"});function $r(e){ge=e}function wt(e){if(e===null)throw ps(),Bi;return De=e}function Vt(){return wt(fr(De))}function Te(e){if(ge){if(fr(De)!==null)throw ps(),Bi;De=e}}function wr(e=1){if(ge){for(var t=e,r=De;t--;)r=fr(r);De=r}}function uo(){for(var e=0,t=De;;){if(t.nodeType===8){var r=t.data;if(r===as){if(e===0)return t;e-=1}else(r===va||r===is)&&(e+=1)}var n=fr(t);t.remove(),t=n}}var ge,De,Et=v(()=>{bt();Wr();Gr();ge=!1});function er(e,t=null,r){var n=null;if(se&&_i&&(n=Hi("CreatedAt")),typeof e!="object"||e===null||xr in e)return e;let i=Ta(e);if(i!==gp&&i!==X_)return e;var a=new Map,u=fn(e),l=Mt(0);u&&a.set("length",Mt(e.length,n));var d;if(se)if(d={parent:t,owners:null},r){let p=r.v?.[ss]?.owners;d.owners=p?new Set(p):null}else d.owners=t===null?Pe!==null?new Set([Pe.function]):null:new Set;return new Proxy(e,{defineProperty(p,g,E){(!("value"in E)||E.configurable===!1||E.enumerable===!1||E.writable===!1)&&lb();var _=a.get(g);return _===void 0?(_=Mt(E.value,n),a.set(g,_)):oe(_,er(E.value,d)),!0},deleteProperty(p,g){var E=a.get(g);if(E===void 0)g in p&&a.set(g,Mt(Pt,n));else{if(u&&typeof g=="string"){var _=a.get("length"),y=Number(g);Number.isInteger(y)&&y<_.v&&oe(_,y)}oe(E,Pt),yb(l)}return!0},get(p,g,E){if(se&&g===ss)return d;if(g===xr)return e;var _=a.get(g),y=g in p;if(_===void 0&&(!y||Kr(p,g)?.writable)&&(_=Mt(er(y?p[g]:Pt,d),n),a.set(g,_)),_!==void 0){var C=q(_);if(se){var D=C?.[ss];D&&D?.parent!==d&&Ip(d,D)}return C===Pt?void 0:C}return Reflect.get(p,g,E)},getOwnPropertyDescriptor(p,g){var E=Reflect.getOwnPropertyDescriptor(p,g);if(E&&"value"in E){var _=a.get(g);_&&(E.value=q(_))}else if(E===void 0){var y=a.get(g),C=y?.v;if(y!==void 0&&C!==Pt)return{enumerable:!0,configurable:!0,value:C,writable:!0}}return E},has(p,g){if(se&&g===ss||g===xr)return!0;var E=a.get(g),_=E!==void 0&&E.v!==Pt||Reflect.has(p,g);if(E!==void 0||Oe!==null&&(!_||Kr(p,g)?.writable)){E===void 0&&(E=Mt(_?er(p[g],d):Pt,n),a.set(g,E));var y=q(E);if(y===Pt)return!1}return _},set(p,g,E,_){var y=a.get(g),C=g in p;if(u&&g==="length")for(var D=E;D<y.v;D+=1){var P=a.get(D+"");P!==void 0?oe(P,Pt):D in p&&(P=Mt(Pt,n),a.set(D+"",P))}if(y===void 0?(!C||Kr(p,g)?.writable)&&(y=Mt(void 0,n),oe(y,er(E,d)),a.set(g,y)):(C=y.v!==Pt,oe(y,er(E,d))),se){var N=E?.[ss];N&&N?.parent!==d&&Ip(d,N),Ab(d)}var L=Reflect.getOwnPropertyDescriptor(p,g);if(L?.set&&L.set.call(_,E),!C){if(u&&typeof g=="string"){var H=a.get("length"),R=Number(g);Number.isInteger(R)&&R>=H.v&&oe(H,R+1)}yb(l)}return!0},ownKeys(p){q(l);var g=Reflect.ownKeys(p).filter(y=>{var C=a.get(y);return C===void 0||C.v!==Pt});for(var[E,_]of a)_.v!==Pt&&!(E in p)&&g.push(E);return g},setPrototypeOf(){fb()}})}function yb(e,t=1){oe(e,e.v+t)}function Xl(e){return e!==null&&typeof e=="object"&&xr in e?e[xr]:e}var co=v(()=>{mt();Ge();Ot();it();Vu();yr();Nt();bt();hn();ro();$i()});function wb(){let e=Array.prototype,t=Array.__svelte_cleanup;t&&t();let{indexOf:r,lastIndexOf:n,includes:i}=e;e.indexOf=function(a,u){let l=r.call(this,a,u);if(l===-1){for(let d=u??0;d<this.length;d+=1)if(Xl(this[d])===a){Ql("array.indexOf(...)");break}}return l},e.lastIndexOf=function(a,u){let l=n.call(this,a,u??this.length-1);if(l===-1){for(let d=0;d<=(u??this.length-1);d+=1)if(Xl(this[d])===a){Ql("array.lastIndexOf(...)");break}}return l},e.includes=function(a,u){let l=i.call(this,a,u);if(!l){for(let d=0;d<this.length;d+=1)if(Xl(this[d])===a){Ql("array.includes(...)");break}}return l},Array.__svelte_cleanup=()=>{e.indexOf=r,e.lastIndexOf=n,e.includes=i}}var Np=v(()=>{Wr();co()});function Zl(){if(Op===void 0){Op=window,Sb=document,qu=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;Cb=Kr(t,"firstChild").get,Ib=Kr(t,"nextSibling").get,e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0,Text.prototype.__t=void 0,se&&(e.__svelte_meta=null,wb())}}function Qr(e=""){return document.createTextNode(e)}function qt(e){return Cb.call(e)}function fr(e){return Ib.call(e)}function xe(e,t){if(!ge)return qt(e);var r=qt(De);if(r===null)r=De.appendChild(Qr());else if(t&&r.nodeType!==3){var n=Qr();return r?.before(n),wt(n),n}return wt(r),r}function Sr(e,t){if(!ge){var r=qt(e);return r instanceof Comment&&r.data===""?fr(r):r}if(t&&De?.nodeType!==3){var n=Qr();return De?.before(n),wt(n),n}return De}function Ye(e,t=1,r=!1){let n=ge?De:e;for(var i;t--;)i=n,n=fr(n);if(!ge)return n;var a=n?.nodeType;if(r&&a!==3){var u=Qr();return n===null?i?.after(u):n.before(u),wt(u),u}return wt(n),n}function zu(e){e.textContent=""}var Op,Sb,qu,Cb,Ib,Gr=v(()=>{Et();mt();Np();it()});function Rp(e){fs=e}function tr(e){$e=e}function Wt(e){Oe=e}function bb(e){Gn=e}function Eb(e){pn=e}function Uu(){return++Lb}function Vi(e){var t=e.f;if(t&2048)return!0;if(t&4096){var r=e.deps,n=(t&256)!==0;if(r!==null){var i,a,u=( Line truncated
${i.map(g=>`
${d}in ${g}`).join("")}
`}),Kt(e,"component_stack",{value:i});let p=e.stack;if(p){let g=p.split(`
`),E=[];for(let _=0;_<g.length;_++){let y=g[_];y.includes("svelte/src/internal")||E.push(y)}Kt(e,"stack",{value:E.join(`
`)})}if(Ob(e,t),Db(t))throw e}function Pb(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];a.f&2?Pb(a,t,!1):t===a&&(r?Ar(a,2048):a.f&1024&&Ar(a,4096),ao(a))}}function Gl(e){var t=Hr,r=bn,n=pn,i=$e,a=qi,u=Gn,l=Pe,d=gn,p=e.f;Hr=null,bn=0,pn=null,qi=(p&256)!==0&&(gn||!ms||$e===null),$e=p&96?null:e,Gn=null,Gu(e.ctx),gn=!1,rf++;try{var g=(0,e.fn)(),E=e.deps;if(Hr!==null){var _;if(Wu(e,bn),E!==null&&bn>0)for(E.length=bn+Hr.length,_=0;_<Hr.length;_++)E[bn+_]=Hr[_];else e.deps=E=Hr;if(!qi)for(_=bn;_<E.length;_++)(E[_].reactions??=[]).push(e)}else E!==null&&bn<E.length&&(Wu(e,bn),E.length=bn);if(Ei()&&pn!==null&&!gn&&E!==null&&!(e.f&6146))for(_=0;_<pn.length;_++)Pb(pn[_],e);return i!==null&&(rf++,pn!==null&&(n===null?n=pn:n.push(...pn))),g}finally{Hr=t,bn=r,pn=n,$e=i,qi=a,Gn=u,Gu(l),gn=d}}function _I(e,t){let r=t.reactions;if(r!==null){var n=Q_.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&t.f&2&&(Hr===null||!Hr.includes(t))&&(Ar(t,4096),t.f&768||(t.f^=512),Wl(t),Wu(t,0))}function Wu(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)_I(e,r[n])}function ds(e){var t=e.f;if(!(t&16384)){Ar(e,1024);var r=Oe,n=Pe,i=ms;if(Oe=e,ms=!0,se){var a=Xr;Qu(e.component_function)}try{t&16?Mb(e):Pp(e),Lp(e);var u=Gl(e);e.teardown=typeof u=="function"?u:null,e.wv=Lb;var l=e.deps;if(se&&_i&&e.f&2048&&l!==null)for(let p=0;p<l.length;p++){var d=l[p];d.trace_need_increase&&(d.wv=Uu(),d.trace_need_increase=void 0,d.trace_v=void 0)}se&&tf.push(e)}catch(p){fo(p,e,r,n||e.ctx)}finally{ms=i,Oe=r,se&&Qu(a)}}}function kb(){console.error("Last ten effects were: ",tf.slice(-10).map(e=>e.fn)),tf=[]}function bI(){try{sb()}catch(e){if(se&&Kt(e,"stack",{value:""}),Yu!==null)if(se)try{fo(e,Yu,null,null)}catch(t){throw kb(),t}else fo(e,Yu,null,null);else throw se&&kb(),e}}function Dp(){var e=ms;try{var t=0;for(ms=!0;Ku.length>0;){t++>1e3&&bI();var r=Ku,n=r.length;Ku=[];for(var i=0;i<n;i++){var a=vI(r[i]);EI(a)}}}finally{ju=!1,ms=e,Yu=null,se&&(tf=[]),no.clear()}}function EI(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var n=e[r];if(!(n.f&24576))try{Vi(n)&&(ds(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Mp(n):n.fn=null))}catch(i){fo(i,n,null,n.ctx)}}}function ao(e){ju||(ju=!0,queueMicrotask(Dp));for(var t=Yu=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&96){if(!(r&1024))return;t.f^=1024}}Ku.push(t)}function vI(e){for(var t=[],r=e;r!==null;){var n=r.f,i=(n&96)!==0,a=i&&(n&1024)!==0;if(!a&&!(n&8192)){if(n&4)t.push(r);else if(i)r.f^=1024;else{var u=$e;try{$e=r,Vi(r)&&ds(r)}catch(p){fo(p,r,null,r.ctx)}finally{$e=u}}var l=r.first;if(l!==null){r=l;continue}}var d=r.parent;for(r=r.next;r===null&&d!==null;)r=d.next,d=d.parent}return t}function ho(e){var t;for(e&&(ju=!0,Dp(),t=e()),_p();Ku.length>0;)ju=!0,Dp(),_p();return t}async function vi(){await Promise.resolve(),ho()}function q(e){var t=e.f,r=(t&2)!==0;if(Hu!==null&&Hu.add(e),$e!==null&&!gn){Gn!==null&&Gn.includes(e)&&db();var n=$e.deps;e.rv<rf&&(e.rv=rf,Hr===null&&n!==null&&n[bn]===e?bn++:Hr===null?Hr=[e]:(!qi||!Hr.includes(e))&&Hr.push(e))}else if(r&&e.deps===null&&e.effects===null){var i=e,a=i.parent;a!==null&&!(a.f&256)&&(i.f^=256)}if(r&&(i=e,Vi(i)&&Sp(i)),se&&_i&&$u!==null&&$e!==null&&$u.reaction===$e){if(e.debug)e.debug();else if(e.created){var u=$u.entries.get(e);u===void 0&&(u={read:[]},$u.entries.set(e,u)),u.read.push(Hi("TracedAt"))}}return fs&&no.has(e)?no.get(e):e.v}function at(e){var t=gn;try{return gn=!0,e()}finally{gn=t}}function Ar(e,t){e.f=e.f&TI|t}function vt(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(xr in e)nf(e);else if(!Array.isArray(e))for(let t in e){let r=e[t];typeof r=="object"&&r&&xr in r&&nf(r)}}}function nf(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{nf(e[n],t)}catch{}let r=Ta(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){let n=Kl(r);for(let i in n){let a=n[i].get;if(a)try{a.call(e)}catch{}}}}}var Nb,Jl,ju,Yu,ms,fs,Ku,tf,$e,gn,Oe,Gn,Hr,bn,pn,Lb,rf,qi,Hu,TI,Ge=v(()=>{mt();it();He();Nt();On();yr();hs();hn();bt();$i();ro();Ot();Gr();Nb=new WeakSet,Jl=!1,ju=!1,Yu=null,ms=!1,fs=!1;Ku=[],tf=[],$e=null,gn=!1;Oe=null;Gn=null;Hr=null,bn=0,pn=null;Lb=1,rf=0,qi=!1,Hu=null;TI=-7169});function Bp(e){Oe===null&&$e===null&&ab(e),$e!==null&&$e.f&256&&Oe===null&&ib(),fs&&nb(e)}function xI(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function gs(e,t,r,n=!0){var i=Oe;if(se)for(;i!==null&&i.f&262144;)i=i.parent;var a={ctx:Pe,deps:null,nodes_start:null,nodes_end:null,f:e|2048,first:null,fn:t,last:null,next:null,parent:i,prev:null,teardown:null,transitions:null,wv:0};if(se&&(a.component_function=Xr),r)try{ds(a),a.f|=32768}catch(d){throw lr(a),d}else t!==null&&ao(a);var u=r&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!u&&n&&(i!==nu Line truncated
`)){let n=AI.exec(r)??wI.exec(r);n&&t.push({file:n[1],line:+n[2],column:+n[3]})}return t}function Hb(){let e=SI()?.slice(4);if(!e)return null;for(let t=0;t<e.length;t++){let r=e[t],n=yI[r.file];if(!n){if(t===0)return null;continue}for(let i of n){if(i.end==null)return null;if(i.start.line<r.line&&i.end.line>r.line)return i.component}}return null}function Ip(e,t){if(t.owners!==null)for(;e;){if(e.owners===null){t.owners=null;break}for(let r of e.owners)t.owners.add(r);e=e.parent}}function Ub(e,t){return e.owners===null?!0:e.owners.has(t)||Ht in t&&[...e.owners].some(r=>r[Ht]===t[Ht])||e.parent!==null&&Ub(e.parent,t)}function Vb(e){return e?.owners?.values().next().value??Vb(e.parent)}function Ab(e){if(II)return;let t=Hb();if(t&&!Ub(e,t)){let r=Vb(e);r[Ht]!==t[Ht]?Cp(t[Ht],r[Ht]):Cp()}}var yI,AI,wI,CI,II,Vu=v(()=>{Nt();He();Ot();it();Wr();bt();yI={},AI=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,wI=/@(.+):(\d+):(\d+)$/;CI=Symbol("ADD_OWNER");II=!1});function mo(e){if(se){let t=new Error(`lifecycle_outside_component
\`${e}(...)\` can only be used during component initialisation
https://svelte.dev/e/lifecycle_outside_component`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var go=v(()=>{mt()});function Gu(e){Pe=e}function Qu(e){Xr=e}function dr(e,t=!1,r){var n=Pe={p:Pe,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};gi&&!t&&(Pe.l={s:null,u:null,r1:[],r2:Mt(!1)}),Cr(()=>{n.d=!0}),se&&(Pe.function=r,Xr=r)}function hr(e){let t=Pe;if(t!==null){e!==void 0&&(t.x=e);let u=t.e;if(u!==null){var r=Oe,n=$e;t.e=null;try{for(var i=0;i<u.length;i++){var a=u[i];Wt(a.effect),tr(a.reaction),Gt(a.fn)}}finally{Wt(r),tr(n)}}Pe=t.p,se&&(Xr=t.p?.function??null),t.m=!0}return e||{}}function Ei(){return!gi||Pe!==null&&Pe.l===null}var Pe,Xr,Ot=v(()=>{mt();Vu();go();yr();Ge();He();$i();Pe=null;Xr=null});function qb(e){e=e.replace(DI,"");let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return(t>>>0).toString(36)}function zb(e){return RI.includes(e)}function Hp(e){return e?.replace(/\//g,"/\u200B")}var DI,kI,mB,RI,_s=v(()=>{DI=/\r/g;kI=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"],mB=[...kI,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"],RI=["touchstart","touchmove"]});var Yb=v(()=>{_s();Ge();Wr()});var Up=v(()=>{});var Kb=v(()=>{bt();Et()});function uf(){jb||(jb=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}var jb,cf=v(()=>{Et();Gr();On();jb=!1});function _o(e){var t=$e,r=Oe;tr(null),Wt(null);try{return e()}finally{tr(t),Wt(r)}}function Vp(e,t,r,n=r){e.addEventListener(t,()=>_o(r));let i=e.__on_r;i?e.__on_r=()=>{i(),n(!0)}:e.__on_r=()=>n(!0),uf()}var xi=v(()=>{He();Ge();cf()});function Gb(e,t,r,n={}){function i(a){if(n.capture||bo.call(t,a),!a.cancelBubble)return _o(()=>r?.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?dn(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function pr(e,t,r,n,i){var a={capture:n,passive:i},u=Gb(e,t,r,a);(t===document.body||t===window||t===document)&&Cr(()=>{t.removeEventListener(e,u,a)})}function bo(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],a=i[0]||e.target,u=0,l=e.__root;if(l){var d=i.indexOf(l);if(d!==-1&&(t===document||t===window)){e.__root=t;return}var p=i.indexOf(t);if(p===-1)return;d<=p&&(u=d)}if(a=i[u]||e.target,a!==t){Kt(e,"currentTarget",{configurable:!0,get(){return a||r}});var g=$e,E=Oe;tr(null),Wt(null);try{for(var _,y=[];a!==null;){var C=a.assignedSlot||a.parentNode||a.host||null;try{var D=a["__"+n];if(D!=null&&(!a.disabled||e.target===a))if(fn(D)){var[P,...N]=D;P.apply(a,[e,...N])}else D.call(a,e)}catch(L){_?y.push(L):_=L}if(e.cancelBubble||C===t||C===null)break;a=C}if(_){for(let L of y)queueMicrotask(()=>{throw L});throw _}}finally{e.__root=t,delete e.currentTarget,tr(g),Wt(E)}}}var Wb,qp,Zu=v(()=>{He();it();Et();On();bt();Wr();Ge();xi();Wb=new Set,qp=new Set});function Qb(){LI=void 0}var LI,zp=v(()=>{Et();Gr();He();Nt();bt()});function Ju(e){var t=document.createElement("template");return t.innerHTML=e,t.content}var lf=v(()=>{});function Zr(e,t){var r=Oe;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Le(e,t){var r=(t&1)!==0,n=(t&2)!==0,i,a=!e.startsWith("<!>");return()=>{if(ge)return Zr(De,null),De;i===void 0&&(i=Ju(a?e:"<!>"+e),r||(i=qt(i)));var u=n||qu?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=qt(u),d=u.lastChild;Zr(l,d)}else Zr(u,u);return u}}function ec(e=""){if(!ge){var t=Qr(e+"");return Zr(t,t),t}var r=De;return r.nodeType!==3&&(r.before(r=Qr()),wt(r)),Zr(r,r),r}function zi(){if(ge)return Zr(De,null),De;var e=document.createDocumentFragment(),t=document.createComment(""),r=Qr();return e.append(t,r),Zr(t,r),e}function we(e,t){if(ge){Oe.nodes_end=De,Vt();return}e!==null&&e.before(t)}var bs=v(()=>{Et();Gr();lf();Ge();bt()});function ir(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Es(e,t){return Xb(e,t)}function Kp(e,t){Zl(),t.intro=t.intro??!1;let r=t.target,n=ge,i=De;try{for(var a=qt(r);a&&(a.nodeType!==8||a.data!==va);)a=fr(a);if(!a)throw Bi;$r(!0),wt(a),Vt();let u=Xb(e,{...t,anchor:a});if(De===null||De.nodeType!==8||De.data!==as)throw ps(),Bi;return $r(!1),u}catch(u){if(u===Bi)return t.recover===!1&&ob(),Zl(),zu(r),$r(!1),Es(e,t);throw u}finally{$r(n),wt(i),Qb()}}function Xb(e,{target:t,anchor:r,props:n={},events:i,context:a,intro:u=!0}){Zl();var l=new Set,d=E=>{for(var _=0;_<E.length;_++){var y=E[_];if(!l.has(y)){l.add(y);var C=zb(y);t.addEventListener(y,bo,{passive:C});v Line truncated
\r\f\xA0\v\uFEFF`]});function Ki(e,t,r,n,i,a){var u=e.__className;if(ge||u!==r){var l=vE(r,n,a);(!ge||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e.__className=r}else if(a&&i!==a)for(var d in a){var p=!!a[d];(i==null||p!==!!i[d])&&e.classList.toggle(d,p)}return a}var Zp=v(()=>{ic();Et()});function Jp(e,t={},r,n){for(var i in r){var a=r[i];t[i]!==a&&(r[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,n))}}function ac(e,t,r,n){var i=e.__style;if(ge||i!==t){var a=TE(t,n);(!ge||a!==e.getAttribute("style"))&&(a==null?e.removeAttribute("style"):e.style.cssText=a),e.__style=t}else n&&(Array.isArray(n)?(Jp(e,r?.[0],n[0]),Jp(e,r?.[1],n[1],"important")):Jp(e,r,n));return n}var em=v(()=>{ic();Et()});function rm(e){if(ge){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;ji(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;ji(e,"checked",null),e.checked=i}}};e.__on_r=r,tb(r),uf()}}function ji(e,t,r,n){var i=XI(e);if(ge&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")){n||JI(e,t,r??"");return}i[t]!==(i[t]=r)&&(t==="loading"&&(e[G_]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ZI(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function XI(e){return e.__attributes??={[GI]:e.nodeName.includes("-"),[QI]:e.namespaceURI===z_}}function ZI(e){var t=xE.get(e.nodeName);if(t)return t;xE.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=Kl(n);for(var a in r)r[a].set&&t.push(a);n=Ta(n)}return t}function JI(e,t,r){se&&(t==="srcset"&&e3(e,r)||tm(e.getAttribute(t)??"",r)||vb(t,e.outerHTML.replace(e.innerHTML,e.innerHTML&&"..."),String(r)))}function tm(e,t){return e===t?!0:new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function yE(e){return e.split(",").map(t=>t.trim().split(" ").filter(Boolean))}function e3(e,t){var r=yE(e.srcset),n=yE(t);return n.length===r.length&&n.every(([i,a],u)=>a===r[u][1]&&(tm(r[u][0],i)||tm(i,r[u][0])))}var jI,WI,GI,QI,xE,AE=v(()=>{mt();Et();it();Zu();cf();Wr();Nt();On();_s();Ge();ic();Zp();em();bt();jI=Symbol("class"),WI=Symbol("style"),GI=Symbol("is custom element"),QI=Symbol("is html");xE=new Map});var t3,ei,nm=v(()=>{it();mt();t3=Yl?()=>performance.now():()=>Date.now(),ei={tick:e=>(Yl?requestAnimationFrame:Ut)(e),now:()=>t3(),tasks:new Set}});function wE(){let e=ei.now();ei.tasks.forEach(t=>{t.c(e)||(ei.tasks.delete(t),t.f())}),ei.tasks.size!==0&&ei.tick(wE)}function SE(e){let t;return ei.tasks.size===0&&ei.tick(wE),{promise:new Promise(r=>{ei.tasks.add(t={c:e,f:r})}),abort(){ei.tasks.delete(t)}}}var CE=v(()=>{nm()});function hf(e,t){_o(()=>{e.dispatchEvent(new CustomEvent(t))})}function a3(e){if(e==="float")return"cssFloat";if(e==="offset")return"cssOffset";if(e.startsWith("--"))return e;let t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function IE(e){let t={},r=e.split(";");for(let n of r){let[i,a]=n.split(":");if(!i||a===void 0)break;let u=a3(i.trim());t[u]=a.trim()}return t}function am(e,t,r,n){var i=(e&1)!==0,a=(e&2)!==0,u=i&&a,l=(e&4)!==0,d=u?"both":i?"in":"out",p,g=t.inert,E=t.style.overflow,_,y;function C(){var H=$e,R=Oe;tr(null),Wt(null);try{return p??=r()(t,n?.()??{},{direction:d})}finally{tr(H),Wt(R)}}var D={is_global:l,in(){if(t.inert=g,!i){y?.abort(),y?.reset?.();return}a||_?.abort(),hf(t,"introstart"),_=im(t,C(),y,1,()=>{hf(t,"introend"),_?.abort(),_=p=void 0,t.style.overflow=E})},out(H){if(!a){H?.(),p=void 0;return}t.inert=!0,hf(t,"outrostart"),y=im(t,C(),_,0,()=>{hf(t,"outroend"),H?.()})},stop:()=>{_?.abort(),y?.abort()}},P=Oe;if((P.transitions??=[]).push(D),i&&ff){var N=l;if(!N){for(var L=P.parent;L&&L.f&65536;)for(;(L=L.parent)&&!(L.f&16););N=!L||(L.f&32768)!==0}N&&Gt(()=>{at(()=>D.in())})}}function im(e,t,r,n,i){var a=n===1;if(xa(t)){var u,l=!1;return dn(()=>{if(!l){var P=t({direction:a?"in":"out"});u=im(e,P,r,n,i)}}),{abort:()=>{l=!0,u?.abort()},deactivate:()=>u.deactivate(),reset:()=>u.reset(),t:()=>u.t()}}if(r?.deactivate(),!t?.duration)return i(),{abort:Ut,deactivate:Ut,reset:Ut,t:()=>n};let{delay:d=0,css:p,tick:g,easing:E=s3}=t;var _=[];if(a&&r===void 0&&(g&&g(0,1),p)){var y=IE(p(0,1));_.push(y,y)}var C=()=>1-n,D=e.animate(_,{duration:d});return D.onfinish=()=>{var P=r?.t()??1-n;r?.abort();var N=n-P,L=t.duration*Math.abs(N),H=[];if(L>0){var R=!1;if(p)for(var B=Math.ceil(L/16.666666666666668),V=0;V<=B;V+=1){var X=P+N*E(V/B),ce=IE(p(X,1-X));H.push(ce),R||=ce.overflow==="hidden"}R&&(e.style.overflow="hidden"),C=()=>{var ve=D.currentTime;return P+N*E(ve/L)},g&&SE(()=>{if(D.playState!=="running")return!1;var ve=C();return g(ve,1-ve),!0})}D=e.animate(H,{duration:L,fill:"forwards"}),D.onfinish=()=>{C=()=>n,g?.(n,1-n),i()}},{abort:()=>{D&&(D.cancel(),D.effect=null,D.onfinish=Ut)},deactivate:()=>{i=Ut},reset:()=>{n===0&&g?.(1,0)},t:()=>C()}}var s3,NE=v(()=>{it();He();Ge();CE();vs();df();bt();Nt();On();xi();s3=e=>e});var OE=v(()=>{xi()});function um( Line truncated
Enable this option to completely hide them.`).addToggle(i=>i.setValue(t.hideExcluded).onChange(async a=>{t.hideExcluded=a,await ke(e)})),new tn.Setting(r).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(i=>{i.setValue(t.downrankedFoldersFilters.join(",")).setPlaceholder("Example: src,p2/dir").onChange(async a=>{let u=a.split(",");u=u.map(l=>l.trim()),t.downrankedFoldersFilters=u,await ke(e)})}),new tn.Setting(r).setName("Split CamelCaseWords").setDesc(ar(`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>
${Ao}`)).addToggle(i=>i.setValue(t.splitCamelCase).onChange(async a=>{await n.clearCache(),t.splitCamelCase=a,await ke(e)})),new tn.Setting(r).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(i=>i.setValue(t.simpleSearch).onChange(async a=>{t.simpleSearch=a,await ke(e)})),tn.Platform.isIosApp||new tn.Setting(r).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(i=>i.setValue(t.tokenizeUrls).onChange(async a=>{t.tokenizeUrls=a,await ke(e)})),new tn.Setting(r).setName("Open in new pane").setDesc("Open and create files in a new pane instead of the current pane.").addToggle(i=>i.setValue(t.openInNewPane).onChange(async a=>{t.openInNewPane=a,await ke(e)})),new tn.Setting(r).setName("Set Vim like navigation keys").setDesc(`Navigate down the results with ${vn()} + J/N, or navigate up with ${vn()} + K/P.`).addToggle(i=>i.setValue(t.vimLikeNavigationShortcut).onChange(async a=>{t.vimLikeNavigationShortcut=a,await ke(e)})),new tn.Setting(r).setName("Fuzziness").setDesc("Define the level of fuzziness for the search. The higher the fuzziness, the more results you'll get.").addDropdown(i=>i.addOptions({0:"Exact match",1:"Not too fuzzy",2:"Fuzzy enough"}).setValue(t.fuzziness).onChange(async a=>{["0","1","2"].includes(a)||(a="2"),t.fuzziness=a,await ke(e)}))}var tn,Tv=v(()=>{tn=require("obsidian");mr();mr();Nr()});function xv(e,t,r){let n=e.database;new Si.Setting(r).setName("Danger Zone").setHeading(),new Si.Setting(r).setName("Ignore diacritics").setDesc(ar(`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>
${Ao}`)).addToggle(a=>a.setValue(t.ignoreDiacritics).onChange(async u=>{await n.clearCache(),t.ignoreDiacritics=u,await ke(e)})),new Si.Setting(r).setName("Ignore Arabic diacritics (beta)").addToggle(a=>a.setValue(t.ignoreArabicDiacritics).onChange(async u=>{await n.clearCache(),t.ignoreArabicDiacritics=u,await ke(e)}));let i=new DocumentFragment;i.createSpan({},a=>{a.innerHTML=`Disable Omnisearch on this device only.<br>
${Ao}`}),new Si.Setting(r).setName("Disable on this device").setDesc(i).addToggle(a=>a.setValue(Nf(e.app)).onChange(async u=>{u?(e.app.saveLocalStorage(Ss,"1"),new Si.Notice("Omnisearch - Disabled. Please restart Obsidian.")):(e.app.saveLocalStorage(Ss),new Si.Notice("Omnisearch - Enabled. Please restart Obsidian."))})),new Si.Setting(r).setName("Force save the cache").setDesc(ar(`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(a=>a.setValue(t.DANGER_forceSaveCache).onChange(async u=>{t.DANGER_forceSaveCache=u,await ke(e)})),Qi()&&new Si.Setting(r).setName("Clear cache data").setDesc(ar(`Erase all Omnisearch cache data.
Use this if Omnisearch results are inconsistent, missing, or appear outdated.<br>
${Ao}`)).addButton(a=>{a.setButtonText("Clear cache"),a.onClick(async()=>{await n.clearCache()})})}var Si,yv=v(()=>{Si=require("obsidian");mr();mr();mr();en()});function Av(e,t,r){Ns.Platform.isMobile||(new Ns.Setting(r).setName("API Access Through HTTP").setHeading().setDesc(ar('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 Ns.Setting(r).setName("Enable the HTTP server").addToggle(n=>n.setValue(t.httpApiEnabled).onChange(async i=>{t.httpApiEnabled=i,i?e.apiHttpServer.listen(t.httpApiPort):e.apiHttpServer.close(),await ke(e)})),new Ns.Setting(r).setName("HTTP Port").addText(n=>{n.setValue(t.httpApiPort).setPlaceholder("51361").onChange(async i=>{parseInt(i)>65535&&(i=t.httpApiPort,n.setValue(t.httpApiPort)),t.httpApiPort=i,t.httpApiEnabled&&(e.apiHttpServer.close(),e.apiHttpServer.listen(t.httpApiPort)),await ke(e)})}),new Ns.Setting(r).setName("Show a notification when the server starts").setDesc("Will display a notification if the server is enabled, at Obsidian startup.").addToggle(n=>n.setValue(t.httpApiNotice).onChange(async i=>{t.httpApiNotice=i,await ke(e)})))}var Ns,wv=v(()=>{Ns=require("obsidian");mr();mr()});var L3,Of,Dm=v(()=>{L3=typeof global=="object"&&global&&global.Object===Object&&global,Of=L3});var P3,M3,Yt,ni=v(()=>{Dm();P3=typeof self=="object"&&self&&self.Object===Object&&self,M3=Of||P3||Function("return this")(),Yt=M3});var F3,Ur,So=v(()=>{ni();F3=Yt.Symbol,Ur=F3});function H3(e){var t=B3.call(e,Ec),r=e[Ec];try{e[Ec]=void 0;var n=!0}catch{}var i=$3.call(e);return n&&(t?e[Ec]=r:delete e[Ec]),i}var Sv,B3,$3,Ec,Cv,Iv=v(()=>{So();Sv=Object.prototype,B3=Sv.hasOwnProperty,$3=Sv.toString,Ec=Ur?Ur.toStringTag:void 0;Cv=H3});function q3(e){return V3.call(e)}var U3,V3,Nv,Ov=v(()=>{U3=Object.prototype,V3=U3.toString;Nv=q3});function K3(e){return e==null?e===void 0?Y3:z3:Dv&&Dv in Object(e)?Cv(e):Nv(e)}var z3,Y3,Dv,ii,Co=v(()=>{So();Iv();Ov();z3="[object Null]",Y3="[object Undefined]",Dv=Ur?Ur.toStringTag:void 0;ii=K3});function j3(e){return e!=null&&typeof e=="object"}var ai,Io=v(()=>{ai=j3});function G3(e){return typeof e=="symbol"||ai(e)&&ii(e)==W3}var W3,si,No=v(()=>{Co();Io();W3="[object Symbol]";si=G3});function Q3(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Oo,km=v(()=>{Oo=Q3});var X3,Ft,oi=v(()=>{X3=Array.isArray,Ft=X3});function Lv(e){if(typeof e=="string")return e;if(Ft(e))return Oo(e,Lv)+"";if(si(e))return Rv?Rv.call(e):"";var t=e+"";return t=="0"&&1/e==-Z3?"-0":t}var Z3,kv,Rv,Pv,Mv=v(()=>{So();km();oi();No();Z3=1/0,kv=Ur?Ur.prototype:void 0,Rv=kv?kv.toString:void 0;Pv=Lv});function eN(e){for(var t=e.length;t--&&J3.test(e.charAt(t)););return t}var J3,Fv,Bv=v(()=>{J3=/\s/;Fv=eN});function rN(e){return e&&e.slice(0,Fv(e)+1).replace(tN,"")}var tN,$v,Hv=v(()=>{Bv();tN=/^\s+/;$v=rN});function nN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Tn,Os=v(()=>{Tn=nN});function uN(e){if(typeof e=="number")return e;if(si(e))return Uv;if(Tn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Tn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$v(e);var r=aN.test(e);return r||sN.test(e)?oN(e.slice(2),r?2:8):iN.test(e)?Uv:+e}var Uv,iN,aN,sN,oN,Rm,Vv=v(()=>{Hv();Os();No();Uv=0/0,iN=/^[-+]0x[0-9a-f]+$/i,aN=/^0b[01]+$/i,sN=/^0o[0-7]+$/i,oN=parseInt;Rm=uN});function cN(e){return e}var Ia,vc=v(()=>{Ia=cN});function pN(e){if(!Tn(e))return!1;var t=ii(e);return t==fN||t==dN||t==lN||t==hN}var lN,fN,dN,hN,Df,Lm=v(()=>{Co();Os();lN="[object AsyncFunction]",fN="[object Function]",dN="[object GeneratorFunction]",hN="[object Proxy]";Df=pN});var mN,kf,qv=v(()=>{ni();mN=Yt["__core-js_shared__"],kf=mN});function gN(e){return!!zv&&zv in e}var zv,Yv,Kv=v(()=>{qv();zv=function(){var e=/[^.]+$/.exec(kf&&kf.keys&&kf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();Yv=gN});function EN(e){if(e!=null){try{return bN.call(e)}catch{}try{return e+""}catch{}}return""}var _N,bN,Xi,Pm=v(()=>{_N=Function.prototype,bN=_N.toString;Xi=EN});function CN(e){if(!Tn(e)||Yv(e))return!1;var t=Df(e)?SN:TN;return t.test(Xi(e))}var vN,TN,xN,yN,AN,wN,SN,jv,Wv=v(()=>{Lm();Kv();Os();Pm();vN=/[\\^$.*+?()[\]{}|]/g,TN=/^\[object .+?Constructor\]$/,xN=Function.prototype,yN=Object.prototype,AN=xN.toString,wN=yN.hasOwnProperty,SN=RegExp("^"+AN.call(wN).replace(vN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");jv=CN});function IN(e,t){return e?.[t]}var Gv,Qv=v(()=>{Gv=IN});function NN(e,t){var r=Gv(e,t);return jv(r)?r:void 0}var rn,Na=v(()=>{Wv();Qv();rn=NN});var ON,Rf,Xv=v(()=>{Na();ni();ON=rn(Yt,"WeakMap"),Rf=ON});function DN(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Zv,Jv=v(()=>{Zv=DN});function PN(e){var t=0,r=0;return function(){var n=LN(),i=RN-(n-r);if(r=n,i>0){if(++t>=kN)return arg Line truncated
${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.'}
${i?'<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 Ji.Setting(r).setName(`PDFs content indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(ar("Omnisearch will use Text Extractor to index the content of your PDFs.")).addToggle(p=>p.setValue(t.PDFIndexing).onChange(async g=>{await a.clearCache(),t.PDFIndexing=g,await ke(e)})).setDisabled(!n),new Ji.Setting(r).setName(`Images OCR indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(ar("Omnisearch will use Text Extractor to OCR your images and index their content.")).addToggle(p=>p.setValue(t.imagesIndexing).onChange(async g=>{await a.clearCache(),t.imagesIndexing=g,await ke(e)})).setDisabled(!n);let l=new DocumentFragment;l.createSpan({},p=>{p.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 Ji.Setting(r).setName(`Documents content indexing ${n?"":"\u26A0\uFE0F Disabled"}`).setDesc(l).addToggle(p=>p.setValue(t.officeIndexing).onChange(async g=>{await a.clearCache(),t.officeIndexing=g,await ke(e)})).setDisabled(!n);let d=new DocumentFragment;d.createSpan({},p=>{p.innerHTML=`Omnisearch will use AI Image Analyzer to index the content of your images with ai.<br/>
\u26A0\uFE0F <span style="color: var(--text-accent)">If both AI Image Analyzer and Text Extractor are enabled, Text Extractor will only be used as a fallback.</span>`}),new Ji.Setting(r).setName(`Images AI indexing ${i?"":"\u26A0\uFE0F Disabled"}`).setDesc(d).addToggle(p=>p.setValue(t.aiImageIndexing).onChange(async g=>{await a.clearCache(),t.aiImageIndexing=g,await ke(e)})).setDisabled(!i),new Ji.Setting(r).setName("Index paths of unsupported files").setDesc(ar(`
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(p=>{p.addOptions({yes:"Yes",no:"No",default:"Obsidian setting"}).setValue(t.unsupportedFilesIndexing).onChange(async g=>{await u(),t.unsupportedFilesIndexing=g,await ke(e)})}),new Ji.Setting(r).setName("Set frontmatter property key as title").setDesc(ar(`If you have a custom property in your notes that you want to use as the title in search results. If you set this to '#heading', then use the first heading from a file as the title.<br>
Leave empty to disable.`)).addText(p=>{p.setValue(t.displayTitle).onChange(async g=>{await u(),t.displayTitle=g,await ke(e)})}),new Ji.Setting(r).setName("Additional TEXT files to index").setDesc(ar(`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(p=>{p.setValue(t.indexedFileTypes.join(" ")).setPlaceholder("Example: txt org csv").onChange(async g=>{await a.clearCache(),t.indexedFileTypes=g.split(" "),await ke(e)})})}var Ji,Cy=v(()=>{Ji=require("obsidian");mr();mr();Dc()});function Iy(e,t,r){new Ma.Setting(r).setName("User Interface").setHeading(),new Ma.Setting(r).setName("Show ribbon button").setDesc("Add a button on the sidebar to open the Vault search modal.").addToggle(n=>n.setValue(t.ribbonIcon).onChange(async i=>{t.ribbonIcon=i,await ke(e),i?e.addRibbonButton():e.removeRibbonButton()})),new Ma.Setting(r).setName("Show excerpts").setDesc("Shows the contextual part of the note that matches the search. Disable this to only show filenames in results.").addToggle(n=>n.setValue(t.showExcerpt).onChange(async i=>{Fa.set(i)})),new Ma.Setting(r).setName("Show embed references").setDesc(ar(`Some results are <a href="https://help.obsidian.md/Linking+notes+and+files/Embed+files">embedded</a> in other notes.<br>
This setting controls the maximum number of embeds to show in the search results. Set to 0 to disable.<br>
Also works with Text Extractor for embedded images and documents.`)).addSlider(n=>{n.setLimits(0,10,1).setValue(t.maxEmbeds).setDynamicTooltip().onChange(async i=>{t.maxEmbeds=i,await ke(e)})}),new Ma.Setting(r).setName("Render line return in excerpts").setDesc("Activate this option to render line returns in result excerpts.").addToggle(n=>n.setValue(t.renderLineReturnInExcerpts).onChange(async i=>{t.renderLineReturnInExcerpts=i,await ke(e)})),new Ma.Setting(r).setName('Show "Create note" button').setDesc(ar(`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(n=>n.setValue(t.showCreateButton).onChange(async i=>{t.showCreateButton=i,await ke(e)})),new Ma.Setting(r).setName("Highlight matching words in results").setDesc("Will highlight matching results when enabled. See README for more customization options.").addToggle(n=>n.setValue(t.highlight).onChange(async i=>{t.highlight=i,await ke(e)}))}var Ma,Ny=v(()=>{Ma=require("obsidian");wo();mr();mr()});function Dy(e,t,r,n){function i(u,l){u.setLimits(1,10,.5).setValue(t[l]).setDynamicTooltip().onChange(async d=>{t[l]=d,await ke(e)})}let a=kc(e.app);new Fn.Setting(r).setName("Results weighting").setHeading(),new Fn.Setting(r).setName(`File name & declared aliases (default: ${a.weightBasename})`).addSlider(u=>i(u,"weightBasename")),new Fn.Setting(r).setName(`File directory (default: ${a.weightDirectory})`).addSlider(u=>i(u,"weightDirectory")),new Fn.Setting(r).setName(`Headings level 1 (default: ${a.weightH1})`).addSlider(u=>i(u,"weightH1")),new Fn.Setting(r).setName(`Headings level 2 (default: ${a.weightH2})`).addSlider(u=>i(u,"weightH2")),new Fn.Setting(r).setName(`Headings level 3 (default: ${a.weightH3})`).addSlider(u=>i(u,"weightH3")),new Fn.Setting(r).setName(`Tags (default: ${a.weightUnmarkedTags})`).addSlider(u=>i(u,"weightUnmarkedTags")),new Fn.Setting(r).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 u=0;u<t.weightCustomProperties.length;u++){let l=t.weightCustomProperties[u],d=new Fn.Setting(r).setName((u+1).toString()+".");d.settingEl.style.paddingLeft="2em",d.addText(p=>{p.setPlaceholder("Property name").setValue(l.name).onChange(async g=>{l.name=g,await ke(e)})}).addSlider(p=>{p.setLimits(.1,5,.1).setValue(l.weight).setDynamicTooltip().onChange(async g=>{l.weight=g,await ke(e)})}).addButton(p=>{p.setButtonText("Remove"),p.onClick(async()=>{t.weightCustomProperties.splice(u,1),await ke(e),n()})})}new Fn.Setting(r).addButton(u=>{u.setButtonText("Add a new property"),u.onClick(l=>{t.weightCustomProperties.push({name:"",weight:1}),n()})}),new Fn.Setting(r).setName("Recency boost (experimental)").setDesc("Files that have been modified more recently than [selected cutoff] are given a higher rank.").addDropdown(u=>u.addOptions({["0"]:"Disabled",["1"]:"24 hours",["2"]:"7 days",["3"]:"30 days"}).setValue(t.recencyBoost).onChange(async l=>{t.recencyBoost=l,await ke(e)}))}var Fn,ky=v(()=>{Fn=require("obsidian");wo();mr();en()});function kc(e){return{useCache:!0,hideExcluded:!1,recencyBoost:"0",downrankedFoldersFilters:[],ignoreDiacritics:!0,ignoreArabicDiacritics:!1,indexedFileTypes:[],displayTitle:"",PDFIndexing:!1,officeIndexing:!1,imagesIndexing:!1,aiImageIndexing:!1,unsupportedFilesIndexing:"default",splitCamelCase:!1,openInNewPane:!1,vimLikeNavigationShortcut:e.vault.getConfig("vimMode"),ribbonIcon:!0,showExcerpt:!0,maxEmbeds:5,renderLineReturnInExcerpts:!0,showCreateButton:!1,highlight:!0,showPreviousQueryResults:!0,simpleSearch:!1,tokenizeUrls:!1,fuzziness:"1",weightBasename:10,weightDirectory:7,weightH1:6,weightH2:5,weightH3:4,weightUnmarkedTags:2,weightCustomProperties:[],httpApiEnabled:!1,httpApiPort:"51361",httpApiNotice:!0,welcomeMessage:"",verboseLogging:!1,DANGER_httpHost:null,DANGER_forceSaveCache:!1}}async function Ry(e){return Or=Object.assign({},kc(e.app),await e.loadData()),Fa.set(Or.showExcerpt),Sm(Or.verboseLogging),Or}var Rc,Fa,id,Or,wo=v(()=>{Rc=require("obsidian");Em();en();Nr();Tv();yv();wv();Cy();Ny();ky();mr();Fa=yo(!1),id=class extends Rc.PluginSettingTab{constructor(r){super(r.app,r);this.plugin=r,Fa.subscribe(async n=>{Or.showExcerpt=n,await ke(this.plugin)})}display(){let{containerEl:r}=this;if(r.empty(),this.app.loadLocalStorage(Ss)=="1"){let i=r.createEl("span");i.innerHTML='<strong style="color: var(--text-accent)">\u26A0\uFE0F OMNISEARCH IS DISABLED \u26A0\uFE0F</strong>'}r.createEl("h1",{text:"Omnisearch"});let n=r.createDiv();n.innerHTML=`
<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>
`,Sy(this.plugin,Or,r),r.createEl("hr"),vv(this.plugin,Or,r),r.createEl("hr"),Iy(this.plugin,Or,r),r.createEl("hr"),Dy(this.plugin,Or,r,()=>{this.display()}),r.createEl("hr"),Av(this.plugin,Or,r),r.createEl("hr"),xv(this.plugin,Or,r),r.createEl("hr"),new Rc.Setting(r).setName("Debugging").setHeading(),new Rc.Setting(r).setName("Enable verbose logging").setDesc('Adds a LOT of logs for debugging purposes. You also need to enable "Verbose" logging in the console to see these logs.').addToggle(i=>i.setValue(Or.verboseLogging).onChange(async a=>{Or.verboseLogging=a,Sm(a),await ke(this.plugin)}))}}});function a0(e){var t=b6();we(e,t)}var b6,Ly=v(()=>{Wn();Ai();Pn();b6=Le('<span class="suggestion-flair" aria-label="Not created yet, select to create"><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></span>')});function Lc(e,t){let r=ze(t,"id",8),n=ze(t,"selected",8,!1),i=ze(t,"glyph",8,!1),a=ze(t,"cssClass",8,"");var u=E6();let l;var d=xe(u);{var p=E=>{a0(E,{})};tt(d,E=>{i()&&E(p)})}var g=Ye(d,2);Yi(g,t,"default",{},null),Te(u),rr(E=>{ji(u,"data-result-id",r()),l=Ki(u,1,`suggestion-item omnisearch-result ${a()??""}`,null,l,E)},[()=>({"is-selected":n()})],Br),pr("mousemove",u,function(E){Jr.call(this,t,E)}),pr("click",u,function(E){Jr.call(this,t,E)}),pr("keypress",u,function(E){Jr.call(this,t,E)}),pr("auxclick",u,function(E){Jr.call(this,t,E)}),we(e,u)}var E6,s0=v(()=>{Wn();Ai();Pn();Ly();E6=Le("<div><!> <!></div>")});function sd(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}var Py,ad,o0=v(()=>{en();Nr();Py=require("obsidian");Dc();ad=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{return t.replace(new RegExp(`(${r.map(i=>Oc(i.match)).join("|")})`,"giu"),`<span class="${n}">$1</span>`)}catch(i){return console.error("Omnisearch - Error in highlightText()",i),t}}stringsToRegex(t){if(!t.length)return/^$/g;t.sort((n,i)=>i.length-n.length);let r=`(${t.map(n=>`\\b${Oc(n)}\\b|${Oc(n)}`).join("|")})`;return new RegExp(`${r}`,"gui")}getMatches(t,r,n){r=r.map(sd);let i=this.stringsToRegex(r),a=t;this.plugin.settings.ignoreDiacritics&&(t=Gi(t,this.plugin.settings.ignoreArabicDiacritics));let u=new Date().getTime(),l=null,d=[],p=0;for(;(l=i.exec(t))!==null;){if(++p>=100||new Date().getTime()-u>50){ri("Stopped getMatches at",p,"results");break}let g=l.index,E=g+l[0].length,_=a.substring(g,E).trim();_&&l.index>=0&&d.push({match:_,offset:l.index})}if(n&&(n.query.text.length>1||n.getExactTerms().length>0)){let g=t.indexOf(n.getBestStringForExcerpt());g>-1&&d.find(E=>E.offset===g)&&d.unshift({offset:g,match:n.getBestStringForExcerpt()})}return d}makeExcerpt(t,r){let n=this.plugin.settings;try{let i=r??-1,a=Math.max(0,i-av),u=Math.min(t.length,i+cc);if(i>-1?t=(a>0?"\u2026":"")+t.slice(a,u).trim()+(u<t.length-1?"\u2026":""):t=t.slice(0,cc),n.renderLineReturnInExcerpts){let l=new RegExp(/(?:\r\n|\r|\n)/g);t=t.split(l).filter(p=>p).join(`
`);let d=t.lastIndexOf(`
`,i-a);d>0&&(t=t.slice(d))}return t=sd(t),n.renderLineReturnInExcerpts&&(t=t.trim().replaceAll(`
`,"<br>")),t}catch(i){return new Py.Notice("Omnisearch - Error while creating excerpt, see developer console"),console.error("Omnisearch - Error while creating excerpt"),console.error(i),""}}}});async function My(e){let t=e.app;if(!t.plugins.getPlugin("obsidian-icon-folder"))return{};let n=`${t.vault.configDir}/plugins/obsidian-icon-folder/data.json`;try{let i=await t.vault.adapter.read(n),a=JSON.parse(i),u={};for(let l in a){let d=(0,qo.normalizePath)(l);u[d]=a[l]}return u}catch(i){return ri("Failed to read data.json:",i),{}}}async function Fy(e){let t={Li:"lucide-icons"},r="icons",n=e.app,i=n.plugins.getPlugin("obsidian-icon-folder");if(i){r=i.settings?.iconPacksPath||"icons";let u=`${n.vault.configDir}/${r}`;try{let l=await n.vault.adapter.list(u);if(l.folders&&l.folders.length>0)for(let d of l.folders){let p=d.split("/"),g=p[p.length-1],E=v6(g);t[E]=g}}catch(l){ri("Failed to list icon packs:",l)}}return{prefixToIconPack:t,iconsPath:r}}function v6(e){if(e.includes("-")){let t=e.split("-"),r=t[0].charAt(0).toUpperCase();for(let n=1;n<t.length;n++)r+=t[n].charAt(0).toLowerCase();return r}return e.charAt(0).toUpperCase()+e.charAt(1).toLowerCase()}function u0(e,t){let r=(0,qo.normalizePath)(e),n=t[r];if(n){if(typeof n=="string")return n;if(typeof n=="object"&&n.iconName)return n.iconName}return null}function T6(e){let t=e.match(/^[A-Z][a-z]*/);if(t){let r=t[0],n=e.substring(r.length);return{prefix:r,name:n}}else return{prefix:"",name:e}}async function c0(e,t,r,n){let i=T6(e),{prefix:a,name:u}=i;if(!a)return`<span class="omnisearch-result__icon--emoji">${sd(u)}</span>`;let l=n[a];if(!l)return ri(`No icon pack found for prefix: ${a}`),null;if(l==="lucide-icons"){let d=u.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),p=(0,qo.getIcon)(d);return p?p.outerHTML:(ri(`Lucide icon not found: ${d}`),null)}else{if(!r)return ri("Icons path is not set. Cannot load icon SVG."),null;let d=`${t.app.vault.configDir}/${r}/${l}/${u}.svg`;try{return await t.app.vault.adapter.read(d)}catch(p){return ri(`Failed to load icon SVG for ${e} at ${d}:`,p),null}}}function l0(e){let t="file";e==="folder"?t="folder":Mn(e)?t="image":ti(e)?t="file-text":(wi(e)||dc(e)||Cs(e))&&(t="layout-dashboard");let r=(0,qo.getIcon)(t);return r?r.outerHTML:""}var qo,By=v(()=>{qo=require("obsidian");Nr();o0()});function f0(e,t){dr(t,!1);let[r,n]=uc(),i=()=>oc(Fa,"$showExcerpt",r),a=ft(),u=ft(),l=ft(),d=ft(),p=ze(t,"selected",8,!1),g=ze(t,"note",8),E=ze(t,"plugin",8),_=ft(null),y=ft(""),C=ft(""),D={},P=ft(null),N=ft(null),L={},H,R=ft(!1);As(async()=>{D=await My(E());let qe=await Fy(E());L=qe.prefixToIconPack,H=qe.iconsPath,oe(R,!0)});async function B(){let qe=u0(q(C),D);qe?oe(P,await c0(qe,E(),H,L)):oe(P,l0("folder"));let St=u0(g().path,D);St?oe(N,await c0(St,E(),H,L)):oe(N,l0(g().path))}function V(qe,St){return qe.innerHTML=St,{update(Dt){qe.innerHTML=Dt},destroy(){qe.innerHTML=""}}}let X=null,ce=null,ve=ft(null);Qt(()=>(vt(g()),q(R),fc),()=>{g()&&g().path&&q(R)&&(async()=>(oe(y,g().displayTitle||g().basename),oe(C,fc(g().path)),await B()))()}),Qt(()=>(Mn,vt(g()),vt(E()),ui.TFile),()=>{if(oe(_,null),Mn(g().path)){let qe=E().app.vault.getAbstractFileByPath(g().path);qe instanceof ui.TFile&&oe(_,E().app.vault.getResourcePath(qe))}}),Qt(()=>(vt(g()),fc,ui.setIcon,Mn,ti,wi,dc,Cs,q(ve)),()=>{oe(y,g().displayTitle||g().basename),oe(C,fc(g().path)),X&&(0,ui.setIcon)(X,"folder-open"),ce&&(Mn(g().path)?(0,ui.setIcon)(ce,"image"):ti(g().path)?(0,ui.setIcon)(ce,"file-text"):wi(g().path)||dc(g().path)||Cs(g().path)?(0,ui.setIcon)(ce,"layout-dashboard"):(0,ui.setIcon)(ce,"file")),q(ve)&&(0,ui.setIcon)(q(ve),"corner-down-right")}),Qt(()=>(vt(E()),q(y),vt(g())),()=>{oe(a,E().textProcessor.getMatches(q(y),g().foundWords))}),Qt(()=>(vt(E()),q(C),vt(g())),()=>{oe(u,E().textProcessor.getMatches(q(C),g().foundWords))}),Qt(()=>(vt(E()),vt(g())),()=>{oe(l,E().textProcessor.makeExcerpt(g().content,g().matches[0]?.offset??-1))}),Qt(()=>{},()=>{oe(d,!1)}),Jn(),En();let Re=Br(()=>g().isEmbed?"omnisearch-result__embed":"");Lc(e,{get glyph(){return q(d)},get id(){return g().path},get cssClass(){return` ${q(Re)??""}`},get selected(){return p()},$$events:{auxclick(qe){Jr.call(this,t,qe)},click(qe){Jr.call(this,t,qe)},mousemove(qe){Jr.call(this,t,qe)}},children:(qe,St)=>{var Dt=D6(),Se=xe(Dt),et=xe(Se),je=xe(et);{var lt=rt=>{var ct=x6();ys(ct,Xt=>oe(ve,Xt),()=>q(ve)),we(rt,ct)},F=rt=>{var ct=zi(),Xt=Sr(ct);{var Er=Pr=>{var zr=y6();wa(zr,(Ct,$t)=>V?.(Ct,$t),()=>q(N)),we(Pr,zr)};tt(Xt,Pr=>{q(N)&&Pr(Er)})}we(rt,ct)};tt(je,rt=>{g().isEmbed?rt(lt):rt(F,!1)})}var K=Ye(je,2),te=xe(K);Ts(te,()=>E().textProcessor.highlightText(q(y),q(a)),!1,!1),Te(K);var fe=Ye(K,2);{var Fe=rt=>{var ct=A6(),Xt=xe(ct);Te(ct),rr(Er=>ir(Xt,`.${Er??""}`),[()=>Is(g().path)],Br),we(rt,ct)};tt(fe,rt=>{g().displayTitle||rt(Fe)})}var Je=Ye(fe,2);{var Ue=rt=>{var ct=w6(),Xt=xe(ct);Te(ct),rr(()=>ir(Xt,`${g().matches.length??""}\xA0${(g().matches.length>1?"matches":"match")??""}`)),we(rt,ct)};tt(Je,rt=>{g().matches.lengthLine truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Je=!0,Ue=!1,ot;return{s:function(){te=te.call(F)},n:function(){var _t=te.next();return Je=_t.done,_t},e:function(_t){Ue=!0,ot=_t},f:function(){try{!Je&&te.return!=null&&te.return()}finally{if(Ue)throw ot}}}}function p(F,K){if(F){if(typeof F=="string")return g(F,K);var te=Object.prototype.toString.call(F).slice(8,-1);if(te==="Object"&&F.constructor&&(te=F.constructor.name),te==="Map"||te==="Set")return Array.from(F);if(te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te))return g(F,K)}}function g(F,K){(K==null||K>F.length)&&(K=F.length);for(var te=0,fe=new Array(K);te<K;te++)fe[te]=F[te];return fe}function E(F,K){if(!(F instanceof K))throw new TypeError("Cannot call a class as a function")}function _(F,K){for(var te=0;te<K.length;te++){var fe=K[te];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(F,fe.key,fe)}}function y(F,K,te){return K&&_(F.prototype,K),te&&_(F,te),Object.defineProperty(F,"prototype",{writable:!1}),F}function C(F,K,te){return K in F?Object.defineProperty(F,K,{value:te,enumerable:!0,configurable:!0,writable:!0}):F[K]=te,F}function D(F,K,te){P(F,K),K.set(F,te)}function P(F,K){if(K.has(F))throw new TypeError("Cannot initialize the same private elements twice on an object")}function N(F,K){var te=R(F,K,"get");return L(F,te)}function L(F,K){return K.get?K.get.call(F):K.value}function H(F,K,te){var fe=R(F,K,"set");return B(F,fe,te),te}function R(F,K,te){if(!K.has(F))throw new TypeError("attempted to "+te+" private field on non-instance");return K.get(F)}function B(F,K,te){if(K.set)K.set.call(F,te);else{if(!K.writable)throw new TypeError("attempted to set read only private field");K.value=te}}var V=typeof Symbol<"u"?Symbol.toStringTag:"@@toStringTag",X=new WeakMap,ce=new WeakMap,ve=function(){function F(K){var te=K.executor,fe=te===void 0?function(){}:te,Fe=K.internals,Je=Fe===void 0?lt():Fe,Ue=K.promise,ot=Ue===void 0?new Promise(function(ut,_t){return fe(ut,_t,function(qr){Je.onCancelList.push(qr)})}):Ue;E(this,F),D(this,X,{writable:!0,value:void 0}),D(this,ce,{writable:!0,value:void 0}),C(this,V,"CancelablePromise"),this.cancel=this.cancel.bind(this),H(this,X,Je),H(this,ce,ot||new Promise(function(ut,_t){return fe(ut,_t,function(qr){Je.onCancelList.push(qr)})}))}return y(F,[{key:"then",value:function(te,fe){return et(N(this,ce).then(Se(te,N(this,X)),Se(fe,N(this,X))),N(this,X))}},{key:"catch",value:function(te){return et(N(this,ce).catch(Se(te,N(this,X))),N(this,X))}},{key:"finally",value:function(te,fe){var Fe=this;return fe&&N(this,X).onCancelList.push(te),et(N(this,ce).finally(Se(function(){if(te)return fe&&(N(Fe,X).onCancelList=N(Fe,X).onCancelList.filter(function(Je){return Je!==te})),te()},N(this,X))),N(this,X))}},{key:"cancel",value:function(){N(this,X).isCanceled=!0;var te=N(this,X).onCancelList;N(this,X).onCancelList=[];var fe=d(te),Fe;try{for(fe.s();!(Fe=fe.n()).done;){var Je=Fe.value;if(typeof Je=="function")try{Je()}catch(Ue){console.error(Ue)}}}catch(Ue){fe.e(Ue)}finally{fe.f()}}},{key:"isCanceled",value:function(){return N(this,X).isCanceled===!0}}]),F}(),Re=function(F){t(te,F);var K=n(te);function te(fe){return E(this,te),K.call(this,{executor:fe})}return y(te)}(ve);e.CancelablePromise=Re,C(Re,"all",function(K){return je(K,Promise.all(K))}),C(Re,"allSettled",function(K){return je(K,Promise.allSettled(K))}),C(Re,"any",function(K){return je(K,Promise.any(K))}),C(Re,"race",function(K){return je(K,Promise.race(K))}),C(Re,"resolve",function(K){return St(Promise.resolve(K))}),C(Re,"reject",function(K){return St(Promise.reject(K))}),C(Re,"isCancelable",Dt);var qe=Re;e.default=qe;function St(F){return et(F,lt())}function Dt(F){return F instanceof Re||F instanceof ve}function Se(F,K){if(F)return function(te){if(!K.isCanceled){var fe=F(te);return Dt(fe)&&K.onCancelList.push(fe.cancel),fe}return te}}function et(F,K){return new ve({internals:K,promise:F})}function je(F,K){var te=lt();return te.onCancelList.push(function(){var fe=d(F),Fe;try{for(fe.s();!(Fe=fe.n()).done;){var Je=Fe.value;Dt(Je)&&Je.cancel()}}catch(Ue){fe.e(Ue)}finally{fe.f()}}),new ve({internals:te,promise:K})}function lt(){return{isCanceled:!1,onCancelList:[]}}})});function Yy(e,{delay:t=0,duration:r=400,easing:n=k6}={}){let i=+getComputedStyle(e).opacity;return{delay:t,duration:r,easing:n,css:a=>`opacity: ${a*i}`}}var k6,Ky=v(()=>{mt();Wr();k6=e=>e});function ld(e,t){dr(t,!1);let r=ze(t,"placeholder",8,null),n=ze(t,"placeholderProps",8,null),i="svelte-lazy-placeholder";En();var a=zi(),u=Sr(a);{var l=d=>{var p=L6();Ki(p,1,xs(i));var g=xe(p);{var E=y=>{var C=R6(),D=xe(C,!0);Te(C),rr(()=>ir(D,r())),we(y,C)},_=(y,C)=>{{var D=P=>{var N=zi(),L=Sr(N);Qp(L,r,(H,R)=>{R(H,gm(n))}),we(P,N)};tt(y,P=>{["function","object"].includes(typeof r())&&P(D)},C)}};tt(g,y=>{typeof r()=="string"?y(E):y(_,!1)})}Te(p),we(d,p)};tt(u,d=>{r()&&d(l)})}we(e,a),hr()}var R6,L6,jy=v(()=>{Wn();Ai() Line truncated
characters.</span>`,1),q6=Le("We found 0 results for your search here. <!>",1),z6=Le('<!> <div style="text-align: center;"><!></div>',1),Y6=Le('<!> <!> <!> <div class="prompt-instructions"><div class="prompt-instruction"><span class="prompt-instruction-command">\u2191\u2193</span><span>to navigate</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to cycle history</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to open</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command">Tab</span> <span>to switch to In-File Search</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to open in a new pane</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"></span> <span>to open in a new split</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to open in the background</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to create</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to create in a new pane</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to insert a link</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command"> </span> <span>to toggle excerpts</span></div> <div class="prompt-instruction"><span class="prompt-instruction-command">Esc</span><span>to close</span></div></div>',1)});function g0(e,t){dr(t,!1);let r=ft(),n=ze(t,"plugin",8),i=ze(t,"offset",8),a=ze(t,"note",8),u=ze(t,"index",8,0),l=ze(t,"selected",8,!1);Qt(()=>(vt(n()),vt(a()),vt(i())),()=>{oe(r,n().textProcessor.makeExcerpt(a()?.content??"",i()))}),Jn(),En();let d=Br(()=>u().toString());Lc(e,{get id(){return q(d)},get selected(){return l()},$$events:{auxclick(p){Jr.call(this,t,p)},click(p){Jr.call(this,t,p)},mousemove(p){Jr.call(this,t,p)}},children:(p,g)=>{var E=K6(),_=xe(E);Ts(_,()=>n().textProcessor.highlightText(q(r),a().matches),!1,!1),Te(E),we(p,E)},$$slots:{default:!0}}),hr()}var K6,Zy=v(()=>{Wn();Ai();Pn();s0();K6=Le('<div class="omnisearch-result__body"><!></div>')});function _0(e,t){dr(t,!1);let r=ze(t,"plugin",8),n=ze(t,"modal",8),i=ze(t,"parent",8,null),a=ze(t,"singleFilePath",8,""),u=ze(t,"previousQuery",8),l=ft(),d=ft([]),p=ft(0),g=ft(),E=ft();As(()=>{Me.enable("infile"),Me.on("infile","enter",N),Me.on("infile","open-in-new-pane",P),Me.on("infile","arrow-up",()=>C(-1)),Me.on("infile","arrow-down",()=>C(1)),Me.on("infile","tab",L)}),gf(()=>{Me.disable("infile")});function _(Se){let et=[],je=-1,lt=0;for(;++lt<100;){let F=y(Se,je,cc);if(!F.length)break;je=F.last().offset,et.push(F)}return et}function y(Se,et,je){let lt=Se.find(F=>F.offset>et);return lt?Se.filter(F=>F.offset>et&&F.offset<=lt.offset+je):[]}function C(Se){oe(p,Sf(q(p)+Se,q(d).length)),D()}async function D(){await vi(),document.querySelector(`[data-result-id="${q(p)}"]`)?.scrollIntoView({behavior:"auto",block:"nearest"})}async function P(){return N(!0)}async function N(Se=!1){if(q(g)){n().close(),i()&&i().close();let et=r().textProcessor.stringsToRegex(q(g).foundWords);et.exec(q(g).content),await If(r().app,q(g),et.lastIndex,Se);let je=r().app.workspace.getActiveViewOfType(fd.MarkdownView);if(!je)return;let lt=q(d)[q(p)]??0,F=je.editor.offsetToPos(lt);F.ch=0,je.editor.setCursor(F),je.editor.scrollIntoView({from:{line:F.line-10,ch:0},to:{line:F.line+10,ch:0}})}}function L(){new ta(r(),q(l)??u()).open(),n().close()}Qt(()=>vt(u()),()=>{oe(l,u()??"")}),Qt(()=>(q(l),q(E),ea,vt(r()),vt(a())),()=>{(async()=>(q(l)&&(oe(E,new ea(q(l),{ignoreDiacritics:r().settings.ignoreDiacritics,ignoreArabicDiacritics:r().settings.ignoreArabicDiacritics})),oe(g,(await r().searchEngine.getSuggestions(q(E),{singleFilePath:a()}))[0]??null)),oe(p,0),await D()))()}),Qt(()=>(q(g),q(E)),()=>{if(q(g)){let Se=_(q(g).matches),et=q(E).getExactTerms();et.length&&(Se=Se.filter(je=>et.every(lt=>je.some(F=>F.match.includes(lt))))),oe(d,Se.map(je=>Math.round(je.first().offset)))}}),Jn(),En();var H=Z6(),R=Sr(H);gc(R,{get plugin(){return r()},placeholder:"Omnisearch - File",get initialValue(){return u()},$$events:{input:Se=>oe(l,Se.detail)},children:(Se,et)=>{var je=W6(),lt=xe(je);{var F=K=>{var te=j6();pr("click",te,L),we(K,te)};tt(lt,K=>{fd.Platform.isMobile&&K(F)})}Te(je),we(Se,je)},$$slots:{default:!0}});var B=Ye(R,2);_c(B,{children:(Se,et)=>{var je=zi(),lt=Sr(je);{var F=te=>{var fe=zi(),Fe=Sr(fe);nc(Fe,1,()=>q(d),rc,(Je,Ue,ot)=>{let ut=Br(()=>ot===q(p));g0(Je,{get plugin(){return r()},get offset(){return q(Ue)},get note(){return q(g)},index:ot,get selected(){return q(ut)},$$events:{mousemove:_t=>oe(p,ot),click:_t=>N(_t.ctrlKey),auxclick:_t=>{_t.button==1&&N(!0)}}})}),we(te,fe)},K=te=>{var fe=G6();we(te,fe)};tt(lt,te=>{q(d).length&&q(g)?te(F):te(K,!1)})}we(Se,je)},$$Line truncated
`)}function zr(s,o,f,h){this.failures=o,this.failedKeys=h,this.successCount=f,this.message=Pr(s,o)}C(zr).from(Er);function Ct(s,o){this.name="BulkError",this.failures=Object.keys(o).map(function(f){return o[f]}),this.failuresByPos=o,this.message=Pr(s,this.failures)}C(Ct).from(Er);var $t=ct.reduce(function(s,o){return s[o]=o+"Error",s},{}),ki=Er,me=ct.reduce(function(s,o){var f=o+"Error";function h(m,b){this.name=f,m?typeof m=="string"?(this.message="".concat(m).concat(b?`
`+b:""),this.inner=b||null):typeof m=="object"&&(this.message="".concat(m.name," ").concat(m.message),this.inner=m):(this.message=Xt[o]||f,this.inner=null)}return C(h).from(ki),s[o]=h,s},{});me.Syntax=SyntaxError,me.Type=TypeError,me.Range=RangeError;var _u=rt.reduce(function(s,o){return s[o+"Error"]=me[o],s},{});function Nh(s,o){if(!s||s instanceof Er||s instanceof TypeError||s instanceof SyntaxError||!s.name||!_u[s.name])return s;var f=new _u[s.name](o||s.message,s);return"stack"in s&&y(f,"stack",{get:function(){return this.inner.stack}}),f}var ca=ct.reduce(function(s,o){return["Syntax","Type","Range"].indexOf(o)===-1&&(s[o+"Error"]=me[o]),s},{});ca.ModifyError=zr,ca.DexieError=Er,ca.BulkError=Ct;function nt(){}function Qa(s){return s}function bu(s,o){return s==null||s===Qa?o:function(f){return o(s(f))}}function di(s,o){return function(){s.apply(this,arguments),o.apply(this,arguments)}}function Oh(s,o){return s===nt?o:function(){var f=s.apply(this,arguments);f!==void 0&&(arguments[0]=f);var h=this.onsuccess,m=this.onerror;this.onsuccess=null,this.onerror=null;var b=o.apply(this,arguments);return h&&(this.onsuccess=this.onsuccess?di(h,this.onsuccess):h),m&&(this.onerror=this.onerror?di(m,this.onerror):m),b!==void 0?b:f}}function Eu(s,o){return s===nt?o:function(){s.apply(this,arguments);var f=this.onsuccess,h=this.onerror;this.onsuccess=this.onerror=null,o.apply(this,arguments),f&&(this.onsuccess=this.onsuccess?di(f,this.onsuccess):f),h&&(this.onerror=this.onerror?di(h,this.onerror):h)}}function El(s,o){return s===nt?o:function(f){var h=s.apply(this,arguments);l(f,h);var m=this.onsuccess,b=this.onerror;this.onsuccess=null,this.onerror=null;var T=o.apply(this,arguments);return m&&(this.onsuccess=this.onsuccess?di(m,this.onsuccess):m),b&&(this.onerror=this.onerror?di(b,this.onerror):b),h===void 0?T===void 0?void 0:T:l(h,T)}}function Dh(s,o){return s===nt?o:function(){return o.apply(this,arguments)===!1?!1:s.apply(this,arguments)}}function js(s,o){return s===nt?o:function(){var f=s.apply(this,arguments);if(f&&typeof f.then=="function"){for(var h=this,m=arguments.length,b=new Array(m);m--;)b[m]=arguments[m];return f.then(function(){return o.apply(h,b)})}return o.apply(this,arguments)}}var on=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function vl(s,o){on=s}var Ne={},kt=100,Rt=typeof Promise>"u"?[]:function(){var s=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[s,d(s),s];var o=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[o,d(o),s]}(),ur=Rt[0],Sn=Rt[1],Ri=Rt[2],vu=Sn&&Sn.then,cr=ur&&ur.constructor,Zt=!!Ri;function la(){queueMicrotask(GS)}var Cn=function(s,o){Tu.push([s,o]),Kn&&(la(),Kn=!1)},Yn=!0,Kn=!0,un=[],Xa=[],kh=Qa,fa={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:nt,pgp:!1,env:{},finalize:nt},be=fa,Tu=[],Za=0,Tl=[];function de(s){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var o=this._PSD=be;if(typeof s!="function"){if(s!==Ne)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&Lh(this,this._value);return}this._state=null,this._value=null,++o.ref,o_(this,s)}var Rh={get:function(){var s=be,o=wl;function f(h,m){var b=this,T=!s.global&&(s!==be||o!==wl),A=T&&!ha(),S=new de(function(O,$){Ph(b,new s_(l_(h,s,T,A),l_(m,s,T,A),O,$,s))});return this._consoleTask&&(S._consoleTask=this._consoleTask),S}return f.prototype=Ne,f},set:function(s){y(this,"then",s&&s.prototype===Ne?Rh:{get:function(){return s},set:Rh.set})}};E(de.prototype,{then:Rh,_then:function(s,o){Ph(this,new s_(null,null,s,o,be))},catch:function(s){if(arguments.length===1)return this.then(null,s);var o=arguments[0],f=arguments[1];return typeof o=="function"?this.then(null,function(h){return h instanceof o?f(h):xl(h)}):this.then(null,function(h){return h&&h.name===o?f(h):xl(h)})},finally:function(s){return this.then(function(o){return de.resolve(s()).then(function(){return o})},function(o){return de.resolve(s()).then(function(){return xl(o)})})},timeout:function(s,o){var f=this;return s<1/0?new de(function(h,m){var b=setTimeout(function(){return m(new me.Timeout(o))},s);f.then(h,m).finally(clearTimeout.bind(null,b))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&y(de.prototype,Symbol.toStringTag,"Dexie.Promise"),fa.env=c_();function s_(s,o,f,h,m){this.onFulfilled=typeof s=="function"?s:null,this.onRejected=typeof o=="function"?o:null,this.resolve=f,this.reject=h,this.psd=m}E(de,{all:function(){var s=ut.apply(null,arguments).map(Sl);return new de(function(o,f){s.length===0&&o([]);var h=s.length;s.forEach(function(m,b){return de.resolve(m).then(function(T){s[b]=T,--h||o(s)},f)})})},resolve:function(s){if(s instanceof de)return s;if(s&&typeof s.then=="function")return new de(function(f,h){s.then(f,h)});var o=new de(Ne,!0,s);return o},reject:xl,race:function(){var s=ut.apply(null,arguments).map(Sl);return new de(function(o,f){s.map(function(h){return de Line truncated
`).map(i=>{let a=i.match(/^\s+/);if(a===null)return i;let[u]=a;return u.length>=n.length?i.slice(n.length):i}).join(`
`)}var Ls=class{options;rules;lexer;constructor(t){this.options=t||Tt.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:Td(n,`
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],i=bR(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=Td(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=Td(n.replace(/^ *>[ \t]?/gm,""),`
`);let i=this.lexer.state.top;this.lexer.state.top=!0;let a=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:r[0],tokens:a,text:n}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),i=n.length>1,a={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 u=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),l="",d="",p=!1;for(;t;){let g=!1;if(!(r=u.exec(t))||this.rules.block.hr.test(t))break;l=r[0],t=t.substring(l.length);let E=r[2].split(`
`,1)[0].replace(/^\t+/,N=>" ".repeat(3*N.length)),_=t.split(`
`,1)[0],y=0;this.options.pedantic?(y=2,d=E.trimStart()):(y=r[2].search(/[^ ]/),y=y>4?1:y,d=E.slice(y),y+=r[1].length);let C=!1;if(!E&&/^ *$/.test(_)&&(l+=_+`
`,t=t.substring(_.length+1),g=!0),!g){let N=new RegExp(`^ {0,${Math.min(3,y-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),L=new RegExp(`^ {0,${Math.min(3,y-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),H=new RegExp(`^ {0,${Math.min(3,y-1)}}(?:\`\`\`|~~~)`),R=new RegExp(`^ {0,${Math.min(3,y-1)}}#`);for(;t;){let B=t.split(`
`,1)[0];if(_=B,this.options.pedantic&&(_=_.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),H.test(_)||R.test(_)||N.test(_)||L.test(t))break;if(_.search(/[^ ]/)>=y||!_.trim())d+=`
`+_.slice(y);else{if(C||E.search(/[^ ]/)>=4||H.test(E)||R.test(E)||L.test(E))break;d+=`
`+_}!C&&!_.trim()&&(C=!0),l+=B+`
`,t=t.substring(B.length+1),E=_.slice(y)}}a.loose||(p?a.loose=!0:/\n *\n *$/.test(l)&&(p=!0));let D=null,P;this.options.gfm&&(D=/^\[[ xX]\] /.exec(d),D&&(P=D[0]!=="[ ] ",d=d.replace(/^\[[ xX]\] +/,""))),a.items.push({type:"list_item",raw:l,task:!!D,checked:P,loose:!1,text:d,tokens:[]}),a.raw+=l}a.items[a.items.length-1].raw=l.trimEnd(),a.items[a.items.length-1].text=d.trimEnd(),a.raw=a.raw.trimEnd();for(let g=0;g<a.items.length;g++)if(this.lexer.state.top=!1,a.items[g].tokens=this.lexer.blockTokens(a.items[g].text,[]),!a.loose){let E=a.items[g].tokens.filter(y=>y.type==="space"),_=E.length>0&&E.some(y=>/\n.*\n/.test(y.raw));a.loose=_}if(a.loose)for(let g=0;g<a.items.length;g++)a.items[g].loose=!0;return a}}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"):"",a=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:a}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!/[:|]/.test(r[2]))return;let n=vA(r[1]),i=r[2].replace(/^\||\| *$/g,"").split("|"),a=r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
`):[],u={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let l of i)/^ *-+: *$/.test(l)?u.align.push("right"):/^ *:-+: *$/.test(l)?u.align.push("center"):/^ *:-+ *$/.test(l)?u.align.push("left"):u.align.push(null);for(let l of n)u.header.push({text:l,tokens:this.lexer.inline(l)});for(let l of a)u.rows.push(vA(l,u.header.length).map(d=>({text:d,tokens:this.lexer.inline(d)})));return u}}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:xn(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 u=Td(n.slice(0,-1),"\\");if((n.length-u.length)%2===0)return}else{let u=_R(r[2],"()");if(u>-1){let d=(r[0].indexOf("!")===0?5:4)+r[1].length+u;r[2]=r[2].substring(0,u),r[0]=r[0].substring(0,d).trim(),r[3]=""}}let i=r[2],a="";if(this.options.pedantic){let u=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);u&&(i=u[1],a=u[3])}else a=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)),TA(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.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," "),a=r[i.toLowerCase()];if(!a){let u=n[0].charAt(0);return{type:"text",raw:u,text:u}}return TA(n,a,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 u=[...i[0]].length-1,l,d,p=u,g=0,E=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(E.lastIndex=0,r=r.slice(-1*t.length+u);(i=E.exec(r))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(d=[...l].length,i[3]||i[4]){p+=d;continue}else if((i[5]||i[6])&&u%3&&!((u+d)%3)){g+=d;continue}if(p-=d,p>0)continue;d=Math.min(d,d+p+g);let _=[...i[0]][0].length,y=t.slice(0,u+i.index+_+d);if(Math.min(u,d)%2){let D=y.slice(1,-1);return{type:"em",raw:y,text:D,tokens:this.lexer.inlineTokens(D)}}let C=y.slice(2,-2);return{type:"strong",raw:y,text:C,tokens:this.lexer.inlineTokens(C)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(/\n/g," "),i=/[^ ]/.test(n),a=/^ /.test(n)&&/ $/.test(n);return i&&a&&(n=n.substring(1,n.length-1)),n=xn(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=xn(r[1]),i="mailto:"+n):(n=xn(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=xn(r[0]),i="mailto:"+n;else{let a;do a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(a!==r[0]);n=xn(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=xn(r[0]),{type:"text",raw:r[0],text:n}}}},ER=/^(?: *(?:\n|$))+/,vR=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,TR=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Hc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,xR=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,SA=/(?:[*+-]|\d{1,9}[.)])/,CA=dt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,SA).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(),R0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,yR=/^[^\n]+/,L0=/(?!\s*\])(?:\\.|[^\[\]\\])+/,AR=dt(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",L0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),wR=dt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,SA).getRegex(),Sd="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]|heaLine truncated
]`).replace("lheading",CA).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},NA=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,OR=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,OA=/^( {2,}|\\)\n(?!\s*$)/,DR=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Uc="\\p{P}\\p{S}",kR=dt(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Uc).getRegex(),RR=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,LR=dt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Uc).getRegex(),PR=dt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Uc).getRegex(),MR=dt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Uc).getRegex(),FR=dt(/\\([punct])/,"gu").replace(/punct/g,Uc).getRegex(),BR=dt(/^<(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(),$R=dt(P0).replace("(?:-->|$)","-->").getRegex(),HR=dt("^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",$R).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),yd=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,UR=dt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",yd).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),DA=dt(/^!?\[(label)\]\[(ref)\]/).replace("label",yd).replace("ref",L0).getRegex(),kA=dt(/^!?\[(ref)\](?:\[\])?/).replace("ref",L0).getRegex(),VR=dt("reflink|nolink(?!\\()","g").replace("reflink",DA).replace("nolink",kA).getRegex(),F0={_backpedal:$c,anyPunctuation:FR,autolink:BR,blockSkip:RR,br:OA,code:OR,del:$c,emStrongLDelim:LR,emStrongRDelimAst:PR,emStrongRDelimUnd:MR,escape:NA,link:UR,nolink:kA,punctuation:kR,reflink:DA,reflinkSearch:VR,tag:HR,text:DR,url:$c},qR={...F0,link:dt(/^!?\[(label)\]\((.*?)\)/).replace("label",yd).getRegex(),reflink:dt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",yd).getRegex()},k0={...F0,escape:dt(NA).replace("])","~|])").getRegex(),url:dt(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},zR={...k0,br:dt(OA).replace("{2,}","*").getRegex(),text:dt(k0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},xd={normal:M0,gfm:IR,pedantic:NR},Bc={normal:F0,gfm:k0,breaks:zR,pedantic:qR},yn=class{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Tt.defaults,this.options.tokenizer=this.options.tokenizer||new Ls,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:xd.normal,inline:Bc.normal};this.options.pedantic?(r.block=xd.pedantic,r.inline=Bc.pedantic):this.options.gfm&&(r.block=xd.gfm,this.options.breaks?r.inline=Bc.breaks:r.inline=Bc.gfm),this.tokenizer.rules=r}static get rules(){return{block:xd,inline:Bc}}static lex(t,r){return new yn(r).lex(t)}static lexInline(t,r){return new yn(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,(l,d,p)=>d+" ".repeat(p.length));let n,i,a,u;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(n=l.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(a=t,this.options.extensions&&this.options.extensions.startBlock){let l=1/0,d=t.slice(1),p;this.options.extensions.startBlock.forEach(g=>{p=g.call({lexer:this},d),typeof p=="number"&&p>=0&&(l=Math.min(l,p))}),l<1/0&&l>=0&&(a=t.substring(0,l+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){i=r[r.length-1],u&&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),u=a.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 l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n,i,a,u=t,l,d,p;if(this.tokens.links){let g=Object.keys(this.tokens.links);if(g.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(u))!=null;)g.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(u))!=null;)u=u.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(u))!=null;)u=u.slice(0,l.index)+"++"+u.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(d||(p=""),d=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(g=>(n=g.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,u,p)){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(a=t,this.options.extensions&&this.options.extensions.startInline){let g=1/0,E=t.slice(1),_;this.options.extensions.startInline.forEach(y=>{_=y.call({lexer:this},E),typeof _=="number"&&_>=0&&(g=Math.min(g,_))}),g<1/0&&g>=0&&(a=t.substring(0,g+1))}if(n=this.tokenizer.inlineText(a)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(p=n.raw.slice(-1)),d=!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 g="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return r}},Ps=class{options;constructor(t){this.options=t||Tt.defaults}code(t,r,n){let i=(r||"").match(/^\S*/)?.[0];return t=t.replace(/\n$/,"")+`
`,i?'<pre><code class="language-'+xn(i)+'">'+(n?t:xn(t,!0))+`</code></pre>
`:"<pre><code>"+(n?t:xn(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",a=r&&n!==1?' start="'+n+'"':"";return"<"+i+a+`>
`+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=EA(t);if(i===null)return n;t=i;let a='<a href="'+t+'"';return r&&(a+=' title="'+r+'"'),a+=">"+n+"</a>",a}image(t,r,n){let i=EA(t);if(i===null)return n;t=i;let a=`<img src="${t}" alt="${n}"`;return r&&(a+=` title="${r}"`),a+=">",a}text(t){return t}},Ko=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""}},An=class{options;renderer;textRenderer;constructor(t){this.options=t||Tt.defaults,this.options.renderer=this.options.renderer||new Ps,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ko}static parse(t,r){return new An(r).parse(t)}static parseInline(t,r){return new An(r).parseInline(t)}parse(t,r=!0){let n="";for(let i=0;i<t.length;i++){let a=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){let u=a,l=this.options.extensions.renderers[u.type].call({parser:this},u);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)){n+=l||"";continue}}switch(a.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{let u=a;n+=this.renderer.heading(this.parseInline(u.tokens),u.depth,mR(this.parseInline(u.tokens,this.textRenderer)));continue}case"code":{let u=a;n+=this.renderer.code(u.text,u.lang,!!u.escaped);continue}case"table":{let u=a,l="",d="";for(let g=0;g<u.header.length;g++)d+=this.renderer.tablecell(this.parseInline(u.header[g].tokens),{header:!0,align:u.align[g]});l+=this.renderer.tablerow(d);let p="";for(let g=0;g<u.rows.length;g++){let E=u.rows[g];d="";for(let _=0;_<E.length;_++)d+=this.renderer.tablecell(this.parseInline(E[_].tokens),{header:!1,align:u.align[_]});p+=this.renderer.tablerow(d)}n+=this.renderer.table(l,p);continue}case"blockquote":{let u=a,l=this.parse(u.tokens);n+=this.renderer.blockquote(l);continue}case"list":{let u=a,l=u.ordered,d=u.start,p=u.loose,g="";for(let E=0;E<u.items.length;E++){let _=u.items[E],y=_.checked,C=_.task,D="";if(_.task){let P=this.renderer.checkbox(!!y);p?_.tokens.length>0&&_.tokens[0].type==="paragraph"?(_.tokens[0].text=P+" "+_.tokens[0].text,_.tokens[0].tokens&&_.tokens[0].tokens.length>0&&_.tokens[0].tokens[0].type==="text"&&(_.tokens[0].tokens[0].text=P+" "+_.tokens[0].tokens[0].text)):_.tokens.unshift({type:"text",text:P+" "}):D+=P+" "}D+=this.parse(_.tokens,p),g+=this.renderer.listitem(D,C,!!y)}n+=this.renderer.list(g,l,d);continue}case"html":{let u=a;n+=this.renderer.html(u.text,u.block);continue}case"paragraph":{let u=a;n+=this.renderer.paragraph(this.parseInline(u.tokens));continue}case"text":{let u=a,l=u.tokens?this.parseInline(u.tokens):u.text;for(;i+1<t.length&&t[i+1].type==="text";)u=t[++i],l+=`
`+(u.tokens?this.parseInline(u.tokens):u.text);n+=r?this.renderer.paragraph(l):l;continue}default:{let u='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}parseInline(t,r){r=r||this.renderer;let n="";for(let i=0;i<t.length;i++){let a=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){let u=this.options.extensions.renderers[a.type].call({parser:this},a);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){n+=u||"";continue}}switch(a.type){case"escape":{let u=a;n+=r.text(u.text);break}case"html":{let u=a;n+=r.html(u.text);break}case"link":{let u=a;n+=r.link(u.href,u.title,this.parseInline(u.tokens,r));break}case"image":{let u=a;n+=r.image(u.href,u.title,u.text);break}case"strong":{let u=a;n+=r.strong(this.parseInline(u.tokens,r));break}case"em":{let u=a;n+=r.em(this.parseInline(u.tokens,r));break}case"codespan":{let u=a;n+=r.codespan(u.text);break}case"br":{n+=r.br();break}case"del":{let u=a;n+=r.del(this.parseInline(u.tokens,r));break}case"text":{let u=a;n+=r.text(u.text);break}default:{let u='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}},Ba=class{options;constructor(t){this.options=t||Tt.defaults}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}};zl(Ba,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var Ad=class{defaults=wd();options=this.setOptions;parse=this.#e(yn.lex,An.parse);parseInline=this.#e(yn.lexInline,An.parseInline);Parser=An;Renderer=Ps;TextRenderer=Ko;Lexer=yn;Tokenizer=Ls;Hooks=Ba;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 a=i;for(let u of a.header)n=n.concat(this.walkTokens(u.tokens,r));for(let u of a.rows)for(let l of u)n=n.concat(this.walkTokens(l.tokens,r));break}case"list":{let a=i;n=n.concat(this.walkTokens(a.items,r));break}default:{let a=i;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(u=>{let l=a[u].flat(1/0);n=n.concat(this.walkTokens(l,r))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let u=r.renderers[a.name];u?r.renderers[a.name]=function(...l){let d=a.renderer.apply(this,l);return d===!1&&(d=u.apply(this,l)),d}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=r[a.level];u?u.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),i.extensions=r),n.renderer){let a=this.defaults.renderer||new Ps(this.defaults);for(let u in n.renderer){if(!(u in a))throw new Error(`renderer '${u}' does not exist`);if(u==="options")continue;let l=u,d=n.renderer[l],p=a[l];a[l]=(...g)=>{let E=d.apply(a,g);return E===!1&&(E=p.apply(a,g)),E||""}}i.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new Ls(this.defaults);for(let u in n.tokenizer){if(!(u in a))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let l=u,d=n.tokenizer[l],p=a[l];a[l]=(...g)=>{let E=d.apply(a,g);return E===!1&&(E=p.apply(a,g)),E}}i.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new Ba;for(let u in n.hooks){if(!(u in a))throw new Error(`hook '${u}' does not exist`);if(u==="options")continue;let l=u,d=n.hooks[l],p=a[l];Ba.passThroughHooks.has(u)?a[l]=g=>{if(this.defaults.async)return Promise.resolve(d.call(a,g)).then(_=>p.call(a,_));let E=d.call(a,g);return p.call(a,E)}:a[l]=(...g)=>{let E=d.apply(a,g);return E===!1&&(E=p.apply(a,g)),E}}i.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,u=n.walkTokens;i.walkTokens=function(l){let d=[];return d.push(u.call(this,l)),a&&(d=d.concat(a.call(this,l))),d}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return yn.lex(t,r??this.defaults)}parser(t,r){return An.parse(t,r??this.defaults)}#e(t,r){return(n,i)=>{let a={...i},u={...this.defaults,...a};this.defaults.async===!0&&a.async===!1&&(u.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),u.async=!0);let l=this.#t(!!u.silent,!!u.async);if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined o Line truncated
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+xn(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},Ms=new Ad;function st(e,t){return Ms.parse(e,t)}st.options=st.setOptions=function(e){return Ms.setOptions(e),st.defaults=Ms.defaults,yA(st.defaults),st};st.getDefaults=wd;st.defaults=Tt.defaults;st.use=function(...e){return Ms.use(...e),st.defaults=Ms.defaults,yA(st.defaults),st};st.walkTokens=function(e,t){return Ms.walkTokens(e,t)};st.parseInline=Ms.parseInline;st.Parser=An;st.parser=An.parse;st.Renderer=Ps;st.TextRenderer=Ko;st.Lexer=yn;st.lexer=yn.lex;st.Tokenizer=Ls;st.Hooks=Ba;st.parse=st;var YR=st.options,KR=st.setOptions,jR=st.use,WR=st.walkTokens,GR=st.parseInline,QR=st,XR=An.parse,ZR=yn.lex;Tt.Hooks=Ba;Tt.Lexer=yn;Tt.Marked=Ad;Tt.Parser=An;Tt.Renderer=Ps;Tt.TextRenderer=Ko;Tt.Tokenizer=Ls;Tt.getDefaults=wd;Tt.lexer=ZR;Tt.marked=st;Tt.options=YR;Tt.parse=QR;Tt.parseInline=GR;Tt.parser=XR;Tt.setOptions=KR;Tt.use=jR;Tt.walkTokens=WR});function LA(e){return e.type===Ze.Tag||e.type===Ze.Script||e.type===Ze.Style}var Ze,PA,MA,FA,BA,$A,HA,UA,VA,qA,jo=v(()=>{(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"})(Ze||(Ze={}));PA=Ze.Root,MA=Ze.Text,FA=Ze.Directive,BA=Ze.Comment,$A=Ze.Script,HA=Ze.Style,UA=Ze.Tag,VA=Ze.CDATA,qA=Ze.Doctype});function _e(e){return LA(e)}function Wo(e){return e.type===Ze.CDATA}function nn(e){return e.type===Ze.Text}function Hs(e){return e.type===Ze.Comment}function Id(e){return e.type===Ze.Directive}function Bn(e){return e.type===Ze.Root}function ht(e){return Object.prototype.hasOwnProperty.call(e,"children")}function Go(e,t=!1){let r;if(nn(e))r=new Oi(e.data);else if(Hs(e))r=new Fs(e.data);else if(_e(e)){let n=t?B0(e.children):[],i=new $s(e.name,{...e.attribs},n);n.forEach(a=>a.parent=i),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),r=i}else if(Wo(e)){let n=t?B0(e.children):[],i=new zc(n);n.forEach(a=>a.parent=i),r=i}else if(Bn(e)){let n=t?B0(e.children):[],i=new wn(n);n.forEach(a=>a.parent=i),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),r=i}else if(Id(e)){let n=new Bs(e.name,e.data);e["x-name"]!=null&&(n["x-name"]=e["x-name"],n["x-publicId"]=e["x-publicId"],n["x-systemId"]=e["x-systemId"]),r=n}else throw new Error(`Not implemented yet: ${e.type}`);return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function B0(e){let t=e.map(r=>Go(r,!0));for(let r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}var Cd,Vc,Oi,Fs,Bs,qc,zc,wn,$s,$0=v(()=>{jo();Cd=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return Go(this,t)}},Vc=class extends Cd{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}},Oi=class extends Vc{constructor(){super(...arguments),this.type=Ze.Text}get nodeType(){return 3}},Fs=class extends Vc{constructor(){super(...arguments),this.type=Ze.Comment}get nodeType(){return 8}},Bs=class extends Vc{constructor(t,r){super(r),this.name=t,this.type=Ze.Directive}get nodeType(){return 1}},qc=class extends Cd{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}},zc=class extends qc{constructor(){super(...arguments),this.type=Ze.CDATA}get nodeType(){return 4}},wn=class extends qc{constructor(){super(...arguments),this.type=Ze.Root}get nodeType(){return 9}},$s=class extends qc{constructor(t,r,n=[],i=t==="script"?Ze.Script:t==="style"?Ze.Style:Ze.Tag){super(n),this.name=t,this.attribs=r,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var r,n;return{name:t,value:this.attribs[t],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[t],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[t]}})}}});var YA,Qo,_r=v(()=>{jo();$0();$0();YA={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},Qo=class{constructor(t,r,n){this.dom=[],this.root=new wn(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(n=r,r=YA),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??YA,this.elementCB=n??null}onparserinit(t){this.parser=t} Line truncated
`:kd(e.children):Wo(e)?kd(e.children):nn(e)?e.data:""}function ra(e){return Array.isArray(e)?e.map(ra).join(""):ht(e)&&!Hs(e)?ra(e.children):nn(e)?e.data:""}function jc(e){return Array.isArray(e)?e.map(jc).join(""):ht(e)&&(e.type===Ze.Tag||Wo(e))?jc(e.children):nn(e)?e.data:""}var X0=v(()=>{_r();Q0();jo()});function ru(e){return ht(e)?e.children:[]}function c2(e){return e.parent||null}function Z0(e){let t=c2(e);if(t!=null)return ru(t);let r=[e],{prev:n,next:i}=e;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;i!=null;)r.push(i),{next:i}=i;return r}function EL(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}function vL(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function TL(e){return e.name}function Rd(e){let{next:t}=e;for(;t!==null&&!_e(t);)({next:t}=t);return t}function Ld(e){let{prev:t}=e;for(;t!==null&&!_e(t);)({prev:t}=t);return t}var l2=v(()=>{_r()});function na(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){let t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}function xL(e,t){let r=t.prev=e.prev;r&&(r.next=t);let n=t.next=e.next;n&&(n.prev=t);let i=t.parent=e.parent;if(i){let a=i.children;a[a.lastIndexOf(e)]=t,e.parent=null}}function yL(e,t){if(na(t),t.next=null,t.parent=e,e.children.push(t)>1){let r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}function AL(e,t){na(t);let{parent:r}=e,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=r,n){if(n.prev=t,r){let i=r.children;i.splice(i.lastIndexOf(n),0,t)}}else r&&r.children.push(t)}function wL(e,t){if(na(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){let r=e.children[1];r.prev=t,t.next=r}else t.next=null}function SL(e,t){na(t);let{parent:r}=e;if(r){let 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}var f2=v(()=>{});function nu(e,t,r=!0,n=1/0){return Pd(e,Array.isArray(t)?t:[t],r,n)}function Pd(e,t,r,n){let i=[],a=[Array.isArray(t)?t:[t]],u=[0];for(;;){if(u[0]>=a[0].length){if(u.length===1)return i;a.shift(),u.shift();continue}let l=a[0][u[0]++];if(e(l)&&(i.push(l),--n<=0))return i;r&&ht(l)&&l.children.length>0&&(u.unshift(0),a.unshift(l.children))}}function CL(e,t){return t.find(e)}function Md(e,t,r=!0){let n=Array.isArray(t)?t:[t];for(let i=0;i<n.length;i++){let a=n[i];if(_e(a)&&e(a))return a;if(r&&ht(a)&&a.children.length>0){let u=Md(e,a.children,!0);if(u)return u}}return null}function d2(e,t){return(Array.isArray(t)?t:[t]).some(r=>_e(r)&&e(r)||ht(r)&&d2(e,r.children))}function IL(e,t){let r=[],n=[Array.isArray(t)?t:[t]],i=[0];for(;;){if(i[0]>=n[0].length){if(n.length===1)return r;n.shift(),i.shift();continue}let a=n[0][i[0]++];_e(a)&&e(a)&&r.push(a),ht(a)&&a.children.length>0&&(i.unshift(0),n.unshift(a.children))}}var J0=v(()=>{_r()});function eg(e,t){return typeof t=="function"?r=>_e(r)&&t(r.attribs[e]):r=>_e(r)&&r.attribs[e]===t}function NL(e,t){return r=>e(r)||t(r)}function h2(e){let t=Object.keys(e).map(r=>{let n=e[r];return Object.prototype.hasOwnProperty.call(Fd,r)?Fd[r](n):eg(r,n)});return t.length===0?null:t.reduce(NL)}function OL(e,t){let r=h2(e);return r?r(t):!0}function DL(e,t,r,n=1/0){let i=h2(e);return i?nu(i,t,r,n):[]}function kL(e,t,r=!0){return Array.isArray(t)||(t=[t]),Md(eg("id",e),t,r)}function Us(e,t,r=!0,n=1/0){return nu(Fd.tag_name(e),t,r,n)}function RL(e,t,r=!0,n=1/0){return nu(eg("class",e),t,r,n)}function LL(e,t,r=!0,n=1/0){return nu(Fd.tag_type(e),t,r,n)}var Fd,tg=v(()=>{_r();J0();Fd={tag_name(e){return typeof e=="function"?t=>_e(t)&&e(t.name):e==="*"?_e:t=>_e(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>nn(t)&&e(t.data):t=>nn(t)&&t.data===e}}});function PL(e){let t=e.length;for(;--t>=0;){let r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(let n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e}function p2(e,t){let r=[],n=[];if(e===t)return 0;let i=ht(e)?e:e.parent;for(;i;)r.unshift(i),i=i.parent;for(i=ht(t)?t:t.parent;i;)n.unshift(i),i=i.parent;let a=Math.min(r.length,n.length),u=0;for(;u<a&&r[u]===n[u];)u++;if(u===0)return $n.DISCONNECTED;let l=r[u-1],d=l.children,p=r[u],g=n[u];return d.indexOf(p)>d.indexOf(g)?l===t?$n.FOLLOWING|$n.CONTAINED_BY:$n.FOLLOWING:l===e?$n.PRECEDING|$n.CONTAINS:$n.PRECEDING}function Ua(e){return e=e.filter((t,r,n)=>!n.includes(t,r+1)),e.sort((t,r)=>{let n=p2(t,r);return n&$n.PRECEDING?-1:n&$n.FOLLOWING?1:0}),e}var $n,m2=v(()=>{_r();(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})($n||($n={}))});function rg(e){let t=Bd(HL,e);return t?t.name==="feed"?ML(t):FL(t):null}function ML(e){var t;let r=e.children,n={type:"atom",items:Us("entry",r).map(u=>{var l;let{children:d}=u,p={media:g2(d)};an(p,"id","id",d),an(p,"title","title",d);let g=(l=Bd 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])"}});function vg(e,t){return e===Un.default.falseFunc?Un.default.falseFunc:r=>t.isTag(r)&&e(r)}function Tg(e,t){let r=t.getSiblings(e);if(r.length<=1)return[];let n=r.indexOf(e);return n<0||n===r.length-1?[]:r.slice(n+1).filter(t.isTag)}function bg(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 Un,Eg,_g,qd,zd=v(()=>{Un=ln(za(),1);hg();Eg={};_g=(e,t,r,n,i)=>{let a=i(t,bg(r),n);return a===Un.default.trueFunc?e:a===Un.default.falseFunc?Un.default.falseFunc:u=>a(u)&&e(u)},qd={is:_g,matches:_g,where:_g,not(e,t,r,n,i){let a=i(t,bg(r),n);return a===Un.default.falseFunc?e:a===Un.default.trueFunc?Un.default.falseFunc:u=>!a(u)&&e(u)},has(e,t,r,n,i){let{adapter:a}=r,u=bg(r);u.relativeSelector=!0;let l=t.some(g=>g.some(el))?[Eg]:void 0,d=i(t,u,l);if(d===Un.default.falseFunc)return Un.default.falseFunc;let p=vg(d,a);if(l&&d!==Un.default.trueFunc){let{shouldTestNextSiblings:g=!1}=d;return E=>{if(!e(E))return!1;l[0]=E;let _=a.getChildren(E),y=g?[..._,...Tg(E,a)]:_;return a.existsOne(p,y)}}return g=>e(g)&&a.existsOne(p,a.getChildren(g))}}});function G2(e,t,r,n,i){var a;let{name:u,data:l}=t;if(Array.isArray(l)){if(!(u in qd))throw new Error(`Unknown pseudo-class :${u}(${l})`);return qd[u](e,l,r,n,i)}let d=(a=r.pseudos)===null||a===void 0?void 0:a[u],p=typeof d=="string"?d:Vd[u];if(typeof p=="string"){if(l!=null)throw new Error(`Pseudo ${u} doesn't have any arguments`);let g=ia(p);return qd.is(e,g,r,n,i)}if(typeof d=="function")return gg(d,u,l,1),g=>d(g,l)&&e(g);if(u in cu)return cu[u](e,l,r,n);if(u in rl){let g=rl[u];return gg(g,u,l,2),E=>g(E,r,l)&&e(E)}throw new Error(`Unknown pseudo-class :${u}`)}var xg=v(()=>{ou();K2();j2();W2();zd()});function yg(e,t){let r=t.getParent(e);return r&&t.isTag(r)?r:null}function Q2(e,t,r,n,i){let{adapter:a,equals:u}=r;switch(t.type){case Ee.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Ee.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Ee.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()),B2[t.action](e,t,r)}case Ee.Pseudo:return G2(e,t,r,n,i);case Ee.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:l}=t;return(!r.xmlMode||r.lowerCaseTags)&&(l=l.toLowerCase()),function(p){return a.getName(p)===l&&e(p)}}case Ee.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(p){let g=p;for(;g=yg(g,a);)if(e(g))return!0;return!1};let l=new WeakSet;return function(p){let g=p;for(;g=yg(g,a);)if(!l.has(g)){if(a.isTag(g)&&e(g))return!0;l.add(g)}return!1}}case"_flexibleDescendant":return function(d){let p=d;do if(e(p))return!0;while(p=yg(p,a));return!1};case Ee.Parent:return function(d){return a.getChildren(d).some(p=>a.isTag(p)&&e(p))};case Ee.Child:return function(d){let p=a.getParent(d);return p!=null&&a.isTag(p)&&e(p)};case Ee.Sibling:return function(d){let p=a.getSiblings(d);for(let g=0;g<p.length;g++){let E=p[g];if(u(d,E))break;if(a.isTag(E)&&e(E))return!0}return!1};case Ee.Adjacent:return a.prevElementSibling?function(d){let p=a.prevElementSibling(d);return p!=null&&e(p)}:function(d){let p=a.getSiblings(d),g;for(let E=0;E<p.length;E++){let _=p[E];if(u(d,_))break;a.isTag(_)&&(g=_)}return!!g&&e(g)};case Ee.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}var X2=v(()=>{$2();xg();ou()});function Z2(e,t,r){let n=Yd(e,t,r);return vg(n,t.adapter)}function Yd(e,t,r){let n=typeof e=="string"?ia(e):e;return Kd(n,t,r)}function J2(e){return e.type===Ee.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(J2)))}function gP(e,{adapter:t},r){let n=!!r?.every(i=>{let a=t.isTag(i)&&t.getParent(i);return i===Eg||a&&t.isTag(a)});for(let i of e){if(!(i.length>0&&el(i[0])&&i[0].type!==Ee.Descendant))if(n&&!i.some(J2))i.unshift(hP);else continue;i.unshift(mP)}}function Kd(e,t,r){var n;e.forEach(dg),r=(n=t.context)!==null&&n!==void 0?n:r;let i=Array.isArray(r),a=r&&(Arra Line truncated
`)})):{name:i,value:a.replace(Tw,`\r
`)}}).toArray()}var vw,C4,Tw,xw=v(()=>{_r();vw="input,select,textarea,keygen",C4=/%20/g,Tw=/\r?\n/g});var Vg={};Nn(Vg,{extract:()=>D4});function O4(e){var t;return typeof e=="string"?{selector:e,value:"textContent"}:{selector:e.selector,value:(t=e.value)!==null&&t!==void 0?t:"textContent"}}function D4(e){let t={};for(let r in e){let n=e[r],i=Array.isArray(n),{selector:a,value:u}=O4(i?n[0]:n),l=typeof u=="function"?u:typeof u=="string"?d=>this._make(d).prop(u):d=>this._make(d).extract(u);if(i)t[r]=this._findBySelector(a,Number.POSITIVE_INFINITY).map((d,p)=>l(p,r,t)).get();else{let d=this._findBySelector(a,1);t[r]=d.length>0?l(d[0],r,t):void 0}}return t}var yw=v(()=>{});var ja,Aw=v(()=>{N2();dw();gw();Ew();xw();yw();ja=class{constructor(t,r,n){if(this.length=0,this.options=n,this._root=r,t){for(let i=0;i<t.length;i++)this[i]=t[i];this.length=t.length}}};ja.prototype.cheerio="[cheerio object]";ja.prototype.splice=Array.prototype.splice;ja.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(ja.prototype,cg,Fg,$g,Hg,Ug,Vg)});function ww(e,t){return function r(n,i,a=!0){if(n==null)throw new Error("cheerio.load() expects a string");let u=Wc(i),l=e(n,u,a,null);class d extends ja{_make(E,_){let y=p(E,_);return y.prevObject=this,y}_parse(E,_,y,C){return e(E,_,y,C)}_render(E){return t(E,this.options)}}function p(g,E,_=l,y){if(g&&Hn(g))return g;let C=Wc(y,u),D=typeof _=="string"?[e(_,C,!1,null)]:"length"in _?_:[_],P=Hn(D)?D:new d(D,null,C);if(P._root=P,!g)return new d(void 0,P,C);let N=typeof g=="string"&&Qc(g)?e(g,C,!1,null).children:k4(g)?[g]:Array.isArray(g)?g:void 0,L=new d(N,P,C);if(N)return L;if(typeof g!="string")throw new TypeError("Unexpected type of selector");let H=g,R=E?typeof E=="string"?Qc(E)?new d([e(E,C,!1,null)],P,C):(H=`${E} ${H}`,P):Hn(E)?E:new d(Array.isArray(E)?E:[E],P,C):P;return R?R.find(H):L}return Object.assign(p,ag,{load:r,_root:l,_options:u,fn:d.prototype,prototype:d.prototype}),p}}function k4(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}var Sw=v(()=>{ng();iu();Aw();au()});function Zd(e){return e>=55296&&e<=57343}function Cw(e){return e>=56320&&e<=57343}function Iw(e,t){return(e-55296)*1024+9216+t}function Jd(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function eh(e){return e>=64976&&e<=65007||R4.has(e)}var R4,xt,x,Vr,th=v(()=>{R4=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]),xt="\uFFFD";(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.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(x||(x={}));Vr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"}});var Y,al=v(()=>{(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeVal Line truncated
`)}else if(hc(t))try{let g=JSON.parse(await r.vault.cachedRead(n)),E=[],_=y=>{for(let C in y)typeof y[C]=="object"?_(y[C]):C==="content"&&E.push(y[C])};_(g),i=E.join(`\r
`)}catch(g){console.error("Omnisearch: Error while parsing Dataloom file",t),console.error(g)}else Mn(t)?this.plugin.settings.aiImageIndexing&&u?.canBeAnalyzed(n)?i=await u.analyzeImage(n):this.plugin.settings.imagesIndexing&&a?.canFileBeExtracted(t)&&(i=await a.extractText(n)):ti(t)&&this.plugin.settings.PDFIndexing&&a?.canFileBeExtracted(t)?i=await a.extractText(n):dv(t)&&this.plugin.settings.officeIndexing&&a?.canFileBeExtracted(t)?i=await a.extractText(n):this.plugin.notesIndexer.isFilenameIndexable(t)&&(i=n.path);i==null&&(ri(`Omnisearch: ${i} content for file`,n.path),i="");let l=r.metadataCache.getFileCache(n);if(l){let g=bv(this.plugin.app,n,l);for(let E of g.filter(_=>!this.documents.has(_))){let _=this.plugin.notesIndexer.generateIndexableNonexistingDocument(E,n.path)}if(l.frontmatter?.["excalidraw-plugin"]){let E=l.sections?.filter(_=>_.type==="comment")??[];for(let{start:_,end:y}of E.map(C=>C.position))i=i.substring(0,_.offset-1)+i.substring(y.offset)}}let d;this.plugin.settings.displayTitle==="#heading"?d=l?.headings?.find(g=>g.level===1)?.heading??"":d=l?.frontmatter?.[this.plugin.settings.displayTitle]??"";let p=fv(l);return{basename:n.basename,displayTitle:d,content:i,cleanedContent:cv(Gi(i)),path:n.path,mtime:n.stat.mtime,tags:p,unmarkedTags:p.map(g=>g.replace("#","")),aliases:lv(l).join(""),headings1:l?wf(l,1).join(" "):"",headings2:l?wf(l,2).join(" "):"",headings3:l?wf(l,3).join(" "):""}}};Nr();bc();Nr();var Ah=class{constructor(t){this.plugin=t;this.notesToReindex=new Set}flagNoteForReindex(t){this.notesToReindex.add(t)}async refreshIndex(){for(let r of this.notesToReindex)Ke("Updating file",r.path),await this.plugin.documentsRepository.addDocument(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(),a=n&&r.PDFIndexing,u=n&&r.imagesIndexing,l=i&&r.aiImageIndexing;return this.isFilePlaintext(t)||wi(t)||hc(t)||a&&ti(t)||u&&Mn(t)||l&&Mn(t)}isFilenameIndexable(t){return this.canIndexUnsupportedFiles()||this.isFilePlaintext(t)||wi(t)||Cs(t)||hc(t)}canIndexUnsupportedFiles(){return this.plugin.settings.unsupportedFilesIndexing==="yes"||this.plugin.settings.unsupportedFilesIndexing==="default"&&!!this.plugin.app.vault.getConfig("showUnsupportedFiles")}generateIndexableNonexistingDocument(t,r){return t=Om(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}`))}};o0();var Sh=require("obsidian");Nr();var wh=class{constructor(t){this.plugin=t;this.embeds=new Map}addEmbed(t,r){this.embeds.has(t)||this.embeds.set(t,new Set),this.embeds.get(t).add(r)}removeFile(t){this.embeds.delete(t),this.refreshEmbedsForNote(t)}renameFile(t,r){this.embeds.has(t)&&(this.embeds.set(r,this.embeds.get(t)),this.embeds.delete(t)),this.embeds.forEach((n,i)=>{n.has(t)&&(n.delete(t),n.add(r))})}refreshEmbedsForNote(t){this.embeds.forEach((r,n)=>{r.has(t)&&r.delete(t)}),this.addEmbedsForNote(t)}getEmbeds(t){return this.embeds.has(t)?[...this.embeds.get(t)]:[]}async writeToCache(){Ke("Writing embeds to cache");let t=this.plugin.database,r=[];for(let[n,i]of this.embeds)r.push({embedded:n,referencedBy:[...i]});await t.embeds.clear(),await t.embeds.bulkAdd(r)}async loadFromCache(){try{let t=this.plugin.database;if(!t.embeds){Ke("No embeds in cache");return}Ke("Loading embeds from cache");let r=await t.embeds.toArray();for(let{embedded:n,referencedBy:i}of r)for(let a of i)this.addEmbed(n,a)}catch{this.plugin.database.clearCache(),console.error("Omnisearch - Error while loading embeds cache"),new Sh.Notice("Omnisearch - There was an error while loading the cache. Please restart Obsidian.")}}addEmbedsForNote(t){let r=(this.plugin.app.metadataCache.getCache(t)?.embeds??[]).map(n=>this.plugin.app.metadataCache.getFirstLinkpathDest((0,Sh.getLinkpath)(n.link),t)).filter(n=>!!n);for(let n of r)this.addEmbed(n.path,t)}};var Ch=class{constructor(t){this.plugin=t;this.nextQueryIsEmpty=!1}async addToHistory(t){if(!t){this.nextQueryIsEmpty=!0;return}this.nextQueryIsEmpty=!1;let r=this.plugin.database,n=await r.searchHistory.toArray();n=n.filter(i=>i.query!==t).reverse(),n.unshift({query:t}),n=n.slice(0,10),await r.searchHistory.clear(),await r.searchHistory.bulkAdd(n)}async getHistory(){let t=(await this.plugin.database.searchHistory.toArray()).reverse().map(r=>r.query);return this.nextQueryIsEmpty&&t.unshift(""),t}};var Ih=class extends zn.Plugin{constructor(r,n){super(r,n);this.apiHttpServer=null;this.settings=kc(this.app);this.embedsRepository=new wh(this);this.da Line truncated
/*! Bundled license information:
lodash-es/lodash.js:
(**
* @license
* Lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="es" -o ./`
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*)
search-query-parser/lib/search-query-parser.js:
(*!
* search-query-parser.js
* Copyright(c) 2014-2019
* MIT Licensed
*)
dexie/dist/dexie.js:
(*! *****************************************************************************
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.
***************************************************************************** *)
*/
/* nosourcemap */
+14
View File
@@ -0,0 +1,14 @@
{
"id": "omnisearch",
"name": "Omnisearch",
"version": "1.28.2",
"minAppVersion": "1.7.2",
"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
}
+135
View File
@@ -0,0 +1,135 @@
.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__embed {
margin-left: 1em;
}
.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;
}
.omnisearch-result__icon {
display: inline-block;
vertical-align: middle;
width: 16px;
height: 16px;
margin-right: 4px;
}
.omnisearch-result__icon svg {
width: 100%;
height: 100%;
}
.omnisearch-result__icon--emoji {
font-size: 16px;
vertical-align: middle;
margin-right: 4px;
}
@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;
}
+165
View File
@@ -0,0 +1,165 @@
var Bt=Object.defineProperty;var rr=Object.getOwnPropertyDescriptor;var or=Object.getOwnPropertyNames;var ar=Object.prototype.hasOwnProperty;var lr=(s,e,t)=>e in s?Bt(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var _n=(s,e)=>{for(var t in e)Bt(s,t,{get:e[t],enumerable:!0})},cr=(s,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of or(e))!ar.call(s,i)&&i!==t&&Bt(s,i,{get:()=>e[i],enumerable:!(n=rr(e,i))||n.enumerable});return s};var ur=s=>cr(Bt({},"__esModule",{value:!0}),s);var Se=(s,e,t)=>(lr(s,typeof e!="symbol"?e+"":e,t),t);var Io={};_n(Io,{default:()=>Ps});module.exports=ur(Io);var I=require("obsidian");var B=typeof queueMicrotask=="function"?queueMicrotask:(s=>e=>s.then(e))(Promise.resolve());function Fe(s,e){return new $s(s,e)}var $s=class{constructor(e,t){this.reap=e,this.sched=t,this._flags=0,this.q=new Set,this._run=()=>{this._flags&=-3,this.flush()},this.flush=()=>{if(this._flags&1)return;let{q:n}=this;if(n.size){this._flags|=1;try{this.reap(n)}finally{this._flags&=-2,!n.size||this._flags&2||this._sched()}}}}isRunning(){return!!(this._flags&1)}isEmpty(){return!this.q.size}add(e){this.q.size||this._flags&3||this._sched(),this.q.add(e)}delete(e){this.q.delete(e)}has(e){return this.q.has(e)}_sched(){this._flags|=2,(this.sched||B)(this._run)}};var fr=Array.isArray;function tt(s,e,t){return s.set(e,t),t}function K(s){return typeof s=="function"}var Bs=(()=>{function s(e){return Object.setPrototypeOf(e,new.target.prototype)}return s.prototype=Function.prototype,s})(),Ie=Reflect.apply,Ds=(()=>{function s(){}return s.prototype=function*(){}.constructor.prototype.prototype,s})();function Bn(s){return s.bind(null,"next")}function Dn(s){return s.bind(null,"throw",void 0)}function st(){}function Fs(s,e,t){return{op:s,val:e,err:t}}var qt=Object.freeze(Fs("cancel"));function jn(s){return Fs("next",s)}function Rn(s){return Fs("throw",void 0,s)}function Ks(s){return s===qt}function Ut(s){return s?s.op==="next":!1}function Pe(s){return s?s.op==="throw":!1}function js(s){return Pe(s)&&s.val===void 0}function xe(s){return s.val=null,s.err}function qn(s){if(Ut(s))return s.val;s.op,nt(st,e=>{throw e},s)}function nt(s,e,t){Pe(t)?e(xe(t)):Ks(t)?e(new Ft("Job canceled")):s(t.val)}function Fn(s,e){s.result()||nt(s.return.bind(s),s.throw.bind(s),e)}var Ft=class extends Error{},U=he();function P(s){let e=U;return U=s,e}var Dt=[];function he(s,e){if(Dt&&Dt.length){let t=Dt.pop();return t.job=s,t.cell=e,t}return{job:s,cell:e}}function Rs(s){s.job=s.cell=null,Dt.push(s)}var Ke=new WeakMap,Kn=s=>{Promise.reject(s)},Vs=he(),xn=new WeakMap,Vn=Fe(s=>{for(let e of s)s.delete(e),e.doPull()},B);function Pn(){return Jt(0,void 0,void 0)}function hr(s){for(;s.v;)Vt(s,s.n);s.u=void 0,Vt(s,s)}function dr(s,e){++s.v,Jt(e,s.n,s)}function pr(s,e){++s.v,Jt(e,s,s.p)}function mr(s,e){return++s.v,wr(s,Jt(e,s,s.p))}function gr(s){return!s||s.v===0}function Un(s){return s?s.v:0}function yr(s){if(Un(s))return Vt(s,s.p)}var qs=class{constructor(){this.n=this,this.p=this,this.v=void 0,this.u=void 0}},Kt;function Jt(s,e,t){let n=Kt;return n?(Kt=n.n,n.n=e||n,n.p=t||n):(n=new qs,e&&(n.n=e),t&&(n.p=t)),n.v=s,n.n.p=n,n.p.n=n,n}function Vt(s,e){--s.v;var t=e.v,n=e.u;return e.n&&(e.n.p=e.p),e.p&&(e.p.n=e.n),e.u=e.v=e.p=void 0,e.n=Kt,Kt=e,n&&n(),t}function wr(s,e){let t=e.u||(e.u=()=>{t&&(t===e.u&&Vt(s,e),t=s=e=void 0)});return t}function Me(){var e;let s=U.job||((e=U.cell)==null?void 0:e.getJob());if(s)return s;throw new Error("No job is currently active")}function br(s){return e=>{U.job.must(s.release(e))}}function Mn(s,e){for(;Un(e);)try{yr(e)(s)}catch(t){it.asyncThrow(t)}e&&hr(e)}var ie=new Set,_e=class{constructor(){this.end=()=>{let e=this._done||(this._done=qt),t=this._cbs;if(!t&&!js(e))return;let n=ie.size,i=P(Vs);if(n||ie.add(null),t&&t.u&&(t.u=Mn(e,t.u)),ie.add(this),n){P(i);return}ie.delete(null);for(let r of ie)r._cbs&&(r._cbs=Mn(r._done,r._cbs)),ie.delete(r),js(r._done)&&r.throw(xe(r._done));P(i)},this._done=void 0,this._cbs=void 0}static create(e,t){let n=new _e;return(e||t)&&(n.must((e||(e=Me())).release(t||n.end)),xn.set(n,e)),n}do(e){return dr(this._chain(),e),this}onError(e){return this.do(t=>{Pe(t)&&e(xe(t))})}onValue(e){return this.do(t=>{Ut(t)&&e(t.val)})}onCancel(e){return this.do(t=>{Ks(t)&&e()})}result(){var e;return this._done||((e=U.cell)==null?void 0:e.recalcWhen(this,br))||void 0}get[Symbol.toStringTag](){return"Job"}restart(){if(!this._done&&ie.size){let e=ie;ie=new Set,this.end(),ie=e}else this._end(qt);return this._done=void 0,jt.delete(this),this}_end(e){if(this._done)throw new Error("Job already ended");return this!==fe&&(this._done=e),this.end(),this}throw(e){return this._done?((xn.get(this)||fe).asyncThrow(e),this):this._end(Rn(e))}return(e){return this._end(jn(e))}then(e,t){return Rt(this).then(e,t)}catch(e){return Rt(this).catch(e)}finally(e){return Rt(this).finally(e)}*[Symbol.iterator](){return this._done?qn(this._done):yield e=>{this.do(t=>nt(Bn(e),Dn(e),t))}}start(e,t){if(!e)returLine truncated
details.ophidian-settings-group > div {
margin-left: var(--font-ui-medium);
}
summary.ophidian-settings-group {
display: flex;
}
summary.ophidian-settings-group > div.setting-item-heading:first-child {
width: 100%;
}
summary.ophidian-settings-group > div.setting-item-heading:first-child .setting-item-description {
margin-left: var(--font-ui-medium);
}
details.ophidian-settings-group > summary.ophidian-settings-group > div.setting-item-heading:first-child .setting-item-name::before {
content: "\u25B8";
display: inline-flex;
width: var(--font-ui-medium);
}
details.ophidian-settings-group[open] > summary.ophidian-settings-group > div.setting-item-heading:first-child .setting-item-name::before {
content: "\u25BE";
}`;var Pa=$r(s=>s.createEl("style",{text:jr}));var Rr=`.ophidian-dialog .dialog-text {
margin-bottom: 0.75em;
}
.ophidian-dialog.mod-confirmation input[type=text]:invalid, .ophidian-dialog.mod-confirmation input[type=text]:invalid:enabled:focus, .ophidian-dialog.mod-confirmation input[type=text][aria-invalid=true], .ophidian-dialog.mod-confirmation input[type=text][aria-invalid=true]:enabled:focus {
border-color: var(--text-error);
background-color: var(--background-modifier-error);
}`,zt=class extends De.Modal{constructor(){super(ui),this.buttonContainerEl=this.modalEl.createDiv("modal-button-container"),this.styleEl=this.modalEl.createEl("style",{text:Rr}),this.textContentEl=this.contentEl.createDiv("dialog-text"),this.okButton=this.buttonContainerEl.createEl("button",{cls:"mod-cta",text:i18next.t("dialogue.button-continue")},s=>{s.addEventListener("click",async e=>{var t;await((t=this.onOK)==null?void 0:t.call(this,e))||this.close()})}),this.isOpened=!1,this.containerEl.addClass("mod-confirmation"),this.containerEl.addClass("ophidian-dialog")}onOK(s){return!1}open(){this.isOpened||super.open(),this.isOpened=!0}close(){this.isOpened&&super.close(),this.isOpened=!1}setOk(s){this.okButton.textContent=s}addButton(s,e,t,n){return this.buttonContainerEl.createEl("button",{cls:s,text:e},n).addEventListener("click",async i=>{await t(i)||this.close()}),this}addCancelButton(s){return this.addButton("",i18next.t("dialogue.button-cancel"),()=>(this.close(),s&&s()))}setContent(s){return String.isString(s)?this.textContentEl.setText(s):this.textContentEl.appendChild(s),this}setTitle(s){return this.titleEl.setText(s),this}setup(s){return s&&s(this),this}},Xt=class extends zt{constructor(){super(...arguments),this.value=!1}onOK(s){this.value=!0}confirm(){this.addCancelButton();let{resolve:s,promise:e}=ci();return this.onClose=()=>s(this.value),this.open(),e}},hi=class extends zt{constructor(){super(...arguments),this.value=!1,this.setting=this.contentEl.createDiv("is-mobile"),this.inputEl=this.setting.createEl("input",{type:"text"},s=>{s.addEventListener("keypress",async e=>{var t;e.key==="Enter"&&!e.isComposing&&(await((t=this.onOK)==null?void 0:t.call(this,e))||this.close())})})}onOK(s){let{value:e}=this.inputEl;if(!this.isValid(e))return this.handleInvalidEntry(e),!0;this.value=this.inputEl.value}isValid(s){return!0}handleInvalidEntry(s){}setPlaceholder(s){return s?this.inputEl.placeholder=s:this.inputEl.removeAttribute("placeholder"),this}setValue(s){return this.inputEl.value=s,this}setPattern(s){return this.inputEl.pattern=s,this.setValidator(e=>new RegExp(`^${s}$`).test(e))}setValidator(s){return this.isValid=s,this.inputEl.oninput=()=>this.inputEl.setAttribute("aria-invalid",""+!s(this.inputEl.value)),this}onInvalidEntry(s){return this.handleInvalidEntry=s,this}prompt(){this.addCancelButton();let{resolve:s,promise:e}=ci();return this.onClose=()=>s(this.value),this.open(),this.inputEl.select(),this.inputEl.focus(),e}};var en=class extends zt{constructor(t){super();Se(this,"progressEl",this.contentEl.createEl("progress",{value:0,attr:{style:"width: 100%",max:100}}));Se(this,"counterEl",this.contentEl.createDiv({text:"0%"}));this.okButton.detach(),this.addCancelButton(),this.onClose=t}setProgress(t){this.counterEl.textContent=`${t}%`,this.progressEl.value=t}},ct=class{constructor(e,t){Se(this,"aborted",!1);this.progress=new en(()=>this.aborted=!0).setTitle(e).setContent(t),this.progress.open()}async forEach(e,t){try{if(this.aborted)return;let n=0,i=e.length,r=0,o=0;for(let a of e){if(await t(a,n++,e,this),this.aborted)return;if(r+=100,r>i){let l=r%i,c=(r-l)/i;this.progress.setProgress(o+=c),r=l}}return o<100&&this.progress.setProgress(100),this}finally{this.progress.onClose=()=>null,this.progress.close()}}set title(e){this.progress.setTitle(e)}set message(e){this.progress.setContent(e)}};var Le=require("obsidian");var qr=/^#[^\u2000-\u206F\u2E00-\u2E7F'!"#$%&()*+,.:;<=>?@^`{|}~\[\]\\\s]+$/,A=class{constructor(e){let t=this.tag=A.toTag(e),n=this.canonical=t.toLowerCase(),i=this.canonical_prefix=n+"/";this.name=t.slice(1),this.matches=function(r){return r=r.toLowerCase(),r==n||r.startsWith(i)}}toString(){return this.tag}static isTag(e){return qr.test(e)}static toTag(e){for(;e.startsWith("##");)e=e.slice(1);return e.startsWith("#")?e:"#"+e}static toName(e){return this.toTag(e).slice(1)}static canonical(e){return A.toTag(e).toLowerCase()}},Zt=class{constructor(e,t){let n=Object.assign(Object.create(null),{[e.tag]:t.tag,[e.name]:t.name});this.inString=function(i,r=0){return i.slice(0,r)+t.tag+i.slice(r+e.tag.length)},this.inArray=(i,r,o)=>i.map((a,l)=>{if(r&&l&1||!a||typeof a!="string")return a;if(o){if(!a.startsWith("#")||!A.isTag(a))return a}else if(/[ ,\n]/.test(a))return this.inArray(a.split(/([, \n]+)/),!0).join("");if(n[a])return n[a];let c=a.toLowerCase();return n[c]?n[a]=n[c]:c.startsWith(e.canonical_prefix)?n[a]=n[c]=this.inString(a):("#"+c).startsWith(e.canonical_prefix)?n[a]=n[c]=this.inString("#"+a).slice(1):n[a]=n[c]=a}),this.willMergeTags=function(i){if(e.canonical===t.canonical)return;let r=new Set(i.map(o=>o.toLowerCase()));for(let o of i.filter(e.matches)){let a=this.inString(o);if(r.has(a.toLowerCase()))return[new A(o),new A(a)]}}}};var Ln=require("obsidian");var es=Symbol.for("yaml.alias"),ts=Symbol.for("yaml.document"),Q=Symbol.for("yaml.map"),tn=Symbol.for("yaml.pair"),J=Symbol.for("yaml.scalar"),pe=Symbol.for("yaml.seq"),R=Symbol.for("yaml.node.type"),H=s=>!!s&&typeof s=="objeLine truncated
`)}};_.defaultYaml={explicit:!1,version:"1.2"};_.defaultTags={"!!":"tag:yaml.org,2002:"};function ss(s){if(/[\x00-\x19\s,[\]{}]/.test(s)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;throw new Error(t)}return!0}function sn(s){let e=new Set;return X(s,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function nn(s,e){for(let t=1;;++t){let n=`${s}${t}`;if(!e.has(n))return n}}function pi(s,e){let t=[],n=new Map,i=null;return{onAnchor(r){t.push(r),i||(i=sn(s));let o=nn(e,i);return i.add(o),o},setAnchors(){for(let r of t){let o=n.get(r);if(typeof o=="object"&&o.anchor&&(E(o.node)||T(o.node)))o.node.anchor=o.anchor;else{let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=r,a}}},sourceObjects:n}}var me=class extends ke{constructor(e){super(es),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return X(e,{Node:(n,i)=>{if(i===this)return X.BREAK;i.anchor===this.source&&(t=i)}}),t}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:i,maxAliasCount:r}=t,o=this.resolve(i);if(!o){let l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=n.get(o);if(!a||a.res===void 0){let l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(r>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=ns(i,o,n)),a.count*a.aliasCount>r)){let l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,t,n){let i=`*${this.source}`;if(e){if(ss(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${i} `}return i}};function ns(s,e,t){if(H(e)){let n=e.resolve(s),i=t&&n&&t.get(n);return i?i.count*i.aliasCount:0}else if(T(e)){let n=0;for(let i of e.items){let r=ns(s,i,t);r>n&&(n=r)}return n}else if(O(e)){let n=ns(s,e.key,t),i=ns(s,e.value,t);return Math.max(n,i)}return 1}function j(s,e,t){if(Array.isArray(s))return s.map((n,i)=>j(n,String(i),t));if(s&&typeof s.toJSON=="function"){if(!t||!di(s))return s.toJSON(e,t);let n={aliasCount:0,count:1,res:void 0};t.anchors.set(s,n),t.onCreate=r=>{n.res=r,delete t.onCreate};let i=s.toJSON(e,t);return t.onCreate&&t.onCreate(i),i}return typeof s=="bigint"&&!(t&&t.keep)?Number(s):s}var is=s=>!s||typeof s!="function"&&typeof s!="object",v=class extends ke{constructor(e){super(J),this.value=e}toJSON(e,t){return t&&t.keep?this.value:j(this.value,e,t)}toString(){return String(this.value)}};v.BLOCK_FOLDED="BLOCK_FOLDED";v.BLOCK_LITERAL="BLOCK_LITERAL";v.PLAIN="PLAIN";v.QUOTE_DOUBLE="QUOTE_DOUBLE";v.QUOTE_SINGLE="QUOTE_SINGLE";var Ur="tag:yaml.org,2002:";function Jr(s,e,t){if(e){let n=t.filter(r=>r.tag===e),i=n.find(r=>!r.format)||n[0];if(!i)throw new Error(`Tag ${e} not found`);return i}return t.find(n=>n.identify&&n.identify(s)&&!n.format)}function ge(s,e,t){var n,i;if(Je(s)&&(s=s.contents),C(s))return s;if(O(s)){let d=(i=(n=t.schema[Q]).createNode)===null||i===void 0?void 0:i.call(n,t.schema,null,t);return d.items.push(s),d}(s instanceof String||s instanceof Number||s instanceof Boolean||typeof BigInt=="function"&&s instanceof BigInt)&&(s=s.valueOf());let{aliasDuplicateObjects:r,onAnchor:o,onTagObj:a,schema:l,sourceObjects:c}=t,u;if(r&&s&&typeof s=="object"){if(u=c.get(s),u)return u.anchor||(u.anchor=o(s)),new me(u.anchor);u={anchor:null,node:null},c.set(s,u)}e&&e.startsWith("!!")&&(e=Ur+e.slice(2));let f=Jr(s,e,l.tags);if(!f){if(s&&typeof s.toJSON=="function"&&(s=s.toJSON()),!s||typeof s!="object"){let d=new v(s);return u&&(u.node=d),d}f=s instanceof Map?l[Q]:Symbol.iterator in Object(s)?l[pe]:l[Q]}a&&(a(f),delete t.onTagObj);let h=f!=null&&f.createNode?f.createNode(t.schema,s,t):new v(s);return e&&(h.tag=e),u&&(u.node=h),h}function ft(s,e,t){let n=t;for(let i=e.length-1;i>=0;--i){let r=e[i];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){let o=[];o[r]=n,n=o}else n=new Map([[r,n]])}return ge(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:s,sourceObjects:new Map})}var Ge=s=>s==null||typeof s=="object"&&!!s[Symbol.iterator]().next().done,ye=class extends ke{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(n=>C(n)||O(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Ge(e))this.add(t);else{let[n,...i]=e,r=this.get(n,!0);if(T(r))r.addIn(i,t);else if(r===void 0&&this.schema)this.set(n,ft(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let i=this.get(t,! Line truncated
`)?`
`+oe(t,e):(s.endsWith(" ")?"":" ")+t;var rn="flow",rs="block",ht="quoted";function dt(s,e,t="flow",{indentAtStart:n,lineWidth:i=80,minContentWidth:r=20,onFold:o,onOverflow:a}={}){if(!i||i<0)return s;let l=Math.max(1+r,1+i-e.length);if(s.length<=l)return s;let c=[],u={},f=i-e.length;typeof n=="number"&&(n>i-Math.max(2,r)?c.push(0):f=i-n);let h,d,g=!1,p=-1,m=-1,y=-1;t===rs&&(p=gi(s,p),p!==-1&&(f=p+l));for(let k;k=s[p+=1];){if(t===ht&&k==="\\"){switch(m=p,s[p+1]){case"x":p+=3;break;case"u":p+=5;break;case"U":p+=9;break;default:p+=1}y=p}if(k===`
`)t===rs&&(p=gi(s,p)),f=p+l,h=void 0;else{if(k===" "&&d&&d!==" "&&d!==`
`&&d!==" "){let w=s[p+1];w&&w!==" "&&w!==`
`&&w!==" "&&(h=p)}if(p>=f)if(h)c.push(h),f=h+l,h=void 0;else if(t===ht){for(;d===" "||d===" ";)d=k,k=s[p+=1],g=!0;let w=p>y+1?p-2:m-1;if(u[w])return s;c.push(w),u[w]=!0,f=w+l,h=void 0}else g=!0}d=k}if(g&&a&&a(),c.length===0)return s;o&&o();let b=s.slice(0,c[0]);for(let k=0;k<c.length;++k){let w=c[k],S=c[k+1]||s.length;w===0?b=`
${e}${s.slice(0,S)}`:(t===ht&&u[w]&&(b+=`${s[w]}\\`),b+=`
${e}${s.slice(w+1,S)}`)}return b}function gi(s,e){let t=s[e+1];for(;t===" "||t===" ";){do t=s[e+=1];while(t&&t!==`
`);t=s[e+1]}return e}var as=s=>({indentAtStart:s.indentAtStart,lineWidth:s.options.lineWidth,minContentWidth:s.options.minContentWidth}),ls=s=>/^(%|---|\.\.\.)/m.test(s);function Wr(s,e,t){if(!e||e<0)return!1;let n=e-t,i=s.length;if(i<=n)return!1;for(let r=0,o=0;r<i;++r)if(s[r]===`
`){if(r-o>n)return!0;if(o=r+1,i-o<=n)return!1}return!0}function pt(s,e){let t=JSON.stringify(s);if(e.options.doubleQuotedAsJSON)return t;let{implicitKey:n}=e,i=e.options.doubleQuotedMinMultiLineLength,r=e.indent||(ls(s)?" ":""),o="",a=0;for(let l=0,c=t[l];c;c=t[++l])if(c===" "&&t[l+1]==="\\"&&t[l+2]==="n"&&(o+=t.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),c==="\\")switch(t[l+1]){case"u":{o+=t.slice(a,l);let u=t.substr(l+2,4);switch(u){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:u.substr(0,2)==="00"?o+="\\x"+u.substr(2):o+=t.substr(l,6)}l+=5,a=l+1}break;case"n":if(n||t[l+2]==='"'||t.length<i)l+=1;else{for(o+=t.slice(a,l)+`
`;t[l+2]==="\\"&&t[l+3]==="n"&&t[l+4]!=='"';)o+=`
`,l+=2;o+=r,t[l+2]===" "&&(o+="\\"),l+=1,a=l+1}break;default:l+=1}return o=a?o+t.slice(a):t,n?o:dt(o,r,ht,as(e))}function on(s,e){if(e.options.singleQuote===!1||e.implicitKey&&s.includes(`
`)||/[ \t]\n|\n[ \t]/.test(s))return pt(s,e);let t=e.indent||(ls(s)?" ":""),n="'"+s.replace(/'/g,"''").replace(/\n+/g,`$&
${t}`)+"'";return e.implicitKey?n:dt(n,t,rn,as(e))}function mt(s,e){let{singleQuote:t}=e.options,n;if(t===!1)n=pt;else{let i=s.includes('"'),r=s.includes("'");i&&!r?n=on:r&&!i?n=pt:n=t?on:pt}return n(s,e)}function os({comment:s,type:e,value:t},n,i,r){let{blockQuote:o,commentString:a,lineWidth:l}=n.options;if(!o||/\n[\t ]+$/.test(t)||/^\s*$/.test(t))return mt(t,n);let c=n.indent||(n.forceBlockIndent||ls(t)?" ":""),u=o==="literal"?!0:o==="folded"||e===v.BLOCK_FOLDED?!1:e===v.BLOCK_LITERAL?!0:!Wr(t,l,c.length);if(!t)return u?`|
`:`>
`;let f,h;for(h=t.length;h>0;--h){let N=t[h-1];if(N!==`
`&&N!==" "&&N!==" ")break}let d=t.substring(h),g=d.indexOf(`
`);g===-1?f="-":t===d||g!==d.length-1?(f="+",r&&r()):f="",d&&(t=t.slice(0,-d.length),d[d.length-1]===`
`&&(d=d.slice(0,-1)),d=d.replace(/\n+(?!\n|$)/g,`$&${c}`));let p=!1,m,y=-1;for(m=0;m<t.length;++m){let N=t[m];if(N===" ")p=!0;else if(N===`
`)y=m;else break}let b=t.substring(0,y<m?y+1:m);b&&(t=t.substring(b.length),b=b.replace(/\n+/g,`$&${c}`));let w=(u?"|":">")+(p?c?"2":"1":"")+f;if(s&&(w+=" "+a(s.replace(/ ?[\r\n]+/g," ")),i&&i()),u)return t=t.replace(/\n+/g,`$&${c}`),`${w}
${c}${b}${t}${d}`;t=t.replace(/\n+/g,`
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let S=dt(`${b}${t}${d}`,c,rs,as(n));return`${w}
${c}${S}`}function Gr(s,e,t,n){let{type:i,value:r}=s,{actualString:o,implicitKey:a,indent:l,inFlow:c}=e;if(a&&/[\n[\]{},]/.test(r)||c&&/[[\]{},]/.test(r))return mt(r,e);if(!r||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return a||c||r.indexOf(`
`)===-1?mt(r,e):os(s,e,t,n);if(!a&&!c&&i!==v.PLAIN&&r.indexOf(`
`)!==-1)return os(s,e,t,n);if(l===""&&ls(r))return e.forceBlockIndent=!0,os(s,e,t,n);let u=r.replace(/\n+/g,`$&
${l}`);if(o){let f=g=>{var p;return g.default&&g.tag!=="tag:yaml.org,2002:str"&&((p=g.test)===null||p===void 0?void 0:p.test(u))},{compat:h,tags:d}=e.doc.schema;if(d.some(f)||h!=null&&h.some(f))return mt(r,e)}return a?u:dt(u,l,rn,as(e))}function we(s,e,t,n){let{implicitKey:i,inFlow:r}=e,o=typeof s.value=="string"?s:Object.assign({},s,{value:String(s.value)}),{type:a}=s;a!==v.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=v.QUOTE_DOUBLE);let l=u=>{switch(u){case v.BLOCK_FOLDED:case v.BLOCK_LITERAL:return i||r?mt(o.value,e):os(o,e,t,n);case v.QUOTE_DOUBLE:return pt(o.value,e);case v.QUOTE_SINGLE:return on(o.value,e);case v.PLAIN:return Gr(o,e,t,n);default:return null}},c=l(a);if(c===null){let{defaultKeyType:u,defaultStringType:f}=e.options,h=i&&u||f;if(c=l(h),c===null)throw new Error(`Unsupported default string type ${h}`)}return c}function cs(s,e){let t=Object.assign({blockQuote:!0,commentString:mi,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},s.schema.toStringOptions,e),n;switch(t.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:s,indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:n,options:t}}function Yr(s,e){if(e.tag){let i=s.filter(r=>r.tag===e.tag);if(i.length>0)return i.find(r=>r.format===e.format)||i[0]}let t,n;if(E(e)){n=e.value;let i=s.filter(r=>r.identify&&r.identify(n));t=i.find(r=>r.format===e.format)||i.find(r=>!r.format)}else n=e,t=s.find(i=>i.nodeClass&&n instanceof i.nodeClass);if(!t){let i=n&&n.constructor?n.constructor.name:typeof n;throw new Error(`Tag not resolved for ${i} value`)}return t}function Qr(s,e,{anchors:t,doc:n}){if(!n.directives)return"";let i=[],r=(E(s)||T(s))&&s.anchor;r&&ss(r)&&(t.add(r),i.push(`&${r}`));let o=s.tag||(e.default?null:e.tag);return o&&i.push(n.directives.tagString(o)),i.join(" ")}function ee(s,e,t,n){var i;if(O(s))return s.toString(e,t,n);if(H(s)){if(e.doc.directives)return s.toString(e);if(!((i=e.resolvedAliases)===null||i===void 0)&&i.has(s))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(s):e.resolvedAliases=new Set([s]),s=s.resolve(e.doc)}let r,o=C(s)?s:e.doc.createNode(s,{onTagObj:c=>r=c});r||(r=Yr(e.doc.schema.tags,o));let a=Qr(o,r,e);a.length>0&&(e.indentAtStart=(e.indentAtStart||0)+a.length+1);let l=typeof r.stringify=="function"?r.stringify(o,e,t,n):E(o)?we(o,e,t,n):o.toString(e,t,n);return a?E(o)||l[0]==="{"||l[0]==="["?`${a} ${l}`:`${a}
${e.indent}${l}`:l}function yi({key:s,value:e},t,n,i){let{allNullValues:r,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:u,simpleKeys:f}}=t,h=C(s)&&s.comment||null;if(f){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(T(s)){let N="With simple keys, collection cannot be used as a key value";throw new Error(N)}}let d=!f&&(!s||h&&e==null&&!t.inFlow||T(s)||(E(s)?s.type===v.BLOCK_FOLDED||s.type===v.BLOCK_LITERAL:typeof s=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!d&&(f||!r),indent:a+l});let g=!1,p=!1,m=ee(s,t,()=>g=!0,()=>p=!0);if(!d&&!t.inFlow&&m.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");d=!0}if(t.inFlow){if(r||e==null)return g&&n&&n(),d?`? ${m}`:m}else if(r&&!f||e==null&&d)return m=`? ${m}`,h&&!g?m+=Z(m,t.indent,c(h)):p&&i&&i(),m;g&&(h=null),d?(h&&(m+=Z(m,t.indent,c(h))),m=`? ${m}
${a}:`):(m=`${m}:`,h&&(m+=Z(m,t.indent,c(h))));let y="",b=null;if(C(e)){if(e.spaceBefore&&(y=`
`),e.commentBefore){let N=c(e.commentBefore);y+=`
${oe(N,t.indent)}`}b=e.comment}else e&&typeof e=="object"&&(e=o.createNode(e));t.implicitKey=!1,!d&&!h&&E(e)&&(t.indentAtStart=m.length+1),p=!1,!u&&l.length>=2&&!t.inFlow&&!d&&z(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substr(2));let k=!1,w=ee(e,t,()=>k=!0,()=>p=!0),S=" ";return y||h?S=w===""&&!t.inFlow?y:`${y}
${t.indent}`:!d&&T(e)?(!(w[0]==="["||w[0]==="{")||w.includes(`
`))&&(S=`
${t.indent}`):(w===""||w[0]===`
`)&&(S=""),m+=S+w,t.inFlow?k&&n&&n():b&&!k?m+=Z(m,t.indent,c(b)):p&&i&&i(),m}function an(s,e){(s==="debug"||s==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(e):console.warn(e))}var wi="<<";function us(s,e,{key:t,value:n}){if(s&&s.doc.schema.merge&&Hr(t))if(n=H(n)?n.resolve(s.doc):n,z(n))for(let i of n.items)ln(s,e,i);else if(Array.isArray(n))for(let i of n)ln(s,e,i);else ln(s,e,n);else{let i=j(t,"",s);if(e instanceof Map)e.set(i,j(n,i,s));else if(e instanceof Set)e.add(i);else{let r=zr(t,i,s),o=j(n,r,s);r in e?Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[r]=o}}return e}var Hr=s=>s===wi||E(s)&&s.value===wi&&(!s.type||s.type===v.PLAIN);function ln(s,e,t){let n=s&&H(t)?t.resolve(s.doc):t;if(!V(n))throw new Error("Merge sources must be maps or map aliases");let i=n.toJSON(null,s,Map);for(let[r,o]of i)e instanceof Map?e.has(r)||e.set(r,o):e instanceof Set?e.add(r):Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}function zr(s,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(C(s)&&t&&t.doc){let n=cs(t.doc,{});n.anchors=new Set;for(let r of t.anchors.keys())n.anchors.add(r.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=s.toString(n);if(!t.mapKeyWarned){let r=JSON.stringify(i);r.length>40&&(r=r.substring(0,36)+'..."'),an(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return i}return JSON.stringify(e)}function Ye(s,e,t){let n=ge(s,void 0,t),i=ge(e,void 0,t);return new L(n,i)}var L=class{constructor(e,t=null){Object.defineProperty(this,R,{value:tn}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return C(t)&&(t=t.clone(e)),C(n)&&(n=n.clone(e)),new L(t,n)}toJSON(e,t){let n=t&&t.mapAsMap?new Map:{};return us(t,n,this)}toString(e,t,n){return e&&e.doc?yi(this,e,t,n):JSON.stringify(this)}};var gt={intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"};function hs(s,e,t){var n;return(((n=e.inFlow)!==null&&n!==void 0?n:s.flow)?Zr:Xr)(s,e,t)}function Xr({comment:s,items:e},t,{blockItemPrefix:n,flowChars:i,itemIndent:r,onChompKeep:o,onComment:a}){let{indent:l,options:{commentString:c}}=t,u=Object.assign({},t,{indent:r,type:null}),f=!1,h=[];for(let g=0;g<e.length;++g){let p=e[g],m=null;if(C(p))!f&&p.spaceBefore&&h.push(""),fs(t,h,p.commentBefore,f),p.comment&&(m=p.comment);else if(O(p)){let b=C(p.key)?p.key:null;b&&(!f&&b.spaceBefore&&h.push(""),fs(t,h,b.commentBefore,f))}f=!1;let y=ee(p,u,()=>m=null,()=>f=!0);m&&(y+=Z(y,r,c(m))),f&&m&&(f=!1),h.push(n+y)}let d;if(h.length===0)d=i.start+i.end;else{d=h[0];for(let g=1;g<h.length;++g){let p=h[g];d+=p?`
${l}${p}`:`
`}}return s?(d+=`
`+oe(c(s),l),a&&a()):f&&o&&o(),d}function Zr({comment:s,items:e},t,{flowChars:n,itemIndent:i,onComment:r}){let{indent:o,indentStep:a,options:{commentString:l}}=t;i+=a;let c=Object.assign({},t,{indent:i,inFlow:!0,type:null}),u=!1,f=0,h=[];for(let m=0;m<e.length;++m){let y=e[m],b=null;if(C(y))y.spaceBefore&&h.push(""),fs(t,h,y.commentBefore,!1),y.comment&&(b=y.comment);else if(O(y)){let w=C(y.key)?y.key:null;w&&(w.spaceBefore&&h.push(""),fs(t,h,w.commentBefore,!1),w.comment&&(u=!0));let S=C(y.value)?y.value:null;S?(S.comment&&(b=S.comment),S.commentBefore&&(u=!0)):y.value==null&&w&&w.comment&&(b=w.comment)}b&&(u=!0);let k=ee(y,c,()=>b=null);m<e.length-1&&(k+=","),b&&(k+=Z(k,i,l(b))),!u&&(h.length>f||k.includes(`
`))&&(u=!0),h.push(k),f=h.length}let d,{start:g,end:p}=n;if(h.length===0)d=g+p;else if(u||(u=h.reduce((y,b)=>y+b.length+2,2)>ye.maxFlowStringSingleLineLength),u){d=g;for(let m of h)d+=m?`
${a}${o}${m}`:`
`;d+=`
${o}${p}`}else d=`${g} ${h.join(" ")} ${p}`;return s&&(d+=Z(d,l(s),o),r&&r()),d}function fs({indent:s,options:{commentString:e}},t,n,i){if(n&&i&&(n=n.replace(/^\n+/,"")),n){let r=oe(e(n),s);t.push(r.trimStart())}}function Ee(s,e){let t=E(e)?e.value:e;for(let n of s)if(O(n)&&(n.key===e||n.key===t||E(n.key)&&n.key.value===t))return n}var x=class extends ye{constructor(e){super(Q,e),this.items=[]}static get tagName(){return"tag:yaml.org,2002:map"}add(e,t){let n;O(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new L(e,e.value):n=new L(e.key,e.value);let i=Ee(this.items,n.key),r=this.schema&&this.schema.sortMapEntries;if(i){if(!t)throw new Error(`Key ${n.key} already set`);E(i.value)&&is(n.value)?i.value.value=n.value:i.value=n.value}else if(r){let o=this.items.findIndex(a=>r(n,a)<0);o===-1?this.items.push(n):this.items.splice(o,0,n)}else this.items.push(n)}delete(e){let t=Ee(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=Ee(this.items,e),i=n&&n.value;return!t&&E(i)?i.value:i}has(e){return!!Ee(this.items,e)}set(e,t){this.add(new L(e,t),!0)}toJSON(e,t,n){let i=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(i);for(let r of this.items)us(t,i,r);return i}toString(e,t,n){if(!e)return JSON.stringify(this);for(let i of this.items)if(!O(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),hs(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}};function eo(s,e,t){let{keepUndefined:n,replacer:i}=t,r=new x(s),o=(a,l)=>{if(typeof i=="function")l=i.call(e,a,l);else if(Array.isArray(i)&&!i.includes(a))return;(l!==void 0||n)&&r.items.push(Ye(a,l,t))};if(e instanceof Map)for(let[a,l]of e)o(a,l);else if(e&&typeof e=="object")for(let a of Object.keys(e))o(a,e[a]);return typeof s.sortMapEntries=="function"&&r.items.sort(s.sortMapEntries),r}var te={collection:"map",createNode:eo,default:!0,nodeClass:x,tag:"tag:yaml.org,2002:map",resolve(s,e){return V(s)||e("Expected a mapping for this tag"),s}};var q=class extends ye{constructor(e){super(pe,e),this.items=[]}static get tagName(){return"tag:yaml.org,2002:seq"}add(e){this.items.push(e)}delete(e){let t=ds(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){let n=ds(e);if(typeof n!="number")return;let i=this.items[n];return!t&&E(i)?i.value:i}has(e){let t=ds(e);return typeof t=="number"&&t<this.items.length}set(e,t){let n=ds(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);let i=this.items[n];E(i)&&is(t)?i.value=t:this.items[n]=t}toJSON(e,t){let n=[];t&&t.onCreate&&t.onCreate(n);let i=0;for(let r of this.items)n.push(j(r,String(i++),t));return n}toString(e,t,n){return e?hs(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}};function ds(s){let e=E(s)?s.value:s;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}function to(s,e,t){let{replacer:n}=t,i=new q(s);if(e&&Symbol.iterator in Object(e)){let r=0;for(let o of e){if(typeof n=="function"){let a=e instanceof Set?o:String(r++);o=n.call(e,a,o)}i.items.push(ge(o,void 0,t))}}return i}var se={collection:"seq",createNode:to,default:!0,nodeClass:q,tag:"tag:yaml.org,2002:seq",resolve(s,e){return z(s)||e("Expected a sequence for this tag"),s}};var Oe={identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify(s,e,t,n){return e=Object.assign({actualString:!0},e),we(s,e,t,n)}};var Re={identify:s=>s==null,createNode:()=>new v(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new v(null),stringify:({source:s},e)=>s&&Re.test.test(s)?s:e.options.nullStr};var yt={identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:s=>new v(s[0]==="t"||s[0]==="T"),stringify({source:s,value:e},t){if(s&&yt.test.test(s)){let n=s[0]==="t"||s[0]==="T";if(e===n)return s}return e?t.options.trueStr:t.options.falseStr}};function $({format:s,minFractionDigits:e,tag:t,value:n}){if(typeof n=="bigint")return String(n);let i=typeof n=="number"?n:Number(n);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let r=JSON.stringify(n);if(!s&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^\d/.test(r)){let o=r.indexOf(".");o<0&&(o=r.length,r+=".");let a=e-(r.length-o-1);for(;a-- >0;)r+="0"}return r}var ps={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:$},ms={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s),stringify(s){let Line truncated
`:" ")}return we({comment:s,type:e,value:a},n,i,r)}};function un(s,e){if(z(s))for(let t=0;t<s.items.length;++t){let n=s.items[t];if(!O(n)){if(V(n)){n.items.length>1&&e("Each pair must have its own sequence indicator");let i=n.items[0]||new L(new v(null));if(n.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${n.commentBefore}
${i.key.commentBefore}`:n.commentBefore),n.comment){let r=i.value||i.key;r.comment=r.comment?`${n.comment}
${r.comment}`:n.comment}n=i}s.items[t]=O(n)?n:new L(n)}}else e("Expected a sequence for this tag");return s}function fn(s,e,t){let{replacer:n}=t,i=new q(s);i.tag="tag:yaml.org,2002:pairs";let r=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof n=="function"&&(o=n.call(e,String(r++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){let c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected { key: value } tuple: ${o}`)}else a=o;i.items.push(Ye(a,l,t))}return i}var bt={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:un,createNode:fn};var Ne=class extends q{constructor(){super(),this.add=x.prototype.add.bind(this),this.delete=x.prototype.delete.bind(this),this.get=x.prototype.get.bind(this),this.has=x.prototype.has.bind(this),this.set=x.prototype.set.bind(this),this.tag=Ne.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t&&t.onCreate&&t.onCreate(n);for(let i of this.items){let r,o;if(O(i)?(r=j(i.key,"",t),o=j(i.value,r,t)):r=j(i,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}};Ne.tag="tag:yaml.org,2002:omap";var vt={collection:"seq",identify:s=>s instanceof Map,nodeClass:Ne,default:!1,tag:"tag:yaml.org,2002:omap",resolve(s,e){let t=un(s,e),n=[];for(let{key:i}of t.items)E(i)&&(n.includes(i.value)?e(`Ordered maps must not include duplicate keys: ${i.value}`):n.push(i.value));return Object.assign(new Ne,t)},createNode(s,e,t){let n=fn(s,e,t),i=new Ne;return i.items=n.items,i}};function Ei({value:s,source:e},t){return e&&(s?hn:dn).test.test(e)?e:s?t.options.trueStr:t.options.falseStr}var hn={identify:s=>s===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new v(!0),stringify:Ei},dn={identify:s=>s===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new v(!1),stringify:Ei};var Oi={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:$},Ni={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s.replace(/_/g,"")),stringify(s){let e=Number(s.value);return isFinite(e)?e.toExponential():$(s)}},Ci={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(s){let e=new v(parseFloat(s.replace(/_/g,""))),t=s.indexOf(".");if(t!==-1){let n=s.substring(t+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:$};var St=s=>typeof s=="bigint"||Number.isInteger(s);function ks(s,e,t,{intAsBigInt:n}){let i=s[0];if((i==="-"||i==="+")&&(e+=1),s=s.substring(e).replace(/_/g,""),n){switch(t){case 2:s=`0b${s}`;break;case 8:s=`0o${s}`;break;case 16:s=`0x${s}`;break}let o=BigInt(s);return i==="-"?BigInt(-1)*o:o}let r=parseInt(s,t);return i==="-"?-1*r:r}function pn(s,e,t){let{value:n}=s;if(St(n)){let i=n.toString(e);return n<0?"-"+t+i.substr(1):t+i}return $(s)}var Ti={identify:St,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(s,e,t)=>ks(s,2,2,t),stringify:s=>pn(s,2,"0b")},Ai={identify:St,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(s,e,t)=>ks(s,1,8,t),stringify:s=>pn(s,8,"0")},Li={identify:St,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(s,e,t)=>ks(s,0,10,t),stringify:$},Ii={identify:St,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(s,e,t)=>ks(s,2,16,t),stringify:s=>pn(s,16,"0x")};var Ce=class extends x{constructor(e){super(e),this.tag=Ce.tag}add(e){let t;O(e)?t=e:typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new L(e.key,null):t=new L(e,null),Ee(this.items,t.key)||this.items.push(t)}get(e,t){let n=Ee(this.items,e);return!t&&O(n)?E(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=Ee(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new L(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}};Ce.tag="tag:yaml.org,2002:set";var kt={collection:"map",identify:s=>s instanceof Set,nodeClass:Ce,default:!1,tag:"tag:yaml.org,2002:set",resolve(s,e){if(V(s)){if(s.hasAllNullValues(!0))return Object.assign(new Ce,s);e("Set items must all have null values")}else e("Expected a mapping for this tag");return s},createNode(s,e,t){let{replacer:n}=t, Line truncated
`)+`
`}function He(s,e,t,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let i=0,r=n.length;i<r;++i){let o=n[i],a=He(s,n,String(i),o);a===void 0?delete n[i]:a!==o&&(n[i]=a)}else if(n instanceof Map)for(let i of Array.from(n.keys())){let r=n.get(i),o=He(s,n,i,r);o===void 0?n.delete(i):o!==r&&n.set(i,o)}else if(n instanceof Set)for(let i of Array.from(n)){let r=He(s,n,i,i);r===void 0?n.delete(i):r!==i&&(n.delete(i),n.add(r))}else for(let[i,r]of Object.entries(n)){let o=He(s,n,i,r);o===void 0?delete n[i]:o!==r&&(n[i]=o)}return s.call(e,t,n)}var ae=class{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,R,{value:ts});let i=null;typeof t=="function"||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);let r=Object.assign({},gt,n);this.options=r;let{version:o}=r;n!=null&&n.directives?(this.directives=n.directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new _({version:o}),this.setSchema(o,n),e===void 0?this.contents=null:this.contents=this.createNode(e,i,n)}clone(){let e=Object.create(ae.prototype,{[R]:{value:ts}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=C(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){ze(this.contents)&&this.contents.add(e)}addIn(e,t){ze(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=sn(this);e.anchor=!t||n.has(t)?nn(t||"a",n):t}return new me(e.anchor)}createNode(e,t,n){let i;if(typeof t=="function")e=t.call({"":e},"",e),i=t;else if(Array.isArray(t)){let m=b=>typeof b=="number"||b instanceof String||b instanceof Number,y=t.filter(m).map(String);y.length>0&&(t=t.concat(y)),i=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:r,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:c,tag:u}=n||{},{onAnchor:f,setAnchors:h,sourceObjects:d}=pi(this,o||"a"),g={aliasDuplicateObjects:r!=null?r:!0,keepUndefined:l!=null?l:!1,onAnchor:f,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:d},p=ge(e,u,g);return a&&T(p)&&(p.flow=!0),h(),p}createPair(e,t,n={}){let i=this.createNode(e,null,n),r=this.createNode(t,null,n);return new L(i,r)}delete(e){return ze(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Ge(e)?this.contents==null?!1:(this.contents=null,!0):ze(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return T(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Ge(e)?!t&&E(this.contents)?this.contents.value:this.contents:T(this.contents)?this.contents.getIn(e,t):void 0}has(e){return T(this.contents)?this.contents.has(e):!1}hasIn(e){return Ge(e)?this.contents!==void 0:T(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=ft(this.schema,[e],t):ze(this.contents)&&this.contents.set(e,t)}setIn(e,t){Ge(e)?this.contents=t:this.contents==null?this.contents=ft(this.schema,Array.from(e),t):ze(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new _({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":this.directives?this.directives.yaml.version="1.2":this.directives=new _({version:"1.2"}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let i=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new qe(Object.assign(n,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:i,onAnchor:r,reviver:o}={}){let a={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100,stringify:ee},l=j(this.contents,t||"",a);if(typeof r=="function")for(let{count:c,res:u}of a.anchors.values())r(u,c);return typeof o=="function"?He(o,{"":l},"",l):l}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return $i(this,e)}};function ze(s){if(T(s))return!0;throw new Error("Expected a YAML collection as document contents")}var Et=class extends Error{constructor(e,t,n,i){super(),this.name=e,this.code=n,this.message=i,this.pos=t}},W=class extends Et{constructor(e,t,n){super("YAMLParseError",e,t,n)}},Ot=class extends Et{constructor(e,t,n){super("YAMLWarning",e,t,n)}},yn=(s,e) Line truncated
`),o=a+o}if(/[^ ]/.test(o)){let a=1,l=t.linePos[1];l&&l.line===n&&l.col>i&&(a=Math.min(l.col-i,80-r));let c=" ".repeat(r)+"^".repeat(a);t.message+=`:
${o}
${c}
`}};function le(s,{flow:e,indicator:t,next:n,offset:i,onError:r,startOnNewline:o}){let a=!1,l=o,c=o,u="",f="",h=!1,d=!1,g=null,p=null,m=null,y=null,b=null;for(let S of s)switch(d&&(S.type!=="space"&&S.type!=="newline"&&S.type!=="comma"&&r(S.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d=!1),S.type){case"space":!e&&l&&t!=="doc-start"&&S.source[0]===" "&&r(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),c=!0;break;case"comment":{c||r(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let N=S.source.substring(1)||" ";u?u+=f+N:u=N,f="",l=!1;break}case"newline":l?u?u+=S.source:a=!0:f+=S.source,l=!0,h=!0,c=!0;break;case"anchor":g&&r(S,"MULTIPLE_ANCHORS","A node can have at most one anchor"),g=S,b===null&&(b=S.offset),l=!1,c=!1,d=!0;break;case"tag":{p&&r(S,"MULTIPLE_TAGS","A node can have at most one tag"),p=S,b===null&&(b=S.offset),l=!1,c=!1,d=!0;break}case t:(g||p)&&r(S,"BAD_PROP_ORDER",`Anchors and tags must be after the ${S.source} indicator`),y&&r(S,"UNEXPECTED_TOKEN",`Unexpected ${S.source} in ${e||"collection"}`),y=S,l=!1,c=!1;break;case"comma":if(e){m&&r(S,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),m=S,l=!1,c=!1;break}default:r(S,"UNEXPECTED_TOKEN",`Unexpected ${S.type} token`),l=!1,c=!1}let k=s[s.length-1],w=k?k.offset+k.source.length:i;return d&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&r(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:m,found:y,spaceBefore:a,comment:u,hasNewline:h,anchor:g,tag:p,end:w,start:b!=null?b:w}}function Te(s){if(!s)return null;switch(s.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(s.source.includes(`
`))return!0;if(s.end){for(let e of s.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(let e of s.items){for(let t of e.start)if(t.type==="newline")return!0;if(e.sep){for(let t of e.sep)if(t.type==="newline")return!0}if(Te(e.key)||Te(e.value))return!0}return!1;default:return!0}}function Nt(s,e,t){if((e==null?void 0:e.type)==="flow-collection"){let n=e.end[0];n.indent===s&&(n.source==="]"||n.source==="}")&&Te(e)&&t(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Cs(s,e,t){let{uniqueKeys:n}=s.options;if(n===!1)return!1;let i=typeof n=="function"?n:(r,o)=>r===o||E(r)&&E(o)&&r.value===o.value&&!(r.value==="<<"&&s.schema.merge);return e.some(r=>i(r.key,t))}var Bi="All mapping items must start at the same column";function Di({composeNode:s,composeEmptyNode:e},t,n,i){var r;let o=new x(t.schema);t.atRoot&&(t.atRoot=!1);let a=n.offset;for(let l of n.items){let{start:c,key:u,sep:f,value:h}=l,d=le(c,{indicator:"explicit-key-ind",next:u||(f==null?void 0:f[0]),offset:a,onError:i,startOnNewline:!0}),g=!d.found;if(g){if(u&&(u.type==="block-seq"?i(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in u&&u.indent!==n.indent&&i(a,"BAD_INDENT",Bi)),!d.anchor&&!d.tag&&!f){d.comment&&(o.comment?o.comment+=`
`+d.comment:o.comment=d.comment);continue}}else((r=d.found)===null||r===void 0?void 0:r.indent)!==n.indent&&i(a,"BAD_INDENT",Bi);g&&Te(u)&&i(u,"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line");let p=d.end,m=u?s(t,u,d,i):e(t,p,c,null,d,i);t.schema.compat&&Nt(n.indent,u,i),Cs(t,o.items,m)&&i(p,"DUPLICATE_KEY","Map keys must be unique");let y=le(f||[],{indicator:"map-value-ind",next:h,offset:m.range[2],onError:i,startOnNewline:!u||u.type==="block-scalar"});if(a=y.end,y.found){g&&((h==null?void 0:h.type)==="block-map"&&!y.hasNewline&&i(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&d.start<y.found.offset-1024&&i(m.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let b=h?s(t,h,y,i):e(t,a,f,null,y,i);t.schema.compat&&Nt(n.indent,h,i),a=b.range[2];let k=new L(m,b);t.options.keepSourceTokens&&(k.srcToken=l),o.items.push(k)}else{g&&i(m.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),y.comment&&(m.comment?m.comment+=`
`+y.comment:m.comment=y.comment);let b=new L(m);t.options.keepSourceTokens&&(b.srcToken=l),o.items.push(b)}}return o.range=[n.offset,a,a],o}function ji({composeNode:s,composeEmptyNode:e},t,n,i){let r=new q(t.schema);t.atRoot&&(t.atRoot=!1);let o=n.offset;for(let{start:a,value:l}of n.items){let c=le(a,{indicator:"seq-item-ind",next:l,offset:o,onError:i,startOnNewline:!0});if(o=c.end,!c.found)if(c.anchor||c.tag||l)l&&l.type==="block-seq"?i(o,"BAD_INDENT","All sequence items must start at the same column"):i(o,"MISSING_CHAR","Sequence item without - indicator");else{c.comment&&(r.comment=c.comment);continue}let u=l?s(t,l,c,i):e(t,o,a,null,c,i);t.schema.compat&&Nt(n.indent,l,i),o=u.range[2],r.items.push(u)}return r.range=[n.offset,o,o],r}function ce(s,e,t,n){let i="";if(s){let r=!1,o="";for(let a of s){let{source:l,type:c}=a;switch(c){case"space":r=!0;break;case"comment":{t&&!r&&n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let u=l.substring(1)||" ";i?i+=o+u:i=u,o="";break}case"newline":i&&(o+=l),r=!0;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=l.length}}return{comment:i,offset:e}}var wn="Block collections are not allowed within flow collections",bn=s=>s&&(s.type==="block-map"||s.type==="block-seq");function Ri({composeNode:s,composeEmptyNode:e},t,n,i){let r=n.start.source==="{",o=r?"flow map":"flow sequence",a=r?new x(t.schema):new q(t.schema);a.flow=!0;let l=t.atRoot;l&&(t.atRoot=!1);let c=n.offset+n.start.source.length;for(let g=0;g<n.items.length;++g){let p=n.items[g],{start:m,key:y,sep:b,value:k}=p,w=le(m,{flow:o,indicator:"explicit-key-ind",next:y||(b==null?void 0:b[0]),offset:c,onError:i,startOnNewline:!1});if(!w.found){if(!w.anchor&&!w.tag&&!b&&!k){g===0&&w.comma?i(w.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`):g<n.items.length-1&&i(w.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${o}`),w.comment&&(a.comment?a.comment+=`
`+w.comment:a.comment=w.comment),c=w.end;continue}!r&&t.options.strict&&Te(y)&&i(y,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(g===0)w.comma&&i(w.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`);else if(w.comma||i(w.start,"MISSING_CHAR",`Missing , between ${o} items`),w.comment){let S="";e:for(let N of m)switch(N.type){case"comma":case"space":break;case"comment":S=N.source.substring(1);break e;default:break e}if(S){let N=a.items[a.items.length-1];O(N)&&(N=N.value||N.key),N.comment?N.comment+=`
`+S:N.comment=S,w.comment=w.comment.substring(S.length+1)}}if(!r&&!b&&!w.found){let S=k?s(t,k,w,i):e(t,w.end,b,null,w,i);a.items.push(S),c=S.range[2],bn(k)&&i(S.range,"BLOCK_IN_FLOW",wn)}else{let S=w.end,N=y?s(t,y,w,i):e(t,S,m,null,w,i);bn(y)&&i(N.range,"BLOCK_IN_FLOW",wn);let F=le(b||[],{flow:o,indicator:"map-value-ind",next:k,offset:N.range[2],onError:i,startOnNewline:!1});if(F.found){if(!r&&!w.found&&t.options.strict){if(b)for(let ne of b){if(ne===F.found)break;if(ne.type==="newline"){i(ne,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}w.start<F.found.offset-1024&&i(F.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else k&&("source"in k&&k.source&&k.source[0]===":"?i(k,"MISSING_CHAR",`Missing space after : in ${o}`):i(F.start,"MISSING_CHAR",`Missing , or : between ${o} items`));let et=k?s(t,k,F,i):F.found?e(t,F.end,b,null,F,i):null;et?bn(k)&&i(et.range,"BLOCK_IN_FLOW",wn):F.comment&&(N.comment?N.comment+=`
`+F.comment:N.comment=F.comment);let Ms=new L(N,et);if(t.options.keepSourceTokens&&(Ms.srcToken=p),r){let ne=a;Cs(t,ne.items,N)&&i(S,"DUPLICATE_KEY","Map keys must be unique"),ne.items.push(Ms)}else{let ne=new x(t.schema);ne.flow=!0,ne.items.push(Ms),a.items.push(ne)}c=et?et.range[2]:F.end}}let u=r?"}":"]",[f,...h]=n.end,d=c;if(f&&f.source===u)d=f.offset+f.source.length;else{let g=o[0].toUpperCase()+o.substring(1),p=l?`${g} must end with a ${u}`:`${g} in block collection must be sufficiently indented and end with a ${u}`;i(c,l?"MISSING_CHAR":"BAD_INDENT",p),f&&f.source.length!==1&&h.unshift(f)}if(h.length>0){let g=ce(h,d,t.options.strict,i);g.comment&&(a.comment?a.comment+=`
`+g.comment:a.comment=g.comment),a.range=[n.offset,d,g.offset]}else a.range=[n.offset,d,d];return a}function qi(s,e,t,n,i){let r;switch(t.type){case"block-map":{r=Di(s,e,t,i);break}case"block-seq":{r=ji(s,e,t,i);break}case"flow-collection":{r=Ri(s,e,t,i);break}}if(!n)return r;let o=e.directives.tagName(n.source,h=>i(n,"TAG_RESOLVE_FAILED",h));if(!o)return r;let a=r.constructor;if(o==="!"||o===a.tagName)return r.tag=a.tagName,r;let l=V(r)?"map":"seq",c=e.schema.tags.find(h=>h.collection===l&&h.tag===o);if(!c){let h=e.schema.knownTags[o];if(h&&h.collection===l)e.schema.tags.push(Object.assign({},h,{default:!1})),c=h;else return i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),r.tag=o,r}let u=c.resolve(r,h=>i(n,"TAG_RESOLVE_FAILED",h),e.options),f=C(u)?u:new v(u);return f.range=r.range,f.tag=o,c!=null&&c.format&&(f.format=c.format),f}function Ts(s,e,t){let n=s.offset,i=ro(s,e,t);if(!i)return{value:"",type:null,comment:"",range:[n,n,n]};let r=i.mode===">"?v.BLOCK_FOLDED:v.BLOCK_LITERAL,o=s.source?oo(s.source):[],a=o.length;for(let p=o.length-1;p>=0;--p){let m=o[p][1];if(m===""||m==="\r")a=p;else break}if(!s.source||a===0){let p=i.chomp==="+"?`
`.repeat(Math.max(0,o.length-1)):"",m=n+i.length;return s.source&&(m+=s.source.length),{value:p,type:r,comment:i.comment,range:[n,m,m]}}let l=s.indent+i.indent,c=s.offset+i.length,u=0;for(let p=0;p<a;++p){let[m,y]=o[p];if(y===""||y==="\r")i.indent===0&&m.length>l&&(l=m.length);else{if(m.length<l){let b="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";t(c+m.length,"MISSING_CHAR",b)}i.indent===0&&(l=m.length),u=p;break}c+=m.length+y.length+1}let f="",h="",d=!1;for(let p=0;p<u;++p)f+=o[p][0].slice(l)+`
`;for(let p=u;p<a;++p){let[m,y]=o[p];c+=m.length+y.length+1;let b=y[y.length-1]==="\r";if(b&&(y=y.slice(0,-1)),y&&m.length<l){let w=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;t(c-y.length-(b?2:1),"BAD_INDENT",w),m=""}r===v.BLOCK_LITERAL?(f+=h+m.slice(l)+y,h=`
`):m.length>l||y[0]===" "?(h===" "?h=`
`:!d&&h===`
`&&(h=`
`),f+=h+m.slice(l)+y,h=`
`,d=!0):y===""?h===`
`?f+=`
`:h=`
`:(f+=h+y,h=" ",d=!1)}switch(i.chomp){case"-":break;case"+":for(let p=a;p<o.length;++p)f+=`
`+o[p][0].slice(l);f[f.length-1]!==`
`&&(f+=`
`);break;default:f+=`
`}let g=n+i.length+s.source.length;return{value:f,type:r,comment:i.comment,range:[n,g,g]}}function ro({offset:s,props:e},t,n){if(e[0].type!=="block-scalar-header")return n(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=e[0],r=i[0],o=0,a="",l=-1;for(let h=1;h<i.length;++h){let d=i[h];if(!a&&(d==="-"||d==="+"))a=d;else{let g=Number(d);!o&&g?o=g:l===-1&&(l=s+h)}}l!==-1&&n(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,u="",f=i.length;for(let h=1;h<e.length;++h){let d=e[h];switch(d.type){case"space":c=!0;case"newline":f+=d.source.length;break;case"comment":t&&!c&&n(d,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=d.source.length,u=d.source.substring(1);break;case"error":n(d,"UNEXPECTED_TOKEN",d.message),f+=d.source.length;break;default:{let g=`Unexpected token in block scalar header: ${d.type}`;n(d,"UNEXPECTED_TOKEN",g);let p=d.source;p&&typeof p=="string"&&(f+=p.length)}}}return{mode:r,indent:o,chomp:a,comment:u,length:f}}function oo(s){let e=s.split(/\n( *)/),t=e[0],n=t.match(/^( *)/),r=[n&&n[1]?[n[1],t.slice(n[1].length)]:["",t]];for(let o=1;o<e.length;o+=2)r.push([e[o],e[o+1]]);return r}function As(s,e,t){let{offset:n,type:i,source:r,end:o}=s,a,l,c=(h,d,g)=>t(n+h,d,g);switch(i){case"scalar":a=v.PLAIN,l=ao(r,c);break;case"single-quoted-scalar":a=v.QUOTE_SINGLE,l=lo(r,c);break;case"double-quoted-scalar":a=v.QUOTE_DOUBLE,l=co(r,c);break;default:return t(s,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[n,n+r.length,n+r.length]}}let u=n+r.length,f=ce(o,u,e,t);return{value:l,type:a,comment:f.comment,range:[n,u,f.offset]}}function ao(s,e){let t="";switch(s[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${s[0]}`;break}case"@":case"`":{t=`reserved character ${s[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),Fi(s)}function lo(s,e){return(s[s.length-1]!=="'"||s.length===1)&&e(s.length,"MISSING_CHAR","Missing closing 'quote"),Fi(s.slice(1,-1)).replace(/''/g,"'")}function Fi(s){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
`,"sy"),t=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
`,"sy")}catch(l){e=/(.*?)[ \t]*\r?\n/sy,t=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=e.exec(s);if(!n)return s;let i=n[1],r=" ",o=e.lastIndex;for(t.lastIndex=o;n=t.exec(s);)n[1]===""?r===`
`?i+=r:r=`
`:(i+=r+n[1],r=" "),o=t.lastIndex;let a=/[ \t]*(.*)/sy;return a.lastIndex=o,n=a.exec(s),i+r+(n&&n[1]||"")}function co(s,e){let t="";for(let n=1;n<s.length-1;++n){let i=s[n];if(!(i==="\r"&&s[n+1]===`
`))if(i===`
`){let{fold:r,offset:o}=uo(s,n);t+=r,n=o}else if(i==="\\"){let r=s[++n],o=fo[r];if(o)t+=o;else if(r===`
`)for(r=s[n+1];r===" "||r===" ";)r=s[++n+1];else if(r==="\r"&&s[n+1]===`
`)for(r=s[++n+1];r===" "||r===" ";)r=s[++n+1];else if(r==="x"||r==="u"||r==="U"){let a={x:2,u:4,U:8}[r];t+=ho(s,n+1,a,e),n+=a}else{let a=s.substr(n-1,2);e(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),t+=a}}else if(i===" "||i===" "){let r=n,o=s[n+1];for(;o===" "||o===" ";)o=s[++n+1];o!==`
`&&!(o==="\r"&&s[n+2]===`
`)&&(t+=n>r?s.slice(r,n+1):i)}else t+=i}return(s[s.length-1]!=='"'||s.length===1)&&e(s.length,"MISSING_CHAR",'Missing closing "quote'),t}function uo(s,e){let t="",n=s[e+1];for(;(n===" "||n===" "||n===`
`||n==="\r")&&!(n==="\r"&&s[e+2]!==`
`);)n===`
`&&(t+=`
`),e+=1,n=s[e+1];return t||(t=" "),{fold:t,offset:e}}var fo={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function ho(s,e,t,n){let i=s.substr(e,t),o=i.length===t&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(o)){let a=s.substr(e-2,t+2);return n(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(o)}function vn(s,e,t,n){let{value:i,type:r,comment:o,range:a}=e.type==="block-scalar"?Ts(e,s.options.strict,n):As(e,s.options.strict,n),l=t?s.directives.tagName(t.source,f=>n(t,"TAG_RESOLVE_FAILED",f)):null,c=t&&l?po(s.schema,i,l,t,n):e.type==="scalar"?mo(s,i,e,n):s.schema[J],u;try{let f=c.resolve(i,h=>n(t||e,"TAG_RESOLVE_FAILED",h),s.options);u=E(f)?f:new v(f)}catch(f){let h=f instanceof Error?f.message:String(f);n(t||e,"TAG_RESOLVE_FAILED",h),u=new v(i)}return u.range=a,u.source=i,r&&(u.type=r),l&&(u.tag=l),c.format&&(u.format=c.format),o&&(u.comment=o),u}function po(s,e,t,n,i){var r;if(t==="!")return s[J];let o=[];for(let l of s.tags)if(!l.collection&&l.tag===t)if(l.default&&l.test)o.push(l);else return l;for(let l of o)if(!((r=l.test)===null||r===void 0)&&r.test(e))return l;let a=s.knownTags[t];return a&&!a.collection?(s.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),s[J])}function mo({directives:s,schema:e},t,n,i){let r=e.tags.find(o=>{var a;return o.default&&((a=o.test)===null||a===void 0?void 0:a.test(t))})||e[J];if(e.compat){let o=e.compat.find(a=>{var l;return a.default&&((l=a.test)===null||l===void 0?void 0:l.test(t))})||e[J];if(r.tag!==o.tag){let a=s.tagString(r.tag),l=s.tagString(o.tag),c=`Value may be parsed as either ${a} or ${l}`;i(n,"TAG_RESOLVE_FAILED",c,!0)}}return r}function Ki(s,e,t){if(e){t===null&&(t=e.length);for(let n=t-1;n>=0;--n){let i=e[n];switch(i.type){case"space":case"comment":case"newline":s-=i.source.length;continue}for(i=e[++n];(i==null?void 0:i.type)==="space";)s+=i.source.length,i=e[++n];break}}return s}var go={composeNode:Sn,composeEmptyNode:kn};function Sn(s,e,t,n){let{spaceBefore:i,comment:r,anchor:o,tag:a}=t,l;switch(e.type){case"alias":l=yo(s,e,n),(o||a)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=vn(s,e,a,n),o&&(l.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=qi(go,s,e,a,n),o&&(l.anchor=o.source.substring(1));break;default:throw console.log(e),new Error(`Unsupporten token type: ${e.type}`)}return o&&l.anchor===""&&n(o,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(l.spaceBefore=!0),r&&(e.type==="scalar"&&e.source===""?l.comment=r:l.commentBefore=r),s.options.keepSourceTokens&&(l.srcToken=e),l}function kn(s,e,t,n,{spaceBefore:i,comment:r,anchor:o,tag:a},l){let c={type:"scalar",offset:Ki(e,t,n),indent:-1,source:""},u=vn(s,c,a,l);return o&&(u.anchor=o.source.substring(1),u.anchor===""&&l(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(u.spaceBefore=!0),r&&(u.comment=r),u}function yo({options:s},{offset:e,source:t,end:n},i){let r=new me(t.substring(1));r.source===""&&i(e,"BAD_ALIAS","Alias cannot be an empty string");let o=e+t.length,a=ce(n,o,s.strict,i);return r.range=[e,o,a.offset],a.comment&&(r.comment=a.comment),r}function Vi(s,e,{offset:t,start:n,value:i,end:r},o){let a=Object.assign({directives:e},s),l=new ae(void 0,a),c={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=le(n,{indicator:"doc-start",next:i||(r==null?void 0:r[0]),offset:t,onError:o,startOnNewline:!0});u.found&&(l.directives.marker=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!u.hasNewline&&o(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?Sn(c,i,u,o):kn(c,u.end,n,null,u,o);let f=l.contents.range[2],h=ce(r,f,!1,o);return h.comment&&(l.comment=h.comment),l.range=[t,f,h.offset],l}function Ct(s){if(typeof s=="number")return[s,s+1];if(Array.isArray(s))return s.length===2?s:[s[0],s[1]];let{offset:e,source:t}=s;return[e,e+(typeof t=="string"?t.length:1)]}function Ui(s){var e;let t="",n=!1,i=!1;for(let r=0;r<s.length;++r){let o=s[r];switch(o[0]){case"#":t+=(t===""?"":i?`
`:`
`)+(o.substring(1)||" "),n=!0,i=!1;break;case"%":((e=s[r+1])===null||e===void 0?void 0:e[0])!=="#"&&(r+=1),n=!1;break;default:n||(i=!0),n=!1}}return{comment:t,afterEmptyLine:i}}var Tt=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,n,i,r)=>{let o=Ct(t);r?this.warnings.push(new Ot(o,n,i)):this.errors.push(new W(o,n,i))},this.directives=new _({version:e.version||gt.version}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:i}=Ui(this.prelude);if(n){let r=e.contents;if(t)e.comment=e.comment?`${e.comment}
${n}`:n;else if(i||e.directives.marker||!r)e.commentBefore=n;else if(T(r)&&!r.flow&&r.items.length>0){let o=r.items[0];O(o)&&(o=o.key);let a=o.commentBefore;o.commentBefore=a?`${n}
${a}`:n}else{let o=r.commentBefore;r.commentBefore=o?`${n}
${o}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Ui(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let i of e)yield*this.next(i);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,n,i)=>{let r=Ct(e);r[0]+=t,this.onError(r,"BAD_DIRECTIVE",n,i)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=Vi(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.marker&&this.onError(e,"MISSING_CHAR","Missing directives-end indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new W(Ct(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){let n="Unexpected doc-end without preceding document";this.errors.push(new W(Ct(e),"UNEXPECTED_TOKEN",n));break}let t=ce(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let n=this.doc.comment;this.doc.comment=n?`${n}
${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new W(Ct(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let n=Object.assign({directives:this.directives},this.options),i=new ae(void 0,n);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,t,t],this.decorate(i,!1),yield i}}};var _t={};_n(_t,{BOM:()=>At,DOCUMENT:()=>Lt,FLOW_END:()=>It,SCALAR:()=>Xe,createScalarToken:()=>Wi,isCollection:()=>vo,isScalar:()=>So,prettyToken:()=>ko,resolveAsScalar:()=>Ji,setScalarValue:()=>Gi,stringify:()=>Qi,tokenType:()=>Nn,visit:()=>Ae});function Ji(s,e=!0,t){if(s){let n=(i,r,o)=>{let a=typeof i=="number"?i:Array.isArray(i)?i[0]:i.offset;if(t)t(a,r,o);else throw new W([a,a+1],r,o)};switch(s.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return As(s,e,n);case"block-scalar":return Ts(s,e,n)}}return null}function Wi(s,e){var t;let{implicitKey:n=!1,indent:i,inFlow:r=!1,offset:o=-1,type:a="PLAIN"}=e,l=we({type:a,value:s},{implicitKey:n,indent:i>0?" ".repeat(i):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}}),c=(t=e.end)!==null&&t!==void 0?t:[{type:"newline",offset:-1,indent:i,source:`
`}];switch(l[0]){case"|":case">":{let u=l.indexOf(`
`),f=l.substring(0,u),h=l.substring(u+1)+`
`,d=[{type:"block-scalar-header",offset:o,indent:i,source:f}];return Yi(d,c)||d.push({type:"newline",offset:-1,indent:i,source:`
`}),{type:"block-scalar",offset:o,indent:i,props:d,source:h}}case'"':return{type:"double-quoted-scalar",offset:o,indent:i,source:l,end:c};case"'":return{type:"single-quoted-scalar",offset:o,indent:i,source:l,end:c};default:return{type:"scalar",offset:o,indent:i,source:l,end:c}}}function Gi(s,e,t={}){let{afterKey:n=!1,implicitKey:i=!1,inFlow:r=!1,type:o}=t,a="indent"in s?s.indent:null;if(n&&typeof a=="number"&&(a+=2),!o)switch(s.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let c=s.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let l=we({type:o,value:e},{implicitKey:i||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":wo(s,l);break;case'"':En(s,l,"double-quoted-scalar");break;case"'":En(s,l,"single-quoted-scalar");break;default:En(s,l,"scalar")}}function wo(s,e){let t=e.indexOf(`
`),n=e.substring(0,t),i=e.substring(t+1)+`
`;if(s.type==="block-scalar"){let r=s.props[0];if(r.type!=="block-scalar-header")throw new Error("Invalid block scalar header");r.source=n,s.source=i}else{let{offset:r}=s,o="indent"in s?s.indent:-1,a=[{type:"block-scalar-header",offset:r,indent:o,source:n}];Yi(a,"end"in s?s.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:`
`});for(let l of Object.keys(s))l!=="type"&&l!=="offset"&&delete s[l];Object.assign(s,{type:"block-scalar",indent:o,props:a,source:i})}}function Yi(s,e){if(e)for(let t of e)switch(t.type){case"space":case"comment":s.push(t);break;case"newline":return s.push(t),!0}return!1}function En(s,e,t){switch(s.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":s.type=t,s.source=e;break;case"block-scalar":{let n=s.props.slice(1),i=e.length;s.props[0].type==="block-scalar-header"&&(i-=s.props[0].source.length);for(let r of n)r.offset+=i;delete s.props,Object.assign(s,{type:t,source:e,end:n});break}case"block-map":case"block-seq":{let i={type:"newline",offset:s.offset+e.length,indent:s.indent,source:`
`};delete s.items,Object.assign(s,{type:t,source:e,end:[i]});break}default:{let n="indent"in s?s.indent:-1,i="end"in s&&Array.isArray(s.end)?s.end.filter(r=>r.type==="space"||r.type==="comment"||r.type==="newline"):[];for(let r of Object.keys(s))r!=="type"&&r!=="offset"&&delete s[r];Object.assign(s,{type:t,indent:n,source:e,end:i})}}}var Qi=s=>"type"in s?Is(s):Ls(s);function Is(s){switch(s.type){case"block-scalar":{let e="";for(let t of s.props)e+=Is(t);return e+s.source}case"block-map":case"block-seq":{let e="";for(let t of s.items)e+=Ls(t);return e}case"flow-collection":{let e=s.start.source;for(let t of s.items)e+=Ls(t);for(let t of s.end)e+=t.source;return e}case"document":{let e=Ls(s);if(s.end)for(let t of s.end)e+=t.source;return e}default:{let e=s.source;if("end"in s&&s.end)for(let t of s.end)e+=t.source;return e}}}function Ls({start:s,key:e,sep:t,value:n}){let i="";for(let r of s)i+=r.source;if(e&&(i+=Is(e)),t)for(let r of t)i+=r.source;return n&&(i+=Is(n)),i}var On=Symbol("break visit"),bo=Symbol("skip children"),Hi=Symbol("remove item");function Ae(s,e){"type"in s&&s.type==="document"&&(s={start:s.start,value:s.value}),zi(Object.freeze([]),s,e)}Ae.BREAK=On;Ae.SKIP=bo;Ae.REMOVE=Hi;Ae.itemAtPath=(s,e)=>{let t=s;for(let[n,i]of e){let r=t&&t[n];if(r&&"items"in r)t=r.items[i];else return}return t};Ae.parentCollection=(s,e)=>{let t=Ae.itemAtPath(s,e.slice(0,-1)),n=e[e.length-1][0],i=t&&t[n];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};function zi(s,e,t){let n=t(e,s);if(typeof n=="symbol")return n;for(let i of["key","value"]){let r=e[i];if(r&&"items"in r){for(let o=0;o<r.items.length;++o){let a=zi(Object.freeze(s.concat([[i,o]])),r.items[o],t);if(typeof a=="number")o=a-1;else{if(a===On)return On;a===Hi&&(r.items.splice(o,1),o-=1)}}typeof n=="function"&&i==="key"&&(n=n(e,s))}}return typeof n=="function"?n(e,s):n}var At="\uFEFF",Lt="",It="",Xe="",vo=s=>!!s&&"items"in s,So=s=>!!s&&(s.type==="scalar"||s.type==="single-quoted-scalar"||s.type==="double-quoted-scalar"||s.type==="block-scalar");function ko(s){switch(s){case At:return"<BOM>";case Lt:return"<DOC>";case It:return"<FLOW_END>";case Xe:return"<SCALAR>";default:return JSON.stringify(s)}}function Nn(s){switch(s){case At:return"byte-order-mark";case Lt:return"doc-mode";case It:return"flow-error-end";case Xe:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
`:case`\r
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(s[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function G(s){switch(s){case void 0:case" ":case`
`:case"\r":case" ":return!0;default:return!1}}var Xi="0123456789ABCDEFabcdef".split(""),Eo="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Zi=",[]{}".split(""),Oo=` ,[]{}
\r `.split(""),Cn=s=>!s||Oo.includes(s),xt=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let n=this.next||"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return!t||t==="#"||t===`
`?!0:t==="\r"?this.buffer[e+1]===`
`:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===" ";)t=this.buffer[++n+e];if(t==="\r"){let i=this.buffer[n+e+1];if(i===`
`||!i&&!this.atEnd)return e+n+1}return t===`
`||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t==="-"||t==="."){let n=this.buffer.substr(e,3);if((n==="---"||n==="...")&&G(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===At&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let t=e.length,n=e.indexOf("#");if(n!==-1){let r=e[n-1];(r===" "||r===" ")&&(t=n-1)}for(;;){let r=e[t-1];if(r===" "||r===" ")t-=1;else break}let i=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield Lt,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let t=this.peek(3);if(t==="---"&&G(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(t==="..."&&G(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!G(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&G(t)){let n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Cn),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),t=yield*this.pushSpaces(!0),e>0&&(this.indentValue=n=t);while(e+t>0);let i=this.getLine();if(i===null)return this.setNext("flow");if((n!==-1&&n<this.indentNext&&i[0]!=="#"||n===0&&(i.startsWith("---")||i.startsWith("..."))&&G(i[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield It,yield*this.parseLineStart();let r=0;for(;i[r]===",";)r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(r+=yield*this.pushIndicators(),i[r]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-r),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Cn),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let o=this.charAt(1);if(this.flowKey||G(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;t!==-1&&this.buffer[t+1]==="'";)t=this.buffer.indexOf("'",t+2);else for(;t!==-1;){let r=0;for(;this.buffer[t-1-r]==="\\";)r+=1;if(r%2===0)break;t=this.buffer.indexOf('"',t+1)}let n=this.buffer.substring(0,t),i=n.indexOf(`
`,this.pos);if(i!==-1){for(;i!==-1;){let r=this.continueScalar(i+1);if(r===-1)break;i=n.indexOf(`
`,r)}i!==-1&&(t=i-(n[i-1]==="\r"?2:1))}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t==="+")this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil(t=>G(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,n;e:for(let i=this.pos;n=this.buffer[i];++i)switch(n){case" ":t+=1;break;case`
`:e=i,t=0;break;case"\r":{let r=this.buffer[i+1];if(!r&&!this.atEnd)return this.setNext("block-scalar");if(r===`
`)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext+=this.blockScalarIndent;do{let i=this.continueScalar(e+1);if(i===-1)break;e=this.buffer.indexOf(`
`,i)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}if(!this.blockScalarKeep)do{let i=e-1,r=this.buffer[i];for(r==="\r"&&(r=this.buffer[--i]);r===" "||r===" ";)r=this.buffer[--i];if(r===`
`&&i>=this.pos)e=i;else break}while(!0);return yield Xe,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,i;for(;i=this.buffer[++n];)if(i===":"){let r=this.buffer[n+1];if(G(r)||e&&r===",")break;t=n}else if(G(i)){let r=this.buffer[n+1];if(i==="\r"&&(r===`
`?(n+=1,i=`
`,r=this.buffer[n+1]):t=n),r==="#"||e&&Zi.includes(r))break;if(i===`
`){let o=this.continueScalar(n+1);if(o===-1)break;n=Math.max(n,o-2)}}else{if(e&&Zi.includes(i))break;t=n}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield Xe,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Cn))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case":":case"?":case"-":if(G(this.charAt(1)))return this.flowLevel===0?this.indentNext=this.indentValue+1:this.flowKey&&(this.flowKey=!1),(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!G(t)&&t!==">";)t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Eo.includes(t))t=this.buffer[++e];else if(t==="%"&&Xi.includes(this.buffer[e+1])&&Xi.includes(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
`?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===" "||e&&n===" ");let i=t-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=t),i}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}};var Pt=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let i=this.lineStarts[t-1];return{line:t,col:e-i+1}}}};function ue(s,e){for(let t=0;t<s.length;++t)if(s[t].type===e)return!0;return!1}function Tn(s){for(let e=0;e<s.length;++e)switch(s[e].type){case"space":case"comment":case"newline":break;default:return!0}return!1}function tr(s){switch(s==null?void 0:s.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function _s(s){switch(s.type){case"document":return s.start;case"block-map":{let e=s.items[s.items.length-1];return e.sep||e.start}case"block-seq":return s.items[s.items.length-1].start;default:return[]}}function Mt(s){var e;if(s.length===0)return[];let t=s.length;e:for(;--t>=0;)switch(s[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((e=s[++t])===null||e===void 0?void 0:e.type)==="space";);return s.splice(t,s.length)}function er(s){if(s.start.type==="flow-seq-start")for(let e of s.items)e.sep&&!e.value&&!ue(e.start,"explicit-key-ind")&&!ue(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,tr(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}var $t=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new xt,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=Nn(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let n=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e||this.stack.pop();if(t)if(this.stack.length===0)yield t;else{let n=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in n?n.indent:0:t.type==="flow-collection"&&n.type==="document"&&(t.indent=0),t.type==="flow-collection"&&er(t),n.type){case"document":n.value=t;break;case"block-scalar":n.props.push(t);break;case"block-map":{let i=n.items[n.items.length-1];if(i.value){n.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=t;else{Object.assign(i,{key:t,sep:[]}),this.onKeyLine=!ue(i.start,"explicit-key-ind");return}break}case"block-seq":{let i=n.items[n.items.length-1];i.value?n.items.push({start:[],value:t}):i.value=t;break}case"flow-collection":{let i=n.items[n.items.length-1];!i||i.value?n.items.push({start:[],key:t,sep:[]}):i.sep?i.value=t:Object.assign(i,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){let i=t.items[t.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&!Tn(i.start)&&(t.indent===0||i.start.every(r=>r.type!=="comment"||r.indent<t.indent))&&(n.type==="document"?n.end=i.start:n.items.push({start:i.start}), Line truncated
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
`,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var t;let n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){let i="end"in n.value?n.value.end:void 0,r=Array.isArray(i)?i[i.length-1]:void 0;(r==null?void 0:r.type)==="comment"?i==null||i.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){let i=e.items[e.items.length-2],r=(t=i==null?void 0:i.value)===null||t===void 0?void 0:t.end;if(Array.isArray(r)){Array.prototype.push.apply(r,n.start),r.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let i=!this.onKeyLine&&this.indent===e.indent&&(n.sep||Tn(n.start));switch(this.type){case"anchor":case"tag":i||n.value?(e.items.push({start:[this.sourceToken]}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!ue(n.start,"explicit-key-ind")?n.start.push(this.sourceToken):i||n.value?e.items.push({start:[this.sourceToken]}):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(!n.sep)Object.assign(n,{key:null,sep:[this.sourceToken]});else if(n.value||i&&!ue(n.start,"explicit-key-ind"))e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ue(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else if(ue(n.start,"explicit-key-ind")&&tr(n.key)&&!ue(n.sep,"newline")){let r=Mt(n.start),o=n.key,a=n.sep;a.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:o,sep:a}]})}else n.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let r=this.flowScalar(this.type);i||n.value?(e.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(r):(Object.assign(n,{key:r,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){i&&r.type!=="block-seq"&&ue(n.start,"explicit-key-ind")&&e.items.push({start:[]}),this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var t;let n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){let i="end"in n.value?n.value.end:void 0,r=Array.isArray(i)?i[i.length-1]:void 0;(r==null?void 0:r.type)==="comment"?i==null||i.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){let i=e.items[e.items.length-2],r=(t=i==null?void 0:i.value)===null||t===void 0?void 0:t.end;if(Array.isArray(r)){Array.prototype.push.apply(r,n.start),r.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;n.value||ue(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>e.indent){let i=this.startBlockValue(e);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n&&n.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let i=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:i,sep:[]}):t.sep?this.stack.push(i):Object.assign(t,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){let i=_s(n),r=Mt(i);er(e);let o=e Line truncated
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
`,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=_s(e),n=Mt(t);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n}]}}case"map-value-ind":{this.onKeyLine=!0;let t=_s(e),n=Mt(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};function No(s){let e=s.prettyErrors!==!1;return{lineCounter:s.lineCounter||e&&new Pt||null,prettyErrors:e}}function An(s,e={}){let{lineCounter:t,prettyErrors:n}=No(e),i=new $t(t==null?void 0:t.addNewLine),r=new Tt(e),o=null;for(let a of r.compose(i.parse(s),!0,s.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new W(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&t&&(o.errors.forEach(yn(s,t)),o.warnings.forEach(yn(s,t))),o}var xs=class{constructor(e,t,n,i){this.app=e,this.filename=t,this.basename=t.split("/").pop(),this.tagPositions=n,this.hasFrontMatter=!!i}async renamed(e){let t=this.app.vault.getAbstractFileByPath(this.filename),n=await this.app.vault.read(t),i=n;for(let{position:{start:r,end:o},tag:a}of this.tagPositions){if(i.slice(r.offset,o.offset)!==a){let l=`File ${this.filename} has changed; skipping`;new Ln.Notice(l),console.error(l),console.debug(i.slice(r.offset,o.offset),a);return}i=e.inString(i,r.offset)}if(this.hasFrontMatter&&(i=this.replaceInFrontMatter(i,e)),i!==n)return await this.app.vault.modify(t,i),!0}replaceInFrontMatter(e,t){let[n,i]=e.split(/^---\r?$\n?/m,2);if(n.trim()!==""||!i.trim()||!i.endsWith(`
`))return e;let r=An(i,{keepSourceTokens:!0});if(r.errors.length){let u=`YAML issue with ${this.filename}: ${r.errors[0]}`;console.error(u),new Ln.Notice(u+"; skipping frontmatter");return}let o=!1,a=r.toJSON();function l(u,f,h=!1){_t.setScalarValue(u.srcToken,f,{afterKey:h}),o=!0,u.value=f}function c(u,f){let h=r.get(u,!0);if(!h)return;let d=a[u];if(!(!d||!d.length))if(typeof d=="string"){let g=d.split(f?/(^\s+|\s*,\s*|\s+$)/:/([\s,]+)/),p=t.inArray(g,!0,f).join("");d!=p&&l(h,p,!0)}else Array.isArray(d)&&t.inArray(d,!1,f).forEach((g,p)=>{d[p]!==g&&l(h.get(p,!0),g)})}for(let{key:{value:u}}of r.contents.items)/^tags?$/i.test(u)?c(u,!1):/^alias(es)?$/i.test(u)&&c(u,!0);return o?e.replace(i,_t.stringify(r.contents.srcToken)):e}};async function sr(s,e,t=e){let n=await Ao(e,t);if(n===!1)return;if(!n||n===e)return new Le.Notice("Unchanged or empty tag: No changes made.");let i=new A(e),r=new A(n),o=new Zt(i,r),a=o.willMergeTags(To(s).reverse());if(a&&await Lo(a,i,r))return;let c=await In(s,i);if(!c)return;let u=new ct(`Renaming to #${n}/*`,"Processing files..."),f=0;return await u.forEach(c,async h=>{u.message="Processing "+h.basename,await h.renamed(o)&&f++}),new Le.Notice(`Operation ${u.aborted?"cancelled":"complete"}: ${f} file(s) updated`)}function To(s){return Object.keys(s.metadataCache.getTags())}async function In(s,e){let t=[],n=new ct(`Searching for ${e}/*`,"Matching files...");if(await n.forEach(s.metadataCache.getCachedFiles(),i=>{let{frontmatter:r,tags:o}=s.metadataCache.getCache(i)||{};o=(o||[]).filter(c=>c.tag&&e.matches(c.tag)).reverse();let a=((0,Le.parseFrontMatterTags)(r)||[]).filter(e.matches),l=((0,Le.parseFrontMatterAliases)(r)||[]).filter(A.isTag).filter(e.matches);(o.length||a.length||l.length)&&t.push(new xs(s,i,o,a.length+l.length))}),!n.aborted)return t}async function Ao(s,e=s){return await new hi().setTitle(`Renaming #${s} (and any sub-tags)`).setContent(`Enter new name (must be a valid Obsidian tag name):
`).setPattern("[^\u2000-\u206F\u2E00-\u2E7F'!\"#$%&\\(\\)*+,.:;<=>?@^`\\{\\|\\}~\\[\\]\\\\\\s]+").onInvalidEntry(t=>new Le.Notice(`"${t}" is not a valid Obsidian tag name`)).setValue(e).prompt()}async function Lo([s,e],t,n){return!await new Xt().setTitle("WARNING: No Undo!").setContent(activeWindow.createEl("p",void 0,i=>{i.innerHTML=`Renaming <code>${t}</code> to <code>${n}</code> will merge ${s.canonical===t.canonical?"these tags":`multiple tags
into existing tags (such as <code>${s}</code>
merging with <code>${e}</code>)`}.<br><br>
This <b>cannot</b> be undone. Do you wish to proceed?`})).setup(i=>i.okButton.addClass("mod-warning")).confirm()}var nr="tag-wrangler:tag-pane";function ve(s,e,t,n,i){return s.on(e,t,n,i),()=>s.off(e,t,n,i)}var Ps=class extends I.Plugin{constructor(){super(...arguments);Se(this,"use",fi.plugin(this));Se(this,"pageAliases",new Map);Se(this,"tagPages",new Map)}tagPage(t){return Array.from(this.tagPages.get(A.canonical(t))||"")[0]}openTagPage(t,n,i){let r={eState:n?{rename:"all"}:{focus:!0},...n?{state:{mode:"source"}}:{}};return this.app.workspace.getLeaf(i).openFile(t,r)}async createTagPage(t,n){var a;let r={tag:new A(t).canonical,file:void 0};app.workspace.trigger("tag-page:will-create",r);let o=r.file&&await r.file;if(!o){let l=new A(t).name.split("/").join(" "),c=this.app.fileManager.getNewFileParent(((a=this.app.workspace.getActiveFile())==null?void 0:a.path)||""),u=this.app.vault.getAvailablePath(c.getParentPrefix()+l,"md");o=await this.app.vault.create(u,["---",`Aliases: [ ${JSON.stringify(A.toTag(t))} ]`,"---",""].join(`
`))}r.file=o,await this.openTagPage(o,!0,n),app.workspace.trigger("tag-page:did-create",r)}onload(){this.registerEvent(app.workspace.on("editor-menu",(r,o)=>{let a=o.getClickableTokenAt(o.getCursor());(a==null?void 0:a.type)==="tag"&&this.setupMenu(r,a.text)})),this.register(ve(document,"contextmenu",".tag-pane-tag",this.onMenu.bind(this),{capture:!0})),this.app.workspace.registerHoverLinkSource(nr,{display:"Tags View",defaultMod:!0}),this.addChild(new Ze(this,{hoverSource:nr,selector:".tag-pane-tag",container:".tag-container",toTag(r){var o;return(o=r.find(".tag-pane-tag-text, tag-pane-tag-text, .tag-pane-tag .tree-item-inner-text"))==null?void 0:o.textContent}})),this.addChild(new Ze(this,{hoverSource:"preview",selector:'a.tag[href^="#"]',container:".markdown-preview-view, .markdown-embed, .workspace-leaf-content",toTag(r){return r.getAttribute("href")}})),this.addChild(new Ze(this,{hoverSource:"preview",selector:'.metadata-property[data-property-key="tags"] .multi-select-pill',container:".metadata-properties",mergeMenu:!0,toTag(r){return r.textContent}})),this.addChild(new Ze(this,{hoverSource:"editor",selector:"span.cm-hashtag",container:".markdown-source-view",toTag(r){let o=r.textContent;if(!r.matches(".cm-formatting"))for(let a=r.previousElementSibling;a!=null&&a.matches("span.cm-hashtag:not(.cm-formatting)");a=a.previousElementSibling)o=a.textContent+o;for(let a=r.nextElementSibling;a!=null&&a.matches("span.cm-hashtag:not(.cm-formatting)");a=a.nextElementSibling)o+=a.textContent;return o}})),this.register(ve(document,"pointerdown",".tag-pane-tag",(r,o)=>{o.draggable="true"},{capture:!0})),this.register(ve(document,"dragstart",".tag-pane-tag",(r,o)=>{var c;let a=(c=o.find(".tag-pane-tag-text, tag-pane-tag-text, .tag-pane-tag .tree-item-inner-text"))==null?void 0:c.textContent;r.dataTransfer.setData("text/plain","#"+a),app.dragManager.onDragStart(r,{source:"tag-wrangler",type:"text",title:a,icon:"hashtag"}),window.addEventListener("dragend",l,!0),window.addEventListener("drop",l,!0);function l(){app.dragManager.draggable=null,window.removeEventListener("dragend",l,!0),window.removeEventListener("drop",l,!0)}},{capture:!1}));let t=(r,o,a=app.dragManager.draggable,l)=>{var f;if((a==null?void 0:a.source)!=="tag-wrangler"||r.defaultPrevented)return;let c=(f=o.find(".tag-pane-tag-text, tag-pane-tag-text, .tag-pane-tag .tree-item-inner-text"))==null?void 0:f.textContent,u=c+"/"+A.toName(a.title).split("/").pop();A.canonical(c)!==A.canonical(a.title)&&(r.dataTransfer.dropEffect="move",r.preventDefault(),l?this.rename(A.toName(a.title),u):(app.dragManager.updateHover(o,"is-being-dragged-over"),app.dragManager.setAction(`Rename to ${u}`)))};this.register(ve(document.body,"dragover",".tag-pane-tag.tree-item-self",t,{capture:!0})),this.register(ve(document.body,"dragenter",".tag-pane-tag.tree-item-self",t,{capture:!0})),this.registerDomEvent(window,"drop",r=>{var l;let o=(l=r.target)==null?void 0:l.matchParent(".tag-pane-tag.tree-item-self",r.currentTarget);if(!o)return;let a=app.dragManager.draggable;a&&!r.defaultPrevented&&t(r,o,a,!0)},{capture:!0});let n=this.app.metadataCache,i=this;this.register(lt(n,{getTags(r){return function(){let a=r.call(this),l=new Set(Object.keys(a).map(c=>c.toLowerCase()));for(let c of i.tagPages.keys())l.has(c)||(a[i.tagPages.get(c).tag]=0);return a}}})),this.app.workspace.onLayoutReady(()=>{n.getCachedFiles().forEach(r=>{var a,l;let o=(a=n.getCache(r))==null?void 0:a.frontmatter;o&&((l=(0,I.parseFrontMatterAliases)(o))!=null&&l.filter(A.isTag))&&this.updatePage(this.app.vault.getAbstractFileByPath(r),o)}),this.registerEvent(n.on("changed",(r,o,a)=>this.updatePage(r,a==null?void 0:a.frontmatter))),this.registerEvent(this.app.vault.on("delete",r=>this.updatePage(r))),app.workspace.getLeavesOfType("tag").forEach(r=>{var o,a;(a=(o=r==null?void 0:r.view)==null?void 0:o.requestUpdateTags)==null||a.call(o)})})}updatePage(t,n){var r;let i=((r=(0,I.parseFrontMatterAliases)(n))==null?void 0:r.filter(A.isTag))||[];if(this.pageAliases.has(t)){let o=new Set(i||[]);for(let a of this.pageAliases.get(t)){if(o.has(a))continue;let l=A.canonical(a),c=this.tagPages.get(l);c&&(c.delete(t),c.size||this.tagPages.delete(l))}i.length||this.pageAliases.delete(t)}if(i.length){this.pageAliases.set(t,i);for(let o of i){let a=A.canonical(o);if(this.tagPages.has(a))this.tagPages.get(a).add(t);else{let l=new Set([t]);l.tag=A.toTag(o),this.tagPages.set(a,l)}}}}onMenu(t,n){let i=ir(t),r=n.find(".tag-pane-tag-text, .tag-pane-tag .tree-item-inner-text").textContent,o=n.parentElement.parentElement.find(".collapse-icon");if(this.setupMenu(i,r,o),o){let u=function(f){var h;for(let d of(h=c.children)!=null?h:c.vChildren.children)d.setCollapsed(f)},a=r.split("/").slice(0,-1).join("/"),l=this.leafView(n.matchParent(".workspace-leaf")),c=a?l.tagDoms["#"+a.toLowerCase()]:l.root;i.addItem(be("tag-hierarchy","vertical-three-dots","Collapse tags at this level",()=>u(!0))).addItem(be("tag-hierarchy","expand-vertically","Expand Line truncated
/* nosourcemap */
+11
View File
@@ -0,0 +1,11 @@
{
"id": "tag-wrangler",
"name": "Tag Wrangler",
"author": "PJ Eby",
"authorUrl": "https://github.com/pjeby",
"version": "0.6.4",
"minAppVersion": "1.5.8",
"description": "Rename, merge, toggle, and search tags from the tags view",
"fundingUrl": "https://dirtsimple.org/tips/tag-wrangler",
"isDesktopOnly": false
}
+3
View File
@@ -0,0 +1,3 @@
{
"folder": "Tasks/_templates"
}
+7
View File
@@ -0,0 +1,7 @@
{
"name": "Material Gruvbox",
"version": "1.1.0",
"minAppVersion": "0.15.0",
"author": "AllJavi",
"authorUrl": "https://github.com/AllJavi"
}
+814
View File
@@ -0,0 +1,814 @@
:root {
/* DEFAULTS */
--dark0-hard-x: 29,32,33;
--dark0-hard: rgb(var(--dark0-hard-x));
--dark0-x: 40,40,40;
--dark0: rgb(var(--dark0-x));
--dark0-soft-x: 50,48,47;
--dark0-soft: rgb(var(--dark0-soft-x));
--dark1-x: 60,56,54;
--dark1: rgb(var(--dark1-x));
--dark2-x: 80,73,69;
--dark2: rgb(var(--dark2-x));
--dark3-x: 102,92,84;
--dark3: rgb(var(--dark3-x));
--dark4-x: 124,111,100;
--dark4: rgb(var(--dark4-x));
--gray-x: 146,131,116;
--gray: rgb(var(--gray-x));
--dark-text-x: 101,71,53;
--dark-text: rgb(var(--dark-text-x));
--dark-text-faint-x: 179,126,93;
--dark-text-faint: rgb(var(--dark-text-faint-x));
--dark-text-muted-x: 115,81,69;
--dark-text-muted: rgb(var(--dark-text-muted-x));
--light0-hard-x: 249,245,215;
--light0-hard: rgb(var(--light0-hard-x));
--light0-x: 251,241,199;
--light0: rgb(var(--light0-x));
--light0-soft-x: 242,229,188;
--light0-soft: rgb(var(--light0-soft-x));
--light1-x: 235,219,178;
--light1: rgb(var(--light1-x));
--light2-x: 213,196,161;
--light2: rgb(var(--light2-x));
--light3-x: 189,174,147;
--light3: rgb(var(--light3-x));
--light4-x: 168,153,132;
--light4: rgb(var(--light4-x));
--light-text-x: 212,190,152;
--light-text: rgb(var(--light-text-x));
--neutral-red-x: 234,105,98;
--neutral-red: rgb(var(--neutral-red-x));
--neutral-green-x: 169,182,101;
--neutral-green: rgb(var(--neutral-green-x));
--neutral-yellow-x: 231,138,78;
--neutral-yellow: rgb(var(--neutral-yellow-x));
--neutral-blue-x: 125,174,163;
--neutral-blue: rgb(var(--neutral-blue-x));
--neutral-purple-x: 211,134,155;
--neutral-purple: rgb(var(--neutral-purple-x));
--neutral-aqua-x: 137,180,130;
--neutral-aqua: rgb(var(--neutral-aqua-x));
--faded-red-x: 193,74,74;
--faded-red: rgb(var(--faded-red-x));
--faded-green-x: 108,120,46;
--faded-green: rgb(var(--faded-green-x));
--faded-yellow-x: 195,94,10;
--faded-yellow: rgb(var(--faded-yellow-x));
--faded-blue-x: 69,112,122;
--faded-blue: rgb(var(--faded-blue-x));
--faded-purple-x: 148,94,128;
--faded-purple: rgb(var(--faded-purple-x));
--faded-aqua-x: 76,122,93;
--faded-aqua: rgb(var(--faded-aqua-x));
/* @settings
name: Gruvbox Material Color Overrides
id: gruvbox-material-theme-override
settings:
- id: section-dark
title: Dark Theme
type: heading
level: 2
collapsed: true
- id: dark0-hard
title: Dark 0 Hard
type: variable-color
format: rgb
default: '#1d2021'
alt-format:
- id: dark0-hard-x
format: hex
- id: dark0
title: Dark 0
type: variable-color
format: rgb
default: '#282828'
alt-format:
- id: dark0-x
format: hex
- id: dark0-soft
title: Dark 0 Soft
type: variable-color
format: rgb
default: '#282828'
alt-format:
- id: dark0-soft-x
format: hex
- id: dark1
title: Dark 1
type: variable-color
format: rgb
default: '#3c3836'
alt-format:
- id: dark1-x
format: hex
- id: dark2
title: Dark 2
type: variable-color
format: rgb
default: '#504945'
alt-format:
- id: dark2-x
format: hex
- id: dark3
title: Dark 3
type: variable-color
format: rgb
default: '#665c54'
alt-format:
- id: dark3-x
format: hex
- id: dark4
title: Dark 4
type: variable-color
format: rgb
default: '#7c6f64'
alt-format:
- id: dark4-x
format: hex
- id: section-light
title: Light Theme
type: heading
level: 2
collapsed: true
- id: light0-hard
title: Light 0 Hard
type: variable-color
format: rgb
default: '#f9f5d7'
alt-format:
- id: light0-hard-x
format: hex
- id: light0
title: Light 0
type: variable-color
format: rgb
default: '#fbf1c7'
alt-format:
- id: light0-x
format: hex
- id: light0-soft
title: Light 0 Soft
type: variable-color
format: rgb
default: '#f2e5bc'
alt-format:
- id: light0-soft-x
format: hex
- id: light1
title: Light 1
type: variable-color
format: rgb
default: '#ebdbb2'
alt-format:
- id: light1-x
format: hex
- id: light2
title: Light 2
type: variable-color
format: rgb
default: '#d5c4a1'
alt-format:
- id: light2-x
format: hex
- id: light3
title: Light 3
type: variable-color
format: rgb
default: '#bdae93'
alt-format:
- id: light3-x
format: hex
- id: light4
title: Light 4
type: variable-color
format: rgb
default: '#a89984'
alt-format:
- id: light4-x
format: hex
- id: section-general
title: General Colors
type: heading
level: 2
collapsed: false
- id: gray
title: Gray
type: variable-color
format: rgb
default: '#928374'
alt-format:
- id: gray-x
format: hex
- id: section-general-text
title: Text Colors
type: heading
level: 3
collapsed: true
- id: dark-text
title: Dark Text
type: variable-color
format: rgb
default: '#654735'
alt-format:
- id: dark-text-x
format: hex
- id: dark-text-faint
title: Dark Text Faint
type: variable-color
format: rgb
default: '#b37e5d'
- id: dark-text-muted
title: Dark Text Muted
type: variable-color
format: rgb
default: '#73513c'
alt-format:
- id: dark-text-muted-x
format: hex
- id: light-text
title: Light Text
type: variable-color
format: rgb
default: '#d4be98'
alt-format:
- id: light-text-x
format: hex
- id: light-text-faint
title: Light Text Faint
type: variable-color
format: rgb
default: '#b37e5d'
alt-format:
- id: light-text-faint-x
format: hex
- id: light-text-muted
title: Light Text Muted
type: variable-color
format: rgb
default: '#73513c'
alt-format:
- id: light-text-muted-x
format: hex
- id: section-general-neutral
title: Neutral Colors
type: heading
level: 3
collapsed: true
- id: neutral-red
title: Red
type: variable-color
format: rgb
default: '#ea6962'
alt-format:
- id: neutral-red-x
format: hex
- id: neutral-green
title: Green
type: variable-color
format: rgb
default: '#a9b665'
alt-format:
- id: neutral-green-x
format: hex
- id: neutral-yellow
title: Yellow
type: variable-color
format: rgb
default: '#e78a4e'
alt-format:
- id: neutral-yellow-x
format: hex
- id: neutral-blue
title: Blue
type: variable-color
format: rgb
default: '#7daea3'
alt-format:
- id: neutral-blue-x
format: hex
- id: neutral-purple
title: Purple
type: variable-color
format: rgb
default: '#d3869b'
alt-format:
- id: neutral-purple-x
format: hex
- id: neutral-aqua
title: Aqua
type: variable-color
format: rgb
default: '#89b482'
alt-format:
- id: neutral-aqua-x
format: hex
- id: section-general-faded
title: Faded Colors
type: heading
level: 3
collapsed: true
- id: faded-red
title: Red
type: variable-color
format: rgb
default: '#c14a4a'
alt-format:
- id: faded-red-x
format: hex
- id: faded-green
title: Green
type: variable-color
format: rgb
default: '#6c782e'
alt-format:
- id: faded-green-x
format: hex
- id: faded-yellow
title: Yellow
type: variable-color
format: rgb
default: '#c35e0a'
alt-format:
- id: faded-yellow-x
format: hex
- id: faded-blue
title: Blue
type: variable-color
format: rgb
default: '#45707a'
alt-format:
- id: faded-blue-x
format: hex
- id: faded-purple
title: Purple
type: variable-color
format: rgb
default: '#945e80'
alt-format:
- id: faded-purple-x
format: hex
- id: faded-aqua
title: Aqua
type: variable-color
format: rgb
default: '#4c7a5d'
alt-format:
- id: faded-aqua-x
format: hex
*/
}
body {
--accent-h: 166; /* --neutral-blue #7daea3 */
--accent-s: 23%;
--accent-l: 58%;
--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(--neutral-red-x);
--color-red: var(--neutral-red);
--color-purple-rgb: var(--neutral-purple-x);
--color-purple: var(--neutral-purple);
--color-green-rgb: var(--neutral-green-x);
--color-green: var(--neutral-green);
--color-cyan-rgb: var(--neutral-blue-x);
--color-cyan: var(--neutral-blue);
--color-blue-rgb: var(--faded-blue-x);
--color-blue: var(--faded-blue);
--color-yellow-rgb: var(--neutral-yellow-x);
--color-yellow: var(--neutral-yellow);
--color-orange-rgb: var(--faded-yellow-x);
--color-orange: var(--faded-yellow);
--color-pink-rgb: var(--neutral-purple-x);
--color-pink: var(--neutral-purple);
--background-primary: var(--dark0);
--background-primary-alt: var(--dark0-soft);
--background-secondary: var(--dark0-hard);
--background-secondary-alt: var(--dark1);
--background-modifier-border: var(--dark1);
--background-accent: var(--dark0-soft);
--cursor-line-background: rgba(var(--dark1-x), 0.5);
--text-normal: var(--light-text);
--text-faint: var(--light1);
--text-muted: var(--light2);
--h1-color: var(--neutral-red);
--h2-color: var(--neutral-yellow);
--h3-color: var(--neutral-green);
--h4-color: var(--neutral-aqua);
--h5-color: var(--neutral-blue);
--h6-color: var(--neutral-purple);
--text-highlight-bg: var(--neutral-yellow);
--text-highlight-fg: var(--dark0-hard);
--text-accent: var(--neutral-yellow);
--text-accent-hover: var(--faded-yellow);
--tag-color: var(--neutral-aqua);
--tag-background: var(--dark2);
--tag-background-hover: var(--dark1);
--titlebar-text-color-focused: var(--neutral-red);
--inline-title-color: var(--neutral-yellow);
--bold-color: var(--neutral-yellow);
--italic-color: var(--neutral-yellow);
--checkbox-color: var(--light4);
--checkbox-color-hover: var(--light4);
--checkbox-border-color: var(--light4);
--checkbox-border-color-hover: var(--light4);
--checklist-done-color: rgba(var(--light2-x), 0.5);
--table-header-background: rgba(var(--dark0-x), 0.2);
--table-header-background-hover: var(--dark2);
--table-row-even-background: rgba(var(--dark2-x), 0.2);
--table-row-odd-background: rgba(var(--dark2-x), 0.4);
--table-row-background-hover: var(--dark2);
--text-selection: rgba(var(--neutral-red-x), 0.6);
--flashing-background: rgba(var(--neutral-red-x), 0.3);
--code-normal: var(--neutral-blue);
--code-background: var(--dark1);
--mermaid-note: var(--neutral-blue);
--mermaid-actor: var(--dark2);
--mermaid-loopline: var(--neutral-blue);
--icon-color-hover: var(--neutral-red);
--icon-color-focused: var(--neutral-blue);
--nav-item-color-hover: var(--neutral-red);
--nav-item-color-active: var(--neutral-aqua);
--nav-file-tag: rgba(var(--neutral-yellow-x), 0.9);
--graph-line: var(--dark2);
--graph-node: var(--light3);
--graph-node-tag: var(--neutral-red);
--graph-node-attachment: var(--neutral-green);
--calendar-hover: var(--neutral-red);
--calendar-background-hover: var(--dark1);
--calendar-week: var(--neutral-orange);
--calendar-today: var(--neutral-orange);
--dataview-key: var(--text-faint);
--dataview-key-background: rgba(var(--faded-red-x), 0.5);
--dataview-value: var(--text-faint);
--dataview-value-background: rgba(var(--neutral-green-x), 0.3);
--tab-text-color-focused-active: var(--neutral-yellow);
--tab-text-color-focused-active-current: var(--neutral-red);
}
.theme-light {
--color-red-rgb: var(--faded-red-x);
--color-red: var(--faded-red);
--color-purple-rgb: var(--faded-purple-x);
--color-purple: var(--faded-purple);
--color-green-rgb: var(--faded-green-x);
--color-green: var(--faded-green);
--color-cyan-rgb: var(--neutral-blue-x);
--color-cyan: var(--neutral-blue);
--color-blue-rgb: var(--faded-blue-x);
--color-blue: var(--faded-blue);
--color-yellow-rgb: var(--neutral-yellow-x);
--color-yellow: var(--neutral-yellow);
--color-orange-rgb: var(--faded-yellow-x);
--color-orange: var(--faded-yellow);
--color-pink-rgb: var(--faded-purple-x);
--color-pink: var(--faded-purple);
--background-primary: var(--light0-hard);
--background-primary-alt: var(--light0-hard);
--background-secondary: var(--light1);
--background-secondary-alt: var(--light1);
--background-modifier-border: var(--light2);
--background-accent: var(--light0-soft);
--cursor-line-background: rgba(var(--light1-x), 0.5);
--text-normal: var(--dark-text);
--text-faint: var(--dark-text-faint);
--text-muted: var(--dark-text-muted);
--h1-color: var(--faded-red);
--h2-color: var(--faded-yellow);
--h3-color: var(--faded-green);
--h4-color: var(--faded-aqua);
--h5-color: var(--faded-blue);
--h6-color: var(--faded-purple);
--text-highlight-bg: var(--faded-yellow);
--text-highlight-fg: var(--light0-hard);
--text-accent: var(--neutral-yellow);
--text-accent-hover: var(--faded-yellow);
--tag-color: var(--faded-aqua);
--tag-background: var(--light1);
--tag-background-hover: rgba(var(--light1-x), 0.6);
--titlebar-text-color-focused: var(--bright-red);
--inline-title-color: var(--neutral-yellow);
--bold-color: var(--faded-yellow);
--italic-color: var(--faded-yellow);
--checkbox-color: var(--light4);
--checkbox-color-hover: var(--light4);
--checkbox-border-color: var(--light4);
--checkbox-border-color-hover: var(--light4);
--checklist-done-color: rgba(var(--dark2-x), 0.4);
--table-header-background: rgba(var(--light3-x), 0.4);
--table-header-background-hover: var(--light2);
--table-row-even-background: rgba(var(--light1-x), 0.2);
--table-row-odd-background: rgba(var(--light1-x), 0.7);
--table-row-background-hover: var(--light2);
--text-selection: rgba(var(--neutral-red-x), 0.6);
--flashing-background: rgba(var(--neutral-red-x), 0.3);
--code-normal: var(--neutral-blue);
--code-background: var(--light1);
--mermaid-note: var(--neutral-blue);
--mermaid-actor: var(--light3);
--mermaid-loopline: var(--faded-blue);
--icon-color-hover: var(--neutral-red);
--icon-color-focused: var(--neutral-blue);
--nav-item-color-hover: var(--neutral-red);
--nav-item-color-active: var(--faded-blue);
--nav-file-tag: rgba(var(--faded-blue-x), 0.9);
--graph-line: var(--light3);
--graph-node: var(--gray);
--graph-node-tag: var(--faded-red);
--graph-node-attachment: var(--neutral-green);
--calendar-hover: var(--neutral-red);
--calendar-background-hover: var(--light1);
--calendar-week: var(--neutral-red);
--calendar-today: var(--neutral-red);
--dataview-key: var(--text-faint);
--dataview-key-background: rgba(var(--faded-red-x), 0.3);
--dataview-value: var(--text-faint);
--dataview-value-background: rgba(var(--neutral-green-x), 0.2);
--tab-text-color-focused-active: var(--neutral-yellow);
--tab-text-color-focused-active-current: var(--neutral-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) !important;
color: var(--text-highlight-fg) !important;
}
.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;
}
/* 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;
}
/* Keep list bullet padding the same between viewer and editor. */
.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 .actor {
fill: var(--mermaid-actor) !important;
}
.mermaid .loopLine {
stroke: var(--mermaid-loopline) !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(--bright-red);
}
.cm-line .cm-strong {
color: var(--bold-color) !important;
}
.cm-line .cm-em {
color: var(--italic-color) !important;
}
+7
View File
@@ -0,0 +1,7 @@
{
"name": "Obsidian gruvbox",
"version": "0.2.1",
"minAppVersion": "0.16.0",
"author": "insanum",
"authorUrl": "https://insanum.com"
}
+579
View File
@@ -0,0 +1,579 @@
:root
{
--dark0-hard_x: 29,32,33; /* #1d2021 */
--dark0-hard: rgb(var(--dark0-hard_x));
--dark0_x: 40,40,40; /* #282828 */
--dark0: rgb(var(--dark0_x));
--dark0-soft_x: 50,48,47; /* #32302f */
--dark0-soft: rgb(var(--dark0-soft_x));
--dark1_x: 60,56,54; /* #3c3836 */
--dark1: rgb(var(--dark1_x));
--dark2_x: 80,73,69; /* #504945 */
--dark2: rgb(var(--dark2_x));
--dark3_x: 102,92,84; /* #665c54 */
--dark3: rgb(var(--dark3_x));
--dark4_x: 124,111,100; /* #7c6f64 */
--dark4: rgb(var(--dark4_x));
--gray_x: 146,131,116; /* #928374 */
--gray: rgb(var(--gray_x));
--light0-hard_x: 249,245,215; /* #f9f5d7 */
--light0-hard: rgb(var(--light0-hard_x));
--light0_x: 251,241,199; /* #fbf1c7 */
--light0: rgb(var(--light0_x));
--light0-soft_x: 242,229,188; /* #f2e5bc */
--light0-soft: rgb(var(--light0-soft_x));
--light1_x: 235,219,178; /* #ebdbb2 */
--light1: rgb(var(--light1_x));
--light2_x: 213,196,161; /* #d5c4a1 */
--light2: rgb(var(--light2_x));
--light3_x: 189,174,147; /* #bdae93 */
--light3: rgb(var(--light3_x));
--light4_x: 168,153,132; /* #a89984 */
--light4: rgb(var(--light4_x));
--bright-red_x: 251,73,52; /* #fb4934 */
--bright-red: rgb(var(--bright-red_x));
--bright-green_x: 184,187,38; /* #b8bb26 */
--bright-green: rgb(var(--bright-green_x));
--bright-yellow_x: 250,189,47; /* #fabd2f */
--bright-yellow: rgb(var(--bright-yellow_x));
--bright-blue_x: 131,165,152; /* #83a598 */
--bright-blue: rgb(var(--bright-blue_x));
--bright-purple_x: 211,134,155; /* #d3869b */
--bright-purple: rgb(var(--bright-purple_x));
--bright-aqua_x: 142,192,124; /* #8ec07c */
--bright-aqua: rgb(var(--bright-aqua_x));
--bright-orange_x: 254,128,25; /* #fe8019 */
--bright-orange: rgb(var(--bright-orange_x));
--neutral-red_x: 204,36,29; /* #cc241d */
--neutral-red: rgb(var(--neutral-red_x));
--neutral-green_x: 152,151,26; /* #98971a */
--neutral-green: rgb(var(--neutral-green_x));
--neutral-yellow_x: 215,153,33; /* #d79921 */
--neutral-yellow: rgb(var(--neutral-yellow_x));
--neutral-blue_x: 69,133,136; /* #458588 */
--neutral-blue: rgb(var(--neutral-blue_x));
--neutral-purple_x: 177,98,134; /* #b16286 */
--neutral-purple: rgb(var(--neutral-purple_x));
--neutral-aqua_x: 104,157,106; /* #689d6a */
--neutral-aqua: rgb(var(--neutral-aqua_x));
--neutral-orange_x: 214,93,14; /* #d65d0e */
--neutral-orange: rgb(var(--neutral-orange_x));
--faded-red_x: 157,0,6; /* #9d0006 */
--faded-red: rgb(var(--faded-red_x));
--faded-green_x: 121,116,14; /* #79740e */
--faded-green: rgb(var(--faded-green_x));
--faded-yellow_x: 181,118,20; /* #b57614 */
--faded-yellow: rgb(var(--faded-yellow_x));
--faded-blue_x: 7,102,120; /* #076678 */
--faded-blue: rgb(var(--faded-blue_x));
--faded-purple_x: 143,63,113; /* #8f3f71 */
--faded-purple: rgb(var(--faded-purple_x));
--faded-aqua_x: 66,123,88; /* #427b58 */
--faded-aqua: rgb(var(--faded-aqua_x));
--faded-orange_x: 175,58,3; /* #af3a03 */
--faded-orange: rgb(var(--faded-orange_x));
}
body
{
--accent-h: 12; /* --faded-red #9d0006 */
--accent-s: 107%;
--accent-l: 32%;
--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(--neutral-red_x);
--color-red: var(--neutral-red);
--color-purple-rgb: var(--neutral-purple_x);
--color-purple: var(--neutral-purple);
--color-green-rgb: var(--neutral-green_x);
--color-green: var(--neutral-green);
--color-cyan-rgb: var(--neutral-blue_x);
--color-cyan: var(--neutral-blue);
--color-blue-rgb: var(--faded-blue_x);
--color-blue: var(--faded-blue);
--color-yellow-rgb: var(--neutral-yellow_x);
--color-yellow: var(--neutral-yellow);
--color-orange-rgb: var(--neutral-orange_x);
--color-orange: var(--neutral-orange);
--color-pink-rgb: var(--bright-purple_x);
--color-pink: var(--bright-purple);
--background-primary: var(--dark0);
--background-primary-alt: var(--dark0);
--background-secondary: var(--dark0-hard);
--background-secondary-alt: var(--dark1);
--background-modifier-border: var(--dark1);
--cursor-line-background: rgba(var(--dark1_x), 0.5);
--text-normal: var(--light0);
--text-faint: var(--light1);
--text-muted: var(--light2);
--link-url: var(--neutral-green);
--h1-color: var(--neutral-red);
--h2-color: var(--neutral-yellow);
--h3-color: var(--neutral-green);
--h4-color: var(--neutral-aqua);
--h5-color: var(--neutral-blue);
--h6-color: var(--neutral-purple);
--text-highlight-bg: var(--neutral-yellow);
--text-highlight-fg: var(--dark0-hard);
--text-accent: var(--neutral-orange);
--text-accent-hover: var(--bright-aqua);
--tag-color: var(--bright-aqua);
--tag-background: var(--dark2);
--tag-background-hover: var(--dark1);
--titlebar-text-color-focused: var(--bright-red);
--inline-title-color: var(--bright-yellow);
--bold-color: var(--neutral-yellow);
--italic-color: var(--neutral-yellow);
--checkbox-color: var(--light4);
--checkbox-color-hover: var(--light4);
--checkbox-border-color: var(--light4);
--checkbox-border-color-hover: var(--light4);
--checklist-done-color: rgba(var(--light2_x), 0.5);
--table-header-background: rgba(var(--dark0_x), 0.2);
--table-header-background-hover: var(--dark2);
--table-row-even-background: rgba(var(--dark2_x), 0.2);
--table-row-odd-background: rgba(var(--dark2_x), 0.4);
--table-row-background-hover: var(--dark2);
--text-selection: rgba(var(--neutral-red_x), 0.6);
--flashing-background: rgba(var(--neutral-red_x), 0.3);
--code-normal: var(--bright-blue);
--code-background: var(--dark1);
--mermaid-note: var(--neutral-blue);
--mermaid-actor: var(--dark2);
--mermaid-loopline: var(--neutral-blue);
--mermaid-exclude: var(--dark4);
--mermaid-seqnum: var(--dark0);
--icon-color-hover: var(--bright-red);
--icon-color-focused: var(--bright-blue);
--nav-item-color-hover: var(--bright-red);
--nav-item-color-active: var(--bright-aqua);
--nav-file-tag: rgba(var(--neutral-yellow_x), 0.9);
--graph-line: var(--dark2);
--graph-node: var(--light3);
--graph-node-tag: var(--neutral-red);
--graph-node-attachment: var(--neutral-green);
--calendar-hover: var(--bright-red);
--calendar-background-hover: var(--dark1);
--calendar-week: var(--neutral-orange);
--calendar-today: var(--neutral-orange);
--dataview-key: var(--text-faint);
--dataview-key-background: rgba(var(--faded-red_x), 0.5);
--dataview-value: var(--text-faint);
--dataview-value-background: rgba(var(--neutral-green_x), 0.3);
--tab-text-color-focused-active: var(--neutral-yellow);
--tab-text-color-focused-active-current: var(--bright-red);
}
.theme-light
{
--color-red-rgb: var(--neutral-red_x);
--color-red: var(--neutral-red);
--color-purple-rgb: var(--neutral-purple_x);
--color-purple: var(--neutral-purple);
--color-green-rgb: var(--neutral-green_x);
--color-green: var(--neutral-green);
--color-cyan-rgb: var(--neutral-blue_x);
--color-cyan: var(--neutral-blue);
--color-blue-rgb: var(--faded-blue_x);
--color-blue: var(--faded-blue);
--color-yellow-rgb: var(--neutral-yellow_x);
--color-yellow: var(--neutral-yellow);
--color-orange-rgb: var(--neutral-orange_x);
--color-orange: var(--neutral-orange);
--color-pink-rgb: var(--bright-purple_x);
--color-pink: var(--bright-purple);
--background-primary: var(--light0-hard);
--background-primary-alt: var(--light0-hard);
--background-secondary: var(--light1);
--background-secondary-alt: var(--light1);
--background-modifier-border: var(--light2);
--cursor-line-background: rgba(var(--light1_x), 0.5);
--text-normal: var(--dark0);
--text-faint: var(--dark3);
--text-muted: var(--dark2);
--link-url: var(--neutral-green);
--h1-color: var(--neutral-red);
--h2-color: var(--neutral-yellow);
--h3-color: var(--neutral-green);
--h4-color: var(--neutral-aqua);
--h5-color: var(--neutral-blue);
--h6-color: var(--neutral-purple);
--text-highlight-bg: var(--bright-yellow);
--text-highlight-fg: var(--dark0);
--text-accent: var(--neutral-orange);
--text-accent-hover: var(--bright-aqua);
--tag-color: var(--neutral-aqua);
--tag-background: var(--light1);
--tag-background-hover: rgba(var(--light1_x), 0.6);
--titlebar-text-color-focused: var(--bright-red);
--inline-title-color: var(--bright-yellow);
--bold-color: var(--neutral-yellow);
--italic-color: var(--neutral-yellow);
--checkbox-color: var(--light4);
--checkbox-color-hover: var(--light4);
--checkbox-border-color: var(--light4);
--checkbox-border-color-hover: var(--light4);
--checklist-done-color: rgba(var(--dark2_x), 0.4);
--table-header-background: rgba(var(--light3_x), 0.4);
--table-header-background-hover: var(--light2);
--table-row-even-background: rgba(var(--light1_x), 0.2);
--table-row-odd-background: rgba(var(--light1_x), 0.7);
--table-row-background-hover: var(--light2);
--text-selection: rgba(var(--neutral-red_x), 0.6);
--flashing-background: rgba(var(--neutral-red_x), 0.3);
--code-normal: var(--bright-blue);
--code-background: var(--light1);
--mermaid-note: var(--bright-blue);
--mermaid-actor: var(--light3);
--mermaid-loopline: var(--neutral-blue);
--mermaid-exclude: var(--light2);
--mermaid-seqnum: var(--light0);
--icon-color-hover: var(--bright-red);
--icon-color-focused: var(--bright-blue);
--nav-item-color-hover: var(--bright-red);
--nav-item-color-active: var(--neutral-blue);
--nav-file-tag: rgba(var(--neutral-blue_x), 0.9);
--graph-line: var(--light1);
--graph-node: var(--gray);
--graph-node-tag: var(--neutral-red);
--graph-node-attachment: var(--bright-green);
--calendar-hover: var(--bright-red);
--calendar-background-hover: var(--light1);
--calendar-week: var(--bright-red);
--calendar-today: var(--bright-red);
--dataview-key: var(--text-faint);
--dataview-key-background: rgba(var(--faded-red_x), 0.3);
--dataview-value: var(--text-faint);
--dataview-value-background: rgba(var(--neutral-green_x), 0.2);
--tab-text-color-focused-active: var(--neutral-yellow);
--tab-text-color-focused-active-current: var(--bright-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-color) !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-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 .actor
{
fill: var(--mermaid-actor) !important;
}
.mermaid .loopLine
{
stroke: var(--mermaid-loopline) !important;
}
.mermaid .loopText>tspan,
.mermaid .entityLabel
{
fill: var(--neutral-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(--bright-red);
}
body {
--callout-border-width: 1px;
--callout-border-opacity: 0.4;
/* Order as defined in app.css */
--callout-default: var(--neutral-blue_x);
--callout-note: var(--neutral-blue_x);
--callout-summary: var(--neutral-aqua_x);
--callout-info: var(--neutral-blue_x);
--callout-todo: var(--neutral-blue_x);
--callout-important: var(--neutral-aqua_x);
--callout-tip: var(--neutral-aqua_x);
--callout-success: var(--neutral-green_x);
--callout-question: var(--neutral-yellow_x);
--callout-warning: var(--neutral-orange_x);
--callout-fail: var(--neutral-red_x);
--callout-error: var(--neutral-red_x);
--callout-bug: var(--neutral-red_x);
--callout-example: var(--neutral-purple_x);
--callout-quote: var(--gray_x);
}
.callout {
background-color: rgba(var(--callout-color), 0.2);
}
+7
View File
@@ -0,0 +1,7 @@
{
"name": "Things",
"version": "2.2.3",
"minAppVersion": "1.0.0",
"author": "@colineckert",
"authorUrl": "https://twitter.com/colineckert"
}
+1933
View File
File diff suppressed because it is too large. Load diff
+32
View File
@@ -0,0 +1,32 @@
{
"types": {
"aliases": "aliases",
"cssclasses": "multitext",
"tags": "tags",
"TQ_explain": "checkbox",
"TQ_extra_instructions": "text",
"TQ_short_mode": "checkbox",
"TQ_show_backlink": "checkbox",
"TQ_show_cancelled_date": "checkbox",
"TQ_show_created_date": "checkbox",
"TQ_show_depends_on": "checkbox",
"TQ_show_done_date": "checkbox",
"TQ_show_due_date": "checkbox",
"TQ_show_edit_button": "checkbox",
"TQ_show_id": "checkbox",
"TQ_show_on_completion": "checkbox",
"TQ_show_postpone_button": "checkbox",
"TQ_show_priority": "checkbox",
"TQ_show_recurrence_rule": "checkbox",
"TQ_show_scheduled_date": "checkbox",
"TQ_show_start_date": "checkbox",
"TQ_show_tags": "checkbox",
"TQ_show_task_count": "checkbox",
"TQ_show_toolbar": "checkbox",
"TQ_show_tree": "checkbox",
"TQ_show_urgency": "checkbox",
"deadline": "date",
"datum": "date",
"date": "date"
}
}
+220
View File
@@ -0,0 +1,220 @@
{
"main": {
"id": "e4fa93dadda57d2a",
"type": "split",
"children": [
{
"id": "b48422a3a081fdf6",
"type": "tabs",
"children": [
{
"id": "d02e3470886ead5b",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Notes/Daily/2026-05-06 Wed.md",
"mode": "source",
"source": false
},
"icon": "lucide-file",
"title": "2026-05-06 Wed"
}
},
{
"id": "2ee2b607ba67f29c",
"type": "leaf",
"state": {
"type": "planner-weekly",
"state": {},
"icon": "table-2",
"title": "May, 4–May, 8"
}
}
],
"currentTab": 1
}
],
"direction": "vertical"
},
"left": {
"id": "61753a22556ba625",
"type": "mobile-drawer",
"children": [
{
"id": "809223d5c2c18511",
"type": "leaf",
"state": {
"type": "file-explorer",
"state": {
"sortOrder": "alphabetical",
"autoReveal": false
},
"icon": "lucide-folder-closed",
"title": "Files"
}
},
{
"id": "0ea2e8c5d2f1ef77",
"type": "leaf",
"state": {
"type": "search",
"state": {
"query": "",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical"
},
"icon": "lucide-search",
"title": "Search"
}
},
{
"id": "93368e78916a36b3",
"type": "leaf",
"state": {
"type": "tag",
"state": {
"sortOrder": "frequency",
"useHierarchy": true,
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-tags",
"title": "Tags"
}
},
{
"id": "e9ee53b7d0b6a2cb",
"type": "leaf",
"state": {
"type": "all-properties",
"state": {
"sortOrder": "frequency",
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-archive",
"title": "All properties"
}
},
{
"id": "6c3868f2cf56b511",
"type": "leaf",
"state": {
"type": "bookmarks",
"state": {},
"icon": "lucide-bookmark",
"title": "Bookmarks"
}
}
],
"currentTab": 0
},
"right": {
"id": "eac894ce96138de9",
"type": "mobile-drawer",
"children": [
{
"id": "8d18611c42d929aa",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"file": "Tasks/_utilities/Deadlines.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
"showSearch": false,
"searchQuery": "",
"backlinkCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-coming-in",
"title": "Backlinks"
}
},
{
"id": "08c43be6994cf653",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"file": "Tasks/_utilities/Deadlines.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-going-out",
"title": "Outgoing links"
}
},
{
"id": "b128fcae85c97458",
"type": "leaf",
"state": {
"type": "outline",
"state": {
"file": "Tasks/_utilities/Deadlines.md",
"followCursor": false,
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-list",
"title": "Outline"
}
},
{
"id": "31b748a123a577e4",
"type": "leaf",
"state": {
"type": "calendar",
"state": {},
"icon": "calendar-with-checkmark",
"title": "Calendar"
}
},
{
"id": "35892e1ece536bfb",
"type": "leaf",
"state": {
"type": "planner-timeline",
"state": {},
"icon": "calendar-with-checkmark",
"title": "Timeline"
}
}
],
"currentTab": 0
},
"left-ribbon": {
"hiddenItems": {
"switcher:Open quick switcher": false,
"graph:Open graph view": false,
"canvas:Create new canvas": false,
"daily-notes:Open today's daily note": false,
"templates:Insert template": false,
"command-palette:Open command palette": false,
"zk-prefixer:Create new unique note": false,
"bases:Create new base": false,
"obsidian-day-planner:Open Timeline": false,
"obsidian-day-planner:Open Multi-Day View": false,
"omnisearch:Omnisearch": false
}
},
"active": "2ee2b607ba67f29c",
"lastOpenFiles": [
"Notes/Daily/2026-05-06 Wed.md",
"Notes/Daily/2026-05-07 Thu.md",
"Tasks/_utilities/Deadlines.md",
"Tasks/Notes/Daily/2026/05/2026-05-07 Thu.md",
"Notes/Weekly/2026-19.md",
"Notes/Daily/2026-05-05 Tue.md",
"Notes/Daily/2026",
"Notes/Weekly",
"Notes/Daily",
"Notes",
"Tasks/Notes/Daily/2026/05/2026-05-08 Fri.md"
]
}
+312
View File
@@ -0,0 +1,312 @@
{
"main": {
"id": "84462b6b9cd3ea8b",
"type": "split",
"children": [
{
"id": "6277d6140f31fca6",
"type": "tabs",
"children": [
{
"id": "18d5456e67029b84",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Tasks/Notes/Weekly/2026/05/2026-19.md",
"mode": "source",
"source": false
},
"icon": "lucide-file",
"title": "2026-19"
}
},
{
"id": "3a65b426d070fbf4",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Tasks/_utilities/Deadlines.md",
"mode": "source",
"source": false
},
"icon": "lucide-file",
"title": "Deadlines"
}
},
{
"id": "92c1d28dd2deffbc",
"type": "leaf",
"state": {
"type": "planner-weekly",
"state": {},
"icon": "lucide-ghost",
"title": "planner-weekly"
}
}
],
"currentTab": 1
}
],
"direction": "vertical"
},
"left": {
"id": "9796fba830c3ebae",
"type": "split",
"children": [
{
"id": "3ca7da6e15f17768",
"type": "tabs",
"dimension": 65.77777777777779,
"children": [
{
"id": "0f37b3758387bd06",
"type": "leaf",
"state": {
"type": "file-explorer",
"state": {
"sortOrder": "alphabetical",
"autoReveal": false
},
"icon": "lucide-folder-closed",
"title": "Files"
}
},
{
"id": "638964cf3aefd4bf",
"type": "leaf",
"state": {
"type": "search",
"state": {
"query": "",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical"
},
"icon": "lucide-search",
"title": "Search"
}
}
]
},
{
"id": "862acbceb871000a",
"type": "tabs",
"dimension": 34.22222222222222,
"children": [
{
"id": "b86e970d153440a0",
"type": "leaf",
"state": {
"type": "bookmarks",
"state": {},
"icon": "lucide-bookmark",
"title": "Bookmarks"
}
}
]
}
],
"direction": "horizontal",
"width": 239.50852584838867
},
"right": {
"id": "95e70b4ef6391547",
"type": "split",
"children": [
{
"id": "f057c3bdc0010276",
"type": "tabs",
"dimension": 61.99575371549893,
"children": [
{
"id": "2ff4ff1909d173de",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"file": "_utilities/Deadlines.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
"showSearch": false,
"searchQuery": "",
"backlinkCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-coming-in",
"title": "Backlinks for Deadlines"
}
},
{
"id": "8801f8914ed8cc2e",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"file": "Welcome.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-going-out",
"title": "Outgoing links from Welcome"
}
},
{
"id": "ed24da26355cbc8f",
"type": "leaf",
"state": {
"type": "tag",
"state": {
"sortOrder": "frequency",
"useHierarchy": true,
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-tags",
"title": "Tags"
}
},
{
"id": "b510a3ea3902962d",
"type": "leaf",
"state": {
"type": "all-properties",
"state": {
"sortOrder": "frequency",
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-archive",
"title": "All properties"
}
},
{
"id": "e51df6d95245cfc5",
"type": "leaf",
"state": {
"type": "outline",
"state": {
"file": "Tasks/2026/05/2026-05-06 Wed.md",
"followCursor": false,
"showSearch": false,
"searchQuery": ""
},
"icon": "lucide-list",
"title": "Outline of 2026-05-06 Wed"
}
},
{
"id": "99079565bfb74530",
"type": "leaf",
"state": {
"type": "planner-timeline",
"state": {},
"icon": "lucide-ghost",
"title": "planner-timeline"
}
},
{
"id": "2f5a52b5c16fe3e8",
"type": "leaf",
"state": {
"type": "planner-timeline",
"state": {},
"icon": "lucide-ghost",
"title": "planner-timeline"
}
},
{
"id": "0b9ca99a53174582",
"type": "leaf",
"state": {
"type": "planner-timeline",
"state": {},
"icon": "calendar-with-checkmark",
"title": "Timeline"
}
}
],
"currentTab": 6
},
{
"id": "0a23d5e86baba90a",
"type": "tabs",
"dimension": 38.004246284501065,
"children": [
{
"id": "1f798b916a42d866",
"type": "leaf",
"state": {
"type": "calendar",
"state": {},
"icon": "lucide-ghost",
"title": "calendar"
}
}
]
}
],
"direction": "horizontal",
"width": 300,
"collapsed": true
},
"left-ribbon": {
"hiddenItems": {
"switcher:Open quick switcher": false,
"graph:Open graph view": false,
"canvas:Create new canvas": false,
"daily-notes:Open today's daily note": false,
"templates:Insert template": false,
"command-palette:Open command palette": false,
"bases:Create new base": false,
"zk-prefixer:Create new unique note": false,
"obsidian-day-planner:Open Timeline": false,
"obsidian-day-planner:Open Multi-Day View": false
}
},
"active": "3a65b426d070fbf4",
"lastOpenFiles": [
"Tasks/Notes/Weekly/2026/05/2026-19.md",
"Tasks/Notes/Daily/2026/05/2026-05-07 Thu.md",
"Tasks/Notes/Daily/2026/05/2026-05-05 Tue.md",
"Tasks/Notes/Daily/2026/05/2026-05-08 Fri.md",
"Tasks/_templates/Daily Notes.md",
"Tasks/Notes/Daily/2026/05/2026-05-06 Wed.md",
"Tasks/_utilities/Deadlines.md",
"Tasks/_utilities/Anytime.md",
"Tasks/_templates/Unique.md",
"Tasks/Notes/Daily",
"Tasks/Notes",
"Tasks/Untitled.md",
"Tasks/Notes/Weekly/2026/05",
"Tasks/Notes/Weekly/2026",
"Tasks/Weekly/2026/19/2026-19.md",
"Tasks/Weekly/2026/19",
"Tasks/1900245/4/20262026/2026/19/2026-19.md",
"Tasks/1900245/4/20262026/2026/19",
"Tasks/1900245/4/20262026/2026",
"Tasks/1900245/4/20262026",
"Tasks/1900245/4",
"Tasks/1900245",
"Tasks/2026-05-19.md",
"2026-W19.md",
"Tasks/_templates/Meetings.md",
"Tasks/_templates/Project.md",
"Tasks/2026/05/2026-05-05 Tue 1.md",
"2026-05-07.md",
"Tasks/2026/05/2026-05-08 Fri.md",
"Tasks/_utilities/Today.md",
"Tasks/_utilities/Upcomming.md",
"Tasks/_utilities/Inbox.md",
"Tasks/_utilities/Someday.md",
"2026-05-08.md",
"Tasks/Recurring.md",
"Untitled.md",
"kapano/Attachments/out-of-control.jpg",
"Pasted image 20260504234500.png"
]
}
+5
View File
@@ -0,0 +1,5 @@
{
"format": "YYYY-MM-DD",
"folder": "/",
"template": "Tasks/_templates/unique"
}
@@ -0,0 +1,24 @@
---
id: Todos
aliases: []
tags: []
---
## Prio 1
- [x] Kantons gemeinde schreiben bezgl. beglichener ratenzahlung
- [x] klarna bezahlen
- [x] SWICA schreiben wegen Abo
- [!] Tobi anrufen
- [>] Emails beantworten wegen Ratenzahlung
- [ ] Fitness kündigen
- [x] Digitec schreiben wegen Onyx
- [!] steuern unterzeichnen und nach sirnach schicken
- [~] ticket bestellen fat freddies drop?
- [ ]
## Prio 2
- [ ] Test
- [ ]
112
@@ -0,0 +1,24 @@
---
id: Todos
aliases: []
tags: []
---
## Prio 1
- [x] Kantons gemeinde schreiben bezgl. beglichener ratenzahlung
- [x] klarna bezahlen
- [x] SWICA schreiben wegen Abo
- [!] Tobi anrufen
- [>] Emails beantworten wegen Ratenzahlung
- [ ] Fitness kündigen
- [x] Digitec schreiben wegen Onyx
- [!] steuern unterzeichnen und nach sirnach schicken
- [~] ticket bestellen fat freddies drop?
- [ ]
## Prio 2
- [ ] Test
- [ ]
112
+16
View File
@@ -0,0 +1,16 @@
---
datum: 2026-05-05
tags:
- daily
---
## Completed
```tasks
done on 2026-05-06
```
## Tasks
- [ ] another history task ⏳ 2026-05-06
## Notes
## Dreams
@@ -0,0 +1,25 @@
---
datum: 2026-05-05
tags:
- notes
---
## Daily Tasks
- [ ] 12:00 - 12:30 hiby r5 an audioessence schicken ⏳ 2026-05-07
- [ ] 12:30 - 13:00 k55 addressänderung per mail ⏳ 2026-05-07
- [ ] 12:30 - 13:00 k55 einzahlen ⏳ 2026-05-07
- [ ] monzoon einzahlen (dauerauftrag einrichten) ⏳ 2026-05-07
## Weekly Tasks
```tasks
not done
happens this week
(scheduled before today) OR (scheduled after today)
```
## Completed
```tasks
done on 2026-05-07
```
## Notes
- Verlängerung der [[Steuerfrist]] wurde abgelehnt, weil ich noch keine konkrete Ratenzahlung abgemacht habe
## Dreams
- Deadly peas. The consumption of peas were deadly for the youger generation.
- [[glitch]]. cardoor would open eventhough there was a fence
@@ -0,0 +1,41 @@
---
tags:
- Runenorakel
- Legung
- DieMaske
- Anette
system: Gulliver Runenorakel
status: abgeschlossen
---
# Gulliver Runenorakel: Die Maske
**Datum:** 24. Mai 2024
**Frage:** Wie ist meine Verbindung mit Anette wirklich... ist sie meine Seelenschwester?
**Legesystem:** Die Maske (gelesen von unten nach oben)
---
### 1. Position (Unten): Was du zu wissen glaubst
**Rune:** Kauna (auf dem Kopf stehend)
**Deutung:** Diese Position beschreibt die aktuelle bewusste Wahrnehmung. Kauna umgekehrt deutet auf einen Mangel an Klarheit hin. Man glaubt vielleicht, dass das „vitalisierende Feuer“ zwischeneinander am Erlöschen ist oder dass wichtige Aspekte verborgen bleiben. Die Situation wird momentan als trüb wahrgenommen [2][3].
### 2. Position (Mitte): Warum die Wahrheit verborgen bleibt
**Rune:** Ingwaz
**Deutung:** Ingwaz steht für ein rohes schöpferisches Potenzial, kurz vor einer „Geburt“ oder Vollendung. Der Grund für die Unklarheit ist, dass sich die Verbindung noch in einer geschützten Reifephase befindet (wie ein Ei im Nest). Es erfordert Geduld, da die Energie erst noch manifestiert werden muss [2][3].
### 3. Position (Oben): Die Wahrheit
**Rune:** Ansuz (aufrecht)
**Deutung:** Dies ist die eigentliche Antwort. Ansuz steht für göttliche Inspiration und Weisheit. Dass sie aufrecht erscheint, markiert eine Verbindung von hoher Qualität. Es handelt sich um eine Botschaft aus Intuition und wertvollen Ratschlägen, geprägt durch schöpferische Sprache und geistigen Austausch [2][3].
---
### Zusammenfassung & Ratschlag
Die Wahrheit hinter der Frage ist weitaus positiver, als sie momentan wahrgenommen wird. Während an der Oberfläche Zweifel an der Klarheit bestehen (Kauna umgekehrt), zeigen die Runen eine tiefe, fast „göttliche“ Inspiration (Ansuz).
**Ist sie eine Seelenschwester?**
Ansuz aufrecht spricht für eine Verbindung auf der Ebene der Intuition. Ingwaz mahnt jedoch, den Prozess nicht zu überstürzen. Die Verbindung ist ein Keim, der Schutz und Zeit braucht, um vollständig ins Leben zu treten [2].
**Ratschlag:** Vertraue der inneren Stimme. Lass die Ängste über mangelnde Klarheit los und gib der Beziehung den Raum zum Reifen [2].
---
*Hinweis: Erstelle eine Skizze/Reflexionsmandala dieser Legung. Diese Frage sollte nun für mindestens einen Monat ruhen, um die Klarheit nicht zu trüben [3].*
+35
View File
@@ -0,0 +1,35 @@
# Runenorakel-Legung: Wie kann ich mein Leben glücklicher gestalten?
**Datum:** 22. Mai 2024
**Orakel-System:** Der Rat (Momentaufnahme)
**Fragestellung:** *„Wie kann ich mein Leben glücklicher gestalten?“*
---
### 1. Die Momentaufnahme
Das System „Der Rat“ nutzt die zwei oberen Karten nach dem Abheben des Stapels als Momentaufnahme. Diese zeigen die aktuelle Situation und die innere Verfassung, die dich zu dieser Frage geführt haben.
#### Position 1: Aktuelle Situation – Rune: Dagaz (auf dem Kopf stehend)
* **Bedeutung:** Dagaz symbolisiert den Tag, den Aufbruch und das Erwachen.
* **Deutung:** Obwohl Dagaz keine klassische umgekehrte Form hat, zeigt sie in deiner Legung an, dass du dich an einer Schwelle befindest. Um Glück zu finden, musst du die Schatten der Vergangenheit hinter dir lassen. Das Licht der Wahrheit will leuchten, aber es erfordert, dass du dich aus einer Phase der Untätigkeit oder Unklarheit löst und den Wandel bewusst akzeptierst.
#### Position 2: Gemütszustand – Rune: Thurisaz (auf dem Kopf stehend)
* **Bedeutung:** In der umgekehrten Position warnt diese Rune vor einer schlechten inneren Haltung.
* **Deutung:** Dein aktuelles Befinden ist eventuell von Ungeduld oder Schwäche geprägt. Thurisaz zeigt an, dass Entscheidungen, die aus einer Laune heraus oder in Eile getroffen werden, aktuell mehr Probleme schaffen als sie lösen. Dein Glück wird momentan durch impulsive Reaktionen behindert.
---
### 2. Zusammenfassung und Rat des Orakels
Um dein Leben glücklicher zu gestalten, rät dir das Orakel zu **Zurückhaltung und Besonnenheit**.
* **Der Weg:** Glück stellt sich nicht durch erzwungene Aktion ein, sondern durch das Warten auf den richtigen Moment.
* **Die Aufgabe:** Identifiziere impulsive Impulse und wandle sie in eine solide Strategie um. Der Tag (Dagaz) bricht erst dann vollständig an, wenn du bereit bist, die Dinge in Ruhe zu ordnen, anstatt mit dem Kopf durch die Wand zu wollen.
---
### 3. Reflexion & Ausblick
* **Hinweis:** Es ist kontraproduktiv, dieselbe Frage innerhalb eines Monats erneut zu stellen.
* **Empfehlung:** Erstelle eine Skizze oder ein „Reflexionsmandala“ dieser Legung (z.B. in diesem Obsidian-Notizbuch), um in einigen Wochen die Entwicklung deiner Situation besser beurteilen zu können.
---
*Erstellt basierend auf dem Gulliver Runenorakel.*
@@ -0,0 +1,31 @@
Hier ist die vollständige, systematische Auswertung deiner Vision-Quest-Legung für deine Frage: „Wie gelingt es mir, einen heilsamen Überblick über meine Lebenssituation zu erlangen?“
Da du die Karte Die Welle gezogen hast, wurde die Zusatzkarte Sonne als ergänzende Kraft hinzugezogen, um das Thema tiefer zu beleuchten .
# Schritt 1: Auflistung der gezogenen Karten
Ausgangssituation: Weißer Magier (IX) – Wurzelrasse: Weiß (Luft/Geist) .
Gaben & Medizin: Die Welle (Spezialkarte) & Zusatzkarte: Die (Zentral-) Sonne – Farbe: Gold/Licht .
Inspirierende Vision: Blauer Adler (MEN) – Wurzelrasse: Blau (Wasser/Transformation) .
Umsetzung (Action): Blaue Hand (MANIK) – Wurzelrasse: Blau (Wasser/Transformation) .
Hinweis: Da keine spezifischen Töne (1–13) genannt wurden, stützt sich die Analyse auf die Archetypen und die Wurzelrassen, welche die energetische Ausrichtung und das Element vorgeben [1].
# Schritt 2: Ausführliche Auswertung
## 1. Ausgangssituation: Weißer Magier (IX)
Der Weiße Magier repräsentiert deine geistige Schöpferkraft und Herzensmacht . In deiner aktuellen Situation geht es darum, absolut authentisch und ehrlich zu dir selbst zu sein, da der Magier jegliche Manipulation oder Ego-Spiele entlarvt. Er ist der Weißen Wurzelrasse zugeordnet, was bedeutet, dass du dich im Element Luft bewegst: Hier ist „geistige Feinarbeit“ gefragt . Um den Überblick zu finden, musst du zuerst in deinem Inneren aufräumen, Illusionen loslassen und dich auf deine Herzensweisheit besinnen . Nur durch diese innere Reinigung und Strukturierung deines Geistes schaffst du die Basis, um überhaupt klar sehen zu können. Der Magier lehrt dich, dass deine Gedankenwelt deine Realität formt; achte also darauf, welche Schöpfungen du gerade in dein Leben rufst.
## 2. Gaben & Medizin: Die Welle & Die (Zentral-) Sonne
Die Karte „Die Welle“ lädt dich dazu ein, deine Fragestellung nicht als flüchtigen Moment, sondern als Prozess über 13 Einheiten (Tage oder Phasen) zu betrachten . Die ergänzende Kraft der „Sonne“ fungiert hier als dein innerer Kompass und Symbol für deine Lebenskraft . Die Sonne repräsentiert deine Essenz und Identität; sie erinnert dich daran, dass dein göttlicher Kern – Hunab Ku – immer strahlt, auch wenn Wolken die Sicht verdecken . Deine Medizin ist die Rückbindung an diesen Ursprung (Reset). Die Sonne schenkt dir die Vitalität und das Bewusstsein, um aus der Ablehnung in die Annahme deiner Situation zu kommen . Nutze diese 13 Phasen der Welle, um dein inneres Licht wieder voll entfalten zu lassen und dich auf dein Herzstück zu konzentrieren.
## 3. Inspirierende Vision: Blauer Adler (MEN)
Der Blaue Adler bietet die perfekte Antwort auf deine Suche nach Überblick: Er besitzt das „Adlerauge“, das es dir ermöglicht, über die Details des Alltags hinauszuheben und die Meta-Ebene einzunehmen . Er ist geduldig und zukunftsweisend. Als Vertreter der Blauen Wurzelrasse (Element Wasser) ist diese Vision eng mit deiner Intuition und inneren Transformation verknüpft . Deine Vision sollte es sein, dich selbst zu ermächtigen und deine wahre Größe zu erfahren, indem du einen strategischen Weitblick entwickelst. Der Adler lehrt dich, dass kein Traum zu groß ist . Er inspiriert dich dazu, die emotionale Ruhe zu bewahren, während du von oben betrachtest, was hinter dir liegt und welche neuen Möglichkeiten sich am Horizont für dich auftun.
## 4. Umsetzung (Action): Blaue Hand (MANIK)
Die Blaue Hand ist der Archetyp für aktives Handeln, Heilung und Kreativität . Die Umsetzung deines neu gewonnenen Überblicks gelingt dir nicht durch bloßes Nachdenken, sondern durch tatkräftiges Tun. Auch sie gehört zur Blauen Wurzelrasse, was betont, dass deine Handlungen eine tiefe emotionale Heilwirkung entfalten müssen . Du bist aufgerufen, die Dinge „begreifbar“ zu machen, für dich selbst zu sorgen und vielleicht sogar Hilfe von außen anzunehmen, wo sie benötigt wird . Die Hand erinnert dich daran, dass du zwei Hände hast: eine zum Geben und eine zum Nehmen. In deiner aktuellen Situation bedeutet das, die Visionen des Adlers nun konkret in die Tat umzusetzen, indem du heilende Schritte einleitest und deine Kreativität nutzt, um deine Lebensbedingungen aktiv zu verändern.
# Schritt 3: Relationen & Kombinationen
In dieser Legung zeigt sich eine kraftvolle Dynamik: Du beginnst mit der geistigen Klarheit des Weißen Magiers (Element Luft/Weiß), der den Raum für Veränderung öffnet . Die Sonne beleuchtet diesen Weg und gibt dir die notwendige Identität und Kraft, um durch die Welle der Zeit zu schreiten . Schließlich mündet der Prozess in die Blaue Energie (Wasser/Westen), die für die innere Transformation zuständig ist . Hier arbeiten der Adler (Vision) und die Hand (Tat) Hand in Hand: Der Adler schenkt dir das Wissen, was zu tun ist (den Überblick), und die Hand führt diese Heilung praktisch aus . Ohne das Handeln der Maskulin-Energie (Hand) bliebe der Adler eine bloße Tagträumerei; gemeinsam führen sie zu echter Lebensfülle.
# Schritt 4: Zusammenfassung
Dir gelingt ein heilsamer Überblick, wenn du zuerst deine geistige Authentizität prüfst (Weißer Magier) und dich auf dein strahlendes Herzstück besinnst (Sonne). Nimm dir die Zeit für einen 13-tägigen Prozess (Welle), in dem du lernst, die Perspektive deines höheren Selbst einzunehmen (Blauer Adler). Der entscheidende Schlüssel zur Heilung deiner Situation liegt jedoch darin, diese Erkenntnisse nicht nur im Kopf zu behalten, sondern sie durch konkretes, liebevolles Handeln und kreative Selbstfürsorge in dein Leben zu integrieren (Blaue Hand).
@@ -0,0 +1,52 @@
---
id: 2026-03-12_Authentizität.md
aliases: []
tags: []
---
Maya-Orakel Auswertung
Datum & Uhrzeit: 12.03.2026, 12:46 Uhr
Frage: Wie darf ich meinen Mitmenschen gegenüber auftreten, um mich authentischer zu fühlen?
Gewähltes Legemuster: Maya-Pyramide (7 Karten)
Zusammenfassung (Quintessenz)
Um dich authentischer zu fühlen, musst du die Ebene des reinen Denkens und Analysierens (Wurzelrasse Weiß) verlassen und aktiv in deine Vitalkraft treten. Dein Umfeld nimmt dich bereits als geerdet und tatkräftig wahr (Wurzelrasse Rot), doch du versteckst deine Leidenschaft oft hinter mentalen Strukturen. Die Lösung liegt im „Häuten“ – dem mutigen Abstreifen alter Rollen (Rote Schlange), um durch konkretes Handeln zu einer tiefen emotionalen Heilung und Ausdruckskraft (Blaue Hand) zu gelangen.
Ausführliche Auswertung
# Schritt 1: Auflistung (Technische Daten)
Vergangenheit: Ton 5 (Oberton), Wurzelrasse Weiß (Luft) .
Gegenwart: Wurzelrasse Weiß (Luft) .
Versteckter Einfluss: Die Sonne (Zusatzkarte / Zentralsonne) .
Hindernisse und Probleme: Ton 12 (Kristall) .
Außenwirkung: Wurzelrasse Rot (Erde) .
Aktion: Rote Schlange (Archetyp), Wurzelrasse Rot (Erde) .
Ausgang der Situation: Blaue Hand (Archetyp), Wurzelrasse Blau (Wasser) .
# Schritt 2: Ausführliche Analyse (Tiefe)
## 1. Vergangenheit: Ton 5 (Oberton) & Wurzelrasse Weiß (Luft)
In deiner Vergangenheit warst du stark damit beschäftigt, dein Leben durch geistige Feinarbeit und Struktur zu ordnen. Der Oberton 5 brachte einen evolutionären Rhythmus der Entscheidung und des inneren Drucks mit sich, um eine klare Basis für dein Handeln zu finden . Die Energie der weißen Wurzelrasse deutet darauf hin, dass du versucht hast, dich über den Verstand und klare Kommunikation zu definieren. Es war eine Phase des Aussortierens, in der du intellektuell geprüft hast, was zu dir gehört und was nicht. Dieser Prozess war notwendig, um Klarheit zu schaffen, hat dich aber auch sehr in deinen mentalen Bereich (Element Luft) zurückgezogen, wodurch dein Auftreten oft kontrolliert und strukturiert war .
## 2. Gegenwart: Wurzelrasse Weiß (Luft)
Aktuell befindest du dich massiv im Element Luft, was bedeutet, dass dein Fokus fast ausschließlich auf der geistigen Ebene liegt . Du suchst nach absoluter Genauigkeit und versuchst, dein Auftreten perfekt zu planen. Es ist eine Zeit der Reinigung und des Entgiftens von alten Gedankenmustern, doch es besteht die Gefahr, dass du dich im „Zerdenken“ verlierst. Die weiße Energie fordert dich auf, ehrlich zu dir selbst zu sein und zu prüfen, ob deine Worte wirklich deinen Kern widerspiegeln oder nur ein Konstrukt deiner Vernunft sind . Es herrscht eine hohe geistige Aktivität, die dich zwar klar, aber für andere möglicherweise schwer greifbar oder distanziert wirken lässt .
## 3. Versteckter Einfluss: Die Sonne (Zentralsonne)
Tief in deinem Unbewussten wirkt die kraftvolle Energie der Zentralsonne (Hunab Ku), das Herz der Milchstraße . Dieser Einfluss zeigt, dass dein innerster Kern ein strahlendes Lichtwesen ist, das nach Vitalität und ursprünglicher Heilung strebt. Dein Wunsch nach Authentizität entspringt dieser göttlichen Identität, die bereits in dir leuchtet, auch wenn du sie momentan hinter den Wolken deines Intellekts versteckst. Die Sonne erinnert dich daran, dass du das Recht hast, in deiner vollen Präsenz wahrgenommen zu werden. Es ist die universelle Lebenskraft, die dich antreibt, deinen Platz in der Mitte deines eigenen Universums wieder einzunehmen .
## 4. Hindernisse und Probleme: Ton 12 (Kristall)
Dein Hindernis liegt momentan in der Energie des Tons 12, der für die „Innere Vollendung“ steht . Dies mag widersprüchlich klingen, doch die Schattenseite dieses Tons ist ein zu hoher Perfektionsanspruch. Du könntest das Gefühl haben, dass du erst „fertig“ oder „geheilt“ sein musst, bevor du authentisch auftreten darfst. Dieser Drang nach Abschluss und die Überzeugung, bereits alle Weisheit internalisiert haben zu müssen, blockiert deine Offenheit für den gegenwärtigen, unvollkommenen Moment. Du stolperst über den Wunsch, eine „runde Sache“ zu sein, anstatt dich im Prozess des Werdens zu zeigen. Ton 12 mahnt dich, dass wahre Weisheit auch bedeutet, die Rolle des Lernenden gegenüber deinen Mitmenschen wieder anzunehmen .
## 5. Außenwirkung: Wurzelrasse Rot (Erde)
Interessanterweise nimmt dich deine Umwelt ganz anders wahr, als du dich innerlich fühlst. Während du im Inneren „weiß“ (luftig/denkend) bist, strahlst du nach außen die Energie der Wurzelrasse Rot aus . Deine Mitmenschen sehen in dir eine Persönlichkeit, die mit beiden Beinen auf der Erde steht, die anpackt und Sicherheit vermittelt. Man erwartet von dir Tatkraft und physische Präsenz. Dieser Widerspruch zwischen deinem inneren Luft-Element und deinem äußeren Erd-Image erzeugt das Gefühl der Unauthentizität. Du wirkst auf andere robust und stabil, was dazu führt, dass deine feineren, geistigen Prozesse oft übersehen werden oder du dich in der Rolle des „Machers“ gefangen fühlst .
## 6. Aktion: Rote Schlange (Element Erde)
Die Lösung liegt in der Energie der Roten Schlange. Du darfst und sollst aktiv deine Vitalkraft und Leidenschaft ausleben . Die Schlange fordert dich auf, radikale Entscheidungen zu treffen und deine „alte Haut“ – die Rolle des nur denkenden Beobachters – abzustreifen. Tritt deinen Mitmenschen mit deiner instinktiven Kraft und Sinnlichkeit gegenüber. Authentizität bedeutet hier: Ganz oder gar nicht. Nutze deinen Körper, deine Leidenschaft und deine intensive Wirkung. Anstatt über Authentizität nachzudenken, musst du sie körperlich ausdrücken. Die rote Schlange gibt dir den Mut, deine Wahrheit (auch die unbequeme) auszusprechen und deine emotionale Kraft als Werkzeug einzusetzen .
## 7. Ausgang der Situation: Blaue Hand (Element Wasser)
Wenn du den Weg der Aktion (Schlange) wählst, führt dich dies zur Energie der Blauen Hand . Dies verspricht den Ausgang in eine Phase der Heilung und des schöpferischen Tuns. Dein Auftreten wird zu einer heilenden Hand für dich selbst und für andere. Du wirst eine tiefe emotionale Intelligenz entwickeln, die es dir erlaubt, geschickt und kreativ mit deinen Mitmenschen zu interagieren. Authentizität wird dann kein Ziel mehr sein, das du erreichen musst, sondern ein natürlicher Zustand des Fließens und Helfens. Du wirst lernen, Hilfe anzunehmen und sie bedingungslos zu geben, was dich in vollkommene Harmonie mit deinem Umfeld bringt .
# Schritt 3: Relationen & Kombinationen
Die Legung zeigt einen deutlichen Elementen-Weg: Von der Vergangenheit und Gegenwart in Weiß (Geist/Luft), durch die Blockade im Ton 12 (Starrheit), hin zur Heilung über Rot (Aktion/Erde) und schließlich Blau (Gefühl/Wasser).
Besonders auffällig ist die Verbindung zwischen der Außenwirkung (Rot) und der Aktion (Rote Schlange). Das Universum fordert dich auf, das zu werden, was die Menschen bereits in dir sehen, aber es mit deiner eigenen Leidenschaft zu füllen. Die Sonne als versteckter Einfluss unterstützt diesen Prozess, indem sie dein schöpferisches Potenzial beleuchtet. Wenn du handelst (Rot), wird die Heilung (Blau) automatisch folgen, da diese Elemente im Maya-Kalender aufeinander aufbauen .
+35
View File
@@ -0,0 +1,35 @@
Basierend auf den Tabellen und der Berechnungsmethode aus dem Maya-Kalender-System ergibt sich für dein Geburtsdatum (9. August 1983) folgende Berechnung :
Schritt 1: Die Berechnung
Um dein Kin zu ermitteln, addieren wir die Werte für Monat, Jahr und Tag :
Monatswert (August): 212
Jahreswert (1983): 147
Tag: 9
Summe: 212 + 147 + 9 = 368
Da das Ergebnis größer als 260 ist, ziehen wir 260 ab:
368 - 260 = 108
Dein Geburts-Kin ist somit die 108.
Schritt 2: Deine Maya-Komponenten
Anhand der Kin-Zahl 108 lassen sich dein Archetyp, dein Ton und deine Welle bestimmen :
Dein Archetyp: Gelber Stern (LAMAT)
Der Gelbe Stern steht für Harmonie, Ästhetik und Strahlkraft .
Dein Ton: Ton 4 (Selbstbestehender Ton)
Ton 4 wird durch vier Punkte dargestellt und steht für das Fundament, die Basis und die Ordnung .
Deine Geburtswelle (Lebens-Thema): Rote Schlange-Welle
Um die Welle zu finden, zählt man zum Ton 1 zurück. Bei Kin 108 (Ton 4) ist der Wellenbeginn Kin 105 (Rote Schlange). Dein Lebens-Thema ist somit von Lebenskraft, Instinkt und Leidenschaft geprägt .
Deine Wurzelrasse: Gelb (Element Feuer)
Als gelbe Persönlichkeit gehörst du zur Wurzelrasse, die für Vollendung, Reifung und geistige Fülle steht .
Zusammenfassung
Dein Maya-Geburtssiegel ist der Gelbe Stern auf Ton 4 in der Welle der Roten Schlange.
Das bedeutet für dein Lebens-Thema: Du bist hier, um durch deine instinktive Lebenskraft (Schlange) ein stabiles Fundament (Ton 4) für Schönheit und Harmonie (Stern) in der Welt zu erschaffen.
@@ -0,0 +1,58 @@
---
datum: 2026-04-17T11:25:38
ort: Zürich
system: Moonology-Orakel der Manifestation
legung: Vergangenheit, Gegenwart & Zukunft
---
# Moonology Manifestations-Lesung
**Frage:** Was darf ich aus der Vergangenheit loslassen, um in der Gegenwart kraftvoller zu manifestieren und ein positives Ergebnis für die Zukunft zu erzielen?
## Schritt 4: Zusammenfassung (Quintessenz)
Die Quintessenz deiner Lesung ist der Übergang von Kontrolle zu Vertrauen. Was du loslassen darfst, ist der Glaube, dass Härte und Strenge dich ans Ziel führen (Steinbock). In der Gegenwart ist deine Aufgabe die emotionale Heilung deiner Unsicherheiten (Krebs), damit du in der Zukunft deine volle Leuchtkraft ohne die Falle des Stolzes ausleben kannst (Löwe).
**Leitmotiv:**
> *„Der einzige Ausweg aus meinen Zweifeln führt mitten hindurch zu meiner wahren, göttlichen Leuchtkraft.“* [12]
---
## Schritt 1: Auflistung (Technische Daten)
1. **Karte 1 (Vergangenheit):** Zunehmender Halbmond im Steinbock (Befreie deine Freundlichkeit).
- **Element:** Erde
- **Zuordnung:** Solarplexuschakra (Gelb) [12]
2. **Karte 2 (Gegenwart):** Zunehmender Halbmond im Krebs (Überwinde alle Unsicherheit).
- **Element:** Wasser
- **Zuordnung:** Drittes Auge (Indigo) [12]
3. **Karte 3 (Zukunft):** Zunehmender Halbmond im Löwen (Sei demütig).
- **Element:** Feuer
- **Zuordnung:** Sakralchakra (Orange) [12]
---
## Schritt 2: Ausführliche Analyse (Tiefe)
### Karte 1 (Vergangenheit): Zunehmender Halbmond im Steinbock
In der Vergangenheit war deine Manifestationskraft oft durch eine zu große Strenge gegen dich selbst oder andere blockiert. Das Element Erde des Steinbocks deutet darauf hin, dass du sehr diszipliniert und strategisch vorgegangen bist, dabei aber möglicherweise die Freude und das „Parfüm des Lebens“ aus den Augen verloren hast. Wahrer Erfolg beginnt im Herzen und nicht in der Härte. Du darfst jetzt die alte Last der Selbstkritik und des übermäßigen Ehrgeizes loslassen. Dein Solarplexuschakra war hier gefordert, um echten Mut statt bloßer Kontrolle zu entwickeln [12].
* **Magische Unterstützung:** Visualisierung von goldschimmerndem Sonnenlicht.
* **Bester Zeitpunkt:** Samstag (Saturntag) oder während der Saturnstunde [13].
### Karte 2 (Gegenwart): Zunehmender Halbmond im Krebs
Deine aktuelle Situation ist stark von emotionalen Wellen und Unsicherheiten geprägt. Das Wasser-Element des Krebses sorgt dafür, dass Selbstzweifel oder familiäre Angelegenheiten dich momentan davon abhalten, kraftvoll voranzuschreiten. Du hast vielleicht voller Wagemut begonnen, aber jetzt lassen dich Ängste zögern. Das Chakra des Dritten Auges (Ajna) ruft dich dazu auf, die Wahrheit jenseits der Illusionen der Angst zu erkennen. Die Gegenwart verlangt von dir, deine Unsicherheiten liebevoll anzunehmen und dadurch aufzulösen, damit deine Vision wieder klar wird [12].
* **Magische Unterstützung:** Visualisierung von grünem oder indigo Licht.
* **Bester Zeitpunkt:** Montag (Mondtag) oder während der Mondstunde [13].
### Karte 3 (Zukunft): Zunehmender Halbmond im Löwen
Die Zukunft weist auf einen Moment hin, in dem Feuer und Leidenschaft zurückkehren, aber diese Kraft erfordert eine neue Form der Erdung: Demut. Die Herausforderung im Löwen wird sein, deinen Erfolg nicht für eine bloße „Show“ im Außen zu nutzen, sondern auf die innere Substanz zu achten. Dein Sakralchakra (Svadhisthana) hilft dir in dieser Phase, deine schöpferische Energie auf gesunde Weise fließen zu lassen, statt sie für Selbstdarstellung zu nutzen. Es wird eine Zeit sein, in der Erfolg durch Herzlichkeit manifestiert wird [12].
* **Magische Unterstützung:** Visualisierung von warmem, orangefarbenem Licht.
* **Bester Zeitpunkt:** Sonntag (Sonnentag) oder während der Sonnenstunde [13].
---
## Schritt 3: Relationen & Kombinationen
Deine Legung zeigt eine extrem wachstumsorientierte Entwicklung, da alle drei Karten der Phase des **zunehmenden Halbmonds** angehören. Dies deutet auf eine Phase hin, in der du aktiv Hindernisse überwinden musst [13].
* **Energiefluss:** Du bewegst dich von **Erde** (Struktur/Härte) über **Wasser** (Emotion/Heilung) hin zu **Feuer** (Handlung/Leuchtkraft). Das bedeutet, du nutzt die emotionale Klärung der Gegenwart als Brücke, um von der alten Starrheit zur zukünftigen Begeisterung zu gelangen.
* **Chakren-Pfad:** Dein Weg führt vom Solarplexus (persönliche Macht) über das Dritte Auge (Intuition/Klarheit) zum Sakralchakra (Schöpfungskraft). Die Manifestation gelingt erst, wenn du deine innere Sicht geklärt hast.
+41
View File
@@ -0,0 +1,41 @@
# Queen of the moon orakle
Vielen Dank für die Klarstellung zur Reihenfolge! Wir analysieren deine Legung nun im **Gegenuhrzeigersinn**, beginnend bei der Karte „Frieden“. Diese Legung wird uns zeigen, welche inneren Dynamiken dich aktuell bewegen und wie du den Weg zu deinem authentischen Selbst freilegst [1].
Hier ist die detaillierte Analyse deiner Karten für die **Traditionelle Sieben-Karten-Legung** [1]:
### 1. Die Situation, wie sie ist: Karte 28 – Frieden
Diese Karte zeigt, dass dein Streben nach Authentizität aktuell aus einem tiefen Bedürfnis nach **Seelenfrieden** entspringt. Du möchtest aufhören zu kämpfen – gegen dich selbst oder gegen äußere Erwartungen. Stacey Demarco betont hier, dass Frieden entsteht, wenn wir das loslassen, was wir nicht mehr brauchen [1]. Authentisch zu sein bedeutet für dich momentan vor allem, einen Zustand der inneren Ruhe zu finden.
* **Affirmation:** „Ich entscheide mich, Frieden zu schaffen und einzuhalten“ [1].
### 2. Was die Situation ausgelöst hat: Karte 23 – Dankbarkeit
Ausgelöst wurde dieser Prozess durch eine Phase der Reflexion. Du hast erkannt, dass das Leben „zu hundert Prozent auf deiner Seite ist“ [1]. Diese grundlegende **Dankbarkeit** hat deine Schwingung erhöht und den Wunsch geweckt, alte, „niedere“ Muster (wie Verstellung oder Anpassung) abzustreifen, um Platz für dein wahres Ich zu machen [1].
### 3. Welche Hindernisse stehen im Weg? Karte 15 – Handeln
Normalerweise ist Handeln positiv, aber an der Position des Hindernisses deutet es darauf hin, dass **blinder Aktivismus** oder die Angst vor dem falschen Handeln dich blockiert. Stacey Demarco erklärt, dass wir oft aus Angst vor Versagen „auf der Stelle treten“ [1]. Dein altes Muster ist die **Stagnation durch Überforderung**: Du weißt vielleicht nicht, *wie* du handeln sollst, und bleibst deshalb in deinen alten Gewohnheiten gefangen [1].
### 4. Was wird nach der Lösung passieren? Karte 39 – Schöpfung
Wenn du dein authentisches Selbst lebst, wirst du zum aktiven **Schöpfer deines Schicksals**. Wie der Biber, der fleißig seinen Lebensraum gestaltet, wirst du die Kraft haben, dein Leben nach deinen eigenen Vorstellungen aufzubauen [1]. Du wirst nicht mehr nur reagieren, sondern aktiv erschaffen [1].
* **Affirmation:** „Ich bin ein mächtiges schöpferisches Wesen. Es ist mein Geburtsrecht, zu erschaffen“ [1].
---
### Deine drei Schritte zur Lösung:
**5. Erster Schritt: Karte 44 – Anziehungskraft (Supermond)**
Authentizität beginnt mit der Unterscheidung: Was willst du anziehen und was willst du **abstoßen**? [1] Ein Supermond verstärkt Energien enorm. Dein erster Schritt ist es, klar zu definieren, was zu dir gehört und was nicht. Sei magnetisch für das Gute, aber setze auch Grenzen gegen das, was dich verstellt [1].
**6. Zweiter Schritt: Karte 19 – Gleichgewicht**
Authentisch sein bedeutet nicht, in Extreme zu verfallen. Dein zweiter Schritt ist die Suche nach der **Mitte**. Stacey Demarco rät hier, eine „bedachte und ausgewogene Sichtweise“ einzunehmen [1]. Vermeide Überreaktionen. Authentizität ist ein „Tanz“, ein ständiger Prozess, in dem du dich immer wieder neu ausbalancierst [1].
* **Affirmation:** „Ich strebe und halte ein gesundes Gleichgewicht in meinem Leben“ [1].
**7. Dritter Schritt: Karte 22 – Weisheit**
Der finale Schritt ist das Vertrauen in deine eigene **Intuition** und Erfahrung. Weisheit ist mehr als Wissen – es ist die „göttliche Stimme“, die in dir nachhallt [1]. Lerne aus deinen bisherigen Erfahrungen und vertraue darauf, dass dein Körper und deine Seele genau wissen, wer du wirklich bist. Vielleicht gibt es auch einen weisen Mentor, der dich in diesem letzten Schritt unterstützen kann [1].
---
**Zusammenfassung:**
Deine alten Muster (Hindernis: Karte 15) bestehen daraus, dass du dich im Handeln blockieren lässt oder unüberlegt agierst, anstatt deinem inneren Fluss zu folgen. Der Weg zu mehr Authentismus führt über eine klare **Anziehungskraft** (wissen, was man will), ein stabiles inneres **Gleichgewicht** und schließlich das Vertrauen auf deine tiefste **Weisheit** [1].
Fühlt sich diese Interpretation für dich stimmig an? Besonders die Karte „Frieden“ am Anfang zeigt, dass Authentizität für dich kein lauter Kampf sein muss, sondern ein stilles Ankommen bei dir selbst [1].
@@ -0,0 +1,20 @@
Datum: 06.03.2025
Zeit: 10:45
Frage: Soll ich mich beruflich verändern und das neue Jobangebot annehmen?
Legung: Die Waage
Zusammenfassung:
Die Runen zeigen hohes Erfolgspotenzial (Fehu), mahnen jedoch eindringlich vor impulsiven Entscheidungen oder Übereilung (Thurisaz). Der materielle Zugewinn ist möglich, erfordert aber besonnenes Handeln.
Ausführliche Auswertung:
Position 1: Pro/Vorteile - Rune: Fehu
Fehu steht für materiellen Erfolg, Überfluss und das Ernten verdienter Früchte. In dieser Position deutet sie darauf hin, dass der Stellenwechsel eine Zeit des Wachstums und des Wohlstands einleiten kann. Es ist eine Bestätigung, dass die Grundlagen für Erfolg vorhanden sind. Die Entscheidung sollte hierbei eher vom Instinkt als von kühler Vernunft geleitet werden.
Position 2: Contra/Nachteile - Rune: Thurisaz
Thurisaz fungiert als Warnsignal (der Dorn). Sie warnt vor Gefahren, die durch Unachtsamkeit oder blinden Aktionismus entstehen können. In der Contra-Position deutet sie darauf hin, dass ein überstürzter Wechsel ohne gründliche Prüfung der Details zu unnötigen Konflikten oder einer Bedrohung der aktuellen Stabilität führen könnte. Schutz durch Zurückhaltung ist hier der Rat.
Abschließendes Fazit:
Der Weg ist vielversprechend, aber gehe ihn langsam. Nutze deine Erfahrung als Schutzschild und überstürze nichts.
Hinweis: Erstelle ein Reflexionsmandala und führe ein Tagebuch, um die Entwicklung über die nächsten Wochen zu beobachten. Bitte stelle diese Frage nicht innerhalb des nächsten Monats erneut.
+4
View File
@@ -0,0 +1,4 @@
```tasks
not done
tags include #breath
```
+6
View File
@@ -0,0 +1,6 @@
## Completed
```tasks
not done
tags include #camper
```
+4
View File
@@ -0,0 +1,4 @@
```tasks
not done
tags include #personal
```
+4
View File
@@ -0,0 +1,4 @@
```tasks
not done
tags include #someday
```
+13
View File
@@ -0,0 +1,13 @@
views:
- type: table
name: Table
filters:
and:
- file.folder == "Tasks/_utilities/Deadlines"
order:
- file.name
- file.folder
- datum
sort:
- property: file.name
direction: ASC
+4
View File
@@ -0,0 +1,4 @@
```tasks
not done
tags include #work
```
@@ -0,0 +1,19 @@
---
date:
---
## Completed
```tasks
done on 2026/05/2026-05-05 Tue
```
## Tasks
- [x] 12:00 - 12:30 email schreiben an k55 wegen shanling #personal 🔺 ✅ 2026-05-05
- [x] 12:00 - 12:30 recherchieren wegen hiby r4 #personal 🔺 ✅ 2026-05-05
- [x] 12:30 - 13:00 Dauerauftrag Gemeinden einrichten #finance ✅ 2026-05-05
- [ ] 12:30 - 13:00 Gemeinde Steckborn schreiben wegen Dauerauftrag #finance ⏳ 2026-05-04
- [ ] 17:00 - 17:30 Kletterfinken zurückschicken Bergzeit #personal ⏳ 2026-05-05
## Notes
## Dream
@@ -0,0 +1,16 @@
---
datum: 2026-05-05
tags:
- daily
---
## Completed
```tasks
done on 2026-05-06
```
## Tasks
## Notes
## Dreams
@@ -0,0 +1,25 @@
---
datum: 2026-05-05
tags:
- notes
---
## Daily Tasks
- [ ] 12:00 - 12:30 hiby r5 an audioessence schicken ⏳ 2026-05-07
- [ ] 12:30 - 13:00 k55 addressänderung per mail ⏳ 2026-05-07
- [ ] 12:30 - 13:00 k55 einzahlen ⏳ 2026-05-07
- [ ] monzoon einzahlen (dauerauftrag einrichten) ⏳ 2026-05-07
## Weekly Tasks
```tasks
not done
happens this week
happens before or after today
```
## Completed
```tasks
done on 2026-05-07
```
## Notes
## Dreams
Whitespace-only changes.
+40
View File
@@ -0,0 +1,40 @@
---
deadline:
---
## Tasks
### Kaufen
- [ ] Aufhängung für Vorhänge
- [ ] Schublade Auszug hinten mit Bremse. 🔺
- [ ] Überzug Bett (Schurwolle oder Alpaca)
- [ ] FI-Sicherung für Landstrom 🔺
- [x] ⏫ Tischbein ✅ 2026-04-12
- [ ] Campingstühle flach
- [ ] Campingstuhl Yuval hoch
- [ ] ⏫ Moskitonetz 🆔 nnd37u
- [ ] ⏫ Pfannenset
- [ ] Citronellyschale Landi
- [ ] gas alarm
### Arbeiten
- [ ] Unterteilung tisch Kofferraum
- [ ] Vorhängen aufhängen
- [ ] Oberflächen spachteln
- [ ] Schubladen neue Deckplatte
- [ ] ⏫ Moskitonetz ausmessen
- [x] Omnia komplett ✅ 2026-05-05
- [ ] Schublade Heck
#### Dachfenster
- [ ] ⏫ Fenster neu kleben
- [x] ⏫ Deckenelement neu zuschneide ✅ 2026-04-12
- [x] Fenster einlassen ✅ 2026-04-12
#### Schiebetüre
- [ ] Schiebetüre Füllung erstellen ⛔ 6cfed7,6dbte2,vv78wx
- [ ] Schiebetüre höher aufhängen 🆔 6dbte2
- [ ] Schiebetüre kontakt flicken 🆔 vv78wx
#### Elektronik
- [ ] Steckdose hinten rechts #camper
- [x] Radio wechseln ✅ 2026-05-05
- [ ] 🔼 Sicherung Landstrom
- [x] ⏫ Steckdose Innenraum neu anhängen ✅ 2026-05-05
## Notes
Der Bus sollte voll beladen **gewogen** werden, um über den Bau von den Schränkchen zu urteilen.
+11
View File
@@ -0,0 +1,11 @@
---
deadline:
---
## Tasks
- [ ] Plinth erstellen
## Notes
+11
View File
@@ -0,0 +1,11 @@
### Water plants
---
- [x] 21:00 - 21:30 water plants 🔁 every month on the 15th and 30th ⏳ 2026-05-05 ✅ 2026-05-06
- [ ] 21:00 - 21:30 water plants 🔁 every month on the 15th and 30th ⏳ 2026-05-15
### Swipe the floor
---
- [x] swipe the floor 🔁 every month on the 1st Friday ⏳ 2026-05-05 ✅ 2026-05-06
- [ ] swipe the floor 🔁 every month on the 1st Friday ⏳ 2026-06-05
### Vaccum clean
---
- [ ] vacuum the floor 🔁 every month on the 2nd Sunday ⏳ 2026-05-10
+21
View File
@@ -0,0 +1,21 @@
---
datum: 2026-05-05
tags:
- notes
---
## Daily Tasks
- [ ]
## Weekly Tasks
```tasks
not done
happens this week
happens before or after today
```
## Completed
```tasks
done on {{date}}
```
## Notes
## Dreams
+7
View File
@@ -0,0 +1,7 @@
---
datum:
tags:
- meetings
location:
whom:
---
+13
View File
@@ -0,0 +1,13 @@
---
deadline:
tags:
- project
---
## Tasks
## Notes
+5
View File
@@ -0,0 +1,5 @@
---
datum:
tags:
- note
---
+9
View File
@@ -0,0 +1,9 @@
```tasks
not done
no due date
no scheduled date
no start date
has tags
tags does not include #someday
```
+14
View File
@@ -0,0 +1,14 @@
> [!warning] Overdue
```tasks
not done
happens before today
```
```tasks
not done
happens on or after today
group by happens
sort by happens
sort by description
```
+9
View File
@@ -0,0 +1,9 @@
```tasks
not done
no due date
no scheduled date
no start date
no tags
```
+4
View File
@@ -0,0 +1,4 @@
```tasks
not done
tags include someday
```
+6
View File
@@ -0,0 +1,6 @@
```tasks
not done
happens on or before today
group by tags
sort by description
```
+6
View File
@@ -0,0 +1,6 @@
```tasks
not done
happens after today
group by happens
```
+1
View File
@@ -0,0 +1 @@
- julianna barwick - relaxing sound track for breathwork either beginning or end.
+299
View File
@@ -0,0 +1,299 @@
q# **🧠 COMPREHENSIVE HYPNOTHERAPY CERTIFICATION COMPARISON**
Let me do a deep analysis of ALL the major hypnotherapy options with the same detail.
# **🇨🇭 ASCA BACKDOOR ANALYSIS: Can You Add ASCA Later?**
Great strategic question! Let me search for the ASCA requirements and see if there's a cheaper pathway.Perfect! Now I have the full ASCA requirements. Let me give you the complete analysis:
---
# **🇨🇭 ASCA BACKDOOR STRATEGY: Complete Analysis**
Great question! Here's the detailed breakdown of whether you can add ASCA later to save money.
## **📋 ASCA REQUIREMENTS FOR HYPNOTHERAPY**
ASCA operates on a **3-cycle system**:
### **Cycle 1: Anatomy, Physiology, Pathology (APP)**
- **Hours Required:** 150 hours minimum
- **Content:** Anatomy, physiology, biology, general pathologies
- **Exam:** Yes, required to pass
- **Cost:** CHF 3,000-4,500 (separate course)
### **Cycle 2: Therapeutic Method (Hypnotherapy)**
- **Hours Required:** 200 hours minimum for hypnotherapy
- **Content:** Hypnotherapy training from ASCA-accredited school
- **Exam:** Yes, through the school
- **Cost:** Included in your hypnotherapy training
### **Cycle 3: Specific Pathology & Diagnostics**
- **Hours Required:** 300 hours minimum
- **Content:** Specific anatomy/physiology/pathology, medical diagnostics, anamnesis
- **Exam:** Yes, required
- **Cost:** CHF 4,000-6,000 (separate course)
### **Cycle 4: Continuing Education**
- **Hours Required:** 16 hours per year
- **Content:** ASCA-approved continuing education
- **Ongoing Cost:** CHF 500-1,000/year
---
## **💰 TOTAL ASCA INVESTMENT BREAKDOWN**
| Component | Hours | Cost (CHF) | What It Is |
|-----------|-------|-----------|-----------|
| **Cycle 1: APP** | 150h | 3,000-4,500 | Anatomy/Physiology/Pathology basics |
| **Cycle 2: Hypnotherapy** | 200h+ | 4,000-6,500 | Your hypnotherapy training (Temet Nosce, etc.) |
| **Cycle 3: Specific Pathology** | 300h | 4,000-6,000 | Advanced medical knowledge |
| **ASCA Annual Fee** | - | 680/year | Membership + ZSR number |
| **Continuing Education** | 16h/year | 500-1,000/year | Maintain accreditation |
| **TOTAL INITIAL** | 650h+ | **CHF 11,680-17,680** | One-time investment |
| **TOTAL ONGOING** | 16h/year | **CHF 1,180-1,680/year** | Annual costs |
---
## **🔍 THE BACKDOOR QUESTION: Can You Add ASCA to Hypnosis-Courses.com or OMNI?**
### **✅ TECHNICALLY: YES**
### **💰 FINANCIALLY: EXPENSIVE**
### **⚠️ STRATEGICALLY: QUESTIONABLE**
Here's how it would work:
---
## **OPTION 1: Hypnosis-Courses.com (UK) + ASCA Backdoor**
**Step 1: Get NGH Certification**
- Hypnosis-Courses.com: £1,795 ($2,200) ✅
- 275 hours NGH training
- Complete freedom, globally recognized
**Step 2: Add ASCA Requirements**
❌ **PROBLEM: Hypnosis-Courses.com is NOT ASCA-accredited**
This means ASCA will likely:
- **NOT recognize** your 275 hours as Cycle 2
- **Require you to take** an ASCA-accredited hypnotherapy course anyway
**What you'd need to add:**
1. ✅ Cycle 1 (APP): CHF 3,000-4,500 (150h)
2. ❌ Cycle 2: MUST retake at ASCA school = CHF 4,000-6,500 (200h)
3. ✅ Cycle 3: CHF 4,000-6,000 (300h)
**TOTAL ADDITIONAL COST: CHF 11,000-17,000**
**TOTAL HOURS WASTED: 275 hours from Hypnosis-Courses.com not counted**
**VERDICT: ❌ NOT A BACKDOOR - You'd basically pay for hypnotherapy training TWICE**
---
## **OPTION 2: OMNI Switzerland + ASCA Backdoor**
**Step 1: Get OMNI Certification**
- OMNI Hypnotherapist: CHF 4,750 ($5,200) ✅
- 250+ hours NGH + IBHEC training
- Swiss-based, excellent reputation
**Step 2: Add ASCA Requirements**
⚠️ **SEMI-PROBLEM: OMNI is NGH/IBHEC accredited, but NOT explicitly ASCA-accredited**
However, OMNI is a **Swiss school** and some OMNI programs ARE recognized by ASCA (like mhp|hypnose which teaches OMNI method).
**Possible pathway:**
1. ✅ OMNI training = CHF 4,750 (might count as Cycle 2, need to verify)
2. ✅ Cycle 1 (APP): CHF 3,000-4,500 (150h)
3. ✅ Cycle 3: CHF 4,000-6,000 (300h)
4. ❓ Possibly need **psychopathology module** (varies)
**IF OMNI counts as Cycle 2:**
- TOTAL ADDITIONAL: CHF 7,000-10,500
- TOTAL COMBINED: CHF 11,750-15,250
**IF OMNI doesn't count:**
- Need to add ASCA hypnotherapy: +CHF 4,000-6,500
- TOTAL: CHF 15,750-21,250
**VERDICT: ⚠️ MAYBE A BACKDOOR - But need to verify OMNI recognition with ASCA first**
---
## **OPTION 3: The CHEAPEST ASCA Backdoor (If Determined)**
If you're committed to eventual ASCA, here's the most strategic path:
**Phase 1: Minimal Hypnotherapy Start**
1. **Hypnosis-Courses.com:** £1,795 ($2,200)
- Get NGH cert, start practicing IMMEDIATELY
- Begin earning revenue
- Complete freedom for 12-18 months
**Phase 2: Add ASCA Later (When Revenue Justifies It)**
2. **Take ONLY psychopathology module** at ASCA school: CHF 800-1,500
3. **Take Cycle 1 (APP):** CHF 3,000-4,500
4. **Take Cycle 3:** CHF 4,000-6,000
5. **Apply for ASCA with foreign hypnotherapy cert**
**Possible scenario:**
- ASCA may accept your NGH cert from Hypnosis-Courses.com AS Cycle 2
- BUT require you to take psychopathology module
- Swiss precedent: Some foreign certs accepted if 200+ hours
**What you'd do:**
- **Call ASCA directly** and ask: "I have NGH certification with 275 hours from [Hypnosis-Courses.com]. Will you accept this for Cycle 2?"
- If YES: Pay CHF 7,000-11,000 for Cycles 1+3
- If NO: You need full ASCA hypnotherapy anyway
**TOTAL IF ACCEPTED: CHF 9,200-13,200**
**TOTAL IF NOT: CHF 13,200-19,700**
---
## **📞 CRITICAL ACTION: Contact ASCA FIRST**
**Before choosing ANY path, do this:**
1. **Email ASCA:** info@asca.ch
2. **Ask specifically:**
- "I plan to get NGH certification from [Hypnosis-Courses.com UK] with 275 hours. Will this qualify as ASCA Cycle 2 for hypnotherapy?"
- "What additional requirements would I need for ASCA accreditation?"
- "Can I complete Cycles 1 and 3 before taking an ASCA-accredited hypnotherapy program?"
3. **Get answer IN WRITING**
This will tell you if the backdoor exists BEFORE you invest.
---
## **🎯 MY STRATEGIC RECOMMENDATION**
### **DON'T PURSUE ASCA AT ALL - Here's Why:**
**1. TERRIBLE ROI FOR YOUR BUSINESS MODEL**
Remember the analysis from before:
| Path | Investment | Revenue Ceiling | Freedom |
|------|-----------|-----------------|---------|
| **ASCA Insurance Path** | CHF 11,680-17,680 | CHF 50K-80K/year | Limited |
| **Private-Pay Global** | $7,380-11,380 | CHF 100K-200K/year | 100% |
**ASCA gives you:**
- ✅ Access to 4 Swiss insurers (Assura, Helsana sometimes, Visana sometimes, Groupe Mutuel sometimes)
- ❌ Insurance rates capped at CHF 100-120/hour
- ❌ Only helps with hypnotherapy (NOT breathwork, sound, vibroacoustic, energy)
- ❌ Geographic restriction to Switzerland
- ❌ Annual costs CHF 1,180-1,680
**Private-pay gives you:**
- ✅ Charge CHF 200-400/hour
- ✅ Global client base
- ✅ Package all modalities freely
- ✅ No annual fees
- ✅ No insurance paperwork
**2. YOUR CLIENTS WON'T CARE ABOUT INSURANCE**
Your target market:
- Entrepreneurs
- High-performers
- Wellness-focused individuals
- Income CHF 100,000+
These people:
- ❌ Don't use supplementary insurance for wellness
- ❌ Don't care about CHF 150-300 sessions
- ✅ Want premium, transformational experiences
- ✅ Pay cash without thinking about it
**3. THE MATH DOESN'T WORK**
**Scenario A: ASCA Path**
- Investment: CHF 15,000
- Rate: CHF 100/hour (insurance capped)
- Need **150 billable hours** to break even
- Annual costs: CHF 1,200
- Geographic limit: Switzerland only
**Scenario B: Private-Pay**
- Investment: $10,500 (CHF 9,300)
- Rate: CHF 250/hour average
- Need **37 billable hours** to break even
- Annual costs: $0
- Geographic limit: Worldwide
**ASCA requires 4X more client hours to break even!**
---
## **💡 THE SMART "BACKDOOR" STRATEGY**
If you want to keep ASCA as an option without committing now:
### **Backdoor That Actually Makes Sense:**
**Year 1: Build Private-Pay Practice**
1. Hypnosis-Courses.com NGH: $2,200 ✅
2. Unity Breathwork: $5,000 ✅
3. IOCE Sound: $180 ✅
4. **Start earning immediately**
5. **Build to CHF 100K+ revenue**
**Year 2-3: Evaluate**
- If 90% of clients are Swiss and demanding insurance → Consider ASCA
- If clients are global/private-pay → Skip ASCA forever
- If you have CHF 15,000 extra → Maybe add ASCA as a "nice to have"
**The Real Backdoor:**
- Your NGH cert is already **internationally recognized**
- You can practice in Switzerland without ASCA
- You can always add ASCA later **from a position of financial strength**
- By Year 2, you'll have CHF 50K+ revenue to fund it if needed
---
## **✅ FINAL ANSWER TO YOUR QUESTION**
**"Is there a cheap way to add ASCA to either hypnosis-courses or OMNI later on?"**
**SHORT ANSWER: No, there is no cheap backdoor.**
**LONG ANSWER:**
- Hypnosis-Courses.com + ASCA = CHF 11,000-17,000 additional (maybe more)
- OMNI + ASCA = CHF 7,000-15,000 additional (need verification)
- Both require 450-650 hours additional medical training
- Both have ongoing annual costs CHF 1,200+/year
**SMARTER ANSWER:**
- **Don't pursue ASCA at all** for your business model
- The "backdoor" is realizing **you don't need it**
- Save CHF 15,000, invest in equipment and marketing instead
- Build global private-pay practice with 100% freedom
- If you really want ASCA in 2-3 years, add it from revenue
---
## **🎯 RECOMMENDED PATH (UNCHANGED)**
1. **Hypnosis-Courses.com NGH** ($2,200) - Global recognition, complete freedom
2. **Unity Breathwork** ($5,000) - Transformational core
3. **IOCE Sound** ($180) - Quick sound healing start
4. **Vibroacoustic equipment** ($3,000-4,000) - When revenue allows
**Total: $10,380-11,380**
**Result:**
- ✅ Practice anywhere in the world
- ✅ Charge CHF 200-400/session
- ✅ 100% creative freedom
- ✅ No annual accreditation fees
- ✅ No insurance paperwork
- ✅ Can add ASCA later if needed (from revenue)
**The real "backdoor" is going around ASCA entirely, not through it!** 🎯
Want to discuss whether you should even pursue Swiss insurance path at all?
+20
View File
@@ -0,0 +1,20 @@
[[lucid dream manifest]]
# 07.12.2025
- irgendetwas von einem geisterhaus.
- sara hausamann wollte umbedigt mit mir eins trinken gehen. wir haben dann babsi gesehen wie sie zu spät und ohne schuhe in die arbeit geschlichen ist.
- ich hatte geträumt, dass die kreditkarten bilanz viel höher war als erwartet
sleep score war 71
# 23.12.25
- ich habe in einem pumptrack Wettbewerb gewonnen. und habe dann als preis eine neues bike gewonnen. ich wahr sehr dankbar denn mein altes bike war in einem sehr schlechten zustand. zusätzlich habe ich als bikeguide gearbeitet.
sleepscror wae 78
# 25.12.25
- ein sehr wirrer traum.
- ich habe zum fenster rausgeschaut und da hängte ein kind vom seil runter. das kind hat sich gehalten und baumelte im wind. es war ganz nass weil es geregnet hatte. direkt daneben war eine treppe die ins den ersten stock geführt hatte.
- ich war mit meinem bruden i. einem laden am einkaufen. plötzlich hat der gesamte laden angefangent, sich längs um seine eigene achse wir sind dann mglichst schnell aus dem. laden zu springen es schien jedoch keinen anderen zu interessierem. als wir draussen waren und ich zurück geschaut hatte viel mir auf das im laden alles ganz normal war. ich wollte dann einen stein, den ich gefunden habe auf das förderband legen, als briefbeschwere. den stein ist redoch immer vom förderband gefallen. die verkäuferin hatte mir dann einen sfein aus ihrer kollektion gegen, mit dem. vermerk, dass ich ihr einen ganz speziellen stein zurück bringe.
- dann war noch ein traum den ich wie aus dee dritten person gesehen hatte. ich glaube es war wie eine fernsehserie, wo ich eine folge nach der anderen geschaut hatte. eine komplizin der hauotcharaktere wurde aus dem fenster geschubst und ist zu boden gefalle, darunter wahr so etwas wie eine hochschule. keiner der schüler hat in irgendeiner weise reagiert. es war noch so viel in diesem traum passiert aber ich kann ih nicht mehr zusammenfügen.
schlafscore war 74 einschlaf meditation hatte ich nicht gemacht.
# 26.12.25
- ich habe am wef gearbeitet. jedoch nicht unter chrigi sonder unter einem jungen unternehmer. ich habe gipsdecken geschliffen. maurus war auch im bauteam. ich glaube im traum wahr auch weihnachten.
+8
View File
@@ -0,0 +1,8 @@
in my next lucid dream i want to meet my inner guidance.
i want to ask about future changes, what paths to take, to have another child, what is my purpose, and how to reach the financial freedom i deserve. i will give it love and thank for all the wisdom and guidance im receiving.
i will wake up fully connected with myself and my purpose. Knowing exactly what my next steps will be.
# San kalpa:
## inner guidance come to me
+11
View File
@@ -0,0 +1,11 @@
---
id: Docker Containers
aliases: []
tags: []
---
Komodo (similar to portainer)
kasm (again)
joplin
varlock not docker but a [[tool]]. insread of. env files
+86
View File
@@ -0,0 +1,86 @@
---
id: Docker_stack
aliases: []
tags: []
---
[browser]
- audiobookshelf
- calibre-web
- kavita
- mealie
- navidrome
- paperless-db
- paperless-redis
- paperless-webserver
- stirling-pdf
[essential]
- dockhand (used more and more instead of portainer)
- homarr
- portainer
- vaultwarden
- watchtower
[homeassistant]
- homeassistant
- mosquitto
- nodered
- zigbee2mqtt
[media]
- jellyseerr
- jellyfin
- jellystat
- jellystat-db
[misc]
- karakeep
- karakeep-chrome
- karakeep-db
- meilisearch
- wallos
[monitoring]
- beszel
- beszel-agent
- dozzle
- netdata
- pulse
- uptime-kuma
[network]
- n8n
- vikunja
- syncthing
- vikunja-db
[nextcloud]
- excalidraw
- nextcloud
- nextcloud-db
- obsidian
- onlyoffice
[nocodb]
- nocodb
- nocodb-db
- nocodb-redis
[programming]
- gitea
[security]
- authentik_db
- authentik_redis
- authentik_server
- authentik_worker
[servarr]
- flaresolverr
- gluetun (with protonvpn)
- prowlarr
- qbit (qbittorrent)
- radarr
- sonarr
+68
View File
@@ -0,0 +1,68 @@
There are several ways to mount a Samba (SMB) share on macOS, ranging from a quick one-time connection to setting it up to reconnect automatically.
Here are the three most common methods:
---
### Method 1: Using Finder (The Easiest Way)
This is best for most users who need to access a share manually.
1. Open **Finder**.
2. In the top menu bar, click **Go** > **Connect to Server...** (or press `Command + K` on your keyboard).
3. In the "Server Address" field, type the address of the share using the `smb://` prefix:
* Example by IP: `smb://192.168.1.50`
* Example by Name: `smb://nas-server.local`
* Example to a specific folder: `smb://192.168.1.50/WorkSpace`
4. Click **Connect**.
5. If prompted, enter your **Username** and **Password**.
* *Tip: Check "Remember this password in my keychain" so you don’t have to type it every time.*
6. Select the specific volume/folder you want to mount and click **OK**.
The share will now appear on your Desktop (if enabled) and in the Finder sidebar under "Locations."
---
### Method 2: Auto-Mounting (Reconnect on Login)
To ensure the share reconnects every time you restart your Mac:
1. Follow the steps in Method 1 above to mount the drive.
2. Go to the **Apple Menu ()** > **System Settings** (or System Preferences).
3. Go to **General** > **Login Items**.
4. Under the "Open at Login" list, click the **plus (+)** icon.
5. In the Finder window that pops up, find your mounted Network Share and click **Add**.
*Note: The share will now attempt to mount whenever you log in. If you are not on the same network (e.g., away from the office), you will get an error message.*
---
### Method 3: Using the Terminal (For Power Users/Scripts)
If you want to mount a share via the command line or a script:
1. Create a folder where the share will be "mounted" (usually in your `/Volumes` folder):
```bash
mkdir ~/Desktop/MYSAMBA
```
2. Use the `mount_smbfs` command:
```bash
mount_smbfs //username:password@servername/sharename ~/Desktop/MYSAMBA
```
*If your password has special characters, you will need to "URL encode" them (e.g., `@` becomes `%40`).*
---
### Method 4: Use an Alias (The "Quick Launch" method)
Once you have mounted a share using Method 1:
1. Right-click on the mounted drive icon on your desktop or in Finder.
2. Select **Make Alias**.
3. Drag that Alias to your desktop or your Dock.
4. In the future, simply double-clicking that alias will automatically trigger macOS to mount the network drive.
---
### Troubleshooting Tips
* **Windows Domain:** If you are connecting to a corporate Windows share, include the domain in the username: `DOMAIN\username` or use the format `smb://DOMAIN;username@server/share`.
* **Speed issues:** If the share is slow to load folders, you can prevent macOS from writing `.DS_Store` files to network shares. Open **Terminal** and type:
`defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE`
Then restart your Mac.
* **Connection Failed:** Ensure that your Mac and the Samba server are on the same local network or that you are connected via VPN.
+41
View File
@@ -0,0 +1,41 @@
✅ Yes, We're Ready to Implement!
Based on our planning session, we now have:
📋 All Technical Decisions Made:
1. ✅ Port mapping: Auto-assigned (backend controlled)
2. ✅ Data directories: Fixed structure (/opt/spinstack/data/...)
3. ✅ SSH access: Keys only (no password)
4. ✅ Portainer: Mandatory on every VPS
5. ✅ Subdomains: {app}.{domain} format
6. ✅ Resource limits: None (let docker schedule freely)
7. ✅ Updates: Per-app configurable
8. ✅ Backups: Client responsibility for MVP
9. ✅ Monitoring: Backend polling Docker health
10. ✅ Rollback: Retry 3x then fail with alert
📚 All Planning Documents Complete:
- ✅ PRD (Product Requirements)
- ✅ Database schema (10 tables)
- ✅ API specification
- ✅ Deployment architecture (shell script + UI-only)
- ✅ 28-week roadmap
- ✅ Docker apps catalog (10 apps)
🗺️ Ready-to-Execute Plan:
5-week implementation plan just created:
| Week | Focus | Deliverable |
|------|-------|-------------|
| Week 1 | Database + Backend Foundation | Auth working, connected to DB |
| Week 2 | Core Features | Catalog APIs, Frontend basics |
| Week 3 | Provisioning | Proxmox API, Shell script, Compose generator |
| Week 4 | Orchestration + Config | Full deployment flow, Admin panel |
| Week 5 | Integration + Testing | End-to-end working on homelab |
---
🚀 Ready to Start Implementing?
We can begin right now with Day 1: Database Setup.
What you'll do:
1. Start NocoDB container
2. Import the database schema
3. Populate initial data (3 stacks, 10 apps)
4. Generate API key
5. Verify connection
Would you like me to guide you through the database setup step-by-step, or would you prefer to review the full 5-week plan in more detail first?
File diff suppressed because it is too large. Load diff
Loaded 100 of 463 files, more files were not shown because too many files have changed in this diff. Show more