├── .gitignore ├── LICENSE.txt ├── README.md ├── index_notes_demo.gif ├── main.ts ├── manifest.json ├── package-lock.json ├── package.json ├── src ├── indexer.ts ├── settings │ ├── FolderSuggester.ts │ └── Settings.ts └── types.ts ├── styles.css ├── tsconfig.json └── versions.json /.gitignore: -------------------------------------------------------------------------------- 1 | # vscode 2 | .vscode 3 | .editorconfig 4 | .eslintignore 5 | .eslintrc 6 | .npmrc 7 | esbuild.config.mjs 8 | 9 | # Intellij 10 | *.iml 11 | .idea 12 | 13 | # npm 14 | node_modules 15 | 16 | # Don't include the compiled main.js file in the repo. 17 | # They should be uploaded to GitHub releases instead. 18 | main.js 19 | 20 | # Exclude sourcemaps 21 | *.map 22 | 23 | # obsidian 24 | data.json 25 | 26 | # Exclude macOS Finder (System Explorer) View States 27 | .DS_Store 28 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Alejandro Daniel Noel 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Index Notes Plugin for Obsidian 2 | 3 | Indices are probably the easiest way to navigate a large knowledge base, but keeping indices of notes by hand is usually time-consuming, error-prone, and not very scalable. 4 | 5 | The Index Notes Plugin is a powerful tool for Obsidian users who want to automatically generate index blocks within their notes based on tags. The indices are updated automatically when tags are added or changed, offering a nested list of links to the notes following their tag hierarchy. As a bonus, by having the links actually written to the file the graph view reflects the organisation of the knowledge base. 6 | 7 | ![](index_notes_demo.gif ) 8 | 9 | Tags are a much more flexible way of managing indices for the following reasons: 10 | - Index information is in the same note that is being indexed. 11 | - Tags can be set in the metadata section, keeping the content clean. 12 | - Notes can have multiple tags, much more flexible than organising by folders! 13 | - Tags are easy to refactor with tools like Tag Wrangler. 14 | 15 | The plugin also introduces a handy command and ribbon icon to create a new note with the same metadata and location as the currently focused note. This speeds up the process of keeping things indexed: navigate to a note in the index branch that you want the new note in and just press that button and give it a name. The index should update in a few seconds with the new note. 16 | 17 | 18 | ## Installation 19 | 20 | You can install this plugin through the **Community plugins** interface in Obsidian. 21 | 22 | ## Usage 23 | 24 | - Set (hierarchical) tags on your notes' `tags` metadata field. For instance, one might use the tags `#projects/university`, `#projects/charity`, `#projects/personal` to organise their notes. 25 | - To create an index, open a new note and set the tag path with the `/idx` suffix. For example, `#projects/idx`. After a few seconds an index block will be appended to the content of the note. 26 | - To create a meta index, open a new note and set the tag path with the `/meta_idx` suffix. For example, to create a meta index of all the indices in the vault simply use `#meta_idx`. After a few seconds a block should appear containing a link to the `projects` index note. 27 | - Notes may have multiple indices and meta indices! For instance, I also use `#pinned/idx` in my vault's home note to get an index of all the notes with the `#pinned` tag. 28 | 29 | ### Additional features 30 | 31 | - **New Note with Same Location and Tags**: Creates a new note in the same directory as the currently focused note, copying its tags. This can be triggered from the command palette or by clicking the ribbon icon in the Obsidian UI. See the template in the settings for additional options. 32 | - **Priotity tag**: Indices are sorted alphabetically, but notes that have the priority tag (`#top` by default) are pushed to the top and formatted in bold. 33 | - **Title property**: For notes that have the `title` property in their metadata, the title is written in the index next to the link. This is useful for example when managing citation notes, usually named by their citation key by the Citations plugin. Having the title next to the citation key helps identify the notes in an index. 34 | - **Index formatting**: Sections in the index are derived from their tags. For instance, `#deep_learning` becomes `Deep learning` in the index. If you have an acronym then add an additional underscore before the word to make it all-caps. For example, `#_ml` becomes `ML` and `#comparisons__ml` becomes `Comparisons ML`. 35 | - **Excluded folders**: you can set folders to exclude from indexing, like the templates folder. 36 | 37 | 38 | ## Troubleshooting 39 | 40 | If indices are not appearing as expected, ensure that: 41 | - Tags are correctly spelled and used consistently. 42 | - The update interval is appropriately set according to your needs. 43 | - If the indices don't seem to update, try `view > Force Reload` or restart Obsidian. 44 | - If the block reference of the index is modified or deleted, the plugin will fail to detect the existing index and append a new index block rather than update it. If this happens, just delete the old block. 45 | 46 | ## Credits 47 | The settings page of the plugin has borrowed inspiration and code from [Templater](https://github.com/SilentVoid13/Templater) and [Liam's Periodic Notes](https://github.com/liamcain/obsidian-periodic-notes) plugins. 48 | -------------------------------------------------------------------------------- /index_notes_demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adanielnoel/obsidian-index-notes/6d3cb7b2fc14e5b445db67987cdec2113e4af799/index_notes_demo.gif -------------------------------------------------------------------------------- /main.ts: -------------------------------------------------------------------------------- 1 | import { Plugin, Modal, App, Setting } from 'obsidian'; 2 | import { DEFAULT_SETTINGS, IndexNotesSettings, IndexNotesSettingTab } from 'src/settings/Settings'; 3 | import { IndexUpdater } from 'src/indexer'; 4 | import dateFormat from "dateformat"; 5 | import YAML from 'yaml' 6 | 7 | const DATE_FORMAT = "yyyy-mm-dd"; 8 | const MARKDOWN_EXTENSION = ".md"; 9 | 10 | export default class IndexNotesPlugin extends Plugin { 11 | settings: IndexNotesSettings; 12 | update_interval_id: number; 13 | index_updater: IndexUpdater; 14 | 15 | async onload() { 16 | await this.loadSettings(); 17 | 18 | this.index_updater = new IndexUpdater(this.app, this.settings); 19 | this.index_updater.update(); 20 | this.reset_update_interval(); 21 | 22 | this.addSettingTab(new IndexNotesSettingTab(this.app, this)); 23 | 24 | this.addCommand({ 25 | id: 'new-note-same-loc-and-tags', 26 | name: 'New note with same location and tags', 27 | callback: async () => { 28 | await this.newNoteFromFocusedFile(); 29 | } 30 | }); 31 | 32 | // This creates an icon in the left ribbon. 33 | const ribbonIconEl = this.addRibbonIcon('copy-plus', 'New note by copying metadata of focused note', async () => { 34 | await this.newNoteFromFocusedFile(); 35 | }); 36 | } 37 | 38 | onunload() { 39 | window.clearInterval(this.update_interval_id); 40 | } 41 | 42 | async loadSettings() { 43 | this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData()); 44 | } 45 | 46 | async saveSettings() { 47 | await this.saveData(this.settings); 48 | } 49 | 50 | reset_update_interval() { 51 | window.clearInterval(this.update_interval_id); 52 | this.update_interval_id = window.setInterval(() => this.index_updater.update(), this.settings.update_interval_seconds * 1000); 53 | } 54 | 55 | async createFileWithContentAndOpen(newFilePath: string, fileContent: string, metadata: Object) { 56 | try { 57 | let new_file = await this.app.vault.create(newFilePath, fileContent); 58 | await this.app.workspace.getLeaf(true).openFile(new_file, { 59 | active: true, 60 | state: { 61 | mode: "source" 62 | }, 63 | }); 64 | 65 | await this.app.fileManager.processFrontMatter(new_file, fm => { 66 | for (const [key, value] of Object.entries(metadata)) { 67 | fm[key] = value; 68 | } 69 | return fm; 70 | }); 71 | } catch (error) { 72 | console.error("Error creating or processing new file:", error); 73 | } 74 | } 75 | 76 | async newNoteFromFocusedFile() { 77 | let ref_file = this.app.workspace.activeEditor?.file; 78 | if (!ref_file) { 79 | return; 80 | } 81 | 82 | let current_filepath = ref_file.path; 83 | let parent_dir = ref_file.parent?.path; 84 | let metadata_cache = this.app.metadataCache.getCache(current_filepath); 85 | let file_tags: string[] = []; 86 | if (metadata_cache?.frontmatter) { 87 | file_tags = metadata_cache.frontmatter.tags; 88 | file_tags = file_tags.filter(t => t !== this.settings.index_tag); 89 | } 90 | 91 | let now = new Date(); 92 | let new_file_metadata: Object; 93 | try { 94 | new_file_metadata = YAML.parse(this.settings.metadata_template 95 | .replace("{{today}}", dateFormat(now, DATE_FORMAT)) 96 | .replace("{{tags}}", file_tags.join(', ')) 97 | ); 98 | } catch (error) { 99 | console.error("Error parsing YAML metadata:", error); 100 | return; 101 | } 102 | 103 | new PromptModal(this.app, "New note title", async (result) => { 104 | let new_file_path = `${parent_dir}/${result}${MARKDOWN_EXTENSION}`; 105 | try { 106 | this.createFileWithContentAndOpen(new_file_path, "", new_file_metadata); 107 | } catch (error) { 108 | console.error("Error creating and opening file:", error); 109 | } 110 | }).open(); 111 | } 112 | } 113 | 114 | class PromptModal extends Modal { 115 | result: string; 116 | prompt: string; 117 | onSubmit: (result: string) => void; 118 | 119 | constructor(app: App, prompt: string, onSubmit: (result: string) => void) { 120 | super(app); 121 | this.prompt = prompt; 122 | this.onSubmit = onSubmit; 123 | } 124 | 125 | onOpen() { 126 | try { 127 | this.titleEl.innerText = this.prompt; 128 | 129 | let settingEl = new Setting(this.contentEl) 130 | .addText((text) => { 131 | text.onChange((value) => { 132 | this.result = value; 133 | }); 134 | text.setPlaceholder(""); 135 | text.inputEl.addEventListener("keydown", (evt) => this.enterCallback(evt)); 136 | text.inputEl.addClass("index-notes-prompt-modal-input"); 137 | }); 138 | settingEl.infoEl.remove(); 139 | settingEl.settingEl.focus(); 140 | } catch (error) { 141 | console.error("Error setting up modal elements:", error); 142 | } 143 | } 144 | 145 | enterCallback(evt: any) { 146 | try { 147 | if (evt.key === "Enter" && this.result.length) { 148 | this.close(); 149 | this.onSubmit(this.result); 150 | } 151 | } catch (error) { 152 | console.error("Error handling enter key press:", error); 153 | } 154 | } 155 | } 156 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "index-notes", 3 | "name": "Index Notes", 4 | "version": "1.0.1", 5 | "minAppVersion": "0.15.0", 6 | "description": "Keep your notes indexed based on their (hierarchical) tags", 7 | "author": "Alejandro Daniel Noel", 8 | "authorUrl": "https://adanielnoel.com", 9 | "isDesktopOnly": false 10 | } 11 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "obsidian-sample-plugin", 3 | "version": "1.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "obsidian-sample-plugin", 9 | "version": "1.0.0", 10 | "license": "MIT", 11 | "dependencies": { 12 | "dateformat": "^5.0.3", 13 | "yaml": "^2.3.2" 14 | }, 15 | "devDependencies": { 16 | "@popperjs/core": "^2.11.6", 17 | "@types/dateformat": "^5.0.0", 18 | "@types/node": "^16.11.6", 19 | "@typescript-eslint/eslint-plugin": "5.29.0", 20 | "@typescript-eslint/parser": "5.29.0", 21 | "builtin-modules": "3.3.0", 22 | "esbuild": "0.17.3", 23 | "obsidian": "latest", 24 | "tslib": "2.4.0", 25 | "typescript": "4.7.4" 26 | } 27 | }, 28 | "node_modules/@aashutoshrathi/word-wrap": { 29 | "version": "1.2.6", 30 | "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", 31 | "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", 32 | "dev": true, 33 | "peer": true, 34 | "engines": { 35 | "node": ">=0.10.0" 36 | } 37 | }, 38 | "node_modules/@codemirror/state": { 39 | "version": "6.2.1", 40 | "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.2.1.tgz", 41 | "integrity": "sha512-RupHSZ8+OjNT38zU9fKH2sv+Dnlr8Eb8sl4NOnnqz95mCFTZUaiRP8Xv5MeeaG0px2b8Bnfe7YGwCV3nsBhbuw==", 42 | "dev": true, 43 | "peer": true 44 | }, 45 | "node_modules/@codemirror/view": { 46 | "version": "6.14.1", 47 | "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.14.1.tgz", 48 | "integrity": "sha512-ofcsI7lRFo4N0rfnd+V3Gh2boQU3DmaaSKhDOvXUWjeOeuupMXer2e/3i9TUFN7aEIntv300EFBWPEiYVm2svg==", 49 | "dev": true, 50 | "peer": true, 51 | "dependencies": { 52 | "@codemirror/state": "^6.1.4", 53 | "style-mod": "^4.0.0", 54 | "w3c-keyname": "^2.2.4" 55 | } 56 | }, 57 | "node_modules/@esbuild/android-arm": { 58 | "version": "0.17.3", 59 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.3.tgz", 60 | "integrity": "sha512-1Mlz934GvbgdDmt26rTLmf03cAgLg5HyOgJN+ZGCeP3Q9ynYTNMn2/LQxIl7Uy+o4K6Rfi2OuLsr12JQQR8gNg==", 61 | "cpu": [ 62 | "arm" 63 | ], 64 | "dev": true, 65 | "optional": true, 66 | "os": [ 67 | "android" 68 | ], 69 | "engines": { 70 | "node": ">=12" 71 | } 72 | }, 73 | "node_modules/@esbuild/android-arm64": { 74 | "version": "0.17.3", 75 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.3.tgz", 76 | "integrity": "sha512-XvJsYo3dO3Pi4kpalkyMvfQsjxPWHYjoX4MDiB/FUM4YMfWcXa5l4VCwFWVYI1+92yxqjuqrhNg0CZg3gSouyQ==", 77 | "cpu": [ 78 | "arm64" 79 | ], 80 | "dev": true, 81 | "optional": true, 82 | "os": [ 83 | "android" 84 | ], 85 | "engines": { 86 | "node": ">=12" 87 | } 88 | }, 89 | "node_modules/@esbuild/android-x64": { 90 | "version": "0.17.3", 91 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.3.tgz", 92 | "integrity": "sha512-nuV2CmLS07Gqh5/GrZLuqkU9Bm6H6vcCspM+zjp9TdQlxJtIe+qqEXQChmfc7nWdyr/yz3h45Utk1tUn8Cz5+A==", 93 | "cpu": [ 94 | "x64" 95 | ], 96 | "dev": true, 97 | "optional": true, 98 | "os": [ 99 | "android" 100 | ], 101 | "engines": { 102 | "node": ">=12" 103 | } 104 | }, 105 | "node_modules/@esbuild/darwin-arm64": { 106 | "version": "0.17.3", 107 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.3.tgz", 108 | "integrity": "sha512-01Hxaaat6m0Xp9AXGM8mjFtqqwDjzlMP0eQq9zll9U85ttVALGCGDuEvra5Feu/NbP5AEP1MaopPwzsTcUq1cw==", 109 | "cpu": [ 110 | "arm64" 111 | ], 112 | "dev": true, 113 | "optional": true, 114 | "os": [ 115 | "darwin" 116 | ], 117 | "engines": { 118 | "node": ">=12" 119 | } 120 | }, 121 | "node_modules/@esbuild/darwin-x64": { 122 | "version": "0.17.3", 123 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.3.tgz", 124 | "integrity": "sha512-Eo2gq0Q/er2muf8Z83X21UFoB7EU6/m3GNKvrhACJkjVThd0uA+8RfKpfNhuMCl1bKRfBzKOk6xaYKQZ4lZqvA==", 125 | "cpu": [ 126 | "x64" 127 | ], 128 | "dev": true, 129 | "optional": true, 130 | "os": [ 131 | "darwin" 132 | ], 133 | "engines": { 134 | "node": ">=12" 135 | } 136 | }, 137 | "node_modules/@esbuild/freebsd-arm64": { 138 | "version": "0.17.3", 139 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.3.tgz", 140 | "integrity": "sha512-CN62ESxaquP61n1ZjQP/jZte8CE09M6kNn3baos2SeUfdVBkWN5n6vGp2iKyb/bm/x4JQzEvJgRHLGd5F5b81w==", 141 | "cpu": [ 142 | "arm64" 143 | ], 144 | "dev": true, 145 | "optional": true, 146 | "os": [ 147 | "freebsd" 148 | ], 149 | "engines": { 150 | "node": ">=12" 151 | } 152 | }, 153 | "node_modules/@esbuild/freebsd-x64": { 154 | "version": "0.17.3", 155 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.3.tgz", 156 | "integrity": "sha512-feq+K8TxIznZE+zhdVurF3WNJ/Sa35dQNYbaqM/wsCbWdzXr5lyq+AaTUSER2cUR+SXPnd/EY75EPRjf4s1SLg==", 157 | "cpu": [ 158 | "x64" 159 | ], 160 | "dev": true, 161 | "optional": true, 162 | "os": [ 163 | "freebsd" 164 | ], 165 | "engines": { 166 | "node": ">=12" 167 | } 168 | }, 169 | "node_modules/@esbuild/linux-arm": { 170 | "version": "0.17.3", 171 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.3.tgz", 172 | "integrity": "sha512-CLP3EgyNuPcg2cshbwkqYy5bbAgK+VhyfMU7oIYyn+x4Y67xb5C5ylxsNUjRmr8BX+MW3YhVNm6Lq6FKtRTWHQ==", 173 | "cpu": [ 174 | "arm" 175 | ], 176 | "dev": true, 177 | "optional": true, 178 | "os": [ 179 | "linux" 180 | ], 181 | "engines": { 182 | "node": ">=12" 183 | } 184 | }, 185 | "node_modules/@esbuild/linux-arm64": { 186 | "version": "0.17.3", 187 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.3.tgz", 188 | "integrity": "sha512-JHeZXD4auLYBnrKn6JYJ0o5nWJI9PhChA/Nt0G4MvLaMrvXuWnY93R3a7PiXeJQphpL1nYsaMcoV2QtuvRnF/g==", 189 | "cpu": [ 190 | "arm64" 191 | ], 192 | "dev": true, 193 | "optional": true, 194 | "os": [ 195 | "linux" 196 | ], 197 | "engines": { 198 | "node": ">=12" 199 | } 200 | }, 201 | "node_modules/@esbuild/linux-ia32": { 202 | "version": "0.17.3", 203 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.3.tgz", 204 | "integrity": "sha512-FyXlD2ZjZqTFh0sOQxFDiWG1uQUEOLbEh9gKN/7pFxck5Vw0qjWSDqbn6C10GAa1rXJpwsntHcmLqydY9ST9ZA==", 205 | "cpu": [ 206 | "ia32" 207 | ], 208 | "dev": true, 209 | "optional": true, 210 | "os": [ 211 | "linux" 212 | ], 213 | "engines": { 214 | "node": ">=12" 215 | } 216 | }, 217 | "node_modules/@esbuild/linux-loong64": { 218 | "version": "0.17.3", 219 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.3.tgz", 220 | "integrity": "sha512-OrDGMvDBI2g7s04J8dh8/I7eSO+/E7nMDT2Z5IruBfUO/RiigF1OF6xoH33Dn4W/OwAWSUf1s2nXamb28ZklTA==", 221 | "cpu": [ 222 | "loong64" 223 | ], 224 | "dev": true, 225 | "optional": true, 226 | "os": [ 227 | "linux" 228 | ], 229 | "engines": { 230 | "node": ">=12" 231 | } 232 | }, 233 | "node_modules/@esbuild/linux-mips64el": { 234 | "version": "0.17.3", 235 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.3.tgz", 236 | "integrity": "sha512-DcnUpXnVCJvmv0TzuLwKBC2nsQHle8EIiAJiJ+PipEVC16wHXaPEKP0EqN8WnBe0TPvMITOUlP2aiL5YMld+CQ==", 237 | "cpu": [ 238 | "mips64el" 239 | ], 240 | "dev": true, 241 | "optional": true, 242 | "os": [ 243 | "linux" 244 | ], 245 | "engines": { 246 | "node": ">=12" 247 | } 248 | }, 249 | "node_modules/@esbuild/linux-ppc64": { 250 | "version": "0.17.3", 251 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.3.tgz", 252 | "integrity": "sha512-BDYf/l1WVhWE+FHAW3FzZPtVlk9QsrwsxGzABmN4g8bTjmhazsId3h127pliDRRu5674k1Y2RWejbpN46N9ZhQ==", 253 | "cpu": [ 254 | "ppc64" 255 | ], 256 | "dev": true, 257 | "optional": true, 258 | "os": [ 259 | "linux" 260 | ], 261 | "engines": { 262 | "node": ">=12" 263 | } 264 | }, 265 | "node_modules/@esbuild/linux-riscv64": { 266 | "version": "0.17.3", 267 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.3.tgz", 268 | "integrity": "sha512-WViAxWYMRIi+prTJTyV1wnqd2mS2cPqJlN85oscVhXdb/ZTFJdrpaqm/uDsZPGKHtbg5TuRX/ymKdOSk41YZow==", 269 | "cpu": [ 270 | "riscv64" 271 | ], 272 | "dev": true, 273 | "optional": true, 274 | "os": [ 275 | "linux" 276 | ], 277 | "engines": { 278 | "node": ">=12" 279 | } 280 | }, 281 | "node_modules/@esbuild/linux-s390x": { 282 | "version": "0.17.3", 283 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.3.tgz", 284 | "integrity": "sha512-Iw8lkNHUC4oGP1O/KhumcVy77u2s6+KUjieUqzEU3XuWJqZ+AY7uVMrrCbAiwWTkpQHkr00BuXH5RpC6Sb/7Ug==", 285 | "cpu": [ 286 | "s390x" 287 | ], 288 | "dev": true, 289 | "optional": true, 290 | "os": [ 291 | "linux" 292 | ], 293 | "engines": { 294 | "node": ">=12" 295 | } 296 | }, 297 | "node_modules/@esbuild/linux-x64": { 298 | "version": "0.17.3", 299 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.3.tgz", 300 | "integrity": "sha512-0AGkWQMzeoeAtXQRNB3s4J1/T2XbigM2/Mn2yU1tQSmQRmHIZdkGbVq2A3aDdNslPyhb9/lH0S5GMTZ4xsjBqg==", 301 | "cpu": [ 302 | "x64" 303 | ], 304 | "dev": true, 305 | "optional": true, 306 | "os": [ 307 | "linux" 308 | ], 309 | "engines": { 310 | "node": ">=12" 311 | } 312 | }, 313 | "node_modules/@esbuild/netbsd-x64": { 314 | "version": "0.17.3", 315 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.3.tgz", 316 | "integrity": "sha512-4+rR/WHOxIVh53UIQIICryjdoKdHsFZFD4zLSonJ9RRw7bhKzVyXbnRPsWSfwybYqw9sB7ots/SYyufL1mBpEg==", 317 | "cpu": [ 318 | "x64" 319 | ], 320 | "dev": true, 321 | "optional": true, 322 | "os": [ 323 | "netbsd" 324 | ], 325 | "engines": { 326 | "node": ">=12" 327 | } 328 | }, 329 | "node_modules/@esbuild/openbsd-x64": { 330 | "version": "0.17.3", 331 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.3.tgz", 332 | "integrity": "sha512-cVpWnkx9IYg99EjGxa5Gc0XmqumtAwK3aoz7O4Dii2vko+qXbkHoujWA68cqXjhh6TsLaQelfDO4MVnyr+ODeA==", 333 | "cpu": [ 334 | "x64" 335 | ], 336 | "dev": true, 337 | "optional": true, 338 | "os": [ 339 | "openbsd" 340 | ], 341 | "engines": { 342 | "node": ">=12" 343 | } 344 | }, 345 | "node_modules/@esbuild/sunos-x64": { 346 | "version": "0.17.3", 347 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.3.tgz", 348 | "integrity": "sha512-RxmhKLbTCDAY2xOfrww6ieIZkZF+KBqG7S2Ako2SljKXRFi+0863PspK74QQ7JpmWwncChY25JTJSbVBYGQk2Q==", 349 | "cpu": [ 350 | "x64" 351 | ], 352 | "dev": true, 353 | "optional": true, 354 | "os": [ 355 | "sunos" 356 | ], 357 | "engines": { 358 | "node": ">=12" 359 | } 360 | }, 361 | "node_modules/@esbuild/win32-arm64": { 362 | "version": "0.17.3", 363 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.3.tgz", 364 | "integrity": "sha512-0r36VeEJ4efwmofxVJRXDjVRP2jTmv877zc+i+Pc7MNsIr38NfsjkQj23AfF7l0WbB+RQ7VUb+LDiqC/KY/M/A==", 365 | "cpu": [ 366 | "arm64" 367 | ], 368 | "dev": true, 369 | "optional": true, 370 | "os": [ 371 | "win32" 372 | ], 373 | "engines": { 374 | "node": ">=12" 375 | } 376 | }, 377 | "node_modules/@esbuild/win32-ia32": { 378 | "version": "0.17.3", 379 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.3.tgz", 380 | "integrity": "sha512-wgO6rc7uGStH22nur4aLFcq7Wh86bE9cOFmfTr/yxN3BXvDEdCSXyKkO+U5JIt53eTOgC47v9k/C1bITWL/Teg==", 381 | "cpu": [ 382 | "ia32" 383 | ], 384 | "dev": true, 385 | "optional": true, 386 | "os": [ 387 | "win32" 388 | ], 389 | "engines": { 390 | "node": ">=12" 391 | } 392 | }, 393 | "node_modules/@esbuild/win32-x64": { 394 | "version": "0.17.3", 395 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.3.tgz", 396 | "integrity": "sha512-FdVl64OIuiKjgXBjwZaJLKp0eaEckifbhn10dXWhysMJkWblg3OEEGKSIyhiD5RSgAya8WzP3DNkngtIg3Nt7g==", 397 | "cpu": [ 398 | "x64" 399 | ], 400 | "dev": true, 401 | "optional": true, 402 | "os": [ 403 | "win32" 404 | ], 405 | "engines": { 406 | "node": ">=12" 407 | } 408 | }, 409 | "node_modules/@eslint-community/eslint-utils": { 410 | "version": "4.4.0", 411 | "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", 412 | "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", 413 | "dev": true, 414 | "peer": true, 415 | "dependencies": { 416 | "eslint-visitor-keys": "^3.3.0" 417 | }, 418 | "engines": { 419 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 420 | }, 421 | "peerDependencies": { 422 | "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" 423 | } 424 | }, 425 | "node_modules/@eslint-community/regexpp": { 426 | "version": "4.5.1", 427 | "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", 428 | "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", 429 | "dev": true, 430 | "peer": true, 431 | "engines": { 432 | "node": "^12.0.0 || ^14.0.0 || >=16.0.0" 433 | } 434 | }, 435 | "node_modules/@eslint/eslintrc": { 436 | "version": "2.1.0", 437 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.0.tgz", 438 | "integrity": "sha512-Lj7DECXqIVCqnqjjHMPna4vn6GJcMgul/wuS0je9OZ9gsL0zzDpKPVtcG1HaDVc+9y+qgXneTeUMbCqXJNpH1A==", 439 | "dev": true, 440 | "peer": true, 441 | "dependencies": { 442 | "ajv": "^6.12.4", 443 | "debug": "^4.3.2", 444 | "espree": "^9.6.0", 445 | "globals": "^13.19.0", 446 | "ignore": "^5.2.0", 447 | "import-fresh": "^3.2.1", 448 | "js-yaml": "^4.1.0", 449 | "minimatch": "^3.1.2", 450 | "strip-json-comments": "^3.1.1" 451 | }, 452 | "engines": { 453 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 454 | }, 455 | "funding": { 456 | "url": "https://opencollective.com/eslint" 457 | } 458 | }, 459 | "node_modules/@eslint/js": { 460 | "version": "8.44.0", 461 | "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.44.0.tgz", 462 | "integrity": "sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==", 463 | "dev": true, 464 | "peer": true, 465 | "engines": { 466 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 467 | } 468 | }, 469 | "node_modules/@humanwhocodes/config-array": { 470 | "version": "0.11.10", 471 | "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", 472 | "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", 473 | "dev": true, 474 | "peer": true, 475 | "dependencies": { 476 | "@humanwhocodes/object-schema": "^1.2.1", 477 | "debug": "^4.1.1", 478 | "minimatch": "^3.0.5" 479 | }, 480 | "engines": { 481 | "node": ">=10.10.0" 482 | } 483 | }, 484 | "node_modules/@humanwhocodes/module-importer": { 485 | "version": "1.0.1", 486 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", 487 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", 488 | "dev": true, 489 | "peer": true, 490 | "engines": { 491 | "node": ">=12.22" 492 | }, 493 | "funding": { 494 | "type": "github", 495 | "url": "https://github.com/sponsors/nzakas" 496 | } 497 | }, 498 | "node_modules/@humanwhocodes/object-schema": { 499 | "version": "1.2.1", 500 | "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", 501 | "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", 502 | "dev": true, 503 | "peer": true 504 | }, 505 | "node_modules/@nodelib/fs.scandir": { 506 | "version": "2.1.5", 507 | "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", 508 | "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", 509 | "dev": true, 510 | "dependencies": { 511 | "@nodelib/fs.stat": "2.0.5", 512 | "run-parallel": "^1.1.9" 513 | }, 514 | "engines": { 515 | "node": ">= 8" 516 | } 517 | }, 518 | "node_modules/@nodelib/fs.stat": { 519 | "version": "2.0.5", 520 | "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", 521 | "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", 522 | "dev": true, 523 | "engines": { 524 | "node": ">= 8" 525 | } 526 | }, 527 | "node_modules/@nodelib/fs.walk": { 528 | "version": "1.2.8", 529 | "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", 530 | "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", 531 | "dev": true, 532 | "dependencies": { 533 | "@nodelib/fs.scandir": "2.1.5", 534 | "fastq": "^1.6.0" 535 | }, 536 | "engines": { 537 | "node": ">= 8" 538 | } 539 | }, 540 | "node_modules/@popperjs/core": { 541 | "version": "2.11.8", 542 | "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", 543 | "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", 544 | "dev": true, 545 | "funding": { 546 | "type": "opencollective", 547 | "url": "https://opencollective.com/popperjs" 548 | } 549 | }, 550 | "node_modules/@types/codemirror": { 551 | "version": "0.0.108", 552 | "resolved": "https://registry.npmjs.org/@types/codemirror/-/codemirror-0.0.108.tgz", 553 | "integrity": "sha512-3FGFcus0P7C2UOGCNUVENqObEb4SFk+S8Dnxq7K6aIsLVs/vDtlangl3PEO0ykaKXyK56swVF6Nho7VsA44uhw==", 554 | "dev": true, 555 | "dependencies": { 556 | "@types/tern": "*" 557 | } 558 | }, 559 | "node_modules/@types/dateformat": { 560 | "version": "5.0.0", 561 | "resolved": "https://registry.npmjs.org/@types/dateformat/-/dateformat-5.0.0.tgz", 562 | "integrity": "sha512-SZg4JdHIWHQGEokbYGZSDvo5wA4TLYPXaqhigs/wH+REDOejcJzgH+qyY+HtEUtWOZxEUkbhbdYPqQDiEgrXeA==", 563 | "dev": true 564 | }, 565 | "node_modules/@types/estree": { 566 | "version": "1.0.1", 567 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", 568 | "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==", 569 | "dev": true 570 | }, 571 | "node_modules/@types/json-schema": { 572 | "version": "7.0.12", 573 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", 574 | "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==", 575 | "dev": true 576 | }, 577 | "node_modules/@types/node": { 578 | "version": "16.18.38", 579 | "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.38.tgz", 580 | "integrity": "sha512-6sfo1qTulpVbkxECP+AVrHV9OoJqhzCsfTNp5NIG+enM4HyM3HvZCO798WShIXBN0+QtDIcutJCjsVYnQP5rIQ==", 581 | "dev": true 582 | }, 583 | "node_modules/@types/tern": { 584 | "version": "0.23.4", 585 | "resolved": "https://registry.npmjs.org/@types/tern/-/tern-0.23.4.tgz", 586 | "integrity": "sha512-JAUw1iXGO1qaWwEOzxTKJZ/5JxVeON9kvGZ/osgZaJImBnyjyn0cjovPsf6FNLmyGY8Vw9DoXZCMlfMkMwHRWg==", 587 | "dev": true, 588 | "dependencies": { 589 | "@types/estree": "*" 590 | } 591 | }, 592 | "node_modules/@typescript-eslint/eslint-plugin": { 593 | "version": "5.29.0", 594 | "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.29.0.tgz", 595 | "integrity": "sha512-kgTsISt9pM53yRFQmLZ4npj99yGl3x3Pl7z4eA66OuTzAGC4bQB5H5fuLwPnqTKU3yyrrg4MIhjF17UYnL4c0w==", 596 | "dev": true, 597 | "dependencies": { 598 | "@typescript-eslint/scope-manager": "5.29.0", 599 | "@typescript-eslint/type-utils": "5.29.0", 600 | "@typescript-eslint/utils": "5.29.0", 601 | "debug": "^4.3.4", 602 | "functional-red-black-tree": "^1.0.1", 603 | "ignore": "^5.2.0", 604 | "regexpp": "^3.2.0", 605 | "semver": "^7.3.7", 606 | "tsutils": "^3.21.0" 607 | }, 608 | "engines": { 609 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 610 | }, 611 | "funding": { 612 | "type": "opencollective", 613 | "url": "https://opencollective.com/typescript-eslint" 614 | }, 615 | "peerDependencies": { 616 | "@typescript-eslint/parser": "^5.0.0", 617 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 618 | }, 619 | "peerDependenciesMeta": { 620 | "typescript": { 621 | "optional": true 622 | } 623 | } 624 | }, 625 | "node_modules/@typescript-eslint/parser": { 626 | "version": "5.29.0", 627 | "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.29.0.tgz", 628 | "integrity": "sha512-ruKWTv+x0OOxbzIw9nW5oWlUopvP/IQDjB5ZqmTglLIoDTctLlAJpAQFpNPJP/ZI7hTT9sARBosEfaKbcFuECw==", 629 | "dev": true, 630 | "dependencies": { 631 | "@typescript-eslint/scope-manager": "5.29.0", 632 | "@typescript-eslint/types": "5.29.0", 633 | "@typescript-eslint/typescript-estree": "5.29.0", 634 | "debug": "^4.3.4" 635 | }, 636 | "engines": { 637 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 638 | }, 639 | "funding": { 640 | "type": "opencollective", 641 | "url": "https://opencollective.com/typescript-eslint" 642 | }, 643 | "peerDependencies": { 644 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 645 | }, 646 | "peerDependenciesMeta": { 647 | "typescript": { 648 | "optional": true 649 | } 650 | } 651 | }, 652 | "node_modules/@typescript-eslint/scope-manager": { 653 | "version": "5.29.0", 654 | "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.29.0.tgz", 655 | "integrity": "sha512-etbXUT0FygFi2ihcxDZjz21LtC+Eps9V2xVx09zFoN44RRHPrkMflidGMI+2dUs821zR1tDS6Oc9IXxIjOUZwA==", 656 | "dev": true, 657 | "dependencies": { 658 | "@typescript-eslint/types": "5.29.0", 659 | "@typescript-eslint/visitor-keys": "5.29.0" 660 | }, 661 | "engines": { 662 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 663 | }, 664 | "funding": { 665 | "type": "opencollective", 666 | "url": "https://opencollective.com/typescript-eslint" 667 | } 668 | }, 669 | "node_modules/@typescript-eslint/type-utils": { 670 | "version": "5.29.0", 671 | "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.29.0.tgz", 672 | "integrity": "sha512-JK6bAaaiJozbox3K220VRfCzLa9n0ib/J+FHIwnaV3Enw/TO267qe0pM1b1QrrEuy6xun374XEAsRlA86JJnyg==", 673 | "dev": true, 674 | "dependencies": { 675 | "@typescript-eslint/utils": "5.29.0", 676 | "debug": "^4.3.4", 677 | "tsutils": "^3.21.0" 678 | }, 679 | "engines": { 680 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 681 | }, 682 | "funding": { 683 | "type": "opencollective", 684 | "url": "https://opencollective.com/typescript-eslint" 685 | }, 686 | "peerDependencies": { 687 | "eslint": "*" 688 | }, 689 | "peerDependenciesMeta": { 690 | "typescript": { 691 | "optional": true 692 | } 693 | } 694 | }, 695 | "node_modules/@typescript-eslint/types": { 696 | "version": "5.29.0", 697 | "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.29.0.tgz", 698 | "integrity": "sha512-X99VbqvAXOMdVyfFmksMy3u8p8yoRGITgU1joBJPzeYa0rhdf5ok9S56/itRoUSh99fiDoMtarSIJXo7H/SnOg==", 699 | "dev": true, 700 | "engines": { 701 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 702 | }, 703 | "funding": { 704 | "type": "opencollective", 705 | "url": "https://opencollective.com/typescript-eslint" 706 | } 707 | }, 708 | "node_modules/@typescript-eslint/typescript-estree": { 709 | "version": "5.29.0", 710 | "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.29.0.tgz", 711 | "integrity": "sha512-mQvSUJ/JjGBdvo+1LwC+GY2XmSYjK1nAaVw2emp/E61wEVYEyibRHCqm1I1vEKbXCpUKuW4G7u9ZCaZhJbLoNQ==", 712 | "dev": true, 713 | "dependencies": { 714 | "@typescript-eslint/types": "5.29.0", 715 | "@typescript-eslint/visitor-keys": "5.29.0", 716 | "debug": "^4.3.4", 717 | "globby": "^11.1.0", 718 | "is-glob": "^4.0.3", 719 | "semver": "^7.3.7", 720 | "tsutils": "^3.21.0" 721 | }, 722 | "engines": { 723 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 724 | }, 725 | "funding": { 726 | "type": "opencollective", 727 | "url": "https://opencollective.com/typescript-eslint" 728 | }, 729 | "peerDependenciesMeta": { 730 | "typescript": { 731 | "optional": true 732 | } 733 | } 734 | }, 735 | "node_modules/@typescript-eslint/utils": { 736 | "version": "5.29.0", 737 | "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.29.0.tgz", 738 | "integrity": "sha512-3Eos6uP1nyLOBayc/VUdKZikV90HahXE5Dx9L5YlSd/7ylQPXhLk1BYb29SDgnBnTp+jmSZUU0QxUiyHgW4p7A==", 739 | "dev": true, 740 | "dependencies": { 741 | "@types/json-schema": "^7.0.9", 742 | "@typescript-eslint/scope-manager": "5.29.0", 743 | "@typescript-eslint/types": "5.29.0", 744 | "@typescript-eslint/typescript-estree": "5.29.0", 745 | "eslint-scope": "^5.1.1", 746 | "eslint-utils": "^3.0.0" 747 | }, 748 | "engines": { 749 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 750 | }, 751 | "funding": { 752 | "type": "opencollective", 753 | "url": "https://opencollective.com/typescript-eslint" 754 | }, 755 | "peerDependencies": { 756 | "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" 757 | } 758 | }, 759 | "node_modules/@typescript-eslint/visitor-keys": { 760 | "version": "5.29.0", 761 | "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.29.0.tgz", 762 | "integrity": "sha512-Hpb/mCWsjILvikMQoZIE3voc9wtQcS0A9FUw3h8bhr9UxBdtI/tw1ZDZUOXHXLOVMedKCH5NxyzATwnU78bWCQ==", 763 | "dev": true, 764 | "dependencies": { 765 | "@typescript-eslint/types": "5.29.0", 766 | "eslint-visitor-keys": "^3.3.0" 767 | }, 768 | "engines": { 769 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 770 | }, 771 | "funding": { 772 | "type": "opencollective", 773 | "url": "https://opencollective.com/typescript-eslint" 774 | } 775 | }, 776 | "node_modules/acorn": { 777 | "version": "8.10.0", 778 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", 779 | "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", 780 | "dev": true, 781 | "peer": true, 782 | "bin": { 783 | "acorn": "bin/acorn" 784 | }, 785 | "engines": { 786 | "node": ">=0.4.0" 787 | } 788 | }, 789 | "node_modules/acorn-jsx": { 790 | "version": "5.3.2", 791 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 792 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 793 | "dev": true, 794 | "peer": true, 795 | "peerDependencies": { 796 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 797 | } 798 | }, 799 | "node_modules/ajv": { 800 | "version": "6.12.6", 801 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 802 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 803 | "dev": true, 804 | "peer": true, 805 | "dependencies": { 806 | "fast-deep-equal": "^3.1.1", 807 | "fast-json-stable-stringify": "^2.0.0", 808 | "json-schema-traverse": "^0.4.1", 809 | "uri-js": "^4.2.2" 810 | }, 811 | "funding": { 812 | "type": "github", 813 | "url": "https://github.com/sponsors/epoberezkin" 814 | } 815 | }, 816 | "node_modules/ansi-regex": { 817 | "version": "5.0.1", 818 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 819 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 820 | "dev": true, 821 | "peer": true, 822 | "engines": { 823 | "node": ">=8" 824 | } 825 | }, 826 | "node_modules/ansi-styles": { 827 | "version": "4.3.0", 828 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 829 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 830 | "dev": true, 831 | "peer": true, 832 | "dependencies": { 833 | "color-convert": "^2.0.1" 834 | }, 835 | "engines": { 836 | "node": ">=8" 837 | }, 838 | "funding": { 839 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 840 | } 841 | }, 842 | "node_modules/argparse": { 843 | "version": "2.0.1", 844 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 845 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 846 | "dev": true, 847 | "peer": true 848 | }, 849 | "node_modules/array-union": { 850 | "version": "2.1.0", 851 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", 852 | "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", 853 | "dev": true, 854 | "engines": { 855 | "node": ">=8" 856 | } 857 | }, 858 | "node_modules/balanced-match": { 859 | "version": "1.0.2", 860 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 861 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 862 | "dev": true, 863 | "peer": true 864 | }, 865 | "node_modules/brace-expansion": { 866 | "version": "1.1.11", 867 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 868 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 869 | "dev": true, 870 | "peer": true, 871 | "dependencies": { 872 | "balanced-match": "^1.0.0", 873 | "concat-map": "0.0.1" 874 | } 875 | }, 876 | "node_modules/braces": { 877 | "version": "3.0.2", 878 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 879 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 880 | "dev": true, 881 | "dependencies": { 882 | "fill-range": "^7.0.1" 883 | }, 884 | "engines": { 885 | "node": ">=8" 886 | } 887 | }, 888 | "node_modules/builtin-modules": { 889 | "version": "3.3.0", 890 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", 891 | "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", 892 | "dev": true, 893 | "engines": { 894 | "node": ">=6" 895 | }, 896 | "funding": { 897 | "url": "https://github.com/sponsors/sindresorhus" 898 | } 899 | }, 900 | "node_modules/callsites": { 901 | "version": "3.1.0", 902 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 903 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 904 | "dev": true, 905 | "peer": true, 906 | "engines": { 907 | "node": ">=6" 908 | } 909 | }, 910 | "node_modules/chalk": { 911 | "version": "4.1.2", 912 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 913 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 914 | "dev": true, 915 | "peer": true, 916 | "dependencies": { 917 | "ansi-styles": "^4.1.0", 918 | "supports-color": "^7.1.0" 919 | }, 920 | "engines": { 921 | "node": ">=10" 922 | }, 923 | "funding": { 924 | "url": "https://github.com/chalk/chalk?sponsor=1" 925 | } 926 | }, 927 | "node_modules/color-convert": { 928 | "version": "2.0.1", 929 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 930 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 931 | "dev": true, 932 | "peer": true, 933 | "dependencies": { 934 | "color-name": "~1.1.4" 935 | }, 936 | "engines": { 937 | "node": ">=7.0.0" 938 | } 939 | }, 940 | "node_modules/color-name": { 941 | "version": "1.1.4", 942 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 943 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 944 | "dev": true, 945 | "peer": true 946 | }, 947 | "node_modules/concat-map": { 948 | "version": "0.0.1", 949 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 950 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 951 | "dev": true, 952 | "peer": true 953 | }, 954 | "node_modules/cross-spawn": { 955 | "version": "7.0.3", 956 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 957 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 958 | "dev": true, 959 | "peer": true, 960 | "dependencies": { 961 | "path-key": "^3.1.0", 962 | "shebang-command": "^2.0.0", 963 | "which": "^2.0.1" 964 | }, 965 | "engines": { 966 | "node": ">= 8" 967 | } 968 | }, 969 | "node_modules/dateformat": { 970 | "version": "5.0.3", 971 | "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-5.0.3.tgz", 972 | "integrity": "sha512-Kvr6HmPXUMerlLcLF+Pwq3K7apHpYmGDVqrxcDasBg86UcKeTSNWbEzU8bwdXnxnR44FtMhJAxI4Bov6Y/KUfA==", 973 | "engines": { 974 | "node": ">=12.20" 975 | } 976 | }, 977 | "node_modules/debug": { 978 | "version": "4.3.4", 979 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", 980 | "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", 981 | "dev": true, 982 | "dependencies": { 983 | "ms": "2.1.2" 984 | }, 985 | "engines": { 986 | "node": ">=6.0" 987 | }, 988 | "peerDependenciesMeta": { 989 | "supports-color": { 990 | "optional": true 991 | } 992 | } 993 | }, 994 | "node_modules/deep-is": { 995 | "version": "0.1.4", 996 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 997 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 998 | "dev": true, 999 | "peer": true 1000 | }, 1001 | "node_modules/dir-glob": { 1002 | "version": "3.0.1", 1003 | "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", 1004 | "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", 1005 | "dev": true, 1006 | "dependencies": { 1007 | "path-type": "^4.0.0" 1008 | }, 1009 | "engines": { 1010 | "node": ">=8" 1011 | } 1012 | }, 1013 | "node_modules/doctrine": { 1014 | "version": "3.0.0", 1015 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 1016 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 1017 | "dev": true, 1018 | "peer": true, 1019 | "dependencies": { 1020 | "esutils": "^2.0.2" 1021 | }, 1022 | "engines": { 1023 | "node": ">=6.0.0" 1024 | } 1025 | }, 1026 | "node_modules/esbuild": { 1027 | "version": "0.17.3", 1028 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.3.tgz", 1029 | "integrity": "sha512-9n3AsBRe6sIyOc6kmoXg2ypCLgf3eZSraWFRpnkto+svt8cZNuKTkb1bhQcitBcvIqjNiK7K0J3KPmwGSfkA8g==", 1030 | "dev": true, 1031 | "hasInstallScript": true, 1032 | "bin": { 1033 | "esbuild": "bin/esbuild" 1034 | }, 1035 | "engines": { 1036 | "node": ">=12" 1037 | }, 1038 | "optionalDependencies": { 1039 | "@esbuild/android-arm": "0.17.3", 1040 | "@esbuild/android-arm64": "0.17.3", 1041 | "@esbuild/android-x64": "0.17.3", 1042 | "@esbuild/darwin-arm64": "0.17.3", 1043 | "@esbuild/darwin-x64": "0.17.3", 1044 | "@esbuild/freebsd-arm64": "0.17.3", 1045 | "@esbuild/freebsd-x64": "0.17.3", 1046 | "@esbuild/linux-arm": "0.17.3", 1047 | "@esbuild/linux-arm64": "0.17.3", 1048 | "@esbuild/linux-ia32": "0.17.3", 1049 | "@esbuild/linux-loong64": "0.17.3", 1050 | "@esbuild/linux-mips64el": "0.17.3", 1051 | "@esbuild/linux-ppc64": "0.17.3", 1052 | "@esbuild/linux-riscv64": "0.17.3", 1053 | "@esbuild/linux-s390x": "0.17.3", 1054 | "@esbuild/linux-x64": "0.17.3", 1055 | "@esbuild/netbsd-x64": "0.17.3", 1056 | "@esbuild/openbsd-x64": "0.17.3", 1057 | "@esbuild/sunos-x64": "0.17.3", 1058 | "@esbuild/win32-arm64": "0.17.3", 1059 | "@esbuild/win32-ia32": "0.17.3", 1060 | "@esbuild/win32-x64": "0.17.3" 1061 | } 1062 | }, 1063 | "node_modules/escape-string-regexp": { 1064 | "version": "4.0.0", 1065 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 1066 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 1067 | "dev": true, 1068 | "peer": true, 1069 | "engines": { 1070 | "node": ">=10" 1071 | }, 1072 | "funding": { 1073 | "url": "https://github.com/sponsors/sindresorhus" 1074 | } 1075 | }, 1076 | "node_modules/eslint": { 1077 | "version": "8.44.0", 1078 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.44.0.tgz", 1079 | "integrity": "sha512-0wpHoUbDUHgNCyvFB5aXLiQVfK9B0at6gUvzy83k4kAsQ/u769TQDX6iKC+aO4upIHO9WSaA3QoXYQDHbNwf1A==", 1080 | "dev": true, 1081 | "peer": true, 1082 | "dependencies": { 1083 | "@eslint-community/eslint-utils": "^4.2.0", 1084 | "@eslint-community/regexpp": "^4.4.0", 1085 | "@eslint/eslintrc": "^2.1.0", 1086 | "@eslint/js": "8.44.0", 1087 | "@humanwhocodes/config-array": "^0.11.10", 1088 | "@humanwhocodes/module-importer": "^1.0.1", 1089 | "@nodelib/fs.walk": "^1.2.8", 1090 | "ajv": "^6.10.0", 1091 | "chalk": "^4.0.0", 1092 | "cross-spawn": "^7.0.2", 1093 | "debug": "^4.3.2", 1094 | "doctrine": "^3.0.0", 1095 | "escape-string-regexp": "^4.0.0", 1096 | "eslint-scope": "^7.2.0", 1097 | "eslint-visitor-keys": "^3.4.1", 1098 | "espree": "^9.6.0", 1099 | "esquery": "^1.4.2", 1100 | "esutils": "^2.0.2", 1101 | "fast-deep-equal": "^3.1.3", 1102 | "file-entry-cache": "^6.0.1", 1103 | "find-up": "^5.0.0", 1104 | "glob-parent": "^6.0.2", 1105 | "globals": "^13.19.0", 1106 | "graphemer": "^1.4.0", 1107 | "ignore": "^5.2.0", 1108 | "import-fresh": "^3.0.0", 1109 | "imurmurhash": "^0.1.4", 1110 | "is-glob": "^4.0.0", 1111 | "is-path-inside": "^3.0.3", 1112 | "js-yaml": "^4.1.0", 1113 | "json-stable-stringify-without-jsonify": "^1.0.1", 1114 | "levn": "^0.4.1", 1115 | "lodash.merge": "^4.6.2", 1116 | "minimatch": "^3.1.2", 1117 | "natural-compare": "^1.4.0", 1118 | "optionator": "^0.9.3", 1119 | "strip-ansi": "^6.0.1", 1120 | "strip-json-comments": "^3.1.0", 1121 | "text-table": "^0.2.0" 1122 | }, 1123 | "bin": { 1124 | "eslint": "bin/eslint.js" 1125 | }, 1126 | "engines": { 1127 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1128 | }, 1129 | "funding": { 1130 | "url": "https://opencollective.com/eslint" 1131 | } 1132 | }, 1133 | "node_modules/eslint-scope": { 1134 | "version": "5.1.1", 1135 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", 1136 | "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", 1137 | "dev": true, 1138 | "dependencies": { 1139 | "esrecurse": "^4.3.0", 1140 | "estraverse": "^4.1.1" 1141 | }, 1142 | "engines": { 1143 | "node": ">=8.0.0" 1144 | } 1145 | }, 1146 | "node_modules/eslint-utils": { 1147 | "version": "3.0.0", 1148 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", 1149 | "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", 1150 | "dev": true, 1151 | "dependencies": { 1152 | "eslint-visitor-keys": "^2.0.0" 1153 | }, 1154 | "engines": { 1155 | "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" 1156 | }, 1157 | "funding": { 1158 | "url": "https://github.com/sponsors/mysticatea" 1159 | }, 1160 | "peerDependencies": { 1161 | "eslint": ">=5" 1162 | } 1163 | }, 1164 | "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { 1165 | "version": "2.1.0", 1166 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", 1167 | "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", 1168 | "dev": true, 1169 | "engines": { 1170 | "node": ">=10" 1171 | } 1172 | }, 1173 | "node_modules/eslint-visitor-keys": { 1174 | "version": "3.4.1", 1175 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", 1176 | "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", 1177 | "dev": true, 1178 | "engines": { 1179 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1180 | }, 1181 | "funding": { 1182 | "url": "https://opencollective.com/eslint" 1183 | } 1184 | }, 1185 | "node_modules/eslint/node_modules/eslint-scope": { 1186 | "version": "7.2.0", 1187 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", 1188 | "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", 1189 | "dev": true, 1190 | "peer": true, 1191 | "dependencies": { 1192 | "esrecurse": "^4.3.0", 1193 | "estraverse": "^5.2.0" 1194 | }, 1195 | "engines": { 1196 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1197 | }, 1198 | "funding": { 1199 | "url": "https://opencollective.com/eslint" 1200 | } 1201 | }, 1202 | "node_modules/eslint/node_modules/estraverse": { 1203 | "version": "5.3.0", 1204 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1205 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1206 | "dev": true, 1207 | "peer": true, 1208 | "engines": { 1209 | "node": ">=4.0" 1210 | } 1211 | }, 1212 | "node_modules/espree": { 1213 | "version": "9.6.0", 1214 | "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.0.tgz", 1215 | "integrity": "sha512-1FH/IiruXZ84tpUlm0aCUEwMl2Ho5ilqVh0VvQXw+byAz/4SAciyHLlfmL5WYqsvD38oymdUwBss0LtK8m4s/A==", 1216 | "dev": true, 1217 | "peer": true, 1218 | "dependencies": { 1219 | "acorn": "^8.9.0", 1220 | "acorn-jsx": "^5.3.2", 1221 | "eslint-visitor-keys": "^3.4.1" 1222 | }, 1223 | "engines": { 1224 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 1225 | }, 1226 | "funding": { 1227 | "url": "https://opencollective.com/eslint" 1228 | } 1229 | }, 1230 | "node_modules/esquery": { 1231 | "version": "1.5.0", 1232 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", 1233 | "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", 1234 | "dev": true, 1235 | "peer": true, 1236 | "dependencies": { 1237 | "estraverse": "^5.1.0" 1238 | }, 1239 | "engines": { 1240 | "node": ">=0.10" 1241 | } 1242 | }, 1243 | "node_modules/esquery/node_modules/estraverse": { 1244 | "version": "5.3.0", 1245 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1246 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1247 | "dev": true, 1248 | "peer": true, 1249 | "engines": { 1250 | "node": ">=4.0" 1251 | } 1252 | }, 1253 | "node_modules/esrecurse": { 1254 | "version": "4.3.0", 1255 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 1256 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 1257 | "dev": true, 1258 | "dependencies": { 1259 | "estraverse": "^5.2.0" 1260 | }, 1261 | "engines": { 1262 | "node": ">=4.0" 1263 | } 1264 | }, 1265 | "node_modules/esrecurse/node_modules/estraverse": { 1266 | "version": "5.3.0", 1267 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1268 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1269 | "dev": true, 1270 | "engines": { 1271 | "node": ">=4.0" 1272 | } 1273 | }, 1274 | "node_modules/estraverse": { 1275 | "version": "4.3.0", 1276 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", 1277 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", 1278 | "dev": true, 1279 | "engines": { 1280 | "node": ">=4.0" 1281 | } 1282 | }, 1283 | "node_modules/esutils": { 1284 | "version": "2.0.3", 1285 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 1286 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 1287 | "dev": true, 1288 | "peer": true, 1289 | "engines": { 1290 | "node": ">=0.10.0" 1291 | } 1292 | }, 1293 | "node_modules/fast-deep-equal": { 1294 | "version": "3.1.3", 1295 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1296 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 1297 | "dev": true, 1298 | "peer": true 1299 | }, 1300 | "node_modules/fast-glob": { 1301 | "version": "3.3.0", 1302 | "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.0.tgz", 1303 | "integrity": "sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA==", 1304 | "dev": true, 1305 | "dependencies": { 1306 | "@nodelib/fs.stat": "^2.0.2", 1307 | "@nodelib/fs.walk": "^1.2.3", 1308 | "glob-parent": "^5.1.2", 1309 | "merge2": "^1.3.0", 1310 | "micromatch": "^4.0.4" 1311 | }, 1312 | "engines": { 1313 | "node": ">=8.6.0" 1314 | } 1315 | }, 1316 | "node_modules/fast-glob/node_modules/glob-parent": { 1317 | "version": "5.1.2", 1318 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 1319 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 1320 | "dev": true, 1321 | "dependencies": { 1322 | "is-glob": "^4.0.1" 1323 | }, 1324 | "engines": { 1325 | "node": ">= 6" 1326 | } 1327 | }, 1328 | "node_modules/fast-json-stable-stringify": { 1329 | "version": "2.1.0", 1330 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1331 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 1332 | "dev": true, 1333 | "peer": true 1334 | }, 1335 | "node_modules/fast-levenshtein": { 1336 | "version": "2.0.6", 1337 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 1338 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", 1339 | "dev": true, 1340 | "peer": true 1341 | }, 1342 | "node_modules/fastq": { 1343 | "version": "1.15.0", 1344 | "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", 1345 | "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", 1346 | "dev": true, 1347 | "dependencies": { 1348 | "reusify": "^1.0.4" 1349 | } 1350 | }, 1351 | "node_modules/file-entry-cache": { 1352 | "version": "6.0.1", 1353 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", 1354 | "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", 1355 | "dev": true, 1356 | "peer": true, 1357 | "dependencies": { 1358 | "flat-cache": "^3.0.4" 1359 | }, 1360 | "engines": { 1361 | "node": "^10.12.0 || >=12.0.0" 1362 | } 1363 | }, 1364 | "node_modules/fill-range": { 1365 | "version": "7.0.1", 1366 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 1367 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 1368 | "dev": true, 1369 | "dependencies": { 1370 | "to-regex-range": "^5.0.1" 1371 | }, 1372 | "engines": { 1373 | "node": ">=8" 1374 | } 1375 | }, 1376 | "node_modules/find-up": { 1377 | "version": "5.0.0", 1378 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 1379 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1380 | "dev": true, 1381 | "peer": true, 1382 | "dependencies": { 1383 | "locate-path": "^6.0.0", 1384 | "path-exists": "^4.0.0" 1385 | }, 1386 | "engines": { 1387 | "node": ">=10" 1388 | }, 1389 | "funding": { 1390 | "url": "https://github.com/sponsors/sindresorhus" 1391 | } 1392 | }, 1393 | "node_modules/flat-cache": { 1394 | "version": "3.0.4", 1395 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", 1396 | "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", 1397 | "dev": true, 1398 | "peer": true, 1399 | "dependencies": { 1400 | "flatted": "^3.1.0", 1401 | "rimraf": "^3.0.2" 1402 | }, 1403 | "engines": { 1404 | "node": "^10.12.0 || >=12.0.0" 1405 | } 1406 | }, 1407 | "node_modules/flatted": { 1408 | "version": "3.2.7", 1409 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", 1410 | "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", 1411 | "dev": true, 1412 | "peer": true 1413 | }, 1414 | "node_modules/fs.realpath": { 1415 | "version": "1.0.0", 1416 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1417 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 1418 | "dev": true, 1419 | "peer": true 1420 | }, 1421 | "node_modules/functional-red-black-tree": { 1422 | "version": "1.0.1", 1423 | "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", 1424 | "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", 1425 | "dev": true 1426 | }, 1427 | "node_modules/glob": { 1428 | "version": "7.2.3", 1429 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 1430 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 1431 | "dev": true, 1432 | "peer": true, 1433 | "dependencies": { 1434 | "fs.realpath": "^1.0.0", 1435 | "inflight": "^1.0.4", 1436 | "inherits": "2", 1437 | "minimatch": "^3.1.1", 1438 | "once": "^1.3.0", 1439 | "path-is-absolute": "^1.0.0" 1440 | }, 1441 | "engines": { 1442 | "node": "*" 1443 | }, 1444 | "funding": { 1445 | "url": "https://github.com/sponsors/isaacs" 1446 | } 1447 | }, 1448 | "node_modules/glob-parent": { 1449 | "version": "6.0.2", 1450 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 1451 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 1452 | "dev": true, 1453 | "peer": true, 1454 | "dependencies": { 1455 | "is-glob": "^4.0.3" 1456 | }, 1457 | "engines": { 1458 | "node": ">=10.13.0" 1459 | } 1460 | }, 1461 | "node_modules/globals": { 1462 | "version": "13.20.0", 1463 | "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", 1464 | "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", 1465 | "dev": true, 1466 | "peer": true, 1467 | "dependencies": { 1468 | "type-fest": "^0.20.2" 1469 | }, 1470 | "engines": { 1471 | "node": ">=8" 1472 | }, 1473 | "funding": { 1474 | "url": "https://github.com/sponsors/sindresorhus" 1475 | } 1476 | }, 1477 | "node_modules/globby": { 1478 | "version": "11.1.0", 1479 | "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", 1480 | "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", 1481 | "dev": true, 1482 | "dependencies": { 1483 | "array-union": "^2.1.0", 1484 | "dir-glob": "^3.0.1", 1485 | "fast-glob": "^3.2.9", 1486 | "ignore": "^5.2.0", 1487 | "merge2": "^1.4.1", 1488 | "slash": "^3.0.0" 1489 | }, 1490 | "engines": { 1491 | "node": ">=10" 1492 | }, 1493 | "funding": { 1494 | "url": "https://github.com/sponsors/sindresorhus" 1495 | } 1496 | }, 1497 | "node_modules/graphemer": { 1498 | "version": "1.4.0", 1499 | "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", 1500 | "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", 1501 | "dev": true, 1502 | "peer": true 1503 | }, 1504 | "node_modules/has-flag": { 1505 | "version": "4.0.0", 1506 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1507 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1508 | "dev": true, 1509 | "peer": true, 1510 | "engines": { 1511 | "node": ">=8" 1512 | } 1513 | }, 1514 | "node_modules/ignore": { 1515 | "version": "5.2.4", 1516 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", 1517 | "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", 1518 | "dev": true, 1519 | "engines": { 1520 | "node": ">= 4" 1521 | } 1522 | }, 1523 | "node_modules/import-fresh": { 1524 | "version": "3.3.0", 1525 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 1526 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 1527 | "dev": true, 1528 | "peer": true, 1529 | "dependencies": { 1530 | "parent-module": "^1.0.0", 1531 | "resolve-from": "^4.0.0" 1532 | }, 1533 | "engines": { 1534 | "node": ">=6" 1535 | }, 1536 | "funding": { 1537 | "url": "https://github.com/sponsors/sindresorhus" 1538 | } 1539 | }, 1540 | "node_modules/imurmurhash": { 1541 | "version": "0.1.4", 1542 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1543 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 1544 | "dev": true, 1545 | "peer": true, 1546 | "engines": { 1547 | "node": ">=0.8.19" 1548 | } 1549 | }, 1550 | "node_modules/inflight": { 1551 | "version": "1.0.6", 1552 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1553 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1554 | "dev": true, 1555 | "peer": true, 1556 | "dependencies": { 1557 | "once": "^1.3.0", 1558 | "wrappy": "1" 1559 | } 1560 | }, 1561 | "node_modules/inherits": { 1562 | "version": "2.0.4", 1563 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1564 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1565 | "dev": true, 1566 | "peer": true 1567 | }, 1568 | "node_modules/is-extglob": { 1569 | "version": "2.1.1", 1570 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1571 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1572 | "dev": true, 1573 | "engines": { 1574 | "node": ">=0.10.0" 1575 | } 1576 | }, 1577 | "node_modules/is-glob": { 1578 | "version": "4.0.3", 1579 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1580 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1581 | "dev": true, 1582 | "dependencies": { 1583 | "is-extglob": "^2.1.1" 1584 | }, 1585 | "engines": { 1586 | "node": ">=0.10.0" 1587 | } 1588 | }, 1589 | "node_modules/is-number": { 1590 | "version": "7.0.0", 1591 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1592 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1593 | "dev": true, 1594 | "engines": { 1595 | "node": ">=0.12.0" 1596 | } 1597 | }, 1598 | "node_modules/is-path-inside": { 1599 | "version": "3.0.3", 1600 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", 1601 | "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", 1602 | "dev": true, 1603 | "peer": true, 1604 | "engines": { 1605 | "node": ">=8" 1606 | } 1607 | }, 1608 | "node_modules/isexe": { 1609 | "version": "2.0.0", 1610 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1611 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1612 | "dev": true, 1613 | "peer": true 1614 | }, 1615 | "node_modules/js-yaml": { 1616 | "version": "4.1.0", 1617 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1618 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1619 | "dev": true, 1620 | "peer": true, 1621 | "dependencies": { 1622 | "argparse": "^2.0.1" 1623 | }, 1624 | "bin": { 1625 | "js-yaml": "bin/js-yaml.js" 1626 | } 1627 | }, 1628 | "node_modules/json-schema-traverse": { 1629 | "version": "0.4.1", 1630 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1631 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1632 | "dev": true, 1633 | "peer": true 1634 | }, 1635 | "node_modules/json-stable-stringify-without-jsonify": { 1636 | "version": "1.0.1", 1637 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1638 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", 1639 | "dev": true, 1640 | "peer": true 1641 | }, 1642 | "node_modules/levn": { 1643 | "version": "0.4.1", 1644 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 1645 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 1646 | "dev": true, 1647 | "peer": true, 1648 | "dependencies": { 1649 | "prelude-ls": "^1.2.1", 1650 | "type-check": "~0.4.0" 1651 | }, 1652 | "engines": { 1653 | "node": ">= 0.8.0" 1654 | } 1655 | }, 1656 | "node_modules/locate-path": { 1657 | "version": "6.0.0", 1658 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1659 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1660 | "dev": true, 1661 | "peer": true, 1662 | "dependencies": { 1663 | "p-locate": "^5.0.0" 1664 | }, 1665 | "engines": { 1666 | "node": ">=10" 1667 | }, 1668 | "funding": { 1669 | "url": "https://github.com/sponsors/sindresorhus" 1670 | } 1671 | }, 1672 | "node_modules/lodash.merge": { 1673 | "version": "4.6.2", 1674 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 1675 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 1676 | "dev": true, 1677 | "peer": true 1678 | }, 1679 | "node_modules/lru-cache": { 1680 | "version": "6.0.0", 1681 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 1682 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 1683 | "dev": true, 1684 | "dependencies": { 1685 | "yallist": "^4.0.0" 1686 | }, 1687 | "engines": { 1688 | "node": ">=10" 1689 | } 1690 | }, 1691 | "node_modules/merge2": { 1692 | "version": "1.4.1", 1693 | "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", 1694 | "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", 1695 | "dev": true, 1696 | "engines": { 1697 | "node": ">= 8" 1698 | } 1699 | }, 1700 | "node_modules/micromatch": { 1701 | "version": "4.0.5", 1702 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", 1703 | "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", 1704 | "dev": true, 1705 | "dependencies": { 1706 | "braces": "^3.0.2", 1707 | "picomatch": "^2.3.1" 1708 | }, 1709 | "engines": { 1710 | "node": ">=8.6" 1711 | } 1712 | }, 1713 | "node_modules/minimatch": { 1714 | "version": "3.1.2", 1715 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1716 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1717 | "dev": true, 1718 | "peer": true, 1719 | "dependencies": { 1720 | "brace-expansion": "^1.1.7" 1721 | }, 1722 | "engines": { 1723 | "node": "*" 1724 | } 1725 | }, 1726 | "node_modules/moment": { 1727 | "version": "2.29.4", 1728 | "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", 1729 | "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", 1730 | "dev": true, 1731 | "engines": { 1732 | "node": "*" 1733 | } 1734 | }, 1735 | "node_modules/ms": { 1736 | "version": "2.1.2", 1737 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1738 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1739 | "dev": true 1740 | }, 1741 | "node_modules/natural-compare": { 1742 | "version": "1.4.0", 1743 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1744 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 1745 | "dev": true, 1746 | "peer": true 1747 | }, 1748 | "node_modules/obsidian": { 1749 | "version": "1.2.8", 1750 | "resolved": "https://registry.npmjs.org/obsidian/-/obsidian-1.2.8.tgz", 1751 | "integrity": "sha512-HrC+feA8o0tXspj4lEAqxb1btwLwHD2oHXSwbbN+CdRHURqbCkuIDLld+nkuyJ1w1c9uvVDRVk8BoeOnWheOrQ==", 1752 | "dev": true, 1753 | "dependencies": { 1754 | "@types/codemirror": "0.0.108", 1755 | "moment": "2.29.4" 1756 | }, 1757 | "peerDependencies": { 1758 | "@codemirror/state": "^6.0.0", 1759 | "@codemirror/view": "^6.0.0" 1760 | } 1761 | }, 1762 | "node_modules/once": { 1763 | "version": "1.4.0", 1764 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1765 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1766 | "dev": true, 1767 | "peer": true, 1768 | "dependencies": { 1769 | "wrappy": "1" 1770 | } 1771 | }, 1772 | "node_modules/optionator": { 1773 | "version": "0.9.3", 1774 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", 1775 | "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", 1776 | "dev": true, 1777 | "peer": true, 1778 | "dependencies": { 1779 | "@aashutoshrathi/word-wrap": "^1.2.3", 1780 | "deep-is": "^0.1.3", 1781 | "fast-levenshtein": "^2.0.6", 1782 | "levn": "^0.4.1", 1783 | "prelude-ls": "^1.2.1", 1784 | "type-check": "^0.4.0" 1785 | }, 1786 | "engines": { 1787 | "node": ">= 0.8.0" 1788 | } 1789 | }, 1790 | "node_modules/p-limit": { 1791 | "version": "3.1.0", 1792 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 1793 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1794 | "dev": true, 1795 | "peer": true, 1796 | "dependencies": { 1797 | "yocto-queue": "^0.1.0" 1798 | }, 1799 | "engines": { 1800 | "node": ">=10" 1801 | }, 1802 | "funding": { 1803 | "url": "https://github.com/sponsors/sindresorhus" 1804 | } 1805 | }, 1806 | "node_modules/p-locate": { 1807 | "version": "5.0.0", 1808 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 1809 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1810 | "dev": true, 1811 | "peer": true, 1812 | "dependencies": { 1813 | "p-limit": "^3.0.2" 1814 | }, 1815 | "engines": { 1816 | "node": ">=10" 1817 | }, 1818 | "funding": { 1819 | "url": "https://github.com/sponsors/sindresorhus" 1820 | } 1821 | }, 1822 | "node_modules/parent-module": { 1823 | "version": "1.0.1", 1824 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1825 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1826 | "dev": true, 1827 | "peer": true, 1828 | "dependencies": { 1829 | "callsites": "^3.0.0" 1830 | }, 1831 | "engines": { 1832 | "node": ">=6" 1833 | } 1834 | }, 1835 | "node_modules/path-exists": { 1836 | "version": "4.0.0", 1837 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1838 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1839 | "dev": true, 1840 | "peer": true, 1841 | "engines": { 1842 | "node": ">=8" 1843 | } 1844 | }, 1845 | "node_modules/path-is-absolute": { 1846 | "version": "1.0.1", 1847 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1848 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 1849 | "dev": true, 1850 | "peer": true, 1851 | "engines": { 1852 | "node": ">=0.10.0" 1853 | } 1854 | }, 1855 | "node_modules/path-key": { 1856 | "version": "3.1.1", 1857 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 1858 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1859 | "dev": true, 1860 | "peer": true, 1861 | "engines": { 1862 | "node": ">=8" 1863 | } 1864 | }, 1865 | "node_modules/path-type": { 1866 | "version": "4.0.0", 1867 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", 1868 | "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", 1869 | "dev": true, 1870 | "engines": { 1871 | "node": ">=8" 1872 | } 1873 | }, 1874 | "node_modules/picomatch": { 1875 | "version": "2.3.1", 1876 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1877 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1878 | "dev": true, 1879 | "engines": { 1880 | "node": ">=8.6" 1881 | }, 1882 | "funding": { 1883 | "url": "https://github.com/sponsors/jonschlinkert" 1884 | } 1885 | }, 1886 | "node_modules/prelude-ls": { 1887 | "version": "1.2.1", 1888 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 1889 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 1890 | "dev": true, 1891 | "peer": true, 1892 | "engines": { 1893 | "node": ">= 0.8.0" 1894 | } 1895 | }, 1896 | "node_modules/punycode": { 1897 | "version": "2.3.0", 1898 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", 1899 | "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", 1900 | "dev": true, 1901 | "peer": true, 1902 | "engines": { 1903 | "node": ">=6" 1904 | } 1905 | }, 1906 | "node_modules/queue-microtask": { 1907 | "version": "1.2.3", 1908 | "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", 1909 | "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", 1910 | "dev": true, 1911 | "funding": [ 1912 | { 1913 | "type": "github", 1914 | "url": "https://github.com/sponsors/feross" 1915 | }, 1916 | { 1917 | "type": "patreon", 1918 | "url": "https://www.patreon.com/feross" 1919 | }, 1920 | { 1921 | "type": "consulting", 1922 | "url": "https://feross.org/support" 1923 | } 1924 | ] 1925 | }, 1926 | "node_modules/regexpp": { 1927 | "version": "3.2.0", 1928 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", 1929 | "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", 1930 | "dev": true, 1931 | "engines": { 1932 | "node": ">=8" 1933 | }, 1934 | "funding": { 1935 | "url": "https://github.com/sponsors/mysticatea" 1936 | } 1937 | }, 1938 | "node_modules/resolve-from": { 1939 | "version": "4.0.0", 1940 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 1941 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1942 | "dev": true, 1943 | "peer": true, 1944 | "engines": { 1945 | "node": ">=4" 1946 | } 1947 | }, 1948 | "node_modules/reusify": { 1949 | "version": "1.0.4", 1950 | "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", 1951 | "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", 1952 | "dev": true, 1953 | "engines": { 1954 | "iojs": ">=1.0.0", 1955 | "node": ">=0.10.0" 1956 | } 1957 | }, 1958 | "node_modules/rimraf": { 1959 | "version": "3.0.2", 1960 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 1961 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 1962 | "dev": true, 1963 | "peer": true, 1964 | "dependencies": { 1965 | "glob": "^7.1.3" 1966 | }, 1967 | "bin": { 1968 | "rimraf": "bin.js" 1969 | }, 1970 | "funding": { 1971 | "url": "https://github.com/sponsors/isaacs" 1972 | } 1973 | }, 1974 | "node_modules/run-parallel": { 1975 | "version": "1.2.0", 1976 | "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", 1977 | "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", 1978 | "dev": true, 1979 | "funding": [ 1980 | { 1981 | "type": "github", 1982 | "url": "https://github.com/sponsors/feross" 1983 | }, 1984 | { 1985 | "type": "patreon", 1986 | "url": "https://www.patreon.com/feross" 1987 | }, 1988 | { 1989 | "type": "consulting", 1990 | "url": "https://feross.org/support" 1991 | } 1992 | ], 1993 | "dependencies": { 1994 | "queue-microtask": "^1.2.2" 1995 | } 1996 | }, 1997 | "node_modules/semver": { 1998 | "version": "7.5.4", 1999 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", 2000 | "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", 2001 | "dev": true, 2002 | "dependencies": { 2003 | "lru-cache": "^6.0.0" 2004 | }, 2005 | "bin": { 2006 | "semver": "bin/semver.js" 2007 | }, 2008 | "engines": { 2009 | "node": ">=10" 2010 | } 2011 | }, 2012 | "node_modules/shebang-command": { 2013 | "version": "2.0.0", 2014 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 2015 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 2016 | "dev": true, 2017 | "peer": true, 2018 | "dependencies": { 2019 | "shebang-regex": "^3.0.0" 2020 | }, 2021 | "engines": { 2022 | "node": ">=8" 2023 | } 2024 | }, 2025 | "node_modules/shebang-regex": { 2026 | "version": "3.0.0", 2027 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 2028 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 2029 | "dev": true, 2030 | "peer": true, 2031 | "engines": { 2032 | "node": ">=8" 2033 | } 2034 | }, 2035 | "node_modules/slash": { 2036 | "version": "3.0.0", 2037 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", 2038 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", 2039 | "dev": true, 2040 | "engines": { 2041 | "node": ">=8" 2042 | } 2043 | }, 2044 | "node_modules/strip-ansi": { 2045 | "version": "6.0.1", 2046 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2047 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2048 | "dev": true, 2049 | "peer": true, 2050 | "dependencies": { 2051 | "ansi-regex": "^5.0.1" 2052 | }, 2053 | "engines": { 2054 | "node": ">=8" 2055 | } 2056 | }, 2057 | "node_modules/strip-json-comments": { 2058 | "version": "3.1.1", 2059 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 2060 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 2061 | "dev": true, 2062 | "peer": true, 2063 | "engines": { 2064 | "node": ">=8" 2065 | }, 2066 | "funding": { 2067 | "url": "https://github.com/sponsors/sindresorhus" 2068 | } 2069 | }, 2070 | "node_modules/style-mod": { 2071 | "version": "4.0.3", 2072 | "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.0.3.tgz", 2073 | "integrity": "sha512-78Jv8kYJdjbvRwwijtCevYADfsI0lGzYJe4mMFdceO8l75DFFDoqBhR1jVDicDRRaX4//g1u9wKeo+ztc2h1Rw==", 2074 | "dev": true, 2075 | "peer": true 2076 | }, 2077 | "node_modules/supports-color": { 2078 | "version": "7.2.0", 2079 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 2080 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 2081 | "dev": true, 2082 | "peer": true, 2083 | "dependencies": { 2084 | "has-flag": "^4.0.0" 2085 | }, 2086 | "engines": { 2087 | "node": ">=8" 2088 | } 2089 | }, 2090 | "node_modules/text-table": { 2091 | "version": "0.2.0", 2092 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 2093 | "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", 2094 | "dev": true, 2095 | "peer": true 2096 | }, 2097 | "node_modules/to-regex-range": { 2098 | "version": "5.0.1", 2099 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 2100 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 2101 | "dev": true, 2102 | "dependencies": { 2103 | "is-number": "^7.0.0" 2104 | }, 2105 | "engines": { 2106 | "node": ">=8.0" 2107 | } 2108 | }, 2109 | "node_modules/tslib": { 2110 | "version": "2.4.0", 2111 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", 2112 | "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", 2113 | "dev": true 2114 | }, 2115 | "node_modules/tsutils": { 2116 | "version": "3.21.0", 2117 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", 2118 | "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", 2119 | "dev": true, 2120 | "dependencies": { 2121 | "tslib": "^1.8.1" 2122 | }, 2123 | "engines": { 2124 | "node": ">= 6" 2125 | }, 2126 | "peerDependencies": { 2127 | "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" 2128 | } 2129 | }, 2130 | "node_modules/tsutils/node_modules/tslib": { 2131 | "version": "1.14.1", 2132 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 2133 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", 2134 | "dev": true 2135 | }, 2136 | "node_modules/type-check": { 2137 | "version": "0.4.0", 2138 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 2139 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 2140 | "dev": true, 2141 | "peer": true, 2142 | "dependencies": { 2143 | "prelude-ls": "^1.2.1" 2144 | }, 2145 | "engines": { 2146 | "node": ">= 0.8.0" 2147 | } 2148 | }, 2149 | "node_modules/type-fest": { 2150 | "version": "0.20.2", 2151 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", 2152 | "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", 2153 | "dev": true, 2154 | "peer": true, 2155 | "engines": { 2156 | "node": ">=10" 2157 | }, 2158 | "funding": { 2159 | "url": "https://github.com/sponsors/sindresorhus" 2160 | } 2161 | }, 2162 | "node_modules/typescript": { 2163 | "version": "4.7.4", 2164 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", 2165 | "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", 2166 | "dev": true, 2167 | "bin": { 2168 | "tsc": "bin/tsc", 2169 | "tsserver": "bin/tsserver" 2170 | }, 2171 | "engines": { 2172 | "node": ">=4.2.0" 2173 | } 2174 | }, 2175 | "node_modules/uri-js": { 2176 | "version": "4.4.1", 2177 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 2178 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 2179 | "dev": true, 2180 | "peer": true, 2181 | "dependencies": { 2182 | "punycode": "^2.1.0" 2183 | } 2184 | }, 2185 | "node_modules/w3c-keyname": { 2186 | "version": "2.2.8", 2187 | "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz", 2188 | "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==", 2189 | "dev": true, 2190 | "peer": true 2191 | }, 2192 | "node_modules/which": { 2193 | "version": "2.0.2", 2194 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2195 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2196 | "dev": true, 2197 | "peer": true, 2198 | "dependencies": { 2199 | "isexe": "^2.0.0" 2200 | }, 2201 | "bin": { 2202 | "node-which": "bin/node-which" 2203 | }, 2204 | "engines": { 2205 | "node": ">= 8" 2206 | } 2207 | }, 2208 | "node_modules/wrappy": { 2209 | "version": "1.0.2", 2210 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2211 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 2212 | "dev": true, 2213 | "peer": true 2214 | }, 2215 | "node_modules/yallist": { 2216 | "version": "4.0.0", 2217 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 2218 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 2219 | "dev": true 2220 | }, 2221 | "node_modules/yaml": { 2222 | "version": "2.3.2", 2223 | "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.2.tgz", 2224 | "integrity": "sha512-N/lyzTPaJasoDmfV7YTrYCI0G/3ivm/9wdG0aHuheKowWQwGTsK0Eoiw6utmzAnI6pkJa0DUVygvp3spqqEKXg==", 2225 | "engines": { 2226 | "node": ">= 14" 2227 | } 2228 | }, 2229 | "node_modules/yocto-queue": { 2230 | "version": "0.1.0", 2231 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 2232 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 2233 | "dev": true, 2234 | "peer": true, 2235 | "engines": { 2236 | "node": ">=10" 2237 | }, 2238 | "funding": { 2239 | "url": "https://github.com/sponsors/sindresorhus" 2240 | } 2241 | } 2242 | } 2243 | } 2244 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "obsidian-sample-plugin", 3 | "version": "1.0.0", 4 | "description": "Automatically update index notes from your hierarchical tags!", 5 | "main": "main.js", 6 | "scripts": { 7 | "dev": "node esbuild.config.mjs", 8 | "build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production", 9 | "version": "node version-bump.mjs && git add manifest.json versions.json" 10 | }, 11 | "keywords": [], 12 | "author": "", 13 | "license": "MIT", 14 | "devDependencies": { 15 | "@popperjs/core": "^2.11.6", 16 | "@types/dateformat": "^5.0.0", 17 | "@types/node": "^16.11.6", 18 | "@typescript-eslint/eslint-plugin": "5.29.0", 19 | "@typescript-eslint/parser": "5.29.0", 20 | "builtin-modules": "3.3.0", 21 | "esbuild": "0.17.3", 22 | "obsidian": "latest", 23 | "tslib": "2.4.0", 24 | "typescript": "4.7.4" 25 | }, 26 | "dependencies": { 27 | "dateformat": "^5.0.3", 28 | "yaml": "^2.3.2" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/indexer.ts: -------------------------------------------------------------------------------- 1 | import { App, PluginSettingTab, TFile } from 'obsidian'; 2 | import IndexNotesPlugin from "main"; 3 | import { IndexNotesSettings } from 'src/settings/Settings'; 4 | import { title } from 'process'; 5 | 6 | function stringHash(s: string): string { 7 | let hash = 0; 8 | for (let i = 0; i < s.length; i++) { 9 | const chr = s.charCodeAt(i); 10 | hash = ((hash << 5) - hash) + chr; 11 | hash |= 0; // Convert to 32bit integer 12 | } 13 | return String(hash); 14 | } 15 | 16 | function formatTagWord(tagWord: string): string { 17 | return tagWord.startsWith('_') ? tagWord.slice(1).toUpperCase() : tagWord; 18 | } 19 | 20 | function capitalizeFirst(s: string): string { 21 | return s.charAt(0).toUpperCase() + s.slice(1); 22 | } 23 | 24 | /** 25 | * Splits tags into words and formats all caps if the word also starts with an underscore. 26 | * E.g.: tag "__rl_and__ml" would become "RL and ML" 27 | * 28 | * @param {string} t - The tag string to be formatted into a header. 29 | * @returns {string} The formatted header string. 30 | */ 31 | function tagToHeader(t: string): string { 32 | return t.split("/").map(component => { 33 | const words = component.split('_').map((word, index, arr) => { 34 | if (word === '') { 35 | return ''; 36 | } 37 | if (index > 0 && arr[index - 1] === '') { 38 | return formatTagWord('_' + word); 39 | } 40 | return formatTagWord(word); 41 | }).filter(word => word !== ''); 42 | return capitalizeFirst(words.join(' ')); 43 | }).join(' / '); 44 | } 45 | 46 | /** 47 | * Creates a block reference string where non-word symbols are replaced by dashes. 48 | * The default tag used is "main-index" if none is provided. 49 | * 50 | * @param {string} [tag="main-index"] - The tag to convert into a block reference. 51 | * @returns {string} The block reference string. 52 | */ 53 | function tagToBlockReference(tag: string = "main-index"): string { 54 | if (tag.length === 0) { 55 | return '^indexof-root000'; 56 | } 57 | return '^' + ('indexof-' + tag).replace(/[^a-zA-Z]+/g, '-'); 58 | } 59 | 60 | function getBlockRegex(blockRef: string): RegExp { 61 | return new RegExp(`^(?:>\\s*\\[!example\\].*\\n)(?:>.*\\n)*(?:>\\s*\\${blockRef}$)`, "gm"); 62 | } 63 | 64 | function filenameToHeader(filename: string): string { 65 | return capitalizeFirst(filename.split(".")[0]); 66 | } 67 | 68 | function getLastTagComponent(tagPath: string): string { 69 | return tagPath.split('/').pop()!; 70 | } 71 | 72 | function canonicalizeTag(tag: string): string { 73 | return tag.trim().toLowerCase().replace(/^\/|\/$/g, ''); 74 | } 75 | 76 | function getNoteTitle(note: TFile, app: App, prefix: string = ""): string { 77 | const noteTitle = app.metadataCache.getCache(note.path)?.frontmatter?.title; 78 | return noteTitle ? prefix + (noteTitle.length > 50 ? noteTitle.substring(0, 50) + "..." : noteTitle) : ""; 79 | } 80 | 81 | function sortable(s: string): string { 82 | return s.replace(/[^A-Za-z0-9 \r\n@£$¥èéùìòÇØøÅåΔΦΓΛΩΠΘΣΘΞÆæßÉ!"#$%&'()*+,\-.\/:;<=>;?¡ÄÖÑܧ¿äöñüà^{}\[\~\]\|\€\\]/g, '').trim().toLowerCase(); 83 | } 84 | 85 | function compareStrings(a: string, b: string): number { 86 | const sA = sortable(a); 87 | const sB = sortable(b); 88 | return sA.localeCompare(sB); 89 | } 90 | 91 | class Node { 92 | tagPath: string; 93 | headerNote: TFile | undefined; 94 | regularNotes: TFile[] = []; 95 | priorityNotes: TFile[] = []; 96 | indexNotes: TFile[] = []; 97 | indexPriorityNotes: TFile[] = []; 98 | children: Node[] = []; 99 | settings: IndexNotesSettings; 100 | app: App; 101 | 102 | constructor(tagPath: string, settings: IndexNotesSettings, app: App) { 103 | this.tagPath = canonicalizeTag(tagPath); 104 | this.settings = settings; 105 | this.app = app; 106 | } 107 | 108 | getAllNotes(): TFile[] { 109 | return this.headerNote ? this.priorityNotes.concat(this.regularNotes, [this.headerNote]) : this.priorityNotes.concat(this.regularNotes); 110 | } 111 | 112 | sortAll(): void { 113 | this.priorityNotes.sort((a, b) => compareStrings(a.name, b.name)); 114 | this.regularNotes.sort((a, b) => compareStrings(a.name, b.name)); 115 | this.indexNotes.sort((a, b) => compareStrings(a.name, b.name)); 116 | this.children.sort((a, b) => compareStrings(tagToHeader(a.tagComponent()), tagToHeader(b.tagComponent()))); 117 | this.children.forEach(child => child.sortAll()); 118 | } 119 | 120 | tagComponent(): string { 121 | return getLastTagComponent(this.tagPath); 122 | } 123 | 124 | getIndex(indexNote: TFile, indentLevel: number = 0): string { 125 | let indexTxt = this.priorityNotes.concat(this.regularNotes, this.indexNotes).filter(note => note.path !== indexNote.path).map(note => { 126 | const mdLink = this.app.fileManager.generateMarkdownLink(note, indexNote.path, undefined, filenameToHeader(note.name)); 127 | const noteTitle = getNoteTitle(note, this.app, ": "); 128 | return `> ${'\t'.repeat(indentLevel)}- ${this.priorityNotes.includes(note) ? '**' : ''}${mdLink}${noteTitle}${this.priorityNotes.includes(note) ? '**' : ''}\n`; 129 | }).join(''); 130 | 131 | this.children.forEach(child => { 132 | const mdLink = child.headerNote ? this.app.fileManager.generateMarkdownLink(child.headerNote, indexNote.path, undefined, filenameToHeader(child.headerNote.name)) : ''; 133 | indexTxt += `> ${'\t'.repeat(indentLevel)}- **${mdLink || tagToHeader(child.tagComponent())}**\n`; 134 | indexTxt += child.getIndex(indexNote, indentLevel + 1); 135 | }); 136 | 137 | return indexTxt; 138 | } 139 | 140 | getMetaIndex(indexNote: TFile): string { 141 | let indexTxt = ""; 142 | const notes = new Set(); 143 | const priorityNotes = new Set(); 144 | 145 | this.children.forEach(child => { 146 | child.indexNotes.forEach(note => { 147 | if (note.path !== indexNote.path) notes.add(note); 148 | }); 149 | child.indexPriorityNotes.forEach(note => { 150 | if (note.path !== indexNote.path) priorityNotes.add(note); 151 | }); 152 | }); 153 | 154 | [...priorityNotes].sort((a, b) => compareStrings(a.name, b.name)).forEach(note => { 155 | const mdLink = this.app.fileManager.generateMarkdownLink(note, indexNote.path, undefined, filenameToHeader(note.name)); 156 | const noteTitle = getNoteTitle(note, this.app, ": "); 157 | indexTxt += `> \n> > [!tldr] ${mdLink}${noteTitle}\n`; 158 | }); 159 | 160 | [...notes].sort((a, b) => compareStrings(a.name, b.name)).forEach(note => { 161 | const mdLink = this.app.fileManager.generateMarkdownLink(note, indexNote.path, undefined, filenameToHeader(note.name)); 162 | const noteTitle = getNoteTitle(note, this.app, ": "); 163 | indexTxt += `> \n> > [!example] ${mdLink}${noteTitle}\n`; 164 | }); 165 | 166 | return indexTxt; 167 | } 168 | 169 | findChildNode(tagPath: string): Node | undefined { 170 | tagPath = canonicalizeTag(tagPath); 171 | if (tagPath === this.tagPath) { 172 | return this; 173 | } else if (tagPath.startsWith(this.tagPath)) { 174 | const nextComponent = canonicalizeTag(tagPath.slice(this.tagPath.length)).split('/')[0]; 175 | const child = this.children.find(child => child.tagComponent() === nextComponent); 176 | return child ? child.findChildNode(tagPath) : undefined; 177 | } 178 | console.error("Did not find node at path \"" + tagPath + "\""); 179 | return undefined; 180 | } 181 | 182 | addNoteWithPath(tagPath: string, note: TFile, hasPriority: boolean, isIndex: boolean): boolean { 183 | tagPath = canonicalizeTag(tagPath); 184 | if (tagPath === this.tagPath) { 185 | if (isIndex && hasPriority) { 186 | this.indexPriorityNotes.push(note); 187 | } else if (isIndex) { 188 | this.indexNotes.push(note); 189 | } else if (filenameToHeader(note.name) === tagToHeader(this.tagComponent())) { 190 | this.headerNote = note; 191 | } else if (hasPriority) { 192 | this.priorityNotes.push(note); 193 | } else { 194 | this.regularNotes.push(note); 195 | } 196 | return true; 197 | } else if (tagPath.startsWith(this.tagPath)) { 198 | const nextComponent = canonicalizeTag(tagPath.slice(this.tagPath.length)).split('/')[0]; 199 | let child = this.children.find(child => child.tagComponent() === nextComponent); 200 | if (child) { 201 | return child.addNoteWithPath(tagPath, note, hasPriority, isIndex); 202 | } 203 | const nextTagPath = this.tagPath ? `${this.tagPath}/${nextComponent}` : nextComponent; 204 | const newNode = new Node(nextTagPath, this.settings, this.app); 205 | const success = newNode.addNoteWithPath(tagPath, note, hasPriority, isIndex); 206 | if (!success) { 207 | console.error("Could not add path for note: ", tagPath + "|" + nextTagPath, this); 208 | } 209 | this.children.push(newNode); 210 | return success; 211 | } 212 | return false; 213 | } 214 | 215 | getHash(): string { 216 | const toHash = this.getAllNotes().map(n => n.path).join() + this.tagPath + this.children.map(c => c.getHash()).join(); 217 | return stringHash(toHash); 218 | } 219 | } 220 | 221 | class IndexNote { 222 | note: TFile; 223 | indexTags: string[] = []; 224 | metaIndexTags: string[] = []; 225 | app: App; 226 | settings: IndexNotesSettings; 227 | 228 | constructor(note: TFile, app: App, settings: IndexNotesSettings) { 229 | this.note = note; 230 | this.app = app; 231 | this.settings = settings; 232 | } 233 | 234 | getHash(): string { 235 | this.sortIndexTags(); 236 | const toHash = `INDEX:${String(this.indexTags.length)}${this.indexTags.join()}META:${String(this.metaIndexTags.length)}${this.metaIndexTags.join()}`; 237 | return stringHash(toHash); 238 | } 239 | 240 | makeIndexTitle(rootTag: string, prefix: string): string { 241 | return prefix + tagToHeader(rootTag) + "\n"; 242 | } 243 | 244 | sortIndexTags(): void { 245 | this.indexTags.sort((a, b) => compareStrings(getLastTagComponent(a), getLastTagComponent(b))); 246 | this.metaIndexTags.sort((a, b) => compareStrings(getLastTagComponent(a), getLastTagComponent(b))); 247 | } 248 | 249 | createIndexBlocks(rootNode: Node): Array<[string, string]> { 250 | this.sortIndexTags(); 251 | const indexBlocks: Array<[string, string]> = []; 252 | this.indexTags.forEach(indexTag => { 253 | let blockText = `> [!example] ${this.makeIndexTitle(indexTag, "")}`; 254 | const sourceNote = rootNode.findChildNode(indexTag); 255 | if (sourceNote) { 256 | blockText += sourceNote.getIndex(this.note); 257 | } 258 | const blockReference = tagToBlockReference(indexTag); 259 | blockText += `> \n> ${blockReference}`; 260 | indexBlocks.push([blockReference, blockText]); 261 | }); 262 | this.metaIndexTags.forEach(indexTag => { 263 | let blockText = `> [!example] ${this.makeIndexTitle(indexTag, indexTag ? "Meta-index of: " : "Meta-index")}`; 264 | const sourceNote = rootNode.findChildNode(indexTag); 265 | if (sourceNote) { 266 | blockText += sourceNote.getMetaIndex(this.note); 267 | } 268 | const blockReference = tagToBlockReference(indexTag); 269 | blockText += `> \n> ${blockReference}`; 270 | indexBlocks.push([blockReference, blockText]); 271 | }); 272 | return indexBlocks; 273 | } 274 | 275 | getUpdatedContent(content: string, indexBlocks: Array<[string, string]>): string { 276 | let result = content; 277 | const writtenBlocks = new Set(); 278 | indexBlocks.forEach(([blockReference, blockContent]) => { 279 | const blockRegex = getBlockRegex(blockReference); 280 | if (result.match(blockRegex)) { 281 | result = result.replace(blockRegex, blockContent); 282 | } else { 283 | result += '\n\n' + blockContent; 284 | } 285 | writtenBlocks.add(blockReference); 286 | }); 287 | // Remove untracked indices and duplicates of tracked indices 288 | Array.from(result.matchAll(/\^indexof-(?:[a-zA-Z0-9]+-?)+/g)).forEach(existingReference => { 289 | const blockRegex = getBlockRegex(existingReference[0]); 290 | let matches = Array.from(result.matchAll(blockRegex)); 291 | let deletedOffset = 0; 292 | let i = -1; 293 | for (let match of matches) { 294 | i++; 295 | if (writtenBlocks.has(existingReference[0]) && i === 0) { 296 | continue; 297 | } 298 | if (match.index === undefined) { 299 | continue; 300 | } 301 | let startIndex = match.index - deletedOffset; 302 | let endIndex = startIndex + match[0].length; 303 | deletedOffset += match[0].length; 304 | result = result.slice(0, startIndex) + result.slice(endIndex); 305 | } 306 | }); 307 | return result; 308 | } 309 | } 310 | 311 | class IndexSchema { 312 | indexNotes: IndexNote[] = []; 313 | rootNode: Node; 314 | 315 | getHash(): string { 316 | return stringHash(this.rootNode.getHash() + this.indexNotes.map(n => n.getHash()).join()); 317 | } 318 | } 319 | 320 | export class IndexUpdater { 321 | app: App; 322 | settings: IndexNotesSettings; 323 | previousHash: string = ""; 324 | 325 | constructor(app: App, settings: IndexNotesSettings) { 326 | this.app = app; 327 | this.settings = settings; 328 | } 329 | 330 | scan(): IndexSchema { 331 | const excludedFolders = this.settings.exclude_folders.filter(f => f.length > 0); 332 | const mdFiles = this.app.vault.getMarkdownFiles().filter(f => !excludedFolders.some(excl => f.path.startsWith(excl))); 333 | const indexSchema = new IndexSchema(); 334 | const rootNode = new Node("", this.settings, this.app); 335 | const regexIndexTagComponents = new RegExp(`(?:^|(?:\/))(?:${this.settings.index_tag})|(?:${this.settings.meta_index_tag})$`); 336 | const regexContainsIndex = /\^indexof-(?:[a-zA-Z0-9]+-?)+/g; 337 | mdFiles.forEach(note => { 338 | const frontmatter = this.app.metadataCache.getCache(note.path)?.frontmatter; 339 | const indexNote = new IndexNote(note, this.app, this.settings); 340 | if (frontmatter) { 341 | let fileTags: string | string[] | undefined = frontmatter.tags; 342 | if (typeof fileTags === 'string') { 343 | fileTags = fileTags.split(',').map(tag => tag.trim()); 344 | } 345 | if (!fileTags || !Array.isArray(fileTags)) { 346 | console.error("File tags are not an array: ", fileTags); 347 | return; 348 | } 349 | const hasPriorityTag = fileTags.includes(this.settings.priority_tag); 350 | fileTags.forEach(tag => { 351 | const canonicalTag = canonicalizeTag(tag); 352 | const cleanTagPath = canonicalizeTag(canonicalTag.replace(regexIndexTagComponents, "")); 353 | if (getLastTagComponent(canonicalTag) === this.settings.index_tag) { 354 | indexNote.indexTags.push(cleanTagPath); 355 | rootNode.addNoteWithPath(cleanTagPath, note, hasPriorityTag, true); 356 | } else if (getLastTagComponent(canonicalTag) === this.settings.meta_index_tag) { 357 | indexNote.metaIndexTags.push(cleanTagPath); 358 | rootNode.addNoteWithPath(cleanTagPath, note, hasPriorityTag, true); 359 | } else { 360 | rootNode.addNoteWithPath(cleanTagPath, note, hasPriorityTag, false); 361 | } 362 | }); 363 | } 364 | 365 | if (indexNote.indexTags.length || indexNote.metaIndexTags.length) { 366 | indexSchema.indexNotes.push(indexNote); 367 | } else { 368 | this.app.vault.read(note).then(v => { 369 | // Add notes with regular note with stale indices so they will be cleaned up 370 | if (v.match(regexContainsIndex)) { 371 | indexSchema.indexNotes.push(indexNote); 372 | } 373 | }); 374 | } 375 | }); 376 | rootNode.sortAll(); 377 | indexSchema.rootNode = rootNode; 378 | return indexSchema; 379 | } 380 | 381 | update(): void { 382 | const t0 = Date.now(); 383 | const indexSchema = this.scan(); 384 | indexSchema.indexNotes.forEach(indexNote => { 385 | const indexBlocks = indexNote.createIndexBlocks(indexSchema.rootNode); 386 | this.app.vault.process(indexNote.note, data => { 387 | return indexNote.getUpdatedContent(data, indexBlocks); 388 | }); 389 | }); 390 | // console.log("Updating took " + (Date.now() - t0) + " ms"); 391 | } 392 | } 393 | -------------------------------------------------------------------------------- /src/settings/FolderSuggester.ts: -------------------------------------------------------------------------------- 1 | // @ts-ignore 2 | import { App, TAbstractFile, TFolder, TFile, AbstractInputSuggest } from "obsidian"; 3 | 4 | export class FolderSuggest extends AbstractInputSuggest { 5 | textInputEl: HTMLInputElement; 6 | 7 | getSuggestions(inputStr: string): TFolder[] { 8 | // @ts-ignore 9 | const abstractFiles = this.app.vault.getAllLoadedFiles(); 10 | const folders: TFolder[] = []; 11 | const lowerCaseInputStr = inputStr.toLowerCase(); 12 | 13 | abstractFiles.forEach((folder: TAbstractFile) => { 14 | if ( 15 | folder instanceof TFolder && 16 | folder.path.toLowerCase().contains(lowerCaseInputStr) 17 | ) { 18 | folders.push(folder); 19 | } 20 | }); 21 | 22 | return folders; 23 | } 24 | 25 | renderSuggestion(file: TFolder, el: HTMLElement): void { 26 | el.setText(file.path); 27 | } 28 | 29 | selectSuggestion(file: TFolder): void { 30 | this.textInputEl.value = file.path; 31 | this.textInputEl.trigger("input"); 32 | // @ts-ignore 33 | this.close(); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/settings/Settings.ts: -------------------------------------------------------------------------------- 1 | import { App, Notice, PluginSettingTab, Setting, parseYaml } from 'obsidian'; 2 | import IndexNotesPlugin from "main"; 3 | import { FolderSuggest } from "./FolderSuggester"; 4 | 5 | export interface IndexNotesSettings { 6 | update_interval_seconds: number; 7 | exclude_folders: string[]; 8 | index_tag: string; 9 | meta_index_tag: string; 10 | priority_tag: string; 11 | show_note_title: boolean; 12 | metadata_template: string; 13 | } 14 | 15 | export const DEFAULT_SETTINGS: IndexNotesSettings = { 16 | update_interval_seconds: 5, 17 | exclude_folders: [], 18 | index_tag: 'idx', 19 | meta_index_tag: 'meta_idx', 20 | priority_tag: '', 21 | show_note_title: true, 22 | metadata_template: 'date_created: {{today}}\ntags: {{tags}}' 23 | } 24 | 25 | export class IndexNotesSettingTab extends PluginSettingTab { 26 | plugin: IndexNotesPlugin; 27 | 28 | constructor(app: App, plugin: IndexNotesPlugin) { 29 | super(app, plugin); 30 | this.plugin = plugin; 31 | } 32 | 33 | display(): void { 34 | this.containerEl.empty(); 35 | this.add_index_tag_setting(); 36 | this.add_meta_index_tag_setting(); 37 | this.add_priority_tag_setting(); 38 | this.add_update_interval_setting(); 39 | this.add_show_note_title(); 40 | this.add_exclude_folders_setting(); 41 | this.add_metadata_template(); 42 | } 43 | 44 | add_index_tag_setting() { 45 | new Setting(this.containerEl) 46 | .setName('Index tag') 47 | .setDesc("Tag to use in a note's metadata to indicate that it is an index note.") 48 | .addText(text => text 49 | .setValue(this.plugin.settings.index_tag) 50 | .onChange(async (value) => { 51 | try { 52 | this.plugin.settings.index_tag = value; 53 | await this.plugin.saveSettings(); 54 | } catch (error) { 55 | console.error("Failed to save index tag setting:", error); 56 | } 57 | })); 58 | } 59 | 60 | add_meta_index_tag_setting() { 61 | new Setting(this.containerEl) 62 | .setName('Meta index tag') 63 | .setDesc("Tag to use in a note's metadata to indicate that it is a meta index note (an index of indices).") 64 | .addText(text => text 65 | .setValue(this.plugin.settings.meta_index_tag) 66 | .onChange(async (value) => { 67 | try { 68 | this.plugin.settings.meta_index_tag = value; 69 | await this.plugin.saveSettings(); 70 | } catch (error) { 71 | console.error("Failed to save meta index tag setting:", error); 72 | } 73 | })); 74 | } 75 | 76 | add_priority_tag_setting() { 77 | new Setting(this.containerEl) 78 | .setName('Priority tag') 79 | .setDesc("Tag to use for pushing a note to the top of an index subsection.") 80 | .addText(text => text 81 | .setValue(this.plugin.settings.priority_tag) 82 | .onChange(async (value) => { 83 | try { 84 | this.plugin.settings.priority_tag = value; 85 | await this.plugin.saveSettings(); 86 | } catch (error) { 87 | console.error("Failed to save priority tag setting:", error); 88 | } 89 | })); 90 | } 91 | 92 | add_update_interval_setting() { 93 | new Setting(this.containerEl) 94 | .setName('Update interval (in seconds)') 95 | .setDesc("How often to scan the vault and update indices.") 96 | .addSlider(slider => slider 97 | .setLimits(1, 30, 1) 98 | .setValue(this.plugin.settings.update_interval_seconds) 99 | .setDynamicTooltip() 100 | .onChange(async (value) => { 101 | try { 102 | this.plugin.settings.update_interval_seconds = value; 103 | await this.plugin.saveSettings(); 104 | this.plugin.reset_update_interval(); 105 | } catch (error) { 106 | console.error("Failed to save update interval setting:", error); 107 | } 108 | })) 109 | } 110 | 111 | add_show_note_title() { 112 | new Setting(this.containerEl) 113 | .setName('Show title property in index') 114 | .setDesc("If an entry named 'title' is found in the frontmatter, show it in the index next to the link.") 115 | .addToggle(toggle => toggle 116 | .setValue(this.plugin.settings.show_note_title) 117 | .onChange(async (value) => { 118 | try { 119 | this.plugin.settings.show_note_title = value; 120 | await this.plugin.saveSettings(); 121 | } catch (error) { 122 | console.error("Failed to save show note title setting:", error); 123 | } 124 | })); 125 | } 126 | 127 | add_exclude_folders_setting() { 128 | new Setting(this.containerEl).setName("Excluded folders from indexing").setHeading(); 129 | 130 | this.plugin.settings.exclude_folders.forEach((template, index) => { 131 | const s = new Setting(this.containerEl) 132 | .addSearch((cb) => { 133 | // @ts-ignore 134 | new FolderSuggest(this.plugin.app, cb.inputEl); 135 | cb.setPlaceholder("Example: folder1/template_file") 136 | .setValue(template) 137 | .onChange((new_template) => { 138 | try { 139 | if (new_template && this.plugin.settings.exclude_folders.includes(new_template)) { 140 | new Notice("Folder is already excluded"); 141 | cb.setValue(""); 142 | } else { 143 | this.plugin.settings.exclude_folders[index] = new_template; 144 | this.plugin.saveSettings(); 145 | } 146 | } catch (error) { 147 | console.error("Failed to update excluded folders setting:", error); 148 | } 149 | }); 150 | // @ts-ignore 151 | cb.containerEl.addClass("index-notes-search"); 152 | }) 153 | .addExtraButton((cb) => { 154 | cb.setIcon("cross") 155 | .setTooltip("Delete") 156 | .onClick(() => { 157 | try { 158 | this.plugin.settings.exclude_folders.splice(index, 1); 159 | this.plugin.saveSettings(); 160 | // Force refresh 161 | this.display(); 162 | } catch (error) { 163 | console.error("Failed to delete excluded folder setting:", error); 164 | } 165 | }); 166 | }); 167 | s.infoEl.remove(); 168 | }); 169 | 170 | new Setting(this.containerEl).addButton((cb) => { 171 | cb.setButtonText("Add excluded folder") 172 | .setCta() 173 | .onClick(() => { 174 | try { 175 | this.plugin.settings.exclude_folders.push(""); 176 | this.plugin.saveSettings(); 177 | // Force refresh 178 | this.display(); 179 | } catch (error) { 180 | console.error("Failed to add excluded folder setting:", error); 181 | } 182 | }); 183 | }); 184 | } 185 | 186 | add_metadata_template() { 187 | new Setting(this.containerEl) 188 | .setName("Metadata template") 189 | .setDesc("Template for new notes") 190 | .addTextArea((cb) => { 191 | cb.setValue(this.plugin.settings.metadata_template) 192 | .onChange(async (value) => { 193 | try { 194 | parseYaml(value.replace(/{{/g, '"{{').replace(/}}/g, '}}"')); 195 | cb.inputEl.removeClass("index-notes-metadata-template-error"); 196 | this.plugin.settings.metadata_template = value; 197 | await this.plugin.saveSettings(); 198 | } catch (YAMLParseError) { 199 | cb.inputEl.addClass("index-notes-metadata-template-error"); 200 | } 201 | }); 202 | cb.inputEl.addClass("index-notes-metadata-template") 203 | }) 204 | } 205 | } 206 | -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- 1 | declare module "obsidian" { 2 | interface dom { 3 | appContainerEl: HTMLElement; 4 | } 5 | } 6 | 7 | export {}; -------------------------------------------------------------------------------- /styles.css: -------------------------------------------------------------------------------- 1 | .index-notes-search { 2 | width: calc(100% - 20px); 3 | } 4 | 5 | .index-notes-prompt-modal-input { 6 | width: calc(100% - 20px); 7 | } 8 | 9 | .index-notes-metadata-template { 10 | width: 200px; 11 | height: 100px; 12 | } 13 | 14 | .index-notes-metadata-template-error { 15 | color: rgb(246, 94, 94); 16 | } 17 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "inlineSourceMap": true, 5 | "inlineSources": true, 6 | "module": "ESNext", 7 | "target": "ES6", 8 | "allowJs": true, 9 | "checkJs": false, 10 | "allowSyntheticDefaultImports": true, 11 | "noImplicitAny": true, 12 | "moduleResolution": "node", 13 | "importHelpers": true, 14 | "isolatedModules": true, 15 | "strictNullChecks": true, 16 | "lib": [ 17 | "DOM", 18 | "ES5", 19 | "ES6", 20 | "ES7" 21 | ] 22 | }, 23 | "include": [ 24 | "**/*.ts" 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /versions.json: -------------------------------------------------------------------------------- 1 | { 2 | "1.0.0": "0.15.0" 3 | } 4 | --------------------------------------------------------------------------------