/* THIS IS A GENERATED/BUNDLED FILE BY ROLLUP if you want to view the source visit the plugins github repository */ 'use strict'; var obsidian = require('obsidian'); var state = require('@codemirror/state'); var view = require('@codemirror/view'); var language = require('@codemirror/language'); /****************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); } const matchTypes = { 'exact': "Exact match", 'contains': "Contains value", 'whiteSpace': "Value within whitespace separated words", 'startswith': "Starts with this value", 'endswith': "Ends with this value" }; const matchSign = { 'exact': "", 'contains': "*", 'startswith': "^", 'endswith': "$", 'whiteSpace': "~" }; const matchPreview = { 'exact': "with value", 'contains': "containing", 'whiteSpace': "containing", 'startswith': "starting with", 'endswith': "ending with" }; const matchPreviewPath = { 'exact': "is", 'contains': "contains", 'whiteSpace': "contains", 'startswith': "starts with", 'endswith': "ends with" }; const selectorType = { 'attribute': 'Attribute value', 'tag': 'Tag', 'path': 'Note path' }; class CSSLink { constructor() { this.type = 'attribute'; this.name = ""; this.value = ""; this.matchCaseSensitive = false; this.match = "exact"; let s4 = () => { return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1); }; //return id of format 'aaaaaaaa'-'aaaa'-'aaaa'-'aaaa'-'aaaaaaaaaaaa' this.uid = s4() + "-" + s4(); this.selectText = true; this.selectAppend = true; this.selectPrepend = true; this.selectBackground = true; } } function displayText(link, settings) { if (link.type === 'tag') { if (!link.value) { return "Please choose a tag"; } return `Note has tag #${link.value}`; } else if (link.type === 'attribute') { if (settings.targetAttributes.length === 0) { return `No attributes added to "Target attributes". Go to plugin settings to add them.`; } if (!link.name) { return "Please choose an attribute name."; } if (!link.value) { return "Please choose an attribute value."; } return `Note has attribute ${link.name} ${matchPreview[link.match]} ${link.value}.`; } if (!link.value) { return "Please choose a path."; } return `The path of the note ${matchPreviewPath[link.match]} ${link.value}`; } function updateDisplay(textArea, link, settings) { let toDisplay = displayText(link, settings); let disabled = false; if (link.type === 'tag') { if (!link.value) { disabled = true; } } else if (link.type === 'attribute') { if (settings.targetAttributes.length === 0) { disabled = true; } else if (!link.name) { disabled = true; } else if (!link.value) { disabled = true; } } else { if (!link.value) { disabled = true; } } textArea.innerHTML = toDisplay; return disabled; } class CSSBuilderModal extends obsidian.Modal { constructor(plugin, saveCallback, cssLink = null) { super(plugin.app); this.cssLink = cssLink; if (!cssLink) { this.cssLink = new CSSLink(); } this.plugin = plugin; this.saveCallback = saveCallback; } onOpen() { this.titleEl.setText(`Select what links to style!`); // is tag const matchAttrPlaceholder = "Attribute value to match."; const matchTagPlaceholder = "Note tag to match (without #)."; const matchPathPlaceholder = "File path to match."; const matchAttrTxt = "Attribute value"; const matchTagTxt = "Tag"; const matchPathTxt = "Path"; const cssLink = this.cssLink; const plugin = this.plugin; this.contentEl.addClass("supercharged-modal"); // Type new obsidian.Setting(this.contentEl) .setName("Type of selector") .setDesc("Attributes selects YAML and DataView attributes" + ", tags chooses the tags of a note, and path considers the name of the note including in what folder it is.") .addDropdown(dc => { Object.keys(selectorType).forEach((type) => { dc.addOption(type, selectorType[type]); if (type === this.cssLink.type) { dc.setValue(type); } }); dc.onChange((type) => { cssLink.type = type; updateContainer(cssLink.type); saveButton.setDisabled(updateDisplay(preview, this.cssLink, this.plugin.settings)); }); }); // attribute name const attrName = new obsidian.Setting(this.contentEl) .setName("Attribute name") .setDesc("What attribute to target? Make sure to first add target attributes to the settings at the top!") .addDropdown(dc => { plugin.settings.targetAttributes.forEach((attribute) => { dc.addOption(attribute, attribute); if (attribute === cssLink.name) { dc.setValue(attribute); } }); dc.onChange(name => { cssLink.name = name; saveButton.setDisabled(updateDisplay(preview, cssLink, plugin.settings)); }); }); // attribute value const attrValue = new obsidian.Setting(this.contentEl) .setName("Value to match") .setDesc("TODO") .addText(t => { t.setValue(cssLink.value); t.onChange(value => { cssLink.value = value; saveButton.setDisabled(updateDisplay(preview, cssLink, plugin.settings)); }); }); this.contentEl.createEl('h4', { text: 'Advanced' }); // matching type const matchingType = new obsidian.Setting(this.contentEl) .setName("Matching type") .setDesc("How to compare the attribute or path with the given value.") .addDropdown(dc => { Object.keys(matchTypes).forEach((key) => { dc.addOption(key, matchTypes[key]); if (key == cssLink.match) { dc.setValue(key); } }); dc.onChange((value) => { cssLink.match = value; saveButton.setDisabled(updateDisplay(preview, cssLink, plugin.settings)); }); }); // case sensitive const caseSensitiveTogglerContainer = new obsidian.Setting(this.contentEl) .setName("Case sensitive matching") .setDesc("Should the matching of the value be case sensitive?") .addToggle(b => { b.setValue(cssLink.matchCaseSensitive); b.onChange(value => { cssLink.matchCaseSensitive = value; b.setDisabled(updateDisplay(preview, cssLink, plugin.settings)); }); }); if (!this.cssLink.name && this.plugin.settings.targetAttributes.length > 0) { this.cssLink.name = this.plugin.settings.targetAttributes[0]; } const updateContainer = function (type) { if (type === 'attribute') { attrName.settingEl.show(); attrValue.nameEl.setText(matchAttrTxt); attrValue.descEl.setText(matchAttrPlaceholder); matchingType.settingEl.show(); caseSensitiveTogglerContainer.settingEl.show(); } else if (type === 'tag') { attrName.settingEl.hide(); attrValue.nameEl.setText(matchTagTxt); attrValue.descEl.setText(matchTagPlaceholder); matchingType.settingEl.hide(); caseSensitiveTogglerContainer.settingEl.hide(); } else { attrName.settingEl.hide(); attrValue.nameEl.setText(matchPathTxt); attrValue.descEl.setText(matchPathPlaceholder); matchingType.settingEl.show(); caseSensitiveTogglerContainer.settingEl.show(); } }; new obsidian.Setting(this.contentEl) .setName("Style options") .setDesc("What styling options are active? " + "Disabling options you won't use can improve performance slightly.") .addToggle(t => { t.onChange(value => { cssLink.selectText = value; }); t.setValue(cssLink.selectText); t.setTooltip("Style link text"); }) .addToggle(t => { t.onChange(value => { cssLink.selectPrepend = value; }); t.setValue(cssLink.selectPrepend); t.setTooltip("Add content before link"); }) .addToggle(t => { t.onChange(value => { cssLink.selectAppend = value; }); t.setValue(cssLink.selectAppend); t.setTooltip("Add content after link"); }) .addToggle(t => { t.onChange(value => { cssLink.selectBackground = value; }); t.setValue(cssLink.selectBackground); t.setTooltip("Add optional background or underline to link"); }); this.contentEl.createEl('h4', { text: 'Result' }); const modal = this; const saveButton = new obsidian.Setting(this.contentEl) .setName("Preview") .setDesc("") .addButton(b => { b.setButtonText("Save"); b.onClick(() => { modal.saveCallback(cssLink); modal.close(); }); }); // generate button const preview = saveButton.nameEl; updateContainer(cssLink.type); saveButton.setDisabled(updateDisplay(preview, this.cssLink, this.plugin.settings)); } } const colorSet = [[ '#0089BA', '#2C73D2', '#008E9B', '#0081CF', '#008F7A', '#008E9B', ], [ '#D65DB1', '#0082C1', '#9270D3', '#007F93', '#007ED9', '#007660', ], [ '#FF9671', '#A36AAA', '#F27D88', '#6967A9', '#D26F9D', '#1b6299', ], [ '#FFC75F', '#4C9A52', '#C3BB4E', '#00855B', '#88AC4B', '#006F61', ], [ '#FF6F91', '#6F7F22', '#E07250', '#257A3E', '#AC7C26', '#006F5F', ], [ '#d9d867', '#2FAB63', '#B8E067', '#008E63', '#78C664', '#007160', ]]; const colors = []; for (const i of Array(6).keys()) { for (const j of Array(6).keys()) { colors.push(colorSet[j][i]); } } function hash(uid) { let hash = 0; for (let i = 0; i < uid.length; i++) { const char = uid.charCodeAt(i); hash = ((hash << 5) - hash) + char; hash = hash & hash; // Convert to 32bit integer } hash = Math.abs(hash); return hash; } function buildCSS(selectors, plugin) { var _a; return __awaiter(this, void 0, void 0, function* () { const instructions = [ "/* WARNING: This file will be overwritten by the plugin.", "Do not edit this file directly! First copy this file and rename it if you want to edit things. */", "", ":root {" ]; selectors.forEach((selector, i) => { if (selector.selectText) { instructions.push(` --${selector.uid}-color: ${colors[hash(selector.uid) % 36]};`); instructions.push(` --${selector.uid}-weight: initial;`); } if (selector.selectPrepend) { instructions.push(` --${selector.uid}-before: '';`); } if (selector.selectAppend) { instructions.push(` --${selector.uid}-after: '';`); } if (selector.selectBackground) { instructions.push(` --${selector.uid}-background-color: #ffffff;`); instructions.push(` --${selector.uid}-decoration: initial;`); } }); instructions.push("}"); selectors.forEach(selector => { let cssSelector; if (selector.type === 'attribute') { cssSelector = `[data-link-${selector.name}${matchSign[selector.match]}="${selector.value}" ${selector.matchCaseSensitive ? "" : " i"}]`; } else if (selector.type === 'tag') { cssSelector = `[data-link-tags*="${selector.value}" i]`; } else { cssSelector = `[data-link-path${matchSign[selector.match]}="${selector.value}" ${selector.matchCaseSensitive ? "" : "i"}]`; } if (selector.selectText) { instructions.push(...[ "", `div[data-id="${selector.uid}"] div.setting-item-description,`, cssSelector + " {", ` color: var(--${selector.uid}-color) !important;`, ` font-weight: var(--${selector.uid}-weight);`, "}" ]); } if (selector.selectBackground) { instructions.push(...["", `.c-${selector.uid}-use-background div[data-id="${selector.uid}"] div.setting-item-description,`, `.c-${selector.uid}-use-background .data-link-text${cssSelector} {`, ` background-color: var(--${selector.uid}-background-color) !important;`, ` border-radius: 5px;`, ` padding-left: 2px;`, ` padding-right: 2px;`, ` text-decoration: var(--${selector.uid}-decoration) !important;`, "}"]); } if (selector.selectPrepend) { instructions.push(...["", `div[data-id="${selector.uid}"] div.setting-item-description::before,`, `.data-link-icon${cssSelector}::before {`, ` content: var(--${selector.uid}-before);`, "}"]); } if (selector.selectAppend) { instructions.push(...["", `div[data-id="${selector.uid}"] div.setting-item-description::after,`, `.data-link-icon-after${cssSelector}::after {`, ` content: var(--${selector.uid}-after);`, "}"]); } }); instructions.push(...[ "/* @settings", "name: Supercharged Links", "id: supercharged-links", "settings:", ]); selectors.forEach((selector, i) => { let name = selector.name; let value = selector.value; if (selector.type === 'tag') { name = 'tag'; // value = "\#" + value; } else if (selector.type === 'path') { name = 'path'; } instructions.push(...[ " - ", ` id: ${selector.uid}`, ` title: ${name} is ${value}`, ` description: Example note`, " type: heading", " collapsed: true", " level: 3" ]); if (selector.selectText) { instructions.push(...[ " - ", ` id: ${selector.uid}-color`, ` title: Link color`, " type: variable-color", " format: hex", ` default: '${colors[hash(selector.uid) % 36]}'`, " - ", ` id: ${selector.uid}-weight`, ` title: Font weight`, " type: variable-select", ` default: initial`, ` options:`, ` - initial`, ` - lighter`, ` - normal`, ` - bold`, ` - bolder`, " - ", ` id: ${selector.uid}-decoration`, ` title: Font decoration`, " type: variable-select", ` default: initial`, ` options:`, ` - initial`, ` - underline`, ` - overline`, ` - line-through` ]); } if (selector.selectPrepend) { instructions.push(...[" - ", ` id: ${selector.uid}-before`, ` title: Prepend text`, ` description: Add some text, such as an emoji, before the links.`, " type: variable-text", ` default: ''`, ` quotes: true`]); } if (selector.selectAppend) { instructions.push(...[" - ", ` id: ${selector.uid}-after`, ` title: Append text`, ` description: Add some text, such as an emoji, after the links.`, " type: variable-text", ` default: ''`, ` quotes: true`]); } if (selector.selectBackground) { instructions.push(...[" - ", ` id: c-${selector.uid}-use-background`, ` title: Use background color`, ` description: Adds a background color to the link. This can look buggy in live preview.`, " type: class-toggle", " - ", ` id: ${selector.uid}-background-color`, ` title: Background color`, " type: variable-color", " format: hex", ` default: '#ffffff'`]); } }); instructions.push("*/"); const vault = plugin.app.vault; const configDir = (_a = vault.configDir) !== null && _a !== void 0 ? _a : ".obsidian"; const pathDir = configDir + "/snippets"; yield vault.adapter.mkdir(pathDir); const path = pathDir + "/supercharged-links-gen.css"; if (yield vault.adapter.exists(path)) { yield vault.adapter.remove(path); } yield plugin.app.vault.create(path, instructions.join('\n')); // Activate snippet if (plugin.settings.activateSnippet) { // @ts-ignore const customCss = plugin.app.customCss; customCss.enabledSnippets.add('supercharged-links-gen'); customCss.requestLoadSnippets(); } // Ensure Style Settings reads changes plugin.app.workspace.trigger("parse-style-settings"); }); } function clearExtraAttributes(link) { Object.values(link.attributes).forEach(attr => { if (attr.name.includes("data-link")) { link.removeAttribute(attr.name); } }); } function fetchTargetAttributesSync(app, settings, dest, addDataHref) { var _a; let new_props = { tags: "" }; const cache = app.metadataCache.getFileCache(dest); if (!cache) return new_props; const frontmatter = cache.frontmatter; if (frontmatter) { settings.targetAttributes.forEach(attribute => { if (Object.keys(frontmatter).includes(attribute)) { if (attribute === 'tag' || attribute === 'tags') { new_props['tags'] += frontmatter[attribute]; } else { new_props[attribute] = frontmatter[attribute]; } } }); } if (settings.targetTags) { new_props["tags"] += obsidian.getAllTags(cache).join(' '); } if (addDataHref) { new_props['data-href'] = dest.basename; } new_props['path'] = dest.path; //@ts-ignore const getResults = (api) => { const page = api.page(dest.path); if (!page) { return; } settings.targetAttributes.forEach((field) => { const value = page[field]; if (value) new_props[field] = value; }); }; if (settings.getFromInlineField && app.plugins.enabledPlugins.has("dataview")) { const api = (_a = app.plugins.plugins.dataview) === null || _a === void 0 ? void 0 : _a.api; if (api) { getResults(api); } else this.plugin.registerEvent(this.app.metadataCache.on("dataview:api-ready", (api) => getResults(api))); } return new_props; } function setLinkNewProps(link, new_props) { // @ts-ignore for (const a of link.attributes) { if (a.name.includes("data-link") && !(a.name in new_props)) { link.removeAttribute(a.name); } } Object.keys(new_props).forEach(key => { const name = "data-link-" + key; const newValue = new_props[key]; const curValue = link.getAttribute(name); // Only update if value is different if (!newValue || curValue != newValue) { link.setAttribute("data-link-" + key, new_props[key]); } }); if (!link.hasClass("data-link-icon")) { link.addClass("data-link-icon"); } if (!link.hasClass("data-link-icon-after")) { link.addClass("data-link-icon-after"); } if (!link.hasClass("data-link-text")) { link.addClass("data-link-text"); } } function updateLinkExtraAttributes(app, settings, link, destName) { const linkHref = link.getAttribute('href').split('#')[0]; const dest = app.metadataCache.getFirstLinkpathDest(linkHref, destName); if (dest) { const new_props = fetchTargetAttributesSync(app, settings, dest, false); setLinkNewProps(link, new_props); } } function updateDivExtraAttributes(app, settings, link, destName, linkName) { if (!linkName) { linkName = link.textContent; } const dest = app.metadataCache.getFirstLinkpathDest(obsidian.getLinkpath(linkName), destName); if (dest) { const new_props = fetchTargetAttributesSync(app, settings, dest, true); setLinkNewProps(link, new_props); } } function updateElLinks(app, plugin, el, ctx) { const settings = plugin.settings; const links = el.querySelectorAll('a.internal-link'); const destName = ctx.sourcePath.replace(/(.*).md/, "$1"); links.forEach((link) => { updateLinkExtraAttributes(app, settings, link, destName); }); } function updateVisibleLinks(app, plugin) { const settings = plugin.settings; app.workspace.iterateRootLeaves((leaf) => { if (leaf.view instanceof obsidian.MarkdownView && leaf.view.file) { const file = leaf.view.file; const cachedFile = app.metadataCache.getFileCache(file); //@ts-ignore const tabHeader = leaf.tabHeaderInnerTitleEl; if (settings.enableTabHeader) { // Supercharge tab headers updateDivExtraAttributes(app, settings, tabHeader, ""); } else { clearExtraAttributes(tabHeader); } if (cachedFile.links) { cachedFile.links.forEach((link) => { const fileName = file.path.replace(/(.*).md/, "$1"); const dest = app.metadataCache.getFirstLinkpathDest(link.link, fileName); if (dest) { const new_props = fetchTargetAttributesSync(app, settings, dest, false); const internalLinks = leaf.view.containerEl.querySelectorAll(`a.internal-link[href="${link.link}"]`); internalLinks.forEach((internalLink) => setLinkNewProps(internalLink, new_props)); } }); } } }); } class SuperchargedLinksSettingTab extends obsidian.PluginSettingTab { constructor(app, plugin) { super(app, plugin); this.plugin = plugin; this.debouncedGenerate = obsidian.debounce(this._generateSnippet, 1000, true); } display() { let { containerEl } = this; containerEl.empty(); /* Managing extra attirbutes for a.internal-link */ new obsidian.Setting(containerEl) .setName('Target Attributes for styling') .setDesc('Frontmatter attributes to target, comma separated') .addTextArea((text) => { text .setPlaceholder('Enter attributes as string, comma separated') .setValue(this.plugin.settings.targetAttributes.join(', ')) .onChange((value) => __awaiter(this, void 0, void 0, function* () { this.plugin.settings.targetAttributes = value.replace(/\s/g, '').split(','); if (this.plugin.settings.targetAttributes.length === 1 && !this.plugin.settings.targetAttributes[0]) { this.plugin.settings.targetAttributes = []; } yield this.plugin.saveSettings(); })); text.inputEl.rows = 6; text.inputEl.cols = 25; }); containerEl.createEl('h4', { text: 'Styling' }); const styleSettingDescription = containerEl.createDiv(); styleSettingDescription.innerHTML = ` Styling can be done using the Style Settings plugin.
  1. Create selectors down below.
  2. Go to the Style Settings tab and style your links!
`; const selectorDiv = containerEl.createDiv(); this.drawSelectors(selectorDiv); containerEl.createEl('h4', { text: 'Settings' }); new obsidian.Setting(containerEl) .setName('Enable in Editor') .setDesc('If true, this will also supercharge internal links in the editor view of a note.') .addToggle(toggle => { toggle.setValue(this.plugin.settings.enableEditor); toggle.onChange(value => { this.plugin.settings.enableEditor = value; this.plugin.saveSettings(); updateVisibleLinks(app, this.plugin); }); }); new obsidian.Setting(containerEl) .setName('Enable in tab headers') .setDesc('If true, this will also supercharge the headers of a tab.') .addToggle(toggle => { toggle.setValue(this.plugin.settings.enableTabHeader); toggle.onChange(value => { this.plugin.settings.enableTabHeader = value; this.plugin.saveSettings(); updateVisibleLinks(app, this.plugin); }); }); new obsidian.Setting(containerEl) .setName('Enable in File Browser') .setDesc('If true, this will also supercharge the file browser.') .addToggle(toggle => { toggle.setValue(this.plugin.settings.enableFileList); toggle.onChange(value => { this.plugin.settings.enableFileList = value; this.plugin.saveSettings(); }); }); new obsidian.Setting(containerEl) .setName('Enable in Plugins') .setDesc('If true, this will also supercharge plugins like the backlinks and forward links panels.') .addToggle(toggle => { toggle.setValue(this.plugin.settings.enableBacklinks); toggle.onChange(value => { this.plugin.settings.enableBacklinks = value; this.plugin.saveSettings(); }); }); new obsidian.Setting(containerEl) .setName('Enable in Quick Switcher') .setDesc('If true, this will also supercharge the quick switcher.') .addToggle(toggle => { toggle.setValue(this.plugin.settings.enableQuickSwitcher); toggle.onChange(value => { this.plugin.settings.enableQuickSwitcher = value; this.plugin.saveSettings(); }); }); new obsidian.Setting(containerEl) .setName('Enable in Link Autocompleter') .setDesc('If true, this will also supercharge the link autocompleter.') .addToggle(toggle => { toggle.setValue(this.plugin.settings.enableSuggestor); toggle.onChange(value => { this.plugin.settings.enableSuggestor = value; this.plugin.saveSettings(); }); }); containerEl.createEl('h4', { text: 'Advanced' }); // Managing choice wether you want to parse tags both from normal tags and in the frontmatter new obsidian.Setting(containerEl) .setName('Parse all tags in the file') .setDesc('Sets the `data-link-tags`-attribute to look for tags both in the frontmatter and in the file as #tag-name') .addToggle(toggle => { toggle.setValue(this.plugin.settings.targetTags); toggle.onChange((value) => __awaiter(this, void 0, void 0, function* () { this.plugin.settings.targetTags = value; yield this.plugin.saveSettings(); })); }); // Managing choice wether you get attributes from inline fields and frontmatter or only frontmater new obsidian.Setting(containerEl) .setName('Search for attribute in Inline fields like ') .setDesc('Sets the `data-link-`-attribute to the value of inline fields') .addToggle(toggle => { toggle.setValue(this.plugin.settings.getFromInlineField); toggle.onChange((value) => __awaiter(this, void 0, void 0, function* () { this.plugin.settings.getFromInlineField = value; yield this.plugin.saveSettings(); })); }); // Automatically activate snippet new obsidian.Setting(containerEl) .setName('Automatically activate snippet') .setDesc('If true, this will automatically activate the generated CSS snippet "supercharged-links-gen.css". ' + 'Turn this off if you don\'t want this to happen.') .addToggle(toggle => { toggle.setValue(this.plugin.settings.activateSnippet); toggle.onChange((value) => __awaiter(this, void 0, void 0, function* () { this.plugin.settings.activateSnippet = value; yield this.plugin.saveSettings(); })); }); /* Managing predefined values for properties */ /* Manage menu options display*/ new obsidian.Setting(containerEl) .setName("Display field options in context menu") .setDesc("This feature has been migrated to metadata-menu plugin https://github.com/mdelobelle/metadatamenu"); } generateSnippet() { this.debouncedGenerate(); } _generateSnippet() { return __awaiter(this, void 0, void 0, function* () { yield buildCSS(this.plugin.settings.selectors, this.plugin); // new Notice("Generated supercharged-links-gen.css"); }); } drawSelectors(div) { div.empty(); this.generateSnippet(); const selectors = this.plugin.settings.selectors; selectors.forEach((selector, i) => { const s = new obsidian.Setting(div) .addButton(button => { button.onClick(() => { const oldSelector = selectors[i + 1]; selectors[i + 1] = selector; selectors[i] = oldSelector; this.drawSelectors(div); }); button.setIcon("down-arrow-with-tail"); button.setTooltip("Move selector down"); if (i === selectors.length - 1) { button.setDisabled(true); } }) .addButton(button => { button.onClick(() => { const oldSelector = selectors[i - 1]; selectors[i - 1] = selector; selectors[i] = oldSelector; this.drawSelectors(div); }); button.setIcon("up-arrow-with-tail"); button.setTooltip("Move selector up"); if (i === 0) { button.setDisabled(true); } }) .addButton(button => { button.onClick(() => { const formModal = new CSSBuilderModal(this.plugin, (newSelector) => { this.plugin.settings.selectors[i] = newSelector; this.plugin.saveSettings(); updateDisplay(s.nameEl, selector, this.plugin.settings); this.generateSnippet(); }, selector); formModal.open(); }); button.setIcon("pencil"); button.setTooltip("Edit selector"); }) .addButton(button => { button.onClick(() => { this.plugin.settings.selectors.remove(selector); this.plugin.saveSettings(); this.drawSelectors(div); }); button.setIcon("cross"); button.setTooltip("Remove selector"); }); updateDisplay(s.nameEl, selector, this.plugin.settings); }); new obsidian.Setting(div) .setName("New selector") .setDesc("Create a new selector to style with Style Settings.") .addButton(button => { button.onClick(() => { const formModal = new CSSBuilderModal(this.plugin, (newSelector) => { this.plugin.settings.selectors.push(newSelector); this.plugin.saveSettings(); this.drawSelectors(div); // TODO: Force redraw somehow? }); formModal.open(); }); button.setButtonText("New"); }); } } const DEFAULT_SETTINGS = { targetAttributes: [], targetTags: true, getFromInlineField: true, enableTabHeader: true, activateSnippet: true, enableEditor: true, enableFileList: true, enableBacklinks: true, enableQuickSwitcher: true, enableSuggestor: true, selectors: [] }; function buildCMViewPlugin(app, _settings) { // Implements the live preview supercharging // Code structure based on https://github.com/nothingislost/obsidian-cm6-attributes/blob/743d71b0aa616407149a0b6ea5ffea28e2154158/src/main.ts // Code help credits to @NothingIsLost! They have been a great help getting this to work properly. class HeaderWidget extends view.WidgetType { constructor(attributes, after) { super(); this.attributes = attributes; this.after = after; } toDOM() { let headerEl = document.createElement("span"); headerEl.setAttrs(this.attributes); if (this.after) { headerEl.addClass('data-link-icon-after'); } else { headerEl.addClass('data-link-icon'); } // create a naive bread crumb return headerEl; } ignoreEvent() { return true; } } const settings = _settings; const viewPlugin = view.ViewPlugin.fromClass(class { constructor(view) { this.decorations = this.buildDecorations(view); } update(update) { if (update.docChanged || update.viewportChanged) { this.decorations = this.buildDecorations(update.view); } } destroy() { } buildDecorations(view$1) { let builder = new state.RangeSetBuilder(); if (!settings.enableEditor) { return builder.finish(); } const mdView = view$1.state.field(obsidian.editorViewField); let lastAttributes = {}; let iconDecoAfter = null; let iconDecoAfterWhere = null; let mdAliasFrom = null; let mdAliasTo = null; for (let { from, to } of view$1.visibleRanges) { language.syntaxTree(view$1.state).iterate({ from, to, enter: (node) => { const tokenProps = node.type.prop(language.tokenClassNodeProp); if (tokenProps) { const props = new Set(tokenProps.split(" ")); const isLink = props.has("hmd-internal-link"); const isAlias = props.has("link-alias"); const isPipe = props.has("link-alias-pipe"); // The 'alias' of the md link const isMDLink = props.has('link'); // The 'internal link' of the md link const isMDUrl = props.has('url'); const isMDFormatting = props.has('formatting-link'); if (isMDLink && !isMDFormatting) { // Link: The 'alias' // URL: The internal link mdAliasFrom = node.from; mdAliasTo = node.to; } if (!isPipe && !isAlias) { if (iconDecoAfter) { builder.add(iconDecoAfterWhere, iconDecoAfterWhere, iconDecoAfter); iconDecoAfter = null; iconDecoAfterWhere = null; } } if (isLink && !isAlias && !isPipe || isMDUrl) { let linkText = view$1.state.doc.sliceString(node.from, node.to); linkText = linkText.split("#")[0]; let file = app.metadataCache.getFirstLinkpathDest(linkText, mdView.file.basename); if (isMDUrl && !file) { try { file = app.vault.getAbstractFileByPath(decodeURIComponent(linkText)); } catch (e) { } } if (file) { let _attributes = fetchTargetAttributesSync(app, settings, file, true); let attributes = {}; for (let key in _attributes) { attributes["data-link-" + key] = _attributes[key]; } let deco = view.Decoration.mark({ attributes, class: "data-link-text" }); let iconDecoBefore = view.Decoration.widget({ widget: new HeaderWidget(attributes, false), }); iconDecoAfter = view.Decoration.widget({ widget: new HeaderWidget(attributes, true), }); if (isMDUrl) { // Apply retroactively to the alias found before let deco = view.Decoration.mark({ attributes: attributes, class: "data-link-text" }); builder.add(mdAliasFrom, mdAliasFrom, iconDecoBefore); builder.add(mdAliasFrom, mdAliasTo, deco); if (iconDecoAfter) { builder.add(mdAliasTo, mdAliasTo, iconDecoAfter); iconDecoAfter = null; iconDecoAfterWhere = null; mdAliasFrom = null; mdAliasTo = null; } } else { builder.add(node.from, node.from, iconDecoBefore); } builder.add(node.from, node.to, deco); lastAttributes = attributes; iconDecoAfterWhere = node.to; } } else if (isLink && isAlias) { let deco = view.Decoration.mark({ attributes: lastAttributes, class: "data-link-text" }); builder.add(node.from, node.to, deco); if (iconDecoAfter) { builder.add(node.to, node.to, iconDecoAfter); iconDecoAfter = null; iconDecoAfterWhere = null; } } } } }); } return builder.finish(); } }, { decorations: v => v.decorations }); return viewPlugin; } class SuperchargedLinks extends obsidian.Plugin { constructor() { super(...arguments); this.modalObservers = []; } onload() { return __awaiter(this, void 0, void 0, function* () { console.log('Supercharged links loaded'); yield this.loadSettings(); this.addSettingTab(new SuperchargedLinksSettingTab(this.app, this)); this.registerMarkdownPostProcessor((el, ctx) => { updateElLinks(this.app, this, el, ctx); }); const plugin = this; const updateLinks = function (_file) { updateVisibleLinks(plugin.app, plugin); plugin.observers.forEach(([observer, type, own_class]) => { const leaves = plugin.app.workspace.getLeavesOfType(type); leaves.forEach(leaf => { plugin.updateContainer(leaf.view.containerEl, plugin, own_class); }); }); }; // Live preview const ext = state.Prec.lowest(buildCMViewPlugin(this.app, this.settings)); this.registerEditorExtension(ext); this.observers = []; this.app.workspace.onLayoutReady(() => { this.initViewObservers(this); this.initModalObservers(this, document); updateVisibleLinks(this.app, this); }); // Initialization this.registerEvent(this.app.workspace.on("window-open", (window, win) => this.initModalObservers(this, window.getContainer().doc))); // Update when // Debounced to prevent lag when writing this.registerEvent(this.app.metadataCache.on('changed', obsidian.debounce(updateLinks, 500, true))); // Update when layout changes // @ts-ignore this.registerEvent(this.app.workspace.on("layout-change", obsidian.debounce(updateLinks, 10, true))); // Update plugin views when layout changes // TODO: This is an expensive operation that seems like it is called fairly frequently. Maybe we can do this more efficiently? this.registerEvent(this.app.workspace.on("layout-change", () => this.initViewObservers(this))); }); } initViewObservers(plugin) { var _a, _b, _c, _d, _e, _f; // Reset observers plugin.observers.forEach(([observer, type]) => { observer.disconnect(); }); plugin.observers = []; // Register new observers plugin.registerViewType('backlink', plugin, ".tree-item-inner", true); plugin.registerViewType('outgoing-link', plugin, ".tree-item-inner", true); plugin.registerViewType('search', plugin, ".tree-item-inner"); plugin.registerViewType('BC-matrix', plugin, '.BC-Link'); plugin.registerViewType('BC-ducks', plugin, '.internal-link'); plugin.registerViewType('BC-tree', plugin, 'a.internal-link'); plugin.registerViewType('graph-analysis', plugin, '.internal-link'); plugin.registerViewType('starred', plugin, '.nav-file-title-content'); plugin.registerViewType('file-explorer', plugin, '.nav-file-title-content'); plugin.registerViewType('recent-files', plugin, '.nav-file-title-content'); // If backlinks in editor is on // @ts-ignore if ((_f = (_e = (_d = (_c = (_b = (_a = plugin.app) === null || _a === void 0 ? void 0 : _a.internalPlugins) === null || _b === void 0 ? void 0 : _b.plugins) === null || _c === void 0 ? void 0 : _c.backlink) === null || _d === void 0 ? void 0 : _d.instance) === null || _e === void 0 ? void 0 : _e.options) === null || _f === void 0 ? void 0 : _f.backlinkInDocument) { plugin.registerViewType('markdown', plugin, '.tree-item-inner', true); } } initModalObservers(plugin, doc) { const config = { subtree: false, childList: true, attributes: false }; this.modalObservers.push(new MutationObserver(records => { records.forEach((mutation) => { if (mutation.type === 'childList') { mutation.addedNodes.forEach(n => { if ('className' in n && // @ts-ignore (n.className.includes('modal-container') && plugin.settings.enableQuickSwitcher // @ts-ignore || n.className.includes('suggestion-container') && plugin.settings.enableSuggestor)) { let selector = ".suggestion-title, .suggestion-note, .another-quick-switcher__item__title, .omnisearch-result__title"; // @ts-ignore if (n.className.includes('suggestion-container')) { selector = ".suggestion-title, .suggestion-note"; } plugin.updateContainer(n, plugin, selector); plugin._watchContainer(null, n, plugin, selector); } }); } }); })); this.modalObservers.last().observe(doc.body, config); } registerViewType(viewTypeName, plugin, selector, updateDynamic = false) { const leaves = this.app.workspace.getLeavesOfType(viewTypeName); if (leaves.length > 1) { for (let i = 0; i < leaves.length; i++) { const container = leaves[i].view.containerEl; if (updateDynamic) { plugin._watchContainerDynamic(viewTypeName + i, container, plugin, selector); } else { plugin._watchContainer(viewTypeName + i, container, plugin, selector); } } } else if (leaves.length < 1) return; else { const container = leaves[0].view.containerEl; this.updateContainer(container, plugin, selector); if (updateDynamic) { plugin._watchContainerDynamic(viewTypeName, container, plugin, selector); } else { plugin._watchContainer(viewTypeName, container, plugin, selector); } } } updateContainer(container, plugin, selector) { if (!plugin.settings.enableBacklinks) return; const nodes = container.findAll(selector); for (let i = 0; i < nodes.length; ++i) { const el = nodes[i]; updateDivExtraAttributes(plugin.app, plugin.settings, el, ""); } } removeFromContainer(container, selector) { const nodes = container.findAll(selector); for (let i = 0; i < nodes.length; ++i) { const el = nodes[i]; clearExtraAttributes(el); } } _watchContainer(viewType, container, plugin, selector) { let observer = new MutationObserver((records, _) => { plugin.updateContainer(container, plugin, selector); }); observer.observe(container, { subtree: true, childList: true, attributes: false }); if (viewType) { plugin.observers.push([observer, viewType, selector]); } } _watchContainerDynamic(viewType, container, plugin, selector, own_class = 'tree-item-inner', parent_class = 'tree-item') { // Used for efficient updating of the backlinks panel // Only loops through newly added DOM nodes instead of changing all of them let observer = new MutationObserver((records, _) => { records.forEach((mutation) => { if (mutation.type === 'childList') { mutation.addedNodes.forEach((n) => { if ('className' in n) { // @ts-ignore if (n.className.includes && typeof n.className.includes === 'function' && n.className.includes(parent_class)) { const fileDivs = n.getElementsByClassName(own_class); for (let i = 0; i < fileDivs.length; ++i) { const link = fileDivs[i]; updateDivExtraAttributes(plugin.app, plugin.settings, link, ""); } } } }); } }); }); observer.observe(container, { subtree: true, childList: true, attributes: false }); plugin.observers.push([observer, viewType, selector]); } onunload() { this.observers.forEach(([observer, type, own_class]) => { observer.disconnect(); const leaves = this.app.workspace.getLeavesOfType(type); leaves.forEach(leaf => { this.removeFromContainer(leaf.view.containerEl, own_class); }); }); for (const observer of this.modalObservers) { observer.disconnect(); } console.log('Supercharged links unloaded'); } loadSettings() { return __awaiter(this, void 0, void 0, function* () { this.settings = Object.assign({}, DEFAULT_SETTINGS, yield this.loadData()); }); } saveSettings() { return __awaiter(this, void 0, void 0, function* () { yield this.saveData(this.settings); }); } } module.exports = SuperchargedLinks; //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZXMiOlsibm9kZV9tb2R1bGVzL3RzbGliL3RzbGliLmVzNi5qcyIsInNyYy9jc3NCdWlsZGVyL2Nzc0xpbmsudHMiLCJzcmMvY3NzQnVpbGRlci9jc3NCdWlsZGVyTW9kYWwudHMiLCJzcmMvY3NzQnVpbGRlci9jc3NCdWlsZGVyLnRzIiwic3JjL2xpbmtBdHRyaWJ1dGVzL2xpbmtBdHRyaWJ1dGVzLnRzIiwic3JjL3NldHRpbmdzL1N1cGVyY2hhcmdlZExpbmtzU2V0dGluZ1RhYi50cyIsInNyYy9zZXR0aW5ncy9TdXBlcmNoYXJnZWRMaW5rc1NldHRpbmdzLnRzI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blxyXG5leHBvcnQgdmFyIF9fYXNzaWduID0gZnVuY3Rpb24oKSB7XHJcbiAgICBfX2Fzc2lnbiA9IE9iamVjdC5hc3NpZ24gfHwgZnVuY3Rpb24gX19hc3NpZ24odCkge1xyXG4gICAgICAgIGZvciAodmFyIHMsIGkgPSAxLCBuID0gYXJndW1lbnRzLmxlbmd0aDsgaSA8IG47IGkrKykge1xyXG4gICAgICAgICAgICBzID0gYXJndW1lbnRzW2ldO1xyXG4gICAgICAgICAgICBmb3IgKHZhciBwIGluIHMpIGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwocywgcCkpIHRbcF0gPSBzW3BdO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gdDtcclxuICAgIH1cclxuICAgIHJldHVybiBfX2Fzc2lnbi5hcHBseSh0aGlzLCBhcmd1bWVudHMpO1xyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gX19yZXN0KHMsIGUpIHtcclxuICAgIHZhciB0ID0ge307XHJcbiAgICBmb3IgKHZhciBwIGluIHMpIGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwocywgcCkgJiYgZS5pbmRleE9mKHApIDwgMClcclxuICAgICAgICB0W3BdID0gc1twXTtcclxuICAgIGlmIChzICE9IG51bGwgJiYgdHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMgPT09IFwiZnVuY3Rpb25cIilcclxuICAgICAgICBmb3IgKHZhciBpID0gMCwgcCA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMocyk7IGkgPCBwLmxlbmd0aDsgaSsrKSB7XHJcbiAgICAgICAgICAgIGlmIChlLmluZGV4T2YocFtpXSkgPCAwICYmIE9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChzLCBwW2ldKSlcclxuICAgICAgICAgICAgICAgIHRbcFtpXV0gPSBzW3BbaV1dO1xyXG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G4gICAgICAgICAgICAgICAgY2FzZSAwOiBjYXNlIDE6IHQgPSBvcDsgYnJlYWs7XHJcbiAgICAgICAgICAgICAgICBjYXNlIDQ6IF8ubGFiZWwrKzsgcmV0dXJuIHsgdmFsdWU6IG9wWzFdLCBkb25lOiBmYWxzZSB9O1xyXG4gICAgICAgICAgICAgICAgY2FzZSA1OiBfLmxhYmVsKys7IHkgPSBvcFsxXTsgb3AgPSBbMF07IGNvbnRpbnVlO1xyXG4gICAgICAgICAgICAgICAgY2FzZSA3OiBvcCA9IF8ub3BzLnBvcCgpOyBfLnRyeXMucG9wKCk7IGNvbnRpbnVlO1xyXG4gICAgICAgICAgICAgICAgZGVmYXVsdDpcclxuICAgICAgICAgICAgICAgICAgICBpZiAoISh0ID0gXy50cnlzLCB0ID0gdC5sZW5ndGggPiAwICYmIHRbdC5sZW5ndGggLSAxXSkgJiYgKG9wWzBdID09PSA2IHx8IG9wWzBdID09PSAyKSkgeyBfID0gMDsgY29udGludWU7IH1cclxuICAgICAgICAgICAgICAgICAgICBpZiAob3BbMF0gPT09IDMgJiYgKCF0IHx8IChvcFsxXSA+IHRbMF0gJiYgb3BbMV0gPCB0WzNdKSkpIHsgXy5sYWJlbCA9IG9wWzFdOyBicmVhazsgfVxyXG4gICAgICAgICAgICAgICAgICAgIGlmIChvcFswXSA9PT0gNiAmJiBfLmxhYmVsIDwgdFsxXSkgeyBfLmxhYmVsID0gdFsxXTsgdCA9IG9wOyBicmVhazsgfVxyXG4gICAgICAgICAgICAgICAgICAgIGlmICh0ICYmIF8ubGFiZWwgPCB0WzJdKSB7IF8ubGFiZWwgPSB0WzJdOyBfLm9wcy5wdXNoKG9wKTsgYnJlYWs7IH1cclxuICAgICAgICAgICAgICAgICAgICBpZiAodFsyXSkgXy5vcHMucG9wKCk7XHJcbiAgICAgICAgICAgICAgICAgICAgXy50cnlzLnBvcCgpOyBjb250aW51ZTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBvcCA9IGJvZH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AgICAgICAgICAgIE9iamVjdC5rZXlzKHNlbGVjdG9yVHlwZSkuZm9yRWFjaCgodHlwZTogU2VsZWN0b3JUeXBlcykgPT4ge1xuICAgICAgICAgICAgICAgICAgICBkYy5hZGRPcHRpb24odHlwZSwgc2VsZWN0b3JUeXBlW3R5cGVdKTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGUgPT09IHRoaXMuY3NzTGluay50eXBlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBkYy5zZXRWYWx1ZSh0eXBlKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIGRjLm9uQ2hhbmdlKCh0eXBlOiBTZWxlY3RvclR5cGVzKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGNzc0xpbmsudHlwZSA9IHR5cGU7XG4gICAgICAgICAgICAgICAgICAgIHVwZGF0ZUNvbnRhaW5lcihjc3NMaW5rLnR5cGUpO1xuICAgICAgICAgICAgICAgICAgICBzYXZlQnV0dG9uLnNldERpc2FibGVkKHVwZGF0ZURpc3BsYXkocHJldmlldywgdGhpcy5jc3NMaW5rLCB0aGlzLnBsdWdpbi5zZXR0aW5ncykpO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgLy8gYXR0cmlidXRlIG5hbWVcbiAgICAgICAgY29uc3QgYXR0ck5hbWUgPSBuZXcgU2V0dGluZyh0aGlzLmNvbnRlbnRFbClcbiAgICAgICAgICAgIC5zZXROYW1lKFwiQXR0cmlidXRlIG5hbWVcIilcbiAgICAgICAgICAgIC5zZXREZXNjKFwiV2hhdCBhdHRyaWJ1dGUgdG8gdGFyZ2V0PyBNYWtlIHN1cmUgdG8gZmlyc3QgYWRkIHRhcmdldCBhdHRyaWJ1dGVzIHRvIHRoZSBzZXR0aW5ncyBhdCB0aGUgdG9wIVwiKVxuICAgICAgICAgICAgLmFkZERyb3Bkb3duKGRjID0+IHtcbiAgICAgICAgICAgICAgICBwbHVnaW4uc2V0dGluZ3MudGFyZ2V0QXR0cmlidXRlcy5mb3JFYWNoKChhdHRyaWJ1dGU6IHN0cmluZykgPT4ge1xuICAgICAgICAgICAgICAgICAgICBkYy5hZGRPcHRpb24oYXR0cmlidXRlLCBhdHRyaWJ1dGUpO1xuICAgICAgICAgICAgICAgICAgICBpZiAoYXR0cmlidXRlID09PSBjc3NMaW5rLm5hbWUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGRjLnNldFZhbHVlKGF0dHJpYnV0ZSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICBkYy5vbkNoYW5nZShuYW1lID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY3NzTGluay5uYW1lID0gbmFtZTtcbiAgICAgICAgICAgICAgICAgICAgc2F2ZUJ1dHRvbi5zZXREaXNhYmxlZCh1cGRhdGVEaXNwbGF5KHByZXZpZXcsIGNzc0xpbmssIHBsdWdpbi5zZXR0aW5ncykpO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSlcblxuXG4gICAgICAgIC8vIGF0dHJpYnV0ZSB2YWx1ZVxuICAgICAgICBjb25zdCBhdHRyVmFsdWUgPSBuZXcgU2V0dGluZyh0aGlzLmNvbnRlbnRFbClcbiAgICAgICAgICAgIC5zZXROYW1lKFwiVmFsdWUgdG8gbWF0Y2hcIilcbiAgICAgICAgICAgIC5zZXREZXNjKFwiVE9ET1wiKVxuICAgICAgICAgICAgLmFkZFRleHQodCA9PiB7XG4gICAgICAgICAgICAgICAgdC5zZXRWYWx1ZShjc3NMaW5rLnZhbHVlKTtcbiAgICAgICAgICAgICAgICB0Lm9uQ2hhbmdlKHZhbHVlID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNzc0xpbmsudmFsdWUgPSB2YWx1ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHNhdmVCdXR0b24uc2V0RGlzYWJsZWQodXBkYXRlRGlzcGxheShwcmV2aWV3LCBjc3NMaW5rLCBwbHVnaW4uc2V0dGluZ3MpKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgIHRoaXMuY29udGVudEVsLmNyZWF0ZUVsKCdoNCcsIHt0ZXh0OiAnQWR2YW5jZWQnfSk7XG4gICAgICAgIC8vIG1hdGNoaW5nIHR5cGVcbiAgICAgICAgY29uc3QgbWF0Y2hpbmdUeXBlID0gbmV3IFNldHRpbmcodGhpcy5jb250ZW50RWwpXG4gICAgICAgICAgICAuc2V0TmFtZShcIk1hdGNoaW5nIHR5cGVcIilcbiAgICAgICAgICAgIC5zZXREZXNjKFwiSG93IHRvIGNvbXBhcmUgdGhlIGF0dHJpYnV0ZSBvciBwYXRoIHdpdGggdGhlIGdpdmVuIHZhbHVlLlwiKVxuICAgICAgICAgICAgLmFkZERyb3Bkb3duKGRjID0+IHtcbiAgICAgICAgICAgICAgICBPYmplY3Qua2V5cyhtYXRjaFR5cGVzKS5mb3JFYWNoKChrZXk6IE1hdGNoVHlwZXMpPT4ge1xuICAgICAgICAgICAgICAgICAgICBkYy5hZGRPcHRpb24oa2V5LCBtYXRjaFR5cGVzW2tleV0pXG4gICAgICAgICAgICAgICAgICAgIGlmIChrZXkgPT0gY3NzTGluay5tYXRjaCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgZGMuc2V0VmFsdWUoa2V5KVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICBkYy5vbkNoYW5nZSgodmFsdWU6IFwiZXhhY3RcIiB8IFwiY29udGFpbnNcIiB8IFwic3RhcnRzd2l0aFwiIHwgXCJlbmRzd2l0aFwiKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGNzc0xpbmsubWF0Y2ggPSB2YWx1ZTtcbiAgICAgICAgICAgICAgICAgICAgc2F2ZUJ1dHRvbi5zZ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AgICAgICBhdHRyVmFsdWUuZGVzY0VsLnNldFRleHQobWF0Y2hQYXRoUGxhY2Vob2xkZXIpO1xuICAgICAgICAgICAgICAgIG1hdGNoaW5nVHlwZS5zZXR0aW5nRWwuc2hvdygpO1xuICAgICAgICAgICAgICAgIGNhc2VTZW5zaXRpdmVUb2dnbGVyQ29udGFpbmVyLnNldHRpbmdFbC5zaG93KCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBuZXcgU2V0dGluZyh0aGlzLmNvbnRlbnRFbClcbiAgICAgICAgICAgIC5zZXROYW1lKFwiU3R5bGUgb3B0aW9uc1wiKVxuICAgICAgICAgICAgLnNldERlc2MoXCJXaGF0IHN0eWxpbmcgb3B0aW9ucyBhcmUgYWN0aXZlPyBcIiArXG4gICAgICAgICAgICAgICAgXCJEaXNhYmxpbmcgb3B0aW9ucyB5b3Ugd29uJ3QgdXNlIGNhbiBpbXByb3ZlIHBlcmZvcm1hbmNlIHNsaWdodGx5LlwiKVxuICAgICAgICAgICAgLmFkZFRvZ2dsZSh0ID0+IHtcbiAgICAgICAgICAgICAgICB0Lm9uQ2hhbmdlKHZhbHVlID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY3NzTGluay5zZWxlY3RUZXh0ID0gdmFsdWU7XG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICB0LnNldFZhbHVlKGNzc0xpbmsuc2VsZWN0VGV4dCk7XG4gICAgICAgICAgICAgICAgdC5zZXRUb29sdGlwKFwiU3R5bGUgbGluayB0ZXh0XCIpO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC5hZGRUb2dnbGUodCA9PiB7XG4gICAgICAgICAgICAgICAgdC5vbkNoYW5nZSh2YWx1ZSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGNzc0xpbmsuc2VsZWN0UHJlcGVuZCA9IHZhbHVlO1xuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgdC5zZXRWYWx1ZShjc3NMaW5rLnNlbGVjdFByZXBlbmQpO1xuICAgICAgICAgICAgICAgIHQuc2V0VG9vbHRpcChcIkFkZCBjb250ZW50IGJlZm9yZSBsaW5rXCIpO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC5hZGRUb2dnbGUodCA9PiB7XG4gICAgICAgICAgICAgICAgdC5vbkNoYW5nZSh2YWx1ZSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGNzc0xpbmsuc2VsZWN0QXBwZW5kID0gdmFsdWU7XG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICB0LnNldFZhbHVlKGNzc0xpbmsuc2VsZWN0QXBwZW5kKTtcbiAgICAgICAgICAgICAgICB0LnNldFRvb2x0aXAoXCJBZGQgY29udGVudCBhZnRlciBsaW5rXCIpO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC5hZGRUb2dnbGUodCA9PiB7XG4gICAgICAgICAgICAgICAgdC5vbkNoYW5nZSh2YWx1ZSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGNzc0xpbmsuc2VsZWN0QmFja2dyb3VuZCA9IHZhbHVlO1xuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgdC5zZXRWYWx1ZShjc3NMaW5rLnNlbGVjdEJhY2tncm91bmQpO1xuICAgICAgICAgICAgICAgIHQuc2V0VG9vbHRpcChcIkFkZCBvcHRpb25hbCBiYWNrZ3JvdW5kIG9yIHVuZGVybGluZSB0byBsaW5rXCIpO1xuICAgICAgICAgICAgfSk7XG5cblxuICAgICAgICB0aGlzLmNvbnRlbnRFbC5jcmVhdGVFbCgnaDQnLCB7dGV4dDogJ1Jlc3VsdCd9KTtcbiAgICAgICAgY29uc3QgbW9kYWwgPSB0aGlzO1xuICAgICAgICBjb25zdCBzYXZlQnV0dG9uID0gbmV3IFNldHRpbmcodGhpcy5jb250ZW50RWwpXG4gICAgICAgICAgICAuc2V0TmFtZShcIlByZXZpZXdcIilcbiAgICAgIC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vci5tYXRjaENhc2VTZW5zaXRpdmUgP1wiXCIgOiBcImlcIn1dYDtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChzZWxlY3Rvci5zZWxlY3RUZXh0KSB7XG4gICAgICAgICAgICBpbnN0cnVjdGlvbnMucHVzaCguLi5bXG4gICAgICAgICAgICAgICAgXCJcIixcbiAgICAgICAgICAgICAgICBgZGl2W2RhdGEtaWQ9XCIke3NlbGVjdG9yLnVpZH1cIl0gZGl2LnNldHRpbmctaXRlbS1kZXNjcmlwdGlvbixgLFxuICAgICAgICAgICAgICAgIGNzc1NlbGVjdG9yICsgXCIge1wiLFxuICAgICAgICAgICAgICAgIGAgICAgY29sb3I6IHZhcigtLSR7c2VsZWN0b3IudWlkfS1jb2xvcikgIWltcG9ydGFudDtgLFxuICAgICAgICAgICAgICAgIGAgICAgZm9udC13ZWlnaHQ6IHZhcigtLSR7c2VsZWN0b3IudWlkfS13ZWlnaHQpO2AsXG4gICAgICAgICAgICAgICAgXCJ9XCJdKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoc2VsZWN0b3Iuc2VsZWN0QmFja2dyb3VuZCkge1xuICAgICAgICAgICAgaW5zdHJ1Y3Rpb25zLnB1c2goLi4uW1wiXCIsXG4gICAgICAgICAgICAgICAgYC5jLSR7c2VsZWN0b3IudWlkfS11c2UtYmFja2dyb3VuZCBkaXZbZGF0YS1pZD1cIiR7c2VsZWN0b3IudWlkfVwiXSBkaXYuc2V0dGluZy1pdGVtLWRlc2NyaXB0aW9uLGAsXG4gICAgICAgICAgICAgICAgYC5jLSR7c2VsZWN0b3IudWlkfS11c2UtYmFja2dyb3VuZCAuZGF0YS1saW5rLXRleHQke2Nzc1NlbGVjdG9yfSB7YCxcbiAgICAgICAgICAgICAgICBgICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLSR7c2VsZWN0b3IudWlkfS1iYWNrZ3JvdW5kLWNvbG9yKSAhaW1wb3J0YW50O2AsXG4gICAgICAgICAgICAgICAgYCAgICBib3JkZXItcmFkaXVzOiA1cHg7YCxcbiAgICAgICAgICAgICAgICBgICAgIHBhZGRpbmctbGVmdDogMnB4O2AsXG4gICAgICAgICAgICAgICAgYCAgICBwYWRkaW5nLXJpZ2h0OiAycHg7YCxcbiAgICAgICAgICAgICAgICBgICAgIHRleHQtZGVjb3JhdGlvbjogdmFyKC0tJHtzZWxlY3Rvci51aWR9LWRlY29yYXRpb24pICFpbXBvcnRhbnQ7YCxcbiAgICAgICAgICAgICAgICBcIn1cIl0pO1xuICAgICAgICB9XG4gICAgICAgIGlmIChzZWxlY3Rvci5zZWxlY3RQcmVwZW5kKSB7XG4gICAgICAgICAgICBpbnN0cnVjdGlvbnMucHVzaCguLi5bXCJcIixcbiAgICAgICAgICAgICAgICBgZGl2W2RhdGEtaWQ9XCIke3NlbGVjdG9yLnVpZH1cIl0gZGl2LnNldHRpbmctaXRlbS1kZXNjcmlwdGlvbjo6YmVmb3JlLGAsXG4gICAgICAgICAgICAgICAgYC5kYXRhLWxpbmstaWNvbiR7Y3NzU2VsZWN0b3J9OjpiZWZvcmUge2AsXG4gICAgICAgICAgICAgICAgYCAgICBjb250ZW50OiB2YXIoLS0ke3NlbGVjdG9yLnVpZH0tYmVmb3JlKTtgLFxuICAgICAgICAgICAgICAgIFwifVwiXSk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHNlbGVjdG9yLnNlbGVjdEFwcGVuZCkge1xuICAgICAgICAgICAgaW5zdHJ1Y3Rpb25zLnB1c2goLi4uW1wiXCIsXG4gICAgICAgICAgICAgICAgYGRpdltkYXRhLWlkPVwiJHtzZWxlY3Rvci51aWR9XCJdIGRpdi5zZXR0aW5nLWl0ZW0tZGVzY3JpcHRpb246OmFmdGVyLGAsXG4gICAgICAgICAgICAgICAgYC5kYXRhLWxpbmstaWNvbi1hZnRlciR7Y3NzU2VsZWN0b3J9OjphZnRlciB7YCxcbiAgICAgICAgICAgICAgICBgICAgIGNvbnRlbnQ6IHZhcigtLSR7c2VsZWN0b3IudWlkfS1hZnRlcik7YCxcbiAgICAgICAgICAgICAgICBcIn1cIl0pO1xuICAgICAgICB9XG4gICAgfSk7XG5cbiAgICBpbnN0cnVjdGlvbnMucHVzaCguLi5bXG4gICAgICAgIFwiLyogQHNldHRpbmdzXCIsXG4gICAgICAgIFwibmFtZTogU3VwZXJjaGFyZ2VkIExpbmtzXCIsXG4gICAgICAgIFwiaWQ6IHN1cGVyY2hhcmdlZC1saW5rc1wiLFxuICAgICAgICBcInNldHRpbmdzOlwiLFxuICAgIF0pO1xuXG4gICAgc2VsZWN0b3JzLmZvckVhY2goKHNlbGVjdG9yLCBpKSA9PiB7XG4gICAgICAgIGxldCBuYW1lID0gc2VsZWN0b3IubmFtZTtcbiAgICAgICAgbGV0IHZhbHVlID0gc2VsZWN0b3IudmFsdWU7XG4gICAgICAgIGlmIChzZWxlY3Rvci50eXBlID09PSAndGFnJykge1xuICAgICAgICAgICAgbmFtZSA9ICd0YWcnO1xuICAgICAgICAgICAgLy8gdmFsdWUgPSBcIlxcI1wiICsgdmFsdWU7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSBpZiAoc2VsZWN0b3IudHlwZSA9PT0gJ3BhdGgnKXtcbiAgICAgICAgICAgIG5hbWUgPSAncGF0aCc7XG4gICAgICAgIH1cbiAgICAgICAgaW5zdHJ1Y3Rpb25zLnB1c2goLi4uW1xuICAgICAgICAgICAgXCIgICAgLSBcIixcbiAgICAgICAgICAgIGAgICAgICAgIGlkOiAke3NlbGVjdG9yLnVpZH1gLFxuICAgICAgICAgICAgYCAgICAgICAgdGl0bGU6ICR7bmFtZX0gaXMgJHt2YWx1ZX1gLFxuICAgICAgICAgICAgYCAgICAgICAgZGVzY3JpcHRpb246IEV4YW1wbGUgbm90ZWAsXG4gICAgICAgICAgICBcIiAgICAgICAgdHlwZTogaGVhZGluZ1wiLFxuICAgICAgICAgICAgXCIgICAgICAgIGNvbGxhcHNlZDogdHJ1ZVwiLFxuICAgICAgICAgICAgXCIgICAgICAgIGxldmVsOiAzXCJdKTtcbiAgICAgICAgaWYgKHNlbGVjdG9yLnNlbGVjdFRleHQpIHtcbiAgICAgICAgICAgIGluc3RydWN0aW9ucy5wdXNoKC4uLltcbiAgICAgICAgICAgICAgICBcIiAgICAtIFwiLFxuICAgICAgICAgICAgICAgIGAgICAgICAgIGlkOiAke3NlbGVjdG9yLnVpZH0tY29sb3JgLFxuICAgICAgICAgICAgICAgIGAgICAgICAgIHRpdGxlOiBMaW5rIGNvbG9yYCxcbiAgICAgICAgICAgICAgICBcIiAgICAgICAgdHlwZTogdmFyaWFibGUtY29sb3JcIixcbiAgICAgICAgICAgICAgICBcIiAgICAgICAgZm9ybWF0OiBoZXhcIixcbiAgICAgICAgICAgICAgICBgICAgICAgICBkZWZhdWx0OiAnJHtjb2xvcnNbaGFzaChzZWxlY3Rvci51aWQpICUgMzZdfSdgLFxuICAgICAgICAgICAgICAgIFwiICAgIC0gXCIsXG4gICAgICAgICAgICAgICAgYCAgICAgICAgaWQ6ICR7c2VsZWN0b3IudWlkfS13ZWlnaHRgLFxuICAgICAgICAgICAgICAgIGAgICAgICAgIHRpdGxlOiBGb250IHdlaWdodGAsXG4gICAgICAgICAgICAgICAgXCIgICAgICAgIHR5cGU6IHZhcmlhYmxlLXNlbGVjdFwiLFxuICAgICAgICAgICAgICAgIGAgICAgICAgIGRlZmF1bHQ6IGluaXRpYWxgLFxuICAgICAgICAgICAgICAgIGAgICAgICAgIG9wdGlvbnM6YCxcbiAgICAgICAgICAgICAgICBgICAgICAgICAgICAgLSBpbml0aWFsYCxcbiAgICAgICAgICAgICAgICBgICAgICAgICAgICAgLSBsaWdodGVyYCxcbiAgICAgICAgICAgICAgICBgICAgICAgICAgICAgLSBub3JtYWxgLFxuICAgICAgICAgICAgICAgIGAgICAgICAgICAgICAtIGJvbGRgLFxuICAgICAgICAgICAgICAgIGAgICAgICAgICAgICAtIGJvbGRlcmAsXG4gICAgICAgICAgICAgICAgXCIgICAgLSBcIixcbiAgICAgICAgICAgICAgICBgICAgICAgICBpZDogJHtzZWxlY3Rvci51aWR9LWRlY29yYXRpb25gLFxuICAgICAgICAgICAgICAgIGAgICAgICAgIHRpdGxlOiBGb250IGRlY29yYXRpb25gLFxuICAgICAgICAgICAgICAgIFwiICAgICAgICB0eXBlOiB2YXJpYWJsZS1zZWxlY3RcIixcbiAgICAgICAgICAgICAgICBgICAgICAgICBkZWZhdWx0OiBpbml0aWFsYCxcbiAgICAgICAgICAgICAgICBgICAgICAgICBvcHRpb25zOmAsXG4gICAgICAgICAgICAgICAgYCAgICAgICAgICAgIC0gaW5pdGlhbGAsXG4gICAgICAgICAgICAgICAgYCAgICAgICAgICAgIC0gdW5kZXJsaW5lYCxcbiAgICAgICAgICAgICAgICBgICAgICAgICAgICAgLSBvdmVybGluZWAsXG4gICAgICAgICAgICAgICAgYCAgICAgICAgICAgIC0gbGluZS10aHJvdWdoYF0pXG4gICAgICAgIH1cbiAgICAgICAgaWYgKHNlbGVjdG9yLnNlbGVjdFByZXBlbmQpIHtcbiAgICAgICAgICAgIGluc3RydWN0aW9ucy5wdXNoKC4uLltcIiAgICAtIFwiLFxuICAgICAgICAgICAgYCAgICAgICAgaWQ6ICR7c2VsZWN0b3IudWlkfS1iZWZvcmVgLFxuICAgICAgICAgICAgYCAgICAgICAgdGl0bGU6IFByZXBlbmQgdGV4dGAsXG4gICAgICAgICAgICBgICAgICAgICBkZXNjcmlwdGlvbjogQWRkIHNvbWUgdGV4dCwgc3VjaCBhcyBhbiBlbW9qaSwgYmVmb3JlIHRoZSBsaW5rcy5gLFxuICAgICAgICAgICAgXCIgICAgICAgIHR5cGU6IHZhcmlhYmxlLXRleHRcIixcbiAgICAgICAgICAgIGAgICAgICAgIGRlZmF1bHQ6ICcnYCxcbiAgICAgICAgICAgIGAgICAgICAgIHF1b3RlczogdHJ1ZWBdKVxuICAgICAgICB9XG4gICAgICAgIGlmIChzZWxlY3Rvci5zZWxlY3RBcHBlbmQpIHtcbiAgICAgICAgICAgIGluc3RydWN0aW9ucy5wdXNoKC4uLltcIiAgICAtIFwiLFxuICAgICAgICAgICAgICAgIGAgICAgICAgIGlkOiAke3NlbGVjdG9yLnVpZH0tYWZ0ZXJgLFxuICAgICAgICAgICAgICAgIGAgICAgICAgIHRpdGxlOiBBcHBlbmQgdGV4dGAsXG4gICAgICAgICAgICAgICAgYCAgICAgICAgZGVzY3JpcHRpb246IEFkZCBzb21lIHRleHQsIHN1Y2ggYXMgYW4gZW1vamksIGFmdGVyIHRoZSBsaW5rcy5gLFxuICAgICAgICAgICAgICAgIFwiICAgICAgICB0eXBlOiB2YXJpYWJsZS10ZXh0XCIsXG4gICAgICAgICAgICAgICAgYCAgICAgICAgZGVmYXVsdDogJydgLFxuICAgICAgICAgICAgICAgIGAgICAgICAgIHF1b3RlczogdHJ1ZWBdKVxuICAgICAgICB9XG4gICAgICAgIGlmKHNlbGVjdG9yLnNlbGVjdEJhY2tncm91bmQpIHtcbiAgICAgICAgICAgIGluc3RydWN0aW9ucy5wdXNoKC4uLltcIiAgICAtIFwiLFxuICAgICAgICAgICAgICAgIGAgICAgICAgIGlkOiBjLSR7c2VsZWN0b3IudWlkfS11c2UtYmFja2dyb3VuZGAsXG4gICAgICAgICAgICAgICAgYCAgICAgICAgdGl0bGU6IFVzZSBiYWNrZ3JvdW5kIGNvbG9yYCxcbiAgICAgICAgICAgICAgICBgICAgICAgICBkZXNjcmlwdGlvbjogQWRkcyBhIGJhY2tncm91bmQgY29sb3IgdG8gdGhlIGxpbmsuIFRoaXMgY2FuIGxvb2sgYnVnZ3kgaW4gbGl2ZSBwcmV2aWV3LmAsXG4gICAgICAgICAgICAgICAgXCIgICAgICAgIHR5cGU6IGNsYXNzLXRvZ2dsZVwiLFxuICAgICAgICAgICAgICAgIFwiICAgIC0gXCIsXG4gICAgICAgICAgICAgICAgYCAgICAgICAgaWQ6ICR7c2VsZWN0b3IudWlkfS1iYWNrZ3JvdW5kLWNvbG9yYCxcbiAgICAgICAgICAgICAgICB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JvcHNbJ3BhdGgnXSA9IGRlc3QucGF0aDtcbiAgICAvL0B0cy1pZ25vcmVcbiAgICBjb25zdCBnZXRSZXN1bHRzID0gKGFwaSkgPT4ge1xuICAgICAgICBjb25zdCBwYWdlID0gYXBpLnBhZ2UoZGVzdC5wYXRoKTtcbiAgICAgICAgaWYgKCFwYWdlKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgc2V0dGluZ3MudGFyZ2V0QXR0cmlidXRlcy5mb3JFYWNoKChmaWVsZDogc3RyaW5nKSA9PiB7XG4gICAgICAgICAgICBjb25zdCB2YWx1ZSA9IHBhZ2VbZmllbGRdO1xuICAgICAgICAgICAgaWYgKHZhbHVlKSBuZXdfcHJvcHNbZmllbGRdID0gdmFsdWU7XG4gICAgICAgIH0pXG4gICAgfTtcblxuICAgIGlmIChzZXR0aW5ncy5nZXRGcm9tSW5saW5lRmllbGQgJiYgYXBwLnBsdWdpbnMuZW5hYmxlZFBsdWdpbnMuaGFzKFwiZGF0YXZpZXdcIikpIHtcbiAgICAgICAgY29uc3QgYXBpID0gYXBwLnBsdWdpbnMucGx1Z2lucy5kYXRhdmlldz8uYXBpO1xuICAgICAgICBpZiAoYXBpKSB7XG4gICAgICAgICAgICBnZXRSZXN1bHRzKGFwaSlcbiAgICAgICAgfVxuICAgICAgICBlbHNlXG4gICAgICAgICAgICB0aGlzLnBsdWdpbi5yZWdpc3RlckV2ZW50KFxuICAgICAgICAgICAgICAgIHRoaXMuYXBwLm1ldGFkYXRhQ2FjaGUub24oXCJkYXRhdmlldzphcGktcmVhZHlcIiwgKGFwaTogYW55KSA9PlxuICAgICAgICAgICAgICAgICAgICBnZXRSZXN1bHRzKGFwaSlcbiAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICApO1xuICAgIH1cblxuICAgIHJldHVybiBuZXdfcHJvcHNcbn1cblxuZnVuY3Rpb24gc2V0TGlua05ld1Byb3BzKGxpbms6IEhUTUxFbGVtZW50LCBuZX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WxlID0gbGVhZi52aWV3LmZpbGU7XG4gICAgICAgICAgICBjb25zdCBjYWNoZWRGaWxlID0gYXBwLm1ldGFkYXRhQ2FjaGUuZ2V0RmlsZUNhY2hlKGZpbGUpO1xuXG4gICAgICAgICAgICAvL0B0cy1pZ25vcmVcbiAgICAgICAgICAgIGNvbnN0IHRhYkhlYWRlcjogSFRNTEVsZW1lbnQgPSBsZWFmLnRhYkhlYWRlcklubmVyVGl0bGVFbDtcbiAgICAgICAgICAgIGlmIChzZXR0aW5ncy5lbmFibGVUYWJIZWFkZXIpIHtcbiAgICAgICAgICAgICAgICAvLyBTdXBlcmNoYXJnZSB0YWIgaGVhZGVyc1xuICAgICAgICAgICAgICAgIHVwZGF0ZURpdkV4dHJhQXR0cmlidXRlcyhhcHAsIHNldHRpbmdzLCB0YWJIZWFkZXIsIFwiXCIpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgY2xlYXJFeHRyYUF0dHJpYnV0ZXModGFiSGVhZGVyKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKGNhY2hlZEZpbGUubGlua3MpIHtcbiAgICAgICAgICAgICAgICBjYWNoZWRGaWxlLmxpbmtzLmZvckVhY2goKGxpbms6IExpbmtDYWNoZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBmaWxlTmFtZSA9IGZpbGUucGF0aC5yZXBsYWNlKC8oLiopLm1kLywgXCIkMVwiKVxuICAgICAgICAgICAgICAgICAgICBjb25zdCBkZXN0ID0gYXBwLm1ldGFkYXRhQ2FjaGUuZ2V0Rmlyc3RMaW5rcGF0aERlc3QobGluay5saW5rLCBmaWxlTmFtZSlcbiAgICAgICAgICAgICAgICAgICAgaWYgKGRlc3QpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IG5ld19wcm9wcyA9IGZldGNoVGFyZ2V0QXR0cmlidXRlc1N5bmMoYXBwLCBzZXR0aW5ncywg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AodGhpcy5hZnRlcikge1xuICAgICAgICAgICAgICAgIGhlYWRlckVsLmFkZENsYXNzKCdkYXRhLWxpbmstaWNvbi1hZnRlcicpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgaGVhZGVyRWwuYWRkQ2xhc3MoJ2RhdGEtbGluay1pY29uJylcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIC8vIGNyZWF0ZSBhIG5haXZlIGJyZWFkIGNydW1iXG4gICAgICAgICAgICByZXR1cm4gaGVhZGVyRWw7XG4gICAgICAgIH1cblxuICAgICAgICBpZ25vcmVFdmVudCgpIHtcbiAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgY29uc3Qgc2V0dGluZ3MgPSBfc2V0dGluZ3M7XG4gICAgY29uc3Qgdmlld1BsdWdpbiA9IFZpZXdQbHVnaW4uZnJvbUNsYXNzKFxuICAgICAgICBjbGFzcyB7XG4gICAgICAgICAgICBkZWNvcmF0aW9uczogRGVjb3JhdGlvblNldDtcblxuICAgICAgICAgICAgY29uc3RydWN0b3IodmlldzogRWRpdG9yVmlldykge1xuICAgICAgICAgICAgICAgIHRoaXMuZGVjb3JhdGlvbnMgPSB0aGlzLmJ1aWxkRGVjb3JhdGlvbnModmlldyk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHVwZGF0ZSh1cGRhdGU6IFZpZXdVcGRhdGUpIHtcbiAgICAgICAgICAgICAgICBpZiAodXBkYXRlLmRvY0NoYW5nZWQgfHwgdXBkYXRlLnZpZXdwb3J0Q2hhbmdlZCkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmRlY29yYXRpb25zID0gdGhpcy5idWlsZERlY29yYXRpb25zKHVwZGF0ZS52aWV3KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGRlc3Ryb3koKSB7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGJ1aWxkRGVjb3JhdGlvbnModmlldzogRWRpdG9yVmlldykge1xuICAgICAgICAgICAgICAgIGxldCBidWlsZGVyID0gbmV3IFJhbmdlU2V0QnVpbGRlcjxEZWNvcmF0aW9uPigpO1xuICAgICAgICAgICAgICAgIGlmICghc2V0dGluZ3MuZW5hYmxlRWRpdG9yKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBidWlsZGVyLmZpbmlzaCgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBjb25zdCBtZFZpZXcgPSB2aWV3LnN0YXRlLmZpZWxkKGVkaXRvclZpZXdGaWVsZCkgYXMgTWFya2Rvd25WaWV3O1xuICAgICAgICAgICAgICAgIGxldCBsYXN0QXR0cmlidXRlcyA9IHt9O1xuICAgICAgICAgICAgICAgIGxldCBpY29uRGVjb0FmdGVyOiBEZWNvcmF0aW9uID0gbnVsbDtcbiAgICAgICAgICAgICAgICBsZXQgaWNvbkRlY29BZnRlcldoZXJlOiBudW1iZXIgPSBudWxsO1xuXG4gICAgICAgICAgICAgICAgbGV0IG1kQWxpYXNGcm9tOiBudW1iZXIgPSBudWxsO1xuICAgICAgICAgICAgICAgIGxldCBtZEFsaWFzVG86IG51bWJlciA9IG51bGw7XG4gICAgICAgICAgICAgICAgZm9yIChsZXQge2Zyb20sIHRvfSBvZiB2aWV3LnZpc2libGVSYW5nZXMpIHtcbiAgICAgICAgICAgICAgICAgICAgc3ludGF4VHJlZSh2aWV3LnN0YXRlKS5pdGVyYXRlKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGZyb20sXG4gICAgICAgICAgICAgICAgICAgICAgICB0byxcbiAgICAgICAgICAgICAgICAgICAgICAgIGVudGVyOiAobm9kZSkgPT4ge1xuXG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCB0b2tlblByb3BzID0gbm9kZS50eXBlLnByb3AodG9rZW5DbGFzc05vZGVQcm9wKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAodG9rZW5Qcm9wcykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBwcm9wcyA9IG5ldyBTZXQodG9rZW5Qcm9wcy5zcGxpdChcIiBcIikpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBpc0xpbmsgPSBwcm9wcy5oYXMoXCJobWQtaW50ZXJuYWwtbGlua1wiKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgaXNBbGlhcyA9IHByb3BzLmhhcyhcImxpbmstYWxpYXNcIik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGlzUGlwZSA9IHByb3BzLmhhcyhcImxpbmstYWxpYXMtcGlwZVwiKTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBUaGUgJ2FsaWFzJyBvZiB0aGUgbWQgbGlua1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBpc01ETGluayA9IHByb3BzLmhhcygnbGluaycpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBUaGUgJ2ludGVybmFsIGxpbmsnIG9mIHRoZSBtZCBsaW5rXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGlzTURVcmwgPSBwcm9wcy5oYXMoJ3VybCcpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBpc01ERm9ybWF0dGluZyA9IHByb3BzLmhhcygnZm9ybWF0dGluZy1saW5rJyk7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGlzTURMaW5rICYmICFpc01ERm9ybWF0dGluZykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gTGluazogVGhlICdhbGlhcydcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIFVSTDogVGhlIGludGVybmFsIGxpbmtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1kQWxpYXNGcm9tID0gbm9kZS5mcm9tO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWRBbGlhc1RvID0gbm9kZS50bztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghaXNQaXBlICYmICFpc0FsaWFzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoaWNvbkRlY29BZnRlcikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJ1aWxkZXIuYWRkKGljb25EZWNvQWZ0ZXJXaGVyZSwgaWNvbkRlY29BZnRlcldoZXJlLCBpY29uRGVjb0FmdGVyKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpY29uRGVjb0FmdGVyID0gbnVsbDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpY29uRGVjb0FmdGVyV2hlcmUgPSBudWxsO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChpc0xpbmsgJiYgIWlzQWxpYXMgJiYgIWlzUGlwZSB8fCBpc01EVXJsKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgbGlua1RleHQgPSB2aWV3LnN0YXRlLmRvYy5zbGljZVN0cmluZyhub2RlLmZyb20sIG5vZGUudG8pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGlua1RleHQgPSBsaW5rVGV4dC5zcGxpdChcIiNcIilbMF07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgZmlsZSA9IGFwcC5tZXRhZGF0YUNhY2hlLmdldEZpcnN0TGlua3BhdGhEZXN0KGxpbmtUZXh0LCBtZFZpZXcuZmlsZS5iYXNlbmFtZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoaXNNRFVybCAmJiAhZmlsZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbGUgPSBhcHAudmF1bHQuZ2V0QWJzdHJhY3RGaWxlQnlQYXRoKGRlY29kZVVSSUNvbXBvbmVudChsaW5rVGV4dCkpIGFzIFRGaWxlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYXRjaChlKSB7fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGZpbGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgX2F0dHJpYnV0ZXMgPSBmZXRjaFRhcmdldEF0dHJpYnV0ZXNTeW5jKGFwcCwgc2V0dGluZ3MsIGZpbGUsIHRydWUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBhdHRyaWJ1dGVzOiBSZWNvcmQ8c3RyaW5nLCBzdHJpbmc+ID0ge307XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQga2V5IGluIF9hdHRyaWJ1dGVzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJpYnV0ZXNbXCJkYXRhLWxpbmstXCIgKyBrZXldID0gX2F0dHJpYnV0ZXNba2V5XTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGRlY28gPSBEZWNvcmF0aW9uLm1hcmsoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyaWJ1dGVzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzczogXCJkYXRhLWxpbmstdGV4dFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGljb25EZWNvQmVmb3JlID0gRGVjb3JhdGlvbi53aWRnZXQoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aWRnZXQ6IG5ldyBIZWFkZXJXaWRnZXQoYXR0cmlidXRlcywgZmFsc2UpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGljb25EZWNvQWZ0ZXIgPSBEZWNvcmF0aW9uLndpZGdldCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdpZGdldDogbmV3IEhlYWRlcldpZGdldChhdHRyaWJ1dGVzLCB0cnVlKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChpc01EVXJsKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIEFwcGx5IHJldHJvYWN0aXZlbHkgdG8gdGhlIGFsaWFzIGZvdW5kIGJlZm9yZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgZGVjbyA9IERlY29yYXRpb24ubWFyayh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyaWJ1dGVzOiBhdHRyaWJ1dGVzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M6IFwiZGF0YS1saW5rLXRleHRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnVpbGRlci5hZGQobWRBbGlhc0Zyb20sIG1kQWxpYXNGcm9tLCBpY29uRGVjb0JlZm9yZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJ1aWxkZXIuYWRkKG1kQWxpYXNGcm9tLCBtZEFsaWFzVG8sIGRlY28pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoaWNvbkRlY29BZnRlcikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnVpbGRlci5hZGQobWRBbGlhc1RvLCBtZEFsaWFzVG8sIGljb25EZWNvQWZ0ZXIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWNvbkRlY29BZnRlciA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpY29uRGVjb0FmdGVyV2hlcmUgPSBudWxsO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWRBbGlhc0Zyb20gPSBudWxsO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWRBbGlhc1RvID0gbnVsbDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnVpbGRlci5hZGQobm9kZS5mcm9tLCBub2RlLmZyb20sIGljb25EZWNvQmVmb3JlKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBidWlsZGVyLmFkZChub2RlLmZyb20sIG5vZGUudG8sIGRlY28pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxhc3RBdHRyaWJ1dGVzID0gYXR0cmlidXRlcztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpY29uRGVjb0FmdGVyV2hlcmUgPSBub2RlLnRvO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKGlzTGluayAmJiBpc0FsaWFzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgZGVjbyA9IERlY29yYXRpb24ubWFyayh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cmlidXRlczogbGFzdEF0dHJpYnV0ZXMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M6IFwiZGF0YS1saW5rLXRleHRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBidWlsZGVyLmFkZChub2RlLmZyb20sIG5vZGUudG8sIGRlY28pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGljb25EZWNvQWZ0ZXIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBidWlsZGVyLmFkZChub2RlLnRvLCBub2RlLnRvLCBpY29uRGVjb0FmdGVyKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpY29uRGVjb0FmdGVyID0gbnVsbDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpY29uRGVjb0FmdGVyV2hlcmUgPSBudWxsO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9KVxuXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHJldHVybiBidWlsZGVyLmZpbmlzaCgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgICBkZWNvcmF0aW9uczogdiA9PiB2LmRlY29yYXRpb25zXG4gICAgICAgIH1cbiAgICApO1xuICAgIHJldHVybiB2aWV3UGx1Z2luO1xufVxuIiwiaW1wb3J0IHtQbHVnaW4sIGRlYm91bmNlLCBURmlsZX0gZnJvbSAnb2JzaWRpYW4nO1xyXG5pbXBvcnQgU3VwZXJjaGFyZ2VkTGlua3NTZXR0aW5nVGFiIGZyb20gXCJzcmMvc2V0dGluZ3MvU3VwZXJjaGFyZ2VkTGlua3NTZXR0aW5nVGFiXCJcclxuaW1wb3J0IHtcclxuXHR1cGRhdGVFbExpbmtzLFxyXG5cdHVwZGF0ZVZpc2libGVMaW5rcyxcclxuXHRjbGVhckV4dHJhQXR0cmlidXRlcyxcclxuXHR1cGRhdGVEaXZFeHRyYUF0dHJpYnV0ZXMsXHJcbn0gZnJvbSBcInNyYy9saW5rQXR0cmlidXRlcy9saW5rQXR0cmlidXRlc1wiXHJcbmltcG9ydCB7IFN1cGVyY2hhcmdlZExpbmtzU2V0dGluZ3MsIERFRkFVTFRfU0VUVElOR1MgfSBmcm9tIFwic3JjL3NldHRpbmdzL1N1cGVyY2hhcmdlZEx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